@visitscotland/component-library 5.54.0 → 5.55.0
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-DV2HOq5V.js +41 -0
- package/dist/components/{LoadingSpinner-CIALXVmL.mjs → LoadingSpinner-DWuFTQ1G.mjs} +5663 -5494
- package/dist/components/src/components/content-swiper/ContentSwiper.vue.d.ts +5 -5
- package/dist/components/src/components/dropdown/Dropdown.vue.d.ts +6 -6
- package/dist/components/src/components/global-menu/components/GlobalMenuLanguage.vue.d.ts +6 -6
- package/dist/components/src/components/mega-nav/components/MegaNavDropdown.vue.d.ts +6 -6
- package/dist/components/src/components/mega-nav/components/MegaNavDropdownContainer.vue.d.ts +6 -6
- package/dist/components/src/components/navigation-bar/components/NavigationBarMenuDropdown.vue.d.ts +6 -6
- package/dist/components/src/components/social-share/SocialShare.vue.d.ts +6 -6
- package/dist/components/style.css +1 -1
- package/dist/components/vs-component-library-maps.js +28 -28
- package/dist/components/vs-component-library-maps.mjs +4147 -4126
- package/dist/components/vs-component-library.js +6 -6
- package/dist/components/vs-component-library.mjs +570 -567
- package/package.json +1 -1
- package/dist/components/LoadingSpinner-WvjNy1CK.js +0 -41
|
@@ -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 as nextTick$1, onUpdated, h, onBeforeUpdate, useId, isVNode, markRaw, toRef, resolveDynamicComponent, Transition, Teleport, useModel, mergeModels, toHandlers, vModelText, guardReactiveProps, 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 ze } 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-DWuFTQ1G.mjs";
|
|
3
|
+
import { a7 as ze } from "./LoadingSpinner-DWuFTQ1G.mjs";
|
|
4
4
|
import { defineStore, storeToRefs } from "pinia";
|
|
5
5
|
const _sfc_main$2E = {
|
|
6
6
|
name: "VsAccordion",
|
|
@@ -1401,14 +1401,17 @@ function _sfc_render$26(e, n, t, s, a, r) {
|
|
|
1401
1401
|
]))
|
|
1402
1402
|
]);
|
|
1403
1403
|
}
|
|
1404
|
-
const VsCannedSearchStars = /* @__PURE__ */ _export_sfc(_sfc_main$2n, [["render", _sfc_render$26]]), min$
|
|
1404
|
+
const VsCannedSearchStars = /* @__PURE__ */ _export_sfc(_sfc_main$2n, [["render", _sfc_render$26]]), min$2 = Math.min, max$2 = Math.max, round = Math.round, floor = Math.floor, createCoords = (e) => ({
|
|
1405
|
+
x: e,
|
|
1406
|
+
y: e
|
|
1407
|
+
}), oppositeSideMap = {
|
|
1405
1408
|
left: "right",
|
|
1406
1409
|
right: "left",
|
|
1407
1410
|
bottom: "top",
|
|
1408
1411
|
top: "bottom"
|
|
1409
1412
|
};
|
|
1410
1413
|
function clamp(e, n, t) {
|
|
1411
|
-
return max$
|
|
1414
|
+
return max$2(e, min$2(n, t));
|
|
1412
1415
|
}
|
|
1413
1416
|
function evaluate(e, n) {
|
|
1414
1417
|
return typeof e == "function" ? e(n) : e;
|
|
@@ -1681,19 +1684,19 @@ const MAX_RESET_COUNT = 50, computePosition$1 = async (e, n, t) => {
|
|
|
1681
1684
|
x: t,
|
|
1682
1685
|
y: s
|
|
1683
1686
|
}, m = getAlignmentAxis(a), p = getAxisLength(m), g = await o.getDimensions(c), v = m === "y", k = v ? "top" : "left", _ = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", S = r.reference[p] + r.reference[m] - f[m] - r.floating[p], V = f[m] - r.reference[m], T = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(c));
|
|
1684
|
-
let
|
|
1685
|
-
(!
|
|
1686
|
-
const C = S / 2 - V / 2,
|
|
1687
|
+
let N = T ? T[b] : 0;
|
|
1688
|
+
(!N || !await (o.isElement == null ? void 0 : o.isElement(T))) && (N = i.floating[b] || r.floating[p]);
|
|
1689
|
+
const C = S / 2 - V / 2, R = N / 2 - g[p] / 2 - 1, P = min$2(u[k], R), w = min$2(u[_], R), M = P, E = N - g[p] - w, L = N / 2 - g[p] / 2 + C, $ = clamp(M, L, E), D = !l.arrow && getAlignment(a) != null && L !== $ && r.reference[p] / 2 - (L < M ? P : w) - g[p] / 2 < 0, A = D ? L < M ? L - M : L - E : 0;
|
|
1687
1690
|
return {
|
|
1688
|
-
[m]: f[m] +
|
|
1691
|
+
[m]: f[m] + A,
|
|
1689
1692
|
data: {
|
|
1690
|
-
[m]:
|
|
1691
|
-
centerOffset: L -
|
|
1692
|
-
...
|
|
1693
|
-
alignmentOffset:
|
|
1693
|
+
[m]: $,
|
|
1694
|
+
centerOffset: L - $ - A,
|
|
1695
|
+
...D && {
|
|
1696
|
+
alignmentOffset: A
|
|
1694
1697
|
}
|
|
1695
1698
|
},
|
|
1696
|
-
reset:
|
|
1699
|
+
reset: D
|
|
1697
1700
|
};
|
|
1698
1701
|
}
|
|
1699
1702
|
}), flip$1 = function(e) {
|
|
@@ -1722,55 +1725,55 @@ const MAX_RESET_COUNT = 50, computePosition$1 = async (e, n, t) => {
|
|
|
1722
1725
|
return {};
|
|
1723
1726
|
const k = getSide(a), _ = getSideAxis(i), b = getSide(i) === i, S = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), V = f || (b || !g ? [getOppositePlacement(i)] : getExpandedPlacements(i)), T = p !== "none";
|
|
1724
1727
|
!f && T && V.push(...getOppositeAxisPlacements(i, g, p, S));
|
|
1725
|
-
const
|
|
1728
|
+
const N = [i, ...V], C = await l.detectOverflow(n, v), R = [];
|
|
1726
1729
|
let P = ((s = r.flip) == null ? void 0 : s.overflows) || [];
|
|
1727
|
-
if (d &&
|
|
1730
|
+
if (d && R.push(C[k]), u) {
|
|
1728
1731
|
const L = getAlignmentSides(a, o, S);
|
|
1729
|
-
|
|
1732
|
+
R.push(C[L[0]], C[L[1]]);
|
|
1730
1733
|
}
|
|
1731
1734
|
if (P = [...P, {
|
|
1732
1735
|
placement: a,
|
|
1733
|
-
overflows:
|
|
1734
|
-
}], !
|
|
1736
|
+
overflows: R
|
|
1737
|
+
}], !R.every((L) => L <= 0)) {
|
|
1735
1738
|
var w, M;
|
|
1736
|
-
const L = (((w = r.flip) == null ? void 0 : w.index) || 0) + 1,
|
|
1737
|
-
if (
|
|
1739
|
+
const L = (((w = r.flip) == null ? void 0 : w.index) || 0) + 1, $ = N[L];
|
|
1740
|
+
if ($ && (!(u === "alignment" ? _ !== getSideAxis($) : !1) || // We leave the current main axis only if every placement on that axis
|
|
1738
1741
|
// overflows the main axis.
|
|
1739
|
-
P.every((
|
|
1742
|
+
P.every((B) => getSideAxis(B.placement) === _ ? B.overflows[0] > 0 : !0)))
|
|
1740
1743
|
return {
|
|
1741
1744
|
data: {
|
|
1742
1745
|
index: L,
|
|
1743
1746
|
overflows: P
|
|
1744
1747
|
},
|
|
1745
1748
|
reset: {
|
|
1746
|
-
placement:
|
|
1749
|
+
placement: $
|
|
1747
1750
|
}
|
|
1748
1751
|
};
|
|
1749
|
-
let
|
|
1750
|
-
if (!
|
|
1752
|
+
let D = (M = P.filter((A) => A.overflows[0] <= 0).sort((A, B) => A.overflows[1] - B.overflows[1])[0]) == null ? void 0 : M.placement;
|
|
1753
|
+
if (!D)
|
|
1751
1754
|
switch (m) {
|
|
1752
1755
|
case "bestFit": {
|
|
1753
|
-
var
|
|
1754
|
-
const
|
|
1756
|
+
var E;
|
|
1757
|
+
const A = (E = P.filter((B) => {
|
|
1755
1758
|
if (T) {
|
|
1756
|
-
const I = getSideAxis(
|
|
1759
|
+
const I = getSideAxis(B.placement);
|
|
1757
1760
|
return I === _ || // Create a bias to the `y` side axis due to horizontal
|
|
1758
1761
|
// reading directions favoring greater width.
|
|
1759
1762
|
I === "y";
|
|
1760
1763
|
}
|
|
1761
1764
|
return !0;
|
|
1762
|
-
}).map((
|
|
1763
|
-
|
|
1765
|
+
}).map((B) => [B.placement, B.overflows.filter((I) => I > 0).reduce((I, z) => I + z, 0)]).sort((B, I) => B[1] - I[1])[0]) == null ? void 0 : E[0];
|
|
1766
|
+
A && (D = A);
|
|
1764
1767
|
break;
|
|
1765
1768
|
}
|
|
1766
1769
|
case "initialPlacement":
|
|
1767
|
-
|
|
1770
|
+
D = i;
|
|
1768
1771
|
break;
|
|
1769
1772
|
}
|
|
1770
|
-
if (a !==
|
|
1773
|
+
if (a !== D)
|
|
1771
1774
|
return {
|
|
1772
1775
|
reset: {
|
|
1773
|
-
placement:
|
|
1776
|
+
placement: D
|
|
1774
1777
|
}
|
|
1775
1778
|
};
|
|
1776
1779
|
}
|
|
@@ -1884,10 +1887,7 @@ const offset$1 = function(e) {
|
|
|
1884
1887
|
};
|
|
1885
1888
|
}
|
|
1886
1889
|
};
|
|
1887
|
-
}
|
|
1888
|
-
x: e,
|
|
1889
|
-
y: e
|
|
1890
|
-
});
|
|
1890
|
+
};
|
|
1891
1891
|
function hasWindow() {
|
|
1892
1892
|
return typeof window < "u";
|
|
1893
1893
|
}
|
|
@@ -2317,15 +2317,15 @@ function observeMove(e, n) {
|
|
|
2317
2317
|
};
|
|
2318
2318
|
let S = !0;
|
|
2319
2319
|
function V(T) {
|
|
2320
|
-
const
|
|
2321
|
-
if (
|
|
2320
|
+
const N = T[0].intersectionRatio;
|
|
2321
|
+
if (N !== l) {
|
|
2322
2322
|
if (!S)
|
|
2323
2323
|
return o();
|
|
2324
|
-
|
|
2324
|
+
N ? o(!1, N) : s = setTimeout(() => {
|
|
2325
2325
|
o(!1, 1e-7);
|
|
2326
2326
|
}, 1e3);
|
|
2327
2327
|
}
|
|
2328
|
-
|
|
2328
|
+
N === 1 && !rectsAreEqual(c, e.getBoundingClientRect()) && o(), S = !1;
|
|
2329
2329
|
}
|
|
2330
2330
|
try {
|
|
2331
2331
|
t = new IntersectionObserver(V, {
|
|
@@ -3728,8 +3728,8 @@ const VsModuleWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$29, [["render", _s
|
|
|
3728
3728
|
"data-test": "vs-canned-search"
|
|
3729
3729
|
};
|
|
3730
3730
|
function _sfc_render$1T(e, n, t, s, a, r) {
|
|
3731
|
-
const o = resolveComponent("VsCol"), i = resolveComponent("VsRow"), l = resolveComponent("VsContainer"), c = resolveComponent("VsCannedSearchTourRuns"), d = resolveComponent("VsCannedSearchTourDeparts"), u = resolveComponent("VsCannedSearchSubHeading"), f = resolveComponent("VsCannedSearchStars"), m = resolveComponent("VsCannedSearchCategories"), p = resolveComponent("VsCannedSearchLogos"), g = resolveComponent("VsCannedSearchBadges"), v = resolveComponent("VsCannedSearchDates"), k = resolveComponent("VsCannedSearchDuration"), _ = resolveComponent("VsCannedSearchPrice"), b = resolveComponent("VsCannedSearchCuisines"), S = resolveComponent("VsCannedSearchSummaryBox"), V = resolveComponent("VsCannedSearchProductCard"), T = resolveComponent("VsCarousel"),
|
|
3732
|
-
return withDirectives((openBlock(), createBlock(
|
|
3731
|
+
const o = resolveComponent("VsCol"), i = resolveComponent("VsRow"), l = resolveComponent("VsContainer"), c = resolveComponent("VsCannedSearchTourRuns"), d = resolveComponent("VsCannedSearchTourDeparts"), u = resolveComponent("VsCannedSearchSubHeading"), f = resolveComponent("VsCannedSearchStars"), m = resolveComponent("VsCannedSearchCategories"), p = resolveComponent("VsCannedSearchLogos"), g = resolveComponent("VsCannedSearchBadges"), v = resolveComponent("VsCannedSearchDates"), k = resolveComponent("VsCannedSearchDuration"), _ = resolveComponent("VsCannedSearchPrice"), b = resolveComponent("VsCannedSearchCuisines"), S = resolveComponent("VsCannedSearchSummaryBox"), V = resolveComponent("VsCannedSearchProductCard"), T = resolveComponent("VsCarousel"), N = resolveComponent("VsModuleWrapper");
|
|
3732
|
+
return withDirectives((openBlock(), createBlock(N, null, createSlots({
|
|
3733
3733
|
default: withCtx(() => [
|
|
3734
3734
|
createElementVNode("div", _hoisted_1$1G, [
|
|
3735
3735
|
createVNode(l, null, {
|
|
@@ -3768,9 +3768,9 @@ function _sfc_render$1T(e, n, t, s, a, r) {
|
|
|
3768
3768
|
renderSlot(e.$slots, "vs-canned-search-of")
|
|
3769
3769
|
]),
|
|
3770
3770
|
default: withCtx(() => [
|
|
3771
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(a.products, (C,
|
|
3772
|
-
key:
|
|
3773
|
-
"slide-index": `${
|
|
3771
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(a.products, (C, R) => (openBlock(), createBlock(V, {
|
|
3772
|
+
key: R,
|
|
3773
|
+
"slide-index": `${R}`,
|
|
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 f = u.fill, m = u.align, p = u.sign, g = u.symbol, v = u.zero, k = u.width, _ = u.comma, b = u.precision, S = u.trim, V = u.type;
|
|
6230
6230
|
V === "n" ? (_ = !0, V = "g") : formatTypes[V] || (b === void 0 && (b = 12), S = !0, V = "g"), (v || f === "0" && m === "=") && (v = !0, f = "0", m = "=");
|
|
6231
|
-
var T = g === "$" ? t : g === "#" && /[boxX]/.test(V) ? "0" + V.toLowerCase() : "",
|
|
6231
|
+
var T = g === "$" ? t : g === "#" && /[boxX]/.test(V) ? "0" + V.toLowerCase() : "", N = g === "$" ? s : /[%p]/.test(V) ? o : "", C = formatTypes[V], R = /[defgprs%]/.test(V);
|
|
6232
6232
|
b = b === void 0 ? 6 : /[gprs]/.test(V) ? Math.max(1, Math.min(21, b)) : Math.max(0, Math.min(20, b));
|
|
6233
6233
|
function P(w) {
|
|
6234
|
-
var M = T,
|
|
6234
|
+
var M = T, E = N, L, $, D;
|
|
6235
6235
|
if (V === "c")
|
|
6236
|
-
|
|
6236
|
+
E = C(w) + E, w = "";
|
|
6237
6237
|
else {
|
|
6238
6238
|
w = +w;
|
|
6239
|
-
var
|
|
6240
|
-
if (w = isNaN(w) ? l : C(Math.abs(w), b), S && (w = formatTrim(w)),
|
|
6241
|
-
for (L = -1,
|
|
6242
|
-
if (
|
|
6243
|
-
|
|
6239
|
+
var A = w < 0 || 1 / w < 0;
|
|
6240
|
+
if (w = isNaN(w) ? l : C(Math.abs(w), b), S && (w = formatTrim(w)), A && +w == 0 && p !== "+" && (A = !1), M = (A ? p === "(" ? p : i : p === "-" || p === "(" ? "" : p) + M, E = (V === "s" ? prefixes[8 + prefixExponent / 3] : "") + E + (A && p === "(" ? ")" : ""), R) {
|
|
6241
|
+
for (L = -1, $ = w.length; ++L < $; )
|
|
6242
|
+
if (D = w.charCodeAt(L), 48 > D || D > 57) {
|
|
6243
|
+
E = (D === 46 ? a + w.slice(L + 1) : w.slice(L)) + E, w = w.slice(0, L);
|
|
6244
6244
|
break;
|
|
6245
6245
|
}
|
|
6246
6246
|
}
|
|
6247
6247
|
}
|
|
6248
6248
|
_ && !v && (w = n(w, 1 / 0));
|
|
6249
|
-
var
|
|
6250
|
-
switch (_ && v && (w = n(I + w, I.length ? k -
|
|
6249
|
+
var B = M.length + w.length + E.length, I = B < k ? new Array(k - B + 1).join(f) : "";
|
|
6250
|
+
switch (_ && v && (w = n(I + w, I.length ? k - E.length : 1 / 0), I = ""), m) {
|
|
6251
6251
|
case "<":
|
|
6252
|
-
w = M + w +
|
|
6252
|
+
w = M + w + E + I;
|
|
6253
6253
|
break;
|
|
6254
6254
|
case "=":
|
|
6255
|
-
w = M + I + w +
|
|
6255
|
+
w = M + I + w + E;
|
|
6256
6256
|
break;
|
|
6257
6257
|
case "^":
|
|
6258
|
-
w = I.slice(0,
|
|
6258
|
+
w = I.slice(0, B = I.length >> 1) + M + w + E + I.slice(B);
|
|
6259
6259
|
break;
|
|
6260
6260
|
default:
|
|
6261
|
-
w = I + M + w +
|
|
6261
|
+
w = I + M + w + E;
|
|
6262
6262
|
break;
|
|
6263
6263
|
}
|
|
6264
6264
|
return r(w);
|
|
@@ -6561,14 +6561,14 @@ function intersect(e, n, t, s, a, r, o, i) {
|
|
|
6561
6561
|
return f = (d * (n - r) - u * (e - a)) / f, [e + f * l, n + f * c];
|
|
6562
6562
|
}
|
|
6563
6563
|
function cornerTangents(e, n, t, s, a, r, o) {
|
|
6564
|
-
var i = e - t, l = n - s, c = (o ? r : -r) / sqrt(i * i + l * l), d = c * l, u = -c * i, f = e + d, m = n + u, p = t + d, g = s + u, v = (f + p) / 2, k = (m + g) / 2, _ = p - f, b = g - m, S = _ * _ + b * b, V = a - r, T = f * g - p * m,
|
|
6565
|
-
return M * M +
|
|
6564
|
+
var i = e - t, l = n - s, c = (o ? r : -r) / sqrt(i * i + l * l), d = c * l, u = -c * i, f = e + d, m = n + u, p = t + d, g = s + u, v = (f + p) / 2, k = (m + g) / 2, _ = p - f, b = g - m, S = _ * _ + b * b, V = a - r, T = f * g - p * m, N = (b < 0 ? -1 : 1) * sqrt(max(0, V * V * S - T * T)), C = (T * b - _ * N) / S, R = (-T * _ - b * N) / S, P = (T * b + _ * N) / S, w = (-T * _ + b * N) / S, M = C - v, E = R - k, L = P - v, $ = w - k;
|
|
6565
|
+
return M * M + E * E > L * L + $ * $ && (C = P, R = w), {
|
|
6566
6566
|
cx: C,
|
|
6567
|
-
cy:
|
|
6567
|
+
cy: R,
|
|
6568
6568
|
x01: -d,
|
|
6569
6569
|
y01: -u,
|
|
6570
6570
|
x11: C * (a / V - 1),
|
|
6571
|
-
y11:
|
|
6571
|
+
y11: R * (a / V - 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(m * cos(p), m * sin(p)), i.arc(0, 0, m, p, g, !k), f > epsilon$2 && (i.moveTo(f * cos(g), f * sin(g)), i.arc(0, 0, f, g, p, k));
|
|
6581
6581
|
else {
|
|
6582
|
-
var _ = p, b = g, S = p, V = g, T = v,
|
|
6583
|
-
if (
|
|
6584
|
-
var
|
|
6585
|
-
(T -=
|
|
6582
|
+
var _ = p, b = g, S = p, V = g, T = v, N = v, C = o.apply(this, arguments) / 2, R = C > epsilon$2 && (s ? +s.apply(this, arguments) : sqrt(f * f + m * m)), P = min(abs(m - f) / 2, +t.apply(this, arguments)), w = P, M = P, E, L;
|
|
6583
|
+
if (R > epsilon$2) {
|
|
6584
|
+
var $ = asin(R / f * sin(C)), D = asin(R / m * sin(C));
|
|
6585
|
+
(T -= $ * 2) > epsilon$2 ? ($ *= k ? 1 : -1, S += $, V -= $) : (T = 0, S = V = (p + g) / 2), (N -= D * 2) > epsilon$2 ? (D *= k ? 1 : -1, _ += D, b -= D) : (N = 0, _ = b = (p + g) / 2);
|
|
6586
6586
|
}
|
|
6587
|
-
var
|
|
6587
|
+
var A = m * cos(_), B = m * sin(_), I = f * cos(V), z = f * sin(V);
|
|
6588
6588
|
if (P > epsilon$2) {
|
|
6589
|
-
var H = m * cos(b),
|
|
6589
|
+
var H = m * cos(b), U = m * sin(b), ee = f * cos(S), Q = f * sin(S), Z;
|
|
6590
6590
|
if (v < pi$1)
|
|
6591
|
-
if (
|
|
6592
|
-
var Y =
|
|
6591
|
+
if (Z = intersect(A, B, ee, Q, H, U, I, z)) {
|
|
6592
|
+
var Y = A - Z[0], de = B - Z[1], le = H - Z[0], ue = U - Z[1], ce = 1 / sin(acos((Y * le + de * ue) / (sqrt(Y * Y + de * de) * sqrt(le * le + ue * ue))) / 2), se = sqrt(Z[0] * Z[0] + Z[1] * Z[1]);
|
|
6593
6593
|
w = min(P, (f - se) / (ce - 1)), M = min(P, (m - se) / (ce + 1));
|
|
6594
6594
|
} else
|
|
6595
6595
|
w = M = 0;
|
|
6596
6596
|
}
|
|
6597
|
-
|
|
6597
|
+
N > epsilon$2 ? M > epsilon$2 ? (E = cornerTangents(ee, Q, A, B, m, M, k), L = cornerTangents(H, U, I, z, m, M, k), i.moveTo(E.cx + E.x01, E.cy + E.y01), M < P ? i.arc(E.cx, E.cy, M, atan2(E.y01, E.x01), atan2(L.y01, L.x01), !k) : (i.arc(E.cx, E.cy, M, atan2(E.y01, E.x01), atan2(E.y11, E.x11), !k), i.arc(0, 0, m, atan2(E.cy + E.y11, E.cx + E.x11), atan2(L.cy + L.y11, L.cx + L.x11), !k), i.arc(L.cx, L.cy, M, atan2(L.y11, L.x11), atan2(L.y01, L.x01), !k))) : (i.moveTo(A, B), i.arc(0, 0, m, _, b, !k)) : i.moveTo(A, B), !(f > epsilon$2) || !(T > epsilon$2) ? i.lineTo(I, z) : w > epsilon$2 ? (E = cornerTangents(I, z, H, U, f, -w, k), L = cornerTangents(A, B, ee, Q, f, -w, k), i.lineTo(E.cx + E.x01, E.cy + E.y01), w < P ? i.arc(E.cx, E.cy, w, atan2(E.y01, E.x01), atan2(L.y01, L.x01), !k) : (i.arc(E.cx, E.cy, w, atan2(E.y01, E.x01), atan2(E.y11, E.x11), !k), i.arc(0, 0, f, atan2(E.cy + E.y11, E.cx + E.x11), atan2(L.cy + L.y11, L.cx + L.x11), k), i.arc(L.cx, L.cy, w, atan2(L.y11, L.x11), atan2(L.y01, L.x01), !k))) : i.arc(0, 0, f, V, S, k);
|
|
6598
6598
|
}
|
|
6599
6599
|
if (i.closePath(), d) return i = null, d + "" || null;
|
|
6600
6600
|
}
|
|
@@ -7661,13 +7661,13 @@ function entering() {
|
|
|
7661
7661
|
function axis(e, n) {
|
|
7662
7662
|
var t = [], s = null, a = null, r = 6, o = 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 f(m) {
|
|
7664
|
-
var p = s ?? (n.ticks ? n.ticks.apply(n, t) : n.domain()), g = a ?? (n.tickFormat ? n.tickFormat.apply(n, t) : identity), v = Math.max(r, 0) + i, k = n.range(), _ = +k[0] + l, b = +k[k.length - 1] + l, S = (n.bandwidth ? center : number)(n.copy(), l), V = m.selection ? m.selection() : m, T = V.selectAll(".domain").data([null]),
|
|
7665
|
-
T = T.merge(T.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")),
|
|
7664
|
+
var p = s ?? (n.ticks ? n.ticks.apply(n, t) : n.domain()), g = a ?? (n.tickFormat ? n.tickFormat.apply(n, t) : identity), v = Math.max(r, 0) + i, k = n.range(), _ = +k[0] + l, b = +k[k.length - 1] + l, S = (n.bandwidth ? center : number)(n.copy(), l), V = m.selection ? m.selection() : m, T = V.selectAll(".domain").data([null]), N = V.selectAll(".tick").data(p, n).order(), C = N.exit(), R = N.enter().append("g").attr("class", "tick"), P = N.select("line"), w = N.select("text");
|
|
7665
|
+
T = T.merge(T.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), N = N.merge(R), P = P.merge(R.append("line").attr("stroke", "currentColor").attr(d + "2", c * r)), w = w.merge(R.append("text").attr("fill", "currentColor").attr(d, c * v).attr("dy", e === top ? "0em" : e === bottom ? "0.71em" : "0.32em")), m !== V && (T = T.transition(m), N = N.transition(m), P = P.transition(m), w = w.transition(m), C = C.transition(m).attr("opacity", epsilon).attr("transform", function(M) {
|
|
7666
7666
|
return isFinite(M = S(M)) ? u(M + l) : this.getAttribute("transform");
|
|
7667
|
-
}),
|
|
7668
|
-
var
|
|
7669
|
-
return u((
|
|
7670
|
-
})), C.remove(), T.attr("d", e === left || e === right ? o ? "M" + c * o + "," + _ + "H" + l + "V" + b + "H" + c * o : "M" + l + "," + _ + "V" + b : o ? "M" + _ + "," + c * o + "V" + l + "H" + b + "V" + c * o : "M" + _ + "," + l + "H" + b),
|
|
7667
|
+
}), R.attr("opacity", epsilon).attr("transform", function(M) {
|
|
7668
|
+
var E = this.parentNode.__axis;
|
|
7669
|
+
return u((E && isFinite(E = E(M)) ? E : S(M)) + l);
|
|
7670
|
+
})), C.remove(), T.attr("d", e === left || e === right ? o ? "M" + c * o + "," + _ + "H" + l + "V" + b + "H" + c * o : "M" + l + "," + _ + "V" + b : o ? "M" + _ + "," + c * o + "V" + l + "H" + b + "V" + c * o : "M" + _ + "," + l + "H" + b), N.attr("opacity", 1).attr("transform", function(M) {
|
|
7671
7671
|
return u(S(M) + l);
|
|
7672
7672
|
}), P.attr(d + "2", c * r), w.attr(d, c * v).text(g), V.filter(entering).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", e === right ? "start" : e === left ? "end" : "middle"), V.each(function() {
|
|
7673
7673
|
this.__axis = S;
|
|
@@ -7753,8 +7753,8 @@ var useChart = () => inject("chart"), usePoints = (e, n = { stacked: !1, type: "
|
|
|
7753
7753
|
function u(m, p) {
|
|
7754
7754
|
const { bandScale: g, linearScale: v } = i(), k = l(), _ = c(), b = d();
|
|
7755
7755
|
return p.map((S) => {
|
|
7756
|
-
const V = { x: 0, y: 0, width: 0, height: 0, props: { values: [...S], data: S.data } }, T = g.scale(S.data[m]), [
|
|
7757
|
-
return s.config.direction === "horizontal" ? (V.y = Math.min(
|
|
7756
|
+
const V = { x: 0, y: 0, width: 0, height: 0, props: { values: [...S], data: S.data } }, T = g.scale(S.data[m]), [N, C] = v.map(S);
|
|
7757
|
+
return s.config.direction === "horizontal" ? (V.y = Math.min(N, C), V.height = Math.abs(N - C), V.x = b + T + k * _ + o / 2, V.width = _) : s.config.direction === "vertical" && (V.x = Math.min(N, C), V.width = Math.abs(N - C), V.y = b + T + k * _ + o / 2, V.height = _), V;
|
|
7758
7758
|
});
|
|
7759
7759
|
}
|
|
7760
7760
|
function f() {
|
|
@@ -10013,32 +10013,32 @@ function setValidations(e) {
|
|
|
10013
10013
|
return s ? z ? unref(z[s]) : void 0 : z;
|
|
10014
10014
|
}), b = createValidationResults(u, v, s, o, d, g, l, _, t), S = collectNestedValidationResults(f, v, d, o, g, l, _), V = {};
|
|
10015
10015
|
p && Object.entries(p).forEach((z) => {
|
|
10016
|
-
let [H,
|
|
10016
|
+
let [H, U] = z;
|
|
10017
10017
|
V[H] = {
|
|
10018
|
-
$invalid: gatherBooleanGroupProperties(
|
|
10019
|
-
$error: gatherBooleanGroupProperties(
|
|
10020
|
-
$pending: gatherBooleanGroupProperties(
|
|
10021
|
-
$errors: gatherArrayGroupProperties(
|
|
10022
|
-
$silentErrors: gatherArrayGroupProperties(
|
|
10018
|
+
$invalid: gatherBooleanGroupProperties(U, S, "$invalid"),
|
|
10019
|
+
$error: gatherBooleanGroupProperties(U, S, "$error"),
|
|
10020
|
+
$pending: gatherBooleanGroupProperties(U, S, "$pending"),
|
|
10021
|
+
$errors: gatherArrayGroupProperties(U, S, "$errors"),
|
|
10022
|
+
$silentErrors: gatherArrayGroupProperties(U, S, "$silentErrors")
|
|
10023
10023
|
};
|
|
10024
10024
|
});
|
|
10025
10025
|
const {
|
|
10026
10026
|
$dirty: T,
|
|
10027
|
-
$errors:
|
|
10027
|
+
$errors: N,
|
|
10028
10028
|
$invalid: C,
|
|
10029
|
-
$anyDirty:
|
|
10029
|
+
$anyDirty: R,
|
|
10030
10030
|
$error: P,
|
|
10031
10031
|
$pending: w,
|
|
10032
10032
|
$touch: M,
|
|
10033
|
-
$reset:
|
|
10033
|
+
$reset: E,
|
|
10034
10034
|
$silentErrors: L,
|
|
10035
|
-
$commit:
|
|
10036
|
-
} = createMetaFields(b, S, r),
|
|
10035
|
+
$commit: $
|
|
10036
|
+
} = createMetaFields(b, S, r), D = s ? computed$1({
|
|
10037
10037
|
get: () => unref(v),
|
|
10038
10038
|
set: (z) => {
|
|
10039
10039
|
T.value = !0;
|
|
10040
|
-
const H = unref(t),
|
|
10041
|
-
|
|
10040
|
+
const H = unref(t), U = unref(c);
|
|
10041
|
+
U && (U[s] = k[s]), isRef(H[s]) ? H[s].value = z : H[s] = z;
|
|
10042
10042
|
}
|
|
10043
10043
|
}) : null;
|
|
10044
10044
|
s && g.$autoDirty && watch(v, () => {
|
|
@@ -10048,15 +10048,15 @@ function setValidations(e) {
|
|
|
10048
10048
|
}, {
|
|
10049
10049
|
flush: "sync"
|
|
10050
10050
|
});
|
|
10051
|
-
async function
|
|
10052
|
-
return M(), g.$rewardEarly && (
|
|
10051
|
+
async function A() {
|
|
10052
|
+
return M(), g.$rewardEarly && ($(), await nextTick$1()), await nextTick$1(), new Promise((z) => {
|
|
10053
10053
|
if (!w.value) return z(!C.value);
|
|
10054
10054
|
const H = watch(w, () => {
|
|
10055
10055
|
z(!C.value), H();
|
|
10056
10056
|
});
|
|
10057
10057
|
});
|
|
10058
10058
|
}
|
|
10059
|
-
function
|
|
10059
|
+
function B(z) {
|
|
10060
10060
|
return (r.value || {})[z];
|
|
10061
10061
|
}
|
|
10062
10062
|
function I() {
|
|
@@ -10065,21 +10065,21 @@ function setValidations(e) {
|
|
|
10065
10065
|
}) : Object.assign(c, k);
|
|
10066
10066
|
}
|
|
10067
10067
|
return reactive(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, b), {}, {
|
|
10068
|
-
$model:
|
|
10068
|
+
$model: D,
|
|
10069
10069
|
$dirty: T,
|
|
10070
10070
|
$error: P,
|
|
10071
|
-
$errors:
|
|
10071
|
+
$errors: N,
|
|
10072
10072
|
$invalid: C,
|
|
10073
|
-
$anyDirty:
|
|
10073
|
+
$anyDirty: R,
|
|
10074
10074
|
$pending: w,
|
|
10075
10075
|
$touch: M,
|
|
10076
|
-
$reset:
|
|
10076
|
+
$reset: E,
|
|
10077
10077
|
$path: d || ROOT_PATH,
|
|
10078
10078
|
$silentErrors: L,
|
|
10079
|
-
$validate:
|
|
10080
|
-
$commit:
|
|
10079
|
+
$validate: A,
|
|
10080
|
+
$commit: $
|
|
10081
10081
|
}, r && {
|
|
10082
|
-
$getResultsForChild:
|
|
10082
|
+
$getResultsForChild: B,
|
|
10083
10083
|
$clearExternalResults: I,
|
|
10084
10084
|
$validationGroups: V
|
|
10085
10085
|
}), S));
|
|
@@ -10293,17 +10293,17 @@ function forEach(e) {
|
|
|
10293
10293
|
const S = unwrapNormalizedValidator(_).call(this, f, o, i, ...s), V = unwrapValidatorResponse(S);
|
|
10294
10294
|
if (g.$data[k] = S, g.$data.$invalid = !V || !!g.$data.$invalid, g.$data.$error = g.$data.$invalid, !V) {
|
|
10295
10295
|
let T = _.$message || "";
|
|
10296
|
-
const
|
|
10296
|
+
const N = _.$params || {};
|
|
10297
10297
|
typeof T == "function" && (T = T({
|
|
10298
10298
|
$pending: !1,
|
|
10299
10299
|
$invalid: !V,
|
|
10300
|
-
$params:
|
|
10300
|
+
$params: N,
|
|
10301
10301
|
$model: f,
|
|
10302
10302
|
$response: S
|
|
10303
10303
|
})), g.$errors.push({
|
|
10304
10304
|
$property: u,
|
|
10305
10305
|
$message: T,
|
|
10306
|
-
$params:
|
|
10306
|
+
$params: N,
|
|
10307
10307
|
$response: S,
|
|
10308
10308
|
$model: f,
|
|
10309
10309
|
$pending: !1,
|
|
@@ -13192,65 +13192,65 @@ function updateSlides() {
|
|
|
13192
13192
|
typeof b == "string" && b.indexOf("%") >= 0 ? b = parseFloat(b.replace("%", "")) / 100 * _ : typeof b == "string" && (b = parseFloat(b)), e.virtualSize = -b - p - g, c.forEach((P) => {
|
|
13193
13193
|
r ? P.style.marginLeft = "" : P.style.marginRight = "", P.style.marginBottom = "", P.style.marginTop = "";
|
|
13194
13194
|
}), t.centeredSlides && t.cssMode && (setCSSProperty(s, "--swiper-centered-offset-before", ""), setCSSProperty(s, "--swiper-centered-offset-after", "")), t.cssMode && (setCSSProperty(s, "--swiper-slides-offset-before", `${p}px`), setCSSProperty(s, "--swiper-slides-offset-after", `${g}px`));
|
|
13195
|
-
const
|
|
13196
|
-
|
|
13195
|
+
const N = t.grid && t.grid.rows > 1 && e.grid;
|
|
13196
|
+
N ? e.grid.initSlides(c) : e.grid && e.grid.unsetSlides();
|
|
13197
13197
|
let C;
|
|
13198
|
-
const
|
|
13198
|
+
const R = t.slidesPerView === "auto" && t.breakpoints && Object.keys(t.breakpoints).filter((P) => typeof t.breakpoints[P].slidesPerView < "u").length > 0;
|
|
13199
13199
|
for (let P = 0; P < d; P += 1) {
|
|
13200
13200
|
C = 0;
|
|
13201
13201
|
const w = c[P];
|
|
13202
|
-
if (!(w && (
|
|
13202
|
+
if (!(w && (N && e.grid.updateSlide(P, w, c), elementStyle(w, "display") === "none"))) {
|
|
13203
13203
|
if (i && t.slidesPerView === "auto")
|
|
13204
13204
|
t.virtual.slidesPerViewAutoSlideSize && (C = t.virtual.slidesPerViewAutoSlideSize), C && w && (t.roundLengths && (C = Math.floor(C)), w.style[e.getDirectionLabel("width")] = `${C}px`);
|
|
13205
13205
|
else if (t.slidesPerView === "auto") {
|
|
13206
|
-
|
|
13207
|
-
const M = getComputedStyle(w),
|
|
13208
|
-
if (
|
|
13206
|
+
R && (w.style[e.getDirectionLabel("width")] = "");
|
|
13207
|
+
const M = getComputedStyle(w), E = w.style.transform, L = w.style.webkitTransform;
|
|
13208
|
+
if (E && (w.style.transform = "none"), L && (w.style.webkitTransform = "none"), t.roundLengths)
|
|
13209
13209
|
C = e.isHorizontal() ? elementOuterSize(w, "width") : elementOuterSize(w, "height");
|
|
13210
13210
|
else {
|
|
13211
|
-
const
|
|
13211
|
+
const $ = n(M, "width"), D = n(M, "padding-left"), A = n(M, "padding-right"), B = n(M, "margin-left"), I = n(M, "margin-right"), z = M.getPropertyValue("box-sizing");
|
|
13212
13212
|
if (z && z === "border-box")
|
|
13213
|
-
C =
|
|
13213
|
+
C = $ + B + I;
|
|
13214
13214
|
else {
|
|
13215
13215
|
const {
|
|
13216
13216
|
clientWidth: H,
|
|
13217
|
-
offsetWidth:
|
|
13217
|
+
offsetWidth: U
|
|
13218
13218
|
} = w;
|
|
13219
|
-
C =
|
|
13219
|
+
C = $ + D + A + B + I + (U - H);
|
|
13220
13220
|
}
|
|
13221
13221
|
}
|
|
13222
|
-
|
|
13222
|
+
E && (w.style.transform = E), L && (w.style.webkitTransform = L), t.roundLengths && (C = Math.floor(C));
|
|
13223
13223
|
} else
|
|
13224
13224
|
C = (_ - (t.slidesPerView - 1) * b) / t.slidesPerView, t.roundLengths && (C = Math.floor(C)), w && (w.style[e.getDirectionLabel("width")] = `${C}px`);
|
|
13225
13225
|
w && (w.swiperSlideSize = C), m.push(C), t.centeredSlides ? (S = S + C / 2 + V / 2 + b, V === 0 && P !== 0 && (S = S - _ / 2 - b), P === 0 && (S = S - _ / 2 - b), Math.abs(S) < 1 / 1e3 && (S = 0), t.roundLengths && (S = Math.floor(S)), T % t.slidesPerGroup === 0 && u.push(S), f.push(S)) : (t.roundLengths && (S = Math.floor(S)), (T - Math.min(e.params.slidesPerGroupSkip, T)) % e.params.slidesPerGroup === 0 && u.push(S), f.push(S), S = S + C + b), e.virtualSize += C + b, V = C, T += 1;
|
|
13226
13226
|
}
|
|
13227
13227
|
}
|
|
13228
|
-
if (e.virtualSize = Math.max(e.virtualSize, _) + g, r && o && (t.effect === "slide" || t.effect === "coverflow") && (s.style.width = `${e.virtualSize + b}px`), t.setWrapperSize && (s.style[e.getDirectionLabel("width")] = `${e.virtualSize + b}px`),
|
|
13228
|
+
if (e.virtualSize = Math.max(e.virtualSize, _) + g, r && o && (t.effect === "slide" || t.effect === "coverflow") && (s.style.width = `${e.virtualSize + b}px`), t.setWrapperSize && (s.style[e.getDirectionLabel("width")] = `${e.virtualSize + b}px`), N && e.grid.updateWrapperSize(C, u), !t.centeredSlides) {
|
|
13229
13229
|
const P = t.slidesPerView !== "auto" && t.slidesPerView % 1 !== 0, w = t.snapToSlideEdge && !t.loop && (t.slidesPerView === "auto" || P);
|
|
13230
13230
|
let M = u.length;
|
|
13231
13231
|
if (w) {
|
|
13232
13232
|
let L;
|
|
13233
13233
|
if (t.slidesPerView === "auto") {
|
|
13234
13234
|
L = 1;
|
|
13235
|
-
let
|
|
13236
|
-
for (let
|
|
13237
|
-
L = m.length -
|
|
13235
|
+
let $ = 0;
|
|
13236
|
+
for (let D = m.length - 1; D >= 0 && ($ += m[D] + (D < m.length - 1 ? b : 0), $ <= _); D -= 1)
|
|
13237
|
+
L = m.length - D;
|
|
13238
13238
|
} else
|
|
13239
13239
|
L = Math.floor(t.slidesPerView);
|
|
13240
13240
|
M = Math.max(d - L, 0);
|
|
13241
13241
|
}
|
|
13242
|
-
const
|
|
13242
|
+
const E = [];
|
|
13243
13243
|
for (let L = 0; L < u.length; L += 1) {
|
|
13244
|
-
let
|
|
13245
|
-
t.roundLengths && (
|
|
13244
|
+
let $ = u[L];
|
|
13245
|
+
t.roundLengths && ($ = Math.floor($)), w ? L <= M && E.push($) : u[L] <= e.virtualSize - _ && E.push($);
|
|
13246
13246
|
}
|
|
13247
|
-
u =
|
|
13247
|
+
u = E, Math.floor(e.virtualSize - _) - Math.floor(u[u.length - 1]) > 1 && (w || u.push(e.virtualSize - _));
|
|
13248
13248
|
}
|
|
13249
13249
|
if (i && t.loop) {
|
|
13250
13250
|
const P = m[0] + b;
|
|
13251
13251
|
if (t.slidesPerGroup > 1) {
|
|
13252
13252
|
const w = Math.ceil((e.virtual.slidesBefore + e.virtual.slidesAfter) / t.slidesPerGroup), M = P * t.slidesPerGroup;
|
|
13253
|
-
for (let
|
|
13253
|
+
for (let E = 0; E < w; E += 1)
|
|
13254
13254
|
u.push(u[u.length - 1] + M);
|
|
13255
13255
|
}
|
|
13256
13256
|
for (let w = 0; w < e.virtual.slidesBefore + e.virtual.slidesAfter; w += 1)
|
|
@@ -13276,10 +13276,10 @@ function updateSlides() {
|
|
|
13276
13276
|
P += w + (b || 0);
|
|
13277
13277
|
}), P -= b, P < _) {
|
|
13278
13278
|
const w = (_ - P) / 2;
|
|
13279
|
-
u.forEach((M,
|
|
13280
|
-
u[
|
|
13281
|
-
}), f.forEach((M,
|
|
13282
|
-
f[
|
|
13279
|
+
u.forEach((M, E) => {
|
|
13280
|
+
u[E] = M - w;
|
|
13281
|
+
}), f.forEach((M, E) => {
|
|
13282
|
+
f[E] = M + w;
|
|
13283
13283
|
});
|
|
13284
13284
|
}
|
|
13285
13285
|
}
|
|
@@ -13676,9 +13676,9 @@ function slideTo(e = 0, n, t = !0, s, a) {
|
|
|
13676
13676
|
v >= l.length && (v = l.length - 1);
|
|
13677
13677
|
const k = -l[v];
|
|
13678
13678
|
if (i.normalizeSlideIndex)
|
|
13679
|
-
for (let
|
|
13680
|
-
const C = -Math.floor(k * 100),
|
|
13681
|
-
typeof c[
|
|
13679
|
+
for (let N = 0; N < c.length; N += 1) {
|
|
13680
|
+
const C = -Math.floor(k * 100), R = Math.floor(c[N] * 100), P = Math.floor(c[N + 1] * 100);
|
|
13681
|
+
typeof c[N + 1] < "u" ? C >= R && C < P - (P - R) / 2 ? o = N : C >= R && C < P && (o = N + 1) : C >= R && (o = N);
|
|
13682
13682
|
}
|
|
13683
13683
|
if (r.initialized && o !== u && (!r.allowSlideNext && (f ? k > r.translate && k > r.minTranslate() : k < r.translate && k < r.minTranslate()) || !r.allowSlidePrev && k > r.translate && k > r.maxTranslate() && (u || 0) !== o))
|
|
13684
13684
|
return !1;
|
|
@@ -13689,11 +13689,11 @@ function slideTo(e = 0, n, t = !0, s, a) {
|
|
|
13689
13689
|
if (!(b && a) && (f && -k === r.translate || !f && k === r.translate))
|
|
13690
13690
|
return r.updateActiveIndex(o), i.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), i.effect !== "slide" && r.setTranslate(k), _ !== "reset" && (r.transitionStart(t, _), r.transitionEnd(t, _)), !1;
|
|
13691
13691
|
if (i.cssMode) {
|
|
13692
|
-
const
|
|
13692
|
+
const N = r.isHorizontal(), C = f ? k : -k;
|
|
13693
13693
|
if (n === 0)
|
|
13694
13694
|
b && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = !0), b && !r._cssModeVirtualInitialSet && r.params.initialSlide > 0 ? (r._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
|
|
13695
|
-
m[
|
|
13696
|
-
})) : m[
|
|
13695
|
+
m[N ? "scrollLeft" : "scrollTop"] = C;
|
|
13696
|
+
})) : m[N ? "scrollLeft" : "scrollTop"] = C, b && requestAnimationFrame(() => {
|
|
13697
13697
|
r.wrapperEl.style.scrollSnapType = "", r._immediateVirtual = !1;
|
|
13698
13698
|
});
|
|
13699
13699
|
else {
|
|
@@ -13701,10 +13701,10 @@ function slideTo(e = 0, n, t = !0, s, a) {
|
|
|
13701
13701
|
return animateCSSModeScroll({
|
|
13702
13702
|
swiper: r,
|
|
13703
13703
|
targetPosition: C,
|
|
13704
|
-
side:
|
|
13704
|
+
side: N ? "left" : "top"
|
|
13705
13705
|
}), !0;
|
|
13706
13706
|
m.scrollTo({
|
|
13707
|
-
[
|
|
13707
|
+
[N ? "left" : "top"]: C,
|
|
13708
13708
|
behavior: "smooth"
|
|
13709
13709
|
});
|
|
13710
13710
|
}
|
|
@@ -13949,27 +13949,27 @@ function loopFix({
|
|
|
13949
13949
|
V % S !== 0 && (V += S - V % S), V += m.loopAdditionalSlides, l.loopedSlides = V;
|
|
13950
13950
|
const T = l.grid && m.grid && m.grid.rows > 1;
|
|
13951
13951
|
c.length < b + V || l.params.effect === "cards" && c.length < b + V * 2 ? showWarning("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : T && m.grid.fill === "row" && showWarning("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
13952
|
-
const
|
|
13952
|
+
const N = [], C = [], R = T ? Math.ceil(c.length / m.grid.rows) : c.length, P = r && R - k < b && !_;
|
|
13953
13953
|
let w = P ? k : l.activeIndex;
|
|
13954
|
-
typeof a > "u" ? a = l.getSlideIndex(c.find((
|
|
13955
|
-
const M = t === "next" || !t,
|
|
13956
|
-
let L = 0,
|
|
13957
|
-
const
|
|
13958
|
-
if (
|
|
13959
|
-
L = Math.max(V -
|
|
13960
|
-
for (let
|
|
13961
|
-
const I =
|
|
13954
|
+
typeof a > "u" ? a = l.getSlideIndex(c.find((B) => B.classList.contains(m.slideActiveClass))) : w = a;
|
|
13955
|
+
const M = t === "next" || !t, E = t === "prev" || !t;
|
|
13956
|
+
let L = 0, $ = 0;
|
|
13957
|
+
const A = (T ? c[a].column : a) + (_ && typeof s > "u" ? -b / 2 + 0.5 : 0);
|
|
13958
|
+
if (A < V) {
|
|
13959
|
+
L = Math.max(V - A, S);
|
|
13960
|
+
for (let B = 0; B < V - A; B += 1) {
|
|
13961
|
+
const I = B - Math.floor(B / R) * R;
|
|
13962
13962
|
if (T) {
|
|
13963
|
-
const z =
|
|
13963
|
+
const z = R - I - 1;
|
|
13964
13964
|
for (let H = c.length - 1; H >= 0; H -= 1)
|
|
13965
|
-
c[H].column === z &&
|
|
13965
|
+
c[H].column === z && N.push(H);
|
|
13966
13966
|
} else
|
|
13967
|
-
|
|
13967
|
+
N.push(R - I - 1);
|
|
13968
13968
|
}
|
|
13969
|
-
} else if (
|
|
13970
|
-
|
|
13971
|
-
for (let
|
|
13972
|
-
const I =
|
|
13969
|
+
} else if (A + b > R - V) {
|
|
13970
|
+
$ = Math.max(A - (R - V * 2), S), P && ($ = Math.max($, b - R + k + 1));
|
|
13971
|
+
for (let B = 0; B < $; B += 1) {
|
|
13972
|
+
const I = B - Math.floor(B / R) * R;
|
|
13973
13973
|
T ? c.forEach((z, H) => {
|
|
13974
13974
|
z.column === I && C.push(H);
|
|
13975
13975
|
}) : C.push(I);
|
|
@@ -13977,32 +13977,32 @@ function loopFix({
|
|
|
13977
13977
|
}
|
|
13978
13978
|
if (l.__preventObserver__ = !0, requestAnimationFrame(() => {
|
|
13979
13979
|
l.__preventObserver__ = !1;
|
|
13980
|
-
}), l.params.effect === "cards" && c.length < b + V * 2 && (C.includes(a) && C.splice(C.indexOf(a), 1),
|
|
13981
|
-
c[
|
|
13982
|
-
}), M && C.forEach((
|
|
13983
|
-
c[
|
|
13984
|
-
}), l.recalcSlides(), m.slidesPerView === "auto" ? l.updateSlides() : T && (
|
|
13985
|
-
l.grid.updateSlide(I,
|
|
13980
|
+
}), l.params.effect === "cards" && c.length < b + V * 2 && (C.includes(a) && C.splice(C.indexOf(a), 1), N.includes(a) && N.splice(N.indexOf(a), 1)), E && N.forEach((B) => {
|
|
13981
|
+
c[B].swiperLoopMoveDOM = !0, f.prepend(c[B]), c[B].swiperLoopMoveDOM = !1;
|
|
13982
|
+
}), M && C.forEach((B) => {
|
|
13983
|
+
c[B].swiperLoopMoveDOM = !0, f.append(c[B]), c[B].swiperLoopMoveDOM = !1;
|
|
13984
|
+
}), l.recalcSlides(), m.slidesPerView === "auto" ? l.updateSlides() : T && (N.length > 0 && E || C.length > 0 && M) && l.slides.forEach((B, I) => {
|
|
13985
|
+
l.grid.updateSlide(I, B, l.slides);
|
|
13986
13986
|
}), m.watchSlidesProgress && l.updateSlidesOffset(), n) {
|
|
13987
|
-
if (
|
|
13987
|
+
if (N.length > 0 && E) {
|
|
13988
13988
|
if (typeof e > "u") {
|
|
13989
|
-
const
|
|
13989
|
+
const B = l.slidesGrid[w], z = l.slidesGrid[w + L] - B;
|
|
13990
13990
|
i ? l.setTranslate(l.translate - z) : (l.slideTo(w + Math.ceil(L), 0, !1, !0), s && (l.touchEventsData.startTranslate = l.touchEventsData.startTranslate - z, l.touchEventsData.currentTranslate = l.touchEventsData.currentTranslate - z));
|
|
13991
13991
|
} else if (s) {
|
|
13992
|
-
const
|
|
13993
|
-
l.slideTo(l.activeIndex +
|
|
13992
|
+
const B = T ? N.length / m.grid.rows : N.length;
|
|
13993
|
+
l.slideTo(l.activeIndex + B, 0, !1, !0), l.touchEventsData.currentTranslate = l.translate;
|
|
13994
13994
|
}
|
|
13995
13995
|
} else if (C.length > 0 && M)
|
|
13996
13996
|
if (typeof e > "u") {
|
|
13997
|
-
const
|
|
13998
|
-
i ? l.setTranslate(l.translate - z) : (l.slideTo(w -
|
|
13997
|
+
const B = l.slidesGrid[w], z = l.slidesGrid[w - $] - B;
|
|
13998
|
+
i ? l.setTranslate(l.translate - z) : (l.slideTo(w - $, 0, !1, !0), s && (l.touchEventsData.startTranslate = l.touchEventsData.startTranslate - z, l.touchEventsData.currentTranslate = l.touchEventsData.currentTranslate - z));
|
|
13999
13999
|
} else {
|
|
14000
|
-
const
|
|
14001
|
-
l.slideTo(l.activeIndex -
|
|
14000
|
+
const B = T ? C.length / m.grid.rows : C.length;
|
|
14001
|
+
l.slideTo(l.activeIndex - B, 0, !1, !0);
|
|
14002
14002
|
}
|
|
14003
14003
|
}
|
|
14004
14004
|
if (l.allowSlidePrev = d, l.allowSlideNext = u, l.controller && l.controller.control && !o) {
|
|
14005
|
-
const
|
|
14005
|
+
const B = {
|
|
14006
14006
|
slideRealIndex: e,
|
|
14007
14007
|
direction: t,
|
|
14008
14008
|
setTranslate: s,
|
|
@@ -14011,11 +14011,11 @@ function loopFix({
|
|
|
14011
14011
|
};
|
|
14012
14012
|
Array.isArray(l.controller.control) ? l.controller.control.forEach((I) => {
|
|
14013
14013
|
!I.destroyed && I.params.loop && I.loopFix({
|
|
14014
|
-
|
|
14014
|
+
...B,
|
|
14015
14015
|
slideTo: I.params.slidesPerView === m.slidesPerView ? n : !1
|
|
14016
14016
|
});
|
|
14017
14017
|
}) : l.controller.control instanceof l.constructor && l.controller.control.params.loop && l.controller.control.loopFix({
|
|
14018
|
-
|
|
14018
|
+
...B,
|
|
14019
14019
|
slideTo: l.controller.control.params.slidesPerView === m.slidesPerView ? n : !1
|
|
14020
14020
|
});
|
|
14021
14021
|
}
|
|
@@ -14424,8 +14424,8 @@ function setBreakpoint() {
|
|
|
14424
14424
|
const u = (c in r ? r[c] : void 0) || e.originalParams, f = isGridEnabled(e, s), m = isGridEnabled(e, u), p = e.params.grabCursor, g = u.grabCursor, v = s.enabled;
|
|
14425
14425
|
f && !m ? (a.classList.remove(`${s.containerModifierClass}grid`, `${s.containerModifierClass}grid-column`), e.emitContainerClasses()) : !f && m && (a.classList.add(`${s.containerModifierClass}grid`), (u.grid.fill && u.grid.fill === "column" || !u.grid.fill && s.grid.fill === "column") && a.classList.add(`${s.containerModifierClass}grid-column`), e.emitContainerClasses()), p && !g ? e.unsetGrabCursor() : !p && g && e.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((T) => {
|
|
14426
14426
|
if (typeof u[T] > "u") return;
|
|
14427
|
-
const
|
|
14428
|
-
|
|
14427
|
+
const N = s[T] && s[T].enabled, C = u[T] && u[T].enabled;
|
|
14428
|
+
N && !C && e[T].disable(), !N && C && e[T].enable();
|
|
14429
14429
|
});
|
|
14430
14430
|
const k = u.direction && u.direction !== s.direction, _ = s.loop && (u.slidesPerView !== s.slidesPerView || k), b = s.loop;
|
|
14431
14431
|
k && t && e.changeDirection(), extend$1(e.params, u);
|
|
@@ -15160,15 +15160,15 @@ function updateSwiper({
|
|
|
15160
15160
|
} = e;
|
|
15161
15161
|
let g, v, k, _, b, S, V, T;
|
|
15162
15162
|
s.includes("thumbs") && t.thumbs && t.thumbs.swiper && !t.thumbs.swiper.destroyed && c.thumbs && (!c.thumbs.swiper || c.thumbs.swiper.destroyed) && (g = !0), s.includes("controller") && t.controller && t.controller.control && c.controller && !c.controller.control && (v = !0), s.includes("pagination") && t.pagination && (t.pagination.el || i) && (c.pagination || c.pagination === !1) && d && !d.el && (k = !0), s.includes("scrollbar") && t.scrollbar && (t.scrollbar.el || o) && (c.scrollbar || c.scrollbar === !1) && f && !f.el && (_ = !0), s.includes("navigation") && t.navigation && (t.navigation.prevEl || r) && (t.navigation.nextEl || a) && (c.navigation || c.navigation === !1) && u && !u.prevEl && !u.nextEl && (b = !0);
|
|
15163
|
-
const
|
|
15163
|
+
const N = (C) => {
|
|
15164
15164
|
e[C] && (e[C].destroy(), C === "navigation" ? (e.isElement && (e[C].prevEl.remove(), e[C].nextEl.remove()), c[C].prevEl = void 0, c[C].nextEl = void 0, e[C].prevEl = void 0, e[C].nextEl = void 0) : (e.isElement && e[C].el.remove(), c[C].el = void 0, e[C].el = void 0));
|
|
15165
15165
|
};
|
|
15166
15166
|
s.includes("loop") && e.isElement && (c.loop && !t.loop ? S = !0 : !c.loop && t.loop ? V = !0 : T = !0), l.forEach((C) => {
|
|
15167
15167
|
if (isObject$1(c[C]) && isObject$1(t[C]))
|
|
15168
|
-
Object.assign(c[C], t[C]), (C === "navigation" || C === "pagination" || C === "scrollbar") && "enabled" in t[C] && !t[C].enabled &&
|
|
15168
|
+
Object.assign(c[C], t[C]), (C === "navigation" || C === "pagination" || C === "scrollbar") && "enabled" in t[C] && !t[C].enabled && N(C);
|
|
15169
15169
|
else {
|
|
15170
|
-
const
|
|
15171
|
-
(
|
|
15170
|
+
const R = t[C];
|
|
15171
|
+
(R === !0 || R === !1) && (C === "navigation" || C === "pagination" || C === "scrollbar") ? R === !1 && N(C) : c[C] = t[C];
|
|
15172
15172
|
}
|
|
15173
15173
|
}), l.includes("controller") && !v && e.controller && e.controller.control && c.controller && c.controller.control && (e.controller.control = c.controller.control), s.includes("children") && n && m && c.virtual.enabled ? (m.slides = n, m.update(!0)) : s.includes("virtual") && m && c.virtual.enabled && (n && (m.slides = n), m.update(!0)), s.includes("children") && n && c.loop && (T = !0), g && p.init() && p.update(!0), v && (e.controller.control = c.controller.control), k && (e.isElement && (!i || typeof i == "string") && (i = document.createElement("div"), i.classList.add("swiper-pagination"), i.part.add("pagination"), e.el.appendChild(i)), i && (c.pagination.el = i), d.init(), d.render(), d.update()), _ && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-scrollbar"), o.part.add("scrollbar"), e.el.appendChild(o)), o && (c.scrollbar.el = o), f.init(), f.updateSize(), f.setTranslate()), b && (e.isElement && ((!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-button-next"), setInnerHTML(a, e.navigation.arrowSvg), a.part.add("button-next"), e.el.appendChild(a)), (!r || typeof r == "string") && (r = document.createElement("div"), r.classList.add("swiper-button-prev"), setInnerHTML(r, e.navigation.arrowSvg), r.part.add("button-prev"), e.el.appendChild(r))), a && (c.navigation.nextEl = a), r && (c.navigation.prevEl = r), u.init(), u.update()), s.includes("allowSlideNext") && (e.allowSlideNext = t.allowSlideNext), s.includes("allowSlidePrev") && (e.allowSlidePrev = t.allowSlidePrev), s.includes("direction") && e.changeDirection(t.direction, !1), (S || T) && e.loopDestroy(), (V || T) && e.loopCreate(), e.update();
|
|
15174
15174
|
}
|
|
@@ -15755,11 +15755,11 @@ const Swiper = {
|
|
|
15755
15755
|
const S = () => {
|
|
15756
15756
|
getChildren(n, f, m), i.value = !0;
|
|
15757
15757
|
};
|
|
15758
|
-
_.onAny = (
|
|
15759
|
-
t(
|
|
15758
|
+
_.onAny = (N, ...C) => {
|
|
15759
|
+
t(N, ...C);
|
|
15760
15760
|
}, Object.assign(_.on, {
|
|
15761
15761
|
_beforeBreakpoint: S,
|
|
15762
|
-
_containerClasses(
|
|
15762
|
+
_containerClasses(N, C) {
|
|
15763
15763
|
r.value = C;
|
|
15764
15764
|
}
|
|
15765
15765
|
});
|
|
@@ -15768,7 +15768,7 @@ const Swiper = {
|
|
|
15768
15768
|
};
|
|
15769
15769
|
if (delete V.wrapperClass, d.value = new Swiper$1(V), d.value.virtual && d.value.params.virtual.enabled) {
|
|
15770
15770
|
d.value.virtual.slides = f.value;
|
|
15771
|
-
const
|
|
15771
|
+
const N = {
|
|
15772
15772
|
cache: !1,
|
|
15773
15773
|
slides: f.value,
|
|
15774
15774
|
renderExternal: (C) => {
|
|
@@ -15776,17 +15776,17 @@ const Swiper = {
|
|
|
15776
15776
|
},
|
|
15777
15777
|
renderExternalUpdate: !1
|
|
15778
15778
|
};
|
|
15779
|
-
extend(d.value.params.virtual,
|
|
15779
|
+
extend(d.value.params.virtual, N), extend(d.value.originalParams.virtual, N);
|
|
15780
15780
|
}
|
|
15781
15781
|
onUpdated(() => {
|
|
15782
15782
|
!l.value && d.value && (d.value.emitSlidesClasses(), l.value = !0);
|
|
15783
15783
|
const {
|
|
15784
|
-
passedParams:
|
|
15785
|
-
} = getParams(e, !1), C = getChangedParams(
|
|
15786
|
-
u.value =
|
|
15784
|
+
passedParams: N
|
|
15785
|
+
} = getParams(e, !1), C = getChangedParams(N, u.value, f.value, m.value, (R) => R.props && R.props.key);
|
|
15786
|
+
u.value = N, (C.length || i.value) && d.value && !d.value.destroyed && updateSwiper({
|
|
15787
15787
|
swiper: d.value,
|
|
15788
15788
|
slides: f.value,
|
|
15789
|
-
passedParams:
|
|
15789
|
+
passedParams: N,
|
|
15790
15790
|
changedParams: C,
|
|
15791
15791
|
nextEl: p.value,
|
|
15792
15792
|
prevEl: g.value,
|
|
@@ -15809,14 +15809,14 @@ const Swiper = {
|
|
|
15809
15809
|
}), onBeforeUnmount(() => {
|
|
15810
15810
|
d.value && !d.value.destroyed && d.value.destroy(!0, !1);
|
|
15811
15811
|
});
|
|
15812
|
-
function T(
|
|
15813
|
-
return _.virtual ? renderVirtual(d,
|
|
15814
|
-
C.props || (C.props = {}), C.props.swiperRef = d, C.props.swiperSlideIndex =
|
|
15815
|
-
}),
|
|
15812
|
+
function T(N) {
|
|
15813
|
+
return _.virtual ? renderVirtual(d, N, o.value) : (N.forEach((C, R) => {
|
|
15814
|
+
C.props || (C.props = {}), C.props.swiperRef = d, C.props.swiperSlideIndex = R;
|
|
15815
|
+
}), N);
|
|
15816
15816
|
}
|
|
15817
15817
|
return () => {
|
|
15818
15818
|
const {
|
|
15819
|
-
slides:
|
|
15819
|
+
slides: N,
|
|
15820
15820
|
slots: C
|
|
15821
15821
|
} = getChildren(n, f, m);
|
|
15822
15822
|
return h(s, {
|
|
@@ -15824,7 +15824,7 @@ const Swiper = {
|
|
|
15824
15824
|
class: uniqueClasses(r.value)
|
|
15825
15825
|
}, [C["container-start"], h(a, {
|
|
15826
15826
|
class: wrapperClass(_.wrapperClass)
|
|
15827
|
-
}, [C["wrapper-start"], T(
|
|
15827
|
+
}, [C["wrapper-start"], T(N), C["wrapper-end"]]), needsNavigation(e) && [h("div", {
|
|
15828
15828
|
ref: g,
|
|
15829
15829
|
class: "swiper-button-prev"
|
|
15830
15830
|
}), h("div", {
|
|
@@ -16093,11 +16093,11 @@ function Scrollbar({
|
|
|
16093
16093
|
scrollbar: w,
|
|
16094
16094
|
rtlTranslate: M
|
|
16095
16095
|
} = e, {
|
|
16096
|
-
dragEl:
|
|
16096
|
+
dragEl: E,
|
|
16097
16097
|
el: L
|
|
16098
|
-
} = w,
|
|
16099
|
-
let
|
|
16100
|
-
M ? (
|
|
16098
|
+
} = w, $ = e.params.scrollbar, D = e.params.loop ? e.progressLoop : e.progress;
|
|
16099
|
+
let A = c, B = (d - c) * D;
|
|
16100
|
+
M ? (B = -B, B > 0 ? (A = c - B, B = 0) : -B + c > d && (A = d + B)) : B < 0 ? (A = c + B, B = 0) : B + c > d && (A = d - B), e.isHorizontal() ? (E.style.transform = `translate3d(${B}px, 0, 0)`, E.style.width = `${A}px`) : (E.style.transform = `translate3d(0px, ${B}px, 0)`, E.style.height = `${A}px`), $.hide && (clearTimeout(o), L.style.opacity = 1, o = setTimeout(() => {
|
|
16101
16101
|
L.style.opacity = 0, L.style.transitionDuration = "400ms";
|
|
16102
16102
|
}, 1e3));
|
|
16103
16103
|
}
|
|
@@ -16110,9 +16110,9 @@ function Scrollbar({
|
|
|
16110
16110
|
scrollbar: w
|
|
16111
16111
|
} = e, {
|
|
16112
16112
|
dragEl: M,
|
|
16113
|
-
el:
|
|
16113
|
+
el: E
|
|
16114
16114
|
} = w;
|
|
16115
|
-
M.style.width = "", M.style.height = "", d = e.isHorizontal() ?
|
|
16115
|
+
M.style.width = "", M.style.height = "", d = e.isHorizontal() ? E.offsetWidth : E.offsetHeight, u = e.size / (e.virtualSize + e.params.slidesOffsetBefore - (e.params.centeredSlides ? e.snapGrid[0] : 0)), e.params.scrollbar.dragSize === "auto" ? c = d * u : c = parseInt(e.params.scrollbar.dragSize, 10), e.isHorizontal() ? M.style.width = `${c}px` : M.style.height = `${c}px`, u >= 1 ? E.style.display = "none" : E.style.display = "", e.params.scrollbar.hide && (E.style.opacity = 0), e.params.watchOverflow && e.enabled && w.el.classList[e.isLocked ? "add" : "remove"](e.params.scrollbar.lockClass);
|
|
16116
16116
|
}
|
|
16117
16117
|
function g(w) {
|
|
16118
16118
|
return e.isHorizontal() ? w.clientX : w.clientY;
|
|
@@ -16120,62 +16120,62 @@ function Scrollbar({
|
|
|
16120
16120
|
function v(w) {
|
|
16121
16121
|
const {
|
|
16122
16122
|
scrollbar: M,
|
|
16123
|
-
rtlTranslate:
|
|
16123
|
+
rtlTranslate: E
|
|
16124
16124
|
} = e, {
|
|
16125
16125
|
el: L
|
|
16126
16126
|
} = M;
|
|
16127
|
-
let
|
|
16128
|
-
|
|
16129
|
-
const
|
|
16130
|
-
e.updateProgress(
|
|
16127
|
+
let $;
|
|
16128
|
+
$ = (g(w) - elementOffset(L)[e.isHorizontal() ? "left" : "top"] - (l !== null ? l : c / 2)) / (d - c), $ = Math.max(Math.min($, 1), 0), E && ($ = 1 - $);
|
|
16129
|
+
const D = e.minTranslate() + (e.maxTranslate() - e.minTranslate()) * $;
|
|
16130
|
+
e.updateProgress(D), e.setTranslate(D), e.updateActiveIndex(), e.updateSlidesClasses();
|
|
16131
16131
|
}
|
|
16132
16132
|
function k(w) {
|
|
16133
16133
|
const M = e.params.scrollbar, {
|
|
16134
|
-
scrollbar:
|
|
16134
|
+
scrollbar: E,
|
|
16135
16135
|
wrapperEl: L
|
|
16136
16136
|
} = e, {
|
|
16137
|
-
el:
|
|
16138
|
-
dragEl:
|
|
16139
|
-
} =
|
|
16140
|
-
r = !0, l = w.target ===
|
|
16137
|
+
el: $,
|
|
16138
|
+
dragEl: D
|
|
16139
|
+
} = E;
|
|
16140
|
+
r = !0, l = w.target === D ? g(w) - w.target.getBoundingClientRect()[e.isHorizontal() ? "left" : "top"] : null, w.preventDefault(), w.stopPropagation(), L.style.transitionDuration = "100ms", D.style.transitionDuration = "100ms", v(w), clearTimeout(i), $.style.transitionDuration = "0ms", M.hide && ($.style.opacity = 1), e.params.cssMode && (e.wrapperEl.style["scroll-snap-type"] = "none"), s("scrollbarDragStart", w);
|
|
16141
16141
|
}
|
|
16142
16142
|
function _(w) {
|
|
16143
16143
|
const {
|
|
16144
16144
|
scrollbar: M,
|
|
16145
|
-
wrapperEl:
|
|
16145
|
+
wrapperEl: E
|
|
16146
16146
|
} = e, {
|
|
16147
16147
|
el: L,
|
|
16148
|
-
dragEl:
|
|
16148
|
+
dragEl: $
|
|
16149
16149
|
} = M;
|
|
16150
|
-
r && (w.preventDefault && w.cancelable ? w.preventDefault() : w.returnValue = !1, v(w),
|
|
16150
|
+
r && (w.preventDefault && w.cancelable ? w.preventDefault() : w.returnValue = !1, v(w), E.style.transitionDuration = "0ms", L.style.transitionDuration = "0ms", $.style.transitionDuration = "0ms", s("scrollbarDragMove", w));
|
|
16151
16151
|
}
|
|
16152
16152
|
function b(w) {
|
|
16153
16153
|
const M = e.params.scrollbar, {
|
|
16154
|
-
scrollbar:
|
|
16154
|
+
scrollbar: E,
|
|
16155
16155
|
wrapperEl: L
|
|
16156
16156
|
} = e, {
|
|
16157
|
-
el:
|
|
16158
|
-
} =
|
|
16157
|
+
el: $
|
|
16158
|
+
} = E;
|
|
16159
16159
|
r && (r = !1, e.params.cssMode && (e.wrapperEl.style["scroll-snap-type"] = "", L.style.transitionDuration = ""), M.hide && (clearTimeout(i), i = nextTick(() => {
|
|
16160
|
-
|
|
16160
|
+
$.style.opacity = 0, $.style.transitionDuration = "400ms";
|
|
16161
16161
|
}, 1e3)), s("scrollbarDragEnd", w), M.snapOnRelease && e.slideToClosest());
|
|
16162
16162
|
}
|
|
16163
16163
|
function S(w) {
|
|
16164
16164
|
const {
|
|
16165
16165
|
scrollbar: M,
|
|
16166
|
-
params:
|
|
16166
|
+
params: E
|
|
16167
16167
|
} = e, L = M.el;
|
|
16168
16168
|
if (!L) return;
|
|
16169
|
-
const
|
|
16169
|
+
const $ = L, D = E.passiveListeners ? {
|
|
16170
16170
|
passive: !1,
|
|
16171
16171
|
capture: !1
|
|
16172
|
-
} : !1,
|
|
16172
|
+
} : !1, A = E.passiveListeners ? {
|
|
16173
16173
|
passive: !0,
|
|
16174
16174
|
capture: !1
|
|
16175
16175
|
} : !1;
|
|
16176
|
-
if (
|
|
16177
|
-
const
|
|
16178
|
-
|
|
16176
|
+
if (!$) return;
|
|
16177
|
+
const B = w === "on" ? "addEventListener" : "removeEventListener";
|
|
16178
|
+
$[B]("pointerdown", k, D), a[B]("pointermove", _, D), a[B]("pointerup", b, A);
|
|
16179
16179
|
}
|
|
16180
16180
|
function V() {
|
|
16181
16181
|
!e.params.scrollbar.el || !e.scrollbar.el || S("on");
|
|
@@ -16183,7 +16183,7 @@ function Scrollbar({
|
|
|
16183
16183
|
function T() {
|
|
16184
16184
|
!e.params.scrollbar.el || !e.scrollbar.el || S("off");
|
|
16185
16185
|
}
|
|
16186
|
-
function
|
|
16186
|
+
function N() {
|
|
16187
16187
|
const {
|
|
16188
16188
|
scrollbar: w,
|
|
16189
16189
|
el: M
|
|
@@ -16191,18 +16191,18 @@ function Scrollbar({
|
|
|
16191
16191
|
e.params.scrollbar = createElementIfNotDefined(e, e.originalParams.scrollbar, e.params.scrollbar, {
|
|
16192
16192
|
el: "swiper-scrollbar"
|
|
16193
16193
|
});
|
|
16194
|
-
const
|
|
16195
|
-
if (!
|
|
16194
|
+
const E = e.params.scrollbar;
|
|
16195
|
+
if (!E.el) return;
|
|
16196
16196
|
let L;
|
|
16197
|
-
if (typeof
|
|
16198
|
-
if (L = a.querySelectorAll(
|
|
16199
|
-
} else L || (L =
|
|
16200
|
-
e.params.uniqueNavElements && typeof
|
|
16201
|
-
let
|
|
16202
|
-
L && (
|
|
16197
|
+
if (typeof E.el == "string" && e.isElement && (L = e.el.querySelector(E.el)), !L && typeof E.el == "string") {
|
|
16198
|
+
if (L = a.querySelectorAll(E.el), !L.length) return;
|
|
16199
|
+
} else L || (L = E.el);
|
|
16200
|
+
e.params.uniqueNavElements && typeof E.el == "string" && L.length > 1 && M.querySelectorAll(E.el).length === 1 && (L = M.querySelector(E.el)), L.length > 0 && (L = L[0]), L.classList.add(e.isHorizontal() ? E.horizontalClass : E.verticalClass);
|
|
16201
|
+
let $;
|
|
16202
|
+
L && ($ = L.querySelector(classesToSelector(e.params.scrollbar.dragClass)), $ || ($ = createElement("div", e.params.scrollbar.dragClass), L.append($))), Object.assign(w, {
|
|
16203
16203
|
el: L,
|
|
16204
|
-
dragEl:
|
|
16205
|
-
}),
|
|
16204
|
+
dragEl: $
|
|
16205
|
+
}), E.draggable && V(), L && L.classList[e.enabled ? "remove" : "add"](...classesToTokens(e.params.scrollbar.lockClass));
|
|
16206
16206
|
}
|
|
16207
16207
|
function C() {
|
|
16208
16208
|
const w = e.params.scrollbar, M = e.scrollbar.el;
|
|
@@ -16214,11 +16214,11 @@ function Scrollbar({
|
|
|
16214
16214
|
let {
|
|
16215
16215
|
el: M
|
|
16216
16216
|
} = e.scrollbar;
|
|
16217
|
-
M = makeElementsArray(M), M.forEach((
|
|
16218
|
-
|
|
16217
|
+
M = makeElementsArray(M), M.forEach((E) => {
|
|
16218
|
+
E.classList.remove(w.horizontalClass, w.verticalClass), E.classList.add(e.isHorizontal() ? w.horizontalClass : w.verticalClass);
|
|
16219
16219
|
});
|
|
16220
16220
|
}), t("init", () => {
|
|
16221
|
-
e.params.scrollbar.enabled === !1 ? P() : (
|
|
16221
|
+
e.params.scrollbar.enabled === !1 ? P() : (N(), p(), f());
|
|
16222
16222
|
}), t("update resize observerUpdate lock unlock changeDirection", () => {
|
|
16223
16223
|
p();
|
|
16224
16224
|
}), t("setTranslate", () => {
|
|
@@ -16233,17 +16233,17 @@ function Scrollbar({
|
|
|
16233
16233
|
}), t("destroy", () => {
|
|
16234
16234
|
C();
|
|
16235
16235
|
});
|
|
16236
|
-
const
|
|
16237
|
-
e.el.classList.remove(...classesToTokens(e.params.scrollbar.scrollbarDisabledClass)), e.scrollbar.el && e.scrollbar.el.classList.remove(...classesToTokens(e.params.scrollbar.scrollbarDisabledClass)),
|
|
16236
|
+
const R = () => {
|
|
16237
|
+
e.el.classList.remove(...classesToTokens(e.params.scrollbar.scrollbarDisabledClass)), e.scrollbar.el && e.scrollbar.el.classList.remove(...classesToTokens(e.params.scrollbar.scrollbarDisabledClass)), N(), p(), f();
|
|
16238
16238
|
}, P = () => {
|
|
16239
16239
|
e.el.classList.add(...classesToTokens(e.params.scrollbar.scrollbarDisabledClass)), e.scrollbar.el && e.scrollbar.el.classList.add(...classesToTokens(e.params.scrollbar.scrollbarDisabledClass)), C();
|
|
16240
16240
|
};
|
|
16241
16241
|
Object.assign(e.scrollbar, {
|
|
16242
|
-
enable:
|
|
16242
|
+
enable: R,
|
|
16243
16243
|
disable: P,
|
|
16244
16244
|
updateSize: p,
|
|
16245
16245
|
setTranslate: f,
|
|
16246
|
-
init:
|
|
16246
|
+
init: N,
|
|
16247
16247
|
destroy: C
|
|
16248
16248
|
});
|
|
16249
16249
|
}
|
|
@@ -16275,165 +16275,160 @@ function A11y({
|
|
|
16275
16275
|
clicked: !1
|
|
16276
16276
|
};
|
|
16277
16277
|
let s = null, a, r, o = (/* @__PURE__ */ new Date()).getTime();
|
|
16278
|
-
function i(
|
|
16278
|
+
function i($) {
|
|
16279
16279
|
const D = s;
|
|
16280
|
-
D.length !== 0 && setInnerHTML(D,
|
|
16280
|
+
D.length !== 0 && setInnerHTML(D, $);
|
|
16281
16281
|
}
|
|
16282
|
-
function l(
|
|
16282
|
+
function l($ = 16) {
|
|
16283
16283
|
const D = () => Math.round(16 * Math.random()).toString(16);
|
|
16284
|
-
return "x".repeat(
|
|
16284
|
+
return "x".repeat($).replace(/x/g, D);
|
|
16285
16285
|
}
|
|
16286
|
-
function c(
|
|
16287
|
-
|
|
16286
|
+
function c($) {
|
|
16287
|
+
$ = makeElementsArray($), $.forEach((D) => {
|
|
16288
16288
|
D.setAttribute("tabIndex", "0");
|
|
16289
16289
|
});
|
|
16290
16290
|
}
|
|
16291
|
-
function d(
|
|
16292
|
-
|
|
16291
|
+
function d($) {
|
|
16292
|
+
$ = makeElementsArray($), $.forEach((D) => {
|
|
16293
16293
|
D.setAttribute("tabIndex", "-1");
|
|
16294
16294
|
});
|
|
16295
16295
|
}
|
|
16296
|
-
function u(
|
|
16297
|
-
|
|
16298
|
-
|
|
16296
|
+
function u($, D) {
|
|
16297
|
+
$ = makeElementsArray($), $.forEach((A) => {
|
|
16298
|
+
A.setAttribute("role", D);
|
|
16299
16299
|
});
|
|
16300
16300
|
}
|
|
16301
|
-
function f(
|
|
16302
|
-
|
|
16303
|
-
|
|
16301
|
+
function f($, D) {
|
|
16302
|
+
$ = makeElementsArray($), $.forEach((A) => {
|
|
16303
|
+
A.setAttribute("aria-roledescription", D);
|
|
16304
16304
|
});
|
|
16305
16305
|
}
|
|
16306
|
-
function m(
|
|
16307
|
-
|
|
16308
|
-
|
|
16306
|
+
function m($, D) {
|
|
16307
|
+
$ = makeElementsArray($), $.forEach((A) => {
|
|
16308
|
+
A.setAttribute("aria-label", D);
|
|
16309
16309
|
});
|
|
16310
16310
|
}
|
|
16311
|
-
function p(
|
|
16312
|
-
|
|
16313
|
-
|
|
16311
|
+
function p($, D) {
|
|
16312
|
+
$ = makeElementsArray($), $.forEach((A) => {
|
|
16313
|
+
A.setAttribute("id", D);
|
|
16314
16314
|
});
|
|
16315
16315
|
}
|
|
16316
|
-
function g(
|
|
16317
|
-
|
|
16318
|
-
|
|
16316
|
+
function g($, D) {
|
|
16317
|
+
$ = makeElementsArray($), $.forEach((A) => {
|
|
16318
|
+
A.setAttribute("aria-live", D);
|
|
16319
16319
|
});
|
|
16320
16320
|
}
|
|
16321
|
-
function v(
|
|
16322
|
-
|
|
16323
|
-
$.setAttribute("aria-live", D);
|
|
16324
|
-
});
|
|
16325
|
-
}
|
|
16326
|
-
function k(E) {
|
|
16327
|
-
E = makeElementsArray(E), E.forEach((D) => {
|
|
16321
|
+
function v($) {
|
|
16322
|
+
$ = makeElementsArray($), $.forEach((D) => {
|
|
16328
16323
|
D.setAttribute("aria-disabled", !0);
|
|
16329
16324
|
});
|
|
16330
16325
|
}
|
|
16331
|
-
function
|
|
16332
|
-
|
|
16333
|
-
D.
|
|
16326
|
+
function k($) {
|
|
16327
|
+
$ = makeElementsArray($), $.forEach((D) => {
|
|
16328
|
+
D.removeAttribute("aria-disabled");
|
|
16334
16329
|
});
|
|
16335
16330
|
}
|
|
16336
|
-
function
|
|
16337
|
-
if (
|
|
16338
|
-
const D = e.params.a11y,
|
|
16339
|
-
if (!(e.pagination && e.pagination.el && (
|
|
16331
|
+
function _($) {
|
|
16332
|
+
if ($.keyCode !== 13 && $.keyCode !== 32) return;
|
|
16333
|
+
const D = e.params.a11y, A = $.target;
|
|
16334
|
+
if (!(e.pagination && e.pagination.el && (A === e.pagination.el || e.pagination.el.contains($.target)) && !$.target.matches(classesToSelector(e.params.pagination.bulletClass)))) {
|
|
16340
16335
|
if (e.navigation && e.navigation.prevEl && e.navigation.nextEl) {
|
|
16341
|
-
const
|
|
16342
|
-
makeElementsArray(e.navigation.nextEl).includes(
|
|
16336
|
+
const B = makeElementsArray(e.navigation.prevEl);
|
|
16337
|
+
makeElementsArray(e.navigation.nextEl).includes(A) && (e.isEnd && !e.params.loop || e.slideNext(), e.isEnd ? i(D.lastSlideMessage) : i(D.nextSlideMessage)), B.includes(A) && (e.isBeginning && !e.params.loop || e.slidePrev(), e.isBeginning ? i(D.firstSlideMessage) : i(D.prevSlideMessage));
|
|
16343
16338
|
}
|
|
16344
|
-
e.pagination &&
|
|
16339
|
+
e.pagination && A.matches(classesToSelector(e.params.pagination.bulletClass)) && A.click();
|
|
16345
16340
|
}
|
|
16346
16341
|
}
|
|
16347
|
-
function
|
|
16342
|
+
function b() {
|
|
16348
16343
|
if (e.params.loop || e.params.rewind || !e.navigation) return;
|
|
16349
16344
|
const {
|
|
16350
|
-
nextEl:
|
|
16345
|
+
nextEl: $,
|
|
16351
16346
|
prevEl: D
|
|
16352
16347
|
} = e.navigation;
|
|
16353
|
-
D && (e.isBeginning ? (
|
|
16348
|
+
D && (e.isBeginning ? (v(D), d(D)) : (k(D), c(D))), $ && (e.isEnd ? (v($), d($)) : (k($), c($)));
|
|
16354
16349
|
}
|
|
16355
|
-
function
|
|
16350
|
+
function S() {
|
|
16356
16351
|
return e.pagination && e.pagination.bullets && e.pagination.bullets.length;
|
|
16357
16352
|
}
|
|
16358
|
-
function
|
|
16359
|
-
return
|
|
16353
|
+
function V() {
|
|
16354
|
+
return S() && e.params.pagination.clickable;
|
|
16360
16355
|
}
|
|
16361
|
-
function
|
|
16362
|
-
const
|
|
16363
|
-
|
|
16364
|
-
e.params.pagination.clickable && (c(D), e.params.pagination.renderBullet || (u(D, "button"),
|
|
16356
|
+
function T() {
|
|
16357
|
+
const $ = e.params.a11y;
|
|
16358
|
+
S() && e.pagination.bullets.forEach((D) => {
|
|
16359
|
+
e.params.pagination.clickable && (c(D), e.params.pagination.renderBullet || (u(D, "button"), m(D, $.paginationBulletMessage.replace(/\{\{index\}\}/, elementIndex(D) + 1)))), D.matches(classesToSelector(e.params.pagination.bulletActiveClass)) ? D.setAttribute("aria-current", "true") : D.removeAttribute("aria-current");
|
|
16365
16360
|
});
|
|
16366
16361
|
}
|
|
16367
|
-
const
|
|
16368
|
-
c(
|
|
16369
|
-
},
|
|
16370
|
-
r && r !==
|
|
16371
|
-
},
|
|
16362
|
+
const N = ($, D, A) => {
|
|
16363
|
+
c($), $.tagName !== "BUTTON" && (u($, "button"), $.addEventListener("keydown", _)), m($, A);
|
|
16364
|
+
}, C = ($) => {
|
|
16365
|
+
r && r !== $.target && !r.contains($.target) && (a = !0), e.a11y.clicked = !0;
|
|
16366
|
+
}, R = () => {
|
|
16372
16367
|
a = !1, requestAnimationFrame(() => {
|
|
16373
16368
|
requestAnimationFrame(() => {
|
|
16374
16369
|
e.destroyed || (e.a11y.clicked = !1);
|
|
16375
16370
|
});
|
|
16376
16371
|
});
|
|
16377
|
-
},
|
|
16372
|
+
}, P = ($) => {
|
|
16378
16373
|
o = (/* @__PURE__ */ new Date()).getTime();
|
|
16379
|
-
},
|
|
16374
|
+
}, w = ($) => {
|
|
16380
16375
|
if (e.a11y.clicked || !e.params.a11y.scrollOnFocus || (/* @__PURE__ */ new Date()).getTime() - o < 100) return;
|
|
16381
|
-
const D =
|
|
16376
|
+
const D = $.target.closest(`.${e.params.slideClass}, swiper-slide`);
|
|
16382
16377
|
if (!D || !e.slides.includes(D)) return;
|
|
16383
16378
|
r = D;
|
|
16384
|
-
const
|
|
16385
|
-
|
|
16386
|
-
a || (e.params.loop ? e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(D.getAttribute("data-swiper-slide-index"))), 0) :
|
|
16379
|
+
const A = e.virtual && e.params.virtual.enabled, B = (A ? parseInt(D.getAttribute("data-swiper-slide-index"), 10) : e.slides.indexOf(D)) === e.activeIndex, I = e.params.watchSlidesProgress && e.visibleSlides && e.visibleSlides.includes(D);
|
|
16380
|
+
B || I || $.sourceCapabilities && $.sourceCapabilities.firesTouchEvents || (e.isHorizontal() ? e.el.scrollLeft = 0 : e.el.scrollTop = 0, requestAnimationFrame(() => {
|
|
16381
|
+
a || (e.params.loop ? e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(D.getAttribute("data-swiper-slide-index"))), 0) : A ? e.slideTo(e.getSlideIndexWhenGrid(parseInt(D.getAttribute("data-swiper-slide-index"), 10)), 0) : e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(D)), 0), a = !1);
|
|
16387
16382
|
}));
|
|
16388
|
-
},
|
|
16389
|
-
const
|
|
16390
|
-
|
|
16383
|
+
}, M = () => {
|
|
16384
|
+
const $ = e.params.a11y;
|
|
16385
|
+
$.itemRoleDescriptionMessage && f(e.slides, $.itemRoleDescriptionMessage), $.slideRole && u(e.slides, $.slideRole);
|
|
16391
16386
|
const D = e.slides.length;
|
|
16392
|
-
|
|
16393
|
-
const
|
|
16394
|
-
|
|
16387
|
+
$.slideLabelMessage && e.slides.forEach((A, B) => {
|
|
16388
|
+
const I = e.params.loop ? parseInt(A.getAttribute("data-swiper-slide-index"), 10) : B, z = $.slideLabelMessage.replace(/\{\{index\}\}/, I + 1).replace(/\{\{slidesLength\}\}/, D);
|
|
16389
|
+
m(A, z);
|
|
16395
16390
|
});
|
|
16396
|
-
},
|
|
16397
|
-
const
|
|
16391
|
+
}, E = () => {
|
|
16392
|
+
const $ = e.params.a11y;
|
|
16398
16393
|
e.el.append(s);
|
|
16399
16394
|
const D = e.el;
|
|
16400
|
-
|
|
16401
|
-
const
|
|
16402
|
-
if (
|
|
16403
|
-
const
|
|
16404
|
-
|
|
16395
|
+
$.containerRoleDescriptionMessage && f(D, $.containerRoleDescriptionMessage), $.containerMessage && m(D, $.containerMessage), $.containerRole && u(D, $.containerRole);
|
|
16396
|
+
const A = e.wrapperEl, B = $.id || A.getAttribute("id") || `swiper-wrapper-${l(16)}`;
|
|
16397
|
+
if (p(A, B), $.wrapperLiveRegion) {
|
|
16398
|
+
const U = e.params.autoplay && e.params.autoplay.enabled ? "off" : "polite";
|
|
16399
|
+
g(A, U);
|
|
16405
16400
|
}
|
|
16406
|
-
|
|
16401
|
+
M();
|
|
16407
16402
|
let {
|
|
16408
|
-
nextEl:
|
|
16409
|
-
prevEl:
|
|
16403
|
+
nextEl: I,
|
|
16404
|
+
prevEl: z
|
|
16410
16405
|
} = e.navigation ? e.navigation : {};
|
|
16411
|
-
|
|
16412
|
-
|
|
16413
|
-
}), getDocument().addEventListener("visibilitychange",
|
|
16406
|
+
I = makeElementsArray(I), z = makeElementsArray(z), I && I.forEach((U) => N(U, B, $.nextSlideMessage)), z && z.forEach((U) => N(U, B, $.prevSlideMessage)), V() && makeElementsArray(e.pagination.el).forEach((ee) => {
|
|
16407
|
+
ee.addEventListener("keydown", _);
|
|
16408
|
+
}), getDocument().addEventListener("visibilitychange", P), e.el.addEventListener("focus", w, !0), e.el.addEventListener("pointerdown", C, !0), e.el.addEventListener("pointerup", R, !0);
|
|
16414
16409
|
};
|
|
16415
|
-
function
|
|
16410
|
+
function L() {
|
|
16416
16411
|
s && s.remove();
|
|
16417
16412
|
let {
|
|
16418
|
-
nextEl:
|
|
16413
|
+
nextEl: $,
|
|
16419
16414
|
prevEl: D
|
|
16420
16415
|
} = e.navigation ? e.navigation : {};
|
|
16421
|
-
|
|
16422
|
-
|
|
16423
|
-
}), getDocument().removeEventListener("visibilitychange",
|
|
16416
|
+
$ = makeElementsArray($), D = makeElementsArray(D), $ && $.forEach((B) => B.removeEventListener("keydown", _)), D && D.forEach((B) => B.removeEventListener("keydown", _)), V() && makeElementsArray(e.pagination.el).forEach((I) => {
|
|
16417
|
+
I.removeEventListener("keydown", _);
|
|
16418
|
+
}), getDocument().removeEventListener("visibilitychange", P), e.el && typeof e.el != "string" && (e.el.removeEventListener("focus", w, !0), e.el.removeEventListener("pointerdown", C, !0), e.el.removeEventListener("pointerup", R, !0));
|
|
16424
16419
|
}
|
|
16425
16420
|
t("beforeInit", () => {
|
|
16426
16421
|
s = createElement("span", e.params.a11y.notificationClass), s.setAttribute("aria-live", "assertive"), s.setAttribute("aria-atomic", "true");
|
|
16427
16422
|
}), t("afterInit", () => {
|
|
16428
|
-
e.params.a11y.enabled &&
|
|
16423
|
+
e.params.a11y.enabled && E();
|
|
16429
16424
|
}), t("slidesLengthChange snapGridLengthChange slidesGridLengthChange", () => {
|
|
16430
|
-
e.params.a11y.enabled &&
|
|
16425
|
+
e.params.a11y.enabled && M();
|
|
16431
16426
|
}), t("fromEdge toEdge afterInit lock unlock", () => {
|
|
16432
|
-
e.params.a11y.enabled &&
|
|
16427
|
+
e.params.a11y.enabled && b();
|
|
16433
16428
|
}), t("paginationUpdate", () => {
|
|
16434
|
-
e.params.a11y.enabled &&
|
|
16429
|
+
e.params.a11y.enabled && T();
|
|
16435
16430
|
}), t("destroy", () => {
|
|
16436
|
-
e.params.a11y.enabled &&
|
|
16431
|
+
e.params.a11y.enabled && L();
|
|
16437
16432
|
});
|
|
16438
16433
|
}
|
|
16439
16434
|
const _sfc_main$1T = {
|
|
@@ -18996,14 +18991,14 @@ function setup(e) {
|
|
|
18996
18991
|
const k = g, _ = Number(/* @__PURE__ */ new Date()), b = _ - (u || _);
|
|
18997
18992
|
k.diff = b, k.prev = u, k.curr = _, u = _, v[0] = t.coerce(v[0]), typeof v[0] != "string" && v.unshift("%O");
|
|
18998
18993
|
let S = 0;
|
|
18999
|
-
v[0] = v[0].replace(/%([a-zA-Z%])/g, (T,
|
|
18994
|
+
v[0] = v[0].replace(/%([a-zA-Z%])/g, (T, N) => {
|
|
19000
18995
|
if (T === "%%")
|
|
19001
18996
|
return "%";
|
|
19002
18997
|
S++;
|
|
19003
|
-
const C = t.formatters[
|
|
18998
|
+
const C = t.formatters[N];
|
|
19004
18999
|
if (typeof C == "function") {
|
|
19005
|
-
const
|
|
19006
|
-
T = C.call(k,
|
|
19000
|
+
const R = v[S];
|
|
19001
|
+
T = C.call(k, R), v.splice(S, 1), S--;
|
|
19007
19002
|
}
|
|
19008
19003
|
return T;
|
|
19009
19004
|
}), t.formatArgs.call(k, v), (k.log || t.log).apply(k, v);
|
|
@@ -19283,14 +19278,14 @@ var functionNamesExports = functionNames.exports;
|
|
|
19283
19278
|
const b = r.default[v], S = _.getPlayerState(), V = _[v].apply(_, k);
|
|
19284
19279
|
return b.stateChangeRequired || // eslint-disable-next-line no-extra-parens
|
|
19285
19280
|
Array.isArray(b.acceptableStates) && !b.acceptableStates.includes(S) ? new Promise((T) => {
|
|
19286
|
-
const
|
|
19281
|
+
const N = () => {
|
|
19287
19282
|
const C = _.getPlayerState();
|
|
19288
|
-
let
|
|
19289
|
-
typeof b.timeout == "number" && (
|
|
19290
|
-
_.removeEventListener("onStateChange",
|
|
19291
|
-
}, b.timeout)), Array.isArray(b.acceptableStates) && b.acceptableStates.includes(C) && (_.removeEventListener("onStateChange",
|
|
19283
|
+
let R;
|
|
19284
|
+
typeof b.timeout == "number" && (R = setTimeout(() => {
|
|
19285
|
+
_.removeEventListener("onStateChange", N), T();
|
|
19286
|
+
}, b.timeout)), Array.isArray(b.acceptableStates) && b.acceptableStates.includes(C) && (_.removeEventListener("onStateChange", N), clearTimeout(R), T());
|
|
19292
19287
|
};
|
|
19293
|
-
_.addEventListener("onStateChange",
|
|
19288
|
+
_.addEventListener("onStateChange", N);
|
|
19294
19289
|
}).then(() => V) : V;
|
|
19295
19290
|
}) : g[v] = (...k) => m.then((_) => _[v].apply(_, k));
|
|
19296
19291
|
return g;
|
|
@@ -27455,12 +27450,12 @@ const _hoisted_1$r = {
|
|
|
27455
27450
|
getItemProps: S,
|
|
27456
27451
|
getItemEventListeners: V,
|
|
27457
27452
|
getComboboxProps: T,
|
|
27458
|
-
openMenu:
|
|
27453
|
+
openMenu: N
|
|
27459
27454
|
}) => [
|
|
27460
27455
|
createElementVNode("div", mergeProps(T(), { class: "vs-autocomplete__list-wrapper" }), [
|
|
27461
27456
|
createElementVNode("input", mergeProps({ class: "vs-input form-control" }, p(), toHandlers(g(), !0), {
|
|
27462
27457
|
placeholder: e.placeholder,
|
|
27463
|
-
onClick: (C) =>
|
|
27458
|
+
onClick: (C) => N()
|
|
27464
27459
|
}), null, 16, _hoisted_3$f),
|
|
27465
27460
|
createVNode(VsIcon, {
|
|
27466
27461
|
icon: "vs-icon-control-expand",
|
|
@@ -27468,10 +27463,10 @@ const _hoisted_1$r = {
|
|
|
27468
27463
|
size: "sm"
|
|
27469
27464
|
}),
|
|
27470
27465
|
withDirectives(createElementVNode("ul", mergeProps(_(), toHandlers(b(), !0), { class: "vs-autocomplete__list" }), [
|
|
27471
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(r.value, (C,
|
|
27466
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(r.value, (C, R) => (openBlock(), createElementBlock("li", mergeProps({
|
|
27472
27467
|
key: C.id
|
|
27473
|
-
}, { ref_for: !0 }, S({ item: C, index:
|
|
27474
|
-
class: ["vs-autocomplete__list-item", { "vs-autocomplete__list-item--hover": v ===
|
|
27468
|
+
}, { ref_for: !0 }, S({ item: C, index: R }), toHandlers(V({ item: C, index: R }), !0), {
|
|
27469
|
+
class: ["vs-autocomplete__list-item", { "vs-autocomplete__list-item--hover": v === R }]
|
|
27475
27470
|
}), toDisplayString(C[c.value]), 17))), 128))
|
|
27476
27471
|
], 16), [
|
|
27477
27472
|
[vShow, k]
|
|
@@ -27710,8 +27705,8 @@ const _hoisted_1$r = {
|
|
|
27710
27705
|
type: ""
|
|
27711
27706
|
};
|
|
27712
27707
|
const o = ref("off"), i = ref(!1), l = computed$1(() => {
|
|
27713
|
-
const
|
|
27714
|
-
return `/info/${paths[
|
|
27708
|
+
const B = typeof s.value > "u" ? "see-do" : s.value;
|
|
27709
|
+
return `/info/${paths[B]}`;
|
|
27715
27710
|
});
|
|
27716
27711
|
let c = ref(!1);
|
|
27717
27712
|
const d = {
|
|
@@ -27734,59 +27729,59 @@ const _hoisted_1$r = {
|
|
|
27734
27729
|
localeUrl: "nl-nl"
|
|
27735
27730
|
}
|
|
27736
27731
|
}, u = computed$1(() => {
|
|
27737
|
-
let
|
|
27738
|
-
return
|
|
27732
|
+
let B = n.defaultLocale.length > 0 ? n.defaultLocale : getLocale();
|
|
27733
|
+
return B === "en" && (B = ""), B;
|
|
27739
27734
|
}), f = computed$1(() => {
|
|
27740
27735
|
if (typeof window < "u") {
|
|
27741
|
-
let
|
|
27742
|
-
return
|
|
27736
|
+
let B = window.location.origin;
|
|
27737
|
+
return B.includes("localhost") ? "https://www.visitscotland.com" : B;
|
|
27743
27738
|
}
|
|
27744
27739
|
return "https://www.visitscotland.com";
|
|
27745
27740
|
}), m = computed$1(() => `${f.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", S = ref([]), V = ref([]), T = () => {
|
|
27746
|
-
const
|
|
27747
|
-
|
|
27741
|
+
const B = getProductTypes(), I = [];
|
|
27742
|
+
B.forEach((z) => {
|
|
27748
27743
|
I.push(z);
|
|
27749
27744
|
}), V.value = I;
|
|
27750
|
-
},
|
|
27745
|
+
}, N = computed$1(() => t.value ? [] : V.value.map((I) => ({
|
|
27751
27746
|
...I,
|
|
27752
27747
|
text: getProductName(I.value, I.text)
|
|
27753
27748
|
}))), C = async () => {
|
|
27754
|
-
const
|
|
27755
|
-
|
|
27756
|
-
},
|
|
27757
|
-
const
|
|
27758
|
-
|
|
27749
|
+
const B = await getData(g);
|
|
27750
|
+
B && (v.value = B.data);
|
|
27751
|
+
}, R = async () => {
|
|
27752
|
+
const B = await getData(b);
|
|
27753
|
+
B && (S.value = B.data);
|
|
27759
27754
|
}, P = async () => {
|
|
27760
|
-
const
|
|
27761
|
-
|
|
27762
|
-
}, w = (
|
|
27763
|
-
I === "key" ? r.value = v.value.find((z) => z.key ===
|
|
27764
|
-
}, M = (
|
|
27765
|
-
const I =
|
|
27766
|
-
s.value = I, I === "tour" && (
|
|
27767
|
-
},
|
|
27755
|
+
const B = await getData(k);
|
|
27756
|
+
B && (_.value = B.data);
|
|
27757
|
+
}, w = (B, I) => {
|
|
27758
|
+
I === "key" ? r.value = v.value.find((z) => z.key === B) : I === "id" ? r.value = v.value.find((z) => z.id === B) : r.value = v.value.find((z) => z.name === B.trim());
|
|
27759
|
+
}, M = (B) => {
|
|
27760
|
+
const I = B.value;
|
|
27761
|
+
s.value = I, I === "tour" && (R(), P());
|
|
27762
|
+
}, E = () => d[n.defaultLocale] || "", L = () => {
|
|
27768
27763
|
t.value = !0, nextTick$1(() => {
|
|
27769
27764
|
t.value = !1, n.defaultLocation !== "" && c && w(n.defaultLocation, "id");
|
|
27770
27765
|
});
|
|
27771
|
-
},
|
|
27766
|
+
}, $ = computed$1(() => s.value !== "cate" && s.value !== "acti,attr,reta" ? "d-lg-flex" : "");
|
|
27772
27767
|
onBeforeMount(async () => {
|
|
27773
27768
|
window.VS = {};
|
|
27774
|
-
const
|
|
27775
|
-
|
|
27769
|
+
const B = document.createElement("script");
|
|
27770
|
+
B.async = !1, B.onload = L, B.setAttribute("src", `https://www.visitscotland.com/${E().localeUrl}/data/template/search.js`), document.head.appendChild(B);
|
|
27776
27771
|
}), onMounted(async () => {
|
|
27777
|
-
C(), c.value = !0, s.value = n.defaultProd, s.value === "tour" && (
|
|
27772
|
+
C(), c.value = !0, s.value = n.defaultProd, s.value === "tour" && (R(), P()), T();
|
|
27778
27773
|
});
|
|
27779
|
-
const
|
|
27780
|
-
o.value =
|
|
27781
|
-
},
|
|
27774
|
+
const D = (B) => {
|
|
27775
|
+
o.value = B ? "on" : "off";
|
|
27776
|
+
}, A = (B) => {
|
|
27782
27777
|
i.value = !0;
|
|
27783
|
-
const I =
|
|
27778
|
+
const I = B.currentTarget;
|
|
27784
27779
|
setTimeout(function() {
|
|
27785
27780
|
I.submit();
|
|
27786
27781
|
}, 500);
|
|
27787
27782
|
};
|
|
27788
|
-
return (
|
|
27789
|
-
var z, H,
|
|
27783
|
+
return (B, I) => {
|
|
27784
|
+
var z, H, U, ee, Q, Z;
|
|
27790
27785
|
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
27791
27786
|
t.value ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", _hoisted_2$i, [
|
|
27792
27787
|
createElementVNode("div", _hoisted_3$c, [
|
|
@@ -27794,17 +27789,17 @@ const _hoisted_1$r = {
|
|
|
27794
27789
|
unref(c) ? (openBlock(), createElementBlock("form", {
|
|
27795
27790
|
key: 0,
|
|
27796
27791
|
action: m.value,
|
|
27797
|
-
onSubmit: withModifiers(
|
|
27792
|
+
onSubmit: withModifiers(A, ["prevent"]),
|
|
27798
27793
|
"accept-charset": "UTF-8",
|
|
27799
27794
|
"data-test": "psw-form"
|
|
27800
27795
|
}, [
|
|
27801
27796
|
createElementVNode("div", _hoisted_6$a, [
|
|
27802
27797
|
createElementVNode("label", _hoisted_7$7, toDisplayString(unref(getLabelText)("search_for", "I'm looking for")), 1),
|
|
27803
27798
|
createElementVNode("div", {
|
|
27804
|
-
class: normalizeClass(
|
|
27799
|
+
class: normalizeClass($.value)
|
|
27805
27800
|
}, [
|
|
27806
27801
|
createVNode(VsSelect, {
|
|
27807
|
-
options:
|
|
27802
|
+
options: N.value,
|
|
27808
27803
|
value: e.defaultProd,
|
|
27809
27804
|
onUpdated: I[0] || (I[0] = (Y) => M(Y)),
|
|
27810
27805
|
"field-name": "prodtypes"
|
|
@@ -27837,21 +27832,21 @@ const _hoisted_1$r = {
|
|
|
27837
27832
|
key: 2,
|
|
27838
27833
|
type: "hidden",
|
|
27839
27834
|
name: "locpoly",
|
|
27840
|
-
disabled: ((
|
|
27841
|
-
value: ((
|
|
27835
|
+
disabled: ((U = unref(r)) == null ? void 0 : U.type) !== "POLYGON",
|
|
27836
|
+
value: ((ee = unref(r)) == null ? void 0 : ee.key) || ""
|
|
27842
27837
|
}, null, 8, _hoisted_11$3)) : createCommentVNode("", !0),
|
|
27843
27838
|
s.value !== "tour" ? (openBlock(), createElementBlock("input", {
|
|
27844
27839
|
key: 3,
|
|
27845
27840
|
type: "hidden",
|
|
27846
27841
|
name: "locprox",
|
|
27847
|
-
value: ((
|
|
27842
|
+
value: ((Q = unref(r)) == null ? void 0 : Q.type) === "DISTRICT" ? 1 : 0
|
|
27848
27843
|
}, null, 8, _hoisted_12$2)) : createCommentVNode("", !0),
|
|
27849
|
-
s.value !== "tour" && ((
|
|
27844
|
+
s.value !== "tour" && ((Z = unref(r)) == null ? void 0 : Z.type) === "DISTRICT" ? (openBlock(), createElementBlock("input", _hoisted_13$2)) : createCommentVNode("", !0),
|
|
27850
27845
|
s.value === "even" ? (openBlock(), createElementBlock("div", _hoisted_14$1, [
|
|
27851
27846
|
createVNode(_sfc_main$z, {
|
|
27852
27847
|
"start-label": unref(getLabelText)("startdate", "Start Date", "dates"),
|
|
27853
27848
|
"end-label": unref(getLabelText)("enddate", "End Date", "dates"),
|
|
27854
|
-
onDateUpdated: I[2] || (I[2] = (Y) =>
|
|
27849
|
+
onDateUpdated: I[2] || (I[2] = (Y) => D(Y)),
|
|
27855
27850
|
"default-dates": i.value,
|
|
27856
27851
|
"selected-prod": s.value
|
|
27857
27852
|
}, null, 8, ["start-label", "end-label", "default-dates", "selected-prod"]),
|
|
@@ -27902,7 +27897,7 @@ const _hoisted_1$r = {
|
|
|
27902
27897
|
class: "mt-150",
|
|
27903
27898
|
"data-test": "psw-submit",
|
|
27904
27899
|
type: "submit",
|
|
27905
|
-
onClick: I[3] || (I[3] = (Y) =>
|
|
27900
|
+
onClick: I[3] || (I[3] = (Y) => B.trackSubmit(s.value, typeof unref(r) > "u" ? "" : unref(r)))
|
|
27906
27901
|
}, {
|
|
27907
27902
|
default: withCtx(() => [
|
|
27908
27903
|
createTextVNode(toDisplayString(unref(getLabelText)("search", "Search")), 1)
|
|
@@ -29881,11 +29876,11 @@ function _sfc_render$c(e, n, t, s, a, r) {
|
|
|
29881
29876
|
}),
|
|
29882
29877
|
createVNode(k, null, {
|
|
29883
29878
|
default: withCtx(() => [
|
|
29884
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(a.lifts, (
|
|
29885
|
-
key:
|
|
29879
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(a.lifts, (N) => (openBlock(), createBlock(v, {
|
|
29880
|
+
key: N.name
|
|
29886
29881
|
}, {
|
|
29887
29882
|
default: withCtx(() => [
|
|
29888
|
-
|
|
29883
|
+
N.status === "0" || N.status === 0 ? (openBlock(), createBlock(g, { key: 0 }, {
|
|
29889
29884
|
default: withCtx(() => [
|
|
29890
29885
|
createVNode(p, {
|
|
29891
29886
|
icon: "fa-regular fa-ban",
|
|
@@ -29896,7 +29891,7 @@ function _sfc_render$c(e, n, t, s, a, r) {
|
|
|
29896
29891
|
]),
|
|
29897
29892
|
_: 1
|
|
29898
29893
|
})) : createCommentVNode("", !0),
|
|
29899
|
-
|
|
29894
|
+
N.status === "1" || N.status === 1 ? (openBlock(), createBlock(g, { key: 1 }, {
|
|
29900
29895
|
default: withCtx(() => [
|
|
29901
29896
|
createVNode(p, {
|
|
29902
29897
|
icon: "fa-regular fa-check",
|
|
@@ -29907,7 +29902,7 @@ function _sfc_render$c(e, n, t, s, a, r) {
|
|
|
29907
29902
|
]),
|
|
29908
29903
|
_: 1
|
|
29909
29904
|
})) : createCommentVNode("", !0),
|
|
29910
|
-
|
|
29905
|
+
N.status === "2" || N.status === 2 ? (openBlock(), createBlock(g, { key: 2 }, {
|
|
29911
29906
|
default: withCtx(() => [
|
|
29912
29907
|
createVNode(p, {
|
|
29913
29908
|
icon: "fa-regular fa-timer",
|
|
@@ -29918,7 +29913,7 @@ function _sfc_render$c(e, n, t, s, a, r) {
|
|
|
29918
29913
|
]),
|
|
29919
29914
|
_: 1
|
|
29920
29915
|
})) : createCommentVNode("", !0),
|
|
29921
|
-
|
|
29916
|
+
N.status === "3" || N.status === 3 ? (openBlock(), createBlock(g, { key: 3 }, {
|
|
29922
29917
|
default: withCtx(() => [
|
|
29923
29918
|
createVNode(p, {
|
|
29924
29919
|
icon: "fa-regular fa-ski-boot-ski",
|
|
@@ -29929,7 +29924,7 @@ function _sfc_render$c(e, n, t, s, a, r) {
|
|
|
29929
29924
|
]),
|
|
29930
29925
|
_: 1
|
|
29931
29926
|
})) : createCommentVNode("", !0),
|
|
29932
|
-
|
|
29927
|
+
N.status === "4" || N.status === 4 ? (openBlock(), createBlock(g, { key: 4 }, {
|
|
29933
29928
|
default: withCtx(() => [
|
|
29934
29929
|
createVNode(p, {
|
|
29935
29930
|
icon: "fa-regular fa-hourglass",
|
|
@@ -29942,7 +29937,7 @@ function _sfc_render$c(e, n, t, s, a, r) {
|
|
|
29942
29937
|
})) : createCommentVNode("", !0),
|
|
29943
29938
|
createVNode(g, null, {
|
|
29944
29939
|
default: withCtx(() => [
|
|
29945
|
-
createTextVNode(toDisplayString(
|
|
29940
|
+
createTextVNode(toDisplayString(N.name), 1)
|
|
29946
29941
|
]),
|
|
29947
29942
|
_: 2
|
|
29948
29943
|
}, 1024)
|
|
@@ -29997,28 +29992,28 @@ function _sfc_render$c(e, n, t, s, a, r) {
|
|
|
29997
29992
|
]),
|
|
29998
29993
|
_: 1
|
|
29999
29994
|
}),
|
|
30000
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(r.filteredRunLevels, (
|
|
30001
|
-
key:
|
|
29995
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(r.filteredRunLevels, (N) => (openBlock(), createElementBlock("div", {
|
|
29996
|
+
key: N.name
|
|
30002
29997
|
}, [
|
|
30003
29998
|
createVNode(T, null, {
|
|
30004
29999
|
default: withCtx(() => [
|
|
30005
30000
|
createVNode(V, {
|
|
30006
30001
|
variant: "subtle",
|
|
30007
|
-
"control-id": `accordion_item_${
|
|
30008
|
-
"colour-badge":
|
|
30002
|
+
"control-id": `accordion_item_${N.name}`,
|
|
30003
|
+
"colour-badge": N.colourToken
|
|
30009
30004
|
}, {
|
|
30010
30005
|
title: withCtx(() => [
|
|
30011
30006
|
createElementVNode("div", {
|
|
30012
|
-
"data-test": `vs-ski__${
|
|
30007
|
+
"data-test": `vs-ski__${N.name}-label`,
|
|
30013
30008
|
class: "d-inline-block"
|
|
30014
30009
|
}, [
|
|
30015
|
-
createElementVNode("span", _hoisted_17, toDisplayString(r.getColourLabel(
|
|
30016
|
-
createTextVNode(" " + toDisplayString(
|
|
30010
|
+
createElementVNode("span", _hoisted_17, toDisplayString(r.getColourLabel(N.colour)), 1),
|
|
30011
|
+
createTextVNode(" " + toDisplayString(N.name), 1)
|
|
30017
30012
|
], 8, _hoisted_16)
|
|
30018
30013
|
]),
|
|
30019
30014
|
default: withCtx(() => [
|
|
30020
30015
|
createVNode(b, {
|
|
30021
|
-
"table-caption": `${
|
|
30016
|
+
"table-caption": `${N.colour} - ${N.name}`,
|
|
30022
30017
|
class: "vs-ski-scotland-status__run-status-table"
|
|
30023
30018
|
}, {
|
|
30024
30019
|
default: withCtx(() => [
|
|
@@ -30041,9 +30036,9 @@ function _sfc_render$c(e, n, t, s, a, r) {
|
|
|
30041
30036
|
}),
|
|
30042
30037
|
createVNode(k, null, {
|
|
30043
30038
|
default: withCtx(() => [
|
|
30044
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
30039
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(N.runs, (C) => (openBlock(), createBlock(v, {
|
|
30045
30040
|
key: C.name,
|
|
30046
|
-
"data-test": `vs-ski__${
|
|
30041
|
+
"data-test": `vs-ski__${N.name}-row`
|
|
30047
30042
|
}, {
|
|
30048
30043
|
default: withCtx(() => [
|
|
30049
30044
|
C.status === "0" || C.status === 0 ? (openBlock(), createBlock(g, { key: 0 }, {
|
|
@@ -31492,17 +31487,17 @@ async function cludoAutocomplete(e, n) {
|
|
|
31492
31487
|
}
|
|
31493
31488
|
}
|
|
31494
31489
|
const useFederatedSearchStore = defineStore("federatedSearch", () => {
|
|
31495
|
-
const e = ref(null), n = ref(void 0), t = ref(!1), s = ref(1), a = ref(void 0), r = ref(!1), o = ref(!1), i = ref(null), l = ref(""), c = ref(null), d = ref(null), u = ref([]), f = ref([]), m = ref(void 0), p = ref(void 0), g = ref(void 0), v = ref(!1), k = ref(""), _ = ref(""), b = ref(void 0), S = ref(void 0), V = ref(void 0), T = ref(-1),
|
|
31496
|
-
async function
|
|
31497
|
-
o.value = !0,
|
|
31498
|
-
const
|
|
31490
|
+
const e = ref(null), n = ref(void 0), t = ref(!1), s = ref(1), a = ref(void 0), r = ref(!1), o = ref(!1), i = ref(null), l = ref(""), c = ref(null), d = ref(null), u = ref([]), f = ref([]), m = ref(void 0), p = ref(void 0), g = ref(void 0), v = ref(!1), k = ref(""), _ = ref(""), b = ref(void 0), S = ref(void 0), V = ref(void 0), T = ref(-1), N = ref(""), C = ref(""), R = ref(""), P = ref(0), w = ref(""), M = ref("or");
|
|
31491
|
+
async function E(D = !1) {
|
|
31492
|
+
o.value = !0, D || (T.value += 1);
|
|
31493
|
+
const A = await cludoSearch(
|
|
31499
31494
|
l.value,
|
|
31500
31495
|
n.value,
|
|
31501
31496
|
s.value,
|
|
31502
31497
|
c.value,
|
|
31503
31498
|
d.value,
|
|
31504
31499
|
M.value
|
|
31505
|
-
),
|
|
31500
|
+
), B = await eventSearch(
|
|
31506
31501
|
a.value,
|
|
31507
31502
|
l.value,
|
|
31508
31503
|
s.value,
|
|
@@ -31513,21 +31508,21 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
|
|
|
31513
31508
|
b.value,
|
|
31514
31509
|
V.value,
|
|
31515
31510
|
C.value,
|
|
31516
|
-
|
|
31511
|
+
R.value,
|
|
31517
31512
|
P.value,
|
|
31518
31513
|
w.value
|
|
31519
31514
|
);
|
|
31520
|
-
i.value = [...
|
|
31515
|
+
i.value = [...A.results, ...B.results], p.value = A.totalResults, g.value = B.totalResults, m.value = A.totalResults + B.totalResults, o.value = !1;
|
|
31521
31516
|
}
|
|
31522
31517
|
async function L() {
|
|
31523
31518
|
return cludoAutocomplete(l.value, n.value);
|
|
31524
31519
|
}
|
|
31525
|
-
async function
|
|
31526
|
-
const
|
|
31527
|
-
if (
|
|
31528
|
-
window.history.pushState({}, "",
|
|
31520
|
+
async function $(D, A) {
|
|
31521
|
+
const B = new URL(window.location.href);
|
|
31522
|
+
if (A ? N.value = "Autosuggestion" : N.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"), f.value.length > 0 ? B.searchParams.set("sub-category", encodeURIComponent(f.value.join(","))) : B.searchParams.delete("sub-category"), D ? (s.value = 1, B.searchParams.set("page", s.value.toString())) : s.value && s.value > 1 ? B.searchParams.set("page", s.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)
|
|
31523
|
+
window.history.pushState({}, "", B), await E();
|
|
31529
31524
|
else {
|
|
31530
|
-
const I = `${S.value}/${
|
|
31525
|
+
const I = `${S.value}/${B.search}`;
|
|
31531
31526
|
window.location.href = I;
|
|
31532
31527
|
}
|
|
31533
31528
|
}
|
|
@@ -31539,7 +31534,7 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
|
|
|
31539
31534
|
eventsApi: a,
|
|
31540
31535
|
eventsApiError: r,
|
|
31541
31536
|
getAutoComplete: L,
|
|
31542
|
-
getSearchResults:
|
|
31537
|
+
getSearchResults: E,
|
|
31543
31538
|
isLoading: o,
|
|
31544
31539
|
results: i,
|
|
31545
31540
|
searchTerm: l,
|
|
@@ -31551,21 +31546,23 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
|
|
|
31551
31546
|
totalResults: m,
|
|
31552
31547
|
totalResultsCludo: p,
|
|
31553
31548
|
totalResultsEvents: g,
|
|
31554
|
-
navigateToResultsPage:
|
|
31549
|
+
navigateToResultsPage: $,
|
|
31555
31550
|
isHomePage: v,
|
|
31556
31551
|
startDate: k,
|
|
31557
31552
|
endDate: _,
|
|
31558
31553
|
sortBy: b,
|
|
31559
31554
|
siteLanguage: V,
|
|
31560
31555
|
searchInSessionCount: T,
|
|
31561
|
-
queryInput:
|
|
31556
|
+
queryInput: N,
|
|
31562
31557
|
postcode: C,
|
|
31563
|
-
location:
|
|
31558
|
+
location: R,
|
|
31564
31559
|
radius: P,
|
|
31565
31560
|
postcodeareas: w,
|
|
31566
31561
|
cludoApiOperator: M
|
|
31567
31562
|
};
|
|
31568
|
-
}), _hoisted_1$7 = { class: "vs-fed-filter" }, _hoisted_2$6 = { class: "vs-fed-filter__scroll-container" }, _hoisted_3$5 = ["id"], _sfc_main$7 = {
|
|
31563
|
+
}), _hoisted_1$7 = { class: "vs-fed-filter" }, _hoisted_2$6 = { class: "vs-fed-filter__scroll-container" }, _hoisted_3$5 = ["id"], _sfc_main$7 = /* @__PURE__ */ Object.assign({
|
|
31564
|
+
status: "deprecated"
|
|
31565
|
+
}, {
|
|
31569
31566
|
__name: "FedFilter",
|
|
31570
31567
|
props: {
|
|
31571
31568
|
/*
|
|
@@ -31761,7 +31758,7 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
|
|
|
31761
31758
|
])
|
|
31762
31759
|
]));
|
|
31763
31760
|
}
|
|
31764
|
-
};
|
|
31761
|
+
});
|
|
31765
31762
|
function dataLayerComposable$1() {
|
|
31766
31763
|
const e = useDataLayerStore(), n = ref(!1), t = computed$1(() => e.pageUrl);
|
|
31767
31764
|
function s(l, c) {
|
|
@@ -31850,7 +31847,9 @@ const _hoisted_1$6 = { class: "vs-fed-search-input" }, _hoisted_2$5 = { class: "
|
|
|
31850
31847
|
}, _hoisted_5$3 = {
|
|
31851
31848
|
key: 0,
|
|
31852
31849
|
class: "position-relative"
|
|
31853
|
-
}, _hoisted_6$3 = { class: "vs-fed-search-input__autocomplete" }, _hoisted_7$2 = ["onClick", "onKeyup", "innerHTML"], _sfc_main$6 = {
|
|
31850
|
+
}, _hoisted_6$3 = { class: "vs-fed-search-input__autocomplete" }, _hoisted_7$2 = ["onClick", "onKeyup", "innerHTML"], _sfc_main$6 = /* @__PURE__ */ Object.assign({
|
|
31851
|
+
status: "deprecated"
|
|
31852
|
+
}, {
|
|
31854
31853
|
__name: "FedSearchInput",
|
|
31855
31854
|
props: {
|
|
31856
31855
|
/**
|
|
@@ -32062,7 +32061,7 @@ const _hoisted_1$6 = { class: "vs-fed-search-input" }, _hoisted_2$5 = { class: "
|
|
|
32062
32061
|
}, 8, ["active-filter", "filter-categories"])) : createCommentVNode("", !0)
|
|
32063
32062
|
]));
|
|
32064
32063
|
}
|
|
32065
|
-
}, _hoisted_1$5 = {
|
|
32064
|
+
}), _hoisted_1$5 = {
|
|
32066
32065
|
key: 0,
|
|
32067
32066
|
for: "vs-fed-search-sort__from-date",
|
|
32068
32067
|
class: "vs-fed-search-sort__label",
|
|
@@ -32072,7 +32071,9 @@ const _hoisted_1$6 = { class: "vs-fed-search-input" }, _hoisted_2$5 = { class: "
|
|
|
32072
32071
|
for: "vs-fed-search-sort__to-date",
|
|
32073
32072
|
class: "vs-fed-search-sort__label",
|
|
32074
32073
|
"data-test": "vs-fed-search-sort__to-date-label"
|
|
32075
|
-
}, _sfc_main$5 = {
|
|
32074
|
+
}, _sfc_main$5 = /* @__PURE__ */ Object.assign({
|
|
32075
|
+
status: "deprecated"
|
|
32076
|
+
}, {
|
|
32076
32077
|
__name: "FedSearchSort",
|
|
32077
32078
|
props: {
|
|
32078
32079
|
/**
|
|
@@ -32189,7 +32190,7 @@ const _hoisted_1$6 = { class: "vs-fed-search-input" }, _hoisted_2$5 = { class: "
|
|
|
32189
32190
|
_: 1
|
|
32190
32191
|
}));
|
|
32191
32192
|
}
|
|
32192
|
-
}, _hoisted_1$4 = {
|
|
32193
|
+
}), _hoisted_1$4 = {
|
|
32193
32194
|
class: "vs-federated-search",
|
|
32194
32195
|
"data-test": "vs-federated-search"
|
|
32195
32196
|
}, _hoisted_2$3 = { class: "vs-federated-search__container" }, _hoisted_3$3 = {
|
|
@@ -32205,7 +32206,9 @@ const _hoisted_1$6 = { class: "vs-fed-search-input" }, _hoisted_2$5 = { class: "
|
|
|
32205
32206
|
}, _hoisted_11 = {
|
|
32206
32207
|
key: 3,
|
|
32207
32208
|
class: "vs-federated-search__warning mb-300"
|
|
32208
|
-
}, fallbackImg = "https://static.visitscotland.com/img/fallback-img.png", _sfc_main$4 = {
|
|
32209
|
+
}, fallbackImg = "https://static.visitscotland.com/img/fallback-img.png", _sfc_main$4 = /* @__PURE__ */ Object.assign({
|
|
32210
|
+
status: "deprecated"
|
|
32211
|
+
}, {
|
|
32209
32212
|
__name: "FederatedSearch",
|
|
32210
32213
|
props: {
|
|
32211
32214
|
/**
|
|
@@ -32613,7 +32616,7 @@ const _hoisted_1$6 = { class: "vs-fed-search-input" }, _hoisted_2$5 = { class: "
|
|
|
32613
32616
|
})
|
|
32614
32617
|
]));
|
|
32615
32618
|
}
|
|
32616
|
-
};
|
|
32619
|
+
});
|
|
32617
32620
|
var define_process_env_default = {};
|
|
32618
32621
|
function setScriptSrc(e, n) {
|
|
32619
32622
|
e.src = n;
|
|
@@ -32627,13 +32630,13 @@ const bootstrap = (e) => {
|
|
|
32627
32630
|
m.set("callback", r + ".maps." + i), setScriptSrc(t, "https://maps.googleapis.com/maps/api/js?" + m), u[i] = g, t.onerror = () => n = v(Error(a + " could not load.")), t.nonce = ((k = l.querySelector("script[nonce]")) == null ? void 0 : k.nonce) || "", l.head.append(t);
|
|
32628
32631
|
}));
|
|
32629
32632
|
u[o] ? console.warn(a + " only loads once. Ignoring:", e) : u[o] = (g, ...v) => f.add(g) && p().then(() => u[o](g, ...v));
|
|
32630
|
-
}, MSG_REPEATED_SET_OPTIONS = (e) => `The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(e)}) will be ignored.`, MSG_IMPORT_LIBRARY_EXISTS = (e) => `The google.maps.importLibrary() function is already defined, and @googlemaps/js-api-loader will use the existing function instead of overwriting it. The options passed to setOptions (${JSON.stringify(e)}) will be ignored.`, MSG_SET_OPTIONS_NOT_CALLED = "No options were set before calling importLibrary. Make sure to configure the loader using setOptions().", MSG_SCRIPT_ELEMENT_EXISTS = "There already is a script loading the Google Maps JavaScript API, and no google.maps.importLibrary function is defined. @googlemaps/js-api-loader will proceed to bootstrap the API with the specified options, but the existing script might cause problems using the API. Make sure to remove the script loading the API.",
|
|
32633
|
+
}, MSG_REPEATED_SET_OPTIONS = (e) => `The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(e)}) will be ignored.`, MSG_IMPORT_LIBRARY_EXISTS = (e) => `The google.maps.importLibrary() function is already defined, and @googlemaps/js-api-loader will use the existing function instead of overwriting it. The options passed to setOptions (${JSON.stringify(e)}) will be ignored.`, MSG_SET_OPTIONS_NOT_CALLED = "No options were set before calling importLibrary. Make sure to configure the loader using setOptions().", MSG_SCRIPT_ELEMENT_EXISTS = "There already is a script loading the Google Maps JavaScript API, and no google.maps.importLibrary function is defined. @googlemaps/js-api-loader will proceed to bootstrap the API with the specified options, but the existing script might cause problems using the API. Make sure to remove the script loading the API.", __DEV__$1 = define_process_env_default.NODE_ENV !== "production", logDevWarning = __DEV__$1 ? (e) => {
|
|
32631
32634
|
console.warn(`[@googlemaps/js-api-loader] ${e}`);
|
|
32632
32635
|
} : () => {
|
|
32633
|
-
}, logDevNotice =
|
|
32636
|
+
}, logDevNotice = __DEV__$1 ? (e) => {
|
|
32634
32637
|
console.info(`[@googlemaps/js-api-loader] ${e}`);
|
|
32635
32638
|
} : () => {
|
|
32636
|
-
};
|
|
32639
|
+
}, __DEV__ = define_process_env_default.NODE_ENV !== "production";
|
|
32637
32640
|
let setOptionsWasCalled_ = !1;
|
|
32638
32641
|
function setOptions(e) {
|
|
32639
32642
|
if (setOptionsWasCalled_) {
|
|
@@ -32651,7 +32654,7 @@ async function importLibrary(e) {
|
|
|
32651
32654
|
function installImportLibrary_(e) {
|
|
32652
32655
|
var t, s;
|
|
32653
32656
|
const n = !!((s = (t = window.google) == null ? void 0 : t.maps) != null && s.importLibrary);
|
|
32654
|
-
n ? logDevNotice(MSG_IMPORT_LIBRARY_EXISTS(e)) :
|
|
32657
|
+
n ? logDevNotice(MSG_IMPORT_LIBRARY_EXISTS(e)) : __DEV__ && document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]') && logDevWarning(MSG_SCRIPT_ELEMENT_EXISTS), n || bootstrap(e);
|
|
32655
32658
|
}
|
|
32656
32659
|
const useGoogleMapStore = defineStore("googleMap", () => {
|
|
32657
32660
|
const e = ref(!0), n = ref(Date.now()), t = ref(!1), s = ref(0), a = ref(0), r = ref(!0), o = ref(!1), i = ref(void 0);
|
|
@@ -33303,9 +33306,9 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33303
33306
|
places: r
|
|
33304
33307
|
}), provide("onFeaturedLocationClick", Ne), provide("addDestinationMarkers", Ce);
|
|
33305
33308
|
let o, i, l, c, d, u, f, m, p, g, v = {}, k;
|
|
33306
|
-
const _ = ref(), b = ref(/* @__PURE__ */ new Set()), S = ref(), V = ref(/* @__PURE__ */ new Set()), T = ref(/* @__PURE__ */ new Set()),
|
|
33307
|
-
const O = /* @__PURE__ */ new Map(),
|
|
33308
|
-
return Object.values(
|
|
33309
|
+
const _ = ref(), b = ref(/* @__PURE__ */ new Set()), S = ref(), V = ref(/* @__PURE__ */ new Set()), T = ref(/* @__PURE__ */ new Set()), N = ref(/* @__PURE__ */ new Set()), C = ref(/* @__PURE__ */ new Set()), R = ref(), P = ref(), w = ref(t.zoom), M = ref(!1), E = ref(), L = ref(/* @__PURE__ */ new Set()), $ = ref(), D = ref(!1), A = ref(void 0), B = computed$1(() => {
|
|
33310
|
+
const O = /* @__PURE__ */ new Map(), F = Q[_.value].subCategory;
|
|
33311
|
+
return Object.values(F).forEach((q) => {
|
|
33309
33312
|
O.set(q.id, {
|
|
33310
33313
|
includedTypes: q.includedType,
|
|
33311
33314
|
excludedTypes: q.excludedType
|
|
@@ -33313,14 +33316,14 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33313
33316
|
}), O;
|
|
33314
33317
|
}), I = useGoogleMapStore(), z = ref(void 0);
|
|
33315
33318
|
let H;
|
|
33316
|
-
const
|
|
33319
|
+
const U = ref(void 0), ee = {
|
|
33317
33320
|
north: 61,
|
|
33318
33321
|
south: 54.6,
|
|
33319
33322
|
west: -8.7,
|
|
33320
33323
|
east: 0.3
|
|
33321
33324
|
};
|
|
33322
|
-
let
|
|
33323
|
-
const
|
|
33325
|
+
let Q = {};
|
|
33326
|
+
const Z = t.categoryLabels;
|
|
33324
33327
|
let Y = 0;
|
|
33325
33328
|
const de = {
|
|
33326
33329
|
headerLabel: t.labels.heading,
|
|
@@ -33340,15 +33343,15 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33340
33343
|
isProgrammaticMove: ce,
|
|
33341
33344
|
isUserMove: se,
|
|
33342
33345
|
lastSearchViewport: oe,
|
|
33343
|
-
runProgrammaticMove:
|
|
33346
|
+
runProgrammaticMove: X,
|
|
33344
33347
|
showSearchAreaButton: fe
|
|
33345
33348
|
} = useViewportController();
|
|
33346
33349
|
onBeforeMount(() => {
|
|
33347
33350
|
const O = cookieCheckerComposable();
|
|
33348
|
-
O.requiredCookies.value = cookieValues$5.google_maps, H = computed$1(() => !O.cookiesAllowed.value && O.cookiesLoaded.value === !0 || !O.cookiesLoaded.value ? (
|
|
33351
|
+
O.requiredCookies.value = cookieValues$5.google_maps, H = computed$1(() => !O.cookiesAllowed.value && O.cookiesLoaded.value === !0 || !O.cookiesLoaded.value ? (U.value = "noCookie", !0) : !1);
|
|
33349
33352
|
}), onMounted(async () => {
|
|
33350
|
-
if (t.categoriesLocation && axios.get(t.categoriesLocation).then((
|
|
33351
|
-
|
|
33353
|
+
if (t.categoriesLocation && axios.get(t.categoriesLocation).then((F) => {
|
|
33354
|
+
Q = F.data, A.value = F.data.accommodation.keywords;
|
|
33352
33355
|
}).catch(() => {
|
|
33353
33356
|
}), H.value === !1) {
|
|
33354
33357
|
setOptions({
|
|
@@ -33367,7 +33370,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33367
33370
|
i = document.getElementById("vs-map"), l = document.getElementById("nearbySearch"), c = document.getElementById("textSearch"), d = document.querySelector("gmp-place-text-search-request"), u = document.querySelector("gmp-place-nearby-search-request"), f = document.querySelector("gmp-place-details"), m = document.getElementById("placeRequest"), p = document.getElementById("vs-map-search-input");
|
|
33368
33371
|
async function O() {
|
|
33369
33372
|
try {
|
|
33370
|
-
const
|
|
33373
|
+
const F = {
|
|
33371
33374
|
center: {
|
|
33372
33375
|
lat: t.center.lat,
|
|
33373
33376
|
lng: t.center.lng
|
|
@@ -33377,7 +33380,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33377
33380
|
isFractionalZoomEnabled: !0,
|
|
33378
33381
|
mapId: t.mapId,
|
|
33379
33382
|
restriction: {
|
|
33380
|
-
latLngBounds:
|
|
33383
|
+
latLngBounds: ee
|
|
33381
33384
|
},
|
|
33382
33385
|
zoomControl: !0,
|
|
33383
33386
|
fullscreenControl: !1,
|
|
@@ -33387,11 +33390,11 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33387
33390
|
gestureHandling: "greedy"
|
|
33388
33391
|
};
|
|
33389
33392
|
if (i)
|
|
33390
|
-
o = new google.maps.Map(i,
|
|
33393
|
+
o = new google.maps.Map(i, F), X(() => o.fitBounds(ee));
|
|
33391
33394
|
else
|
|
33392
33395
|
throw new Error("Init error, mapContainer undefined");
|
|
33393
|
-
} catch (
|
|
33394
|
-
console.error("Maps init error",
|
|
33396
|
+
} catch (F) {
|
|
33397
|
+
console.error("Maps init error", F.message);
|
|
33395
33398
|
}
|
|
33396
33399
|
g = new google.maps.InfoWindow(), g.addListener("closeclick", () => {
|
|
33397
33400
|
he("card_close", m.place);
|
|
@@ -33401,16 +33404,16 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33401
33404
|
se.value = !0;
|
|
33402
33405
|
}), o.addListener("idle", () => {
|
|
33403
33406
|
k = Me(), !ce.value && se.value && ue(le(o)) && (fe.value = !0, se.value = !1);
|
|
33404
|
-
}), l.addEventListener("gmp-select", ({ place:
|
|
33405
|
-
v[
|
|
33406
|
-
}), c.addEventListener("gmp-select", ({ place:
|
|
33407
|
-
v[
|
|
33407
|
+
}), l.addEventListener("gmp-select", ({ place: F }) => {
|
|
33408
|
+
v[F.id] && ye(F, v[F.id]);
|
|
33409
|
+
}), c.addEventListener("gmp-select", ({ place: F }) => {
|
|
33410
|
+
v[F.id] && ye(F, v[F.id]);
|
|
33408
33411
|
}), Ce();
|
|
33409
33412
|
}
|
|
33410
33413
|
I.firstInteraction = !1, I.searchesCount = 0, I.filterUsesCount = 0, H.value === !1 && await O();
|
|
33411
33414
|
});
|
|
33412
33415
|
function be(O) {
|
|
33413
|
-
const
|
|
33416
|
+
const F = {
|
|
33414
33417
|
strokeColor: "#A3A3CC",
|
|
33415
33418
|
strokeOpacity: 1,
|
|
33416
33419
|
strokeWeight: 1,
|
|
@@ -33474,110 +33477,110 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33474
33477
|
// Republic of Ireland
|
|
33475
33478
|
"ChIJ6_ktdpMVvEgRJBv3ZEgxsD8"
|
|
33476
33479
|
// Faroe Islands
|
|
33477
|
-
],
|
|
33478
|
-
O ? (
|
|
33479
|
-
if (j.includes(
|
|
33480
|
-
return
|
|
33481
|
-
},
|
|
33482
|
-
if (j.includes(
|
|
33483
|
-
return
|
|
33484
|
-
}) : (
|
|
33485
|
-
if (q.includes(
|
|
33486
|
-
return
|
|
33487
|
-
},
|
|
33488
|
-
if (q.includes(
|
|
33489
|
-
return
|
|
33480
|
+
], W = o.getFeatureLayer(google.maps.FeatureType.COUNTRY), G = o.getFeatureLayer(google.maps.FeatureType.ADMINISTRATIVE_AREA_LEVEL_1);
|
|
33481
|
+
O ? (W.style = null, G.style = null, W.style = (J) => {
|
|
33482
|
+
if (j.includes(J.feature.placeId))
|
|
33483
|
+
return F;
|
|
33484
|
+
}, G.style = (J) => {
|
|
33485
|
+
if (j.includes(J.feature.placeId))
|
|
33486
|
+
return F;
|
|
33487
|
+
}) : (W.style = (J) => {
|
|
33488
|
+
if (q.includes(J.feature.placeId))
|
|
33489
|
+
return F;
|
|
33490
|
+
}, G.style = (J) => {
|
|
33491
|
+
if (q.includes(J.feature.placeId))
|
|
33492
|
+
return F;
|
|
33490
33493
|
});
|
|
33491
33494
|
}
|
|
33492
|
-
function Te(O,
|
|
33493
|
-
oe.value && (
|
|
33495
|
+
function Te(O, F) {
|
|
33496
|
+
oe.value && (X(() => o.setCenter(oe.value.center)), X(() => o.setZoom(oe.value.zoom))), ae.value = "", me(O, F);
|
|
33494
33497
|
}
|
|
33495
|
-
function me(O,
|
|
33496
|
-
ve(), _.value = O,
|
|
33498
|
+
function me(O, F) {
|
|
33499
|
+
ve(), _.value = O, Q[O].includedType && V.value.add(Q[O].includedType), Object.values(Q[O].subCategory).forEach(
|
|
33497
33500
|
(j) => V.value.add(j.includedType)
|
|
33498
|
-
), Object.values(
|
|
33501
|
+
), Object.values(Q[O].subCategory).forEach(
|
|
33499
33502
|
(j) => {
|
|
33500
33503
|
j.excludedType && T.value.add(j.excludedType);
|
|
33501
33504
|
}
|
|
33502
33505
|
), V.value = new Set(Array.from(V.value).flat()), T.value = new Set(Array.from(T.value).flat()), V.value.forEach((j) => {
|
|
33503
33506
|
T.value.has(j) && T.value.delete(j);
|
|
33504
|
-
}), S.value =
|
|
33507
|
+
}), S.value = Q[O], R.value = F, _e({
|
|
33505
33508
|
includedTypes: Array.from(V.value),
|
|
33506
33509
|
excludedTypes: Array.from(T.value)
|
|
33507
33510
|
});
|
|
33508
33511
|
const q = Object.fromEntries(
|
|
33509
|
-
|
|
33512
|
+
Z.map((j) => [j.id, j.label])
|
|
33510
33513
|
);
|
|
33511
|
-
|
|
33514
|
+
E.value = `${q[O]} ${ae.value}`, p.value = E.value, I.showCategories = !0, fe.value = !1;
|
|
33512
33515
|
}
|
|
33513
|
-
function ge(O,
|
|
33516
|
+
function ge(O, F) {
|
|
33514
33517
|
const q = ref([]), j = ref();
|
|
33515
33518
|
return O.forEach(() => {
|
|
33516
|
-
|
|
33517
|
-
|
|
33518
|
-
}), Object.values(q.value).forEach((
|
|
33519
|
-
Object.values(
|
|
33520
|
-
|
|
33519
|
+
Z.forEach((W) => {
|
|
33520
|
+
W.id === _.value && (q.value = W);
|
|
33521
|
+
}), Object.values(q.value).forEach((W) => {
|
|
33522
|
+
Object.values(W).forEach((G) => {
|
|
33523
|
+
F === G.id && (j.value = G.label);
|
|
33521
33524
|
});
|
|
33522
33525
|
});
|
|
33523
33526
|
}), j;
|
|
33524
33527
|
}
|
|
33525
33528
|
function we() {
|
|
33526
|
-
|
|
33529
|
+
N.value.forEach((O) => {
|
|
33527
33530
|
C.value.has(O) && C.value.delete(O);
|
|
33528
33531
|
});
|
|
33529
33532
|
}
|
|
33530
33533
|
function xe(O, {
|
|
33531
|
-
includeTypes:
|
|
33534
|
+
includeTypes: F = !1,
|
|
33532
33535
|
excludeTypes: q = !1,
|
|
33533
33536
|
removeIncludedTypes: j = !1,
|
|
33534
|
-
removeExcludedTypes:
|
|
33537
|
+
removeExcludedTypes: W = !1
|
|
33535
33538
|
} = {}) {
|
|
33536
|
-
var
|
|
33537
|
-
const
|
|
33538
|
-
|
|
33539
|
-
|
|
33540
|
-
}), (q ||
|
|
33541
|
-
q && C.value.add(te),
|
|
33539
|
+
var J;
|
|
33540
|
+
const G = B.value.get(O);
|
|
33541
|
+
F && G.includedTypes.forEach((te) => {
|
|
33542
|
+
F && N.value.add(te), j && N.value.delete(te);
|
|
33543
|
+
}), (q || W) && ((J = G.excludedTypes) == null || J.forEach((te) => {
|
|
33544
|
+
q && C.value.add(te), W && C.value.delete(te);
|
|
33542
33545
|
}));
|
|
33543
33546
|
}
|
|
33544
|
-
function Le(O,
|
|
33545
|
-
oe.value && (
|
|
33547
|
+
function Le(O, F) {
|
|
33548
|
+
oe.value && (X(() => o.setCenter(oe.value.center)), X(() => o.setZoom(oe.value.zoom))), ae.value = "", De(O, F);
|
|
33546
33549
|
}
|
|
33547
|
-
function De(O,
|
|
33548
|
-
if (P.value =
|
|
33549
|
-
|
|
33550
|
+
function De(O, F) {
|
|
33551
|
+
if (P.value = F, ae.value = "", O === "self-catering") {
|
|
33552
|
+
D.value = !0, Se(), b.value = /* @__PURE__ */ new Set(), b.value.add(O);
|
|
33550
33553
|
const q = ge(b.value, O).value;
|
|
33551
|
-
|
|
33552
|
-
} else b.value.has(O) ? (b.value.delete(O),
|
|
33554
|
+
E.value = q, ve(), p.value = `${E.value} ${ae.value}`, ke(), p.value = q;
|
|
33555
|
+
} else b.value.has(O) ? (b.value.delete(O), N.value = /* @__PURE__ */ new Set(), C.value = /* @__PURE__ */ new Set(), b.value.forEach((q) => {
|
|
33553
33556
|
xe(q, {
|
|
33554
33557
|
includeTypes: !0,
|
|
33555
33558
|
excludeTypes: !0
|
|
33556
33559
|
});
|
|
33557
33560
|
}), we(), L.value.delete(
|
|
33558
33561
|
ge(b.value, O).value
|
|
33559
|
-
), b.value.size === 0 ? (L.value = /* @__PURE__ */ new Set(), me(_.value,
|
|
33560
|
-
includedTypes: Array.from(
|
|
33562
|
+
), b.value.size === 0 ? (L.value = /* @__PURE__ */ new Set(), me(_.value, R.value)) : (_e({
|
|
33563
|
+
includedTypes: Array.from(N.value).flat(),
|
|
33561
33564
|
excludedTypes: Array.from(C.value).flat()
|
|
33562
|
-
}),
|
|
33565
|
+
}), E.value = Array.from(L.value).join(", "), p.value = E.value)) : (b.value.add(O), xe(O, {
|
|
33563
33566
|
includeTypes: !0,
|
|
33564
33567
|
excludeTypes: !0
|
|
33565
33568
|
}), we(), _e({
|
|
33566
|
-
includedTypes: Array.from(
|
|
33569
|
+
includedTypes: Array.from(N.value).flat(),
|
|
33567
33570
|
excludedTypes: Array.from(C.value).flat()
|
|
33568
33571
|
}), L.value.add(
|
|
33569
33572
|
ge(b.value, O).value
|
|
33570
|
-
),
|
|
33573
|
+
), E.value = `${Array.from(L.value).join(", ")} ${ae.value}`, p.value = E.value, I.showCategories = !0);
|
|
33571
33574
|
}
|
|
33572
33575
|
async function _e({
|
|
33573
33576
|
includedTypes: O = [],
|
|
33574
|
-
excludedTypes:
|
|
33577
|
+
excludedTypes: F = []
|
|
33575
33578
|
} = {}) {
|
|
33576
33579
|
pe(), Se(), Y += 1;
|
|
33577
33580
|
const q = Y;
|
|
33578
|
-
I.filterUsesCount += 1,
|
|
33579
|
-
const j = o.getBounds(),
|
|
33580
|
-
u.includedTypes = O, u.excludedTypes =
|
|
33581
|
+
I.filterUsesCount += 1, $.value = "nearby";
|
|
33582
|
+
const j = o.getBounds(), W = j.getNorthEast(), G = j.getSouthWest(), J = google.maps.geometry.spherical.computeDistanceBetween(W, G), te = Math.min(J / 2, 25e3);
|
|
33583
|
+
u.includedTypes = O, u.excludedTypes = F ?? [], u.maxResultCount = NUMBER_OF_RESULTS, u.locationRestriction = {
|
|
33581
33584
|
center: o.getCenter(),
|
|
33582
33585
|
radius: te
|
|
33583
33586
|
}, l.style.display = "block", l.addEventListener("gmp-load", () => {
|
|
@@ -33598,11 +33601,11 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33598
33601
|
async function ke() {
|
|
33599
33602
|
pe(), ve(), Y += 1;
|
|
33600
33603
|
const O = Y;
|
|
33601
|
-
I.searchesCount += 1,
|
|
33602
|
-
(
|
|
33603
|
-
) ? "lodging" : null, d.textQuery = `${
|
|
33604
|
-
O === Y && ($e(O),
|
|
33605
|
-
search_query:
|
|
33604
|
+
I.searchesCount += 1, $.value = "text", E.value = p.value.trim(), E.value && (D.value ? (d.locationBias = null, d.locationRestriction = o.getBounds()) : (d.locationRestriction = null, d.locationBias = o.getCenter()), d.includedType = A.value.some(
|
|
33605
|
+
(F) => E.value.toLowerCase().includes(F)
|
|
33606
|
+
) ? "lodging" : null, d.textQuery = `${E.value} in Scotland`, d.maxResultCount = NUMBER_OF_RESULTS, c.style.display = "block", c.addEventListener("gmp-load", () => {
|
|
33607
|
+
O === Y && ($e(O), D.value = !1, n.createDataLayerObject("googleMapSearchEvent", {
|
|
33608
|
+
search_query: E.value,
|
|
33606
33609
|
search_map_location: o.getCenter().toString(),
|
|
33607
33610
|
search_results_count: c.places.length,
|
|
33608
33611
|
search_usage_index: I.searchesCount
|
|
@@ -33612,63 +33615,63 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33612
33615
|
}), I.showDestinations = !1, I.showCategories = !0);
|
|
33613
33616
|
}
|
|
33614
33617
|
async function $e(O) {
|
|
33615
|
-
const { AdvancedMarkerElement:
|
|
33618
|
+
const { AdvancedMarkerElement: F } = await importLibrary("marker"), { LatLngBounds: q } = await importLibrary("core");
|
|
33616
33619
|
if (O !== Y) return;
|
|
33617
33620
|
const j = ref();
|
|
33618
|
-
|
|
33619
|
-
const
|
|
33620
|
-
j.value.places && (j.value.places.forEach((
|
|
33621
|
-
const
|
|
33622
|
-
|
|
33621
|
+
$.value === "nearby" ? j.value = l : $.value === "text" ? j.value = c : console.error("Unrecognised Search type"), j.value.places.length === 0 ? (z.value = !0, j.value.style.display = "none") : (z.value = !1, j.value.style.display = "block");
|
|
33622
|
+
const W = new q();
|
|
33623
|
+
j.value.places && (j.value.places.forEach((G) => {
|
|
33624
|
+
const J = document.createElement("div");
|
|
33625
|
+
J.classList.add("vs-map-marker");
|
|
33623
33626
|
const te = document.createElement("i");
|
|
33624
|
-
te.classList.add("fa-solid", "fa-location-dot"),
|
|
33625
|
-
const ie = new
|
|
33627
|
+
te.classList.add("fa-solid", "fa-location-dot"), J.appendChild(te);
|
|
33628
|
+
const ie = new F({
|
|
33626
33629
|
map: o,
|
|
33627
|
-
position:
|
|
33628
|
-
content:
|
|
33630
|
+
position: G.location,
|
|
33631
|
+
content: J,
|
|
33629
33632
|
title: "Map pin"
|
|
33630
33633
|
});
|
|
33631
33634
|
ie.addEventListener("gmp-placeclick", () => {
|
|
33632
|
-
ye(
|
|
33635
|
+
ye(G);
|
|
33633
33636
|
}), ie.addListener("click", () => {
|
|
33634
|
-
ye(
|
|
33637
|
+
ye(G);
|
|
33635
33638
|
}), ie.metadata = {
|
|
33636
|
-
id:
|
|
33637
|
-
}, v[
|
|
33639
|
+
id: G.id
|
|
33640
|
+
}, v[G.id] = ie, W.extend(G.location), j.value.places.length === 1 ? (X(() => o.setCenter(
|
|
33638
33641
|
{
|
|
33639
|
-
lat:
|
|
33640
|
-
lng:
|
|
33642
|
+
lat: G.location.lat(),
|
|
33643
|
+
lng: G.location.lng()
|
|
33641
33644
|
}
|
|
33642
|
-
)),
|
|
33645
|
+
)), X(() => o.setZoom(14)), X(() => o.fitBounds(G.viewport))) : (X(() => o.setCenter(W.getCenter())), X(() => o.fitBounds(W)));
|
|
33643
33646
|
}), oe.value = le(o));
|
|
33644
33647
|
}
|
|
33645
33648
|
async function Ce() {
|
|
33646
33649
|
const { AdvancedMarkerElement: O } = await importLibrary("marker");
|
|
33647
|
-
Be(), r.value.forEach((
|
|
33650
|
+
Be(), r.value.forEach((F) => {
|
|
33648
33651
|
const q = document.createElement("div");
|
|
33649
33652
|
q.classList.add("vs-map-marker");
|
|
33650
33653
|
const j = document.createElement("i");
|
|
33651
33654
|
j.classList.add("fa-solid", "fa-location-dot"), q.appendChild(j);
|
|
33652
|
-
const
|
|
33655
|
+
const W = new O({
|
|
33653
33656
|
map: o,
|
|
33654
33657
|
position: {
|
|
33655
|
-
lat:
|
|
33656
|
-
lng:
|
|
33658
|
+
lat: F.properties.locationCentre.latitude,
|
|
33659
|
+
lng: F.properties.locationCentre.longitude
|
|
33657
33660
|
},
|
|
33658
33661
|
content: q,
|
|
33659
|
-
title:
|
|
33662
|
+
title: F.properties.title
|
|
33660
33663
|
});
|
|
33661
|
-
|
|
33664
|
+
W.addListener("gmp-click", () => Ne(F)), v[F.properties.title] = W;
|
|
33662
33665
|
});
|
|
33663
33666
|
}
|
|
33664
|
-
function pe(O,
|
|
33665
|
-
I.showCategories = !1, Be(),
|
|
33667
|
+
function pe(O, F) {
|
|
33668
|
+
I.showCategories = !1, Be(), $.value = "", l.style.display = "none", c.style.display = "none", d.textQuery = null, M.value = !1, g && g.close && g.close(), z.value = void 0, O && (Se(), ve(), he("clear_all"), Ce(), I.showDestinations = !0), F && (X(() => o.setCenter(t.center)), X(() => o.setZoom(t.zoom)), X(() => o.fitBounds(ee)), he("reset_map"));
|
|
33666
33669
|
}
|
|
33667
33670
|
function Se() {
|
|
33668
|
-
|
|
33671
|
+
E.value = null, p.value = "";
|
|
33669
33672
|
}
|
|
33670
33673
|
function ve() {
|
|
33671
|
-
_.value = void 0, b.value = /* @__PURE__ */ new Set(), V.value = /* @__PURE__ */ new Set(), T.value = /* @__PURE__ */ new Set(),
|
|
33674
|
+
_.value = void 0, b.value = /* @__PURE__ */ new Set(), V.value = /* @__PURE__ */ new Set(), T.value = /* @__PURE__ */ new Set(), N.value = /* @__PURE__ */ new Set(), C.value = /* @__PURE__ */ new Set(), L.value = /* @__PURE__ */ new Set(), R.value = void 0, P.value = void 0;
|
|
33672
33675
|
}
|
|
33673
33676
|
function Be() {
|
|
33674
33677
|
for (const O in v)
|
|
@@ -33685,27 +33688,27 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33685
33688
|
}), g.open({
|
|
33686
33689
|
map: o
|
|
33687
33690
|
}), google.maps.event.addListenerOnce(o, "idle", () => {
|
|
33688
|
-
o.getZoom() > MAX_ZOOM &&
|
|
33689
|
-
}),
|
|
33691
|
+
o.getZoom() > MAX_ZOOM && X(() => o.setZoom(MAX_ZOOM)), he("card_open", O);
|
|
33692
|
+
}), X(() => o.setCenter(O.location));
|
|
33690
33693
|
}
|
|
33691
|
-
async function he(O,
|
|
33692
|
-
let q = "", j = "",
|
|
33693
|
-
|
|
33694
|
+
async function he(O, F) {
|
|
33695
|
+
let q = "", j = "", W = "", G = "";
|
|
33696
|
+
F && (await F.fetchFields({
|
|
33694
33697
|
fields: [
|
|
33695
33698
|
"displayName",
|
|
33696
33699
|
"primaryType",
|
|
33697
33700
|
"rating",
|
|
33698
33701
|
"websiteURI"
|
|
33699
33702
|
]
|
|
33700
|
-
}), q =
|
|
33703
|
+
}), q = F.displayName, j = F.rating, W = F.websiteURI, G = F.primaryType), n.createDataLayerObject("googleMapInteractionEvent", {
|
|
33701
33704
|
interaction_type: O,
|
|
33702
33705
|
search_query: p.value.trim(),
|
|
33703
33706
|
map_location: o.getCenter().toString(),
|
|
33704
33707
|
visible_attractions_count: k,
|
|
33705
33708
|
card_attraction_name: q,
|
|
33706
|
-
card_attraction_category:
|
|
33709
|
+
card_attraction_category: G,
|
|
33707
33710
|
card_attraction_rating: j,
|
|
33708
|
-
card_attraction_url:
|
|
33711
|
+
card_attraction_url: W,
|
|
33709
33712
|
interaction_timestamp_ms: Date.now()
|
|
33710
33713
|
}), Ve(O);
|
|
33711
33714
|
}
|
|
@@ -33721,16 +33724,16 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33721
33724
|
function Me() {
|
|
33722
33725
|
const O = o.getBounds();
|
|
33723
33726
|
if (!O) return 0;
|
|
33724
|
-
let
|
|
33727
|
+
let F = 0;
|
|
33725
33728
|
for (let q = 0; q < Object.keys(v).length; q++) {
|
|
33726
|
-
const
|
|
33727
|
-
O.contains(
|
|
33729
|
+
const W = v[Object.keys(v)[q]].position;
|
|
33730
|
+
O.contains(W) && (F += 1);
|
|
33728
33731
|
}
|
|
33729
|
-
return
|
|
33732
|
+
return F;
|
|
33730
33733
|
}
|
|
33731
33734
|
const ae = ref("");
|
|
33732
33735
|
function Ne(O) {
|
|
33733
|
-
I.showDestinations = !1, ae.value = O.properties.title,
|
|
33736
|
+
I.showDestinations = !1, ae.value = O.properties.title, X(() => o.fitBounds(
|
|
33734
33737
|
// eslint-disable-next-line no-undef
|
|
33735
33738
|
new google.maps.LatLngBounds(
|
|
33736
33739
|
// eslint-disable-next-line no-undef
|
|
@@ -33744,7 +33747,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33744
33747
|
O.properties.viewport.high.longitude
|
|
33745
33748
|
)
|
|
33746
33749
|
)
|
|
33747
|
-
)),
|
|
33750
|
+
)), X(() => o.setCenter(
|
|
33748
33751
|
// eslint-disable-next-line no-undef
|
|
33749
33752
|
new google.maps.LatLng(
|
|
33750
33753
|
O.properties.locationCentre.latitude,
|
|
@@ -33755,19 +33758,19 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33755
33758
|
function Ie() {
|
|
33756
33759
|
if (I.showDestinations = !1, I.sidebarOpen = !0, ae.value = "", fe.value = !1, b.value.size > 0) {
|
|
33757
33760
|
_e({
|
|
33758
|
-
includedTypes: Array.from(
|
|
33761
|
+
includedTypes: Array.from(N.value),
|
|
33759
33762
|
excludedTypes: Array.from(C.value)
|
|
33760
33763
|
});
|
|
33761
33764
|
const O = [];
|
|
33762
|
-
b.value.forEach((
|
|
33765
|
+
b.value.forEach((F) => {
|
|
33763
33766
|
O.push(
|
|
33764
|
-
ge(b.value,
|
|
33767
|
+
ge(b.value, F).value
|
|
33765
33768
|
);
|
|
33766
|
-
}),
|
|
33769
|
+
}), E.value = O.join(", "), p.value = E.value, I.showCategories = !0;
|
|
33767
33770
|
return;
|
|
33768
33771
|
}
|
|
33769
33772
|
if (_.value) {
|
|
33770
|
-
me(_.value,
|
|
33773
|
+
me(_.value, R.value);
|
|
33771
33774
|
return;
|
|
33772
33775
|
}
|
|
33773
33776
|
if (p.value) {
|
|
@@ -33776,23 +33779,23 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33776
33779
|
}
|
|
33777
33780
|
me("things-to-do", 2);
|
|
33778
33781
|
}
|
|
33779
|
-
return (O,
|
|
33782
|
+
return (O, F) => (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
33780
33783
|
createElementVNode("div", {
|
|
33781
33784
|
class: normalizeClass(["vs-map__container", unref(H) ? "d-none" : ""])
|
|
33782
33785
|
}, [
|
|
33783
33786
|
createElementVNode("div", _hoisted_2, [
|
|
33784
33787
|
createVNode(_sfc_main$1, {
|
|
33785
|
-
categories: unref(
|
|
33786
|
-
"category-data": unref(
|
|
33787
|
-
query:
|
|
33788
|
+
categories: unref(Z),
|
|
33789
|
+
"category-data": unref(Q),
|
|
33790
|
+
query: E.value,
|
|
33788
33791
|
"selected-category": _.value,
|
|
33789
33792
|
"selected-subcategories": b.value,
|
|
33790
33793
|
"sidebar-labels": de,
|
|
33791
|
-
onCategorySelected:
|
|
33792
|
-
onResetMap:
|
|
33793
|
-
onResetLocation:
|
|
33794
|
+
onCategorySelected: F[1] || (F[1] = (q) => Te(q.id, q.key)),
|
|
33795
|
+
onResetMap: F[2] || (F[2] = (q) => pe(!0)),
|
|
33796
|
+
onResetLocation: F[3] || (F[3] = (q) => pe(!0, !0)),
|
|
33794
33797
|
onSearchInputChanged: ke,
|
|
33795
|
-
onSubcategorySelected:
|
|
33798
|
+
onSubcategorySelected: F[4] || (F[4] = (q) => Le(q.id, q.key))
|
|
33796
33799
|
}, {
|
|
33797
33800
|
"vs-map-sidebar-search-results": withCtx(() => [
|
|
33798
33801
|
z.value || t.alertText && z.value === !1 ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
@@ -33806,7 +33809,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33806
33809
|
createTextVNode(toDisplayString(e.noResultsMessage) + " ", 1),
|
|
33807
33810
|
createElementVNode("a", {
|
|
33808
33811
|
href: "#",
|
|
33809
|
-
onClick:
|
|
33812
|
+
onClick: F[0] || (F[0] = withModifiers((q) => pe(!0, !0), ["prevent"]))
|
|
33810
33813
|
}, toDisplayString(e.resetMapNoResultsMessage), 1)
|
|
33811
33814
|
])
|
|
33812
33815
|
]),
|
|
@@ -33826,7 +33829,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33826
33829
|
}))
|
|
33827
33830
|
])) : createCommentVNode("", !0),
|
|
33828
33831
|
(openBlock(), createBlock(Suspense, null, {
|
|
33829
|
-
default: withCtx(() => [...
|
|
33832
|
+
default: withCtx(() => [...F[5] || (F[5] = [
|
|
33830
33833
|
createElementVNode("div", { id: "search-container" }, [
|
|
33831
33834
|
createElementVNode("gmp-place-search", {
|
|
33832
33835
|
id: "nearbySearch",
|
|
@@ -33881,7 +33884,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33881
33884
|
createElementVNode("div", _hoisted_4, [
|
|
33882
33885
|
createElementVNode("div", _hoisted_5, null, 512),
|
|
33883
33886
|
(openBlock(), createBlock(Suspense, null, {
|
|
33884
|
-
default: withCtx(() => [...
|
|
33887
|
+
default: withCtx(() => [...F[6] || (F[6] = [
|
|
33885
33888
|
createElementVNode("div", { id: "detail-container" }, [
|
|
33886
33889
|
createElementVNode("gmp-place-details", {
|
|
33887
33890
|
id: "placeDetails",
|
|
@@ -33926,7 +33929,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33926
33929
|
])) : createCommentVNode("", !0)
|
|
33927
33930
|
])
|
|
33928
33931
|
], 2),
|
|
33929
|
-
unref(H) &&
|
|
33932
|
+
unref(H) && U.value === "noCookie" ? (openBlock(), createBlock(unref(VsWarning), {
|
|
33930
33933
|
key: 0,
|
|
33931
33934
|
type: "cookie",
|
|
33932
33935
|
class: normalizeClass(["vs-map__error vs-map__error--no-cookies", unref(H) ? "d-block" : "d-none"]),
|