@visitscotland/component-library 4.28.1 → 4.29.0

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.
@@ -2675,7 +2675,7 @@
2675
2675
  "scripts/ea8bd93a9e5e07028076.js",
2676
2676
  "scripts/92ddbe331650139b5373.js",
2677
2677
  "scripts/66d848dca09d9003915b.js",
2678
- "scripts/84844d86b9682db80112.js"
2678
+ "scripts/58a4b896b3c1068ceeaa.js"
2679
2679
  ],
2680
2680
  "styles": [
2681
2681
  "styles/a671773c79ec7a6f35b1.css",
@@ -2688,7 +2688,7 @@
2688
2688
  "styles/ea8bd93a9e5e07028076.css",
2689
2689
  "styles/92ddbe331650139b5373.css",
2690
2690
  "styles/66d848dca09d9003915b.css",
2691
- "styles/84844d86b9682db80112.css"
2691
+ "styles/58a4b896b3c1068ceeaa.css"
2692
2692
  ]
2693
2693
  },
2694
2694
  "VsHtmlError": {
@@ -0,0 +1 @@
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsHeroSection=t():e.VsHeroSection=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1763],{6452:function(){},12074:function(e,t,i){"use strict";i(84294)},12940:function(e,t,i){"use strict";i.d(t,{X:function(){return v}});var s=i(20641),o=i(90033),n={class:"vs-hero-section__grid"},r={key:1,class:"vs-hero-section__video-wrapper"},a=["poster"],d=["src"],l={key:2,class:"vs-hero-section__divider"},u={class:"vs-hero-section__text"},c=["innerHTML"],p={class:"mb-0"};function v(e,t,i,v,g,f){var h=(0,s.g2)("VsHeroSectionImage"),y=(0,s.g2)("VsHeading"),m=(0,s.g2)("VsRichTextWrapper"),_=(0,s.g2)("VsHeroSectionVideoControl");return(0,s.uX)(),(0,s.CE)("div",{class:(0,o.normalizeClass)(["vs-hero-section",{"vs-hero-section--split":i.split}]),"data-test":"vs-hero-section"},[(0,s.Lk)("div",n,[i.src&&!i.videoSrc?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,o.normalizeClass)(["vs-hero-section__image",f.imageClasses])},[(0,s.bF)(h,{"img-alt":i.imgAlt,src:i.src,"img-caption":i.imgCaption,"img-credit":i.imgCredit,split:i.split},null,8,["img-alt","src","img-caption","img-credit","split"])],2)):i.videoSrc?((0,s.uX)(),(0,s.CE)("div",r,[(0,s.Lk)("video",{loop:"",muted:"",autoplay:"",playsinline:"",preload:"auto",poster:i.src,class:"vs-hero-section__video",ref:"heroVideo","aria-hidden":"true",fetchpriority:"high"},[(0,s.Lk)("source",{src:i.videoSrc,type:"video/mp4"},null,8,d)],8,a),t[0]||(t[0]=(0,s.Lk)("div",{class:"vs-hero-section__video-overlay"},null,-1))])):((0,s.uX)(),(0,s.CE)("hr",l)),(0,s.Lk)("div",{class:(0,o.normalizeClass)(f.textContainerClasses)},[(0,s.Lk)("div",u,[(0,s.bF)(y,{class:"vs-hero-section__heading","data-test":"vs-hero-section__heading",level:"1","heading-style":"display-xs",id:"main-heading"},{default:(0,s.k6)((function(){return[(0,s.Lk)("span",{innerHTML:i.heading},null,8,c)]})),_:1}),i.lede?((0,s.uX)(),(0,s.Wv)(m,{key:0,class:"vs-hero-section__lede","data-test":"vs-hero-section__lede",variant:"lead"},{default:(0,s.k6)((function(){return[(0,s.Lk)("p",p,(0,o.toDisplayString)(i.lede),1)]})),_:1})):(0,s.Q3)("",!0)]),i.videoSrc?((0,s.uX)(),(0,s.Wv)(_,{key:0,"video-btn-text":"Toggle video",onVideoToggled:f.onToggleVideo,"video-playing-status":i.videoPlayingStatus,"video-paused-status":i.videoPausedStatus},{default:(0,s.k6)((function(){return[(0,s.eW)((0,o.toDisplayString)(i.videoBtnText),1)]})),_:1},8,["onVideoToggled","video-playing-status","video-paused-status"])):(0,s.Q3)("",!0)],2)])],2)}},38399:function(e,t,i){"use strict";i.r(t);var s=i(87132),o=i(66565);i(12074);const n=(0,i(66262).A)(o.A,[["render",s.X]]);t.default=n},66565:function(e,t,i){"use strict";i.d(t,{A:function(){return s.A}});var s=i(86833)},84294:function(e,t,i){"use strict";var s=i(85072),o=i.n(s),n=i(97825),r=i.n(n),a=i(77659),d=i.n(a),l=i(55056),u=i.n(l),c=i(10540),p=i.n(c),v=i(41113),g=i.n(v),f=i(6452),h=i.n(f),y={};y.styleTagTransform=g(),y.setAttributes=u(),y.insert=d().bind(null,"head"),y.domAPI=r(),y.insertStyleElement=p(),o()(h(),y),h()&&h().locals&&h().locals},86833:function(e,t,i){"use strict";var s=i(13838),o=i(72958),n=i(28533),r=i(78773);t.A={name:"VsHeroSection",status:"prototype",release:"0.0.1",components:{VsHeading:s.default,VsRichTextWrapper:o.default,VsHeroSectionImage:n.default,VsHeroSectionVideoControl:r.default},provide:function(){return{videoPlayingStatus:this.videoPlayingStatus,videoPausedStatus:this.videoPausedStatus}},props:{heading:{type:String,default:"",required:!0},lede:{type:String,default:"",required:!0},src:{type:String,default:""},imgAlt:{type:String,default:""},imgCaption:{type:String,default:""},imgCredit:{type:String,default:""},inset:{type:Boolean,default:!1},split:{type:Boolean,default:!1},videoSrc:{type:String,default:""},videoBtnText:{type:String,default:""},videoPlayingStatus:{type:String,default:""},videoPausedStatus:{type:String,default:""}},computed:{imageClasses:function(){return{"vs-hero-section__image--inset":this.inset}},textContainerClasses:function(){return[{"vs-hero-section__text-container--video":this.videoSrc},"vs-hero-section__text-container"]}},methods:{onToggleVideo:function(e){e?this.$refs.heroVideo.pause():this.$refs.heroVideo.play()}}}},87132:function(e,t,i){"use strict";i.d(t,{X:function(){return s.X}});var s=i(12940)}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,6422,8745,8836,8638,2368,3838,7521,1438,1574,2958,4982,1244,630,1154,8533],(function(){return e(e.s=38399)})),e.O()}])}));