@visitscotland/component-library 3.2.0 → 3.2.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.
Files changed (42) hide show
  1. package/dist/client/manifest.json +35 -50
  2. package/dist/client/scripts/{87f8783e68aae16abfeb.js → 25fdf888fad4bdbfc1ce.js} +1 -1
  3. package/dist/client/scripts/2d2270d3450fc95b95a9.js +1 -0
  4. package/dist/client/scripts/3c75035750cb054fc418.js +1 -0
  5. package/dist/client/scripts/3d5996bad70a1657a93b.js +1 -0
  6. package/dist/client/scripts/{a95a3e80ff20c25db392.js → 6d3b84126379d6fd6d85.js} +1 -1
  7. package/dist/client/scripts/{8a4f0c08b80b405edd1f.js → 727cb331bee6482e830a.js} +1 -1
  8. package/dist/client/scripts/{4ba0290211e05764239e.js → a83bec1b5b90e3958a38.js} +1 -1
  9. package/dist/client/scripts/{70df3b5cfd5c482e26af.js → d0d578f78e733e48e8f4.js} +1 -1
  10. package/dist/client/scripts/{4b90fee2f9afcd45d7e2.js → e8f2c2e76ebb4fff5ab2.js} +1 -1
  11. package/dist/client/scripts/ec7baa92a825a338c11d.js +1 -0
  12. package/dist/client/scripts/fc757fcd5938bd893263.js +1 -0
  13. package/dist/client/styles/3d5996bad70a1657a93b.css +1 -0
  14. package/dist/components/components/image-with-caption/ImageWithCaption.vue.d.ts +1 -48
  15. package/dist/components/components/mega-nav/components/MegaNavDropdown.vue.d.ts +5 -0
  16. package/dist/components/components/megalinks/Megalinks.vue.d.ts +1 -1
  17. package/dist/components/components/site-search/components/SiteSearchForm.vue.d.ts +5 -0
  18. package/dist/components/components/stretched-link-card/StretchedLinkCard.vue.d.ts +2 -17
  19. package/dist/components/vs-component-library.css +1 -1
  20. package/dist/components/vs-component-library.js +166 -166
  21. package/dist/components/vs-component-library.mjs +8156 -8197
  22. package/dist/ssr/index.js +1 -1
  23. package/dist/ssr/manifest.json +1 -1
  24. package/dist/ssr/styles/{e5ac22c436f98e242182.css → 488c81542c1c49fa5029.css} +1 -1
  25. package/package.json +230 -230
  26. package/CHANGELOG.md +0 -1999
  27. package/dist/client/scripts/2109495bcb3ad9b2c1bc.js +0 -1
  28. package/dist/client/scripts/5dc13376c30741c1ab2e.js +0 -1
  29. package/dist/client/scripts/6b937518a9afc81d00d7.js +0 -1
  30. package/dist/client/scripts/815727531bfef1c70c8f.js +0 -1
  31. package/dist/client/scripts/90d734ebff6ad86a760a.js +0 -1
  32. package/dist/client/scripts/bdb8608eddf7bc7915c8.js +0 -1
  33. package/dist/client/styles/5dc13376c30741c1ab2e.css +0 -1
  34. /package/dist/client/styles/{87f8783e68aae16abfeb.css → 25fdf888fad4bdbfc1ce.css} +0 -0
  35. /package/dist/client/styles/{815727531bfef1c70c8f.css → 2d2270d3450fc95b95a9.css} +0 -0
  36. /package/dist/client/styles/{bdb8608eddf7bc7915c8.css → 3c75035750cb054fc418.css} +0 -0
  37. /package/dist/client/styles/{a95a3e80ff20c25db392.css → 6d3b84126379d6fd6d85.css} +0 -0
  38. /package/dist/client/styles/{8a4f0c08b80b405edd1f.css → 727cb331bee6482e830a.css} +0 -0
  39. /package/dist/client/styles/{70df3b5cfd5c482e26af.css → d0d578f78e733e48e8f4.css} +0 -0
  40. /package/dist/client/styles/{4b90fee2f9afcd45d7e2.css → e8f2c2e76ebb4fff5ab2.css} +0 -0
  41. /package/dist/client/styles/{90d734ebff6ad86a760a.css → ec7baa92a825a338c11d.css} +0 -0
  42. /package/dist/client/styles/{6b937518a9afc81d00d7.css → fc757fcd5938bd893263.css} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1459],{83178:function(e,t,o){var n=o(64467),i=o(10810),r=o(2829);function s(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function c(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?s(Object(o),!0).forEach((function(t){(0,n.A)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):s(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var u={data:function(){return{bypassCookiesExist:!1}},computed:c(c({},(0,i.aH)(r.A,{cookiesSet:function(e){return e.allowedCookies}})),{},{onetrustActiveGroups:function(){return"undefined"!=typeof window?window.OnetrustActiveGroups:null},requiredCookiesExist:function(){var e=this;if("undefined"!=typeof window&&window.bypassCookieChecks)return this.bypassCookiesExist;var t=!0;return this.requiredCookies?this.requiredCookies.forEach((function(o){-1===e.cookiesSet.indexOf(o)&&(t=!1)})):t=!1,t},cookiesInitStatus:function(){return"undefined"!=typeof window&&window.bypassCookieChecks?this.bypassCookiesExist:(void 0===this.onetrustActiveGroups||this.cookiesSet.length,!0)}}),mounted:function(){var e=this;setTimeout((function(){e.bypassCookiesExist=!0}),50)}};t.A=u},12308:function(e,t){t.A={youtube:["C0001","C0004"],languageSelector:["C0001"],embed:["C0001","C0003","C0004"],recaptcha:["C0001"],map:["C0001"]}}}]);
@@ -1 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsImageWithCaption=e():t.VsImageWithCaption=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6929],{11291:function(){},84224:function(t,e,i){"use strict";var o=i(31574),n=i(17933),s=i(70459),a=i(83178),r=i(12308).A.youtube;e.A={name:"VsImageWithCaption",status:"prototype",release:"0.0.1",components:{VsImg:o.default,VsToggleButton:n.default,VsVideoCaption:s.default},mixins:[a.A],provide:function(){return{noJsMessage:this.noJsMessage,noCookiesMessage:this.noCookiesMessage,cookieLinkText:this.cookieLinkText,errorMessage:this.errorMessage}},props:{altText:{type:String,default:""},closedDefaultCaption:{type:Boolean,default:!1},imageSrc:{type:String,default:""},isHeroImage:{type:Boolean,default:!1},isVideo:{type:Boolean,default:!1},mobileOverlap:{type:Boolean,default:!1},toggleButtonText:{type:String,default:""},playButtonText:{type:String,default:""},videoId:{type:String,default:""},smallPlayButton:{type:Boolean,default:!1},noCookiesMessage:{type:String,default:""},cookieLinkText:{type:String,default:""},noJsMessage:{type:String,default:""},useLazyLoading:{type:Boolean,default:!0},errorMessage:{type:String,default:""},showToggle:{type:Boolean,default:!0}},data:function(){return{showCaption:!1,requiredCookies:r,uniqueCaptionId:""}},computed:{imageWithCaptionClasses:function(){return{"vs-image-with-caption--closed-default":this.closedDefaultCaption,"vs-image-with-caption--hero":this.isHeroImage,"vs-image-with-caption--show-caption":!this.requiredCookiesExist&&!0===this.cookiesInitStatus,"vs-image-with-caption--video":this.isVideo}},captionWrapperClasses:function(){return{"d-block":this.showCaption&&!this.isHeroImage,"d-flex":this.showCaption&&this.isHeroImage||this.showCaption&&this.isVideo,container:this.isHeroImage}}},mounted:function(){this.uniqueCaptionId=this._uid},methods:{toggleCaption:function(){this.showCaption=!this.showCaption}}}},55887:function(t,e,i){"use strict";i.d(e,{X:function(){return r}});var o=i(20641),n=i(90033),s={class:"vs-image-with-caption__captions"},a=["id"];function r(t,e,i,r,l,u){var g=(0,o.g2)("VsImg"),c=(0,o.g2)("VsToggleButton"),p=(0,o.g2)("VsVideoCaption");return(0,o.uX)(),(0,o.CE)("figure",{class:(0,n.normalizeClass)(["vs-image-with-caption",u.imageWithCaptionClasses]),"data-test":"vs-image-with-caption"},[(0,o.Lk)("div",{class:(0,n.normalizeClass)(["vs-image-with-caption__image-wrapper",i.mobileOverlap?"vs-image-with-caption--overlapped":""])},[(0,o.RG)(t.$slots,"default",{},(function(){return[i.imageSrc?((0,o.uX)(),(0,o.Wv)(g,{key:0,src:i.imageSrc,alt:i.altText,"use-lazy-loading":i.useLazyLoading},null,8,["src","alt","use-lazy-loading"])):(0,o.Q3)("",!0)]})),i.showToggle?((0,o.uX)(),(0,o.Wv)(c,{key:0,"img-src":i.imageSrc,"toggle-id":l.uniqueCaptionId,onToggleAction:u.toggleCaption},{"toggle-icon":(0,o.k6)((function(){return[(0,o.RG)(t.$slots,"toggle-icon")]})),default:(0,o.k6)((function(){return[(0,o.eW)((0,n.toDisplayString)(i.toggleButtonText)+" ",1)]})),_:3},8,["img-src","toggle-id","onToggleAction"])):(0,o.Q3)("",!0)],2),(0,o.Lk)("figcaption",s,[i.isVideo?((0,o.uX)(),(0,o.CE)("div",{key:0,class:(0,n.normalizeClass)(["vs-image-with-caption__video-caption-wrapper",i.isHeroImage?"container-lg":""])},[(0,o.bF)(p,{"video-btn-text":i.playButtonText,"with-toggle-btn":i.showToggle,onToggleAction:u.toggleCaption,"video-id":i.videoId,"cookie-link-text":i.cookieLinkText,"error-message":i.errorMessage,variant:i.smallPlayButton?"narrow":"wide"},{"video-title":(0,o.k6)((function(){return[(0,o.RG)(t.$slots,"video-title")]})),_:3},8,["video-btn-text","with-toggle-btn","onToggleAction","video-id","cookie-link-text","error-message","variant"])],2)):(0,o.Q3)("",!0),(0,o.Lk)("div",{class:(0,n.normalizeClass)(["vs-image-with-caption__caption-wrapper",u.captionWrapperClasses]),id:l.uniqueCaptionId},[(0,o.RG)(t.$slots,"img-caption")],10,a)])],2)}},51381:function(t,e,i){"use strict";var o=i(85072),n=i.n(o),s=i(97825),a=i.n(s),r=i(77659),l=i.n(r),u=i(55056),g=i.n(u),c=i(10540),p=i.n(c),d=i(41113),f=i.n(d),m=i(11291),h=i.n(m),v={};v.styleTagTransform=f(),v.setAttributes=g(),v.insert=l().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=p(),n()(h(),v),h()&&h().locals&&h().locals},46004:function(t,e,i){"use strict";i.r(e);var o=i(82463),n=i(77012);i(54601);const s=(0,i(66262).A)(n.A,[["render",o.X]]);e.default=s},77012:function(t,e,i){"use strict";i.d(e,{A:function(){return o.A}});var o=i(84224)},82463:function(t,e,i){"use strict";i.d(e,{X:function(){return o.X}});var o=i(55887)},54601:function(t,e,i){"use strict";i(51381)}},function(t){return t.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,6422,8745,8836,9122,1574,5921,2829,1459,7933,459],(function(){return 46004,t(t.s=46004)})),t.O()}])}));
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[2329],{12522:function(){},8049:function(n,t,e){"use strict";var o=e(11438),s=e(34352),i=e(48836),r=e(98745);t.A={name:"VsMegaNavDropdown",status:"prototype",release:"0.1.0",components:{BDropdown:s.UV,VsCol:o.Il,VsContainer:o.T$,VsRow:o.AQ,VsButton:i.default},mixins:[r.default],props:{menuToggleAltText:{type:String,required:!0}},mounted:function(){var n=this;this.emitter&&(this.emitter.on("bv::dropdown::show",(function(){n.$emit("menuToggled")})),this.emitter.on("bv::dropdown::hide",(function(){n.$emit("menuToggled")}))),window.addEventListener("resize",this.closeMenu)},beforeUnmount:function(){window.removeEventListener("resize",this.closeMenu)},methods:{closeMenu:function(){this.$refs.dropdown.hide()},dataLayerSubmit:function(){if(this.$slots["button-content"]()[1]&&this.$slots["button-content"]()[1].children[0]){var n={target:{text:this.$slots["button-content"]()[1].children[0].children}};this.createDataLayerObject("menuNavigationDataEvent",n,null)}}}}},53072:function(n,t,e){"use strict";e.d(t,{X:function(){return d}});var o=e(20641),s=e(90033),i={class:"vs-mega-nav-dropdown","data-test":"vs-mega-nav-dropdown"},r={role:"menuitem"},l={class:"visually-hidden"},u={class:"dropdown-menu dropdown-menu--fallback overflow-auto",role:"menu"},a={role:"menuitem"},c={class:"visually-hidden"};function d(n,t,e,d,f,p){var m=(0,o.g2)("VsButton"),v=(0,o.g2)("VsCol"),g=(0,o.g2)("VsRow"),b=(0,o.g2)("VsContainer"),k=(0,o.g2)("BDropdown");return(0,o.uX)(),(0,o.CE)("div",i,[(0,o.bF)(k,{variant:"transparent",ref:"dropdown",onShow:t[0]||(t[0]=function(n){return p.dataLayerSubmit(n)})},{"button-content":(0,o.k6)((function(){return[(0,o.RG)(n.$slots,"button-content")]})),default:(0,o.k6)((function(){return[(0,o.Lk)("li",r,[(0,o.bF)(b,{fluid:"lg",class:"px-0 px-lg-3"},{default:(0,o.k6)((function(){return[(0,o.bF)(g,{class:"g-0"},{default:(0,o.k6)((function(){return[(0,o.bF)(v,{cols:"12",class:"position-relative"},{default:(0,o.k6)((function(){return[(0,o.RG)(n.$slots,"cta-link"),(0,o.RG)(n.$slots,"dropdown-content"),(0,o.bF)(m,{class:"vs-mega-nav-dropdown__close-btn d-none d-lg-block position-absolute",icon:"close","icon-only":"",size:"sm",variant:"transparent",onClick:p.closeMenu},{default:(0,o.k6)((function(){return[(0,o.Lk)("span",l,(0,s.toDisplayString)(e.menuToggleAltText),1)]})),_:1},8,["onClick"])]})),_:3})]})),_:3})]})),_:3})])]})),_:3},512),(0,o.Lk)("ul",u,[(0,o.Lk)("li",a,[(0,o.bF)(b,{fluid:"lg",class:"px-0 px-lg-3"},{default:(0,o.k6)((function(){return[(0,o.bF)(g,{class:"g-0"},{default:(0,o.k6)((function(){return[(0,o.bF)(v,{cols:"12",class:"position-relative"},{default:(0,o.k6)((function(){return[(0,o.RG)(n.$slots,"cta-link"),(0,o.RG)(n.$slots,"dropdown-content"),(0,o.bF)(m,{class:"vs-mega-nav-dropdown__close-btn d-none d-lg-block position-absolute",icon:"close","icon-only":"",size:"sm",variant:"transparent",onClick:p.closeMenu},{default:(0,o.k6)((function(){return[(0,o.Lk)("span",c,(0,s.toDisplayString)(e.menuToggleAltText),1)]})),_:1},8,["onClick"])]})),_:3})]})),_:3})]})),_:3})])])])}},61840:function(n,t,e){"use strict";var o=e(85072),s=e.n(o),i=e(97825),r=e.n(i),l=e(77659),u=e.n(l),a=e(55056),c=e.n(a),d=e(10540),f=e.n(d),p=e(41113),m=e.n(p),v=e(12522),g=e.n(v),b={};b.styleTagTransform=m(),b.setAttributes=c(),b.insert=u().bind(null,"head"),b.domAPI=r(),b.insertStyleElement=f(),s()(g(),b),g()&&g().locals&&g().locals},62329:function(n,t,e){"use strict";e.r(t);var o=e(31136),s=e(6381);e(39252);const i=(0,e(66262).A)(s.A,[["render",o.X]]);t.default=i},6381:function(n,t,e){"use strict";e.d(t,{A:function(){return o.A}});var o=e(8049)},31136:function(n,t,e){"use strict";e.d(t,{X:function(){return o.X}});var o=e(53072)},39252:function(n,t,e){"use strict";e(61840)}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[2152],{40309:function(){},96967:function(t,e,n){"use strict";var s=n(46422),r=n(22142),o=n(48836),a=n(11438);e.A={name:"VsSiteSearchForm",status:"prototype",release:"0.0.1",components:{VsIcon:s.default,VsInput:r.default,VsButton:o.default,VsCol:a.Il,VsRow:a.AQ,VsContainer:a.T$},props:{isShowing:{type:Boolean,default:!1},labelText:{type:String,default:""},submitButtonText:{type:String,default:""},clearButtonText:{type:String,default:""},closeButtonText:{type:String,default:""}},data:function(){return{searchTerm:"",showSearchForm:!0}},watch:{isShowing:function(t){t&&this.focusOnInput()}},methods:{focusOnInput:function(){var t=this;this.$nextTick((function(){return t.$refs.searchInput.$refs.input.focus()}))},updateVal:function(t){this.searchTerm=t.value},onSubmit:function(t){""===this.searchTerm&&t.preventDefault()},closeSearchForm:function(){this.$emit("toggleAction",this.showSearchForm)}}}},7953:function(t,e,n){"use strict";n.d(e,{X:function(){return f}});var s=n(20641),r=n(90033),o={key:0,class:"vs-site-search-form","data-test":"vs-site-search-form"},a={class:"cludo-input-form d-flex align-items-start",role:"search",id:"cludo-search-input"},i={class:"d-flex flex-column flex-grow-1 position-relative"},c={for:"site-search",class:"vs-site-search-form__label"},u={class:"visually-hidden"},l={class:"visually-hidden"};function f(t,e,n,f,d,h){var p=(0,s.g2)("VsIcon"),m=(0,s.g2)("VsInput"),b=(0,s.g2)("VsButton"),v=(0,s.g2)("VsCol"),g=(0,s.g2)("VsRow"),_=(0,s.g2)("VsContainer");return d.showSearchForm?((0,s.uX)(),(0,s.CE)("div",o,[(0,s.bF)(_,{fluid:"lg"},{default:(0,s.k6)((function(){return[(0,s.bF)(g,null,{default:(0,s.k6)((function(){return[(0,s.bF)(v,{cols:"12"},{default:(0,s.k6)((function(){return[(0,s.Lk)("div",a,[(0,s.Lk)("div",i,[(0,s.Lk)("label",c,[(0,s.Lk)("span",u,(0,r.toDisplayString)(n.labelText),1),(0,s.bF)(p,{name:"search",size:"xs"})]),(0,s.bF)(m,{class:"vs-site-search-form__input cludo-input-form__input",ref:"searchInput",name:"searchrequest",type:"search","field-name":"site-search",placeholder:n.labelText,"clear-button-text":n.clearButtonText,"auto-complete":!1,onUpdated:h.updateVal},null,8,["placeholder","clear-button-text","onUpdated"])]),(0,s.bF)(b,{type:"submit",class:"vs-site-search-form__search-button cludo-input-form__search-button",variant:"primary",size:"lg",onClick:h.closeSearchForm},{default:(0,s.k6)((function(){return[(0,s.eW)((0,r.toDisplayString)(n.submitButtonText),1)]})),_:1},8,["onClick"])])]})),_:1})]})),_:1})]})),_:1}),(0,s.bF)(b,{class:"vs-site-search-form__close-button d-none d-lg-block",variant:"transparent",icon:"close-circle",size:"md","icon-only":"",onClick:h.closeSearchForm},{default:(0,s.k6)((function(){return[(0,s.Lk)("span",l,(0,r.toDisplayString)(n.closeButtonText),1)]})),_:1},8,["onClick"])])):(0,s.Q3)("",!0)}},20287:function(t,e,n){"use strict";var s=n(85072),r=n.n(s),o=n(97825),a=n.n(o),i=n(77659),c=n.n(i),u=n(55056),l=n.n(u),f=n(10540),d=n.n(f),h=n(41113),p=n.n(h),m=n(40309),b=n.n(m),v={};v.styleTagTransform=p(),v.setAttributes=l(),v.insert=c().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=d(),r()(b(),v),b()&&b().locals&&b().locals},12152:function(t,e,n){"use strict";n.r(e);var s=n(55553),r=n(71496);n(42283);const o=(0,n(66262).A)(r.A,[["render",s.X]]);e.default=o},71496:function(t,e,n){"use strict";n.d(e,{A:function(){return s.A}});var s=n(96967)},55553:function(t,e,n){"use strict";n.d(e,{X:function(){return s.X}});var s=n(7953)},42283:function(t,e,n){"use strict";n(20287)}}]);
@@ -1 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsEmbedWrapper=t():e.VsEmbedWrapper=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[5734],{52009:function(){},59579:function(e,t,r){"use strict";var n=r(11438),o=r(72958),s=r(79122),i=r(83178),u=r(12308).A.embed;t.A={name:"VsEmbedWrapper",status:"prototype",release:"0.0.1",components:{VsContainer:n.T$,VsRow:n.AQ,VsCol:n.Il,VsRichTextWrapper:o.default,VsWarning:s.default},mixins:[i.A],props:{noCookiesRequired:{type:Boolean,default:!1},noCookieText:{type:String,required:!0},errorText:{type:String,required:!0},noJsText:{type:String,required:!0}},data:function(){return{requiredCookies:this.noCookiesRequired?null:u}},computed:{showError:function(){return!this.noCookiesRequired&&(!this.requiredCookiesExist&&!0===this.cookiesInitStatus||"error"===this.cookiesInitStatus)},warningText:function(){var e="";return"error"===this.cookiesInitStatus&&(e=this.errorText),this.requiredCookiesExist||!0!==this.cookiesInitStatus||(e=this.noCookieText),e}}}},11053:function(e,t,r){"use strict";r.d(t,{X:function(){return u}});var n=r(20641),o=r(90033),s={"data-test":"vs-embed-wrapper",class:"vs-embed-wrapper"},i={key:"fallback"};function u(e,t,r,u,a,d){var c=(0,n.g2)("VsRichTextWrapper"),p=(0,n.g2)("VsCol"),l=(0,n.g2)("VsWarning"),f=(0,n.g2)("VsRow"),m=(0,n.g2)("VsContainer");return(0,n.uX)(),(0,n.CE)("div",s,[(0,n.bF)(m,null,{default:(0,n.k6)((function(){return[(0,n.bF)(f,null,{default:(0,n.k6)((function(){return[(0,n.bF)(p,{cols:"12",sm:"10","offset-sm":"1",md:"6","offset-md":"3"},{default:(0,n.k6)((function(){return[e.$slots["embed-intro-copy"]&&e.$slots["embed-intro-copy"]()&&!d.showError?((0,n.uX)(),(0,n.Wv)(c,{key:0,class:"vs-module-wrapper__intro vs-embed-wrapper__intro","data-test":"vs-module-wrapper__intro"},{default:(0,n.k6)((function(){return[(0,n.RG)(e.$slots,"embed-intro-copy")]})),_:3})):(0,n.Q3)("",!0)]})),_:3}),(0,n.bF)(p,{cols:"12"},{default:(0,n.k6)((function(){return[(0,n.Lk)("div",{class:(0,o.normalizeClass)(["vs-embed-wrapper__container",e.requiredCookiesExist||r.noCookiesRequired?"":"d-none"]),key:"embeddedContent"},[(0,n.RG)(e.$slots,"embed-widget")],2),d.showError?((0,n.uX)(),(0,n.CE)("div",i,[(0,n.bF)(l,{type:!0===e.cookiesInitStatus?"cookie":"normal",class:"vs-embed-wrapper__error","data-test":"vs-embed-wrapper__error"},(0,n.eX)({default:(0,n.k6)((function(){return[(0,n.eW)((0,o.toDisplayString)(d.warningText)+" ",1)]})),_:2},[e.requiredCookiesExist||!0!==e.cookiesInitStatus?void 0:{name:"button-text",fn:(0,n.k6)((function(){return[(0,n.RG)(e.$slots,"embed-button-text")]})),key:"0"}]),1032,["type"])])):(0,n.Q3)("",!0),(0,n.bF)(l,{type:"normal","data-test":"vs-embed-wrapper__error--no-js",class:"vs-embed-wrapper__error vs-embed-wrapper__error--no-js"},{default:(0,n.k6)((function(){return[(0,n.eW)((0,o.toDisplayString)(r.noJsText),1)]})),_:1})]})),_:3})]})),_:3})]})),_:3})])}},57423:function(e,t,r){"use strict";var n=r(85072),o=r.n(n),s=r(97825),i=r.n(s),u=r(77659),a=r.n(u),d=r(55056),c=r.n(d),p=r(10540),l=r.n(p),f=r(41113),m=r.n(f),b=r(52009),k=r.n(b),_={};_.styleTagTransform=m(),_.setAttributes=c(),_.insert=a().bind(null,"head"),_.domAPI=i(),_.insertStyleElement=l(),o()(k(),_),k()&&k().locals&&k().locals},66649:function(e,t,r){"use strict";r.r(t);var n=r(78173),o=r(69295);r(65699);const s=(0,r(66262).A)(o.A,[["render",n.X]]);t.default=s},69295:function(e,t,r){"use strict";r.d(t,{A:function(){return n.A}});var n=r(59579)},78173:function(e,t,r){"use strict";r.d(t,{X:function(){return n.X}});var n=r(11053)},65699:function(e,t,r){"use strict";r(57423)}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,6422,8745,8836,8638,2368,7521,1438,9122,2958,2829,1459],(function(){return 66649,e(e.s=66649)})),e.O()}])}));
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9116],{87730:function(){},90020:function(e,t,i){"use strict";var s=i(13838),n=i(45676),r=i(31574),a=i(48836),o=i(79122),d=i(57957),l=i(45921),c=i.n(l),u=i(83178),h=i(12308).A.youtube;t.A={name:"VsStretchedLinkCard",status:"prototype",release:"0.0.1",components:{VsHeading:s.default,VsLink:n.default,VsImg:r.default,VsButton:a.default,VsWarning:o.default},mixins:[u.A],inject:{noJsMessage:{default:null},noCookiesMessage:{default:null},cookieLinkText:{default:null},theme:{default:null}},props:{link:{type:String,required:!0,default:"#"},headingLevel:{type:[String,Number],default:"3",validator:function(e){return e.match(/(1|2|3|4|5|6)/)}},type:{type:String,required:!0,validator:function(e){return e.match(/(default|external|internal|download|video)/)}},imgSrc:{required:!0,type:String},imgAlt:{type:String,default:""},disabled:{type:Boolean,default:!1},videoId:{type:String,default:""},videoBtnText:{type:String,default:""},errorMessage:{type:String,default:""},errorType:{type:String,default:"image",validator:function(e){return e.match(/(image|full)/)}},warningSize:{type:String,default:"small",validator:function(e){return e.match(/(normal|small)/)}}},setup:function(){return{videoStore:c()()}},data:function(){return{jsDisabled:!0,requiredCookies:h}},computed:{formattedVideoBtnText:function(){return"".concat(this.videoBtnText," | ")},formattedVideoDuration:function(){var e="".concat(this.videoDetails.videoFullDuration.seconds);return 1===e.length&&(e="0".concat(e)),"".concat(this.videoDetails.videoFullDuration.minutes,":").concat(e)},stretchedLinkCardClasses:function(){var e="";return this.disabled&&(e+="vs-stretched-link-card--disabled"),"video"===this.type&&(e+=" vs-stretched-link-card--video"),this.showWarning&&"video"===this.type&&(e+=" vs-stretched-link-card--warning"),e},videoDetails:function(){return this.videoStore.videos[this.videoId]},videoLoaded:function(){return void 0!==this.videoDetails&&this.videoDetails.videoDuration>0},warningClass:function(){var e="";return!this.videoId||!this.jsDisabled&&this.requiredCookiesExist||(e="vs-stretched-link-card__img-container--warning ","full"!==this.errorType||null===this.cookiesInitStatus&&!this.jsDisabled||(e+="vs-stretched-link-card__img-container--warning-full")),e},showCookieWarning:function(){return!(!this.videoId||this.jsDisabled||this.requiredCookiesExist||!0!==this.cookiesInitStatus)},showError:function(){return!(!this.videoId||""===this.errorMessage||"error"!==this.cookiesInitStatus)},showWarning:function(){return this.showError||this.showCookieWarning?this.errorType:!!this.jsDisabled},warningMessage:function(){return this.showCookieWarning?this.noCookiesMessage:this.errorMessage},warningAttrs:function(){var e={};return"cookie"===this.type&&(e.class="ot-sdk-show-settings vs-warning__cookie-trigger"),"small"===this.size&&(e.size="sm"),e}},mounted:function(){this.jsDisabled=(0,d.A)()},methods:{emitShowModal:function(){this.videoId&&this.requiredCookiesExist&&this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}}},77070:function(e,t,i){"use strict";i.d(t,{X:function(){return d}});var s=i(20641),n=i(90033),r={key:0,class:"vs-stretched-link-card__video-btn-text"},a={key:1,class:"vs-stretched-link-card__category","data-test":"vs-stretched-link-card__category"},o={class:"vs-stretched-link-card__content","data-test":"vs-stretched-link-card__content"};function d(e,t,i,d,l,c){var u=(0,s.g2)("VsWarning"),h=(0,s.g2)("VsImg"),k=(0,s.g2)("VsButton"),v=(0,s.g2)("VsLink"),g=(0,s.g2)("VsHeading");return(0,s.uX)(),(0,s.CE)("div",{class:(0,n.normalizeClass)(["card vs-stretched-link-card",c.stretchedLinkCardClasses]),"data-test":"vs-stretched-link-card",onClick:t[0]||(t[0]=function(){return c.emitShowModal&&c.emitShowModal.apply(c,arguments)}),onKeypress:t[1]||(t[1]=function(){return c.emitShowModal&&c.emitShowModal.apply(c,arguments)})},["full"===c.showWarning?((0,s.uX)(),(0,s.Wv)(u,{key:0,size:i.warningSize,type:c.showCookieWarning?"cookie":"normal","data-test":"vs-stretched-link-card__full-warning",class:"vs-stretched-link-card__full-warning"},(0,s.eX)({default:(0,s.k6)((function(){return[(0,s.eW)((0,n.toDisplayString)(c.warningMessage)+" ",1)]})),_:2},[""!==c.cookieLinkText&&c.showCookieWarning?{name:"button-text",fn:(0,s.k6)((function(){return[(0,s.eW)((0,n.toDisplayString)(c.cookieLinkText),1)]})),key:"0"}:void 0]),1032,["size","type"])):(0,s.Q3)("",!0),"full"===i.errorType&&""!==i.videoId?((0,s.uX)(),(0,s.Wv)(u,{key:1,size:i.warningSize,"data-test":"vs-stretched-link-card__full-warning",class:"vs-stretched-link-card__full-warning vs-stretched-link-card__full-warning--no-js"},{default:(0,s.k6)((function(){return[(0,s.eW)((0,n.toDisplayString)(c.noJsMessage),1)]})),_:1},8,["size"])):(0,s.Q3)("",!0),(0,s.Lk)("div",{class:(0,n.normalizeClass)(["vs-stretched-link-card__img-container",c.warningClass])},[i.imgSrc?((0,s.uX)(),(0,s.Wv)(h,{key:0,src:i.imgSrc,alt:i.imgAlt,class:"vs-stretched-link-card__img","data-test":"vs-stretched-link-card__img","data-chromatic":"ignore"},null,8,["src","alt"])):(0,s.Q3)("",!0),"image"===c.showWarning?((0,s.uX)(),(0,s.Wv)(u,{key:1,size:i.warningSize,type:c.showCookieWarning?"cookie":"normal","data-test":"vs-stretched-link-card__image-warning",class:"vs-stretched-link-card__image-warning"},(0,s.eX)({default:(0,s.k6)((function(){return[(0,s.eW)((0,n.toDisplayString)(c.warningMessage)+" ",1)]})),_:2},[""!==c.cookieLinkText&&c.showCookieWarning?{name:"button-text",fn:(0,s.k6)((function(){return[(0,s.eW)((0,n.toDisplayString)(c.cookieLinkText),1)]})),key:"0"}:void 0]),1032,["size","type"])):(0,s.Q3)("",!0),""!==i.videoId&&"image"===i.errorType?((0,s.uX)(),(0,s.Wv)(u,{key:2,size:i.warningSize,"data-test":"vs-stretched-link-card__warning",class:"vs-stretched-link-card__image-warning vs-stretched-link-card__image-warning--no-js"},{default:(0,s.k6)((function(){return[(0,s.eW)((0,n.toDisplayString)(c.noJsMessage),1)]})),_:1},8,["size"])):(0,s.Q3)("",!0)],2),e.$slots["stretched-card-panels"]&&e.$slots["stretched-card-panels"]()?(0,s.RG)(e.$slots,"stretched-card-panels",{key:2}):(0,s.Q3)("",!0),"full"!==c.showWarning?((0,s.uX)(),(0,s.CE)("div",{key:3,class:(0,n.normalizeClass)(["card-body",i.videoId?"position-relative":""])},[i.videoId&&c.videoLoaded&&e.requiredCookiesExist?((0,s.uX)(),(0,s.Wv)(k,{key:0,class:"vs-stretched-link-card__video-button","data-test":"vs-stretched-link-card__video-button",icon:"play","icon-position":"left",size:"md",ref:"videoShow",onClick:c.emitShowModal},{default:(0,s.k6)((function(){return[i.videoBtnText?((0,s.uX)(),(0,s.CE)("span",r,(0,n.toDisplayString)(c.formattedVideoBtnText),1)):(0,s.Q3)("",!0),(0,s.eW)(" "+(0,n.toDisplayString)(c.formattedVideoDuration),1)]})),_:1},8,["onClick"])):(0,s.Q3)("",!0),e.$slots["stretched-card-category"]&&e.$slots["stretched-card-category"]()?((0,s.uX)(),(0,s.CE)("span",a,[(0,s.RG)(e.$slots,"stretched-card-category")])):(0,s.Q3)("",!0),e.$slots["stretched-card-header"]&&e.$slots["stretched-card-header"]()?((0,s.uX)(),(0,s.Wv)(g,{key:2,level:i.headingLevel,class:"card-title vs-stretched-link-card__title","data-test":"vs-stretched-link-card__title"},{default:(0,s.k6)((function(){return[e.$slots["stretched-card-link"]&&e.$slots["stretched-card-link"]()?(0,s.RG)(e.$slots,"stretched-card-header",{key:0}):"video"===i.type?(0,s.RG)(e.$slots,"stretched-card-header",{key:1}):((0,s.uX)(),(0,s.Wv)(v,{key:2,href:i.link,type:i.type,class:(0,n.normalizeClass)(["stretched-link",i.disabled?"stretched-link--disabled":""]),variant:"dark"===c.theme?"on-dark":"primary","data-test":"vs-stretched-link",disabled:i.disabled,tabindex:i.videoId||i.disabled?"-1":"0"},{default:(0,s.k6)((function(){return[(0,s.RG)(e.$slots,"stretched-card-header")]})),_:3},8,["href","type","class","variant","disabled","tabindex"]))]})),_:3},8,["level"])):(0,s.Q3)("",!0),(0,s.Lk)("div",o,[(0,s.RG)(e.$slots,"stretched-card-content")]),e.$slots["stretched-card-link"]&&e.$slots["stretched-card-link"]()?((0,s.uX)(),(0,s.Wv)(v,{key:3,href:i.link,class:"vs-stretched-link-card__link stretched-link","data-test":"vs-stretched-link-card__link"},{default:(0,s.k6)((function(){return[(0,s.RG)(e.$slots,"stretched-card-link")]})),_:3},8,["href"])):(0,s.Q3)("",!0)],2)):(0,s.Q3)("",!0)],34)}},65212:function(e,t,i){"use strict";var s=i(85072),n=i.n(s),r=i(97825),a=i.n(r),o=i(77659),d=i.n(o),l=i(55056),c=i.n(l),u=i(10540),h=i.n(u),k=i(41113),v=i.n(k),g=i(87730),f=i.n(g),y={};y.styleTagTransform=v(),y.setAttributes=c(),y.insert=d().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=h(),n()(f(),y),f()&&f().locals&&f().locals},59116:function(e,t,i){"use strict";i.r(t);var s=i(98334),n=i(11736);i(64976);const r=(0,i(66262).A)(n.A,[["render",s.X]]);t.default=r},11736:function(e,t,i){"use strict";i.d(t,{A:function(){return s.A}});var s=i(90020)},98334:function(e,t,i){"use strict";i.d(t,{X:function(){return s.X}});var s=i(77070)},64976:function(e,t,i){"use strict";i(65212)}}]);
@@ -1 +0,0 @@
1
- .vs-image-with-caption{position:relative}.vs-image-with-caption__image-wrapper{position:relative;aspect-ratio:3/2}@supports not (aspect-ratio: 3/2){.vs-image-with-caption__image-wrapper{padding-bottom:66.6%}}.vs-image-with-caption__image-wrapper img{width:100%;height:100%;object-fit:cover;align-self:flex-start;flex-shrink:0}.vs-image-with-caption__image-wrapper .vs-toggle-btn{position:absolute;bottom:.5rem;right:.5rem}@media(max-width: 575.98px){.vs-image-with-caption__image-wrapper .vs-toggle-btn .fa-icon-colours--white{--fa-primary-color: rgb(32, 15, 46);--fa-secondary-color: rgb(255, 255, 255)}}@media(min-width: 576px){.vs-image-with-caption--closed-default .vs-image-with-caption__image-wrapper .vs-toggle-btn{display:block}.vs-image-with-caption--closed-default .vs-image-with-caption__image-wrapper .vs-toggle-btn .fa-icon-colours--white{--fa-primary-color: rgb(32, 15, 46);--fa-secondary-color: rgb(255, 255, 255)}}@media(min-width: 576px){.vs-image-with-caption__image-wrapper .vs-toggle-btn{display:none}}.vs-image-with-caption__caption-wrapper{display:none;padding:0}.vs-image-with-caption__caption-wrapper .vs-caption--large{position:absolute;bottom:-48px;right:0;z-index:2}@media(max-width: 575.98px){.vs-image-with-caption__caption-wrapper .vs-caption--large,.vs-image-with-caption__caption-wrapper .vs-caption--fullwidth{position:absolute;top:0;width:100%;height:100%;display:flex;text-align:center}}@media(min-width: 576px){.vs-image-with-caption__caption-wrapper{display:block}.vs-image-with-caption--closed-default .vs-image-with-caption__caption-wrapper{display:none}.vs-image-with-caption--closed-default .vs-image-with-caption__caption-wrapper .vs-caption--fullwidth{display:flex;position:absolute;top:0;height:100%;text-align:center}}@media(min-width: 576px){.vs-image-with-caption--fullwidth .vs-image-with-caption__captions{position:relative}}.vs-image-with-caption--video.vs-image-with-caption--hero .vs-image-with-caption__image-wrapper .vs-toggle-btn{display:none}.vs-image-with-caption--video.vs-image-with-caption--narrow .vs-image-with-caption__image-wrapper .vs-toggle-btn{display:none}.vs-image-with-caption--video .vs-image-with-caption__caption-wrapper{display:none;justify-content:flex-end}.vs-image-with-caption--video .vs-image-with-caption__captions{position:relative;top:auto;left:auto;background:#271438}.vs-image-with-caption--video .vs-caption__image-caption{margin-bottom:.5rem}.vs-image-with-caption--video .vs-caption .row{margin:0}.vs-image-with-caption--video.vs-image-with-caption--hero .vs-image-with-caption__video-caption-wrapper{padding:0}.vs-image-with-caption--video.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper{display:none}.vs-image-with-caption--video.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper .vs-caption{position:relative;bottom:auto;right:auto}.vs-image-with-caption--video.vs-image-with-caption--hero.vs-image-with-caption--show-caption .vs-image-with-caption__caption-wrapper{display:flex;margin-top:.5rem}@media(min-width: 576px){.vs-image-with-caption--video .vs-image-with-caption__video-caption-wrapper .vs-video-caption{width:100%}}@media(min-width: 992px){.vs-image-with-caption--video .vs-toggle-btn{display:none}.vs-image-with-caption--video .vs-image-with-caption__video-caption-wrapper{display:flex;justify-content:flex-end;padding:0}.vs-image-with-caption--video .vs-image-with-caption__video-caption-wrapper .vs-video-caption--fullwidth{width:400px}.vs-image-with-caption--video .vs-image-with-caption__video-caption-wrapper .vs-video-caption .vs-toggle-btn{display:block}.vs-image-with-caption--video .vs-image-with-caption__caption-wrapper{justify-content:flex-end;padding:0}.vs-image-with-caption--video .vs-video-caption--fullwidth .vs-caption{position:absolute;bottom:auto;width:400px}.vs-image-with-caption--video .vs-toggle-btn{right:0}.vs-image-with-caption--video.vs-image-with-caption--hero .vs-image-with-caption__captions{position:absolute;bottom:210px;width:100%;right:0;z-index:3;background:rgba(0,0,0,0)}}.vs-image-with-caption--overlapped .vs-toggle-btn{bottom:3rem;right:1rem}.vs-image-with-caption--hero{margin-bottom:0;background:#271438}.vs-image-with-caption--hero .vs-image-with-caption__image-wrapper{max-height:100vh;overflow:hidden;aspect-ratio:auto}@supports not (aspect-ratio: 3/2){.vs-image-with-caption--hero .vs-image-with-caption__image-wrapper{padding-bottom:0}}@media(min-width: 576px)and (max-width: 991.98px){.vs-image-with-caption--hero .vs-image-with-caption__image-wrapper .vs-toggle-btn{display:block}}@media(min-width: 992px){.vs-image-with-caption--hero .vs-image-with-caption__image-wrapper{height:100vh}}.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper{display:none}@media(min-width: 576px){.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper{position:relative}}@media(min-width: 992px){.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper{display:block}}.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper .vs-caption--large{position:relative;top:0}@media(max-width: 575.98px){.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper .vs-caption--large{text-align:left;display:block}.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper .vs-caption--large .order-2{order:1}.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper .vs-caption--large .order-1{order:2;flex:0 0 auto;width:auto;max-width:100%;align-self:auto !important}.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper .vs-caption--large .vs-caption__map-wrapper{padding-top:0 !important}.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper .vs-caption--large .vs-caption__image-caption{margin-bottom:1.25rem}.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper .vs-caption--large .vs-caption__caption-info{padding:.75rem .5rem}}@media(min-width: 576px)and (max-width: 991.98px){.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper .vs-caption--large{width:100%;height:auto;text-align:left}}@media(min-width: 992px){.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper .vs-caption--large{bottom:200px;top:auto;position:absolute}}.no-js .vs-image-with-caption__image-wrapper .vs-toggle-btn{display:none}.no-js .vs-image-with-caption--video .vs-image-with-caption__video-caption-wrapper{margin-top:0}.no-js .vs-image-with-caption--video .vs-image-with-caption__video-caption-wrapper .vs-video-caption .vs-toggle-btn{display:none}.no-js .vs-image-with-caption--video .vs-image-with-caption__caption-wrapper{display:flex}.no-js .vs-image-with-caption__caption-wrapper{display:block}.no-js .vs-image-with-caption--closed-default .vs-image-with-caption__image-wrapper .vs-toggle-btn{display:none}.no-js .vs-image-with-caption--closed-default .vs-image-with-caption__caption-wrapper .vs-caption--fullwidth{position:relative;display:block;text-align:left}