1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[492],{1795:(e,t,l)=>{l.d(t,{A:()=>r});var a=l(7876),n=l(7328),s=l.n(n);let r=e=>{var t,l,n,r;let{seo:i}=e;if(!i)return null;let o=(null==(t=i.metaTitle)?void 0:t.includes("| ANVR"))?i.metaTitle:"".concat(i.metaTitle," | ANVR");return(0,a.jsxs)(s(),{children:[(0,a.jsx)("title",{children:o},"title"),i.metaDescription&&(0,a.jsx)("meta",{name:"description",content:i.metaDescription},"description"),(null==(r=i.metaImage)||null==(n=r.data)||null==(l=n.attributes)?void 0:l.url)&&(0,a.jsx)("meta",{name:"og:image",content:i.metaImage.data.attributes.url},"image"),i.keywords&&(0,a.jsx)("meta",{name:"keywords",content:i.keywords},"keywords"),i.metaRobots&&(0,a.jsx)("meta",{name:"robots",content:i.metaRobots},"robots"),i.structuredData&&(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(i.structuredData)}}),i.canonicalURL&&(0,a.jsx)("link",{rel:"canonical",href:i.canonicalURL},"canonical")]})}},2565:(e,t,l)=>{l.d(t,{A:()=>u});var a=l(7876),n=l(9995),s=l(7314),r=l(9099),i=l(8230),o=l.n(i),c=l(4232),d=l(592);let u=e=>{let{fit:t,className:l,overrideCurrentPage:i,overrideCurrentHref:u,keepHyphen:m=!1}=e,x=(0,c.useRef)(null),{userType:h}=(0,d.k)(),p=(0,r.useRouter)(),b=p.asPath;if((0,c.useEffect)(()=>{x.current&&(x.current.scrollLeft=x.current.scrollWidth)},[b]),!b||!b.length||"/"===b||"/?"===b)return null;"/"===b[b.length-1]&&(b=b.substring(0,b.length-1));let g=b.split("/").slice(1);return i&&(g[g.length-1]=i),p.query.tag&&g.push(p.query.tag.toString()),g[0]=g[0].split("?")[0],"?"===g[g.length-1][0]&&g.pop(),(0,a.jsx)("div",{className:(0,n.A)("bg-white py-3 px-4 lg:px-6 rounded-t mx-auto",l),children:(0,a.jsx)("div",{ref:x,className:(0,n.A)("max-w-[774px] pt-3 px-2 lg:px-0 flex truncate",{"lg:w-fit":t}),itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:(0,a.jsxs)("div",{className:"flex gap-x-2",children:[(0,a.jsx)("div",{className:"flex gap-x-2 items-center",itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem",children:(0,a.jsxs)(o(),{href:"reizigers"===h?"/":"/leden",className:"no-underline text-blue-royal",itemProp:"item",children:[(0,a.jsx)("span",{itemProp:"name",children:"Home"}),(0,a.jsx)("meta",{itemProp:"position",content:"1"})]})}),g.map((e,t)=>{let l=t===g.length-1&&u?u:"/".concat(g.slice(0,t+1).join("/").split("#")[0]);return(0,a.jsxs)("div",{className:"flex gap-x-2 items-center",itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem",children:[(0,a.jsx)(s.I,{name:"chevron-right",className:"opacity-50"}),(0,a.jsxs)(o(),{prefetch:!1,href:l,className:(0,n.A)("first-letter:capitalize no-underline text-blue-royal",{"font-bold text-ellipsis overflow-hidden pointer-events-none":t===g.length-1}),itemProp:"item",children:[(0,a.jsx)("span",{itemProp:"name",children:((e,t)=>{let l=e;return!t&&l.includes("-")&&(l=e.split("?")[0].split("-").join(" ")),l.includes("#")&&(l=l.split("#")[0]),l})(e,m)}),(0,a.jsx)("meta",{itemProp:"position",content:(t+2).toString()})]},t)]},t)})]})})})}},4346:(e,t,l)=>{l.d(t,{Y:()=>r});var a=l(7876),n=l(4587),s=l.n(n);let r=e=>{let{children:t,classNameWrapper:l,className:n}=e;return(0,a.jsxs)("div",{className:l,children:[(0,a.jsx)("div",{className:"relative h-[135px] bg-blue-logo -z-10",children:(0,a.jsx)("div",{className:"container",children:(0,a.jsx)(s(),{src:"/header-logo.svg",width:503,height:135,alt:"Header background image",className:"ml-auto block"})})}),(0,a.jsx)("div",{className:n,children:t})]})}},5886:(e,t,l)=>{l.d(t,{Z:()=>a});let a=async function(e){let t,l=!(arguments.length>1)||void 0===arguments[1]||arguments[1],a=arguments.length>2?arguments[2]:void 0,n=!(arguments.length>3)||void 0===arguments[3]||arguments[3],s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"GET",r=arguments.length>5?arguments[5]:void 0,i=(t=l?"https://cms.anvr.nl/api":"https://api.anvr.nl/api","".concat(t,"/").concat(e));try{let e=await fetch(i,{headers:{"Content-Type":"application/json",...l&&a&&{"x-bearer-token":"Bearer ".concat(a)},...!l&&a&&{Authorization:"Bearer ".concat(a)}},method:s,...r&&{body:r}});if(!e.ok&&n)throw Error(e.status.toString());try{return await e.json()}catch(e){throw Error("Failed to parse JSON from response: ".concat(i))}}catch(e){return console.log(e),Promise.reject(e)}}},6056:(e,t,l)=>{l.d(t,{I:()=>o});var a=l(7876),n=l(7314),s=l(9995),r=l(4232),i=l(6969);let o=e=>{let{value:t,setValue:l,handleSearch:o,position:c,placeholder:d,ariaLabel:u,className:m,title:x,titleClassName:h,buttons:p,children:b,append:g,sticky:f,fullWidth:j}=e,[v,y]=(0,r.useState)(!1),w=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=e=>{"Enter"===e.key&&v&&o()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[o,v,t]),(0,a.jsxs)("div",{className:(0,s.A)({"h-max lg:sticky top-44":f}),children:[(0,a.jsxs)("div",{className:(0,s.A)("flex flex-col gap-x-4 gap-y-4 rounded bg-blue-steel p-4 shadow h-max",{"pb-8 md:pb-4 -mt-10 md:flex-row md:items-center":"top"===c,"pb-8":"first"===c},m),children:[(0,a.jsx)("span",{className:(0,s.A)("inline-block text-[28px] font-extrabold text-white",h),children:x||""}),(0,a.jsxs)("div",{className:(0,s.A)("flex h-12 items-center gap-x-2 rounded-full bg-white shadow-blue-royal outline-1 outline-blue-royal focus-within:shadow-xl focus-within:outline transition-all duration-300 ease-in-out",{"lg:w-[500px]":"top"===c&&!j}
1,{"min-w-full":j}),onClick:()=>{var e;null==(e=w.current)||e.focus()},children:[(0,a.jsx)(n.I,{name:"magnifying-glass",className:"text-blue-royal ml-4 text-xl","aria-hidden":!0}),(0,a.jsx)("input",{ref:w,onFocus:()=>y(!0),onBlur:()=>y(!1),value:decodeURIComponent(t),onChange:e=>l(e.target.value),type:"text",placeholder:d||"Begin met typen...","aria-label":u||"zoeken invoerveld",className:(0,s.A)("rounded-r-full text-lg w-full text-blue-royal outline-none placeholder:text-blue-royal focus-within:placeholder:text-gray-400")}),(0,a.jsx)(i.$,{color:"red",appearance:"filled",text:"Zoeken",onClick:o,className:(0,s.A)("hidden",{"md:flex ml-auto":"top"===c})})]}),(0,a.jsx)(i.$,{color:"red",appearance:"filled",text:"Zoeken",onClick:o,className:(0,s.A)({"md:hidden":"top"===c})}),null==p?void 0:p.map(e=>e&&(0,a.jsx)(i.$,{text:e.text,url:e.url,color:e.color,appearance:e.appearance},e.id)),!g&&b]}),g&&b]})}},6969:(e,t,l)=>{l.d(t,{$:()=>i});var a=l(7876),n=l(9995),s=l(8230),r=l.n(s);let i=e=>{let{text:t,color:l,appearance:s,url:i,onClick:o,className:c}=e;if(!t)return null;let d="btn-red";switch(l.toLowerCase()){case"red":switch(s.toLowerCase()){case"filled":d="btn-red";break;case"outlined":d="btn-red-outline";break;case"text":d="btn-red-text"}break;case"blue":switch(s.toLowerCase()){case"filled":d="btn-blue-royal";break;case"outlined":d="btn-blue-royal-outline";break;case"text":d="btn-blue-royal-text"}break;case"bluesteel":switch(s.toLowerCase()){case"filled":d="btn-blue-steel";break;case"outlined":d="btn-blue-steel-outline";break;case"text":d="btn-blue-steel-text"}break;case"white":switch(s.toLowerCase()){case"filled":d="btn-white";break;case"outlined":d="btn-white-outline";break;case"text":d="btn-white-text"}}return i?(0,a.jsx)(r(),{href:i,className:(0,n.A)("btn flex w-full md:w-auto",d,c),children:(0,a.jsx)("span",{className:"truncate",children:t})}):(0,a.jsx)("button",{onClick:o,className:(0,n.A)("btn flex w-full md:w-auto",d,c),children:(0,a.jsx)("span",{className:"truncate",children:t})})}},9146:(e,t,l)=>{l.d(t,{K:()=>f});var a=l(7876),n=l(4232),s=l(5886),r=l(8230),i=l.n(r),o=l(4587),c=l.n(o);let d=e=>{let{member:t}=e;return(0,a.jsxs)(i(),{className:"flex h-[112px] items-center space-x-4 rounded bg-white p-5 text-blue-royal group",href:"/ledenoverzicht/".concat(t.number),children:[(0,a.jsx)("div",{className:"relative h-[110px] w-40 hidden sm:block",children:t.logo&&(0,a.jsx)(c(),{src:t.logo,fill:!0,className:"object-contain",alt:"logo ".concat(t.name)},t.logo)}),(0,a.jsxs)("div",{className:"flex-1 truncate",children:[(0,a.jsx)("h2",{className:"text-2xl block truncate",children:t.name}),"Filiaal"===t.type&&(0,a.jsxs)("span",{className:"block opacity-50 truncate",children:[t.business_address," ",t.business_city]}),(0,a.jsx)("span",{className:"block pt-2 underline underline-offset-1 group-hover:text-blue-steel ",children:"Bekijk meer"})]}),(0,a.jsx)("p",{className:"md:text-lg font-bold w-20 md:w-40",children:t.type})]})};var u=l(2280),m=l(1414),x=l(9995),h=l(7314);let p=e=>{let{paginationData:t,onClickPage:l,className:n}=e,{links:s,last_page:r,from:i,to:o,current_page:c}=t||{},d=c||1,p=(0,m.S)(),b=(0,u.qD)(p);return(0,a.jsx)("ul",{className:(0,x.A)("flex space-x-2",n),children:s&&s.length>3&&s.map((e,t)=>{if("..."===e.label)return(0,a.jsx)("li",{className:"hidden items-center justify-center rounded-full text-lg font-bold text-blue-royal md:flex",children:e.label},t);let n=parseInt(e.label);return e.label.includes("Vorige")&&null!==i&&null!==o?(0,a.jsx)("li",{className:"flex h-12 w-12 cursor-pointer items-center justify-center rounded-full bg-blue-steel text-lg font-bold text-white transition-colors",onClick:()=>d>1&&l(d-1),children:(0,a.jsx)(h.I,{name:"arrow-left",className:"text-xl"})},t):e.label.includes("Volgende")&&r&&null!==i&&null!==o?(0,a.jsx)("li",{className:"flex h-12 w-12 cursor-pointer items-center justify-center rounded-full bg-blue-steel text-lg font-bold text-white transition-colors",onClick:()=>d<r&&l(d+1),children:(0,a.jsx)(h.I,{name:"arrow-right",className:"text-xl"})},t):!0===e.active?(0,a.jsx)("li",{className:"flex h-12 w-12 cursor-pointer items-center justify-center rounded-full bg-blue-steel text-lg font-bold text-white transition-colors hover:bg-blue-steel hover:text-white",children:e.label},t):n!==d-1&&n!==d+1&&(t!==s.length-2||b)&&(1!==n||b)?void 0:(0,a.jsx)("li",{onClick:()=>l(n),className:"flex h-12 w-12 cursor-pointer items-center justify-center rounded-full bg-white align-middle text-lg font-bold uppercase text-blue-royal transition-colors",children:e.label},t)})})};var b=l(9099),g=l(6056);let f=e=>{var t;let{types:l,baseUrl:r}
1=e,[i,o]=(0,n.useState)(null),[c,u]=(0,n.useState)(!1),[m,x]=(0,n.useState)(""),[h,f]=(0,n.useState)(1),[j,v]=(0,n.useState)(!1),y=(0,b.useRouter)(),w=(0,n.useCallback)(async(e,t)=>{u(!0),v(!1);try{let a=await ((e,t,l)=>{let a="organizations?limit=25";return e&&(a+="&search=".concat(encodeURIComponent(e))),t&&(a+="&page=".concat(t)),null==l||l.forEach(e=>{a+="&type[]=".concat(e)}),(0,s.Z)(a,!1)})(e,t,l);o(a)}catch(e){console.error("error",e),v(!0)}finally{u(!1)}},[]);(0,n.useEffect)(()=>{y.isReady&&(y.query.search?(x(y.query.search),w(y.query.search,h.toString())):(x(""),w("",h.toString())))},[h,w,y]);let N=(0,n.useCallback)(()=>{m?(y.replace("".concat(r,"?search=").concat(encodeURIComponent(m))),f(1)):y.query.search&&(y.replace(r),f(1))},[y,m]),k=e=>{f(e)};return(0,a.jsx)("div",{className:"bg-blue-alice pb-12",children:(0,a.jsx)("div",{className:"container",children:(0,a.jsxs)("div",{className:"mx-auto max-w-[774px]",children:[(0,a.jsx)(g.I,{handleSearch:N,value:m,setValue:x,position:"top"}),c||i||j?j?(0,a.jsx)(a.Fragment,{}):(0,a.jsxs)("div",{className:"my-8 flex w-full flex-col items-center justify-between gap-y-4 md:mt-6 md:flex-row",children:[(0,a.jsx)("span",{className:"text-lg font-bold text-blue-royal",children:(null==i?void 0:i.meta.total)&&(null==i?void 0:i.meta.total)>0?"".concat(i.meta.total," ").concat(1===i.meta.total?"resultaat":"resultaten"):""}),(0,a.jsx)(p,{paginationData:null==i?void 0:i.meta,onClickPage:k,className:""})]}):(0,a.jsx)(a.Fragment,{}),(0,a.jsx)("div",{className:"min-h-[400px] space-y-4 lg:min-h-[600px]",children:!c||i||j?j?(0,a.jsxs)("div",{className:"prose",children:[(0,a.jsx)("h2",{className:"text-blue-royal",children:"Er is iets mis gegaan"}),(0,a.jsx)("p",{className:"text-blue-royal",children:"Probeer het later nog eens"})]}):(0,a.jsx)(a.Fragment,{children:(null==i?void 0:i.data.length)===0?(0,a.jsxs)("div",{className:"prose",children:[(0,a.jsx)("h2",{className:"text-blue-royal",children:"Geen resultaten"}),(0,a.jsx)("p",{className:"text-blue-royal",children:"We hebben geen resultaten gevonden voor uw zoekopdracht"})]}):(0,a.jsx)(a.Fragment,{children:i&&i.data.map((e,t)=>(0,a.jsx)(d,{member:e},t))})}):(0,a.jsx)(a.Fragment,{})}),!c||i||j?j?(0,a.jsx)(a.Fragment,{}):(0,a.jsxs)("div",{className:"mb-8 mt-8 flex flex-col items-center justify-between gap-y-4 md:flex-row",children:[(null==i?void 0:i.data)&&(null==i||null==(t=i.data)?void 0:t.length)>0&&(0,a.jsxs)("span",{className:"text-lg font-bold text-blue-royal",children:["Pagina ",null==i?void 0:i.meta.current_page," van ",null==i?void 0:i.meta.last_page]}),(0,a.jsx)(p,{paginationData:null==i?void 0:i.meta,onClickPage:k,className:""})]}):(0,a.jsx)(a.Fragment,{})]})})})}},9892:(e,t,l)=>{l.d(t,{b:()=>a});var a=function(e){return e.lid="lid",e.filiaal="filiaal",e.deelnemer="deelnemer",e.partner="partner",e}({})}}]);
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.