1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4437],{15492:(e,l,t)=>{t.r(l),t.d(l,{Button:()=>o});var a=t(95155),n=t(61822),s=t(66766),i=t(6874),r=t.n(i);t(12115);let o=e=>{let{variant:l,loading:t,url:i,large:o,background:d,active:c,arrowRight:u,download:x,...h}=e,f=(null==i?void 0:i.includes("http"))||(null==i?void 0:i.includes("tel:"))||(null==i?void 0:i.includes("mailto:")),m=()=>(0,a.jsxs)(a.Fragment,{children:[(null==i?void 0:i.includes("tel:"))?(0,a.jsx)(s.default,{unoptimized:!0,alt:"icon",src:"/icons/phone.svg",width:20,height:20,className:"mr-2 h-5 w-auto"}):null,e.children,u?(0,a.jsx)(s.default,{unoptimized:!0,alt:"arrow to right",width:15,height:15,className:"ml-2 h-4 w-auto transition-all group-hover:translate-x-1",src:u}):null,t?(0,a.jsx)(s.default,{unoptimized:!0,alt:"loading",src:"/ui/loader-round.svg",width:20,height:20,className:"ml-2 h-5 w-auto"}):null]});if("primary"===l){let l="relative w-full text-center flex items-center justify-center -translate-x-[5px] -translate-y-[5px] border-2 border-black bg-color-orange px-4 py-1 font-extraBold text-black transition-all duration-100 hover:brightness-95 active:translate-x-0 active:translate-y-0 disabled:translate-x-0 disabled:translate-y-0 disabled:opacity-50",t=(0,a.jsxs)("div",{className:(0,n.Y)(e,"group relative ml-1 mt-1 w-fit ".concat(o?"min-w-[150px]":"")),children:[(0,a.jsx)("div",{className:"absolute inset-0 translate-x-[0px] translate-y-[0px] border-2 border-transparent bg-black"}),i?(0,a.jsx)("div",{...h,style:d?{backgroundColor:d}:void 0,className:l,children:m()}):(0,a.jsx)("button",{...h,disabled:e.disabled||e.loading,style:d?{backgroundColor:d}:void 0,className:l,children:m()})]});return i?f?(0,a.jsx)("a",{className:"w-fit",href:i,target:i.includes("tel:")||i.includes("mailto:")?"_self":"_blank",rel:"noreferrer",tabIndex:e.tabIndex,download:!!x||void 0,children:t}):(0,a.jsx)(r(),{className:"w-fit",href:i,tabIndex:e.tabIndex,children:t}):t}if("secondary"===l){let l=(0,a.jsxs)(a.Fragment,{children:[e.children,(0,a.jsx)(s.default,{unoptimized:!0,alt:"arrow to right",width:20,height:20,className:"ml-2 mt-[-1px] h-5 w-auto transition-all group-hover:translate-x-1",src:"/icons/arrow-right.svg"})]}),t=(0,n.Y)(e,"group flex w-fit select-none items-center justify-center border-2 border-black bg-color-buttonGreen px-5 py-2 font-extraBold transition-all disabled:!scale-100 disabled:opacity-50");return i?f?(0,a.jsx)("a",{href:i,className:t,target:i.includes("tel:")||i.includes("mailto:")?"_self":"_blank",rel:"noreferrer",tabIndex:e.tabIndex,download:!!x||void 0,children:l}):(0,a.jsx)(r(),{className:t,href:i,tabIndex:e.tabIndex,children:l}):(0,a.jsx)("button",{...h,disabled:e.disabled||e.loading,className:t,children:l})}if("unstyled"===l){let l=(0,a.jsxs)(a.Fragment,{children:[e.children,(0,a.jsx)(s.default,{unoptimized:!0,alt:"arrow to bottom right",width:12,height:12,className:"ml-2 h-3 w-3 transition-all ".concat(c?"rotate-180":""),src:"/icons/arrow-bottom-right.svg"})]}),t=(0,n.Y)(e,"group -my-2 flex w-fit select-none items-baseline py-2 font-extraBold text-color-textBlue transition-all hover:brightness-90 disabled:!scale-100 disabled:opacity-50 group-hover:brightness-90");return i?f?(0,a.jsx)("a",{href:i,className:t,target:i.includes("tel:")||i.includes("mailto:")?"_self":"_blank",rel:"noreferrer",tabIndex:e.tabIndex,download:!!x||void 0,children:l}):(0,a.jsx)(r(),{className:t,href:i,tabIndex:e.tabIndex,children:l}):(0,a.jsx)("button",{...h,disabled:e.disabled||e.loading,className:t,children:l})}return null}},16800:(e,l,t)=>{t.d(l,{HeaderComponent:()=>N});var a=t(95155),n=t(15492),s=t(43705);let i=/^(https?:\/\/|tel:|mailto:)/i;var r=t(61614),o=t(66766),d=t(6874),c=t.n(d),u=t(35695),x=t(12115),h=t(43089);let f=(0,t(47830).o)({locales:["nl","en"],defaultLocale:"nl",localePrefix:"always",pathnames:{}}),{Link:m,getPathname:p,redirect:b,usePathname:v,useRouter:g}=(0,h.xp)(f);var w=t(27043);let j=e=>{let{onLocaleChange:l}=e,t=(0,w.useLocale)(),[n,s]=(0,x.useTransition)(),i=v(),r=g(),o=(0,u.useSearchParams)(),d=(0,w.useTranslations)("wcag");if(f.locales.length<2)return null;
1let c=e=>{s(()=>{let t=o.toString(),a=t?"".concat(i,"?").concat(t):i;r.replace(a,{locale:e}),null==l||l()})};return(0,a.jsxs)("div",{className:"flex gap-2",role:"group","aria-label":d("languageSwitcher"),children:[(0,a.jsx)("button",{className:"".concat(n?"!cursor-default":""," ").concat("nl"===t?"text-color-textBlue":"cursor-pointer text-black hover:text-color-textBlue"," font-expanded transition-colors"),onClick:()=>c("nl"),disabled:n||"nl"===t,"aria-label":d("switchToDutch"),"aria-pressed":"nl"===t,children:"NL"}),(0,a.jsx)("button",{className:"".concat(n?"!cursor-default":""," ").concat("en"===t?"text-color-textBlue":"cursor-pointer text-black hover:text-color-textBlue"," font-expanded transition-colors"),onClick:()=>c("en"),disabled:n||"en"===t,"aria-label":d("switchToEnglish"),"aria-pressed":"en"===t,children:"EN"})]})},N=e=>{var l,t,d,h;let{data:f}=e,m=(0,u.usePathname)(),p=(0,u.useSelectedLayoutSegments)(),b=p[0]?"/".concat(p[0]):"/",v=p.length<=1,{contactInformation:g}=(0,s.X)(),N=(0,w.useTranslations)("wcag"),[k,y]=(0,x.useState)(!1),[B,z]=(0,x.useState)(!1),[I,_]=(0,x.useState)(null),C=(0,x.useRef)(m),E=e=>"font-expanded text-xl leading-none xl:text-base ".concat(e?"cursor-default text-color-textBlue":"cursor-pointer text-black hover:text-color-textBlue");function L(){_(null)}return(0,x.useEffect)(()=>{C.current!==m&&k&&(y(!1),document.body.style.overflow="",z(!1)),C.current!==m&&_(null),C.current=m},[m,k]),(0,a.jsx)("nav",{id:"header",className:"fixed top-0 z-50 w-full border-b-2 border-black bg-white px-5 transition-all duration-500",children:(0,a.jsxs)("div",{className:"mx-auto flex h-[80px] select-none flex-col items-center justify-between gap-10 xl:flex-row xl:justify-between",children:[(0,a.jsxs)("div",{className:"flex h-full w-full items-center justify-between gap-10 xl:w-auto",children:[(0,a.jsx)("div",{className:"xl:shrink-0",children:(0,a.jsx)(c(),{className:"cursor-pointer",href:"/",children:(0,a.jsx)(o.default,{unoptimized:!0,className:"h-[48px] w-full max-w-[250px] object-contain xl:w-auto",src:"/global/logo.png",alt:"Logo",width:250,height:48})})}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-5 xl:hidden",children:[f.button?(0,a.jsx)(c(),{target:"_blank",href:(null===(l=f.button)||void 0===l?void 0:l.link)||"",children:(0,a.jsx)(o.default,{unoptimized:!0,src:"/global/test.svg",alt:"Logo",width:70,height:80})}):null,(0,a.jsx)("button",{onClick:function(){y(!k),B?(document.body.style.overflow="",z(!1)):(document.body.style.overflow="hidden",z(!0))},className:"relative h-[30px] w-[30px] cursor-pointer border-none bg-transparent p-0","aria-label":N(k?"closeMenu":"openMenu"),children:k?(0,a.jsx)("img",{src:"/components/header/books-open.png"}):(0,a.jsx)("img",{src:"/components/header/books-closed.png"})})]})]}),(0,a.jsxs)("div",{className:"xl:p-0' fixed left-0 top-[82px] flex h-[calc(100dvh-80px)] w-[100%] flex-col gap-10 overflow-y-auto bg-color-lightBlue p-5 transition-transform duration-300 xl:relative xl:left-0 xl:top-[initial] xl:h-auto xl:translate-x-0 xl:flex-row xl:items-center xl:overflow-y-visible xl:bg-transparent ".concat(k?"translate-x-0":"translate-x-full"),children:[(0,a.jsx)("div",{className:"flex w-full flex-col justify-start gap-5 xl:flex-row 2xl:justify-start 2xl:gap-10",children:null===(t=f.navigation)||void 0===t?void 0:t.map(e=>{let l=e.page;if("dropdown"===e.type){var t,s,d,u,x,h,f,p,g;let l=I===e.id;return(0,a.jsxs)("div",{className:"".concat(l||k?"":"pointer-events-none"," relative flex items-center xl:pointer-events-auto"),children:[(0,a.jsx)("button",{onMouseEnter:()=>{_(e.id||"")},onClick:()=>(function(e){_(l=>l===e?null:e)})(e.id||""),className:"hidden cursor-pointer items-center !font-expanded leading-none text-black xl:flex",children:(0,a.jsxs)("span",{className:"flex items-center !font-expanded",children:[e.label,l?(0,a.jsx)("svg",{className:"ml-1 h-4 w-4 rotate-180 transform",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})}):(0,a.jsx)("svg",{className:"ml-1 h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]})}),(0,a.jsxs)("div",{onMouseLeave:L,onKeyDown:e=>"Escape"===e.key&&L(),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||L()},className:"relative left-0 top-0 mb-5 w-full rounded-none border-2 border-black bg-color-lightGreen shadow-lg xl:absolute xl:z-50 xl:w-auto xl:translate-y-[52px] ".concat(l||k?"xl:!opacity-100":"pointer-events-none xl:!opacity-0"),children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1 xl:gap-0",children:[(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsxs)("div",{className:"flex w-full flex-col gap-5 p-4 pr-0 sm:pr-4 xl:w-max",children:[e.title||e.subtitle?(0,a.jsxs)("div",{className:"",children:[(0,a.jsx)("p",{className:"h4 !font-expandedRegular !text-sm sm:!text-inherit",children:e.title}),(0,a.jsx)("p",{className:"h4 whitespace-pre-line !font-expanded uppercase",children:e.subt
1itle})]}):null,(null===(t=e.dropdownItems)||void 0===t?void 0:t.length)?(0,a.jsx)("div",{className:"flex flex-col gap-4",children:e.dropdownItems.map(e=>{let t=null==e?void 0:e.page,n=v&&b===((null==t?void 0:t.slug)||"")||null!=e&&!!e.link&&m===e.link;return(0,a.jsx)(c(),{"aria-current":n?"page":void 0,tabIndex:l?0:-1,href:(null==t?void 0:t.slug)||(null==e?void 0:e.link)||"",className:"font-expanded text-xl ".concat(n?"cursor-default text-color-textBlue":"cursor-pointer text-black hover:text-color-textBlue"),children:(null==t?void 0:t.title)||(null==e?void 0:e.title)},e.id)})}):null,(null===(d=e.dropdownButton)||void 0===d?void 0:null===(s=d.button)||void 0===s?void 0:s.label)&&(0,a.jsx)("div",{className:"hidden w-full whitespace-nowrap xl:flex",children:(0,a.jsx)(n.Button,{url:null===(u=e.dropdownButton.button)||void 0===u?void 0:u.link,variant:"secondary",tabIndex:l?0:-1,children:null===(x=e.dropdownButton.button)||void 0===x?void 0:x.label})})]}),(0,a.jsxs)("div",{className:"pointer-events-none",children:[e.image&&(0,a.jsx)("div",{className:"relative hidden h-[214px] w-[214px] overflow-hidden p-4 sm:flex",children:(0,a.jsx)(o.default,{src:(0,r.$E)(e.image,"url"),alt:(0,r.$E)(e.image,"alt"),height:500,width:500,className:"object-contain"})}),e.imageMobile&&(0,a.jsx)("div",{className:"relative flex h-auto w-[140px] overflow-hidden p-4 pl-0 sm:hidden",children:(0,a.jsx)(o.default,{src:(0,r.$E)(e.imageMobile,"url"),alt:(0,r.$E)(e.imageMobile,"alt"),height:500,width:500,className:"aspect-square object-contain"})})]})]}),(null===(f=e.dropdownButton)||void 0===f?void 0:null===(h=f.button)||void 0===h?void 0:h.label)&&(0,a.jsx)("div",{className:"w-full whitespace-nowrap px-4 pb-4 xl:hidden",children:(0,a.jsx)(n.Button,{url:null===(p=e.dropdownButton.button)||void 0===p?void 0:p.link,variant:"secondary",tabIndex:l?0:-1,children:null===(g=e.dropdownButton.button)||void 0===g?void 0:g.label})})]}),(0,a.jsx)(o.default,{unoptimized:!0,src:"/components/header/spikes.png",className:"absolute bottom-0 left-0 h-[7px] w-full translate-y-[7px] xl:hidden",alt:"Spikes",width:400,height:20})]})]},e.id)}if("external"===e.type){let l=e.link||"";if(function(e){let l=e.trim();return!(!l||l.startsWith("/")||l.startsWith("#"))&&(i.test(l)||l.includes("."))}(l)){let t=function(e){let l=e.trim();return!l||i.test(l)?l:"https://".concat(l)}(l),n=!t.startsWith("tel:")&&!t.startsWith("mailto:");return(0,a.jsx)("a",{href:t,target:n?"_blank":void 0,rel:n?"noreferrer":void 0,className:E(!1),children:e.label},e.id)}let t=m===l;return(0,a.jsx)(c(),{"aria-current":t?"page":void 0,href:l,className:E(t),children:e.label},e.id)}let w=v&&b===l.slug;return(0,a.jsx)(c(),{"aria-current":w?"page":void 0,href:l.slug,className:E(w),children:l.title},e.id)})}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-10",children:[(0,a.jsxs)("div",{className:"flex w-full flex-row-reverse justify-between gap-10 xl:flex-row",children:[(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-5 xl:hidden 2xl:flex",children:[(null==g?void 0:g.facebook)&&(0,a.jsx)(c(),{href:g.facebook,target:"_blank",children:(0,a.jsx)("div",{className:"h-6 w-6 xl:h-5 xl:w-5",children:(0,a.jsx)(o.default,{unoptimized:!0,className:"h-full w-full object-contain",src:"/icons/socials/facebook.svg",alt:"Facebook",height:16,width:16})})}),(null==g?void 0:g.twitter)&&(0,a.jsx)(c(),{href:g.twitter,target:"_blank",children:(0,a.jsx)("div",{className:"h-6 w-6 xl:h-5 xl:w-5",children:(0,a.jsx)(o.default,{unoptimized:!0,className:"h-full w-full object-contain",src:"/icons/socials/x.svg",alt:"Twitter",height:16,width:16})})}),(null==g?void 0:g.youtube)&&(0,a.jsx)(c(),{href:g.youtube,target:"_blank",children:(0,a.jsx)("div",{className:"h-6 w-6 xl:h-5 xl:w-5",children:(0,a.jsx)(o.default,{unoptimized:!0,className:"h-full w-full object-contain",src:"/icons/socials/youtube.svg",alt:"YouTube",height:16,width:16})})}),(null==g?void 0:g.spotify)&&(0,a.jsx)(c(),{href:g.spotify,target:"_blank",children:(0,a.jsx)("div",{className:"h-6 w-6 xl:h-5 xl:w-5",children:(0,a.jsx)(o.default,{unoptimized:!0,className:"h-full w-full object-contain",src:"/icons/socials/spotify.svg",alt:"Spotify",height:16,width:16})})}),(null==g?void 0:g.instagram)&&(0,a.jsx)(c(),{href:g.instagram,target:"_blank",children:(0,a.jsx)("div",{className:"h-6 w-6 xl:h-5 xl:w-5",children:(0,a.jsx)(o.default,{unoptimized:!0,className:"h-full w-full object-contain",src:"/icons/socials/instagram.svg",alt:"Instagram",height:16,width:16})})}),(null==g?void 0:g.tiktok)&&(0,a.jsx)(c(),{href:g.tiktok||"",target:"_blank",children:(0,a.jsx)("div",{className:"h-6 w-6 xl:h-5 xl:w-5",children:(0,a.jsx)(o.default,{unoptimized:!0,className:"h-full w-full object-contain",src:"/icons/socials/tiktok.svg",alt:"TikTok",height:16,width:16})})}),(0,a.jsx)(c(),{href:"/newsletter",children:(0,a.jsx)("div",{className:"h-6 w-6 xl:h-5 xl:w-5",children:(0,a.jsx)(o.default,{unoptimized:!0,className:"h-full w-full object-contain",src:"/icons/socials/newsletter.svg",alt:"Newsletter",height:16,width:16})})})]}),(0,a.jsx)(x.Suspense,{fallback:(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("span",{className:"font-expanded text-black",children:"NL"}),(0,a.jsx)("span",{className:"font-expanded text-black",children:"EN"})]}),children:(0,a.jsx)(j,{onLocaleChange:()=>{y(!1),document.body.style.overflow="",z(!1)}})})]}),f.button?(0,a.jsx)("div",{className:"hidden xl:flex",children:(0,a.jsx)(n.Button,{url:null===(d=f.button)||void 0===d?void 0:d.link,variant:"primary",children:null===(h=f.button)||void 0===h?void 0:h.label})}):null]})]})]})})}},43705:(e,l,t)=>{t.d(l,{ClientGlobalProvider:()=>d,X:()=>o});var a=t(95155),n=t(90350),s=t.n(n),i=t(12115);let r=(0,i.createContext)(void 0),o=()=>{let e=(0,i.useContext)(r);if(!e)throw Error("useGlobalData must be used within ClientGlobalProvider");return e},d=e=>{let{children:l,data:t}=e;return(0,i.useEffect)(()=>{s().tz.setDefault("Europe/Amsterdam")},[]),(0,a.jsx)(r.Provider,{value:t,children:l})}},50656:(e,l,t)=>{t.d(l,{RefreshRouteOnSave:()=>i});var a=t(95155),n=t(31833),s=t(35695);let i=()=>{let e=(0,s.useRouter)();return(0,a.jsx)(n.p,{refresh:()=>e.refresh(),serverURL:"https://www.crossingborder.nl"})}},61614:(e,l,t)=>{function a(e){return"object"==typeof e&&null!==e&&"url"in e&&"alt"in e}t.d(l,{$E:()=>n}),t(49509);let n=(e,l)=>a(e)?e[l]||"":!function(e){return"object"==typeof e&&null!==e&&"url"in e&&"filename"in e}(e)?s(e)?e.map(e=>n(e,l)).join(", "):"":e.url||"",s=e=>Array.isArray(e)&&e.every(e=>a(e))},61822:(e,l,t)=>{t.d(l,{Y:()=>a});let a=(e,l)=>l+(e.className?" "+e.className:"")},77621:(e,l,t)=>{t.d(l,{PageAnimation:()=>i});var a=t(95155),n=t(67596),s=t(35695);t(12115);let i=e=>{let l=(0,s.usePathname)();return(0,a.jsx)(n.P.div,{style:{maxWidth:"100vw",width:"100%"},children:e.children},l)}}}]);
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.