1import{a as f,b as y,j as t,l as j,m as b,S as _,s as $,i as E}from"./index-CCTijiDD.js";import{m as w}from"./markdownToHtml-D7s1oZbp.js";import{b as d,E as H}from"./seoTitle-C5-NiGPH.js";import"./circle-x-qduYz0BW.js";const I=()=>{const{language:n}=f(),{data:e,isLoading:g}=y({queryKey:["event","heleneholmspelen"],queryFn:async()=>{const{data:a,error:p}=await E.from("events").select("*").eq("slug","heleneholmspelen").maybeSingle();if(p)throw p;return a}});if(g)return t.jsx("div",{className:"min-h-screen flex items-center justify-center",children:t.jsx(j,{className:"w-8 h-8 animate-spin text-primary"})});if(!e)return t.jsx("div",{className:"min-h-screen flex items-center justify-center",children:t.jsx("p",{className:"text-muted-foreground",children:n==="sv"?"Event hittades inte":"Event not found"})});const s=n==="sv"?e.name:e.name_en,h=n==="sv"?e.subtitle:e.subtitle_en,r=b(n==="sv"?e.date:e.date_en),o=e.location,i=e.hero_image,u=e.registration_link,l=n==="sv"?e.content:e.content_en,m=(e==null?void 0:e.event_categories)||[],v=(Array.isArray(m)?m:[]).map(a=>({name:n==="sv"?a.name:a.name_en,icon:a.icon})),x=n==="sv"?d(`${s} ${r}`):d(`${s} ${r}`),c=n==="sv"?`${s} â ${r} i ${o}. Arrangeras av Heleneholms IF i Malmö.`:`${s} â ${r} in ${o}. Organised by Heleneholms IF in Malmö.`;return t.jsxs(t.Fragment,{children:[t.jsx(_,{title:x,description:c,type:"event",path:"/tavlingar/heleneholmspelen",image:i||void 0,breadcrumbs:[{name:n==="sv"?"Tävlingar":"Competitions",path:"/#events"},{name:s,path:"/tavlingar/heleneholmspelen"}],eventData:{name:s,startDate:r,location:o,description:(n==="sv"?e.description:e.description_en)||c,url:"/tavlingar/heleneholmspelen",image:i||void 0}}),t.jsx(H,{title:s,subtitle:h,date:r,location:o,heroImage:i,categories:v,registrationLink:u,children:l&&t.jsx("div",{className:"prose prose-lg max-w-none prose-headings:text-foreground prose-p:text-foreground prose-li:text-foreground prose-strong:text-foreground prose-img:rounded-lg prose-img:shadow-lg prose-a:text-primary hover:prose-a:text-primary/80",dangerouslySetInnerHTML:{__html:$(w(l))}})})]})};export{I as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.