@visitscotland/component-library 5.32.2 → 5.32.7

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.
Files changed (25) hide show
  1. package/CHANGELOG.md +37 -1
  2. package/dist/client/manifest.json +17 -17
  3. package/dist/client/scripts/1a18ab2c9d75c89ccba7.js +1 -0
  4. package/dist/client/scripts/{09e3f0f324ff5ae03351.js → 20d55eca8c06f006c4e6.js} +1 -1
  5. package/dist/client/scripts/7f73535d44bc5e66e689.js +1 -0
  6. package/dist/client/scripts/{42ae565acaa4545d2d58.js → abf4bacfcc559087eab1.js} +1 -1
  7. package/dist/client/scripts/cb8e1abd530b3aa93fcf.js +1 -0
  8. package/dist/client/styles/1a18ab2c9d75c89ccba7.css +1 -0
  9. package/dist/client/styles/7f73535d44bc5e66e689.css +1 -0
  10. package/dist/components/src/custom-components/maps/MainMap.vue.d.ts +0 -2
  11. package/dist/components/src/custom-components/maps/index.d.ts +0 -2
  12. package/dist/components/style.css +1 -1
  13. package/dist/components/vs-component-library.js +1 -1
  14. package/dist/components/vs-component-library.mjs +10 -18
  15. package/dist/ssr/index.js +1 -1
  16. package/dist/ssr/manifest.json +1 -1
  17. package/dist/ssr/styles/{e8ce9b11d9640bae3a90.css → c753b5f29bd03b595d29.css} +2 -2
  18. package/package.json +1 -1
  19. package/dist/client/scripts/e73bc57a96ce8bc9f24d.js +0 -1
  20. package/dist/client/scripts/e7ec94121db4d1a75b6d.js +0 -1
  21. package/dist/client/scripts/f4fd2de945256740a445.js +0 -1
  22. package/dist/client/styles/e73bc57a96ce8bc9f24d.css +0 -1
  23. package/dist/client/styles/e7ec94121db4d1a75b6d.css +0 -1
  24. /package/dist/client/styles/{09e3f0f324ff5ae03351.css → 20d55eca8c06f006c4e6.css} +0 -0
  25. /package/dist/client/styles/{f4fd2de945256740a445.css → cb8e1abd530b3aa93fcf.css} +0 -0
@@ -35188,7 +35188,7 @@ const useGoogleMapStore = defineStore("googleMap", () => {
35188
35188
  _: 1
35189
35189
  })) : createCommentVNode("", !0),
