@visitscotland/component-library 5.71.2 → 5.71.4

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.
@@ -37043,7 +37043,7 @@ function useSwipeDrawer(e, t) {
37043
37043
  ), p = computed$1(() => {
37044
37044
  if (i.value)
37045
37045
  return {
37046
- height: `calc(100vh - ${u}px)`,
37046
+ height: `calc(100dvh - ${u}px)`,
37047
37047
  top: `${u}px`,
37048
37048
  transform: `translateY(${n.value}px)`,
37049
37049
  transition: s.value ? "none" : "transform 0.5s ease"
@@ -37070,7 +37070,7 @@ function useSwipeDrawer(e, t) {
37070
37070
  return watchEffect(() => {
37071
37071
  n.value = e.value ? c : f.value;
37072
37072
  }), onMounted(() => {
37073
- i.value && (document.documentElement.classList.add("map-page"), document.body.classList.add("map-page")), r.value = t.value ? t.value.getBoundingClientRect().height : 500, l.value = Math.min(250, window.innerHeight * 0.3), n.value = f.value, i.value = window.innerWidth < 768, window.addEventListener("resize", v);
37073
+ r.value = t.value ? t.value.getBoundingClientRect().height : 500, l.value = Math.min(250, window.innerHeight * 0.3), n.value = f.value, i.value = window.innerWidth < 768, i.value && (document.documentElement.classList.add("map-page"), document.body.classList.add("map-page")), window.addEventListener("resize", v);
37074
37074
  }), onUnmounted(() => {
37075
37075
  document.documentElement.classList.remove("map-page"), document.body.classList.remove("map-page"), window.removeEventListener("resize", v);
37076
37076
  }), {
@@ -37831,7 +37831,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
37831
37831
  }), l.addListener("tilesloaded", () => {
37832
37832
  L.value || (L.value = !0, we());
37833
37833
  }), l.addListener("idle", () => {
37834
- _ = Pe(), !ue.value && pe.value && me(se(l)) && (de.value = !0, R.selectedDestinationType = "", he.value = "", pe.value = !1);
37834
+ _ = Pe(), !ue.value && pe.value && me(se(l)) && (de.value = !0, R.selectedDestinationType = s[0].id, he.value = "", pe.value = !1);
37835
37835
  }), d.addEventListener("gmp-select", ({ place: q }) => {
37836
37836
  v[q.id] && ke(q, v[q.id]);
37837
37837
  }), u.addEventListener("gmp-select", ({ place: q }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visitscotland/component-library",
3
- "version": "5.71.2",
3
+ "version": "5.71.4",
4
4
  "description": "VisitScotland Component Library",
5
5
  "author": "VisitScotland",
6
6
  "homepage": "https://github.com/visitscotland/vs-component-library#readme",