@visitscotland/component-library 5.20.5 → 5.20.6

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 { createElementBlock, openBlock, renderSlot, resolveComponent, createBlock, normalizeClass, withCtx, createElementVNode, createVNode, withDirectives, createCommentVNode, normalizeStyle, vShow, inject, mergeProps, toDisplayString, ref, onMounted, onUnmounted, createTextVNode, Fragment, renderList, resolveDirective, withModifiers, normalizeProps, createSlots, getCurrentInstance, defineComponent, computed as computed$1, watch, reactive, provide, onBeforeMount, isRef, onBeforeUnmount, unref, isReactive, isReadonly, nextTick, isVNode, markRaw, toRef, resolveDynamicComponent, h, withKeys, mergeModels, useModel, toHandlers, vModelText, guardReactiveProps, onUpdated, Suspense } from "vue";
2
- import { _ as _export_sfc, V as VsButton, d as dataLayerMixin, a as VsHeading, n as nn, b as an, c as VsIcon, r as rn, l as lodashExports, e as VsBody, f as VsContainer, g as VsRow, h as VsCol, i as ci, p as pi$2, j as en, k as dmoUrls, m as VsImg, E as Ed, o as axios, q as designTokens, Y as Yo, Z as Zo, s as pn, O as Ou, T as Tu, t as ku, u as VsWarning, v as fn, w as un, X as Xi, x as commonjsGlobal, y as require$$0$1, z as requireHasown, A as requireShams, B as callBound, C as isGeneratorFunction, D as isTypedArray, F as whichTypedArray, G as getAugmentedNamespace, H as getDefaultExportFromCjs, L as Lu, I as ld, J as _a, K as products, M as paths, N as monthsEnglish, P as VsLoading, Q as ol, R as wn, S as Ea, U as Bn, W as Je, $ as St, a0 as Pa, a1 as Ka, a2 as vc, a3 as dc, a4 as useDataLayerStore, a5 as checkVendorLibrary, a6 as siteSearchCloseTemplate, a7 as siteSearchClickTemplate, a8 as siteSearchUsageTemplate, a9 as siteSearchOpenTemplate, aa as googleMapInteractionTemplate, ab as googleMapTimeToFirstInteractionTemplate, ac as googleMapClickTemplate, ad as googleMapFilterInteractionTemplate, ae as googleMapSearchTemplate } from "./LoadingSpinner-ClU7FdNx.mjs";
3
- import { af as Se } from "./LoadingSpinner-ClU7FdNx.mjs";
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 commonjsGlobal, y as require$$0$1, z as requireHasown, A as requireShams, B as callBound, C as isGeneratorFunction, D as isTypedArray, F as whichTypedArray, G as getAugmentedNamespace, H as getDefaultExportFromCjs, L as Lu, I as ld, J as _a, K as products, M as paths, N as monthsEnglish, P as VsLoading, Q as ol, R as wn, S as Ea, U as Bn, W as Je, $ as St, a0 as Pa, a1 as Ka, a2 as vc, a3 as dc, a4 as useDataLayerStore, a5 as checkVendorLibrary, a6 as siteSearchCloseTemplate, a7 as siteSearchClickTemplate, a8 as siteSearchUsageTemplate, a9 as siteSearchOpenTemplate, aa as googleMapInteractionTemplate, ab as googleMapTimeToFirstInteractionTemplate, ac as googleMapClickTemplate, ad as googleMapFilterInteractionTemplate, ae as googleMapSearchTemplate } from "./LoadingSpinner-BV9HMdg5.mjs";
3
+ import { af as Se } from "./LoadingSpinner-BV9HMdg5.mjs";
4
4
  import { defineStore, storeToRefs } from "pinia";
