@visitscotland/component-library 5.21.1 → 5.21.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.
@@ -1,6 +1,6 @@
1
1
  import { createElementBlock, openBlock, renderSlot, resolveComponent, createBlock, normalizeClass, withCtx, createElementVNode, createVNode, withDirectives, createCommentVNode, normalizeStyle, vShow, inject, mergeProps, toDisplayString, ref, onMounted, onUnmounted, createTextVNode, Fragment, renderList, resolveDirective, withModifiers, normalizeProps, createSlots, getCurrentInstance, defineComponent, computed as computed$1, watch, reactive, provide, onBeforeMount, isRef, onBeforeUnmount, unref, isReactive, isReadonly, nextTick, isVNode, markRaw, toRef, resolveDynamicComponent, h, withKeys, mergeModels, useModel, toHandlers, vModelText, guardReactiveProps, onUpdated, Suspense } from "vue";
2
- import { _ as _export_sfc, V as VsButton, d as dataLayerMixin, a as VsHeading, n as nn, b as an, c as VsIcon, r as rn, l as lodashExports, e as VsBody, f as VsContainer, g as VsRow, h as VsCol, i as ci, p as pi$2, j as en, k as dmoUrls, m as VsImg, E as Ed, o as axios, q as designTokens, Y as Yo, Z as Zo, s as pn, O as Ou, T as Tu, t as ku, u as VsWarning, v as fn, w as un, X as Xi, x as commonjsGlobal, y as require$$0$1, z as requireHasown, A as requireShams, B as callBound, C as isGeneratorFunction, D as isTypedArray, F as whichTypedArray, G as getAugmentedNamespace, H as getDefaultExportFromCjs, L as Lu, I as ld, J as _a, K as products, M as paths, N as monthsEnglish, P as VsLoading, Q as ol, R as wn, S as Ea, U as Bn, W as Je, $ as St, a0 as Pa, a1 as Ka, a2 as vc, a3 as dc, a4 as useDataLayerStore, a5 as checkVendorLibrary, a6 as siteSearchCloseTemplate, a7 as siteSearchClickTemplate, a8 as siteSearchUsageTemplate, a9 as siteSearchOpenTemplate, aa as googleMapInteractionTemplate, ab as googleMapTimeToFirstInteractionTemplate, ac as googleMapClickTemplate, ad as googleMapFilterInteractionTemplate, ae as googleMapSearchTemplate } from "./LoadingSpinner-BV9HMdg5.mjs";
3
- import { af as Se } from "./LoadingSpinner-BV9HMdg5.mjs";
2
+ import { _ as _export_sfc, V as VsButton, d as dataLayerMixin, a as VsHeading, n as nn, b as an, c as VsIcon, r as rn, l as lodashExports, e as VsBody, f as VsContainer, g as VsRow, h as VsCol, i as ci, p as pi$2, j as en, k as dmoUrls, m as VsImg, E as Ed, o as axios, q as designTokens, Y as Yo, Z as Zo, s as pn, O as Ou, T as Tu, t as ku, u as VsWarning, v as fn, w as un, X as Xi, x as commonjsGlobal, y as require$$0$1, z as requireHasown, A as requireShams, B as callBound, C as isGeneratorFunction, D as isTypedArray, F as whichTypedArray, G as getAugmentedNamespace, H as getDefaultExportFromCjs, L as Lu, I as ld, J as _a, K as products, M as paths, N as monthsEnglish, P as VsLoading, Q as ol, R as wn, S as Ea, U as Bn, W as Je, $ as St, a0 as Pa, a1 as Ka, a2 as vc, a3 as dc, a4 as useDataLayerStore, a5 as checkVendorLibrary, a6 as siteSearchCloseTemplate, a7 as siteSearchClickTemplate, a8 as siteSearchUsageTemplate, a9 as siteSearchOpenTemplate, aa as googleMapInteractionTemplate, ab as googleMapTimeToFirstInteractionTemplate, ac as googleMapFilterInteractionTemplate, ad as googleMapSearchTemplate } from "./LoadingSpinner-Al46acPr.mjs";
3
+ import { ae as Se } from "./LoadingSpinner-Al46acPr.mjs";
4
4
  import { defineStore, storeToRefs } from "pinia";
5
5
  const _sfc_main$2t = {
6
6
  name: "VsAccordion",
@@ -35470,19 +35470,6 @@ function dataLayerComposable() {
35470
35470
  filter_usage_index: c.filter_usage_index
35471
35471
  }, f = s(d), p = a(googleMapFilterInteractionTemplate, f);
35472
35472
  break;
35473
- case "googleMapClickEvent":
35474
- u = "map_click_to_google_maps", d = {
35475
- event: u,
35476
- click_origin: c.click_origin,
35477
- attraction_name: c.attraction_name,
35478
- attraction_rating: c.attraction_rating,
35479
- attraction_category: c.attraction_category,
35480
- search_map_location: c.search_map_location,
35481
- click_text: c.click_text,
35482
- click_url: c.click_url,
35483
- search_result_position: c.search_result_position
35484
- }, f = s(d), p = a(googleMapClickTemplate, f);
35485
- break;
35486
35473
  case "googleMapTimeToFirstInteractionEvent":
35487
35474
  u = "map_time_to_first_interaction", d = {
35488
35475
  event: u,
@@ -35498,6 +35485,7 @@ function dataLayerComposable() {
35498
35485
  map_location: c.map_location,
35499
35486
  visible_attractions_count: c.visible_attractions_count,
35500
35487
  card_attraction_name: c.card_attraction_name,
35488
+ card_attraction_url: c.card_attraction_url,
35501
35489
  card_attraction_rating: c.card_attraction_rating,
35502
35490
  interaction_timestamp_ms: c.interaction_timestamp_ms
35503
35491
  }, f = s(d), p = a(googleMapInteractionTemplate, f);
@@ -35882,19 +35870,21 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
35882
35870
  });
35883
35871
  }
35884
35872
  async function G(Y, W) {
35885
- let J = "", ne = "";
35873
+ let J = "", ne = "", ae = "";
35886
35874
  W && (await W.fetchFields({
35887
35875
  fields: [
35888
35876
  "displayName",
35889
- "rating"
35877
+ "rating",
35878
+ "websiteURI"
35890
35879
  ]
35891
- }), J = W.displayName, ne = W.rating), n.createDataLayerObject("googleMapInteractionEvent", {
35880
+ }), J = W.displayName, ne = W.rating, ae = W.websiteURI), n.createDataLayerObject("googleMapInteractionEvent", {
35892
35881
  interaction_type: Y,
35893
35882
  search_query: d.value.trim(),
35894
35883
  map_location: a.getCenter().toString(),
35895
35884
  visible_attractions_count: m,
35896
35885
  card_attraction_name: J,
35897
35886
  card_attraction_rating: ne,
35887
+ card_attraction_url: ae,
35898
35888
  interaction_timestamp_ms: Date.now()
35899
35889
  }), U(Y);
35900
35890
  }