@visitscotland/component-library 5.1.1 → 5.1.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.
@@ -10827,9 +10827,7 @@ const Card = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["render", _sfc_render$1
10827
10827
  }, cookieValues$5 = {
10828
10828
  youtube: ["C0001", "C0004"],
10829
10829
  embed: ["C0001", "C0003", "C0004"]
10830
- }, cookieValues$4 = cookieValues$5.youtube;
10831
- let videoStore$1 = null;
10832
- const _sfc_main$1F = {
10830
+ }, cookieValues$4 = cookieValues$5.youtube, _sfc_main$1F = {
10833
10831
  name: "VsStretchedLinkCard",
10834
10832
  status: "prototype",
10835
10833
  release: "0.0.1",
@@ -10972,6 +10970,11 @@ const _sfc_main$1F = {
10972
10970
  default: !1
10973
10971
  }
10974
10972
  },
10973
+ setup() {
10974
+ return {
10975
+ videoStore: useVideoStore()
10976
+ };
10977
+ },
10975
10978
  data() {
10976
10979
  return {
10977
10980
  jsDisabled: !0,
@@ -10991,10 +10994,10 @@ const _sfc_main$1F = {
10991
10994
  return this.disabled && (e += "vs-stretched-link-card--disabled"), this.type === "video" && (e += " vs-stretched-link-card--video"), this.showWarning && this.type === "video" && (e += " vs-stretched-link-card--warning"), e;
10992
10995
  },
10993
10996
  videoDetails() {
10994
- return videoStore$1 ? videoStore$1.videos[this.videoId] : null;
10997
+ return this.videoStore ? this.videoStore.videos[this.videoId] : null;
10995
10998
  },
10996
10999
  videoLoaded() {
10997
- return typeof this.videoDetails < "u" && this.videoDetails !== null && this.videoDetails.videoDuration > 0;
11000
+ return typeof this.videoDetails < "u" && this.videoDetails.videoDuration > 0;
10998
11001
  },
10999
11002
  // Calculates if warning is showing and gives class for appropriate styles
11000
11003
  warningClass() {
@@ -11023,7 +11026,7 @@ const _sfc_main$1F = {
11023
11026
  }
11024
11027
  },
11025
11028
  mounted() {
11026
- videoStore$1 = useVideoStore(), this.jsDisabled = jsIsDisabled();
11029
+ this.jsDisabled = jsIsDisabled();
11027
11030
  },
11028
11031
  methods: {
11029
11032
  emitShowModal() {