1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6822],{63786:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/jouwcrow/cursussen",function(){return s(10349)}])},65037:function(e,n,s){"use strict";s.d(n,{J:function(){return o}});var r=s(85893);s(67294);var a=s(36093),t=s(86010),i=s(92923),l=s(11163);let o=e=>{let{dataTestId:n,className:s,htmlMainClassName:o,children:u,navigationProps:c,notificationBarProps:d,footerProps:m,seoProps:p,preview:h=!1,previewRedirectUrl:v="/",renderHero:g,autoMargin:f,filterMenuItemsVisibility:x,shouldBeindexed:j,nextPaginatedPath:y}=e;(0,i.ek)();let b=(0,l.useRouter)(),w=!b.asPath.includes("?")&&!b.asPath.includes("&");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.eF,{seoProps:p,shouldBeindexed:void 0!==j?j:w}),(0,r.jsx)(a.OZ,{}),h&&(0,r.jsx)(a.W$,{previewRedirectUrl:v}),d&&(0,r.jsx)(a.o4,{...d}),c&&(0,r.jsx)(a.h4,{...c,filterMenuItemsVisibility:x}),g&&(0,r.jsx)("div",{id:"heroContainer",children:g()}),(0,r.jsx)("div",{className:(0,t.Z)("flex-grow px-6",s),id:"main-content",children:(0,r.jsx)("main",{className:(0,t.Z)("grid grid-cols-12 md:container lg:pt-0",{"mb-12 space-y-12 md:mb-20 md:space-y-20":f},o),"data-testid":null==n?void 0:n.concat("-main"),children:u})}),m&&(0,r.jsx)(a.$_,{...m,dataTestId:"footer",id:"footer-content"})]})}},48960:function(e,n,s){"use strict";s.d(n,{f:function(){return m}});var r=s(85893),a=s(86010),t=s(36093),i=s(17954),l=s(65037),o=s(11163),u=s(2618);s(67294);var c=s(48583),d=s(39153);let m=e=>{let{dataTestId:n="your-crow-layout",className:s,activePath:m,breadcrumbs:p=[],seoProps:h,children:v,showTitle:g=!0,...f}=e,x=(0,o.useRouter)(),j=(0,c.Dv)(d.i),y=(0,u.S)({canManageSubscriptions:j.canManageSubscriptions}),b=y.sort((e,n)=>e.order-n.order).sort(e=>e.pageLink.url===m?-1:0),w=[{url:i.nB.HOME,title:"Home"},{url:i.nB.YOUR_CROW_HOME,title:"Jouw CROW"},...p];return(0,r.jsxs)(l.J,{...f,dataTestId:n,className:(0,a.Z)("mb-10 table overflow-hidden md:mb-20",s),seoProps:h,filterMenuItemsVisibility:{theme:!1,sorting:!1,productType:!0,purchaseType:!1},children:[(0,r.jsx)(t.aG,{crumbs:w,inverse:!1,className:"col-span-12 mb-8"}),(0,r.jsx)("div",{className:"col-span-12 -mx-6 mb-8 flex gap-2 overflow-x-scroll px-6 pb-4 lg:hidden",children:b.map(e=>(0,r.jsx)(t.zx,{variant:e.pageLink.url===m?"primary":"secondary",LeadingIcon:(0,r.jsx)(t.qZ,{name:e.icon}),onPress:()=>x.push(e.pageLink.url),"aria-label":e.ariaLabel,children:e.pageLink.title},e.icon))}),(0,r.jsx)("div",{className:"relative col-span-12 hidden md:col-span-3 lg:block",children:(0,r.jsx)("nav",{title:"sidebar-nav",className:"sticky top-[20px]",children:(0,r.jsx)("ul",{className:"flex flex-col space-y-6",children:y.sort((e,n)=>e.order-n.order).map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(t.nW,{variant:"tiny","aria-label":"Ga naar ".concat(e.pageLink.title),href:e.pageLink.url,LeadingIcon:(0,r.jsx)(t.qZ,{name:e.icon,className:"min-h-[22px] min-w-[22px] fill-primary",size:22}),className:(0,a.Z)({"!text-primary-900 underline":e.pageLink.url===m},"!decoration-primary"),active:e.pageLink.url===m,underline:!0,children:e.pageLink.title})},e.icon))})})}),(0,r.jsxs)("div",{className:"col-span-12 lg:col-span-9",children:[g&&(0,r.jsx)(t.ZT,{variant:"h3",as:"h1",className:"mb-2",children:"Jouw CROW"}),v]})]})}},10349:function(e,n,s){"use strict";let r;s.r(n),s.d(n,{__N_SSP:function(){return w},default:function(){return N}});var a=s(85893),t=s(67294);let i="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var l={randomUUID:i};let o=new Uint8Array(16),u=[];for(let e=0;e<256;++e)u.push((e+256).toString(16).slice(1));var c=function(e,n,s){return!l.randomUUID||n||e?function(e,n,s){e=e||{};let a=e.random??e.rng?.()??function(){if(!r){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");r=crypto.getRandomValues.bind(crypto)}return r(o)}();if(a.length<16)throw Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,n){if((s=s||0)<0||s+16>n.length)throw RangeError(`UUID byte range ${s}:${s+15} is out of buffer bounds`);for(let e=0;e<16;++e)n[s+e]=a[e];return n}return function(e,n=0){return(u[e[n+0]]+u[e[n+1]]+u[e[n+2]]+u[e[n+3]]+"-"+u[e[n+4]]+u[e[n+5]]+"-"+u[e[n+6]]+u[e[n+7]]+"-"+u[e[n+8]]+u[e[n+9]]+"-"+u[e[n+10]]+u[e[n+11]]+u[e[n+12]]+u[e[n+13]]+u[e[n+14]]+u[e[n+15]]).toLowerCase()}(a)}(e,n,s):l.randomUUID()},d=s(48960),m=s(36093),p=s(17954),h=s(4045),v=s(88767),g=s(55425),f=s(21614);let x=(e,n)=>{let{customHeaders:s}=(0,f._)(),r=(0,g.xn)({customHeaders:s}),a=(0,v.useQuery)(["pastCourses",e],()=>r.getPastCourses({currentPage:e,itemsPerPage:h._y}),n);return{pastCourses:a}};var j=s(11163);let y=(e,n)=>{var s,r,a,t;let i=null===(s=null===(r=e.allVariants)||void 0===r?void 0:r.find(n=>{var s;return null===(s=e.upcomingPurchasedVariantSkus)||void 0===s?void 0:s.includes(n.sku)}))||void 0===s?void 0:s.startDate,l=null===(a=null===(t=n.allVariants)||void 0===t?void 0:t.find(e=>{var s;return null===(s=n.upcomingPurchasedVariantSkus)||void 0===s?void 0:s.includes(e.sku)}))||void 0===a?void 0:a.startDate;return new Date(i).getTime()-new Date(l).getTime()},b=e=>{var n,s,r,i,l,o,u,v,g;let{dataTestId:f="your-crow-courses",themes:b,seoProps:w,me:N,...k}=e;(0,j.useRouter)();let[P,_]=t.useState(null!==(o=null==N?void 0:null===(n=N.upcomingCourses)||void 0===n?void 0:n.items)&&void 0!==o?o:[]),C=P.map(e=>e.upcomingPurchasedVariantSkus?{...e,purchasedVariantSku:e.upcomingPurchasedVariantSkus}:e),[S,R]=t.useState(null!==(u=null==N?void 0:null===(s=N.pastCourses)||void 0===s?void 0:s.items)&&void 0!==u?u:[]),[U,T]=t.useState(null!==(v=null==N?void 0:null===(r=N.pastCourses)||void 0===r?void 0:r.pagination)&&void 0!==v?v:{...h._H,perPage:h._y}),[O,I]=t.useState(null!==(g=null==N?void 0:null===(i=N.pastCourses)||void 0===i?void 0:null===(l=i.pagination)||void 0===l?void 0:l.currentPage)&&void 0!==g?g:1),{pastCourses:L}=x(O,{onSuccess:e=>{var n;if(!e||!e.me)return;let s=null!==(n=e.me.pastCourses.pagination)&&void 0!==n?n:h._H;if(U.currentPage!==s.currentPage){let n=e.me.pastCourses.items;R(e=>[...e,...n])}else R(e.me.pastCourses.items);T(s),I(s.currentPage)}}),V=()=>{I(O+1)};return(0,a.jsxs)(d.f,{activePath:p.nB.YOUR_CROW_COURSES,dataTestId:f,seoProps:w,breadcrumbs:[{url:p.nB.YOUR_CROW_COURSES,title:"Cursussen"}],...k,children:[(0,a.jsx)(m.ZT,{variant:"h1",as:"h2",children:"Cursussen"}),0===C.length&&0===S.length&&(0,a.jsx)(m.ZT,{variant:"p",className:"!mt-3",customColor:"text-arsenic-400",children:"U heeft nog geen Cursussen aangeschaft."}),C.length>0&&(0,a.jsxs)("section",{className:"mb-[106px]",children:[(0,a.jsx)(m.ZT,{variant:"h4",children:"Al jouw aankomende Cursussen"}),(0,a.jsx)("ul",{className:"mt-10 grid grid-cols-8 gap-6 md:mt-12",children:C.sort(y).map((e,n)=>(0,a.jsx)("li",{className:"col-span-12",children:(0,a.jsx)(m.Qu,{dataTestId:null==f?void 0:f.concat("-course-card-".concat(n)),course:e,className:"h-full"},e.id)},c()))})]}),S.length>0&&(0,a.jsxs)("section",{children:[(0,a.jsx)(m.ZT,{variant:"h4",children:"Al jouw afgelopen Cursussen"}),(0,a.jsxs)("ul",{className:"mt-10 grid grid-cols-12 gap-6 md:mt-12",children:[L.isLoading&&[,,,,].fill(1).map((e,n)=>(0,a.jsx)("li",{className:"col-span-12 md:col-span-6 lg:col-span-4",children:(0,a.jsx)(m.Uf,{})},n)),S.map((e,n)=>(0,a.jsx)("li",{className:"col-span-12 md:col-span-6",children:(0,a.jsx)(m.Pg,{dataTestId:null==f?void 0:f.concat("-course-card-".concat(n)),course:e,className:"h-full",showSelectedVarientDate:!0,showPrice:!1},e.id)},c()))]})]}),U.currentPage<U.totalPages&&(0,a.jsx)("div",{className:"flex w-full items-center justify-center",children:(0,a.jsx)(m.zx,{variant:"secondary",className:"mt-4 w-fit justify-center","aria-label":"Bekijk meer afgelopen cursussen",onPress:V,children:"Bekijk meer"})})]})};var w=!0,N=b}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=63786)}),_N_E=e.O()}]);
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.