import{o as l,c as i,a as c,t as f,e as u,y as _,m as x,x as q,q as w,O as b,F as p,f as g,g as z,L as S}from"./vue.esm-bundler-D55gHivS.js";import{_ as m}from"./_plugin-vue_export-helper-DlAUqK2U.js";const L={name:"Logo",props:{name:{type:String,required:!0},size:{type:String,default:"base"},light:{type:Boolean,default:!1},inline:{type:Boolean,default:!1}},computed:{mainClasses(){return{flex:this.inline,"items-center":this.inline,"sm:justify-center":this.inline,"mb-4":this.inline}},headlineClasses(){let a;switch(this.size){case"big":a={"text-4xl":!0,"mb-1":!0};break;case"small":a={"text-2xl":!0,"mr-4":!0};break;default:a={"text-3xl":!0};break}return{"text-gray-darker":!this.light,"text-white":!!this.light,...a}},sublineClasses(){return{flex:!0,"items-center":!0,"text-xl":this.size=="big","text-lg":this.size=="base","text-gray":!this.light,"text-white":!!this.light,"sm:justify-end":!0}},playmitLogoClasses(){return this.light?"text-white":"text-gray-dark"},playmitLogoDimensions(){switch(this.size){case"big":return{width:100,height:22};case"small":return{width:82,height:18};default:return{width:91,height:20}}}}},$=["width","height"];function C(a,s,t,n,o,e){return l(),i("div",{class:u(["font-bold leading-none",e.mainClasses])},[c("div",{class:u(e.headlineClasses)},f(t.name),3),c("div",{class:u(e.sublineClasses)},[s[1]||(s[1]=c("span",{class:"mr-1"},"by",-1)),(l(),i("svg",{class:u(["fill-current",e.playmitLogoClasses]),width:e.playmitLogoDimensions.width,height:e.playmitLogoDimensions.height,viewBox:"0 0 1145.2 246.7",xmlns:"http://www.w3.org/2000/svg"},s[0]||(s[0]=[_('<path d="m346.1 65.6q18.5 17.6 18.5 58.4 0 32.9-16.6 52.8t-45.3 19.9q-21 0-35.1-7.4v57.5h-40.3v-164.5q0-16.8 18.7-25.4t47.9-8.8q33.7 0 52.2 17.5zm-30.7 88.5q8-9.4 8-31.5 0-19.9-7-30t-24.2-10q-24.6 0-24.6 9.4v65.7a36.4 36.4 0 0 0 11.1 4.4 53.5 53.5 0 0 0 11.9 1.4q16.8 0 24.8-9.4z"></path><path d="m393.3 192.5v-192.5h40.9v192.5z"></path><path d="m714.8 52.8-29.5 91.7-29.5-91.7h-47l56.1 138.4q-3.3 10.8-9 15.5a21.1 21.1 0 0 1 -14 4.7h-54.7l-20.5 35.4h83.8q33.4 0 53.6-51.9l55-142z"></path><path d="m968 69.1q12.8 12.7 12.8 37.8v89.8h-19.9v-89.8q0-32.6-37-32.6a64.2 64.2 0 0 0 -33.4 9.4q3.6 9.7 3.6 23.2v89.8h-19.9v-89.8q0-32.6-37-32.6a130.2 130.2 0 0 0 -36.2 5.5v116.9h-19.9v-126.8a127.5 127.5 0 0 1 58.3-13.5q26.8 0 40.3 11.3 20.7-11.3 46.4-11.3 29 0 41.9 12.7z"></path><path d="m1014.6 12.4h22.1v21.9h-22.1zm1.1 46.4h19.9v137.9h-19.9z"></path><path d="m1099.4 189.6q-9.7-9.3-9.7-26.4v-86.1h-24v-18.3h24v-38.9h19.9v39h35.6v18.2h-35.6v79.8q0 12.2 3.9 17.7t14.4 5.5q10.2 0 17.4-3.3v18.8a57.8 57.8 0 0 1 -9.8 2.4 69.2 69.2 0 0 1 -11.2 1q-15.2-.1-24.9-9.4z"></path><path d="m591.9 184.9v-21.4l.3-66q0-27.6-18.8-38.2a83.1 83.1 0 0 0 -41.7-10.6 144.2 144.2 0 0 0 -33 3.6q-15.3 3.6-22.8 8.6v36.3q7.5-6.1 20-10.4a75.7 75.7 0 0 1 24.4-4.3q30.9 0 30.9 24v8.8a74.4 74.4 0 0 0 -17.7-6.8 81.9 81.9 0 0 0 -20.4-2.6q-24.9 0-37.4 11.3t-12.5 31.7q0 47.8 61.3 47.8h23.5c30-.7 40.8-8.6 43.9-11.8zm-81.3-22.2a15.6 15.6 0 0 1 -6.5-13q0-8.6 6.2-12.6t19.8-4a65.3 65.3 0 0 1 21.3 3.3v21.6a7.6 7.6 0 0 1 -5.5 7.7q-5.5 1.9-19.9 1.9a24.4 24.4 0 0 1 -15.4-4.9z"></path><path d="m107.7 164.6a20.8 20.8 0 0 1 -29.4 0l-51-51 29.3-29.4 32.7 32.7a5.2 5.2 0 0 0 7.4 0l55.6-55.6a89.1 89.1 0 1 0 21.5 37.3z"></path>',8)]),10,$))],2)],2)}const U=m(L,[["render",C]]),Z={__name:"Countdown",props:{target:{type:String,required:!0}},setup(a){const s=a,t=x(0);let n=null;const o=r=>{const h=Date.now();t.value=Math.max(0,Math.floor((r-h)/1e3)),t.value===0&&n&&clearInterval(n)},e=q(()=>{const r=Math.floor(t.value/86400),h=Math.floor(t.value%86400/3600),v=Math.floor(t.value%3600/60),y=t.value%60;let d="";return r>0&&(d+=`${r.toString().padStart(2,"0")} Tage `),d+`${h.toString().padStart(2,"0")}:${v.toString().padStart(2,"0")}:${y.toString().padStart(2,"0")}`});return w(()=>{const r=new Date(s.target).getTime();o(r),n=setInterval(()=>{o(r)},1e3)}),b(()=>{n&&clearInterval(n)}),(r,h)=>(l(),i("div",null,[t.value>0?(l(),i(p,{key:0},[g(f(e.value),1)],64)):(l(),i(p,{key:1},[g(" Zeit abgelaufen! ")],64))]))}},T={name:"VAudio",props:{attachment:{type:Object,required:!0},autoplay:{type:Boolean,default:!0}}},k=["autoplay"],B=["src","type"];function A(a,s,t,n,o,e){return l(),i("audio",{controls:"",autoplay:t.autoplay},[c("source",{src:t.attachment.url,type:t.attachment.type},null,8,B)],8,k)}const D=m(T,[["render",A]]),j={name:"VImage",props:{attachment:{type:Object,required:!0},altText:{default:""}}},I=["src","alt"];function M(a,s,t,n,o,e){return l(),i("img",{src:t.attachment.url,alt:t.altText},null,8,I)}const O=m(j,[["render",M]]),V={name:"Attachment",components:{"v-audio":D,"v-image":O},props:{attachment:{type:Object,required:!0},altText:{type:String,default:""},autoplay:{type:Boolean,default:!0}},computed:{type(){return"v-"+this.attachment.type.substr(0,this.attachment.type.indexOf("/")).toLowerCase()},altAttr(){return this.altText.length&&this.type==="v-image"?this.altText:null}}};function N(a,s,t,n,o,e){return l(),z(S(e.type),{attachment:t.attachment,"alt-text":e.altAttr,autoplay:t.autoplay},null,8,["attachment","alt-text","autoplay"])}const G=m(V,[["render",N]]);export{G as A,U as L,Z as _};