(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{"/Y4e":function(e,a,t){"use strict";t.d(a,"a",(function(){return n}));var l=t("xOBo");function n(e){return Object(l.g)({...e,email:e.emails?e.emails.items[0].email:"",phone:e.phones&&e.phones.items.length>0?e.phones.items[0].phone:"",dateOfBirth:e.date_of_birth?Object(l.b)(e.date_of_birth).toFormat("dd/LL/yyyy"):""})}},"2bHd":function(e,a,t){"use strict";t.d(a,"a",(function(){return _}));var l=t("q1tI"),n=t.n(l),c=t("CN8t"),r=t("vDqi"),i=t("tsAR"),s=t("dCQc"),o=t("95/9"),m=t("Ys8a");t("e4OT");var u=function(){const{0:e}=Object(l.useState)(9),{currentTrack:a,setTrack:t}=Object(i.b)();return Object(l.useEffect)(()=>{!async function(e){try{await Object(r.get)(Object(s.c)(e)).then(e=>{t(e.data.data[0])})}catch(a){t(null)}}(e)},[]),Object(l.useEffect)(()=>{const a=setInterval(()=>{!async function(e){try{await Object(r.get)(Object(s.c)(e)).then(e=>{t(e.data.data[0])})}catch(a){t(null)}}(e)},6e4);return()=>clearInterval(a)},[]),n.a.createElement("div",{className:"player-small"},n.a.createElement("div",{className:"player-small__inner"},n.a.createElement("div",{className:"player-small__current"},n.a.createElement("button",{onClick:()=>{window.open("/luister/playnostalgie","_blank","width=420,height=662")},className:"player-small__current--inner"},n.a.createElement("div",{className:"player-small__current--visual"},n.a.createElement("img",{src:a?a.cover_art:"",alt:""})),n.a.createElement("div",{className:"player-small__current--track"},n.a.createElement("h3",{className:"name"},a?a.title:""),n.a.createElement("h4",{className:"artist"},a?a.artist:"")),n.a.createElement("div",{className:"player-small__current--btn"},n.a.createElement("span",{className:"btn--play"},n.a.createElement(m.a,{name:"play"}))))),n.a.createElement("div",{className:"player-small__stations"},n.a.createElement(o.a,{isCompact:!0}))))},d=t("6fbM"),b=t("kx4G"),E=t("RS1n"),g=(t("7svR"),t("CzKt")),p=t("gsAb"),v=t("M6IM"),f=t("m5lB"),y=t("l1NG"),h=t("YwZP"),O=t("L2o3");function _(e){let{children:a,page:t,variant:r=""}=e;const{0:i,1:s}=Object(l.useState)(!1),{0:o,1:m}=Object(l.useState)(!1),{0:_,1:j}=Object(l.useState)("login"),w=()=>m(!o);p.a.modal=Object(v.a)(),p.a.tracks=Object(f.a)();const N=Object(h.useLocation)();Object(l.useEffect)(()=>{N.search.includes("show=register")?(j("register"),p.a.modal.setShowAuthModal(!p.a.modal.loginModal)):N.search.includes("show=login")&&(j("login"),p.a.modal.setShowAuthModal(!p.a.modal.loginModal))},[N]);return n.a.createElement(b.a,null,n.a.createElement(y.a,{onCookiesAccepted:()=>s(!0)},n.a.createElement("div",{className:"nostalgie "+r},n.a.createElement(g.a,{page:t,cookiesAccepted:i}),n.a.createElement(O.a,{variant:null!=r?r:"",onPressSearch:w,onPressLogin:()=>{p.a.modal.setShowAuthModal(!p.a.modal.loginModal)},theme:"Home"===t?"light":"dark"}),n.a.createElement("div",{className:"page-content"},a),n.a.createElement(c.a,{variant:null!=r?r:""}),n.a.createElement(d.a,{visible:o,handleClose:w}),n.a.createElement(E.a,{visible:p.a.modal.loginModal,close:()=>p.a.modal.setShowAuthModal(!p.a.modal.loginModal),activeTab:_})),n.a.createElement(u,null)))}},FY0X:function(e,a,t){},"G/GC":function(e,a,t){"use strict";var l=t("q1tI"),n=t.n(l);a.a=function(e){const{children:a}=e;return n.a.createElement("div",{className:"grid--more"},n.a.createElement("p",null,a))}},ISo7:function(e,a,t){},LTK8:function(e,a,t){"use strict";var l=t("q1tI"),n=t.n(l),c=(t("nM9L"),t("uXqw")),r=t("nll4"),i=t("KTnM"),s=t("sDk0"),o=t("j10K"),m=t("mOSi"),u=t("CZwz"),d=t("ECkX"),b=t.n(d),E=t("q5QH"),g=t("qhky"),p=t("8z8T"),v=t("gsAb"),f=t("tsAR"),y=t("VaOL"),h=t("/Y4e"),O=t("nk2p"),_=t("Ys8a");a.a=function(e){let{visible:a,onClickClose:t,data:d,animating:j}=e;const{getQualifioToken:w,getMeByAccessToken:N}=Object(f.b)(),{0:k,1:S}=Object(l.useState)(!1),{0:C,1:q}=Object(l.useState)(null),{accessToken:I}=Object(y.a)(),{me:M}=Object(O.a)(),{0:T,1:A}=Object(l.useState)(null);return setTimeout(()=>{window.instgrm&&a&&window.instgrm.Embeds.process(),window.opix&&a&&opix("event","View",{publication:d.id})},1e3),Object(l.useEffect)(()=>{I&&0===Object.keys(M).length?N(I).then(e=>{A(Object(h.a)(e))}):M&&0!==Object.keys(M).length&&A(M)},[I,N,M]),Object(l.useEffect)(()=>{if(T&&o.a===d.model_id&&Object(i.z)(d.qualifio_campaign_id)){var e,a,t;const l=(null==T||null===(e=T.addresses)||void 0===e||null===(a=e.items)||void 0===a?void 0:a.length)>0?T.addresses.items[0]:null,n={payload:{campaignId:Object(i.z)(d.qualifio_campaign_id),userId:T.id,limit:{nb:Object(i.A)(d.qualifio_participate_limit)},form:{firstname:null==T?void 0:T.firstName,lastname:null==T?void 0:T.lastName,email:null==T?void 0:T.email,zipcode:null==l?void 0:l.zipcode,country:null==l?void 0:l.country,address:null==l?void 0:l.street,number:null==l?void 0:l.house_number,city:null==l?void 0:l.city,locality:null==l?void 0:l.city,birthday:null==T?void 0:T.dateOfBirth,gender:null==T?void 0:T.gender,phone:null==T||null===(t=T.phone)||void 0===t?void 0:t.slice(2)}}};w(n).then(e=>{if(200===e.status){const{token:a}=e.data;q(a)}})}},[T,d,w]),Object(l.useEffect)(()=>{var e;null!=d&&null!==(e=d.livestream_url)&&void 0!==e&&e.body&&a&&S(!0)},[d,a]),n.a.createElement(n.a.Fragment,null,a&&n.a.createElement("div",{className:"home__modal"+(j?" animating":"")},n.a.createElement("div",{className:"modal__inner"},n.a.createElement("button",{className:"modal__close",onClick:()=>{S(!1),t()}},n.a.createElement(_.a,{name:"close"})),n.a.createElement("div",{className:"modal__box"},n.a.createElement("div",{className:"modal__visual"},n.a.createElement("img",{src:Object(u.a)(Object(i.E)(Object(E.r)("image_website_detail",d.image,null,null,d.image_website_detail)),900,420),alt:Object(i.F)(d.image)})),n.a.createElement("div",{className:"modal__content"},n.a.createElement(r.a,null,Object(i.O)(d.title)),d.layout&&Array.isArray(d.layout.items)?d.layout.items.map((e,a)=>Object(m.b)(e,a)):null,d.model_id!==o.a&&d.iframe&&n.a.createElement(b.a,{html:d.iframe.body}),[o.a,o.k].includes(d.model_id)&&d.qualifio&&n.a.createElement(n.a.Fragment,null,n.a.createElement(n.a.Fragment,null,T?n.a.createElement(s.a,{src:`${Object(i.y)(d.qualifio)}&qual_token=${C}`}):n.a.createElement("div",{className:"not-logged-in"},n.a.createElement("p",null,n.a.createElement("strong",null,"Aanmelden om deel te nemen "),n.a.createElement("br",null),"Je moet aangemeld zijn om deel te nemen aan deze actie.",n.a.createElement("br",null)),n.a.createElement(p.a,{primary:!0,large:!0,onClick:()=>v.a.modal.setShowAuthModal(!0)},"Aanmelden")))),k&&n.a.createElement(n.a.Fragment,null,n.a.createElement(g.a,null,n.a.createElement("script",{src:"/livestream/player.js",async:!0,onload:"playerLoaded();"}),n.a.createElement("script",null,`\n function playerLoaded() {\n var player = new Playerjs({id:"fluidPlayer", file: "${d.livestream_url.body}", poster:"/livestream/poster.jpg"});\n }\n `)),n.a.createElement("div",{className:"livestream-player",id:"fluidPlayer"}))),n.a.createElement(c.a,{date:Object(i.x)(d.publish_on)}))),n.a.createElement("div",{onClick:()=>{S(!1),t()},className:"modal__backdrop"})))}},OwOO:function(e,a,t){"use strict";t.d(a,"a",(function(){return i}));var l=t("q1tI"),n=t.n(l),c=t("sZxp"),r=t.n(c);function i(){return n.a.createElement("div",{className:"card loading-card"},n.a.createElement("div",{onClick:()=>null,className:"card__inner"},n.a.createElement("div",{className:"card__visual"},n.a.createElement(r.a,{width:"100%",height:"100%",circle:!1})),n.a.createElement("div",{className:"card__content"},n.a.createElement(r.a,{width:250,height:29}))))}},SZp0:function(e,a,t){"use strict";t.d(a,"a",(function(){return r}));var l=t("q1tI"),n=t.n(l),c=t("2bHd");function r(e,a){return function(t){return n.a.createElement(c.a,a,n.a.createElement(e,t))}}},VcRX:function(e,a,t){"use strict";t.d(a,"a",(function(){return E}));var l=t("TSYQ"),n=t.n(l),c=t("q1tI"),r=t.n(c),i=t("sZxp"),s=t.n(i),o=t("CON8"),m=t("CZwz"),u=t("q5QH"),d=t("KTnM"),b=t("s6NK");t("FY0X");function E(e){let{isCompact:a,_className:t}=e;const l=t||"";return r.a.createElement("div",{className:`main-content container ${l}${a?" compact":""}`},r.a.createElement("div",{className:"main-content__visual"},r.a.createElement(s.a,{width:"100%",height:"100%"})),r.a.createElement("div",{className:"main-content__inner"},r.a.createElement("div",{className:"main-content__inner--content"},r.a.createElement(s.a,{width:"100%",height:60,count:2}),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(s.a,{width:"100%",height:20,count:15}))))}a.b=function(e){const{headerComponent:a,image:t,imageInternal:l,image_website_block:c,image_website_carousel:i,image_website_detail:s,children:E,label:g,color:p,isCompact:v,_className:f,imageType:y,headerWidth:h,headerHeight:O}=e,_=f||"";return r.a.createElement("div",{className:`main-content container ${_}${v?" compact":""}`,style:p?{borderTopColor:Object(d.e)(p),borderTopWidth:"9px",borderTopStyle:"solid"}:null},r.a.createElement("div",{className:n()("main-content__visual",{"main-content__visual--custom":!a})},g&&r.a.createElement("div",{className:"main-content__visual--label",style:p?{backgroundColor:Object(d.e)(p)}:null},r.a.createElement(b.a,{color:o.a.neutral,isCompact:!0,className:"label--logo"}),r.a.createElement("span",null,Object(d.o)(g))),a||(l?r.a.createElement("img",{src:l,alt:Object(d.F)(t)}):r.a.createElement("img",{src:Object(m.a)(Object(d.E)(Object(u.r)(y,t,i,c,s)),null!=h?h:1200,null!=O?O:560),alt:Object(d.F)(t)}))),r.a.createElement("div",{className:"main-content__inner"},r.a.createElement("div",{className:"main-content__inner--content"},E)))}},Xe3Q:function(e,a,t){},ZQVk:function(e,a,t){},bKZG:function(e,a,t){e.exports=t.p+"static/hero-contact-ba6a42136d326994748cc2faf2c89df2.jpg"},d47c:function(e,a,t){"use strict";var l=t("q1tI"),n=t.n(l),c=(t("ISo7"),t("Wbzz")),r=t("CZwz"),i=t("Ys8a");a.a=function(e){const{title:a,image:t,route:l,type:s,color:o,onClickCard:m,instagramImage:u}=e;return n.a.createElement("div",{className:"card "+s},"instagram"!==s?n.a.createElement("div",{onClick:()=>function(e){["vote","top-list","podcast","action","nostalgie-plus-home","nostalgie-plus-sub"].includes(e)?Object(c.navigate)(l):m()}(s),className:"card__inner"},n.a.createElement("div",{className:"card__visual"},n.a.createElement("img",{src:Object(r.a)(t,385,250),alt:a})),n.a.createElement("div",{className:"card__content",style:{backgroundColor:o}},n.a.createElement("h3",{className:"card--title"},a))):n.a.createElement("a",{href:"https://www.instagram.com/nostalgiewhatafeeling/",target:"_blank",rel:"noopener noreferrer",className:"card__inner"},n.a.createElement("div",{className:"card__visual"},n.a.createElement("img",{src:u,alt:a})),n.a.createElement("div",{className:"card__content",style:{backgroundColor:o}},n.a.createElement("div",{className:"instagram"},n.a.createElement("span",{className:"instagram--icon"},n.a.createElement(i.a,{name:"instagram"})),n.a.createElement("p",{className:"instagram--name"},"nostalgiewhatafeeling")))))}},e4OT:function(e,a,t){},nM9L:function(e,a,t){},nZ7A:function(e,a,t){},sDk0:function(e,a,t){"use strict";var l=t("q1tI"),n=t.n(l),c=t("YVoz"),r=t.n(c);var i=e=>{let{url:a,allowFullScreen:t,position:l,display:c,height:i,width:s,overflow:o,styles:m,onLoad:u,onMouseOver:d,onMouseOut:b,scrolling:E,id:g,frameBorder:p,ariaHidden:v,sandbox:f,allow:y,className:h,title:O,ariaLabel:_,ariaLabelledby:j,name:w,target:N,loading:k,importance:S,referrerpolicy:C,allowpaymentrequest:q,src:I,key:M}=e;const T=r()({src:I||a,target:N||null,style:{position:l||null,display:c||"initial",overflow:o||null},scrolling:E||null,allowpaymentrequest:q||null,importance:S||null,sandbox:f&&[...f].join(" ")||null,loading:k||null,styles:m||null,name:w||null,className:h||null,allowFullScreen:"allowFullScreen",referrerpolicy:C||null,title:O||null,allow:y||null,id:g||null,"aria-labelledby":j||null,"aria-hidden":v||null,"aria-label":_||null,width:s||null,height:i||null,onLoad:u||null,onMouseOver:d||null,onMouseOut:b||null,key:M||"iframe"});let A=Object.create(null);for(let n of Object.keys(T))null!=T[n]&&(A[n]=T[n]);for(let n of Object.keys(A.style))null==A.style[n]&&delete A.style[n];if(A.styles)for(let n of Object.keys(A.styles))A.styles.hasOwnProperty(n)&&(A.style[n]=A.styles[n]),Object.keys(A.styles).pop()==n&&delete A.styles;if(t)if("allow"in A){const e=A.allow.replace("fullscreen","");A.allow=("fullscreen "+e.trim()).trim()}else A.allow="fullscreen";return p>=0&&(A.style.hasOwnProperty("border")||(A.style.border=p)),n.a.createElement("iframe",Object.assign({},A))};a.a=function(e){const{src:a}=e;return n.a.createElement(i,{url:a,width:"100%",height:"900",frameBorder:0,id:"myId",className:"myClassname",display:"initial",position:"relative"})}},tqUQ:function(e,a,t){"use strict";t.r(a);var l=t("q1tI"),n=t.n(l),c=t("YwZP"),r=(t("nZ7A"),t("d47c")),i=t("LTK8"),s=(t("8z8T"),t("ZQVk"),t("tsAR")),o=t("KTnM"),m=t("nwof"),u=t("9Koi"),d=t("OwOO"),b=t("G/GC"),E=t("q5QH"),g=t("Ys8a");const p={total:null,skip:0,limit:9};function v(e){let{history:a}=e;const{0:t,1:c}=Object(l.useState)(!1),{0:v,1:f}=Object(l.useState)(!1),{0:y,1:h}=Object(l.useState)([]),{0:O,1:_}=Object(l.useState)(p),{0:j,1:w}=Object(l.useState)(1),{0:N,1:k}=Object(l.useState)(!1),{0:S,1:C}=Object(l.useState)(!0),{t:q}=Object(u.a)(),{getNewsPageGridPublications:I,setPageInformation:M}=Object(s.b)(),{0:T,1:A}=Object(l.useState)([]);Object(l.useEffect)((function(){I(O).then(e=>{_({total:e.total,limit:e.limit,skip:e.skip}),A(T.concat(e.grid.items)),C(!1)})}),[j]);return n.a.createElement(n.a.Fragment,null,!T.length&&S&&n.a.createElement(n.a.Fragment,null,n.a.createElement(d.a,null),n.a.createElement(d.a,null),n.a.createElement(d.a,null),n.a.createElement(d.a,null),n.a.createElement(d.a,null),n.a.createElement(d.a,null),n.a.createElement(d.a,null),n.a.createElement(d.a,null),n.a.createElement(d.a,null),n.a.createElement(d.a,null)),!T.length&&!S&&n.a.createElement(b.a,null,q("gridEmpty.news")),T.map((e,a)=>n.a.createElement(r.a,{key:a,type:Object(o.r)(e.model_id),title:Object(o.O)(e.title),image:Object(o.E)(Object(E.r)("image_website_block",e.image,null,e.image_website_block,null)),instagramImage:Object(o.n)(e.instagram_post),color:Object(o.e)(e.color),route:Object(o.a)(e.model_id,e.slug),onClickCard:()=>(e=>{const a=Object(o.b)(e.model_id,e.slug);window.history.pushState({path:a},"",a),document.body.classList.add("modal-active"),c(!t),h(e),M(Object(m.a)(e))})(e)})),n.a.createElement("div",{className:"grid--more"},T.length<O.total&&n.a.createElement("button",{onClick:function(){k(!0),T.length<O.total&&(_({total:O.total,limit:O.limit,skip:T.length}),w(j+1),k(!1))},className:"grid--more-link"},n.a.createElement("span",null,q("list.loadMore")),n.a.createElement(g.a,{name:"chevron-right"}))),n.a.createElement(i.a,{animating:v,visible:t,onClickClose:()=>{document.body.classList.remove("modal-active"),window.history.pushState("","",a.pathname),f(!0),M(null),setTimeout(()=>{c(!t),f(!f)},300)},data:y}))}var f=t("2bHd");var y=function(){const e=Object(c.useLocation)();return n.a.createElement(f.a,{page:"Nieuws"},n.a.createElement("div",{className:"news container"},n.a.createElement("div",{className:"news__grid"},n.a.createElement(v,{history:e}))))},h=t("VcRX"),O=t("nll4"),_=t("uXqw"),j=t("SZp0"),w=t("mOSi"),N=t("ECkX"),k=t.n(N),S=(t("Xe3Q"),t("wGSU")),C=t("sDk0"),q=t("Wbzz"),I=t("qhky");var M=Object(j.a)((function(e){let{slug:a}=e;const{getPublicationBySlug:t,setPageInformation:c}=Object(s.b)(),{0:r,1:i}=Object(l.useState)(null),{0:u,1:d}=Object(l.useState)(!0),{0:b,1:E}=Object(l.useState)(!1);return Object(l.useEffect)((function(){t(a).then(e=>{d(!1),c(Object(m.a)(e,"article")),i(e),window.instgrm&&e&&window.instgrm.Embeds.process(),window.opix&&e&&opix("event","View",{publication:e.id}),null===e&&Object(q.navigate)("/nieuws")})}),[a]),Object(l.useEffect)(()=>{var e;null!=r&&null!==(e=r.livestream_url)&&void 0!==e&&e.body&&E(!0)},[r]),n.a.createElement(n.a.Fragment,null,u&&n.a.createElement(h.a,null),r&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.b,Object.assign({},r,{imageType:"image_website_detail"}),n.a.createElement("div",{className:"news__detail"},n.a.createElement(O.a,null,Object(o.O)(r.title)),r.layout&&Array.isArray(r.layout.items)?r.layout.items.map((e,a)=>Object(w.b)(e,a)):null,r.iframe&&n.a.createElement(n.a.Fragment,null,n.a.createElement(k.a,{html:r.iframe.body})),r.qualifio&&n.a.createElement(C.a,{src:Object(o.y)(r.qualifio)}),b&&n.a.createElement(n.a.Fragment,null,n.a.createElement(I.a,null,n.a.createElement("script",{src:"/livestream/player.js",async:!0,onload:"playerLoaded();"}),n.a.createElement("script",null,`\n function playerLoaded() {\n var player = new Playerjs({id:"fluidPlayer", file: "${r.livestream_url.body}", poster:"/livestream/poster.jpg"});\n }\n `)),n.a.createElement("div",{className:"livestream-player",id:"fluidPlayer"})),n.a.createElement(_.a,{date:Object(o.x)(r.publish_on)})))),!r&&!u&&n.a.createElement(S.a,null))}),{page:"Nieuws"});a.default=()=>n.a.createElement(c.Router,null,n.a.createElement(y,{path:"nieuws"}),n.a.createElement(M,{path:"nieuws/:slug"}))},wGSU:function(e,a,t){"use strict";t.d(a,"a",(function(){return u}));var l=t("q1tI"),n=t.n(l),c=t("Wbzz"),r=t("bKZG"),i=t.n(r),s=t("nll4"),o=t("k9OT"),m=t("VcRX");function u(){return n.a.createElement(m.b,{imageInternal:i.a},n.a.createElement(s.a,null,"Oeps, we kunnen deze pagina niet terug vinden."),n.a.createElement(o.a,null,n.a.createElement("p",null,"Ga naar de ",n.a.createElement(c.Link,{to:"/"},"homepage"),".")))}}}]); //# sourceMappingURL=component---src-pages-nieuws-jsx-6da8c524b4f7daa16b6a.js.map