@visitscotland/component-library 5.0.0 → 5.0.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,7 +10827,9 @@ const Card = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["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, _sfc_main$1E = {
10830
+ }, cookieValues$4 = cookieValues$5.youtube;
10831
+ let videoStore$1 = null;
10832
+ const _sfc_main$1E = {
10831
10833
  name: "VsStretchedLinkCard",
10832
10834
  status: "prototype",
10833
10835
  release: "0.0.1",
@@ -10970,11 +10972,6 @@ const Card = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$1
10970
10972
  default: !1
10971
10973
  }
10972
10974
  },
10973
- setup() {
10974
- return {
10975
- videoStore: useVideoStore()
10976
- };
10977
- },
10978
10975
  data() {
10979
10976
  return {
10980
10977
  jsDisabled: !0,
@@ -10994,10 +10991,10 @@ const Card = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$1
10994
10991
  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;
10995
10992
  },
10996
10993
  videoDetails() {
10997
- return this.videoStore.videos[this.videoId];
10994
+ return videoStore$1 ? videoStore$1.videos[this.videoId] : null;
10998
10995
  },
10999
10996
  videoLoaded() {
11000
- return typeof this.videoDetails < "u" && this.videoDetails.videoDuration > 0;
10997
+ return typeof this.videoDetails < "u" && this.videoDetails !== null && this.videoDetails.videoDuration > 0;
11001
10998
  },
11002
10999
  // Calculates if warning is showing and gives class for appropriate styles
11003
11000
  warningClass() {
@@ -11026,7 +11023,7 @@ const Card = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$1
11026
11023
  }
11027
11024
  },
11028
11025
  mounted() {
11029
- this.jsDisabled = jsIsDisabled();
11026
+ videoStore$1 = useVideoStore(), this.jsDisabled = jsIsDisabled();
11030
11027
  },
11031
11028
  methods: {
11032
11029
  emitShowModal() {
@@ -11106,7 +11103,7 @@ function _sfc_render$1s(e, n, t, a, r, s) {
11106
11103
  key: 0,
11107
11104
  class: "vs-stretched-link-card__video-button",
11108
11105
  "data-test": "vs-stretched-link-card__video-button",
11109
- icon: "play",
11106
+ icon: "fa-regular fa-play",
11110
11107
  "icon-position": "left",
11111
11108
  size: "md",
11112
11109
  ref: "videoShow",