You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

2 line
2.5 KiB

  1. import{I as v}from"./events-BaSrMY3R.js";import{$ as y}from"./iframe-CLehcUMy.js";import{c as e}from"./helpers-DemszZkW.js";import{c as o}from"./ButtonComponent-C1nc5If8.js";import{a as d,c as k}from"./EventTeaserComponent-CnOfgIRq.js";const w=[{date:{weekday:"Mo.",day:"20",month:"Sep. 2020"},title:"1. Rahmenbedingungen für eine erfolgreiche Ausbildung – von Beginn an",link:"#"},{date:{weekday:"Mo.",day:"20",month:"Sep. 2020"},title:"2. Rahmenbedingungen für eine erfolgreiche Ausbildung – von Beginn an",link:"#"},{date:{weekday:"Mo.",day:"20",month:"Sep. 2020"},title:"3. Rahmenbedingungen für eine erfolgreiche Ausbildung – von Beginn an",link:"#"},{date:{weekday:"Mo.",day:"20",month:"Sep. 2020"},title:"4. Rahmenbedingungen für eine erfolgreiche Ausbildung – von Beginn an",link:"#"},{date:{weekday:"Mo.",day:"20",month:"Sep. 2020"},title:"5. Rahmenbedingungen für eine erfolgreiche Ausbildung – von Beginn an",link:"#"},{date:{weekday:"Mo.",day:"20",month:"Sep. 2020"},title:"6. Rahmenbedingungen für eine erfolgreiche Ausbildung – von Beginn an",link:"#"},{date:{weekday:"Mo.",day:"20",month:"Sep. 2020"},title:"7. Rahmenbedingungen für eine erfolgreiche Ausbildung – von Beginn an",link:"#"},{date:{weekday:"Mo.",day:"20",month:"Sep. 2020"},title:"8. Rahmenbedingungen für eine erfolgreiche Ausbildung – von Beginn an",link:"#"},{date:{weekday:"Mo.",day:"20",month:"Sep. 2020"},title:"9. Rahmenbedingungen für eine erfolgreiche Ausbildung – von Beginn an",link:"#"}],T=({headline:i="Aktuelle Veranstaltungen",updateText:s="Updates zu dieser Liste per Mail abonnieren",allButtonLabel:g="Alle anzeigen",showItems:c=5,scrollItems:u=5,events:h=w})=>{const l=e("section",["events","variant-subtle-primary"]),a=e("div",["container"],null,l);i&&i.length>0&&e("h2",[],i,a);const p=e("div",["events-wrapper"],null,a),n=e("ul",["events-list"],null,p);n.dataset.pagination="true",n.dataset.items=c.toString(),n.dataset.scroll=u.toString(),h.map(r=>{r.title=d[Math.floor(Math.random()*d.length)],e("li",[],null,n).appendChild(k({event:r}))});const t=e("div",["events-actions"],null,a),m=e("a",["mailupdate"],s,t),f=t.appendChild(o({elementType:"button",color:"white",label:null,icon:"pfeil-rechts",iconPosition:"icon-inline"})),b=t.appendChild(o({elementType:"button",color:"white",label:null,icon:"pfeil-rechts",iconPosition:"icon-inline"}));return t.appendChild(o({elementType:"a",color:"white",label:g,icon:"kalender",iconPosition:"icon-right"})),m.href="#",f.classList.add("prev"),b.classList.add("next"),new v(y(n)),l};export{w as E,T as c};