import{_ as f,k as v,o as l,s,F as p,l as n,w as i,m as a,v as d,c as h,e as o,n as u,Q as x,R as S,j as k}from"./entry.4a1e3e7a.js";import{_ as g}from"./index.44599e36.js";import{A as B}from"./alchemyElement.5a05415b.js";import"./pause.3fb3ea1a.js";const P={components:{PlayButton:g,Headline:v},props:{title:{type:String,required:!0},muted:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!1},description:{type:String,required:!0},videoSrc:{type:String,default:null},hasControls:{type:Boolean,default:!1},loop:{type:Boolean,default:!0},layout:{type:String,validator(c){return["default","small"].includes(c)},default:"default"}},data(){return{isPlaying:this.autoplay}},computed:{whenToShowContent(){return this.hasControls&&this.isPlaying?!1:(this.hasControls&&!this.isPlaying||!this.hasControls,!0)}},methods:{playButtonPush(){this.isPlaying?(this.isPlaying=!1,this.$refs.video.pause()):(this.isPlaying=!0,this.$refs.video.play())}}},V={key:0,class:"default-video-wrap"},N=["src","muted","autoplay","loop"],H={class:"default-page-header-description"},T={key:1,class:"small-wrap"},b={class:"small-content-wrap"},q={class:"small-description"},A=["src","muted","autoplay","loop"];function D(c,C,t,w,_,e){const r=v,y=k,m=g;return l(),s("div",null,[t.layout=="default"?(l(),s(p,{key:0},[n(y,{class:"default-text-wrap"},{default:i(()=>[n(r,{class:"headline",alignment:"center"},{default:i(()=>[a(d(t.title),1)]),_:1})]),_:1}),a(),t.videoSrc?(l(),s("div",V,[t.hasControls?(l(),h(m,{key:0,class:"masthead-video-play-button","is-playing":_.isPlaying,onClick:e.playButtonPush},null,8,["is-playing","onClick"])):o("",!0),a(),u("video",{ref:"video",src:t.videoSrc,muted:t.muted,autoplay:t.autoplay,loop:t.loop,preload:"auto",class:"video",playsinline:""},null,8,N)])):o("",!0),a(),n(y,{class:"default-text-wrap-small"},{default:i(()=>[u("p",H,d(t.description),1)]),_:1})],64)):o("",!0),a(),t.layout=="small"?(l(),s("div",T,[x(u("div",b,[n(y,{class:"small-content"},{default:i(()=>[n(r,{class:"headline",alignment:"center"},{default:i(()=>[a(d(t.title),1)]),_:1}),a(),u("p",q,d(t.description),1)]),_:1})],512),[[S,e.whenToShowContent]]),a(),t.videoSrc?(l(),s(p,{key:0},[u("video",{ref:"video",src:t.videoSrc,muted:t.muted,autoplay:t.autoplay,loop:t.loop,preload:"auto",class:"video",playsinline:""},null,8,A),a(),t.hasControls?(l(),h(m,{key:0,class:"masthead-video-play-button","is-playing":_.isPlaying,onClick:e.playButtonPush},null,8,["is-playing","onClick"])):o("",!0)],64)):o("",!0)])):o("",!0)])}const E=f(P,[["render",D],["__scopeId","data-v-aca66534"]]),F={mixins:[B],computed:{title(){return this.getValue("title")},description(){return this.getValue("description")},videoSrc(){return this.getValue("video")},autoplay(){return this.getValue("autoplay")},muted(){return this.getValue("muted")},showControls(){return this.getValue("show_controls")},loop(){return this.getValue("loop")},layout(){return this.getValue("layout")}}};function j(c,C,t,w,_,e){const r=E;return l(),h(r,{title:e.title,description:e.description,"video-src":e.videoSrc,muted:e.muted,"has-controls":e.showControls,loop:e.loop,layout:e.layout,autoplay:e.autoplay},null,8,["title","description","video-src","muted","has-controls","loop","layout","autoplay"])}const z=f(F,[["render",j]]);export{z as default};