@visitscotland/component-library 5.59.1 → 5.59.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,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
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-ij7CWJOg.mjs";
3
- import { a7 as qe } from "./LoadingSpinner-ij7CWJOg.mjs";
3
+ import { a7 as je } from "./LoadingSpinner-ij7CWJOg.mjs";
4
4
  import { defineStore, storeToRefs } from "pinia";
5
5
  const _sfc_main$2E = {
6
6
  name: "VsAccordion",
@@ -1756,13 +1756,13 @@ const MAX_RESET_COUNT = 50, computePosition$1 = async (e, n, t) => {
1756
1756
  var E;
1757
1757
  const R = (E = I.filter((B) => {
1758
1758
  if (T) {
1759
- const P = getSideAxis(B.placement);
1760
- return P === _ || // Create a bias to the `y` side axis due to horizontal
1759
+ const O = getSideAxis(B.placement);
1760
+ return O === _ || // Create a bias to the `y` side axis due to horizontal
1761
1761
  // reading directions favoring greater width.
1762
- P === "y";
1762
+ O === "y";
1763
1763
  }
1764
1764
  return !0;
1765
- }).map((B) => [B.placement, B.overflows.filter((P) => P > 0).reduce((P, O) => P + O, 0)]).sort((B, P) => B[1] - P[1])[0]) == null ? void 0 : E[0];
1765
+ }).map((B) => [B.placement, B.overflows.filter((O) => O > 0).reduce((O, P) => O + P, 0)]).sort((B, O) => B[1] - O[1])[0]) == null ? void 0 : E[0];
1766
1766
  R && (D = R);
1767
1767
  break;
1768
1768
  }
@@ -6246,19 +6246,19 @@ function formatLocale(e) {
6246
6246
  }
6247
6247
  }
6248
6248
  _ && !v && (w = n(w, 1 / 0));
