13 lines
6.7 KiB
JavaScript
13 lines
6.7 KiB
JavaScript
import{u as V}from"./C_U-NUAd.js";import{U as L}from"./DkeYb0_S.js";import{C as D}from"./YJHbYJtA.js";import{e as z,r as _,g as k,h as F,c as a,a as t,F as w,i as S,n as h,b as d,u as m,d as c,o as i,t as n,j as b}from"#entry";import{S as H}from"./XZ6RV9KH.js";import{B as K}from"./CkzaQq3X.js";import{E as T}from"./Cx4UcKGu.js";/**
|
|
* @license lucide-vue-next v0.344.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const E=z("HashIcon",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
|
|
* @license lucide-vue-next v0.344.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const M=z("SettingsIcon",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),N={class:"min-h-full py-16 bg-gray-50"},j={class:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8"},W={class:"mb-8 flex flex-wrap gap-4"},A=["onClick"],U={key:0,class:"grid md:grid-cols-2 lg:grid-cols-3 gap-6"},$={class:"flex items-start justify-between mb-4"},q={class:"flex-1"},O={class:"text-xl font-display font-bold text-gray-900 mb-2"},P={class:"flex items-center mb-3"},Q={class:"text-sm font-medium text-gray-600"},G={class:"text-gray-700 mb-4 leading-relaxed"},J={class:"space-y-2 text-sm"},R={key:0,class:"flex items-center"},X={class:"text-gray-600"},Y={key:1,class:"flex items-center"},Z={class:"text-gray-600"},ee={key:2,class:"flex items-center"},te={class:"text-gray-600"},se={key:1,class:"text-center py-12 bg-white rounded-xl shadow-lg"},re={class:"mt-12 bg-gradient-to-r from-primary-600 to-primary-700 rounded-xl p-8 text-white"},le={class:"text-2xl font-display font-bold mb-6 flex items-center"},ae={class:"space-y-4"},ie={class:"mt-6"},ne={href:"https://www.wikiwand.com/de/Tischtennis#Spielsysteme",target:"_blank",class:"inline-flex items-center px-6 py-3 bg-white text-primary-600 font-semibold rounded-lg hover:bg-gray-100 transition-colors"},ye={__name:"spielsysteme",setup(oe){const p=_([]),g=_("alle"),C=async()=>{try{const l=await fetch("/data/spielsysteme.csv");if(!l.ok)return;const s=(await l.text()).split(`
|
|
`).filter(o=>o.trim()!=="");if(s.length<2)return;p.value=s.slice(1).map(o=>{const r=[];let x="",u=!1;for(let y=0;y<o.length;y++){const f=o[y];f==='"'?u=!u:f===","&&!u?(r.push(x.trim()),x=""):x+=f}return r.push(x.trim()),r.length<8?null:{name:r[0].trim(),description:r[1].trim(),mannschaftsgroesse:r[2].trim(),kategorie:r[3].trim(),details:r[4].trim(),spielabfolge:r[5].trim(),anzahl_spiele:r[6].trim(),besonderheiten:r[7].trim()}}).filter(o=>o!==null)}catch(l){console.error("Fehler beim Laden der Spielsysteme:",l)}},B=k(()=>[...new Set(p.value.map(e=>e.kategorie).filter(e=>e!==""))].sort()),v=k(()=>g.value==="alle"?p.value:p.value.filter(l=>l.kategorie===g.value)),I=l=>({Klassisch:"bg-blue-100 text-blue-800",Flexibel:"bg-green-100 text-green-800",Strukturiert:"bg-purple-100 text-purple-800",Modifiziert:"bg-orange-100 text-orange-800",International:"bg-red-100 text-red-800",Standard:"bg-gray-100 text-gray-800",Professionell:"bg-yellow-100 text-yellow-800"})[l]||"bg-gray-100 text-gray-800";return F(()=>{C()}),V({title:"Spielsysteme - Harheimer TC"}),(l,e)=>(i(),a("div",N,[t("div",j,[e[9]||(e[9]=t("h1",{class:"text-4xl sm:text-5xl font-display font-bold text-gray-900 mb-6"}," Spielsysteme ",-1)),e[10]||(e[10]=t("div",{class:"w-24 h-1 bg-primary-600 mb-8"},null,-1)),e[11]||(e[11]=t("p",{class:"text-xl text-gray-600 mb-12"}," Übersicht der verschiedenen Mannschafts-Spielsysteme im Tischtennis ",-1)),t("div",W,[(i(!0),a(w,null,S(B.value,s=>(i(),a("button",{key:s,onClick:o=>g.value=s,class:h(["px-4 py-2 rounded-lg font-medium transition-colors",g.value===s?"bg-primary-600 text-white":"bg-white text-gray-700 hover:bg-gray-100 border border-gray-300"])},n(s),11,A))),128)),t("button",{onClick:e[0]||(e[0]=s=>g.value="alle"),class:h(["px-4 py-2 rounded-lg font-medium transition-colors",g.value==="alle"?"bg-primary-600 text-white":"bg-white text-gray-700 hover:bg-gray-100 border border-gray-300"])}," Alle Kategorien ",2)]),v.value.length>0?(i(),a("div",U,[(i(!0),a(w,null,S(v.value,s=>(i(),a("div",{key:s.name,class:"bg-white rounded-xl shadow-lg p-6 hover:shadow-xl transition-shadow border border-gray-100"},[t("div",$,[t("div",q,[t("h3",O,n(s.name),1),t("div",P,[d(m(L),{size:16,class:"text-primary-600 mr-2"}),t("span",Q,n(s.mannschaftsgroesse),1)])]),t("div",{class:h(["px-3 py-1 rounded-full text-xs font-medium",I(s.kategorie)])},n(s.kategorie),3)]),t("p",G,n(s.description),1),t("div",J,[s.spielabfolge?(i(),a("div",R,[d(m(D),{size:14,class:"text-primary-600 mr-2 flex-shrink-0"}),t("span",X,[e[1]||(e[1]=t("strong",null,"Spielabfolge:",-1)),c(" "+n(s.spielabfolge),1)])])):b("",!0),s.anzahl_spiele?(i(),a("div",Y,[d(m(E),{size:14,class:"text-primary-600 mr-2 flex-shrink-0"}),t("span",Z,[e[2]||(e[2]=t("strong",null,"Anzahl Spiele:",-1)),c(" "+n(s.anzahl_spiele),1)])])):b("",!0),s.besonderheiten?(i(),a("div",ee,[d(m(H),{size:14,class:"text-primary-600 mr-2 flex-shrink-0"}),t("span",te,[e[3]||(e[3]=t("strong",null,"Besonderheiten:",-1)),c(" "+n(s.besonderheiten),1)])])):b("",!0)])]))),128))])):(i(),a("div",se,[d(m(M),{size:48,class:"text-gray-400 mx-auto mb-4"}),e[4]||(e[4]=t("p",{class:"text-gray-600"},"Keine Spielsysteme für die ausgewählte Kategorie gefunden.",-1))])),t("div",re,[t("h3",le,[d(m(K),{size:28,class:"mr-3"}),e[5]||(e[5]=c(" Weitere Informationen ",-1))]),t("div",ae,[e[7]||(e[7]=t("p",{class:"text-primary-100 leading-relaxed"}," Die Spielsysteme werden je nach Liga und Verband unterschiedlich eingesetzt. Die meisten regionalen Ligen verwenden das Bundessystem oder das Braunschweiger System. ",-1)),e[8]||(e[8]=t("p",{class:"text-primary-100 leading-relaxed"}," Internationale Wettkämpfe folgen meist den FIT-Systemen (Corbillon-Cup für Damen, Swaythling-Cup für Herren). ",-1)),t("div",ie,[t("a",ne,[d(m(T),{size:20,class:"mr-2"}),e[6]||(e[6]=c(" Detaillierte Erklärungen auf Wikiwand ",-1))])])])])])]))}};export{ye as default};
|