PageSourceSearch

https://www.azfanpage.nl/_next/static/immutable/chunks/2br4afm4cmdxw.js

js azfanpage.nl collected 2026-10-02 13:15:54 UTC 27,282 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,71689,e=>{"use strict";let t=(0,e.i(75254).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],71689)},63059,e=>{"use strict";let t=(0,e.i(75254).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,t],63059)},69638,e=>{"use strict";let t=(0,e.i(75254).default)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);e.s(["CheckCircle",0,t],69638)},78917,e=>{"use strict";let t=(0,e.i(75254).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",0,t],78917)},14764,e=>{"use strict";let t=(0,e.i(75254).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);e.s(["Send",0,t],14764)},65254,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(22016),r=e.i(14764),n=e.i(31278),l=e.i(69638),o=e.i(75254);let i=(0,o.default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);var d=e.i(78917);let c=(0,o.default)("pen-line",[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);var m=e.i(79334),h=e.i(31091);let u=(0,o.default)("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]),p=(0,o.default)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);var g=e.i(71689),x=e.i(19455);let f=[{key:"redactie",label:"Redactie / tip insturen",description:"Nieuwstip, correctie of inhoudelijke vraag",icon:m.Newspaper},{key:"meeschrijven",label:"Meeschrijven als redacteur",description:"Bijdragen als schrijver of social media specialist",icon:c},{key:"sponsoring",label:"Sponsoring & adverteren",description:"Samenwerking, advertorial of partnerschap",icon:h.Megaphone},{key:"technisch",label:"Technisch probleem",description:"Bug, fout op de website of forum",icon:u},{key:"clubvraag",label:"Vraag aan AZ (de club)",description:"Kaartverkoop, seizoenkaarten, merchandise",icon:i},{key:"overig",label:"Overig",description:"Alles wat niet in bovenstaande past",icon:p}];function j(){return(0,t.jsx)("div",{className:"rounded-none p-6 space-y-4",style:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))"},children:(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(i,{className:"w-6 h-6 flex-shrink-0 mt-0.5",style:{color:"#f59e0b"}}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("h2",{className:"text-lg md:text-xl font-semibold",style:{color:"hsl(var(--foreground))"},children:"Je zoekt AZ Alkmaar, niet AZFanpage"}),(0,t.jsx)("p",{className:"leading-relaxed",style:{color:"hsl(var(--foreground) / 0.85)"},children:"AZFanpage is een onafhankelijke supporterssite en heeft geen band met AZ Alkmaar. Wij kunnen je niet helpen met kaartverkoop, seizoenkaarten, merchandise, stadionbezoek of andere clubzaken."}),(0,t.jsx)("p",{className:"leading-relaxed",style:{color:"hsl(var(--foreground) / 0.85)"},children:"Neem voor deze vragen rechtstreeks contact op met AZ:"}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-3",children:[(0,t.jsxs)("a",{href:"mailto:[email protected]",className:"inline-flex items-center gap-1.5 px-4 py-2 rounded-lg text-sm font-medium transition-colors",style:{backgroundColor:"hsl(var(--primary))",color:"white"},children:[(0,t.jsx)(r.Send,{className:"w-3.5 h-3.5"}),"[email protected]"]}),(0,t.jsxs)("a",{href:"https://www.az.nl/contact",target:"_blank",rel:"noopener",className:"inline-flex items-center gap-1.5 px-4 py-2 rounded-lg text-sm font-medium transition-colors",style:{backgroundColor:"hsl(var(--muted))",color:"hsl(var(--foreground))"}
1,children:[(0,t.jsx)(d.ExternalLink,{className:"w-3.5 h-3.5"}),"az.nl/contact"]})]})]})]})})}function v(){return(0,t.jsx)("div",{className:"rounded-lg p-4 mb-4",style:{backgroundColor:"hsla(var(--primary), 0.06)",border:"1px solid hsla(var(--primary), 0.15)",color:"hsl(var(--foreground))"},children:(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(c,{className:"w-5 h-5 flex-shrink-0 mt-0.5",style:{color:"hsl(var(--primary))"}}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{className:"font-medium",children:"Leuk dat je wilt meeschrijven!"}),(0,t.jsx)("p",{style:{color:"hsl(var(--muted-foreground))"},children:"Vertel ons iets over jezelf: wat is je band met AZ, waar wil je aan bijdragen (wedstrijdverslagen, achtergronden, columns, social media), en heb je eerder geschreven voor een site of blog?"})]})]})})}function y(){return(0,t.jsxs)("div",{className:"space-y-4 mb-4",children:[(0,t.jsxs)("div",{className:"rounded-lg p-4",style:{backgroundColor:"hsla(var(--primary), 0.06)",border:"1px solid hsla(var(--primary), 0.15)",color:"hsl(var(--foreground))"},children:[(0,t.jsx)("p",{className:"mb-2",children:"Overweeg je een samenwerking met AZFanpage? Bekijk dan eerst onze sponsorpagina met alle mogelijkheden en voorwaarden."}),(0,t.jsxs)(s.default,{href:"/adverteren",className:"inline-flex items-center gap-1.5 font-medium hover:underline",style:{color:"hsl(var(--primary))"},children:["Bekijk mogelijkheden",(0,t.jsx)(d.ExternalLink,{className:"w-3.5 h-3.5"})]})]}),(0,t.jsx)("div",{className:"rounded-lg p-4",style:{backgroundColor:"hsl(var(--destructive) / 0.06)",border:"1px solid hsl(var(--destructive) / 0.15)"},children:(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(i,{className:"w-5 h-5 flex-shrink-0 mt-0.5",style:{color:"hsl(var(--destructive))"}}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium text-sm mb-1",style:{color:"hsl(var(--foreground))"},children:"Wij werken niet samen met casino's, goksites of crypto-partijen"}),(0,t.jsx)("p",{className:"text-sm",style:{color:"hsl(var(--muted-foreground))"},children:"Verzoeken voor gesponsorde artikelen of linkplaatsingen vanuit de gokindustrie, crypto of aanverwante sectoren worden niet in behandeling genomen. Stuur hier a.u.b. geen bericht over."})]})]})})]})}function b(){return(0,t.jsxs)("div",{className:"text-center space-y-4 py-8",children:[(0,t.jsx)(l.CheckCircle,{className:"h-12 w-12 mx-auto",style:{color:"hsl(var(--primary))"}}),(0,t.jsx)("h2",{className:"text-lg md:text-xl font-semibold",style:{color:"hsl(var(--foreground))"},children:"Bericht verzonden"}),(0,t.jsx)("p",{className:"max-w-md mx-auto",style:{color:"hsl(var(--foreground) / 0.85)"},children:"Bedankt voor je bericht. Je ontvangt een bevestiging per e-mail. Let op: AZF
1anpage is een vrijwilligersproject, dus het kan even duren voor je een inhoudelijke reactie krijgt."}),(0,t.jsx)(s.default,{href:"/",className:"inline-block text-sm hover:underline",style:{color:"hsl(var(--primary))"},children:"Terug naar de homepage"})]})}e.s(["ContactForm",0,function({initialSubject:e,embedded:s}){let[l,o]=(0,a.useState)(()=>e&&f.some(t=>t.key===e)?e:""),[i,d]=(0,a.useState)(""),[c,m]=(0,a.useState)(""),[h,u]=(0,a.useState)(""),[p,k]=(0,a.useState)(""),[N]=(0,a.useState)(()=>Date.now()),[w,S]=(0,a.useState)(s??!1),[C,z]=(0,a.useState)(!1),[M,_]=(0,a.useState)(""),[A,T]=(0,a.useState)(!1),$=f.find(e=>e.key===l)?.label||"",E=""!==l&&"clubvraag"!==l,P=E&&i.trim()&&c.trim()&&h.trim()&&w&&!C,L=async e=>{e.preventDefault(),_(""),z(!0);try{let e=await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({subject:$,subjectKey:l,name:i.trim(),email:c.trim(),message:h.trim(),notClub:w,website:p,t:N})}),t=await e.json();if(!e.ok)return void _(t.error||"Er ging iets mis.");T(!0)}catch{_("Verbinding mislukt. Probeer het later opnieuw.")}finally{z(!1)}};return(0,t.jsx)(t.Fragment,{children:A?(0,t.jsx)(b,{}):l?(0,t.jsxs)("form",{onSubmit:L,className:"space-y-6",children:[!s&&(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>{o(""),_("")},className:"flex items-center gap-1 text-sm font-medium transition-colors",style:{color:"hsl(var(--primary))"},children:[(0,t.jsx)(g.ArrowLeft,{className:"w-4 h-4"}),"Terug"]}),(0,t.jsx)("span",{className:"text-sm",style:{color:"hsl(var(--muted-foreground))"},children:"|"}),(0,t.jsx)("span",{className:"text-sm font-medium",style:{color:"hsl(var(--foreground))"},children:$})]}),"clubvraag"===l&&(0,t.jsx)(j,{}),"sponsoring"===l&&!s&&(0,t.jsx)(y,{}),"meeschrijven"===l&&(0,t.jsx)(v,{}),E&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"name",className:"block text-sm font-medium mb-1.5",style:{color:"hsl(var(--foreground))"},children:"Naam"}),(0,t.jsx)("input",{id:"name",type:"text",value:i,onChange:e=>d(e.target.value),required:!0,autoComplete:"name",className:"w-full px-3 py-2.5 rounded-lg text-sm outline-none transition-colors",style:{backgroundColor:"hsl(var(--card))",color:"hsl(var(--foreground))",border:"1px solid hsl(var(--border))"}})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium mb-1.5",style:{color:"hsl(var(--foreground))"},children:"E-mailadres"}),(0,t.jsx)("input",{id:"email",type:"email",value:c,onChange:e=>m(e.target.value),required:!0,autoComplete:"email",className:"w-full px-3 py-2.5 rounded-lg text-sm outline-none transition-colors",style:{backgroundColor:"hsl(var(--card))",color:"hsl(var(--foreground))",border:"1px solid hsl(var(--border))"}})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"message",className:"block text-sm font-medium mb-1.5",style:{color:"hsl(var(--foreground))"},children:"Bericht"}),(0,t.jsx)("textarea",{id:"message",value:h,onChange:e=>u(e.target.value),required:!0,rows:6,className:"w-full px-3 py-2.5 rounded-lg text-sm outline-none transition-colors resize-y",style:{backgroundColor:"hsl(var(--card))",color:"hsl(var(--foreground))",border:"1px solid hsl(var(--border))"}})]}),(0,t.jsx)("div",{className:"hidden","aria-hidden":"true",children:(0,t.jsx)("input",{type:"text",name:"website",tabIndex:-1,autoComplete:"off",value:p,onChange:e=>k(e.target.value)})}),!s&&(0,t.jsxs)("label",{className:"flex items-start gap-3 cursor-pointer select-none",htmlFor:"not-club",children:[(0,t.jsx)("input",{id:"not-club",type:"checkbox",checked:w,onChange:e=>S(e.target.checked),className:"mt-0.5 rounded",style:{accentColor:"#db0030"}}),(0,t.jsx)("span",{className:"text-sm leading-relaxed",style:{color:"hsl(var(--muted-foreground))"},children:"Ik begrijp dat AZFanpage een onafhankelijke supporterssite is en niet verbonden aan AZ Alkmaar. Vragen over de club worden niet beantwoord."})]}),M&&(0,t.jsx)("p",{className:"text-sm",style:{color:"#ef4444"},children:M}),(0,t.jsxs)(x.Button,{type:"submit",disabled:!P,className:"gap-2",style:{backgroundColor:"hsl(var(--primary))",color:"white",opacity:P?1:.5},children:[C?(0,t.jsx)(n.Loader2,{className:"h-4 w-4 animate-spin"}):(0,t.jsx)(r.Send,{className:"h-4 w-4"}),"Verstuur bericht"]})]})]}):(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl md:text-2xl font-headline font-bold mb-4",style:{color:"hsl(var(--foreground))"},children:"Waar gaat je bericht over?"}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:f.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>{o(e.key),_("")},className:"flex items-start gap-3 p-4 rounded-none text-left transition-all",style:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))"},onMouseEnter:e=>{e.currentTarget.style.borderColor="hsl(var(--primary))",e.currentTarget.style.backgroundColor="hsla(var(--primary), 0.04)"},onMouseLeave:e=>{e.currentTarget.style.borderColor="hsl(var(--border))",e.currentTarget.style.backgroundColor="hsl(var(--card))"},children:[(0,t.jsx)(e.icon,{className:"w-5 h-5 flex-shrink-0 mt-0.5",style:{color:"hsl(var(--primary))"}}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-semibold text-sm",style:{color:"hsl(var(--foreground))"},children:e.label}),(0,t.jsx)("p",{className:"text-sm mt-0.5",style:{color:"hsl(var(--muted-foreground))"},children:e.description})]})]},e.key))})]})})}],65254)},54988,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(22016);
1let r=(0,e.i(75254).default)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]);var n=e.i(24684);e.s(["MostReadWidget",0,function({limit:e=5}){let[l,o]=(0,a.useState)([]),[i,d]=(0,a.useState)(!0);return((0,a.useEffect)(()=>{let t=!0;return(0,n.fetchMostRead)(e).then(e=>{t&&o(e)}).finally(()=>{t&&d(!1)}),()=>{t=!1}},[e]),i||0!==l.length)?(0,t.jsxs)("div",{className:"card-premium p-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,t.jsx)(r,{className:"w-4 h-4 text-az-red"}),(0,t.jsx)("span",{className:"text-sm font-semibold text-foreground font-headline",children:"Meest gelezen"})]}),i?(0,t.jsx)("div",{className:"space-y-3",children:Array.from({length:3}).map((e,a)=>(0,t.jsxs)("div",{className:"flex gap-2.5 items-start",children:[(0,t.jsx)("div",{className:"w-4 h-4 bg-muted rounded-sm flex-shrink-0"}),(0,t.jsx)("div",{className:"h-3 bg-muted rounded w-full"})]},a))}):(0,t.jsx)("ol",{className:"space-y-2.5",children:l.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsxs)(s.default,{href:`/${e.slug}`,className:"group flex gap-2.5 items-start",children:[(0,t.jsx)("span",{className:"text-[15px] font-bold leading-none text-az-red/70 w-4 flex-shrink-0 pt-0.5 tabular-nums",children:a+1}),(0,t.jsx)("span",{className:"text-[13px] leading-snug text-foreground line-clamp-2 group-hover:text-az-red transition-colors",children:e.title})]})},e.id))})]}):null}],54988)},67285,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(94983),r=e.i(22016),n=e.i(24684);function l({avatarUrl:e,name:s}){let[r,n]=(0,a.useState)(!1);return(0,t.jsxs)("span",{className:"relative w-5 h-5 rounded-full overflow-hidden flex items-center justify-center text-[9px] font-semibold flex-shrink-0",style:{backgroundColor:"hsl(var(--primary) / 0.1)",color:"hsl(var(--primary))"},"aria-hidden":"true",children:[(0,t.jsx)("span",{children:s.split(" ").map(e=>e[0]).join("").substring(0,2).toUpperCase()}),!!e&&!r&&(0,t.jsx)("img",{src:e,alt:"",className:"absolute inset-0 w-full h-full object-cover",onError:()=>n(!0)})]})}e.s(["RecentCommentsWidget",0,function({limit:e=5}){let[o,i]=(0,a.useState)([]),[d,c]=(0,a.useState)(!0),[m,h]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{let t=!1;return(async()=>{try{let a=await (0,n.fetchRecentComments)(e);t||i(a)}catch{t||h(!0)}finally{t||c(!1)}})(),()=>{t=!0}},[e]),d)?(0,t.jsxs)("div",{className:"card-premium p-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,t.jsx)(s.MessageCircle,{className:"w-4 h-4 text-az-red"}),(0,t.jsx)("span",{className:"text-sm font-semibold text-foreground",children:"Laatste reacties"})]}),(0,t.jsx)("div",{className:"space-y-3",children:[1,2,3,4,5].map(e=>(0,t.jsxs)("div",{className:"animate-pulse pb-3 border-b border-border",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-1.5",children:[(0,t.jsx)("div",{className:"w-5 h-5 bg-muted rounded-full"}),(0,t.jsx)("div",{className:"h-3 bg-muted rounded w-20"})]}),(0,t.jsx)("div",{className:"h-3 bg-muted rounded w-full mb-1.5"}),(0,t.jsx)("div",{className:"h-3 bg-muted rounded w-2/3"})]},e))})]}):m||!o.length?null:(0,t.jsxs)("div",{className:"card-premium p-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,t.jsx)(s.MessageCircle,{className:"w-4 h-4 text-az-red"}),(0,t.jsx)("span",{className:"text-sm font-semibold text-foreground",children:"Laatste reacties"})]}),(0,t.jsx)("div",{className:"space-y-3",children:o.map((e,a)=>{var s;let n,i,d,c,m;return(0,t.jsx)(r.default,{href:`/${e.postSlug}#reacties`,className:"block group",children:(0,t.jsxs)("div",{className:`pb-3 ${a<o.length-1?"border-b border-border":""}`,children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,t.jsx)(l,{avatarUrl:e.avatarUrl,name:e.authorName}),(0,t.jsx)("span",{className:"text-[11px] font-medium text-foreground",children:e.authorName}),(0,t.jsx)("span",{className:"text-muted-foreground/40",children:"·"}),(0,t.jsx)("span",{className:"text-[11px] text-muted-foreground",suppressHydrationWarning:!0,children:(n=new Date(e.date),d=Math.floor((i=new Date().getTime()-n.getTime())/6e4),c=Math.floor(i/36e5),m=Math.floor(i/864e5),d<1?"zojuist":d<60?`${d} min geleden`:c<24?`${c} uur geleden`:1===m?"1 dag geleden":m<7?`${m} dagen geleden`:m<14?"1 week geleden":`${Math.floor(m/7)} weken geleden`)})]}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground line-clamp-2 leading-snug",children:(s=e.content).length<=100?s:s.substring(0,100).replace(/\s+\S*$/,"")+"…"}),(0,t.jsx)("p",{className:"text-[11px] text-az-red mt-1 group-hover:underline line-clamp-1",children:e.postTitle})]})},e.id)})})]})}])},83846,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(22016),r=e.i(42009),n=e.i(72520),l=e.i(43531),o=e.i(31544),i=e.i(74342);e.s(["SpelerVanDeWedstrijdWidget",0,({initieel:e=null})=>{let[d,c]=(0,a.useState)(e);if((0,a.useEffect)(()=>{let e=!0,t=(0,i.svdwVoterKey)();return fetch(`/api/svdw/actief${t?`?voter=${t}`:""}`,{cache:"no-store"}).then(e=>e.json()).then(t=>e&&c(t)).catch(()=>e&&c({actief:!1})),()=>{e=!1}},[]),!d?.actief||!d.kandidaten?.length)return null;let m=null!=d.eigenStem,h=[...d.kandidaten].sort((e,t)=>
1t.stemmen-e.stemmen).slice(0,3),u=d.kandidaten.find(e=>e.id===d.eigenStem);return(0,t.jsxs)("div",{className:"card-premium p-3",children:[(0,t.jsxs)("div",{className:"mb-3 flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(r.Award,{className:"h-4 w-4 text-az-red"}),(0,t.jsx)("span",{className:"font-headline text-sm font-semibold text-foreground",children:"Speler van de Wedstrijd"})]}),(0,t.jsxs)(s.default,{href:"/speler-van-het-jaar",className:"link-underline flex items-center gap-1 text-xs text-az-red",children:["Stand",(0,t.jsx)(n.ArrowRight,{className:"h-3 w-3"})]})]}),(0,t.jsxs)("div",{className:"mb-3 flex items-center justify-center gap-2 rounded-md bg-muted/50 px-2 py-2",children:[(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 items-center justify-end gap-1.5",children:[(0,t.jsx)("span",{className:"truncate text-xs font-medium",children:d.home?.name}),d.home?.logo&&(0,t.jsx)("img",{src:d.home.logo,alt:d.home.name,className:"h-5 w-5 shrink-0 object-contain"})]}),(0,t.jsxs)("span",{className:"shrink-0 font-mono text-sm font-semibold tabular-nums",children:[d.goals?.home,"-",d.goals?.away]}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 items-center gap-1.5",children:[d.away?.logo&&(0,t.jsx)("img",{src:d.away.logo,alt:d.away.name,className:"h-5 w-5 shrink-0 object-contain"}),(0,t.jsx)("span",{className:"truncate text-xs font-medium",children:d.away?.name})]})]}),m?(0,t.jsxs)(t.Fragment,{children:[u&&(0,t.jsxs)("p",{className:"mb-2 flex items-center gap-1.5 text-xs text-muted-foreground",children:[(0,t.jsx)(l.Check,{className:"h-3 w-3 shrink-0 text-az-red"}),"Jouw stem: ",(0,t.jsx)("span",{className:"font-medium text-foreground",children:(0,o.displayName)(u.naam)})]}),(0,t.jsx)("ol",{className:"mb-3 space-y-1",children:h.map((e,a)=>(0,t.jsxs)("li",{className:"flex items-center justify-between text-sm",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)("span",{className:"w-3 shrink-0 font-mono text-xs text-muted-foreground tabular-nums",children:a+1}),(0,t.jsx)("span",{className:`truncate ${e.id===d.eigenStem?"text-az-red":""}`,children:(0,o.displayName)(e.naam)})]}),(0,t.jsxs)("span",{className:"ml-2 shrink-0 font-mono text-xs tabular-nums text-muted-foreground",children:[e.aandeel,"%"]})]},e.id))}),(0,t.jsxs)(s.default,{href:"/speler-van-het-jaar",className:"link-underline flex items-center gap-1 text-xs text-az-red",children:["Alle uitslagen",(0,t.jsx)(n.ArrowRight,{className:"h-3 w-3"})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(s.default,{href:"/speler-van-het-jaar",className:"flex items-center justify-center gap-2 rounded-md bg-az-red px-3 py-2.5 text-sm font-semibold text-white transition-colors hover:bg-az-red/90",children:["Breng je stem uit",(0,t.jsx)(n.ArrowRight,{className:"h-4 w-4"})]}),(0,t.jsxs)("p",{className:"mt-2 text-[11px] text-muted-foreground",children:[d.totaal?`${d.totaal} supporters gingen je voor. `:"","Stemmen kan zonder account."]})]})]})}])},24684,e=>{"use strict";var t=e.i(52455);let a="https://cms.azfanpage.nl/wp-json/wp/v2";function s(e){return e&&/gravatar\.com\/avatar\//i.test(e)?/([?&]d=)[^&]*/i.test(e)?e.replace(/([?&]d=)[^&]*/i,"$1blank"):e+(e.includes("?")?"&":"?")+"d=blank":e}async function r(e,n=1,l=20,o=!1){let i=new URLSearchParams({post:String(e),page:String(n),per_page:String(l),orderby:"date_gmt",order:"asc",_fields:"id,post,parent,author,author_name,author_url,date,content,author_avatar_urls,meta,author_social"});o&&i.set("verstijd",String(Date.now()));let d=await fetch(`${a}/comments?${i}`,{cache:"no-store"});if(!d.ok)throw Error(`Comments API error: ${d.status}`);return{comments:(await d.json()).map(e=>({id:e.id,postId:e.post,parentId:e.parent||null,authorId:e.author||0,authorName:(0,t.decodeHtmlEntities)(e.author_name||"Anoniem"),authorUrl:e.author_url||"",avatarUrl:s(e.author_avatar_urls?.["48"]||e.author_avatar_urls?.["24"]||""),date:e.date,content:e.content?.rendered||"",edited:!!e.meta?.azfp_edited,authorSocial:e.author_social||null})),totalComments:Number(d.headers.get("X-WP-Total"))||0,totalPages:Number(d.headers.get("X-WP-TotalPages"))||0}}async function n(e,t,a,s,r){let n={postId:e,content:t};a&&(n.parentId=a),r&&(n.notifyReplies=!0),s&&(n.authorName=s.authorName,n.authorEmail=s.authorEmail,n.website=s.website??"",n.elapsedMs=s.elapsedMs??0);let l=await fetch("/api/comments",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!l.ok)throw Error((await l.json().catch(()=>({}))).message||`Post comment error: ${l.status}`);return await l.json()}async function l(e){try{let t=await fetch(`/api/comments/votes?post_id=${e}`);if(!t.ok)return{};return await t.json()}catch{return{}}}async function o(e,t){let a=await fetch("/api/comments/votes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({comment_id:e,vote:t})});if(!a.ok)throw Error((await a.json().catch(()=>({}))).message||"Stem niet gelukt.");return await a.json()}async function i(e,t){let a=await fetch(`/api/comments/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:t})});if(!a.ok)throw Error((await a.json().catch(()=>({}))).message||"Bewerken mislukt.");return await a.json()}async function d(e){let t=await fetch(`/api/comments/${e}`,{method:"DELETE"});if(!t.ok)throw Error((await t.json().catch(()=>({}))).message||"Verwijderen mislukt.")}async function c(e=5){try{let r=new URLSearchParams({per_page:String(e),orderby:"date_gmt",order:"desc",status:"approve",_fields:"id,post,author_name,author_avatar_urls,content,date"}),n=await fetch(`${a}/comments?${r}`,{cache:"no-store"});if(!n.ok)return[];let l=await n.json();if(!l.length)return[];let o=[...new Set(l.map(e=>e.post))],i=new URLSearchParams({include:o.join(","),_fields:"id,title,slug",per_page:String(o.length)}),d=await fetch(`${a}/posts?${i}`,{cache:"no-store"}),c={};if(d.ok)for(let e of(await d.json()))c[e.id]={title:(0,t.decodeHtmlEntities)(e.title?.rendered||e.title||""),slug:e.slug};return l.filter(e=>c[e.post]).map(e=>({id:e.id,authorName:(0,t.decodeHtmlEntities)(e.author_name||"Anoniem"),avatarUrl:s(e.author_avatar_urls?.["48"]||e.author_avatar_urls?.["24"]||""),content:(0,t.decodeHtmlEntities)((e.content?.rendered||"").replace(/<[^>]+>/g,"").trim()),date:e.date,postId:e.post,postTitle:c[e.post].title,postSlug:c[e.post].slug}))}catch{return[]}}async function m(e=1,s=8,r,n){let l=new URLSearchParams({page:String(e),per_page:String(s),_embed:"true"});r&&l.set("categories",r),n&&l.set("search",n);let o=await fetch(`${a}/posts?${l}`,{cache:"no-store"});return o.ok?{posts:(await o.json()).map(e=>({id:e.id,title:(0,t.decodeHtmlEntities)(e.title?.rendered||e.title||""),slug:e.slug,excerpt:(0,t.decodeHtmlEntities)(e.excerpt?.rendered||e.excerpt||""),date:e.date,featured_media_url:e.featured_image_url||e._embedded?.["wp:featuredmedia"]?.[0]?.source_url||"",author:e._embedded?.author?.[0]?{name:e._embedded.author[0].name}:{name:"AZFanpage"},categories:(e._embedded?.["wp:term"]?.[0]||[]).map(e=>({id:e.id,name:e.name}))})),totalPages:Number(o.headers.get("X-WP-TotalPages"))||0,totalPosts:Number(o.headers.get("X-WP-Total"))||0}:(console.error(`WordPress API error: ${o.status}`),{posts:[],totalPages:0,totalPosts:0})}async function h(e=5){try{let t=await fetch(`https://cms.azfanpage.nl/wp-json/azfp/v1/most-read?limit=${e}&days=7`,{cache:"no-store"});if(!t.ok)return[];let a=await t.json();return Array.isArray(a)?a:[]}catch{return[]}}e.s(["castCommentVote",0,o,"deleteComment",0,d,"editComment",0,i,"fetchArticlesClient",0,m,"fetchComment
1Votes",0,l,"fetchCommentsClient",0,r,"fetchMostRead",0,h,"fetchRecentComments",0,c,"postComment",0,n])},52455,e=>{"use strict";e.s(["decodeHtmlEntities",0,function(e){if(!e)return"";let t=e.replace(/&#x([0-9a-fA-F]+);/g,(e,t)=>{let a=parseInt(t,16);return a>=0&&a<=1114111?String.fromCodePoint(a):e}).replace(/&#(\d+);/g,(e,t)=>{let a=parseInt(t,10);return a>=0&&a<=1114111?String.fromCodePoint(a):e});return Object.entries({"&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&nbsp;":" ","&hellip;":"…","&lsquo;":"‘","&rsquo;":"’","&ldquo;":"“","&rdquo;":"”","&ndash;":"–","&mdash;":"—","&eacute;":"é","&euml;":"ë","&iuml;":"ï","&ouml;":"ö","&uuml;":"ü","&agrave;":"à"}).forEach(([e,a])=>{t=t.split(e).join(a)}),t.split("&amp;").join("&")},"formatRelativeTime",0,function(e){let t=new Date(e),a=Math.floor(Math.max(0,new Date().getTime()-t.getTime())/864e5);return 0===a?"vandaag":1===a?"1 dag geleden":a<7?`${a} dagen geleden`:a<14?"1 week geleden":a<30?`${Math.floor(a/7)} weken geleden`:a<60?"1 maand geleden":`${Math.floor(a/30)} maanden geleden`}])}]);

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.