35190
35190
  createVNode(VsButton, {
35191
- variant: "tertiary",
35191
+ variant: "subtle",
35192
35192
  icon: "vs-icon-control-dismiss",
35193
35193
  "icon-only": "",
35194
35194
  class: "vs-map-sidebar__sidebar-control vs-map-siderbar__sidebar-control--dismiss",
@@ -35483,13 +35483,6 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
35483
35483
  default: () => {
35484
35484
  }
35485
35485
  },
35486
- /**
35487
- * Tells if JS is Disabled
35488
- */
35489
- jsDisabled: {
35490
- type: Boolean,
35491
- required: !0
35492
- },
35493
35486
  /**
35494
35487
  * Message to display when JavaScript is disabled
35495
35488
  */
@@ -35547,7 +35540,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
35547
35540
  let M = 0;
35548
35541
  onBeforeMount(() => {
35549
35542
  const W = cookieCheckerComposable();
35550
- W.requiredCookies.value = cookieValues$5.google_maps, ee = computed$1(() => t.jsDisabled === !0 ? (Q.value = "noJS", !0) : !W.cookiesAllowed.value && W.cookiesLoaded.value === !0 || !W.cookiesLoaded.value ? (Q.value = "noCookie", !0) : !1);
35543
+ W.requiredCookies.value = cookieValues$5.google_maps, ee = computed$1(() => !W.cookiesAllowed.value && W.cookiesLoaded.value === !0 || !W.cookiesLoaded.value ? (Q.value = "noCookie", !0) : !1);
35551
35544
  }), onMounted(async () => {
35552
35545
  if (t.categoriesLocation && axios.get(t.categoriesLocation).then((B) => {
35553
35546
  C = B.data;
@@ -35735,7 +35728,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
35735
35728
  }));
35736
35729
  }
35737
35730
  function j(W, B) {
35738
- T.value = B, W === "self-catering" ? (Z(), _.value = /* @__PURE__ */ new Set(), _.value.add(W), P.value = "self-catering accommodation", ae(), d.value = P.value, H(), d.value = "Self Catering") : _.value.has(W) ? (_.value.delete(W), S.value = /* @__PURE__ */ new Set(), w.value = /* @__PURE__ */ new Set(), _.value.forEach((X) => {
35731
+ T.value = B, W === "self-catering" ? (Z(), _.value = /* @__PURE__ */ new Set(), _.value.add(W), P.value = $(_.value, W).value, ae(), d.value = P.value, H()) : _.value.has(W) ? (_.value.delete(W), S.value = /* @__PURE__ */ new Set(), w.value = /* @__PURE__ */ new Set(), _.value.forEach((X) => {
35739
35732
  I(X, {
35740
35733
  includeTypes: !0,
35741
35734
  excludeTypes: !0
@@ -35784,7 +35777,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
35784
35777
  async function H() {
35785
35778
  U(), ae(), F.value = !1, M += 1;
35786
35779
  const W = M;
35787
- D.searchesCount += 1, O.value = "text", P.value = d.value.trim(), P.value && (P.value === "self-catering accommodation" ? i.textQuery = P.value : i.textQuery = `${P.value} Scotland`, i.locationBias = r.getCenter(), i.maxResultCount = NUMBER_OF_RESULTS, o.style.display = "block", o.addEventListener("gmp-load", () => {
35780
+ D.searchesCount += 1, O.value = "text", P.value = d.value.trim(), P.value && (i.textQuery = P.value, i.locationRestriction = r.getBounds(), i.maxResultCount = NUMBER_OF_RESULTS, o.style.display = "block", o.addEventListener("gmp-load", () => {
35788
35781
  W === M && (J(W), n.createDataLayerObject("googleMapSearchEvent", {
35789
35782
  search_query: P.value,
35790
35783
  search_map_location: r.getCenter().toString(),
@@ -35896,7 +35889,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
35896
35889
  }
35897
35890
  return (W, B) => (openBlock(), createElementBlock("div", _hoisted_1, [
35898
35891
  createElementVNode("div", {
35899
- class: normalizeClass(["vs-map__container", unref(ee) ? "d-none" : "d-block"])
35892
+ class: normalizeClass(["vs-map__container", unref(ee) ? "d-none" : ""])
35900
35893
  }, [
35901
35894
  createElementVNode("div", _hoisted_2, [
35902
35895
  createVNode(_sfc_main$1, {
@@ -36005,7 +35998,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
36005
35998
  key: "0"
36006
35999
  } : void 0
36007
36000
  ]), 1032, ["query", "selected-categories", "header-label", "close-sidebar-button-label", "search-bar-aria-label", "input-placeholder-label", "search-button-label", "clear-map-label", "sub-filter-header-label", "search-results-label", "open-sidebar-button-label"]),
36008
- N.value >= CATEGORY_VISIBLE_ZOOM && unref(D).sidebarOpen ? (openBlock(), createElementBlock("div", _hoisted_4, [
36001
+ N.value >= CATEGORY_VISIBLE_ZOOM && unref(D).sidebarOpen && Object.keys(unref(C)).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_4, [
36009
36002
  (openBlock(!0), createElementBlock(Fragment, null, renderList(unref(E), (X, te) => (openBlock(), createBlock(unref(VsButton), {
36010
36003
  key: te,
36011
36004
  class: "vs-map__filter-controls-button",
@@ -36071,16 +36064,15 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
36071
36064
  ]),
36072
36065
  _: 1
36073
36066
  }, 8, ["class"])) : createCommentVNode("", !0),
36074
- unref(ee) && Q.value === "noJS" ? (openBlock(), createBlock(unref(VsWarning), {
36075
- key: 1,
36076
- "data-test": "vs-map__warning--no-js",
36077
- class: "vs-map__warning vs-map__warning--no-js"
36067
+ createVNode(unref(VsWarning), {
36068
+ class: "vs-map__warning vs-map__warning--no-js",
36069
+ "data-test": "vs-map__warning--no-js"
36078
36070
  }, {
36079
36071
  default: withCtx(() => [
36080
36072
  createTextVNode(toDisplayString(e.noJsMessage), 1)
36081
36073
  ]),
36082
36074
  _: 1
36083
- })) : createCommentVNode("", !0)
36075
+ })
36084
36076
  ]));
36085
36077
  }
36086
36078
  };