@visitscotland/component-library 5.41.0 → 5.41.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.
@@ -35859,6 +35859,8 @@ const useGoogleMapStore = defineStore("googleMap", () => {
35859
35859
  return "fa-regular fa-island-tropical";
35860
35860
  case "towns":
35861
35861
  return "fa-regular fa-house-chimney-window";
35862
+ case "national-parks":
35863
+ return "fa-kit fa-vs-icon-national-park";
35862
35864
  default:
35863
35865
  return null;
35864
35866
  }
@@ -36582,7 +36584,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
36582
36584
  } = {}) {
36583
36585
  ae(), oe(), $ += 1;
36584
36586
  const ee = $;
36585
- Y.value = !1, J.filterUsesCount += 1, j.value = "nearby";
36587
+ J.filterUsesCount += 1, j.value = "nearby";
36586
36588
  const ne = s.getBounds(), ie = ne.getNorthEast(), le = ne.getSouthWest(), fe = google.maps.geometry.spherical.computeDistanceBetween(ie, le), me = Math.min(fe / 2, 25e3);
36587
36589
  u.includedTypes = W, u.excludedTypes = G ?? [], u.maxResultCount = NUMBER_OF_RESULTS, u.locationRestriction = {
36588
36590
  center: s.getCenter(),
@@ -36603,7 +36605,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
36603
36605
  });
36604
36606
  }
36605
36607
  async function X() {
36606
- ae(), ce(), Y.value = !1, $ += 1;
36608
+ ae(), ce(), $ += 1;
36607
36609
  const W = $;
36608
36610
  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", () => {
36609
36611
  W === $ && (se(W), n.createDataLayerObject("googleMapSearchEvent", {
@@ -36620,7 +36622,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
36620
36622
  const { AdvancedMarkerElement: G } = await importLibrary("marker"), { LatLngBounds: ee } = await importLibrary("core");
36621
36623
  if (W !== $) return;
36622
36624
  const ne = ref();
36623
- j.value === "nearby" ? ne.value = i : j.value === "text" ? ne.value = l : console.error("Unrecognised Search type"), ne.value.places.length === 0 ? (Y.value = !0, ne.value.style.display = "none") : ne.value.style.display = "block";
36625
+ j.value === "nearby" ? ne.value = i : j.value === "text" ? ne.value = l : console.error("Unrecognised Search type"), ne.value.places.length === 0 ? (Y.value = !0, ne.value.style.display = "none") : (Y.value = !1, ne.value.style.display = "block");
36624
36626
  const ie = new ee();
36625
36627
  ne.value.places && ne.value.places.forEach((le) => {
36626
36628
  const fe = document.createElement("div");
@@ -36706,8 +36708,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
36706
36708
  }
36707
36709
  function ge() {
36708
36710
  const W = s.getBounds();
36709
- if (!W)
36710
- return 0;
36711
+ if (!W) return 0;
36711
36712
  let G = 0;
36712
36713
  for (let ee = 0; ee < Object.keys(g).length; ee++) {
36713
36714
  const ie = g[Object.keys(g)[ee]].position;
@@ -36762,7 +36763,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
36762
36763
  Y.value || t.alertText && Y.value === !1 ? (openBlock(), createBlock(unref(VsAlert), {
36763
36764
  key: 0,
36764
36765
  class: "mt-075 mb-150",
36765
- id: "vs-map__no-results-alert",
36766
+ id: "vs-map__alert",
36766
36767
  size: "small"
36767
36768
  }, {
36768
36769
  default: withCtx(() => [
Binary file
Binary file