1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7691],{1907:(e,t,a)=>{a.d(t,{toast:()=>i}),a(95155),a(12115);let l=null,r=new Set,n=null,s=()=>{r.forEach(e=>e(l))},i={success:function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5e3;n&&(clearTimeout(n),n=null),l={type:"success",description:e,title:t,duration:a},s(),a>0&&(n=setTimeout(()=>{l=null,s(),n=null},a))},error:function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5e3;n&&(clearTimeout(n),n=null),l={type:"error",description:e,title:t,duration:a},s(),a>0&&(n=setTimeout(()=>{l=null,s(),n=null},a))},warning:function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5e3;n&&(clearTimeout(n),n=null),l={type:"warning",description:e,title:t,duration:a},s(),a>0&&(n=setTimeout(()=>{l=null,s(),n=null},a))},info:function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5e3;n&&(clearTimeout(n),n=null),l={type:"info",description:e,title:t,duration:a},s(),a>0&&(n=setTimeout(()=>{l=null,s(),n=null},a))},dismiss:()=>{n&&(clearTimeout(n),n=null),l=null,s()}}},14629:(e,t,a)=>{a.d(t,{Ay:()=>r});var l=a(59887);l.eg.NO,l.eg.SM,l.eg.MD,l.eg.lg,l.eg.NO,l.eg.SM,l.eg.MD,l.eg.lg,l.eg.NO,l.eg.SM,l.eg.MD,l.eg.lg,l.eg.NO,l.eg.SM,l.eg.MD,l.eg.lg,l.eg.XS,l.eg.SM,l.eg.MD,l.eg.lg;let r=new Map([[l.eg.NO,"rounded-none"],[l.eg.SM,"rounded"],[l.eg.MD,"rounded-lg"],[l.eg.lg,"rounded-2xl"],[l.eg.FULL,"rounded-full"]]);l.eg.NO,l.eg.SM,l.eg.MD,l.eg.lg,l.eg.FULL},16052:(e,t,a)=>{a.d(t,{default:()=>o});var l=a(95155),r=a(12115),n=a(66579);let s=e=>{let{children:t,show:a,className:n,style:s}=e,[i,o]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{a&&o(!0)},[a]),i&&(0,l.jsx)("div",{style:s,className:"dropdown-content ".concat(n," ").concat(a?"fade-in":"fade-out"),onAnimationEnd:()=>{a||o(!1)},children:t})};var i=a(56844);let o=e=>{var t;let{route:a}=e,[o,c]=(0,r.useState)(!1),[d,u]=(0,r.useState)(null),[h,m]=(0,r.useState)({x:0,y:0}),x=(0,r.useRef)(null),g=()=>c(!1),p=()=>{var e;let t=null==(e=x.current)?void 0:e.getBoundingClientRect();m({x:(null==t?void 0:t.left)||0,y:(null==t?void 0:t.bottom)||0}),c(!0)};return(0,r.useEffect)(()=>{var e;let t=null==(e=x.current)?void 0:e.getBoundingClientRect();m({x:(null==t?void 0:t.left)||0,y:(null==t?void 0:t.bottom)||0})},[]),(0,l.jsxs)("div",{ref:x,className:"flex cursor-default content-center items-center gap-1.5 py-3 w-max",onMouseLeave:g,onMouseOver:p,children:[a.url?(0,l.jsx)(n.A,{classes:"inline-flex min-h-6 w-full items-center",...a}):(0,l.jsx)(l.Fragment,{children:a.name}),(0,l.jsx)("span",{className:"text-[10px] duration-300",children:(0,l.jsx)("button",{type:"button","aria-label":(0,i.p)("common:toggleSubmenu"),"aria-expanded":o,onClick:o?g:p,className:"flex h-6 w-6 items-center justify-center",children:o?"â²":"â¼"})}),(0,l.jsx)(s,{style:{left:h.x,top:h.y},className:"absolute z-40 flex w-fit min-w-[170px] max-h-[400px] overflow-y-auto origin-top-right flex-col rounded-b-lg border border-gray-200 dark:border-gray-500 bg-white shadow-lg dark:bg-zinc-900 md:w-fit",show:o,children:(0,l.jsx)("ul",{className:"flex flex-col py-1",children:null==a||null==(t=a.children)?void 0:t.map((e,t)=>{var a,s;let o=null!=(a=e.children)?a:[],c=o.length>0,h=null!=(s=e.id)?s:"".concat(e.name,"-").concat(t),m=d===h;return(0,l.jsxs)("li",{className:"flex flex-col text-black transition-all dark:text-white",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between hover:bg-primary/10 py-2",children:[e.url?(0,l.jsx)(n.A,{classes:"w-full px-4",...e},e.id):(0,l.jsx)("span",{className:"flex-1 px-4",children:e.name}),c&&(0,l.jsx)("button",{type:"button",onClick:()=>u(e=>e===h?null:h),className:"pr-4 text-[10px] text-black transition-transform dark:text-white","aria-expanded":m,"aria-label":(0,i.p)("common:toggleSubmenu"),children:m?"â²":"â¼"})]}),c&&m&&(0,l.jsx)("div",{className:"flex flex-col text-sm text-black dark:text-white",children:o.map((e,t)=>{var a;return(0,l.jsx)(r.Fragment,{children:e.url?(0,l.jsx)(n.A,{classes:"w-full py-1.5 px-4 hover:bg-primary/10 transition-all duration-300 ",...e}):(0,l.jsx)("span",{className:"w-full py-1.5 px-4 hover:bg-primary/10 transition-all duration-300 ",children:e.name})},null!=(a=e.id)?a:"".concat(e.name,"-").concat(t))})})]},h)})})})]})}},19273:(e,t,a)=>{a.r(t),a.d(t,{default:()=>p});var l=a(95155),r=a(12115),n=a(59887),s=a(80127),i=a(94706),o=a(92129);let c=e=>{let{notification:{open_at:t,user_name:a,user_url:r,id:c,url:d,created_at:u,text:h},handleReadNotificationById:m,className:x=""}=e,g="cursor-pointer text-black hover:underline dark:text-white",p=(0,n.Zn)(u,!0);return(0,l.jsx)("div",{className:(0,o.cn)(null!==t?"bg-white dark:bg-zinc-800 font-semibold":"bg-gray-200 dark:bg-zinc-600 font-light","flex space-x-5 md:p-3 p-2",x),children:(0,l.jsxs)("div",{className:"flex gap-3",children:[(0,l.jsx)(s.A,{size:40}),(0,l.jsxs)("div",{className:"flex-1",children:[(0,l.jsxs)("div",{className:"mt-1 text-sm",children:[r?(0,l.jsx)(i.h,{style:{whiteSpace:"break-spaces"},className:"font-bold ".concat(g),href:"".concat(r),children:a}):(0,l.jsx)("span",{style:{whiteSpace:"break-spaces"},className:"font-bold text-black dark:text-white",children:a})," ",(0,l.jsxs)(i.h,{style:{whiteSpace:"break-spaces"},onClick:()=>m(c),className:"".concat(null===t?"font-bold":"font-normal"," ").concat(g),rel:"nofollow",href:d,children:[h," "]})]}),(0,l.jsx)("div",{className:"text-xs text-gray-500 dark:text-gray-400",children:p})]})]})})},d=()=>(0,l.jsx)("div",{className:"flex space-x-5 p-3 bg-white dark:bg-zinc-800",children:(0,l.jsxs)("div",{className:"flex gap-3 w-full",children:[(0,l.jsx)("div",{className:"w-10 h-10 rounded-full bg-gray-200 dark:bg-zinc-700 animate-pulse"}),(0,l.jsxs)("div",{className:"flex-1 mt-1",children:[(0,l.jsx)("div",{className:"h-4 w-full bg-gray-200 dark:bg-zinc-700 rounded animate-pulse mb-2"}),(0,l.jsx)("div",{className:"h-4 w-full bg-gray-200 dark:bg-zinc-700 rounded animate-pulse"}),(0,l.jsx)("div",{className:"mt-2 h-3 w-16 bg-gray-200 dark:bg-zinc-700 rounded animate-pulse"})]})]})});var u=a(77224),h=a(49499),m=a(61039),x=a(56844),g=a(1907);let p=e=>{let{labels:t}=e,[a,n]=(0,r.useState)(!1),{userData:s}=(0,h.Z2)(),{newNotificationsCount:o,handleReadAllNotifications:p,notifications:f,handleReadNotificationById:v,reloadNotifications:w,isLoading:y,paginate:b,hasMore:j}=(()=>{let[e,t]=(0,r.useState)([]),{userData:a,tenant:l}=(0,h.Z2)(),[n,s]=(0,r.useState)(0),[i,o]=(0,r.useState)(!1),[c,d]=(0,r.useState)(0),[u,p]=(0,r.useState)(!1),f=(0,r.useRef)(!1),v=(0,r.useRef)(0),w=async()=>{try{await fetch("".concat("https://service-api.nl/api/v2","/notifications/read-all"),{method:"PATCH",headers:(0,m.oO)()}),s(0)}catch(e){console.log(e)}finally{N()}};function y(e){document.title=document.title.replace(/^\(\d+\)\s/,""),e&&(document.title="(".concat(e,") ")+document.title)}let b=async()=>
1{if(!f.current){f.current=!0;try{var e;let a=v.current+1,l=await j(a),r=(null==l||null==(e=l.data)?void 0:e.notifications)||[];t(e=>e.concat(r)),l&&s(null==l?void 0:l.data.unopen),p(r.length>0),v.current=a,d(a)}catch(e){console.log(e)}finally{f.current=!1}}},j=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;o(!0);try{let t=new URL("".concat("https://service-api.nl/api/v2","/notifications"));t.searchParams.append("page",e.toString());let a=await fetch(t.toString(),{method:"GET",headers:(0,m.oO)()});if(401===a.status)return S(),{data:{notifications:[],unopen:0}};if(!a.ok)return{data:{notifications:[],unopen:0}};return await a.json()}catch(e){return console.log(e),{data:{notifications:[],unopen:0}}}finally{o(!1)}},N=async()=>{var e,a,l;let r=await j(0),n=(null==r||null==(e=r.data)?void 0:e.notifications)||[];v.current=0,d(0),t(n),p(n.length>0),s((null==r||null==(a=r.data)?void 0:a.unopen)||0),y((null==r||null==(l=r.data)?void 0:l.unopen)||0)},k=async e=>{await fetch("".concat("https://service-api.nl/api/v2","/notifications/").concat(e,"/read"),{method:"PATCH",headers:(0,m.oO)()})},S=async()=>{g.toast.error((0,x.p)("common:error.sessionExpired")),setTimeout(()=>{window.localStorage.removeItem("".concat(l,"-accessToken")),window.localStorage.removeItem("".concat(l,"-user")),window.location.reload()},3e3)};return(0,r.useEffect)(()=>{v.current=c},[c]),(0,r.useEffect)(()=>{a&&(N(),setTimeout(()=>(function(){var e,t;null==(t=window)||null==(e=t.EchoMultimirror)||e.channel("user-"+(null==a?void 0:a.id)+"-dagelijksestandaard.nl").notification(()=>{N(),s(n+1),y(n+1)})})(),2e3))},[a]),{isLoading:i,notifications:e,handleReadNotificationById:k,newNotificationsCount:n,reloadNotifications:N,handleReadAllNotifications:w,paginate:b,settingsRoute:"user/profile",hasMore:u}})();return(0,l.jsx)(l.Fragment,{children:s&&(0,l.jsxs)("div",{className:"relative items-center inline-block dark:text-gray-400",children:[(0,l.jsx)("button",{onClick:()=>{a||w(),n(!a)},"aria-label":t.notifications||"Notifications",className:"flex focus:outline-none ",children:(0,l.jsxs)("div",{className:"relative h-full",children:[(0,l.jsx)(u.zd,{className:"w-6 h-6"}),0!==o&&(0,l.jsx)("span",{className:"absolute px-1 text-sm text-white bg-red-600 rounded-lg -top-2",children:o})]})}),a&&(0,l.jsxs)("div",{className:"absolute -right-12 z-30 mt-2 w-[90vw] origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 dark:divide-gray-700 dark:bg-zinc-800 md:right-[0px] md:w-[500px]",children:[(0,l.jsxs)("div",{className:"flex justify-between md:p-4 p-2 text-black dark:text-white",children:[(0,l.jsx)("h4",{className:"font-bold max-md:text-sm",children:t.notifications}),(0,l.jsx)("div",{children:(null==f?void 0:f.length)!==0&&(0,l.jsx)("p",{className:"cursor-pointer text-primary dark:text-white hover:opacity-70 max-md:text-sm",onClick:()=>p(),children:t.mark_all_as_read})})]}),(0,l.jsx)("div",{className:"overflow-y-auto max-h-[500px]",children:y&&!f.length?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d,{}),(0,l.jsx)(d,{}),(0,l.jsx)(d,{})]}):f.length?f.map((e,t)=>(0,l.jsx)(c,{handleReadNotificationById:v,notification:e},t)):(0,l.jsx)("p",{style:{whiteSpace:"break-spaces"},className:"max-w-full p-4 text-sm text-gray-500 dark:text-gray-400",children:t.no_notifications})}),(0,l.jsxs)("div",{className:"flex justify-between md:p-4 p-2",children:[(0,l.jsx)("div",{children:j&&(null==f?void 0:f.length)!==0&&(0,l.jsx)("button",{onClick:b,disabled:y,className:"cursor-pointer text-primary dark:text-white hover:opacity-70 max-md:text-sm disabled:opacity-50",children:t.load_more})}),(0,l.jsx)(i.h,{className:"text-primary dark:text-white max-md:text-sm",href:"/user/profile",children:t.notifications_settings})]})]})]})})}},24936:(e,t,a)=>{a.r(t),a.d(t,{AvatarButton:()=>s});var l=a(95155),r=a(80127),n=a(49499);a(12115);let s=e=>{let{size:t=30,className:a,onClick:s}=e,{setShowAuthModal:i,userData:o}=(0,n.Z2)();return(0,l.jsx)("button",{className:"header__avatar","aria-label":"open modal",onClick:()=>{s?s():i(!0)},children:(0,l.jsx)(r.A,{size:t,url:o?null==o?void 0:o.image:void 0,className:a})})}},27723:(e,t,a)=>{a.r(t),a.d(t,{ImageWrapper:()=>i});var l=a(95155);let r=new(a(82322)).L("https://r.testifier.nl");function n(e){return e.replace(/\?+$/,"")}var s=a(15239);a(12115);let i=e=>{var t;let{alt:a="",...i}=e;return(null==(t=e.src)?void 0:t.includes("s3-newsifier.ams3.digitaloceanspaces.com"))?(0,l.jsx)(s.default,{...i,alt:a,fetchPriority:!0===i.priority?"high":void 0,loader:t=>(e=>{let{src:t,width:a,aspectRatio:l=1.5,fit:s}=e,[i,o]=t.split("$watermark:");if(t.includes("r.testifier.nl"))return n(i);if(!t.includes("s3-newsifier.ams3.digitaloceanspaces.com"))return t;let c=n(r.resize(i,{w:a,h:Math.floor(a/l),watermark:o}));return s&&(c=c.replace("fill","fit")),c})({...t,fit:!!e.fit})}):(0,l.jsx)("img",{...i,src:e.src,alt:a})}},30830:(e,t,a)=>{a.r(t),a.d(t,{default:()=>o});var l=a(95155);a(12115);var r=a(77224),n=a(59887),s=a(92129),i=a(20063);let o=e=>{let{placeholder:t,rounded:a=n.eg.MD,autoFocus:o=!1,fullWidth:c=!1,classes:d="",iconClasses:u="text-gray-600 dark:text-white"}=e,h=(0,i.useRouter)();return(0,l.jsx)("div",{className:" mx-auto w-full items-center ".concat(!c&&"container w-full items-center px-1 xl:px-2"),children:(0,l.jsx)("form",{onSubmit:function(e){var t;e.preventDefault();let a=e.target;if(!a.elements)return;let l=null==(t=a.elements.namedItem("query"))?void 0:t.value,r="?q=".concat(encodeURIComponent(l));h.push("/search"+r)},children:(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-2 text-xl text-gray-600",children:[(0,l.jsx)(r.CKj,{className:"".concat(u)})," "]}),(0,l.jsx)("input",{autoFocus:o||!1,placeholder:t,name:"query",className:(0,s.cn)("focus:border-primary focus:ring-primary block w-full border py-[6px] pl-9 focus:outline-none sm:text-base ",d)})]})})})}},34580:(e,t,a)=>{a.r(t),a.d(t,{default:()=>s});let l=new(a(82322)).L("https://r.testifier.nl"),r="";function n(e){var t;let a=e.split("$watermark:")[0];return r=(null==(t=e.split("$watermark:")[1])?void 0:t.replace("?",""))||"",a=a.replace(/\?+$/,"")}function s(e){let{src:t,width:a,quality:s,aspectRatio:i}=e;return t.includes("r.testifier.nl")?n(t):n(l.resize(t,{...a&&{w:a,h:Math.floor(a/i)},watermark:r}))}},41123:(e,t,a)=>{a.d(t,{p:()=>n});let l=null,r=async()=>{console.log("\uD83D\uDE80 PERFORMING ACTUAL SETUP - START");let e=(await a.e(649).then(a.bind(a,60649))).default,t=(await a.e(8541).then(a.bind(a,8541))).default;if(window.hasOwnProperty("io"))console.log("â»ï¸ io already exists on window, skipping load");else{console.log("\uD83D\uDCE1 Loading io for the first time");let e=await (await Promise.all([a.e(7692),a.e(6205)]).then(a.t.bind(a,27692,23))).default;window.io=e,console.log("â
io assigned to window")}if(window.hasOwnProperty("EchoMultimirror"))console.log("â»ï¸
1EchoMultimirror already exists, skipping creation");else{console.log("\uD83D\uDD27 Creating EchoMultimirror for first time");let a=window.io;window.io=function(e,t){console.log("\uD83D\uDD00 io() called with:",{url:e,options:t});let l="https://socket.multimirror.io",r={...t,query:{app_key:"voPsNc4x8G9KJpR4",...t&&t.query||{}}};return console.log("â¡ï¸ Redirecting to:",{finalUrl:l,finalOptions:r}),a(l,r)},window.EchoMultimirror=new e({broadcaster:t,host:"https://socket.multimirror.io",app_key:"voPsNc4x8G9KJpR4"}),console.log("â
EchoMultimirror created successfully")}console.log("\uD83C\uDF89 ACTUAL SETUP COMPLETE")},n=async()=>{if(console.log("\uD83D\uDCDE setupListenerRequirments called"),l){console.log("â³ Setup already in progress or completed, waiting for existing promise..."),await l,console.log("â
Existing setup promise resolved");return}if(window.hasOwnProperty("EchoMultimirror"))return void console.log("â
EchoMultimirror already exists on window, no setup needed");console.log("\uD83C\uDD95 Creating new setup promise..."),l=r();try{await l,console.log("â
Setup completed successfully")}catch(e){throw console.error("â Setup failed:",e),l=null,e}}},45064:(e,t,a)=>{a.r(t),a.d(t,{default:()=>o});var l=a(95155),r=a(68082);a(12115);var n=a(14984),s=a(92129),i=a(88262);let o=e=>{let{logoUrls:t,children:a,className:o}=e,{isDrawerOpen:c,setIsDrawerOpen:d}=(0,i.f)();return c?(0,l.jsxs)("div",{id:"drawer",className:"relative z-50",children:[(0,l.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"}),(0,l.jsx)("div",{className:"fixed inset-0 overflow-hidden",children:(0,l.jsx)("div",{className:"absolute inset-0 overflow-hidden",children:(0,l.jsx)("div",{className:"pointer-events-none fixed inset-y-0 left-0 flex max-w-full ",children:(0,l.jsx)("div",{className:"pointer-events-auto relative w-screen max-w-md",children:(0,l.jsxs)("div",{className:(0,s.cn)("flex h-full w-72 flex-col overflow-y-auto overflow-x-hidden py-4 shadow-xl",o),children:[(0,l.jsx)("div",{className:"px-4 sm:px-6",children:(0,l.jsxs)("div",{className:"flex flex-col justify-between gap-6 text-lg font-medium",children:[(0,l.jsxs)("button",{type:"button",className:"self-end rounded-md focus:outline-none focus:ring-2 focus:ring-white",onClick:()=>d(!1),children:[(0,l.jsx)("span",{className:"sr-only",children:"Close panel"}),(0,l.jsx)(n.m6K,{className:"h-6 w-6","aria-hidden":"true"})]}),(0,l.jsx)("div",{className:"flex w-full justify-center",children:(0,l.jsx)(r.default,{eager:!1,logoUrls:t})})]})}),(0,l.jsx)("div",{className:"relative mt-6 flex-1 px-4 sm:px-6",children:(0,l.jsx)("div",{className:"absolute inset-0",children:a})})]})})})})})]}):null}},49499:(e,t,a)=>{a.d(t,{sH:()=>i,Z2:()=>o}),a(95010);var l=a(95155),r=a(92129),n=a(12115);let s=(0,n.createContext)({}),i=e=>{let{children:t,recaptchaSiteKey:a,anonymousComment:i,canLoginByGoogle:o,canLoginByFacebook:c,customFieldsEnabled:d=!1,tenant:u,frontendDomain:h,timezone:m,subscriptionEnabled:x=!1}=e,[g,p]=(0,n.useState)(),[f,v]=(0,n.useState)(""),[w,y]=(0,n.useState)(!1),[b,j]=(0,n.useState)(!1),[N,k]=(0,n.useState)("A"),[S,_]=(0,n.use
1State)("");(0,n.useEffect)(()=>{let e=localStorage.getItem("".concat(u,"-user"));e&&"undefined"!==e&&p(JSON.parse(e)),A(),C()},[]);let C=()=>{let e=localStorage.getItem("group"),t=e||"A";e||(t=(0,r.S5)(),localStorage.setItem("group",t)),k(t)},A=()=>{let e=window.localStorage.getItem("visitor");e||(e=Math.random().toString(),window.localStorage.setItem("visitor",e)),v(e)};return(0,l.jsx)(s.Provider,{value:{timezone:m,isAnonymous:w,setIsAnonymous:y,visitor:f,recaptchaToken:S,setRecaptchaToken:_,userData:g,setUserData:p,showAuthModal:b,setShowAuthModal:j,recaptchaSiteKey:a,anonymousComment:i,canLoginByGoogle:o,canLoginByFacebook:c,customFieldsEnabled:d,abGroup:N,tenant:u,frontendDomain:h,subscriptionEnabled:x},children:t})},o=()=>(0,n.useContext)(s)},49698:(e,t,a)=>{a.d(t,{TitleClient:()=>s});var l=a(95155),r=a(49499);a(12115);var n=a(58336);let s=e=>{let{a_title:t,abtesting:a,b_title:s,title:i,access_type:o}=e,{abGroup:c,subscriptionEnabled:d}=(0,r.Z2)();return(0,l.jsxs)(l.Fragment,{children:[d&&"premium"===o&&(0,l.jsx)("span",{className:"mr-3 inline-flex h-[1.15em] w-[1.15em] items-center justify-center rounded-sm bg-amber-500/20 ring-1 ring-amber-500/40 align-middle relative -top-[0.06em]",title:"Premium","aria-label":"Premium",children:(0,l.jsx)(n.JhU,{className:"h-[0.65em] w-[0.65em] text-amber-500","aria-hidden":"true"})}),a?"A"===c?t||i:"B"===c&&s||i:i]})}},52610:(e,t,a)=>{a.d(t,{A7:()=>x,LO:()=>c,eL:()=>m,iW:()=>h});var l=a(85761),r=a(60455),n=a(95704);let{cache:s}=a(12115),i=(e,t)=>{if(void 0===e||""===e.trim())return t;let a=Number(e);return Number.isFinite(a)&&a>=0?a:t},o={stable:i(n.env.SOCCER_REVALIDATE_STABLE,300),standings:i(n.env.SOCCER_REVALIDATE_STANDINGS,120)};s(async()=>{try{var e;let t=await (0,r.q)("soccer:leagues",()=>l.GR.get("/leagues",{},!1,{next:{revalidate:o.stable}}));return Array.isArray(null==(e=t.data)?void 0:e.data)?t.data.data:[]}catch(e){return console.log(e),[]}}),s(async e=>{try{var t;return null==(t=(await (0,r.q)("soccer:rankings:".concat(e),()=>l.GR.get("/leagues/".concat(e,"/rankings"),{},!1,{next:{revalidate:o.standings}}))).data)?void 0:t.data}catch(e){console.log(e)}}),s(async e=>{try{var t,a;let n=await (0,r.q)("soccer:rounds:".concat(e),()=>l.GR.get("/leagues/".concat(e,"/rounds"),{},!1,{next:{revalidate:o.standings}}));return Array.isArray(null==(a=n.data)||null==(t=a.data)?void 0:t.seasonRounds)?n.data.data.seasonRounds:[]}catch(e){return console.log(e),[]}});let c=s(async e=>{try{var t,a,n,s;let i=null==(a=(await (0,r.q)("soccer:team:".concat(e),()=>l.GR.get("/teams/".concat(e),{},!1,{next:{revalidate:o.stable}}))).data)||null==(t=a.data)?void 0:t.team;if(!i||!i.name||!i.logoPath)return null;let c=i.sportMonkId||i.sportMonksId||0,d=null!=(s=null==(n=i.activeSeason)?void 0:n.id)?s:0,u=i.league?{name:i.league.name,image_path:i.league.image_path}:void 0;return{team:{name:i.name,logoPath:i.logoPath,sportMonkId:c,currentSeasonStat:i.currentSeasonStat,activeSeason:{id:d},league:u}}}catch(e){return console.log(e),null}}),d=e=>"/teams/".concat(encodeURIComponent(e),"/fixtures"),u=e=>{var t,a;return Array.isArray(null==e||null==(a=e.data)||null==(t=a.data)?void 0:t.teamFixtures)?e.data.data.teamFixtures:[]},h=s(async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;try{let a=t>0?Math.floor(Date.now()/(1e3*t)):0,n=a?"?fresh=".concat(a):"",s=await (0,r.q)("soccer:team-fixtures:".concat(e).concat(n),()=>l.GR.get("".concat(d(e)).concat(n),{},!1,a?{cache:"no-store"}:{next:{revalidate:o.standings}}));return u(s)}catch(e){return console.log(e),[]}}),m=async e=>u(await l.GR.get("".concat(d(e),"?fresh=").concat(Date.now()),{},!1,{cache:"no-store"}));s(async e=>{try{var t,a;let n=await (0,r.q)("soccer:team-leagues:".concat(e),()=>l.GR.get("/teams/".concat(e,"/leagues"),{},!1,{next:{revalidate:o.stable}}));return Array.isArray(null==(a=n.data)||null==(t=a.data)?void 0:t.teamLeagues)?n.data.data.teamLeagues:[]}catch(e){return console.log(e),[]}});let x=s(async(e,t)=>{try{var a,n;let s=await (0,r.q)("soccer:team-players:".concat(e,":").concat(t),()=>l.GR.get("/teams/".concat(e,"/seasons/").concat(t,"/players"),{},!1,{next:{revalidate:o.stable}}));return Array.isArray(null==(n=s.data)||null==(a=n.data)?void 0:a.teamPlayers)?s.data.data.teamPlayers:[]}catch(e){return console.log(e),[]}});s(async e=>{try{var t,a,n;let s="dagelijksestandaard.nl";return null!=(n=null==(a=(await (0,r.q)("soccer:player:".concat(e),()=>l.GR.get("/players/".concat(e),{...s?{"x-tenant":s}:{}},!1,{next:{revalidate:o.stable}}))).data)||null==(t=a.data)?void 0:t.player)?n:null}catch(e){return console.log(e),null}})},56844:(e,t,a)=>{a.d(t,{p:()=>l.p});var l=a(14157)},61039:(e,t,a)=>{a.d(t,{oO:()=>l.o}),a(52610),a(34786);
1var l=a(53507)},66579:(e,t,a)=>{a.d(t,{A:()=>n});var l=a(95155);a(12115);var r=a(94706);let n=e=>{let{name:t,url:a,destination:n,classes:s=""}=e;return(0,l.jsx)(r.h,{href:a,rel:"new"===n?"noreferrer":void 0,target:"new"===n?"_blank":"_self",className:"whitespace-nowrap transition-all hover:opacity-90 ".concat(s," "),children:t})}},66694:(e,t,a)=>{a.d(t,{default:()=>u});var l=a(95155),r=a(12115),n=a(58336),s=a(66579),i=a(86433),o=a(56844);let c=(0,r.lazy)(()=>Promise.resolve().then(a.bind(a,86433)).then(e=>({default:e.ArticlesSection}))),d=(0,r.lazy)(()=>Promise.resolve().then(a.bind(a,86433)).then(e=>({default:e.TagsSection}))),u=e=>{let{name:t,url:a,destination:u,children:h=[],articles:m,tags:x,level:g=0}=e,[p,f]=(0,r.useState)(!1),v=h.length>0||!!(null==m?void 0:m.length)||!!(null==x?void 0:x.length),w=0===g?"px-4":1===g?"pl-3 pr-4":"pl-6 pr-4";return(0,l.jsxs)("div",{className:"w-full",children:[(0,l.jsxs)("div",{className:"flex w-full items-center justify-between py-2 ".concat(w," ").concat(0===g?"font-semibold":"font-medium"," ").concat(p&&0===g?"border-b pb-3 border-gray-200":""),children:[a?(0,l.jsx)(s.A,{name:t,url:a,destination:u,classes:"flex-1 font-semibold hover:opacity-70"}):(0,l.jsx)("span",{className:"flex-1 font-semibold",children:t}),v&&(0,l.jsx)("button",{type:"button","aria-label":(0,o.p)("common:toggleSubmenu"),"aria-expanded":p,onClick:()=>f(e=>!e),className:"cursor-pointer hover:opacity-70 p-1",children:p?(0,l.jsx)(n.iu5,{}):(0,l.jsx)(n.OiG,{})})]}),p&&v&&(0,l.jsxs)(l.Fragment,{children:[!!(null==m?void 0:m.length)&&(0,l.jsx)(r.Suspense,{children:(0,l.jsx)(c,{articles:m})}),!!(null==x?void 0:x.length)&&(0,l.jsx)(r.Suspense,{children:(0,l.jsx)(d,{tags:x})}),(0,l.jsx)(i.ChildRouteList,{routes:h,level:g})]})]})}},68082:(e,t,a)=>{a.r(t),a.d(t,{default:()=>s});var l=a(95155);a(12115);var r=a(27723),n=a(94706);let s=e=>{let{logoUrls:t={lightLogo:"",darkLogo:"",websiteName:""},height:a="48",width:s="150",classes:i="",priority:o=!1,eager:c=!0}=e;if(!t)return(0,l.jsx)(l.Fragment,{});let d=o?void 0:c?"eager":"lazy";return(0,l.jsxs)(l.Fragment,{children:[t.lightLogo&&(0,l.jsx)(n.h,{href:"/",className:"block w-fit shrink-0 dark:hidden ".concat(i),"aria-label":"".concat(t.websiteName," - homepage"),children:(0,l.jsx)(r.ImageWrapper,{priority:o,loading:d,style:{width:"".concat(s,"px")},src:t.lightLogo,className:"max-w-[150px] cursor-pointer object-contain outline-none sm:max-w-5xl",alt:t.websiteName,id:"light-logo",fit:"true",width:Number(s),sizes:"".concat(s,"px"),height:Number(a)})}),t.darkLogo&&(0,l.jsx)(n.h,{href:"/",className:"hidden w-fit shrink-0 dark:block ".concat(i),"aria-label":"".concat(t.websiteName," - Go to homepage"),children:(0,l.jsx)(r.ImageWrapper,{priority:o,loading:d,fit:"true",style:{width:"".concat(s,"px")},src:t.darkLogo,id:"dark-logo",className:"max-w-[150px] cursor-pointer object-contain outline-none sm:max-w-5xl",alt:t.websiteName,width:Number(s),sizes:"".concat(s,"px"),height:Number(a)})})]})}},69198:(e,t,a)=>{a.d(t,{default:()=>i});var l=a(95155),r=a(49499),n=a(34786);a(12115);var s=a(94706);let i=e=>{let{children:t,classes:a="",ariaLabel:i,type:o,source_url:c,abtesting:d,url:u,slug:h,id:m,primaryTagSlug:x,scrollToComments:g}=e,{abGroup:p,frontendDomain:f}=(0,r.Z2)(),v=function(e,t,a,l){let r=t&&a?"/".concat(t,"/").concat(a):"";return e||r}(null!=u?u:"",x,h,0),w="external"===o?"_blank":"_self",y="external"===o?String(c):v,b="_blank"===w?"noreferrer":void 0;async function j(){try{await (0,n.Yi)(m,p.replace(/"/g,""))}catch(e){console.error("Error tracking article click:",e)}}return g&&(y+="#comments",b="nofollow"),(0,l.jsx)(s.h,{rel:b,"aria-label":i,href:"".concat(y),className:"".concat(a," ").concat(g?"":"[&:visited_*]:text-visited-link dark:[&:visited_*]:text-dark-visited-link"),target:w,onClick:()=>{d&&j()},children:t})}},69582:(e,t,a)=>{a.r(t),a.d(t,{MobileSearchContainer:()=>i});var l=a(95155);a(12115);var r=a(59887),n=a(30830),s=a(88262);let i=e=>{let{placeholder:t,maxWidth:a,classes:i="placeholder-gray-500 rounded-lg dark:placeholder-gray-500 text-black border-transparent bg-[#f2f2f2]",iconClasses:o="text-gray-600"}=e,{isSearchBarOpen:c}=(0,s.f)();return c?(0,l.jsx)("div",{style:{maxWidth:"".concat(a,"px")},className:"container mx-auto px-1 py-3 md:px-0",children:(0,l.jsx)(n.default,{placeholder:t,autoF
1ocus:!0,iconClasses:o,classes:i,rounded:r.eg.MD})}):null}},71763:(e,t,a)=>{a.r(t),a.d(t,{default:()=>o});var l=a(95155),r=a(12115),n=a(77224),s=a(95010),i=a(92129);let o=e=>{let{className:t}=e,[a,o]=r.useState(!1),{theme:c,setTheme:d}=(0,s.D)(),u=(0,i.cn)("w-7 h-7",t);return(r.useEffect(()=>{o(!0)},[]),a)?(0,l.jsx)("button",{className:"header__theme-toggle ","aria-label":"switch theme",onClick:function(){"dark"===c?d("light"):d("dark")},children:"dark"===c?(0,l.jsx)(n.Wh$,{className:u}):(0,l.jsx)(n.hkc,{className:u})}):(0,l.jsx)("div",{className:u})}},72040:(e,t,a)=>{a.r(t),a.d(t,{SideBarButton:()=>o});var l=a(95155);a(12115);var r=a(97572),n=a(42516),s=a(92129),i=a(88262);let o=e=>{let{icon:t="default",labels:a,className:o}=e,{setIsDrawerOpen:c}=(0,i.f)(),d={puna:n.jt6,default:r.Znj}[t];return(0,l.jsx)("button",{title:null==a?void 0:a.open_sidebar,onClick:()=>c(e=>!e),className:(0,s.cn)("header__sidebar-btn text-2xl text-black dark:text-white",o),children:(0,l.jsx)(d,{})})}},72111:(e,t,a)=>{a.r(t),a.d(t,{SearchButton:()=>s});var l=a(95155);a(12115);var r=a(77224),n=a(88262);let s=e=>{let{classes:t}=e,{setIsSearchBarOpen:a}=(0,n.f)();return(0,l.jsx)("button",{onClick:()=>a(e=>!e),className:t,"aria-label":"Search",title:"Search",children:(0,l.jsx)(r.CKj,{})})}},80127:(e,t,a)=>{a.d(t,{A:()=>d});var l=a(95155),r=a(12115),n=a(58336),s=a(59887),i=a(27723),o=a(14629),c=a(92129);let d=e=>{let{url:t="",size:a=48,alt:d,className:u,rounded:h=s.eg.FULL}=e;return(0,l.jsx)(r.Fragment,{children:!t||(null==t?void 0:t.includes(".svg"))?(0,l.jsx)(n.NBi,{className:(0,c.cn)("shrink-0",o.Ay.get(h),u),style:{width:a,height:a}}):(0,l.jsx)(i.ImageWrapper,{src:t,width:2.5*a,height:2.5*a,style:{width:a,height:a,minWidth:a,minHeight:a},className:"".concat(o.Ay.get(h)," shrink-0 object-cover aspect-square"),alt:d||""})})}},82322:(e,t,a)=>{a.d(t,{L:()=>r});class l{prepareUrl(){var e;let t=null!=(e=this.render_options)?e:{},a=["watermark","w","h"].map(e=>(null==t?void 0:t[e])?"/{".concat(e,"}"):"").join(""),l=(null==t?void 0:t.resizing_type)?"resizing_type:".concat(t.resizing_type):"resizing_type:fill";this.url="".concat(this.host,"/Acbs8526SDKI/").concat(l).concat(a,"/plain/").concat(this.url)}checkReadyUrl(){let e=this.url.includes(".gif");this.url.endsWith("@webp")||e||(this.url=this.url+"@webp")}getParsedUrl(){var e;if(this.readyUrl)return this.readyUrl;if(this.parsed)return this.url;let t=Object.entries(null!=(e=this.render_options)?e:{});return t.length>0&&t.forEach(e=>{let[t,a]=e,l=null===this||void 0===this?void 0:this[t];a&&"function"==typeof l&&(this.url=l(a,this.url))}),this.parsed=!0,this.url}w(e,t){return t.replace("/{w}",e?"/width:"+e:"")}h(e,t){return t.replace("/{h}",e?"/height:"+e:"")}watermark(e,t){let a=e?"/watermark:"+e.replace("@webp",""):"";return t.replace("/{watermark}",a)}constructor(e,t,a){if(!e)throw"Invalid url";this.url=e,this.host=t,this.parsed=!1,this.render_options=a,this.prepareUrl(),this.checkReadyUrl()}}class r{resize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=e.includes(this.service_host);a&&(t.w&&(e=e.replace(/width:[^/]+/,"width:".concat(t.w))),t.h&&(e=e.replace(/height:[^/]+/,"height:".concat(t.h))));let r=e;return((null==t?void 0:t.without_watermark)&&r.includes("watermark:")&&(r=r.replace(/watermark:[^/]+\//,"")),a)?r:new l(r,this.service_host,null!=t?t:{}).getParsedUrl()}constructor(e){this.service_host=e}}},83907:(e,t,a)=>{a.d(t,{h:()=>n});var l=a(95155);a(12115);var r=a(49698);let n=e=>{let{article:t}=e;return(0,l.jsx)(r.TitleClient,{a_title:null==t?void 0:t.a_title,abtesting:null==t?void 0:t.abtesting,b_title:null==t?void 0:t.b_title,title:null==t?void 0:t.title,access_type:null==t?void 0:t.access_type})}},86433:(e,t,a)=>{a.r(t),a.d(t,{ArticlesSection:()=>h,ChildRouteList:()=>x,TagsSection:()=>m});var l=a(95155);a(12115);var r=a(66579),n=a(66694),s=a(93366),i=a(83907),o=a(27723),c=a(92129);function d(e){let{articles:t,options:{preloadImages:a=!1}={},className:r}=e;return(0,l.jsx)("div",{className:(0,c.cn)("@container flex flex-col gap-5 ",r),children:t.map((e,t)=>{var r;return(0,l.jsx)(s.A,{article:e,children:(0,l.jsxs)("div",{className:"flex items-start gap-4",children:[(null==(r=e.thumbnails)?void 0:r.origin)&&(0,l.jsx)(o.ImageWrapper,{src:e.thumbnails.origin,width:100,height:100,priority:0===t&&a,className:"h-[70px] w-[100px] shrink-0 rounded-md object-cover object-top",alt:e.alt_text||e.title}),(0,l.jsx)("h4",{className:"line-clamp-4 -mt-1 text-lg font-bold leading-6 text-black dark:text-white",children:(0,l.jsx)(i.h,{article:e})})]})},e.id)})})}let u=e=>{let{tags:t,options:a}=e;return(0,l.jsxs)("div",{className:"TrendingTags TrendingTags--variation-1 flex w-auto flex-wrap items-baseline gap-2 whitespace-normal",children:[(null==a?void 0:a.title)&&a.title.length>0&&(0,l.jsxs)("span",{className:"mr-2 text-base text-black dark:text-white",children:[a.title,":"]}
1),t.map(e=>{let{title:t,url:a,id:r}=e;return(0,l.jsx)("a",{href:a,className:"inline-flex items-center rounded-full border border-primary px-3 py-1 text-xs font-semibold uppercase text-primary transition-colors hover:border-primary-dark hover:text-primary-dark",children:t},null!=r?r:t)})]})},h=e=>{let{articles:t}=e;return(null==t?void 0:t.length)?(0,l.jsx)("div",{className:"px-3 py-4 [&_h4]:text-header-fg dark:[&_h4]:text-dark-header-fg [&_h4]:line-clamp-3",children:(0,l.jsx)(d,{articles:t,options:{preloadImages:!1}})}):null},m=e=>{let{tags:t}=e;return(null==t?void 0:t.length)?(0,l.jsx)("div",{className:"px-3 py-4",children:(0,l.jsx)(u,{tags:t,options:{}})}):null},x=e=>{let{routes:t,level:a}=e;return t.length?(0,l.jsx)("ul",{className:"dark:divide-gray-700 ".concat(0===a?"divide-y divide-gray-200 px-3":"ml-3"),children:t.map((e,t)=>{var s,i,o,c;let d=null!=(c=e.id)?c:"".concat(e.name,"-").concat(t);return(null==(s=e.children)?void 0:s.length)||(null==(i=e.articles)?void 0:i.length)||(null==(o=e.tags)?void 0:o.length)?(0,l.jsx)("li",{children:(0,l.jsx)(n.default,{...e,level:a+1})},d):(0,l.jsx)("li",{className:"py-2 pl-6 pr-3 hover:opacity-70",children:e.url?(0,l.jsx)(r.A,{classes:"text-sm font-medium",...e}):(0,l.jsx)("span",{className:"text-sm font-medium",children:e.name})},d)})}):null}},88262:(e,t,a)=>{a.d(t,{f:()=>i,i:()=>s});var l=a(95155),r=a(12115);let n=(0,r.createContext)({}),s=e=>{let{children:t}=e,[a,s]=(0,r.useState)(!1),[i,o]=(0,r.useState)(!1),[c,d]=(0,r.useState)(!1);return(0,l.jsx)(n.Provider,{value:{isDrawerOpen:a,setIsDrawerOpen:s,isSearchBarOpen:i,setIsSearchBarOpen:o,isMobileMenuOpen:c,setIsMobileMenuOpen:d},children:t})},i=()=>(0,r.useContext)(n)},92129:(e,t,a)=>{a.d(t,{S5:()=>s,cn:()=>o,ro:()=>i});var l=a(34786),r=a(42228),n=a(26888);function s(){return["A","B"][Math.floor(2*Math.random())]}async function i(e){let{scope:t,offset:a,paginationPageSize:r,scopeData:n="get",isSticky:s,exclude_tags_id:i,page:o=0,withContent:c,displayPage:d,tenantId:u}=e;try{let{data:e}=await (0,l.XC)(t,n,o,{isSticky:s,exclude_tags_id:i,offset:a,paginationPageSize:r,withContent:c,displayPage:d},u||"dagelijksestandaard.nl");return e.data}catch(e){return console.log(e),[]}}function o(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,n.QP)((0,r.$)(t))}},93366:(e,t,a)=>{a.d(t,{A:()=>n});var l=a(95155);a(12115);var r=a(69198);let n=e=>{var t;let{children:a,classes:n,article:s,scrollToComments:i,ariaLabel:o}=e;return(0,l.jsx)(r.default,{classes:n,scrollToComments:i,ariaLabel:o,id:null==s?void 0:s.id,type:null==s?void 0:s.type,source_url:null==s?void 0:s.source_url,abtesting:null==s?void 0:s.abtesting,url:null==s?void 0:s.url,slug:null==s?void 0:s.slug,primaryTagSlug:null==s||null==(t=s.primary_tag)?void 0:t.slug,children:a})}},94706:(e,t,a)=>{a.d(t,{h:()=>r});var l=a(95155);a(12115);let r=e=>{let t={...e};return t.href,(0,l.jsx)("a",{...t})}},95534:(e,t,a)=>{a.r(t),a.d(t,{LanguageSelector:()=>o});var l=a(95155),r=a(12115),n=a(48278),s=a(56844),i=a(34786);let o=e=>{var t;let{dropdownPosition:a="bottom"}=e,[o,c]=(0,r.useState)(!1),[d,u]=(0,r.useState)([]),[h,m]=(0,r.useState)(!0),x=(0,r.useRef)(null),g=(0,r.useRef)(null),p=window.location.hostname,f="dagelijksestandaard.nl";(0,r.useEffect)(()=>{let e=async()=>{try{let e=await (0,i.hK)(f);u(e)}catch(e){console.error("Failed to fetch network data:",e)}finally{m(!1)}};f?e():m(!1)},[f]),(0,r.useEffect)(()=>{let e=e=>{g.current&&x.current&&!g.current.contains(e.target)&&!x.current.contains(e.target)&&c(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let v=null==(t=d.find(e=>e.primary_frontend_domain===p))?void 0:t.language;return(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)("button",{ref:x,onClick:()=>c(!o),"aria-expanded":o,"aria-haspopup":"listbox","aria-label":"Select language",className:"flex items-center gap-2 px-2 py-1 border border-zinc-600 rounded-full focus:outline-none",children:[(0,l.jsx)(n.qhj,{className:"w-6 h-6 text-zinc-500"}),(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[(0,l.jsx)("span",{className:"uppercase text-sm text-header-fg dark:text-dark-header-fg whitespace-nowrap",children:v}),(0,l.jsx)("svg",{className:"w-4 h-4 transition-transform duration-200 ".concat(o?"transform rotate-180":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})]}),o&&(0,l.jsx)("div",{ref:g,className:"absolute z-50 w-max bg-white border border-zinc-400 rounded-md shadow-lg ".concat("bottom"===a?"mt-2 top-full":"bottom-full mb-2"),children:(0,l.jsx)("ul",{className:"py-1",children:h?(0,l.jsx)(l.Fragment,{children:[void 0,void 0,void 0,void 0,void 0].map((e,t)=>(0,l.jsx)("li",{className:"px-4 py-2",children:(0,l.jsx)("div",{className:"animate-pulse",children:(0,l.jsx)("div",{className:"h-4 bg-zinc-200 rounded w-24"})})},t))}):d.length>0?d.map(e=>{let t=e.language===v;return(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:t?void 0:"https://".concat(e.primary_frontend_domain),className:"block px-4 py-2 md:text-sm text-xs transition-all text-zinc-700 hover:bg-zinc-100 ".concat(t?"bg-zinc-100":""),onClick:()=>c(!1),children:(0,s.p)(e.language)})},e.tenant_id)}):(0,l.jsx)("li",{className:"px-4 py-2 text-xs text-zinc-500",children:"No languages available"})})})]})}}}]);
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.