5
5
  const _sfc_main$2t = {
6
6
  name: "VsAccordion",
@@ -5062,38 +5062,38 @@ function formatLocale(e) {
5062
5062
  S === "n" ? (v = !0, S = "g") : formatTypes[S] || (k === void 0 && (k = 12), C = !0, S = "g"), (_ || f === "0" && p === "=") && (_ = !0, f = "0", p = "=");
5063
5063
  var V = g === "$" ? t : g === "#" && /[boxX]/.test(S) ? "0" + S.toLowerCase() : "", B = g === "$" ? r : /[%p]/.test(S) ? s : "", N = formatTypes[S], F = /[defgprs%]/.test(S);
5064
5064
  k = k === void 0 ? 6 : /[gprs]/.test(S) ? Math.max(1, Math.min(21, k)) : Math.max(0, Math.min(20, k));
5065
- function q(I) {
5066
- var H = V, O = B, j, te, Z;
5065
+ function q(O) {
5066
+ var H = V, I = B, j, te, Z;
5067
5067
  if (S === "c")
5068
- O = N(I) + O, I = "";
5068
+ I = N(O) + I, O = "";
5069
5069
  else {
5070
- I = +I;
5071
- var Q = I < 0 || 1 / I < 0;
5072
- if (I = isNaN(I) ? l : N(Math.abs(I), k), C && (I = formatTrim(I)), Q && +I == 0 && m !== "+" && (Q = !1), H = (Q ? m === "(" ? m : i : m === "-" || m === "(" ? "" : m) + H, O = (S === "s" ? prefixes[8 + prefixExponent / 3] : "") + O + (Q && m === "(" ? ")" : ""), F) {
5073
- for (j = -1, te = I.length; ++j < te; )
5074
- if (Z = I.charCodeAt(j), 48 > Z || Z > 57) {
5075
- O = (Z === 46 ? a + I.slice(j + 1) : I.slice(j)) + O, I = I.slice(0, j);
5070
+ O = +O;
5071
+ var Q = O < 0 || 1 / O < 0;
5072
+ if (O = isNaN(O) ? l : N(Math.abs(O), k), C && (O = formatTrim(O)), Q && +O == 0 && m !== "+" && (Q = !1), H = (Q ? m === "(" ? m : i : m === "-" || m === "(" ? "" : m) + H, I = (S === "s" ? prefixes[8 + prefixExponent / 3] : "") + I + (Q && m === "(" ? ")" : ""), F) {
5073
+ for (j = -1, te = O.length; ++j < te; )
5074
+ if (Z = O.charCodeAt(j), 48 > Z || Z > 57) {
5075
+ I = (Z === 46 ? a + O.slice(j + 1) : O.slice(j)) + I, O = O.slice(0, j);
5076
5076
  break;
5077
5077
  }
5078
5078
  }
5079
5079
  }
5080
- v && !_ && (I = n(I, 1 / 0));
5081
- var w = H.length + I.length + O.length, L = w < b ? new Array(b - w + 1).join(f) : "";
5082
- switch (v && _ && (I = n(L + I, L.length ? b - O.length : 1 / 0), L = ""), p) {
5080
+ v && !_ && (O = n(O, 1 / 0));
5081
+ var w = H.length + O.length + I.length, L = w < b ? new Array(b - w + 1).join(f) : "";
5082
+ switch (v && _ && (O = n(L + O, L.length ? b - I.length : 1 / 0), L = ""), p) {
5083
5083
  case "<":
5084
- I = H + I + O + L;
5084
+ O = H + O + I + L;
5085
5085
  break;
5086
5086
  case "=":
5087
- I = H + L + I + O;
5087
+ O = H + L + O + I;
5088
5088
  break;
5089
5089
  case "^":
5090
- I = L.slice(0, w = L.length >> 1) + H + I + O + L.slice(w);
5090
+ O = L.slice(0, w = L.length >> 1) + H + O + I + L.slice(w);
5091
5091
  break;
5092
5092
  default:
5093
- I = L + H + I + O;
5093
+ O = L + H + O + I;
5094
5094
  break;
5095
5095
  }
5096
- return o(I);
5096
+ return o(O);
5097
5097
  }
5098
5098
  return q.toString = function() {
5099
5099
  return d + "";
@@ -5393,8 +5393,8 @@ function intersect(e, n, t, r, a, o, s, i) {
5393
5393
  return f = (u * (n - o) - d * (e - a)) / f, [e + f * l, n + f * c];
5394
5394
  }
5395
5395
  function cornerTangents(e, n, t, r, a, o, s) {
5396
- var i = e - t, l = n - r, c = (s ? o : -o) / sqrt(i * i + l * l), u = c * l, d = -c * i, f = e + u, p = n + d, m = t + u, g = r + d, _ = (f + m) / 2, b = (p + g) / 2, v = m - f, k = g - p, C = v * v + k * k, S = a - o, V = f * g - m * p, B = (k < 0 ? -1 : 1) * sqrt(max(0, S * S * C - V * V)), N = (V * k - v * B) / C, F = (-V * v - k * B) / C, q = (V * k + v * B) / C, I = (-V * v + k * B) / C, H = N - _, O = F - b, j = q - _, te = I - b;
5397
- return H * H + O * O > j * j + te * te && (N = q, F = I), {
5396
+ var i = e - t, l = n - r, c = (s ? o : -o) / sqrt(i * i + l * l), u = c * l, d = -c * i, f = e + u, p = n + d, m = t + u, g = r + d, _ = (f + m) / 2, b = (p + g) / 2, v = m - f, k = g - p, C = v * v + k * k, S = a - o, V = f * g - m * p, B = (k < 0 ? -1 : 1) * sqrt(max(0, S * S * C - V * V)), N = (V * k - v * B) / C, F = (-V * v - k * B) / C, q = (V * k + v * B) / C, O = (-V * v + k * B) / C, H = N - _, I = F - b, j = q - _, te = O - b;
5397
+ return H * H + I * I > j * j + te * te && (N = q, F = O), {
5398
5398
  cx: N,
5399
5399
  cy: F,
5400
5400
  x01: -u,
@@ -5411,7 +5411,7 @@ function arc() {
5411
5411
  else if (_ > tau$1 - epsilon$2)
5412
5412
  i.moveTo(p * cos(m), p * sin(m)), i.arc(0, 0, p, m, g, !b), f > epsilon$2 && (i.moveTo(f * cos(g), f * sin(g)), i.arc(0, 0, f, g, m, b));
5413
5413
  else {
5414
- var v = m, k = g, C = m, S = g, V = _, B = _, N = s.apply(this, arguments) / 2, F = N > epsilon$2 && (r ? +r.apply(this, arguments) : sqrt(f * f + p * p)), q = min(abs(p - f) / 2, +t.apply(this, arguments)), I = q, H = q, O, j;
5414
+ var v = m, k = g, C = m, S = g, V = _, B = _, N = s.apply(this, arguments) / 2, F = N > epsilon$2 && (r ? +r.apply(this, arguments) : sqrt(f * f + p * p)), q = min(abs(p - f) / 2, +t.apply(this, arguments)), O = q, H = q, I, j;
5415
5415
  if (F > epsilon$2) {
5416
5416
  var te = asin(F / f * sin(N)), Z = asin(F / p * sin(N));
5417
5417
  (V -= te * 2) > epsilon$2 ? (te *= b ? 1 : -1, C += te, S -= te) : (V = 0, C = S = (m + g) / 2), (B -= Z * 2) > epsilon$2 ? (Z *= b ? 1 : -1, v += Z, k -= Z) : (B = 0, v = k = (m + g) / 2);
@@ -5422,11 +5422,11 @@ function arc() {
5422
5422
  if (_ < pi$1)
5423
5423
  if (T = intersect(Q, w, $, E, U, J, L, M)) {
5424
5424
  var z = Q - T[0], A = w - T[1], W = U - T[0], G = J - T[1], P = 1 / sin(acos((z * W + A * G) / (sqrt(z * z + A * A) * sqrt(W * W + G * G))) / 2), R = sqrt(T[0] * T[0] + T[1] * T[1]);
5425
- I = min(q, (f - R) / (P - 1)), H = min(q, (p - R) / (P + 1));
5425
+ O = min(q, (f - R) / (P - 1)), H = min(q, (p - R) / (P + 1));
5426
5426
  } else
5427
- I = H = 0;
5427
+ O = H = 0;
5428
5428
  }
5429
- B > epsilon$2 ? H > epsilon$2 ? (O = cornerTangents($, E, Q, w, p, H, b), j = cornerTangents(U, J, L, M, p, H, b), i.moveTo(O.cx + O.x01, O.cy + O.y01), H < q ? i.arc(O.cx, O.cy, H, atan2(O.y01, O.x01), atan2(j.y01, j.x01), !b) : (i.arc(O.cx, O.cy, H, atan2(O.y01, O.x01), atan2(O.y11, O.x11), !b), i.arc(0, 0, p, atan2(O.cy + O.y11, O.cx + O.x11), atan2(j.cy + j.y11, j.cx + j.x11), !b), i.arc(j.cx, j.cy, H, atan2(j.y11, j.x11), atan2(j.y01, j.x01), !b))) : (i.moveTo(Q, w), i.arc(0, 0, p, v, k, !b)) : i.moveTo(Q, w), !(f > epsilon$2) || !(V > epsilon$2) ? i.lineTo(L, M) : I > epsilon$2 ? (O = cornerTangents(L, M, U, J, f, -I, b), j = cornerTangents(Q, w, $, E, f, -I, b), i.lineTo(O.cx + O.x01, O.cy + O.y01), I < q ? i.arc(O.cx, O.cy, I, atan2(O.y01, O.x01), atan2(j.y01, j.x01), !b) : (i.arc(O.cx, O.cy, I, atan2(O.y01, O.x01), atan2(O.y11, O.x11), !b), i.arc(0, 0, f, atan2(O.cy + O.y11, O.cx + O.x11), atan2(j.cy + j.y11, j.cx + j.x11), b), i.arc(j.cx, j.cy, I, atan2(j.y11, j.x11), atan2(j.y01, j.x01), !b))) : i.arc(0, 0, f, S, C, b);
5429
+ B > epsilon$2 ? H > epsilon$2 ? (I = cornerTangents($, E, Q, w, p, H, b), j = cornerTangents(U, J, L, M, p, H, b), i.moveTo(I.cx + I.x01, I.cy + I.y01), H < q ? i.arc(I.cx, I.cy, H, atan2(I.y01, I.x01), atan2(j.y01, j.x01), !b) : (i.arc(I.cx, I.cy, H, atan2(I.y01, I.x01), atan2(I.y11, I.x11), !b), i.arc(0, 0, p, atan2(I.cy + I.y11, I.cx + I.x11), atan2(j.cy + j.y11, j.cx + j.x11), !b), i.arc(j.cx, j.cy, H, atan2(j.y11, j.x11), atan2(j.y01, j.x01), !b))) : (i.moveTo(Q, w), i.arc(0, 0, p, v, k, !b)) : i.moveTo(Q, w), !(f > epsilon$2) || !(V > epsilon$2) ? i.lineTo(L, M) : O > epsilon$2 ? (I = cornerTangents(L, M, U, J, f, -O, b), j = cornerTangents(Q, w, $, E, f, -O, b), i.lineTo(I.cx + I.x01, I.cy + I.y01), O < q ? i.arc(I.cx, I.cy, O, atan2(I.y01, I.x01), atan2(j.y01, j.x01), !b) : (i.arc(I.cx, I.cy, O, atan2(I.y01, I.x01), atan2(I.y11, I.x11), !b), i.arc(0, 0, f, atan2(I.cy + I.y11, I.cx + I.x11), atan2(j.cy + j.y11, j.cx + j.x11), b), i.arc(j.cx, j.cy, O, atan2(j.y11, j.x11), atan2(j.y01, j.x01), !b))) : i.arc(0, 0, f, S, C, b);
5430
5430
  }
5431
5431
  if (i.closePath(), u) return i = null, u + "" || null;
5432
5432
  }
@@ -6493,15 +6493,15 @@ function entering() {
6493
6493
  function axis(e, n) {
6494
6494
  var t = [], r = null, a = null, o = 6, s = 6, i = 3, l = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, c = e === top || e === left ? -1 : 1, u = e === left || e === right ? "x" : "y", d = e === top || e === bottom ? translateX : translateY;
6495
6495
  function f(p) {
6496
- var m = r ?? (n.ticks ? n.ticks.apply(n, t) : n.domain()), g = a ?? (n.tickFormat ? n.tickFormat.apply(n, t) : identity), _ = Math.max(o, 0) + i, b = n.range(), v = +b[0] + l, k = +b[b.length - 1] + l, C = (n.bandwidth ? center : number)(n.copy(), l), S = p.selection ? p.selection() : p, V = S.selectAll(".domain").data([null]), B = S.selectAll(".tick").data(m, n).order(), N = B.exit(), F = B.enter().append("g").attr("class", "tick"), q = B.select("line"), I = B.select("text");
6497
- V = V.merge(V.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), B = B.merge(F), q = q.merge(F.append("line").attr("stroke", "currentColor").attr(u + "2", c * o)), I = I.merge(F.append("text").attr("fill", "currentColor").attr(u, c * _).attr("dy", e === top ? "0em" : e === bottom ? "0.71em" : "0.32em")), p !== S && (V = V.transition(p), B = B.transition(p), q = q.transition(p), I = I.transition(p), N = N.transition(p).attr("opacity", epsilon).attr("transform", function(H) {
6496
+ var m = r ?? (n.ticks ? n.ticks.apply(n, t) : n.domain()), g = a ?? (n.tickFormat ? n.tickFormat.apply(n, t) : identity), _ = Math.max(o, 0) + i, b = n.range(), v = +b[0] + l, k = +b[b.length - 1] + l, C = (n.bandwidth ? center : number)(n.copy(), l), S = p.selection ? p.selection() : p, V = S.selectAll(".domain").data([null]), B = S.selectAll(".tick").data(m, n).order(), N = B.exit(), F = B.enter().append("g").attr("class", "tick"), q = B.select("line"), O = B.select("text");
6497
+ V = V.merge(V.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), B = B.merge(F), q = q.merge(F.append("line").attr("stroke", "currentColor").attr(u + "2", c * o)), O = O.merge(F.append("text").attr("fill", "currentColor").attr(u, c * _).attr("dy", e === top ? "0em" : e === bottom ? "0.71em" : "0.32em")), p !== S && (V = V.transition(p), B = B.transition(p), q = q.transition(p), O = O.transition(p), N = N.transition(p).attr("opacity", epsilon).attr("transform", function(H) {
6498
6498
  return isFinite(H = C(H)) ? d(H + l) : this.getAttribute("transform");
6499
6499
  }), F.attr("opacity", epsilon).attr("transform", function(H) {
6500
- var O = this.parentNode.__axis;
6501
- return d((O && isFinite(O = O(H)) ? O : C(H)) + l);
6500
+ var I = this.parentNode.__axis;
6501
+ return d((I && isFinite(I = I(H)) ? I : C(H)) + l);
6502
6502
  })), N.remove(), V.attr("d", e === left || e === right ? s ? "M" + c * s + "," + v + "H" + l + "V" + k + "H" + c * s : "M" + l + "," + v + "V" + k : s ? "M" + v + "," + c * s + "V" + l + "H" + k + "V" + c * s : "M" + v + "," + l + "H" + k), B.attr("opacity", 1).attr("transform", function(H) {
6503
6503
  return d(C(H) + l);
6504
- }), q.attr(u + "2", c * o), I.attr(u, c * _).text(g), S.filter(entering).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", e === right ? "start" : e === left ? "end" : "middle"), S.each(function() {
6504
+ }), q.attr(u + "2", c * o), O.attr(u, c * _).text(g), S.filter(entering).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", e === right ? "start" : e === left ? "end" : "middle"), S.each(function() {
6505
6505
  this.__axis = C;
6506
6506
  });
6507
6507
  }
@@ -8860,9 +8860,9 @@ function setValidations(e) {
8860
8860
  $invalid: N,
8861
8861
  $anyDirty: F,
8862
8862
  $error: q,
8863
- $pending: I,
8863
+ $pending: O,
8864
8864
  $touch: H,
8865
- $reset: O,
8865
+ $reset: I,
8866
8866
  $silentErrors: j,
8867
8867
  $commit: te
8868
8868
  } = createMetaFields(k, C, o), Z = r ? computed$1({
@@ -8882,8 +8882,8 @@ function setValidations(e) {
8882
8882
  });
8883
8883
  async function Q() {
8884
8884
  return H(), g.$rewardEarly && (te(), await nextTick()), await nextTick(), new Promise((M) => {
8885
- if (!I.value) return M(!N.value);
8886
- const U = watch(I, () => {
8885
+ if (!O.value) return M(!N.value);
8886
+ const U = watch(O, () => {
8887
8887
  M(!N.value), U();
8888
8888
  });
8889
8889
  });
@@ -8903,9 +8903,9 @@ function setValidations(e) {
8903
8903
  $errors: B,
8904
8904
  $invalid: N,
8905
8905
  $anyDirty: F,
8906
- $pending: I,
8906
+ $pending: O,
8907
8907
  $touch: H,
8908
- $reset: O,
8908
+ $reset: I,
8909
8909
  $path: u || ROOT_PATH,
8910
8910
  $silentErrors: j,
8911
8911
  $validate: Q,
@@ -13223,7 +13223,7 @@ function requireUtil$1() {
13223
13223
  }), L;
13224
13224
  }
13225
13225
  function c(w, L, M) {
13226
- if (w.customInspect && L && I(L.inspect) && // Filter out the util module, it's inspect function is special
13226
+ if (w.customInspect && L && O(L.inspect) && // Filter out the util module, it's inspect function is special
13227
13227
  L.inspect !== e.inspect && // Also filter out any prototype objects using the circular check.
13228
13228
  !(L.constructor && L.constructor.prototype === L)) {
13229
13229
  var U = L.inspect(M, w);
@@ -13236,7 +13236,7 @@ function requireUtil$1() {
13236
13236
  if (w.showHidden && ($ = Object.getOwnPropertyNames(L)), q(L) && ($.indexOf("message") >= 0 || $.indexOf("description") >= 0))
13237
13237
  return d(L);
13238
13238
  if ($.length === 0) {
13239
- if (I(L)) {
13239
+ if (O(L)) {
13240
13240
  var T = L.name ? ": " + L.name : "";
13241
13241
  return w.stylize("[Function" + T + "]", "special");
13242
13242
  }
@@ -13248,7 +13248,7 @@ function requireUtil$1() {
13248
13248
  return d(L);
13249
13249
  }
13250
13250
  var z = "", A = !1, W = ["{", "}"];
13251
- if (g(L) && (A = !0, W = ["[", "]"]), I(L)) {
13251
+ if (g(L) && (A = !0, W = ["[", "]"]), O(L)) {
13252
13252
  var G = L.name ? ": " + L.name : "";
13253
13253
  z = " [Function" + G + "]";
13254
13254
  }
@@ -13361,7 +13361,7 @@ function requireUtil$1() {
13361
13361
  }
13362
13362
  e.isUndefined = V;
13363
13363
  function B(w) {
13364
- return N(w) && O(w) === "[object RegExp]";
13364
+ return N(w) && I(w) === "[object RegExp]";
13365
13365
  }
13366
13366
  e.isRegExp = B;
13367
13367
  function N(w) {
@@ -13369,23 +13369,23 @@ function requireUtil$1() {
13369
13369
  }
13370
13370
  e.isObject = N;
13371
13371
  function F(w) {
13372
- return N(w) && O(w) === "[object Date]";
13372
+ return N(w) && I(w) === "[object Date]";
13373
13373
  }
13374
13374
  e.isDate = F;
13375
13375
  function q(w) {
13376
- return N(w) && (O(w) === "[object Error]" || w instanceof Error);
13376
+ return N(w) && (I(w) === "[object Error]" || w instanceof Error);
13377
13377
  }
13378
13378
  e.isError = q;
13379
- function I(w) {
13379
+ function O(w) {
13380
13380
  return typeof w == "function";
13381
13381
  }
13382
- e.isFunction = I;
13382
+ e.isFunction = O;
13383
13383
  function H(w) {
13384
13384
  return w === null || typeof w == "boolean" || typeof w == "number" || typeof w == "string" || typeof w == "symbol" || // ES6 symbol
13385
13385
  typeof w > "u";
13386
13386
  }
13387
13387
  e.isPrimitive = H, e.isBuffer = requireIsBufferBrowser$1();
13388
- function O(w) {
13388
+ function I(w) {
13389
13389
  return Object.prototype.toString.call(w);
13390
13390
  }
13391
13391
  function j(w) {
@@ -14249,14 +14249,14 @@ function requireAsync() {
14249
14249
  });
14250
14250
  }
14251
14251
  S = o(b, S);
14252
- var B = S.isFile || u, N = S.isDirectory || d, F = S.readFile || e.readFile, q = S.realpath || f, I = S.readPackage || m;
14252
+ var B = S.isFile || u, N = S.isDirectory || d, F = S.readFile || e.readFile, q = S.realpath || f, O = S.readPackage || m;
14253
14253
  if (S.readFile && S.readPackage) {
14254
14254
  var H = new TypeError("`readFile` and `readPackage` are mutually exclusive.");
14255
14255
  return process.nextTick(function() {
14256
14256
  C(H);
14257
14257
  });
14258
14258
  }
14259
- var O = S.packageIterator, j = S.extensions || [".js"], te = S.includeCoreModules !== !1, Z = S.basedir || t.dirname(r()), Q = S.filename || Z;
14259
+ var I = S.packageIterator, j = S.extensions || [".js"], te = S.includeCoreModules !== !1, Z = S.basedir || t.dirname(r()), Q = S.filename || Z;
14260
14260
  S.paths = S.paths || c();
14261
14261
  var w = t.resolve(Z);
14262
14262
  p(
@@ -14335,7 +14335,7 @@ function requireAsync() {
14335
14335
  var R = t.join(P, "package.json");
14336
14336
  B(R, function(Y, X) {
14337
14337
  if (!X) return $(t.dirname(A), W);
14338
- I(F, R, function(ee, ne) {
14338
+ O(F, R, function(ee, ne) {
14339
14339
  ee && W(ee);
14340
14340
  var ae = ne;
14341
14341
  ae && S.packageFilter && (ae = S.packageFilter(ae, R)), W(null, ae, A);
@@ -14351,7 +14351,7 @@ function requireAsync() {
14351
14351
  B(ee, function(ne, ae) {
14352
14352
  if (ne) return P(ne);
14353
14353
  if (!ae) return J(t.join(A, "index"), R, P);
14354
- I(F, ee, function(oe, se) {
14354
+ O(F, ee, function(oe, se) {
14355
14355
  if (oe) return P(oe);
14356
14356
  var D = se;
14357
14357
  if (D && S.packageFilter && (D = S.packageFilter(D, ee)), D && D.main) {
@@ -14403,7 +14403,7 @@ function requireAsync() {
14403
14403
  };
14404
14404
  T(
14405
14405
  G,
14406
- O ? O(A, W, P, S) : P()
14406
+ I ? I(A, W, P, S) : P()
14407
14407
  );
14408
14408
  }
14409
14409
  }, async;
@@ -14857,7 +14857,7 @@ function requireSync() {
14857
14857
  var k = s(b, v), C = k.isFile || u, S = k.readFileSync || n.readFileSync, V = k.isDirectory || d, B = k.realpathSync || f, N = k.readPackageSync || m;
14858
14858
  if (k.readFileSync && k.readPackageSync)
14859
14859
  throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");
14860
- var F = k.packageIterator, q = k.extensions || [".js"], I = k.includeCoreModules !== !1, H = k.basedir || t.dirname(a()), O = k.filename || H;
14860
+ var F = k.packageIterator, q = k.extensions || [".js"], O = k.includeCoreModules !== !1, H = k.basedir || t.dirname(a()), I = k.filename || H;
14861
14861
  k.paths = k.paths || c();
14862
14862
  var j = p(B, t.resolve(H), k);
14863
14863
  if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(b)) {
@@ -14866,12 +14866,12 @@ function requireSync() {
14866
14866
  var Z = L(te) || U(te);
14867
14867
  if (Z) return p(B, Z, k);
14868
14868
  } else {
14869
- if (I && e(b))
14869
+ if (O && e(b))
14870
14870
  return b;
14871
14871
  var Q = J(b, j);
14872
14872
  if (Q) return p(B, Q, k);
14873
14873
  }
14874
- var w = new Error("Cannot find module '" + b + "' from '" + O + "'");
14874
+ var w = new Error("Cannot find module '" + b + "' from '" + I + "'");
14875
14875
  throw w.code = "MODULE_NOT_FOUND", w;
14876
14876
  function L($) {
14877
14877
  var E = M(t.dirname($));
@@ -15123,18 +15123,18 @@ function requireTypes() {
15123
15123
  return r(D) === "BigInt64Array";
15124
15124
  }
15125
15125
  e.isBigInt64Array = q;
15126
- function I(D) {
15126
+ function O(D) {
15127
15127
  return r(D) === "BigUint64Array";
15128
15128
  }
15129
- e.isBigUint64Array = I;
15129
+ e.isBigUint64Array = O;
15130
15130
  function H(D) {
15131
15131
  return l(D) === "[object Map]";
15132
15132
  }
15133
15133
  H.working = typeof Map < "u" && H(/* @__PURE__ */ new Map());
15134
- function O(D) {
15134
+ function I(D) {
15135
15135
  return typeof Map > "u" ? !1 : H.working ? H(D) : D instanceof Map;
15136
15136
  }
15137
- e.isMap = O;
15137
+ e.isMap = I;
15138
15138
  function j(D) {
15139
15139
  return l(D) === "[object Set]";
15140
15140
  }
@@ -15382,7 +15382,7 @@ function requireUtil() {
15382
15382
  }), E;
15383
15383
  }
15384
15384
  function d($, E, T) {
15385
- if ($.customInspect && E && O(E.inspect) && // Filter out the util module, it's inspect function is special
15385
+ if ($.customInspect && E && I(E.inspect) && // Filter out the util module, it's inspect function is special
15386
15386
  E.inspect !== e.inspect && // Also filter out any prototype objects using the circular check.
15387
15387
  !(E.constructor && E.constructor.prototype === E)) {
15388
15388
  var z = E.inspect(T, $);
@@ -15395,23 +15395,23 @@ function requireUtil() {
15395
15395
  if ($.showHidden && (W = Object.getOwnPropertyNames(E)), H(E) && (W.indexOf("message") >= 0 || W.indexOf("description") >= 0))
15396
15396
  return p(E);
15397
15397
  if (W.length === 0) {
15398
- if (O(E)) {
15398
+ if (I(E)) {
15399
15399
  var P = E.name ? ": " + E.name : "";
15400
15400
  return $.stylize("[Function" + P + "]", "special");
15401
15401
  }
15402
15402
  if (F(E))
15403
15403
  return $.stylize(RegExp.prototype.toString.call(E), "regexp");
15404
- if (I(E))
15404
+ if (O(E))
15405
15405
  return $.stylize(Date.prototype.toString.call(E), "date");
15406
15406
  if (H(E))
15407
15407
  return p(E);
15408
15408
  }
15409
15409
  var R = "", Y = !1, X = ["{", "}"];
15410
- if (b(E) && (Y = !0, X = ["[", "]"]), O(E)) {
15410
+ if (b(E) && (Y = !0, X = ["[", "]"]), I(E)) {
15411
15411
  var ee = E.name ? ": " + E.name : "";
15412
15412
  R = " [Function" + ee + "]";
15413
15413
  }
15414
- if (F(E) && (R = " " + RegExp.prototype.toString.call(E)), I(E) && (R = " " + Date.prototype.toUTCString.call(E)), H(E) && (R = " " + p(E)), W.length === 0 && (!Y || E.length == 0))
15414
+ if (F(E) && (R = " " + RegExp.prototype.toString.call(E)), O(E) && (R = " " + Date.prototype.toUTCString.call(E)), H(E) && (R = " " + p(E)), W.length === 0 && (!Y || E.length == 0))
15415
15415
  return X[0] + R + X[1];
15416
15416
  if (T < 0)
15417
15417
  return F(E) ? $.stylize(RegExp.prototype.toString.call(E), "regexp") : $.stylize("[Object]", "special");
@@ -15528,18 +15528,18 @@ function requireUtil() {
15528
15528
  return typeof $ == "object" && $ !== null;
15529
15529
  }
15530
15530
  e.isObject = q;
15531
- function I($) {
15531
+ function O($) {
15532
15532
  return q($) && te($) === "[object Date]";
15533
15533
  }
15534
- e.isDate = I, e.types.isDate = I;
15534
+ e.isDate = O, e.types.isDate = O;
15535
15535
  function H($) {
15536
15536
  return q($) && (te($) === "[object Error]" || $ instanceof Error);
15537
15537
  }
15538
15538
  e.isError = H, e.types.isNativeError = H;
15539
- function O($) {
15539
+ function I($) {
15540
15540
  return typeof $ == "function";
15541
15541
  }
15542
- e.isFunction = O;
15542
+ e.isFunction = I;
15543
15543
  function j($) {
15544
15544
  return $ === null || typeof $ == "boolean" || typeof $ == "number" || typeof $ == "string" || typeof $ == "symbol" || // ES6 symbol
15545
15545
  typeof $ > "u";
@@ -16054,13 +16054,13 @@ function requireLib() {
16054
16054
  }, C.start), N = Object.assign({}, B, C.end), {
16055
16055
  linesAbove: F = 2,
16056
16056
  linesBelow: q = 3
16057
- } = V || {}, I = B.line, H = B.column, O = N.line, j = N.column;
16058
- let te = Math.max(I - (F + 1), 0), Z = Math.min(S.length, O + q);
16059
- I === -1 && (te = 0), O === -1 && (Z = S.length);
16060
- const Q = O - I, w = {};
16057
+ } = V || {}, O = B.line, H = B.column, I = N.line, j = N.column;
16058
+ let te = Math.max(O - (F + 1), 0), Z = Math.min(S.length, I + q);
16059
+ O === -1 && (te = 0), I === -1 && (Z = S.length);
16060
+ const Q = I - O, w = {};
16061
16061
  if (Q)
16062
16062
  for (let L = 0; L <= Q; L++) {
16063
- const M = L + I;
16063
+ const M = L + O;
16064
16064
  if (!H)
16065
16065
  w[M] = !0;
16066
16066
  else if (L === 0) {
@@ -16074,7 +16074,7 @@ function requireLib() {
16074
16074
  }
16075
16075
  }
16076
16076
  else
16077
- H === j ? H ? w[I] = [H, 0] : w[I] = !0 : w[I] = [H, j - H];
16077
+ H === j ? H ? w[O] = [H, 0] : w[O] = !0 : w[O] = [H, j - H];
16078
16078
  return {
16079
16079
  start: te,
16080
16080
  end: Z,
@@ -16084,10 +16084,10 @@ function requireLib() {
16084
16084
  function v(C, S, V = {}) {
16085
16085
  const B = V.forceColor || a() && V.highlightCode, N = c(B), F = C.split(_), {
16086
16086
  start: q,
16087
- end: I,
16087
+ end: O,
16088
16088
  markerLines: H
16089
- } = b(S, F, V), O = S.start && typeof S.start.column == "number", j = String(I).length;
16090
- let Z = (B ? m(C) : C).split(_, I).slice(q, I).map((Q, w) => {
16089
+ } = b(S, F, V), I = S.start && typeof S.start.column == "number", j = String(O).length;
16090
+ let Z = (B ? m(C) : C).split(_, O).slice(q, O).map((Q, w) => {
16091
16091
  const L = q + 1 + w, U = ` ${` ${L}`.slice(-j)} |`, J = H[L], $ = !H[L + 1];
16092
16092
  if (J) {
16093
16093
  let E = "";
@@ -16101,7 +16101,7 @@ function requireLib() {
16101
16101
  return ` ${N.gutter(U)}${Q.length > 0 ? ` ${Q}` : ""}`;
16102
16102
  }).join(`
16103
16103
  `);
16104
- return V.message && !O && (Z = `${" ".repeat(j + 1)}${V.message}
16104
+ return V.message && !I && (Z = `${" ".repeat(j + 1)}${V.message}
16105
16105
  ${Z}`), B ? N.reset(Z) : Z;
16106
16106
  }
16107
16107
  function k(C, S, V, B = {}) {
@@ -18268,10 +18268,10 @@ var isEmptyPath = function e(n) {
18268
18268
  return Q + w.length + 2;
18269
18269
  }, 2) > t.maxFlowStringSingleLineLength) {
18270
18270
  V = B;
18271
- var q = _createForOfIteratorHelper(F), I;
18271
+ var q = _createForOfIteratorHelper(F), O;
18272
18272
  try {
18273
- for (q.s(); !(I = q.n()).done; ) {
18274
- var H = I.value;
18273
+ for (q.s(); !(O = q.n()).done; ) {
18274
+ var H = O.value;
18275
18275
  V += H ? `
18276
18276
  `.concat(g).concat(m).concat(H) : `
18277
18277
  `;
@@ -18286,9 +18286,9 @@ var isEmptyPath = function e(n) {
18286
18286
  } else
18287
18287
  V = "".concat(B, " ").concat(F.join(" "), " ").concat(N);
18288
18288
  } else {
18289
- var O = S.map(c);
18290
- V = O.shift();
18291
- var j = _createForOfIteratorHelper(O), te;
18289
+ var I = S.map(c);
18290
+ V = I.shift();
18291
+ var j = _createForOfIteratorHelper(I), te;
18292
18292
  try {
18293
18293
  for (j.s(); !(te = j.n()).done; ) {
18294
18294
  var Z = te.value;
@@ -18488,18 +18488,18 @@ var YAMLSeq = /* @__PURE__ */ function(e) {
18488
18488
  return N = null;
18489
18489
  }, function() {
18490
18490
  return S = !0;
18491
- }), I = " ";
18491
+ }), O = " ";
18492
18492
  if (B || this.comment)
18493
- I = "".concat(B, `
18493
+ O = "".concat(B, `
18494
18494
  `).concat(a.indent);
18495
18495
  else if (!g && f instanceof Collection) {
18496
18496
  var H = q[0] === "[" || q[0] === "{";
18497
18497
  (!H || q.includes(`
18498
- `)) && (I = `
18498
+ `)) && (O = `
18499
18499
  `.concat(a.indent));
18500
18500
  } else q[0] === `
18501
- ` && (I = "");
18502
- return S && !N && s && s(), addComment(V + I + q, a.indent, N);
18501
+ ` && (O = "");
18502
+ return S && !N && s && s(), addComment(V + O + q, a.indent, N);
18503
18503
  }
18504
18504
  }]), t;
18505
18505
  }(Node);
@@ -18846,10 +18846,10 @@ function foldFlowLines(e, n, t, r) {
18846
18846
  if (b && u && u(), f.length === 0) return e;
18847
18847
  c && c();
18848
18848
  for (var N = e.slice(0, f[0]), F = 0; F < f.length; ++F) {
18849
- var q = f[F], I = f[F + 1] || e.length;
18849
+ var q = f[F], O = f[F + 1] || e.length;
18850
18850
  q === 0 ? N = `
18851
- `.concat(n).concat(e.slice(0, I)) : (t === FOLD_QUOTED && p[q] && (N += "".concat(e[q], "\\")), N += `
18852
- `.concat(n).concat(e.slice(q + 1, I)));
18851
+ `.concat(n).concat(e.slice(0, O)) : (t === FOLD_QUOTED && p[q] && (N += "".concat(e[q], "\\")), N += `
18852
+ `.concat(n).concat(e.slice(q + 1, O)));
18853
18853
  }
18854
18854
  return N;
18855
18855
  }
@@ -21574,14 +21574,14 @@ function requireDist() {
21574
21574
  resolvePath: N = f,
21575
21575
  isMacrosName: F = i
21576
21576
  } = V, q = (0, r.default)(V, ["require", "resolvePath", "isMacrosName"]);
21577
- function I(H) {
21578
- const O = B(H);
21579
- return O && O.__esModule && O.default ? O.default : O;
21577
+ function O(H) {
21578
+ const I = B(H);
21579
+ return I && I.__esModule && I.default ? I.default : I;
21580
21580
  }
21581
21581
  return {
21582
21582
  name: "macros",
21583
21583
  visitor: {
21584
- Program(H, O) {
21584
+ Program(H, I) {
21585
21585
  H.traverse({
21586
21586
  ImportDeclaration(j) {
21587
21587
  if (!k(j, {
@@ -21599,9 +21599,9 @@ function requireDist() {
21599
21599
  path: j,
21600
21600
  imports: Z,
21601
21601
  source: Q,
21602
- state: O,
21602
+ state: I,
21603
21603
  babel: S,
21604
- interopRequire: I,
21604
+ interopRequire: O,
21605
21605
  resolvePath: N,
21606
21606
  options: q
21607
21607
  });
@@ -21630,9 +21630,9 @@ function requireDist() {
21630
21630
  path: w,
21631
21631
  imports: Q,
21632
21632
  source: L,
21633
- state: O,
21633
+ state: I,
21634
21634
  babel: S,
21635
- interopRequire: I,
21635
+ interopRequire: O,
21636
21636
  resolvePath: N,
21637
21637
  options: q
21638
21638
  });
@@ -21651,13 +21651,13 @@ function requireDist() {
21651
21651
  state: N,
21652
21652
  babel: F,
21653
21653
  interopRequire: q,
21654
- resolvePath: I,
21654
+ resolvePath: O,
21655
21655
  options: H
21656
21656
  }) {
21657
21657
  const {
21658
21658
  file: {
21659
21659
  opts: {
21660
- filename: O = ""
21660
+ filename: I = ""
21661
21661
  }
21662
21662
  }
21663
21663
  } = N;
@@ -21668,10 +21668,10 @@ function requireDist() {
21668
21668
  }) => {
21669
21669
  const E = S.scope.getBinding($);
21670
21670
  return U[J] = E.referencePaths, j = j || !!U[J].length, U;
21671
- }, {}), Z = B.indexOf(".") === 0, Q = I(B, a.dirname(v(O))), w = q(Q);
21671
+ }, {}), Z = B.indexOf(".") === 0, Q = O(B, a.dirname(v(I))), w = q(Q);
21672
21672
  if (!w.isBabelMacro)
21673
21673
  throw new Error(`The macro imported from "${B}" must be wrapped in "createMacro" which you can get from "babel-plugin-macros". Please refer to the documentation to see how to do this properly: https://github.com/kentcdodds/babel-plugin-macros/blob/master/other/docs/author.md#writing-a-macro`);
21674
- const L = b(w, O, B, H);
21674
+ const L = b(w, I, B, H);
21675
21675
  let M;
21676
21676
  try {
21677
21677
  N.file.scope.path.traverse({
@@ -21726,12 +21726,12 @@ function requireDist() {
21726
21726
  configName: F
21727
21727
  } = S.options;
21728
21728
  if (F) {
21729
- const q = g(F, V), I = _(F, N);
21730
- if (I.options === void 0 && q.options === void 0 && q.error !== void 0)
21729
+ const q = g(F, V), O = _(F, N);
21730
+ if (O.options === void 0 && q.options === void 0 && q.error !== void 0)
21731
21731
  throw console.error(`There was an error trying to load the config "${F}" for the macro imported from "${B}. Please see the error thrown for more information.`), q.error;
21732
- if (q.options !== void 0 && I.options !== void 0 && typeof q.options != "object")
21733
- throw new Error(`${q.path} specified a ${F} config of type ${typeof I.options}, but the the macros plugin's options.${F} did contain an object. Both configs must contain objects for their options to be mergeable.`);
21734
- return (0, t.default)({}, I.options, {}, q.options);
21732
+ if (q.options !== void 0 && O.options !== void 0 && typeof q.options != "object")
21733
+ throw new Error(`${q.path} specified a ${F} config of type ${typeof O.options}, but the the macros plugin's options.${F} did contain an object. Both configs must contain objects for their options to be mergeable.`);
21734
+ return (0, t.default)({}, O.options, {}, q.options);
21735
21735
  }
21736
21736
  }
21737
21737
  function v(S) {
@@ -29399,20 +29399,20 @@ const _hoisted_1$t = {
29399
29399
  }, q = async () => {
29400
29400
  const w = await getData(b);
29401
29401
  w && (v.value = w.data);
29402
- }, I = (w, L) => {
29402
+ }, O = (w, L) => {
29403
29403
  L === "key" ? o.value = _.value.find((M) => M.key === w) : L === "id" ? o.value = _.value.find((M) => M.id === w) : o.value = _.value.find((M) => M.name === w.trim());
29404
29404
  }, H = (w) => {
29405
29405
  const L = w.value;
29406
29406
  r.value = L, L === "tour" && (F(), q());
29407
- }, O = () => u[n.defaultLocale] || "", j = () => {
29407
+ }, I = () => u[n.defaultLocale] || "", j = () => {
29408
29408
  t.value = !0, nextTick(() => {
29409
- t.value = !1, n.defaultLocation !== "" && c && I(n.defaultLocation, "id");
29409
+ t.value = !1, n.defaultLocation !== "" && c && O(n.defaultLocation, "id");
29410
29410
  });
29411
29411
  }, te = computed$1(() => r.value !== "cate" && r.value !== "acti,attr,reta" ? "d-lg-flex" : "");
29412
29412
  onBeforeMount(async () => {
29413
29413
  window.VS = {};
29414
29414
  const w = document.createElement("script");
29415
- w.async = !1, w.onload = j, w.setAttribute("src", `https://www.visitscotland.com/${O().localeUrl}/data/template/search.js`), document.head.appendChild(w);
29415
+ w.async = !1, w.onload = j, w.setAttribute("src", `https://www.visitscotland.com/${I().localeUrl}/data/template/search.js`), document.head.appendChild(w);
29416
29416
  }), onMounted(async () => {
29417
29417
  N(), c.value = !0, r.value = n.defaultProd, r.value === "tour" && (F(), q()), V();
29418
29418
  });
@@ -29462,7 +29462,7 @@ const _hoisted_1$t = {
29462
29462
  options: _.value,
29463
29463
  placeholder: unref(getLabelText)("location_placeholder", "Enter a location"),
29464
29464
  "track-by": "name",
29465
- onChangeValue: L[1] || (L[1] = (z) => I(z)),
29465
+ onChangeValue: L[1] || (L[1] = (z) => O(z)),
29466
29466
  "default-val": unref(o),
29467
29467
  "data-chromatic": "ignore"
29468
29468
  }, null, 8, ["label", "options", "placeholder", "default-val"])) : createCommentVNode("", !0),
@@ -34055,16 +34055,16 @@ async function cludoAutocomplete(e, n) {
34055
34055
  }
34056
34056
  }
34057
34057
  const useFederatedSearchStore = defineStore("federatedSearch", () => {
34058
- const e = ref(null), n = ref(void 0), t = ref(!1), r = ref(1), a = ref(void 0), o = ref(!1), s = ref(!1), i = ref(null), l = ref(""), c = ref(null), u = ref(null), d = ref([]), f = ref([]), p = ref(void 0), m = ref(void 0), g = ref(void 0), _ = ref(!1), b = ref(""), v = ref(""), k = ref(void 0), C = ref(void 0), S = ref(void 0), V = ref(0), B = ref("");
34059
- async function N() {
34060
- s.value = !0, V.value += 1;
34061
- const I = await cludoSearch(
34058
+ const e = ref(null), n = ref(void 0), t = ref(!1), r = ref(1), a = ref(void 0), o = ref(!1), s = ref(!1), i = ref(null), l = ref(""), c = ref(null), u = ref(null), d = ref([]), f = ref([]), p = ref(void 0), m = ref(void 0), g = ref(void 0), _ = ref(!1), b = ref(""), v = ref(""), k = ref(void 0), C = ref(void 0), S = ref(void 0), V = ref(-1), B = ref("");
34059
+ async function N(O = !1) {
34060
+ s.value = !0, O || (V.value += 1);
34061
+ const H = await cludoSearch(
34062
34062
  l.value,
34063
34063
  n.value,
34064
34064
  r.value,
34065
34065
  c.value,
34066
34066
  u.value
34067
- ), H = await eventSearch(
34067
+ ), I = await eventSearch(
34068
34068
  a.value,
34069
34069
  l.value,
34070
34070
  r.value,
@@ -34075,17 +34075,17 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
34075
34075
  k.value,
34076
34076
  S.value
34077
34077
  );
34078
- i.value = [...I.results, ...H.results], m.value = I.totalResults, g.value = H.totalResults, p.value = I.totalResults + H.totalResults, s.value = !1;
34078
+ i.value = [...H.results, ...I.results], m.value = H.totalResults, g.value = I.totalResults, p.value = H.totalResults + I.totalResults, s.value = !1;
34079
34079
  }
34080
34080
  async function F() {
34081
34081
  return cludoAutocomplete(l.value, n.value);
34082
34082
  }
34083
- async function q(I, H) {
34084
- const O = new URL(window.location.href);
34085
- if (H ? B.value = "Autosuggestion" : B.value = "User input", l.value ? O.searchParams.set("search-term", l.value) : O.searchParams.delete("search-term"), u.value ? O.searchParams.set("category", encodeURIComponent(u.value)) : O.searchParams.delete("category"), f.value.length > 0 ? O.searchParams.set("sub-category", encodeURIComponent(f.value.join(","))) : O.searchParams.delete("sub-category"), I ? (r.value = 1, O.searchParams.set("page", r.value.toString())) : r.value && r.value > 1 ? O.searchParams.set("page", r.value.toString()) : O.searchParams.delete("page"), b.value ? O.searchParams.set("start-date", b.value) : O.searchParams.delete("start-date"), v.value ? O.searchParams.set("end-date", v.value) : O.searchParams.delete("end-date"), k.value ? O.searchParams.set("sort-by", k.value) : O.searchParams.delete("sort-by"), !_.value)
34086
- window.history.pushState({}, "", O), await N();
34083
+ async function q(O, H) {
34084
+ const I = new URL(window.location.href);
34085
+ if (H ? B.value = "Autosuggestion" : B.value = "User input", l.value ? I.searchParams.set("search-term", l.value) : I.searchParams.delete("search-term"), u.value ? I.searchParams.set("category", encodeURIComponent(u.value)) : I.searchParams.delete("category"), f.value.length > 0 ? I.searchParams.set("sub-category", encodeURIComponent(f.value.join(","))) : I.searchParams.delete("sub-category"), O ? (r.value = 1, I.searchParams.set("page", r.value.toString())) : r.value && r.value > 1 ? I.searchParams.set("page", r.value.toString()) : I.searchParams.delete("page"), b.value ? I.searchParams.set("start-date", b.value) : I.searchParams.delete("start-date"), v.value ? I.searchParams.set("end-date", v.value) : I.searchParams.delete("end-date"), k.value ? I.searchParams.set("sort-by", k.value) : I.searchParams.delete("sort-by"), !_.value)
34086
+ window.history.pushState({}, "", I), await N();
34087
34087
  else {
34088
- const j = `${C.value}/${O.search}`;
34088
+ const j = `${C.value}/${I.search}`;
34089
34089
  window.location.href = j;
34090
34090
  }
34091
34091
  }
@@ -34355,6 +34355,7 @@ function dataLayerComposable$1() {
34355
34355
  results_count: c.results_count,
34356
34356
  search_usage_index: c.search_usage_index,
34357
34357
  search_type: c.search_type,
34358
+ search_origin: c.search_origin || "results_page",
34358
34359
  interaction_type: "search_input"
34359
34360
  }, f = o(d), p = r(siteSearchUsageTemplate, f);
34360
34361
  break;
@@ -34871,7 +34872,7 @@ const _hoisted_1$4 = { class: "vs-fed-search-input" }, _hoisted_2$4 = { class: "
34871
34872
  // Start date is after end date
34872
34873
  t.endDate && t.startDate > t.endDate ? (r.value.error = !0, r.value.message = a.errorMessages.incorrectDateOrder) : /* Events API down */ t.selectedCategoryKey === "events" && t.eventsApiError && !t.isLoading ? (r.value.error = !0, r.value.message = a.errorMessages.eventError) : /* Cludo down */ (t.searchTerm || t.selectedCategory) && t.selectedCategoryKey !== "events" && t.cludoError && !t.isLoading ? (r.value.error = !0, r.value.message = a.errorMessages.cludoError) : /* No Results */ t.totalResults === 0 && !t.isLoading ? (r.value.error = !0, r.value.message = a.errorMessages.noResults) : (r.value.error = !1, r.value.message = "");
34873
34874
  }
34874
- onMounted(() => {
34875
+ onMounted(async () => {
34875
34876
  if (n.createDataLayerObject("siteSearchOpenEvent", {
34876
34877
  referrer_page: document.referrer
34877
34878
  }), t.cludoCredentials = {
@@ -34879,10 +34880,18 @@ const _hoisted_1$4 = { class: "vs-fed-search-input" }, _hoisted_2$4 = { class: "
34879
34880
  customerId: a.cludoCustomerId,
34880
34881
  engineId: a.cludoEngineId
34881
34882
  }, t.eventsApi = a.eventsApi, t.filters = a.filters, t.siteLanguage = a.siteLanguage, i(), typeof window < "u" && typeof document < "u") {
34882
- const v = new URLSearchParams(document.location.search), k = v.get("search-term"), C = parseInt(v.get("page"), 10);
34883
- C && (t.currentPage = C), k && (t.searchTerm = k), t.getSearchResults(), window.onbeforeunload = () => {
34883
+ window.onbeforeunload = () => {
34884
34884
  b();
34885
34885
  };
34886
+ const v = new URLSearchParams(document.location.search), k = v.get("search-term"), C = parseInt(v.get("page"), 10);
34887
+ C && (t.currentPage = C), k && (t.searchTerm = k), await t.getSearchResults(), k && n.createDataLayerObject("siteSearchUsageEvent", {
34888
+ search_query: t.searchTerm,
34889
+ query_input: t.queryInput,
34890
+ results_count: t.totalResults,
34891
+ search_usage_index: t.searchInSessionCount,
34892
+ search_type: "initial",
34893
+ search_origin: "home_page"
34894
+ });
34886
34895
  }
34887
34896
  });
34888
34897
  function l(v) {
@@ -35613,8 +35622,8 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
35613
35622
  const n = dataLayerComposable(), t = e;
35614
35623
  let r, a, o, s, i, l, c, u, d, f, p = {}, m;
35615
35624
  const g = ref(), _ = ref(/* @__PURE__ */ new Set()), b = ref(), v = ref(/* @__PURE__ */ new Set()), k = ref(/* @__PURE__ */ new Set()), C = ref(), S = ref(), V = ref(t.zoom), B = ref(), N = ref(/* @__PURE__ */ new Set()), F = ref(), q = useGoogleMapStore();
35616
- let I;
35617
- const H = ref(void 0), O = {
35625
+ let O;
35626
+ const H = ref(void 0), I = {
35618
35627
  north: 61.865,
35619
35628
  south: 54.62185,
35620
35629
  west: -8.651,
@@ -35624,12 +35633,12 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
35624
35633
  const te = t.categoryLabels;
35625
35634
  onBeforeMount(() => {
35626
35635
  const P = cookieCheckerComposable();
35627
- P.requiredCookies.value = cookieValues$5.google_maps, I = computed$1(() => t.jsDisabled === !0 ? (H.value = "noJS", !0) : !P.cookiesAllowed.value && P.cookiesLoaded.value === !0 || !P.cookiesLoaded.value ? (H.value = "noCookie", !0) : !1);
35636
+ P.requiredCookies.value = cookieValues$5.google_maps, O = computed$1(() => t.jsDisabled === !0 ? (H.value = "noJS", !0) : !P.cookiesAllowed.value && P.cookiesLoaded.value === !0 || !P.cookiesLoaded.value ? (H.value = "noCookie", !0) : !1);
35628
35637
  }), onMounted(async () => {
35629
35638
  if (t.categoriesLocation && axios.get(t.categoriesLocation).then((R) => {
35630
35639
  j = R.data;
35631
35640
  }).catch(() => {
35632
- }), I.value === !1) {
35641
+ }), O.value === !1) {
35633
35642
  setOptions({
35634
35643
  key: t.apiKey,
35635
35644
  v: "quarterly",
@@ -35654,7 +35663,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
35654
35663
  zoom: t.zoom,
35655
35664
  mapId: "vs-map",
35656
35665
  restriction: {
35657
- latLngBounds: O
35666
+ latLngBounds: I
35658
35667
  },
35659
35668
  zoomControl: !0,
35660
35669
  fullscreenControl: !1,
@@ -35682,7 +35691,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
35682
35691
  p[R.id] && z(R, p[R.id]);
35683
35692
  });
35684
35693
  }
35685
- q.firstInteraction = !1, q.searchesCount = 0, q.filterUsesCount = 0, I.value === !1 && await P();
35694
+ q.firstInteraction = !1, q.searchesCount = 0, q.filterUsesCount = 0, O.value === !1 && await P();
35686
35695
  });
35687
35696
  function Z(P, R) {
35688
35697
  E(), g.value = P, Object.values(j[P].subCategory).forEach(
@@ -35841,7 +35850,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
35841
35850
  }
35842
35851
  return (P, R) => (openBlock(), createElementBlock("div", _hoisted_1, [
35843
35852
  createElementVNode("div", {
35844
- class: normalizeClass(["vs-map__container", unref(I) ? "d-none" : "d-block"])
35853
+ class: normalizeClass(["vs-map__container", unref(O) ? "d-none" : "d-block"])
35845
35854
  }, [
35846
35855
  createElementVNode("div", _hoisted_2, [
35847
35856
  createVNode(_sfc_main$1, {
@@ -35984,10 +35993,10 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
35984
35993
  }))
35985
35994
  ])
35986
35995
  ], 2),
35987
- unref(I) && H.value === "noCookie" ? (openBlock(), createBlock(unref(VsWarning), {
35996
+ unref(O) && H.value === "noCookie" ? (openBlock(), createBlock(unref(VsWarning), {
35988
35997
  key: 0,
35989
35998
  type: "cookie",
35990
- class: normalizeClass(["vs-map__error vs-map__error--no-cookies", unref(I) ? "d-block" : "d-none"]),
35999
+ class: normalizeClass(["vs-map__error vs-map__error--no-cookies", unref(O) ? "d-block" : "d-none"]),
35991
36000
  "data-test": "vs-map__warning--no-cookies"
35992
36001
  }, {
35993
36002
  "button-text": withCtx(() => [
@@ -35998,7 +36007,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
35998
36007
  ]),
35999
36008
  _: 1
36000
36009
  }, 8, ["class"])) : createCommentVNode("", !0),
36001
- unref(I) && H.value === "noJS" ? (openBlock(), createBlock(unref(VsWarning), {
36010
+ unref(O) && H.value === "noJS" ? (openBlock(), createBlock(unref(VsWarning), {
36002
36011
  key: 1,
36003
36012
  "data-test": "vs-map__warning--no-js",
36004
36013
  class: "vs-map__warning vs-map__warning--no-js"