@visitscotland/component-library 5.41.1 → 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.
@@ -36584,7 +36584,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
36584
36584
  } = {}) {
36585
36585
  ae(), oe(), $ += 1;
36586
36586
  const ee = $;
36587
- Y.value = !1, J.filterUsesCount += 1, j.value = "nearby";
36587
+ J.filterUsesCount += 1, j.value = "nearby";
36588
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);
36589
36589
  u.includedTypes = W, u.excludedTypes = G ?? [], u.maxResultCount = NUMBER_OF_RESULTS, u.locationRestriction = {
36590
36590
  center: s.getCenter(),
@@ -36605,7 +36605,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
36605
36605
  });
36606
36606
  }
36607
36607
  async function X() {
36608
- ae(), ce(), Y.value = !1, $ += 1;
36608
+ ae(), ce(), $ += 1;
36609
36609
  const W = $;
36610
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", () => {
36611
36611
  W === $ && (se(W), n.createDataLayerObject("googleMapSearchEvent", {
@@ -36622,7 +36622,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
36622
36622
  const { AdvancedMarkerElement: G } = await importLibrary("marker"), { LatLngBounds: ee } = await importLibrary("core");
36623
36623
  if (W !== $) return;
36624
36624
  const ne = ref();
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") : 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");
36626
36626
  const ie = new ee();
36627
36627
  ne.value.places && ne.value.places.forEach((le) => {
36628
36628
  const fe = document.createElement("div");
@@ -36708,8 +36708,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
36708
36708
  }
36709
36709
  function ge() {
36710
36710
  const W = s.getBounds();
36711
- if (!W)
36712
- return 0;
36711
+ if (!W) return 0;
36713
36712
  let G = 0;
36714
36713
  for (let ee = 0; ee < Object.keys(g).length; ee++) {
36715
36714
  const ie = g[Object.keys(g)[ee]].position;
@@ -36764,7 +36763,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
36764
36763
  Y.value || t.alertText && Y.value === !1 ? (openBlock(), createBlock(unref(VsAlert), {
36765
36764
  key: 0,
36766
36765
  class: "mt-075 mb-150",
36767
- id: "vs-map__no-results-alert",
36766
+ id: "vs-map__alert",
36768
36767
  size: "small"
36769
36768
  }, {
36770
36769
  default: withCtx(() => [