@visitscotland/component-library 5.41.1 → 5.41.3
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.
- package/dist/client/manifest.json +10 -10
- package/dist/client/scripts/afc9f6feeeb6ccee3444.js +1 -0
- package/dist/client/scripts/bbaf958fabd4d44ef24a.js +1 -0
- package/dist/components/vs-component-library.js +2 -2
- package/dist/components/vs-component-library.mjs +6 -7
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/package.json +1 -1
- package/dist/client/scripts/c820dd5c6806855efefe.js +0 -1
- package/dist/client/scripts/e5ed40fc28ed82d33d8d.js +0 -1
- /package/dist/client/styles/{e5ed40fc28ed82d33d8d.css → afc9f6feeeb6ccee3444.css} +0 -0
- /package/dist/client/styles/{c820dd5c6806855efefe.css → bbaf958fabd4d44ef24a.css} +0 -0
- /package/dist/ssr/styles/{3eba2d5c8227334708c8.css → 65288c66f791dd6126f4.css} +0 -0
|
@@ -12041,7 +12041,7 @@ const VsDropdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$1M, [["render", _sf
|
|
|
12041
12041
|
},
|
|
12042
12042
|
methods: {
|
|
12043
12043
|
callbackOnUpdated() {
|
|
12044
|
-
if (this.embeddedScript && this.cookiesLoaded && this.requiredCookiesAllowed) {
|
|
12044
|
+
if (this.embeddedScript && (this.cookiesLoaded && this.requiredCookiesAllowed || this.noCookiesRequired)) {
|
|
12045
12045
|
const e = document.createElement("script");
|
|
12046
12046
|
e.src = this.embeddedScript, document.head.appendChild(e);
|
|
12047
12047
|
}
|
|
@@ -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
|
-
|
|
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(),
|
|
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-
|
|
36766
|
+
id: "vs-map__alert",
|
|
36768
36767
|
size: "small"
|
|
36769
36768
|
}, {
|
|
36770
36769
|
default: withCtx(() => [
|