@visitscotland/component-library 5.41.4 → 5.41.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.
@@ -35807,7 +35807,7 @@ const useGoogleMapStore = defineStore("googleMap", () => {
35807
35807
  return (r, s) => (openBlock(), createBlock(VsCard, {
35808
35808
  "card-style": "overlay",
35809
35809
  class: "vs-map__controls-featured-place-card",
35810
- onClick: s[1] || (s[1] = (o) => a(n.place))
35810
+ onClick: s[2] || (s[2] = (o) => a(n.place))
35811
35811
  }, createSlots({
35812
35812
  "vs-card-footer": withCtx(() => [
35813
35813
  createElementVNode("div", _hoisted_1$3, [
@@ -35822,7 +35822,10 @@ const useGoogleMapStore = defineStore("googleMap", () => {
35822
35822
  class: "stretched-link text-decoration-none",
35823
35823
  href: "#",
35824
35824
  variant: "on-dark",
35825
- onKeypress: s[0] || (s[0] = withKeys(withModifiers((o) => a(n.place), ["prevent"]), ["enter"]))
35825
+ onKeyup: [
35826
+ s[0] || (s[0] = withKeys(withModifiers((o) => a(n.place), ["prevent"]), ["enter"])),
35827
+ s[1] || (s[1] = withKeys(withModifiers((o) => a(n.place), ["prevent"]), ["space"]))
35828
+ ]
35826
35829
  }, {
35827
35830
  default: withCtx(() => [
35828
35831
  createTextVNode(toDisplayString(n.place.properties.title), 1)
@@ -36611,7 +36614,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
36611
36614
  async function X() {
36612
36615
  ae(), ce(), $ += 1;
36613
36616
  const W = $;
36614
- J.searchesCount += 1, j.value = "text", R.value = p.value.trim(), R.value && (c.textQuery = R.value, c.locationRestriction = s.getBounds(), c.maxResultCount = NUMBER_OF_RESULTS, l.style.display = "block", l.addEventListener("gmp-load", () => {
36617
+ J.searchesCount += 1, j.value = "text", R.value = p.value.trim(), R.value && (c.textQuery = `${R.value} in Scotland`, c.locationRestriction = s.getBounds(), c.maxResultCount = NUMBER_OF_RESULTS, l.style.display = "block", l.addEventListener("gmp-load", () => {
36615
36618
  W === $ && (se(W), n.createDataLayerObject("googleMapSearchEvent", {
36616
36619
  search_query: R.value,
36617
36620
  search_map_location: s.getCenter().toString(),