6249
- var B = M.length + w.length + E.length, P = B < k ? new Array(k - B + 1).join(f) : "";
6250
- switch (_ && v && (w = n(P + w, P.length ? k - E.length : 1 / 0), P = ""), m) {
6249
+ var B = M.length + w.length + E.length, O = B < k ? new Array(k - B + 1).join(f) : "";
6250
+ switch (_ && v && (w = n(O + w, O.length ? k - E.length : 1 / 0), O = ""), m) {
6251
6251
  case "<":
6252
- w = M + w + E + P;
6252
+ w = M + w + E + O;
6253
6253
  break;
6254
6254
  case "=":
6255
- w = M + P + w + E;
6255
+ w = M + O + w + E;
6256
6256
  break;
6257
6257
  case "^":
6258
- w = P.slice(0, B = P.length >> 1) + M + w + E + P.slice(B);
6258
+ w = O.slice(0, B = O.length >> 1) + M + w + E + O.slice(B);
6259
6259
  break;
6260
6260
  default:
6261
- w = P + M + w + E;
6261
+ w = O + M + w + E;
6262
6262
  break;
6263
6263
  }
6264
6264
  return r(w);
@@ -6584,17 +6584,17 @@ function arc() {
6584
6584
  var $ = asin(F / f * sin(C)), D = asin(F / m * sin(C));
6585
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 R = m * cos(_), B = m * sin(_), P = f * cos(V), O = f * sin(V);
6587
+ var R = m * cos(_), B = m * sin(_), O = f * cos(V), P = f * sin(V);
6588
6588
  if (I > epsilon$2) {
6589
- var H = m * cos(b), U = m * sin(b), Q = f * cos(S), te = f * sin(S), Y;
6589
+ var H = m * cos(b), U = m * sin(b), Q = f * cos(S), ne = f * sin(S), Y;
6590
6590
  if (v < pi$1)
6591
- if (Y = intersect(R, B, Q, te, H, U, P, O)) {
6592
- var Z = R - Y[0], ee = B - Y[1], de = H - Y[0], le = U - Y[1], ge = 1 / sin(acos((Z * de + ee * le) / (sqrt(Z * Z + ee * ee) * sqrt(de * de + le * le))) / 2), ce = sqrt(Y[0] * Y[0] + Y[1] * Y[1]);
6593
- w = min(I, (f - ce) / (ge - 1)), M = min(I, (m - ce) / (ge + 1));
6591
+ if (Y = intersect(R, B, Q, ne, H, U, O, P)) {
6592
+ var Z = R - Y[0], ee = B - Y[1], de = H - Y[0], ie = U - Y[1], ge = 1 / sin(acos((Z * de + ee * ie) / (sqrt(Z * Z + ee * ee) * sqrt(de * de + ie * ie))) / 2), le = sqrt(Y[0] * Y[0] + Y[1] * Y[1]);
6593
+ w = min(I, (f - le) / (ge - 1)), M = min(I, (m - le) / (ge + 1));
6594
6594
  } else
6595
6595
  w = M = 0;
6596
6596
  }
6597
- N > epsilon$2 ? M > epsilon$2 ? (E = cornerTangents(Q, te, R, B, m, M, k), L = cornerTangents(H, U, P, O, m, M, k), i.moveTo(E.cx + E.x01, E.cy + E.y01), M < I ? 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(R, B), i.arc(0, 0, m, _, b, !k)) : i.moveTo(R, B), !(f > epsilon$2) || !(T > epsilon$2) ? i.lineTo(P, O) : w > epsilon$2 ? (E = cornerTangents(P, O, H, U, f, -w, k), L = cornerTangents(R, B, Q, te, f, -w, k), i.lineTo(E.cx + E.x01, E.cy + E.y01), w < I ? 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);
6597
+ N > epsilon$2 ? M > epsilon$2 ? (E = cornerTangents(Q, ne, R, B, m, M, k), L = cornerTangents(H, U, O, P, m, M, k), i.moveTo(E.cx + E.x01, E.cy + E.y01), M < I ? 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(R, B), i.arc(0, 0, m, _, b, !k)) : i.moveTo(R, B), !(f > epsilon$2) || !(T > epsilon$2) ? i.lineTo(O, P) : w > epsilon$2 ? (E = cornerTangents(O, P, H, U, f, -w, k), L = cornerTangents(R, B, Q, ne, f, -w, k), i.lineTo(E.cx + E.x01, E.cy + E.y01), w < I ? 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
  }
@@ -10006,14 +10006,14 @@ function setValidations(e) {
10006
10006
  config: m,
10007
10007
  validationGroups: p
10008
10008
  } = sortValidations(n), g = _objectSpread2$1(_objectSpread2$1({}, i), m), v = s ? computed$1(() => {
10009
- const O = unref(t);
10010
- return O ? unref(O[s]) : void 0;
10009
+ const P = unref(t);
10010
+ return P ? unref(P[s]) : void 0;
10011
10011
  }) : t, k = _objectSpread2$1({}, unref(c) || {}), _ = computed$1(() => {
10012
- const O = unref(c);
10013
- return s ? O ? unref(O[s]) : void 0 : O;
10012
+ const P = unref(c);
10013
+ return s ? P ? unref(P[s]) : void 0 : P;
10014
10014
  }), b = createValidationResults(u, v, s, o, d, g, l, _, t), S = collectNestedValidationResults(f, v, d, o, g, l, _), V = {};
10015
- p && Object.entries(p).forEach((O) => {
10016
- let [H, U] = O;
10015
+ p && Object.entries(p).forEach((P) => {
10016
+ let [H, U] = P;
10017
10017
  V[H] = {
10018
10018
  $invalid: gatherBooleanGroupProperties(U, S, "$invalid"),
10019
10019
  $error: gatherBooleanGroupProperties(U, S, "$error"),
@@ -10035,33 +10035,33 @@ function setValidations(e) {
10035
10035
  $commit: $
10036
10036
  } = createMetaFields(b, S, r), D = s ? computed$1({
10037
10037
  get: () => unref(v),
10038
- set: (O) => {
10038
+ set: (P) => {
10039
10039
  T.value = !0;
10040
10040
  const H = unref(t), U = unref(c);
10041
- U && (U[s] = k[s]), isRef(H[s]) ? H[s].value = O : H[s] = O;
10041
+ U && (U[s] = k[s]), isRef(H[s]) ? H[s].value = P : H[s] = P;
10042
10042
  }
10043
10043
  }) : null;
10044
10044
  s && g.$autoDirty && watch(v, () => {
10045
10045
  T.value || M();
10046
- const O = unref(c);
10047
- O && (O[s] = k[s]);
10046
+ const P = unref(c);
10047
+ P && (P[s] = k[s]);
10048
10048
  }, {
10049
10049
  flush: "sync"
10050
10050
  });
10051
10051
  async function R() {
10052
- return M(), g.$rewardEarly && ($(), await nextTick$1()), await nextTick$1(), new Promise((O) => {
10053
- if (!w.value) return O(!C.value);
10052
+ return M(), g.$rewardEarly && ($(), await nextTick$1()), await nextTick$1(), new Promise((P) => {
10053
+ if (!w.value) return P(!C.value);
10054
10054
  const H = watch(w, () => {
10055
- O(!C.value), H();
10055
+ P(!C.value), H();
10056
10056
  });
10057
10057
  });
10058
10058
  }
10059
- function B(O) {
10060
- return (r.value || {})[O];
10059
+ function B(P) {
10060
+ return (r.value || {})[P];
10061
10061
  }
10062
- function P() {
10063
- isRef(c) ? c.value = k : Object.keys(k).length === 0 ? Object.keys(c).forEach((O) => {
10064
- delete c[O];
10062
+ function O() {
10063
+ isRef(c) ? c.value = k : Object.keys(k).length === 0 ? Object.keys(c).forEach((P) => {
10064
+ delete c[P];
10065
10065
  }) : Object.assign(c, k);
10066
10066
  }
10067
10067
  return reactive(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, b), {}, {
@@ -10080,7 +10080,7 @@ function setValidations(e) {
10080
10080
  $commit: $
10081
10081
  }, r && {
10082
10082
  $getResultsForChild: B,
10083
- $clearExternalResults: P,
10083
+ $clearExternalResults: O,
10084
10084
  $validationGroups: V
10085
10085
  }), S));
10086
10086
  }
@@ -13208,15 +13208,15 @@ function updateSlides() {
13208
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 $ = n(M, "width"), D = n(M, "padding-left"), R = n(M, "padding-right"), B = n(M, "margin-left"), P = n(M, "margin-right"), O = M.getPropertyValue("box-sizing");
13212
- if (O && O === "border-box")
13213
- C = $ + B + P;
13211
+ const $ = n(M, "width"), D = n(M, "padding-left"), R = n(M, "padding-right"), B = n(M, "margin-left"), O = n(M, "margin-right"), P = M.getPropertyValue("box-sizing");
13212
+ if (P && P === "border-box")
13213
+ C = $ + B + O;
13214
13214
  else {
13215
13215
  const {
13216
13216
  clientWidth: H,
13217
13217
  offsetWidth: U
13218
13218
  } = w;
13219
- C = $ + D + R + B + P + (U - H);
13219
+ C = $ + D + R + B + O + (U - H);
13220
13220
  }
13221
13221
  }
13222
13222
  E && (w.style.transform = E), L && (w.style.webkitTransform = L), t.roundLengths && (C = Math.floor(C));
@@ -13958,21 +13958,21 @@ function loopFix({
13958
13958
  if (R < V) {
13959
13959
  L = Math.max(V - R, S);
13960
13960
  for (let B = 0; B < V - R; B += 1) {
13961
- const P = B - Math.floor(B / F) * F;
13961
+ const O = B - Math.floor(B / F) * F;
13962
13962
  if (T) {
13963
- const O = F - P - 1;
13963
+ const P = F - O - 1;
13964
13964
  for (let H = c.length - 1; H >= 0; H -= 1)
13965
- c[H].column === O && N.push(H);
13965
+ c[H].column === P && N.push(H);
13966
13966
  } else
13967
- N.push(F - P - 1);
13967
+ N.push(F - O - 1);
13968
13968
  }
13969
13969
  } else if (R + b > F - V) {
13970
13970
  $ = Math.max(R - (F - V * 2), S), I && ($ = Math.max($, b - F + k + 1));
13971
13971
  for (let B = 0; B < $; B += 1) {
13972
- const P = B - Math.floor(B / F) * F;
13973
- T ? c.forEach((O, H) => {
13974
- O.column === P && C.push(H);
13975
- }) : C.push(P);
13972
+ const O = B - Math.floor(B / F) * F;
13973
+ T ? c.forEach((P, H) => {
13974
+ P.column === O && C.push(H);
13975
+ }) : C.push(O);
13976
13976
  }
13977
13977
  }
13978
13978
  if (l.__preventObserver__ = !0, requestAnimationFrame(() => {
@@ -13981,21 +13981,21 @@ function loopFix({
13981
13981
  c[B].swiperLoopMoveDOM = !0, f.prepend(c[B]), c[B].swiperLoopMoveDOM = !1;
13982
13982
  }), M && C.forEach((B) => {
13983
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, P) => {
13985
- l.grid.updateSlide(P, B, l.slides);
13984
+ }), l.recalcSlides(), m.slidesPerView === "auto" ? l.updateSlides() : T && (N.length > 0 && E || C.length > 0 && M) && l.slides.forEach((B, O) => {
13985
+ l.grid.updateSlide(O, B, l.slides);
13986
13986
  }), m.watchSlidesProgress && l.updateSlidesOffset(), n) {
13987
13987
  if (N.length > 0 && E) {
13988
13988
  if (typeof e > "u") {
13989
- const B = l.slidesGrid[w], O = l.slidesGrid[w + L] - B;
13990
- i ? l.setTranslate(l.translate - O) : (l.slideTo(w + Math.ceil(L), 0, !1, !0), s && (l.touchEventsData.startTranslate = l.touchEventsData.startTranslate - O, l.touchEventsData.currentTranslate = l.touchEventsData.currentTranslate - O));
13989
+ const B = l.slidesGrid[w], P = l.slidesGrid[w + L] - B;
13990
+ i ? l.setTranslate(l.translate - P) : (l.slideTo(w + Math.ceil(L), 0, !1, !0), s && (l.touchEventsData.startTranslate = l.touchEventsData.startTranslate - P, l.touchEventsData.currentTranslate = l.touchEventsData.currentTranslate - P));
13991
13991
  } else if (s) {
13992
13992
  const B = T ? N.length / m.grid.rows : N.length;
13993
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 B = l.slidesGrid[w], O = l.slidesGrid[w - $] - B;
13998
- i ? l.setTranslate(l.translate - O) : (l.slideTo(w - $, 0, !1, !0), s && (l.touchEventsData.startTranslate = l.touchEventsData.startTranslate - O, l.touchEventsData.currentTranslate = l.touchEventsData.currentTranslate - O));
13997
+ const B = l.slidesGrid[w], P = l.slidesGrid[w - $] - B;
13998
+ i ? l.setTranslate(l.translate - P) : (l.slideTo(w - $, 0, !1, !0), s && (l.touchEventsData.startTranslate = l.touchEventsData.startTranslate - P, l.touchEventsData.currentTranslate = l.touchEventsData.currentTranslate - P));
13999
13999
  } else {
14000
14000
  const B = T ? C.length / m.grid.rows : C.length;
14001
14001
  l.slideTo(l.activeIndex - B, 0, !1, !0);
@@ -14009,10 +14009,10 @@ function loopFix({
14009
14009
  activeSlideIndex: a,
14010
14010
  byController: !0
14011
14011
  };
14012
- Array.isArray(l.controller.control) ? l.controller.control.forEach((P) => {
14013
- !P.destroyed && P.params.loop && P.loopFix({
14012
+ Array.isArray(l.controller.control) ? l.controller.control.forEach((O) => {
14013
+ !O.destroyed && O.params.loop && O.loopFix({
14014
14014
  ...B,
14015
- slideTo: P.params.slidesPerView === m.slidesPerView ? n : !1
14015
+ slideTo: O.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,
@@ -14684,7 +14684,7 @@ const prototypes = {
14684
14684
  checkOverflow: checkOverflow$1,
14685
14685
  classes
14686
14686
  }, extendedDefaults = {};
14687
- let Swiper$1 = class se {
14687
+ let Swiper$1 = class ae {
14688
14688
  constructor(...n) {
14689
14689
  let t, s;
14690
14690
  n.length === 1 && n[0].constructor && Object.prototype.toString.call(n[0]).slice(8, -1) === "Object" ? s = n[0] : [t, s] = n, s || (s = {}), s = extend$1({}, s), t && !s.el && (s.el = t);
@@ -14695,7 +14695,7 @@ let Swiper$1 = class se {
14695
14695
  const d = extend$1({}, s, {
14696
14696
  el: c
14697
14697
  });
14698
- l.push(new se(d));
14698
+ l.push(new ae(d));
14699
14699
  }), l;
14700
14700
  }
14701
14701
  const r = this;
@@ -14979,12 +14979,12 @@ let Swiper$1 = class se {
14979
14979
  return defaults;
14980
14980
  }
14981
14981
  static installModule(n) {
14982
- se.prototype.__modules__ || (se.prototype.__modules__ = []);
14983
- const t = se.prototype.__modules__;
14982
+ ae.prototype.__modules__ || (ae.prototype.__modules__ = []);
14983
+ const t = ae.prototype.__modules__;
14984
14984
  typeof n == "function" && t.indexOf(n) < 0 && t.push(n);
14985
14985
  }
14986
14986
  static use(n) {
14987
- return Array.isArray(n) ? (n.forEach((t) => se.installModule(t)), se) : (se.installModule(n), se);
14987
+ return Array.isArray(n) ? (n.forEach((t) => ae.installModule(t)), ae) : (ae.installModule(n), ae);
14988
14988
  }
14989
14989
  };
14990
14990
  Object.keys(prototypes).forEach((e) => {
@@ -16376,8 +16376,8 @@ function A11y({
16376
16376
  const D = $.target.closest(`.${e.params.slideClass}, swiper-slide`);
16377
16377
  if (!D || !e.slides.includes(D)) return;
16378
16378
  r = D;
16379
- const R = e.virtual && e.params.virtual.enabled, B = (R ? parseInt(D.getAttribute("data-swiper-slide-index"), 10) : e.slides.indexOf(D)) === e.activeIndex, P = e.params.watchSlidesProgress && e.visibleSlides && e.visibleSlides.includes(D);
16380
- B || P || $.sourceCapabilities && $.sourceCapabilities.firesTouchEvents || (e.isHorizontal() ? e.el.scrollLeft = 0 : e.el.scrollTop = 0, requestAnimationFrame(() => {
16379
+ const R = e.virtual && e.params.virtual.enabled, B = (R ? parseInt(D.getAttribute("data-swiper-slide-index"), 10) : e.slides.indexOf(D)) === e.activeIndex, O = e.params.watchSlidesProgress && e.visibleSlides && e.visibleSlides.includes(D);
16380
+ B || O || $.sourceCapabilities && $.sourceCapabilities.firesTouchEvents || (e.isHorizontal() ? e.el.scrollLeft = 0 : e.el.scrollTop = 0, requestAnimationFrame(() => {
16381
16381
  a || (e.params.loop ? e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(D.getAttribute("data-swiper-slide-index"))), 0) : R ? e.slideTo(e.getSlideIndexWhenGrid(parseInt(D.getAttribute("data-swiper-slide-index"), 10)), 0) : e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(D)), 0), a = !1);
16382
16382
  }));
16383
16383
  }, M = () => {
@@ -16385,8 +16385,8 @@ function A11y({
16385
16385
  $.itemRoleDescriptionMessage && f(e.slides, $.itemRoleDescriptionMessage), $.slideRole && u(e.slides, $.slideRole);
16386
16386
  const D = e.slides.length;
16387
16387
  $.slideLabelMessage && e.slides.forEach((R, B) => {
16388
- const P = e.params.loop ? parseInt(R.getAttribute("data-swiper-slide-index"), 10) : B, O = $.slideLabelMessage.replace(/\{\{index\}\}/, P + 1).replace(/\{\{slidesLength\}\}/, D);
16389
- m(R, O);
16388
+ const O = e.params.loop ? parseInt(R.getAttribute("data-swiper-slide-index"), 10) : B, P = $.slideLabelMessage.replace(/\{\{index\}\}/, O + 1).replace(/\{\{slidesLength\}\}/, D);
16389
+ m(R, P);
16390
16390
  });
16391
16391
  }, E = () => {
16392
16392
  const $ = e.params.a11y;
@@ -16400,10 +16400,10 @@ function A11y({
16400
16400
  }
16401
16401
  M();
16402
16402
  let {
16403
- nextEl: P,
16404
- prevEl: O
16403
+ nextEl: O,
16404
+ prevEl: P
16405
16405
  } = e.navigation ? e.navigation : {};
16406
- P = makeElementsArray(P), O = makeElementsArray(O), P && P.forEach((U) => N(U, B, $.nextSlideMessage)), O && O.forEach((U) => N(U, B, $.prevSlideMessage)), V() && makeElementsArray(e.pagination.el).forEach((Q) => {
16406
+ O = makeElementsArray(O), P = makeElementsArray(P), O && O.forEach((U) => N(U, B, $.nextSlideMessage)), P && P.forEach((U) => N(U, B, $.prevSlideMessage)), V() && makeElementsArray(e.pagination.el).forEach((Q) => {
16407
16407
  Q.addEventListener("keydown", _);
16408
16408
  }), getDocument().addEventListener("visibilitychange", I), e.el.addEventListener("focus", w, !0), e.el.addEventListener("pointerdown", C, !0), e.el.addEventListener("pointerup", F, !0);
16409
16409
  };
@@ -16413,8 +16413,8 @@ function A11y({
16413
16413
  nextEl: $,
16414
16414
  prevEl: D
16415
16415
  } = e.navigation ? e.navigation : {};
16416
- $ = makeElementsArray($), D = makeElementsArray(D), $ && $.forEach((B) => B.removeEventListener("keydown", _)), D && D.forEach((B) => B.removeEventListener("keydown", _)), V() && makeElementsArray(e.pagination.el).forEach((P) => {
16417
- P.removeEventListener("keydown", _);
16416
+ $ = makeElementsArray($), D = makeElementsArray(D), $ && $.forEach((B) => B.removeEventListener("keydown", _)), D && D.forEach((B) => B.removeEventListener("keydown", _)), V() && makeElementsArray(e.pagination.el).forEach((O) => {
16417
+ O.removeEventListener("keydown", _);
16418
16418
  }), getDocument().removeEventListener("visibilitychange", I), e.el && typeof e.el != "string" && (e.el.removeEventListener("focus", w, !0), e.el.removeEventListener("pointerdown", C, !0), e.el.removeEventListener("pointerup", F, !0));
16419
16419
  }
16420
16420
  t("beforeInit", () => {
@@ -27758,13 +27758,13 @@ const _hoisted_1$r = {
27758
27758
  }
27759
27759
  return "https://www.visitscotland.com";
27760
27760
  }), 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 = () => {
27761
- const B = getProductTypes(), P = [];
27762
- B.forEach((O) => {
27763
- P.push(O);
27764
- }), V.value = P;
27765
- }, N = computed$1(() => t.value ? [] : V.value.map((P) => ({
27766
- ...P,
27767
- text: getProductName(P.value, P.text)
27761
+ const B = getProductTypes(), O = [];
27762
+ B.forEach((P) => {
27763
+ O.push(P);
27764
+ }), V.value = O;
27765
+ }, N = computed$1(() => t.value ? [] : V.value.map((O) => ({
27766
+ ...O,
27767
+ text: getProductName(O.value, O.text)
27768
27768
  }))), C = async () => {
27769
27769
  const B = await getData(g);
27770
27770
  B && (v.value = B.data);
@@ -27774,11 +27774,11 @@ const _hoisted_1$r = {
27774
27774
  }, I = async () => {
27775
27775
  const B = await getData(k);
27776
27776
  B && (_.value = B.data);
27777
- }, w = (B, P) => {
27778
- P === "key" ? r.value = v.value.find((O) => O.key === B) : P === "id" ? r.value = v.value.find((O) => O.id === B) : r.value = v.value.find((O) => O.name === B.trim());
27777
+ }, w = (B, O) => {
27778
+ O === "key" ? r.value = v.value.find((P) => P.key === B) : O === "id" ? r.value = v.value.find((P) => P.id === B) : r.value = v.value.find((P) => P.name === B.trim());
27779
27779
  }, M = (B) => {
27780
- const P = B.value;
27781
- s.value = P, P === "tour" && (F(), I());
27780
+ const O = B.value;
27781
+ s.value = O, O === "tour" && (F(), I());
27782
27782
  }, E = () => d[n.defaultLocale] || "", L = () => {
27783
27783
  t.value = !0, nextTick$1(() => {
27784
27784
  t.value = !1, n.defaultLocation !== "" && c && w(n.defaultLocation, "id");
@@ -27795,13 +27795,13 @@ const _hoisted_1$r = {
27795
27795
  o.value = B ? "on" : "off";
27796
27796
  }, R = (B) => {
27797
27797
  i.value = !0;
27798
- const P = B.currentTarget;
27798
+ const O = B.currentTarget;
27799
27799
  setTimeout(function() {
27800
- P.submit();
27800
+ O.submit();
27801
27801
  }, 500);
27802
27802
  };
27803
- return (B, P) => {
27804
- var O, H, U, Q, te, Y;
27803
+ return (B, O) => {
27804
+ var P, H, U, Q, ne, Y;
27805
27805
  return openBlock(), createElementBlock("div", _hoisted_1$o, [
27806
27806
  t.value ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", _hoisted_2$i, [
27807
27807
  createElementVNode("div", _hoisted_3$c, [
@@ -27821,7 +27821,7 @@ const _hoisted_1$r = {
27821
27821
  createVNode(VsSelect, {
27822
27822
  options: N.value,
27823
27823
  value: e.defaultProd,
27824
- onUpdated: P[0] || (P[0] = (Z) => M(Z)),
27824
+ onUpdated: O[0] || (O[0] = (Z) => M(Z)),
27825
27825
  "field-name": "prodtypes"
27826
27826
  }, null, 8, ["options", "value"]),
27827
27827
  createElementVNode("div", _hoisted_8$6, toDisplayString(unref(getLabelText)("in", "in")), 1)
@@ -27837,7 +27837,7 @@ const _hoisted_1$r = {
27837
27837
  options: v.value,
27838
27838
  placeholder: unref(getLabelText)("location_placeholder", "Enter a location"),
27839
27839
  "track-by": "name",
27840
- onChangeValue: P[1] || (P[1] = (Z) => w(Z)),
27840
+ onChangeValue: O[1] || (O[1] = (Z) => w(Z)),
27841
27841
  "default-val": unref(r),
27842
27842
  "data-chromatic": "ignore"
27843
27843
  }, null, 8, ["label", "options", "placeholder", "default-val"])) : createCommentVNode("", !0),
@@ -27845,7 +27845,7 @@ const _hoisted_1$r = {
27845
27845
  key: 1,
27846
27846
  type: "hidden",
27847
27847
  name: "locplace",
27848
- disabled: ((O = unref(r)) == null ? void 0 : O.type) === "POLYGON",
27848
+ disabled: ((P = unref(r)) == null ? void 0 : P.type) === "POLYGON",
27849
27849
  value: ((H = unref(r)) == null ? void 0 : H.key) || ""
27850
27850
  }, null, 8, _hoisted_10$5)) : createCommentVNode("", !0),
27851
27851
  s.value !== "tour" ? (openBlock(), createElementBlock("input", {
@@ -27859,14 +27859,14 @@ const _hoisted_1$r = {
27859
27859
  key: 3,
27860
27860
  type: "hidden",
27861
27861
  name: "locprox",
27862
- value: ((te = unref(r)) == null ? void 0 : te.type) === "DISTRICT" ? 1 : 0
27862
+ value: ((ne = unref(r)) == null ? void 0 : ne.type) === "DISTRICT" ? 1 : 0
27863
27863
  }, null, 8, _hoisted_12$2)) : createCommentVNode("", !0),
27864
27864
  s.value !== "tour" && ((Y = unref(r)) == null ? void 0 : Y.type) === "DISTRICT" ? (openBlock(), createElementBlock("input", _hoisted_13$2)) : createCommentVNode("", !0),
27865
27865
  s.value === "even" ? (openBlock(), createElementBlock("div", _hoisted_14$1, [
27866
27866
  createVNode(_sfc_main$z, {
27867
27867
  "start-label": unref(getLabelText)("startdate", "Start Date", "dates"),
27868
27868
  "end-label": unref(getLabelText)("enddate", "End Date", "dates"),
27869
- onDateUpdated: P[2] || (P[2] = (Z) => D(Z)),
27869
+ onDateUpdated: O[2] || (O[2] = (Z) => D(Z)),
27870
27870
  "default-dates": i.value,
27871
27871
  "selected-prod": s.value
27872
27872
  }, null, 8, ["start-label", "end-label", "default-dates", "selected-prod"]),
@@ -27879,7 +27879,7 @@ const _hoisted_1$r = {
27879
27879
  }, null, 8, ["placeholder"])
27880
27880
  ])) : createCommentVNode("", !0)
27881
27881
  ])) : createCommentVNode("", !0),
27882
- s.value === "acco" ? (openBlock(), createElementBlock("div", _hoisted_17$1, [...P[4] || (P[4] = [
27882
+ s.value === "acco" ? (openBlock(), createElementBlock("div", _hoisted_17$1, [...O[4] || (O[4] = [
27883
27883
  createElementVNode("input", {
27884
27884
  hidden: "true",
27885
27885
  name: "avail",
@@ -27917,7 +27917,7 @@ const _hoisted_1$r = {
27917
27917
  class: "mt-150",
27918
27918
  "data-test": "psw-submit",
27919
27919
  type: "submit",
27920
- onClick: P[3] || (P[3] = (Z) => B.trackSubmit(s.value, typeof unref(r) > "u" ? "" : unref(r)))
27920
+ onClick: O[3] || (O[3] = (Z) => B.trackSubmit(s.value, typeof unref(r) > "u" ? "" : unref(r)))
27921
27921
  }, {
27922
27922
  default: withCtx(() => [
27923
27923
  createTextVNode(toDisplayString(unref(getLabelText)("search", "Search")), 1)
@@ -31613,8 +31613,8 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
31613
31613
  if (R ? 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)
31614
31614
  window.history.pushState({}, "", B), await E();
31615
31615
  else {
31616
- const P = `${S.value}/${B.search}`;
31617
- window.location.href = P;
31616
+ const O = `${S.value}/${B.search}`;
31617
+ window.location.href = O;
31618
31618
  }
31619
31619
  }
31620
31620
  return {
@@ -33384,13 +33384,13 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
33384
33384
  }
33385
33385
  },
33386
33386
  setup(e) {
33387
- const n = dataLayerComposable(), t = e, s = t.categoryLabels.find((A) => A.id === "destinations"), a = s ? s.subCategory : null, r = computed$1(() => t.featuredPlaces.filter((A) => A.properties.category.id === O.selectedDestinationType));
33387
+ const n = dataLayerComposable(), t = e, s = t.categoryLabels.find((A) => A.id === "destinations"), a = s ? s.subCategory : null, r = computed$1(() => t.featuredPlaces.filter((A) => A.properties.category.id === P.selectedDestinationType));
33388
33388
  provide("featuredPlaces", {
33389
33389
  categories: a,
33390
33390
  places: r
33391
33391
  }), provide("onFeaturedLocationClick", Te), provide("addDestinationMarkers", Ce);
33392
33392
  let o, i, l, c, d, u, f, m, p, g, v = {}, k;
33393
- 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()), F = ref(), I = ref(), w = ref(t.zoom), M = ref(!1), E = ref(), L = ref(/* @__PURE__ */ new Set()), $ = ref(), D = ref(!1), R = ref(void 0), B = ref(!1), P = computed$1(() => {
33393
+ 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()), F = ref(), I = ref(), w = ref(t.zoom), M = ref(!1), E = ref(), L = ref(/* @__PURE__ */ new Set()), $ = ref(), D = ref(!1), R = ref(void 0), B = ref(!1), O = computed$1(() => {
33394
33394
  const A = /* @__PURE__ */ new Map(), z = Y[_.value].subCategory;
33395
33395
  return Object.values(z).forEach((q) => {
33396
33396
  A.set(q.id, {
@@ -33398,9 +33398,9 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
33398
33398
  excludedTypes: q.excludedType
33399
33399
  });
33400
33400
  }), A;
33401
- }), O = useGoogleMapStore(), H = ref(void 0);
33401
+ }), P = useGoogleMapStore(), H = ref(void 0);
33402
33402
  let U;
33403
- const Q = ref(void 0), te = {
33403
+ const Q = ref(void 0), ne = {
33404
33404
  north: 61.3,
33405
33405
  south: 54.6,
33406
33406
  west: -8.7,
@@ -33422,9 +33422,9 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
33422
33422
  openSidebarButtonLabel: t.labels.openSidebarButton,
33423
33423
  locationSelectLabel: t.labels.locationSelect
33424
33424
  }, {
33425
- getViewport: le,
33425
+ getViewport: ie,
33426
33426
  hasViewportChanged: ge,
33427
- isProgrammaticMove: ce,
33427
+ isProgrammaticMove: le,
33428
33428
  isUserMove: ue,
33429
33429
  lastSearchViewport: oe,
33430
33430
  runProgrammaticMove: X,
@@ -33464,7 +33464,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
33464
33464
  isFractionalZoomEnabled: !0,
33465
33465
  mapId: t.mapId,
33466
33466
  restriction: {
33467
- latLngBounds: te
33467
+ latLngBounds: ne
33468
33468
  },
33469
33469
  zoomControl: !0,
33470
33470
  fullscreenControl: !1,
@@ -33474,7 +33474,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
33474
33474
  gestureHandling: "greedy"
33475
33475
  };
33476
33476
  if (i)
33477
- o = new google.maps.Map(i, z), X(() => o.fitBounds(te));
33477
+ o = new google.maps.Map(i, z), X(() => o.fitBounds(ne));
33478
33478
  else
33479
33479
  throw new Error("Init error, mapContainer undefined");
33480
33480
  } catch (z) {
@@ -33483,20 +33483,20 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
33483
33483
  g = new google.maps.InfoWindow(), g.addListener("closeclick", () => {
33484
33484
  he("card_close", m.place);
33485
33485
  }), be(), o.addListener("zoom_changed", () => {
33486
- w.value = o.getZoom(), w.value < CATEGORY_VISIBLE_ZOOM ? be() : be(!0), ue.value = !ce.value, w.value > 7 && !ce.value && ue.value && (fe.value = !0);
33486
+ w.value = o.getZoom(), w.value < CATEGORY_VISIBLE_ZOOM ? be() : be(!0), ue.value = !le.value, w.value > 7 && !le.value && ue.value && (fe.value = !0);
33487
33487
  }), o.addListener("dragstart", () => {
33488
33488
  ue.value = !0;
33489
33489
  }), o.addListener("tilesloaded", () => {
33490
33490
  B.value || (B.value = !0, Ce());
33491
33491
  }), o.addListener("idle", () => {
33492
- k = Ie(), !ce.value && ue.value && ge(le(o)) && (fe.value = !0, ue.value = !1);
33492
+ k = Pe(), !le.value && ue.value && ge(ie(o)) && (fe.value = !0, P.selectedDestinationType = "", ue.value = !1);
33493
33493
  }), l.addEventListener("gmp-select", ({ place: z }) => {
33494
33494
  v[z.id] && ye(z, v[z.id]);
33495
33495
  }), c.addEventListener("gmp-select", ({ place: z }) => {
33496
33496
  v[z.id] && ye(z, v[z.id]);
33497
33497
  });
33498
33498
  }
33499
- O.firstInteraction = !1, O.searchesCount = 0, O.filterUsesCount = 0, U.value === !1 && await A();
33499
+ P.firstInteraction = !1, P.searchesCount = 0, P.filterUsesCount = 0, U.value === !1 && await A();
33500
33500
  });
33501
33501
  function be(A) {
33502
33502
  const z = {
@@ -33578,8 +33578,8 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
33578
33578
  return z;
33579
33579
  });
33580
33580
  }
33581
- function De(A, z) {
33582
- oe.value && (X(() => o.setCenter(oe.value.center)), X(() => o.setZoom(oe.value.zoom))), ae.value = "", me(A, z);
33581
+ function Me(A, z) {
33582
+ oe.value && (X(() => o.setCenter(oe.value.center)), X(() => o.setZoom(oe.value.zoom))), se.value = "", me(A, z);
33583
33583
  }
33584
33584
  function me(A, z) {
33585
33585
  Ve(), _.value = A, Y[A].includedType && V.value.add(Y[A].includedType), Object.values(Y[A].subCategory).forEach(
@@ -33597,7 +33597,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
33597
33597
  const q = Object.fromEntries(
33598
33598
  Z.map((j) => [j.id, j.label])
33599
33599
  );
33600
- E.value = `${q[A]} ${ae.value}`, p.value = E.value, O.showCategories = !0, fe.value = !1;
33600
+ E.value = `${q[A]} ${se.value}`, p.value = E.value, P.showCategories = !0, fe.value = !1;
33601
33601
  }
33602
33602
  function _e(A, z) {
33603
33603
  const q = ref([]), j = ref();
@@ -33623,21 +33623,21 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
33623
33623
  removeExcludedTypes: W = !1
33624
33624
  } = {}) {
33625
33625
  var J;
33626
- const G = P.value.get(A);
33627
- z && G.includedTypes.forEach((ne) => {
33628
- z && N.value.add(ne), j && N.value.delete(ne);
33629
- }), (q || W) && ((J = G.excludedTypes) == null || J.forEach((ne) => {
33630
- q && C.value.add(ne), W && C.value.delete(ne);
33626
+ const G = O.value.get(A);
33627
+ z && G.includedTypes.forEach((te) => {
33628
+ z && N.value.add(te), j && N.value.delete(te);
33629
+ }), (q || W) && ((J = G.excludedTypes) == null || J.forEach((te) => {
33630
+ q && C.value.add(te), W && C.value.delete(te);
33631
33631
  }));
33632
33632
  }
33633
- function Me(A, z) {
33634
- oe.value && (X(() => o.setCenter(oe.value.center)), X(() => o.setZoom(oe.value.zoom))), ae.value = "", Be(A, z);
33633
+ function Ie(A, z) {
33634
+ oe.value && (X(() => o.setCenter(oe.value.center)), X(() => o.setZoom(oe.value.zoom))), se.value = "", Be(A, z);
33635
33635
  }
33636
33636
  function Be(A, z) {
33637
- if (I.value = z, ae.value = "", A === "self-catering" && !b.value.has("self-catering")) {
33637
+ if (I.value = z, se.value = "", A === "self-catering" && !b.value.has("self-catering")) {
33638
33638
  D.value = !0, Se(), b.value = /* @__PURE__ */ new Set(), b.value.add(A);
33639
33639
  const q = _e(b.value, A).value;
33640
- E.value = q, p.value = `${E.value} ${ae.value}`, ke(), p.value = q;
33640
+ E.value = q, p.value = `${E.value} ${se.value}`, ke(), p.value = q;
33641
33641
  } else b.value.has(A) ? (b.value.delete("self-catering"), b.value.delete(A), N.value = /* @__PURE__ */ new Set(), C.value = /* @__PURE__ */ new Set(), b.value.forEach((q) => {
33642
33642
  $e(q, {
33643
33643
  includeTypes: !0,
@@ -33656,7 +33656,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
33656
33656
  excludedTypes: Array.from(C.value).flat()
33657
33657
  }), L.value.add(
33658
33658
  _e(b.value, A).value
33659
- ), E.value = `${Array.from(L.value).join(", ")} ${ae.value}`, p.value = E.value, O.showCategories = !0);
33659
+ ), E.value = `${Array.from(L.value).join(", ")} ${se.value}`, p.value = E.value, P.showCategories = !0);
33660
33660
  }
33661
33661
  async function ve({
33662
33662
  includedTypes: A = [],
@@ -33664,21 +33664,24 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
33664
33664
  } = {}) {
33665
33665
  pe(), Se(), ee += 1;
33666
33666
  const q = ee;
33667
- O.filterUsesCount += 1, $.value = "nearby";
33668
- const j = o.getBounds(), W = j.getNorthEast(), G = j.getSouthWest(), J = google.maps.geometry.spherical.computeDistanceBetween(W, G), ne = Math.min(J / 2, 25e3);
33667
+ P.filterUsesCount += 1, $.value = "nearby";
33668
+ const j = o.getBounds(), W = j.getNorthEast(), G = j.getSouthWest(), J = google.maps.geometry.spherical.computeDistanceBetween(W, G);
33669
+ let te = 25e3;
33670
+ (P.selectedDestinationType === "regions" || P.selectedDestinationType === "islands" && se.value === "Shetland" || P.selectedDestinationType === "islands" && se.value === "Orkney") && (te = 5e4);
33671
+ const ce = Math.min(J / 2, te);
33669
33672
  u.includedTypes = A, u.excludedTypes = z ?? [], u.maxResultCount = NUMBER_OF_RESULTS, u.locationRestriction = {
33670
33673
  center: o.getCenter(),
33671
- radius: ne
33674
+ radius: ce
33672
33675
  }, l.style.display = "block", l.addEventListener("gmp-load", () => {
33673
33676
  if (q !== ee) return;
33674
33677
  Ne(q);
33675
- let ie = "main", Le = _.value;
33676
- b.value.size && (ie = "sub", Le = Array.from(b.value).join(", ")), n.createDataLayerObject("googleMapFilterEvent", {
33677
- filter_type: ie,
33678
+ let Le = "main", De = _.value;
33679
+ b.value.size && (Le = "sub", De = Array.from(b.value).join(", ")), n.createDataLayerObject("googleMapFilterEvent", {
33680
+ filter_type: Le,
33678
33681
  search_map_location: o.getCenter().toString(),
33679
- filter_selection: Le,
33682
+ filter_selection: De,
33680
33683
  results_count: l.places.length,
33681
- filter_usage_index: O.filterUsesCount
33684
+ filter_usage_index: P.filterUsesCount
33682
33685
  }), we("map_filter");
33683
33686
  }, {
33684
33687
  once: !0
@@ -33687,18 +33690,18 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
33687
33690
  async function ke() {
33688
33691
  pe(), Ve(), ee += 1;
33689
33692
  const A = ee;
33690
- O.searchesCount += 1, $.value = "text", E.value = p.value.trim(), E.value && (D.value ? (d.locationBias = null, d.locationRestriction = o.getBounds(), _.value = "accommodation", b.value.add("self-catering")) : (d.locationRestriction = null, d.locationBias = o.getCenter()), d.includedType = R.value.some(
33693
+ P.searchesCount += 1, $.value = "text", E.value = p.value.trim(), E.value && (D.value ? (d.locationBias = null, d.locationRestriction = o.getBounds(), _.value = "accommodation", b.value.add("self-catering")) : (d.locationRestriction = null, d.locationBias = o.getCenter()), d.includedType = R.value.some(
33691
33694
  (z) => E.value.toLowerCase().includes(z)
33692
33695
  ) ? "lodging" : null, d.textQuery = `${E.value} in Scotland`, d.maxResultCount = NUMBER_OF_RESULTS, c.style.display = "block", c.addEventListener("gmp-load", () => {
33693
33696
  A === ee && (Ne(A), D.value = !1, n.createDataLayerObject("googleMapSearchEvent", {
33694
33697
  search_query: E.value,
33695
33698
  search_map_location: o.getCenter().toString(),
33696
33699
  search_results_count: c.places.length,
33697
- search_usage_index: O.searchesCount
33700
+ search_usage_index: P.searchesCount
33698
33701
  }), we("map_search"));
33699
33702
  }, {
33700
33703
  once: !0
33701
- }), O.showDestinations = !1, O.showCategories = !0);
33704
+ }), P.showDestinations = !1, P.showCategories = !0);
33702
33705
  }
33703
33706
  async function Ne(A) {
33704
33707
  const { AdvancedMarkerElement: z } = await importLibrary("marker"), { LatLngBounds: q } = await importLibrary("core");
@@ -33709,27 +33712,27 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
33709
33712
  j.value.places && (j.value.places.forEach((G) => {
33710
33713
  const J = document.createElement("div");
33711
33714
  J.classList.add("vs-map-marker");
33712
- const ne = document.createElement("i");
33713
- ne.classList.add("fa-solid", "fa-location-dot"), J.appendChild(ne);
33714
- const ie = new z({
33715
+ const te = document.createElement("i");
33716
+ te.classList.add("fa-solid", "fa-location-dot"), J.appendChild(te);
33717
+ const ce = new z({
33715
33718
  map: o,
33716
33719
  position: G.location,
33717
33720
  content: J,
33718
33721
  title: "Map pin"
33719
33722
  });
33720
- ie.addEventListener("gmp-placeclick", () => {
33723
+ ce.addEventListener("gmp-placeclick", () => {
33721
33724
  ye(G);
33722
- }), ie.addListener("click", () => {
33725
+ }), ce.addListener("click", () => {
33723
33726
  ye(G);
33724
- }), ie.metadata = {
33727
+ }), ce.metadata = {
33725
33728
  id: G.id
33726
- }, v[G.id] = ie, W.extend(G.location), j.value.places.length === 1 ? (X(() => o.setCenter(
33729
+ }, v[G.id] = ce, W.extend(G.location), j.value.places.length === 1 ? (X(() => o.setCenter(
33727
33730
  {
33728
33731
  lat: G.location.lat(),
33729
33732
  lng: G.location.lng()
33730
33733
  }
33731
33734
  )), X(() => o.setZoom(14)), X(() => o.fitBounds(G.viewport))) : (X(() => o.setCenter(W.getCenter())), X(() => o.fitBounds(W)));
33732
- }), oe.value = le(o));
33735
+ }), oe.value = ie(o));
33733
33736
  }
33734
33737
  async function Ce() {
33735
33738
  const { AdvancedMarkerElement: A } = await importLibrary("marker");
@@ -33751,7 +33754,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
33751
33754
  });
33752
33755
  }
33753
33756
  function pe(A, z) {
33754
- O.showCategories = !1, Ee(), $.value = "", u.includedTypes = null, u.excludedTypes = null, u.locationRestriction = null, l.style.display = "none", d.includedType = null, d.locationRestriction = null, d.locationBias = null, d.textQuery = null, c.style.display = "none", M.value = !1, g && g.close && g.close(), H.value = void 0, A && (Se(), Ve(), he("clear_all"), Ce(), O.showDestinations = !0), z && (X(() => o.setCenter(t.center)), X(() => o.setZoom(t.zoom)), X(() => o.fitBounds(te)), he("reset_map"));
33757
+ P.showCategories = !1, Ee(), $.value = "", u.includedTypes = null, u.excludedTypes = null, u.locationRestriction = null, l.style.display = "none", d.includedType = null, d.locationRestriction = null, d.locationBias = null, d.textQuery = null, c.style.display = "none", M.value = !1, g && g.close && g.close(), H.value = void 0, A && (Se(), Ve(), he("clear_all"), Ce(), P.showDestinations = !0), z && (X(() => o.setCenter(t.center)), X(() => o.setZoom(t.zoom)), X(() => o.fitBounds(ne)), he("reset_map"));
33755
33758
  }
33756
33759
  function Se() {
33757
33760
  E.value = null, p.value = "";
@@ -33765,7 +33768,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
33765
33768
  v = {};
33766
33769
  }
33767
33770
  function ye(A) {
33768
- g.isOpen && (g.close(), he("card_close", m.place)), m.place = A, window.innerWidth <= 768 ? (f.style.width = "85vw", f.style.height = "32em", O.sidebarOpen = !1) : (f.style.width = "20em", f.style.height = "32em"), f.style.display = "block", f.style.overflowY = "auto", f.style.overflowX = "hidden", f.style.boxSizing = "border-box", f.style.maxHeight = "32em", g.setOptions({
33771
+ g.isOpen && (g.close(), he("card_close", m.place)), m.place = A, window.innerWidth <= 768 ? (f.style.width = "85vw", f.style.height = "32em", P.sidebarOpen = !1) : (f.style.width = "20em", f.style.height = "32em"), f.style.display = "block", f.style.overflowY = "auto", f.style.overflowX = "hidden", f.style.boxSizing = "border-box", f.style.maxHeight = "32em", g.setOptions({
33769
33772
  content: f,
33770
33773
  maxWidth: "25em",
33771
33774
  position: A.location,
@@ -33799,15 +33802,15 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
33799
33802
  }), we(A);
33800
33803
  }
33801
33804
  function we(A) {
33802
- if (!O.firstInteraction) {
33803
- const q = Date.now() - O.timeMounted;
33805
+ if (!P.firstInteraction) {
33806
+ const q = Date.now() - P.timeMounted;
33804
33807
  n.createDataLayerObject("googleMapTimeToFirstInteractionEvent", {
33805
33808
  time_to_first_interaction_ms: q,
33806
33809
  first_interaction_type: A
33807
- }), O.firstInteraction = !0;
33810
+ }), P.firstInteraction = !0;
33808
33811
  }
33809
33812
  }
33810
- function Ie() {
33813
+ function Pe() {
33811
33814
  const A = o.getBounds();
33812
33815
  if (!A) return 0;
33813
33816
  let z = 0;
@@ -33817,9 +33820,9 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
33817
33820
  }
33818
33821
  return z;
33819
33822
  }
33820
- const ae = ref("");
33823
+ const se = ref("");
33821
33824
  function Te(A) {
33822
- O.showDestinations = !1, ae.value = A.properties.title, X(() => o.fitBounds(
33825
+ P.showDestinations = !1, se.value = A.properties.title, X(() => o.fitBounds(
33823
33826
  // eslint-disable-next-line no-undef
33824
33827
  new google.maps.LatLngBounds(
33825
33828
  // eslint-disable-next-line no-undef
@@ -33841,8 +33844,8 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
33841
33844
  )
33842
33845
  )), me("things-to-do", 2);
33843
33846
  }
33844
- function Pe() {
33845
- if (O.showDestinations = !1, O.sidebarOpen = !0, ae.value = "", fe.value = !1, b.value.size > 0) {
33847
+ function Oe() {
33848
+ if (P.showDestinations = !1, P.sidebarOpen = !0, se.value = "", fe.value = !1, b.value.size > 0) {
33846
33849
  if (b.value.has("self-catering"))
33847
33850
  b.value.delete("self-catering"), Be("self-catering", 0);
33848
33851
  else {
@@ -33855,7 +33858,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
33855
33858
  A.push(
33856
33859
  _e(b.value, z).value
33857
33860
  );
33858
- }), E.value = A.join(", "), p.value = E.value, O.showCategories = !0;
33861
+ }), E.value = A.join(", "), p.value = E.value, P.showCategories = !0;
33859
33862
  }
33860
33863
  return;
33861
33864
  }
@@ -33881,11 +33884,11 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
33881
33884
  "selected-category": _.value,
33882
33885
  "selected-subcategories": b.value,
33883
33886
  "sidebar-labels": de,
33884
- onCategorySelected: z[1] || (z[1] = (q) => De(q.id, q.key)),
33887
+ onCategorySelected: z[1] || (z[1] = (q) => Me(q.id, q.key)),
33885
33888
  onResetMap: z[2] || (z[2] = (q) => pe(!0)),
33886
33889
  onResetLocation: z[3] || (z[3] = (q) => pe(!0, !0)),
33887
33890
  onSearchInputChanged: ke,
33888
- onSubcategorySelected: z[4] || (z[4] = (q) => Me(q.id, q.key))
33891
+ onSubcategorySelected: z[4] || (z[4] = (q) => Ie(q.id, q.key))
33889
33892
  }, {
33890
33893
  "vs-map-sidebar-search-results": withCtx(() => [
33891
33894
  H.value || t.alertText && H.value === !1 ? (openBlock(), createElementBlock("div", _hoisted_3, [
@@ -34011,7 +34014,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
34011
34014
  createVNode(unref(VsButton), {
34012
34015
  icon: "vs-icon-control-search",
34013
34016
  variant: "secondary",
34014
- onClick: Pe
34017
+ onClick: Oe
34015
34018
  }, {
34016
34019
  default: withCtx(() => [
34017
34020
  createTextVNode(toDisplayString(t.labels.searchAreaButton), 1)
@@ -34064,7 +34067,7 @@ export {
34064
34067
  Breadcrumb as VsBreadcrumb,
34065
34068
  BreadcrumbItem as VsBreadcrumbItem,
34066
34069
  VsButton,
34067
- qe as VsButtonToggleGroup,
34070
+ je as VsButtonToggleGroup,
34068
34071
  CannedSearch as VsCannedSearch,
34069
34072
  Caption as VsCaption,
34070
34073
  CarbonCalculator as VsCarbonCalculator,