PageSourceSearch

https://betsquare.org/assets/SportCategoryHub-Br3bx7Rc.js

js betsquare.org collected 2026-10-09 17:50:10 UTC 4,826 bytes, 1 lines download raw bytes

1import{j as e,L as u}from"./react-vendor-CT-lva-H.js";import{s as f,H as j,e as x,S as y,a as b,G as v,g as _,b as N,B as g}from"./index-l0VJpqli.js";import{u as L}from"./vendor-query-CodguxnS.js";import{r as S}from"./vendor-icons-CXYkLe3T.js";import"./vendor-html-DKgZpLtg.js";import"./vendor-supabase-BW7Rw0-6.js";import"./vendor-hjmch2D6.js";import"./vendor-radix-D4LOKava.js";import"./vendor-forms-C598NW7P.js";function w(s,a="NL"){return L({queryKey:["sport-subhub-posts",s,a],queryFn:async()=>{const{data:l,error:n}=await f.from("pages").select("id, slug, title, meta_title, meta_description, intro_text, featured_image_url, author_name, author_image_url, category, published_at, last_updated, original_path").eq("template_type","blog_post").eq("geo",a).order("published_at",{ascending:!1,nullsFirst:!1});if(n)throw n;const i=`/sport/${s}/`,o=s==="formule-1"?/(formule.?1|verstappen|f1\b)/i:/eredivisie|ajax|psv|feyenoord/i,c=`sport/${s}`,t=(l||[]).filter(r=>{if(!r?.slug||r.slug===s||r.slug===c||r.original_path&&r.original_path.replace(/\/$/,"")===i.replace(/\/$/,""))return!1;if(r.original_path&&r.original_path.startsWith(i)){const m=r.original_path.slice(i.length).replace(/^\/|\/$/g,"");return!m||m.includes("/")?m.length>0:!0}return o.test(r.title||"")||o.test(r.slug)?!r.slug.includes("/"):!1}),d=new Set,p=t.filter(r=>d.has(r.id)?!1:(d.add(r.id),!0));return j(p)}})}function H(s){if(!s)return"";try{return new Date(s).toLocaleDateString("nl-NL",{year:"numeric",month:"long",day:"numeric"})}catch{return s}}function h({subHub:s,title:a,description:l,canonical:n}){const{data:i,isLoading:o}=w(s,"NL"),c={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:x(g,"/")},{"@type":"ListItem",position:2,name:"Sport",item:x(g,"/sport/")},{"@type":"ListItem",position:3,name:a,item:x(g,n)}]};return e.jsxs(e.Fragment,{children:[e.jsx(y,{title:`${a} | Betsquare`,description:l,canonical:n}),e.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(c)}}),e.jsx(b,{}),e.jsxs("main",{className:"min-h-screen bg-background",children:[e.jsx("section",{className:"bg-navy py-12 md:py-16",children:e.jsxs("div",{className:"container",children:[e.jsx("nav",{"aria-label":"Breadcrumb",className:"mb-4 text-sm text-primary-foreground/70",children:e.jsxs("ol",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("li",{children:e.jsx(u,{to:"/",className:"hover:text-primary-foreground",children:"Home"})}),e.jsx("li",{"aria-hidden":!0,children:"/"}),e.jsx("li",{children:e.jsx(u,{to:"/sport/",className:"hover:text-primary-foreground",children:"Sport"})}),e.jsx("li",{"aria-hidden":!0,children:"/"}),e.jsx("li",{className:"text-primary-foreground",children:a})]})}),e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-primary-foreground mb-3",children:a}),e.jsx("p",{className:"text-primary-foreground/70 max-w-2xl mx-auto",children:l})]})]})}),e.jsx("section",{className:"container py-10",children:o?e.jsx("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:Array.from({length:6}).map((t,d)=>e.jsx(v,{className:"h-72 rounded-xl"},d))}):i?.length?e.jsx("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:i.map(t=>e.jsxs(u,{to:_(t),className:"group bg-card border border-border rounded-xl overflow-hidden hover:shadow-lg transition-shadow",children:[t.featured_image_url&&e.jsx("div",{className:"aspect-video overflow-hidden",children:e.jsx("img",{src:t.featured_image_url,alt:t.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300",loading:"lazy",width:400,height:225})}),e.jsxs("div",{className:"p-5",children:[e.jsx("h2",{className:"font-semibold text-foreground group-hover:text-primary transition-colors line-clamp-2 mb-2",children:t.title}),t.intro_text&&e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mb-3",children:t.intro_text}),e.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[e.jsx(S,{className:"h-3.5 w-3.5"}),e.jsx("span",{children:H(t.published_at)})]})]})]},t.id))}):e.jsx("p",{className:"text-center text-muted-foreground py-16",children:"Geen artikelen gevonden."})})]}),e.jsx(N,{})]})}function z(){return e.jsx(h,{subHub:"formule-1",title:"Formule 1",description:"Alle Formule 1 artikelen, analyses en odds: van Max Verstappen tot starttijden, sprintraces en seizoensoverzichten.",canonical:"/sport/formule-1/"})}function D(){return e.jsx(h,{subHub:"eredivisie",title:"Eredivisie",description:"Alle Eredivisie artikelen: topscorers, salarissen, blessures, begrotingen en clubanalyses van Ajax tot PSV en Feyenoord.",canonical:"/sport/eredivisie/"})}export{D as EredivisieHub,z as Formule1Hub,h 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.