(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{"2agx":function(e,t,a){},"2bHd":function(e,t,a){"use strict";a.d(t,"a",(function(){return O}));var n=a("q1tI"),l=a.n(n),r=a("CN8t"),c=a("vDqi"),o=a("tsAR"),i=a("dCQc"),s=a("95/9"),m=a("Ys8a");a("e4OT");var u=function(){const{0:e}=Object(n.useState)(9),{currentTrack:t,setTrack:a}=Object(o.b)();return Object(n.useEffect)(()=>{!async function(e){try{await Object(c.get)(Object(i.c)(e)).then(e=>{a(e.data.data[0])})}catch(t){a(null)}}(e)},[]),Object(n.useEffect)(()=>{const t=setInterval(()=>{!async function(e){try{await Object(c.get)(Object(i.c)(e)).then(e=>{a(e.data.data[0])})}catch(t){a(null)}}(e)},6e4);return()=>clearInterval(t)},[]),l.a.createElement("div",{className:"player-small"},l.a.createElement("div",{className:"player-small__inner"},l.a.createElement("div",{className:"player-small__current"},l.a.createElement("button",{onClick:()=>{window.open("/luister/playnostalgie","_blank","width=420,height=662")},className:"player-small__current--inner"},l.a.createElement("div",{className:"player-small__current--visual"},l.a.createElement("img",{src:t?t.cover_art:"",alt:""})),l.a.createElement("div",{className:"player-small__current--track"},l.a.createElement("h3",{className:"name"},t?t.title:""),l.a.createElement("h4",{className:"artist"},t?t.artist:"")),l.a.createElement("div",{className:"player-small__current--btn"},l.a.createElement("span",{className:"btn--play"},l.a.createElement(m.a,{name:"play"}))))),l.a.createElement("div",{className:"player-small__stations"},l.a.createElement(s.a,{isCompact:!0}))))},d=a("6fbM"),b=a("kx4G"),g=a("RS1n"),E=(a("7svR"),a("CzKt")),p=a("gsAb"),f=a("M6IM"),h=a("m5lB"),_=a("l1NG"),v=a("YwZP"),y=a("L2o3");function O(e){let{children:t,page:a,variant:c=""}=e;const{0:o,1:i}=Object(n.useState)(!1),{0:s,1:m}=Object(n.useState)(!1),{0:O,1:N}=Object(n.useState)("login"),j=()=>m(!s);p.a.modal=Object(f.a)(),p.a.tracks=Object(h.a)();const k=Object(v.useLocation)();Object(n.useEffect)(()=>{k.search.includes("show=register")?(N("register"),p.a.modal.setShowAuthModal(!p.a.modal.loginModal)):k.search.includes("show=login")&&(N("login"),p.a.modal.setShowAuthModal(!p.a.modal.loginModal))},[k]);return l.a.createElement(b.a,null,l.a.createElement(_.a,{onCookiesAccepted:()=>i(!0)},l.a.createElement("div",{className:"nostalgie "+c},l.a.createElement(E.a,{page:a,cookiesAccepted:o}),l.a.createElement(y.a,{variant:null!=c?c:"",onPressSearch:j,onPressLogin:()=>{p.a.modal.setShowAuthModal(!p.a.modal.loginModal)},theme:"Home"===a?"light":"dark"}),l.a.createElement("div",{className:"page-content"},t),l.a.createElement(r.a,{variant:null!=c?c:""}),l.a.createElement(d.a,{visible:s,handleClose:j}),l.a.createElement(g.a,{visible:p.a.modal.loginModal,close:()=>p.a.modal.setShowAuthModal(!p.a.modal.loginModal),activeTab:O})),l.a.createElement(u,null)))}},"7coR":function(e,t,a){},"8z8T":function(e,t,a){"use strict";var n=a("q1tI"),l=a.n(n),r=(a("Asz6"),a("Wbzz")),c=a("3dzz"),o=a("TSYQ"),i=a.n(o);t.a=function(e){const{children:t,icon:a,outline:n,route:o,primary:s,secondary:m,third:u,fourth:d,fifth:b,large:g,error:E,className:p,onClick:f,loading:h,modLink:_=!1,href:v}=e,y=i()("btn btn--rounded",p,{"btn--icon":!t,"btn--outline":n,"btn--primary":s,"btn--secondary":m,"btn--third":u,"btn--fourth":d,"btn--fifth":b,"btn--large":g,"btn--error":E}),O=_?"a":"button";return l.a.createElement(O,{type:!_&&"button",onClick:function(){return o?void Object(r.navigate)(o):f?void f():void 0},className:y,href:v},a&&l.a.createElement("span",{className:"icon"},a),t&&l.a.createElement("span",{className:"content"},h?l.a.createElement(c.a,{color:m?"#FFA41F":"#fff"}):t))}},ECkX:function(e,t,a){const{createElement:n,useEffect:l,useRef:r}=a("q1tI");e.exports=function(e){let{html:t,dangerouslySetInnerHTML:a,allowRerender:c,...o}=e;const i=r(null),s=r(!0);return l(()=>{if(!t||!i.current)throw new Error("html prop can't be null");if(!s.current)return;s.current=Boolean(c);const e=document.createRange().createContextualFragment(t);i.current.innerHTML="",i.current.appendChild(e)},[t,i]),n("div",{...o,ref:i})}},FY0X:function(e,t,a){},"G/GC":function(e,t,a){"use strict";var n=a("q1tI"),l=a.n(n);t.a=function(e){const{children:t}=e;return l.a.createElement("div",{className:"grid--more"},l.a.createElement("p",null,t))}},GuF3:function(e,t,a){},Myys:function(e,t,a){"use strict";a.r(t);var n=a("q1tI"),l=a.n(n),r=a("YwZP"),c=(a("iJJG"),a("tsAR")),o=a("Wbzz"),i=a("KTnM"),s=a("sZxp"),m=a.n(s);function u(e){let{nowPlaying:t}=e;return l.a.createElement("div",{className:"program"+(t?" now-playing":"")},l.a.createElement("div",{className:"program__inner"},l.a.createElement("div",{className:"program__visual"},l.a.createElement(m.a,{width:"100%",height:"100%",circle:!1})),l.a.createElement("div",{className:"program__content"},l.a.createElement("div",{className:"program__name"},l.a.createElement(m.a,{width:"100%",height:45,circle:!1})),l.a.createElement("div",{className:"program__info"},l.a.createElement(m.a,{width:"100%",height:20,circle:!1})))))}var d=a("G/GC"),b=a("9Koi"),g=a("CZwz"),E=a("q5QH");const p={total:null,skip:0,limit:30};function f(e){let{history:t}=e;const{0:a,1:r}=Object(n.useState)(p),{0:s,1:m}=Object(n.useState)(1),{getProgramsPublications:f}=Object(c.b)(),{0:h,1:_}=Object(n.useState)([]),{0:v,1:y}=Object(n.useState)(!0),{t:O}=Object(b.a)();return Object(n.useEffect)((function(){f(a).then(e=>{r({total:e.total,limit:e.limit,skip:e.skip}),_(h.concat(e.grid.items)),y(!1)})}),[s]),l.a.createElement("div",{className:"programs__grid"},!h.length&&v&&l.a.createElement(l.a.Fragment,null,l.a.createElement(u,null),l.a.createElement(u,null),l.a.createElement(u,null),l.a.createElement(u,null),l.a.createElement(u,null),l.a.createElement(u,null)),!h.length&&!v&&l.a.createElement(d.a,null,O("gridEmpty.programs")),h.map((e,t)=>l.a.createElement("div",{className:"program",key:t},l.a.createElement(o.Link,{to:"/programmas/"+e.slug,className:"program__inner"},l.a.createElement("div",{className:"program__visual"},l.a.createElement("img",{src:Object(g.a)(Object(i.E)(Object(E.r)("image_website_block",e.image,null,e.image_website_block,null)),425,220),alt:Object(i.O)(e.title)})),l.a.createElement("div",{className:"program__content",style:{backgroundColor:Object(i.e)(e.color)}},e.now_playing&&l.a.createElement("div",{className:"program__playing"},l.a.createElement("p",null,"Nu op Play Nostalgie"),l.a.createElement("span",{className:"program__playlist"},l.a.createElement("i",{className:"icon-playlist"}),l.a.createElement("span",null,"Playlist"))),l.a.createElement("div",{className:"program__name"},l.a.createElement("h2",null,Object(i.O)(e.title)),l.a.createElement("h3",null,Object(i.u)(e.person))),l.a.createElement("div",{className:"program__info"},l.a.createElement("p",null,Object(i.N)(e.timeslot))))))))}var h=a("2bHd"),_=(a("Uyc1"),a("atoK"));var v=function(){return l.a.createElement(h.a,{page:"Programma's"},l.a.createElement("div",{className:"programs container"},l.a.createElement(_.a,null),l.a.createElement(f,null)))},y=a("VcRX"),O=a("nll4"),N=a("mOSi"),j=a("nwof"),k=a("SZp0"),w=a("d47c"),S=a("wGSU"),T=a("Ys8a");a("aPgf");var C=Object(k.a)((function(e){let{slug:t}=e;const{getPublicationBySlug:a,setPageInformation:r,getRelatedNewsByTags:s}=Object(c.b)(),{0:m,1:u}=Object(n.useState)(null),{0:d,1:b}=Object(n.useState)([]),{0:g,1:p}=Object(n.useState)(!0);return Object(n.useEffect)((function(){a(t).then(e=>{p(!1),r(Object(j.a)(e)),u(e),window.opix&&e&&opix("event","View",{publication:e.id})})}),[t]),Object(n.useEffect)(()=>{if(m){const e=Object(i.M)(m.tag);e.length>0&&s(e).then(e=>{b(e)})}},[m]),l.a.createElement(l.a.Fragment,null,g&&l.a.createElement(y.a,null),m&&l.a.createElement(y.b,Object.assign({},m,{imageType:"image_website_detail"}),l.a.createElement("div",{className:"program__detail"},l.a.createElement(O.a,null,Object(i.O)(m.title)),m.person&&l.a.createElement("h2",{className:"program__person"},Object(i.u)(m.person)),l.a.createElement("div",{className:"program__time"},l.a.createElement(T.a,{name:"clock"}),l.a.createElement("p",null,Object(i.N)(m.timeslot))),m.layout&&Array.isArray(m.layout.items)?m.layout.items.map((e,t)=>Object(N.b)(e,t)):null),d.length>0&&l.a.createElement("div",{className:"program__related"},l.a.createElement("h2",{className:"program__related--title"},"Meer over dit programma"),l.a.createElement("div",{className:"program__related--grid"},d.map((e,t)=>l.a.createElement(w.a,{key:t,title:Object(i.O)(e.title),image:Object(i.E)(Object(E.r)("image_website_block",e.image,null,e.image_website_block,null)),route:Object(i.a)(e.model_id,e.slug),onClickCard:()=>Object(o.navigate)(Object(i.a)(e.model_id,e.slug))}))))),!m&&!g&&l.a.createElement(S.a,null))}),{page:"Programma"});t.default=()=>l.a.createElement(r.Router,null,l.a.createElement(v,{path:"programmas"}),l.a.createElement(C,{path:"programmas/:slug"}))},SZp0:function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var n=a("q1tI"),l=a.n(n),r=a("2bHd");function c(e,t){return function(a){return l.a.createElement(r.a,t,l.a.createElement(e,a))}}},Uyc1:function(e,t,a){},VcRX:function(e,t,a){"use strict";a.d(t,"a",(function(){return g}));var n=a("TSYQ"),l=a.n(n),r=a("q1tI"),c=a.n(r),o=a("sZxp"),i=a.n(o),s=a("CON8"),m=a("CZwz"),u=a("q5QH"),d=a("KTnM"),b=a("s6NK");a("FY0X");function g(e){let{isCompact:t,_className:a}=e;const n=a||"";return c.a.createElement("div",{className:`main-content container ${n}${t?" compact":""}`},c.a.createElement("div",{className:"main-content__visual"},c.a.createElement(i.a,{width:"100%",height:"100%"})),c.a.createElement("div",{className:"main-content__inner"},c.a.createElement("div",{className:"main-content__inner--content"},c.a.createElement(i.a,{width:"100%",height:60,count:2}),c.a.createElement("br",null),c.a.createElement("br",null),c.a.createElement("br",null),c.a.createElement(i.a,{width:"100%",height:20,count:15}))))}t.b=function(e){const{headerComponent:t,image:a,imageInternal:n,image_website_block:r,image_website_carousel:o,image_website_detail:i,children:g,label:E,color:p,isCompact:f,_className:h,imageType:_,headerWidth:v,headerHeight:y}=e,O=h||"";return c.a.createElement("div",{className:`main-content container ${O}${f?" compact":""}`,style:p?{borderTopColor:Object(d.e)(p),borderTopWidth:"9px",borderTopStyle:"solid"}:null},c.a.createElement("div",{className:l()("main-content__visual",{"main-content__visual--custom":!t})},E&&c.a.createElement("div",{className:"main-content__visual--label",style:p?{backgroundColor:Object(d.e)(p)}:null},c.a.createElement(b.a,{color:s.a.neutral,isCompact:!0,className:"label--logo"}),c.a.createElement("span",null,Object(d.o)(E))),t||(n?c.a.createElement("img",{src:n,alt:Object(d.F)(a)}):c.a.createElement("img",{src:Object(m.a)(Object(d.E)(Object(u.r)(_,a,o,r,i)),null!=v?v:1200,null!=y?y:560),alt:Object(d.F)(a)}))),c.a.createElement("div",{className:"main-content__inner"},c.a.createElement("div",{className:"main-content__inner--content"},g)))}},aPgf:function(e,t,a){},atoK:function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var n=a("q1tI"),l=a.n(n),r=a("Wbzz");a("GuF3");function c(e){let{active:t}=e;return l.a.createElement("ul",{className:"program__nav"},l.a.createElement("li",{className:"program__nav--item"},l.a.createElement(r.Link,{to:"/programmas",className:"program__nav--link",activeClassName:"active"},"Programma's")),l.a.createElement("li",{className:"program__nav--item"},l.a.createElement(r.Link,{to:"/programmagids",className:"program__nav--link",activeClassName:"active"},"Deze week bij Play Nostalgie")))}},bKZG:function(e,t,a){e.exports=a.p+"static/hero-contact-ba6a42136d326994748cc2faf2c89df2.jpg"},e4OT:function(e,t,a){},ik6Q:function(e,t,a){},k9OT:function(e,t,a){"use strict";var n=a("q1tI"),l=a.n(n);a("7coR");t.a=function(e){return l.a.createElement(l.a.Fragment,null,e.html?l.a.createElement("div",{className:"body-content",dangerouslySetInnerHTML:{__html:e.html}}):l.a.createElement("div",{className:"body-content"},e.children))}},mOSi:function(e,t,a){"use strict";a.d(t,"b",(function(){return h})),a.d(t,"a",(function(){return _}));var n=a("q1tI"),l=a.n(n),r=a("OS56"),c=a.n(r),o=(a("toje"),a("sZxp")),i=a.n(o),s=a("CZwz");var m=function(e){const{images:t}=e,a={dots:!1,infinite:!0,speed:300,slidesToShow:1,slidesToScroll:1,swipeToSlide:!1,draggable:!1};return l.a.createElement("div",{className:"carousel image-carousel"},t.length?l.a.createElement(c.a,a,t.map((e,t)=>l.a.createElement("div",{key:t},l.a.createElement("div",{className:"slide",key:t},l.a.createElement("div",{className:"slide__visual"},l.a.createElement("img",{src:Object(s.a)(e,795,520),alt:""})))))):l.a.createElement("div",{className:"slide__visual"},l.a.createElement(i.a,{width:"100%",height:"100%"})))},u=a("k9OT"),d=a("vDqi"),b=a("ECkX"),g=a.n(b);a("2agx");var E=function(e){const{src:t,type:a}=e,{0:r,1:c}=Object(n.useState)(null),{0:o,1:i}=Object(n.useState)(null),{0:s,1:m}=Object(n.useState)(!1);return Object(n.useEffect)(()=>{!async function(e,t){"SoundCloudPost"!==t?await Object(d.get)(`https://mediahuis.pointbreak.dev/api/v1/oembed?url=${_(t,e)}&radio=nostalgie`).then(e=>{c(e.data.html)}):(m(!0),await Object(d.get)(`https://soundcloud.com/oembed?iframe=true&url=${e}&format=json`).then(e=>{c(e.data.html)}))}(t,a)},[a]),l.a.createElement("div",{className:"media-embed"},l.a.createElement("div",{className:"media-embed--"+(null!=a?a:"unknown").toLowerCase()+(s?" soundcloud-embed":"")},r&&l.a.createElement(g.a,{html:r})))},p=a("KTnM"),f=a("8z8T");function h(e,t){if("Text"===e.label&&!e.format)return l.a.createElement(u.a,{key:t,html:e.body});if("Text"===e.label&&e.format){if("H1"===e.format)return l.a.createElement("h2",{className:"h1",key:t},e.body);if("H2"===e.format)return l.a.createElement("h2",{key:t},e.body);if("H3"===e.format)return l.a.createElement("h3",{key:t},e.body);if("H4"===e.format)return l.a.createElement("h4",{key:t},e.body);if("H5"===e.format)return l.a.createElement("h5",{key:t},e.body);if("H6"===e.format)return l.a.createElement("h6",{key:t},e.body)}else if("Asset"===e.label){const a=[],n=[];if(e.items.map(e=>{if("Document"===e.label)n.push(e);else if("Photo"===e.label){const t=Object(p.d)(e.cdn_files);a.push(t)}}),n.length>0&&0===a.length)return n.map(e=>{const a=Object(p.d)(e.cdn_files);return l.a.createElement(f.a,{key:t,onClick:()=>window.open(a,"_blank"),large:!0,primary:!0,icon:l.a.createElement("i",{className:"icon-download"})},""+e.name)});if(a.length>0&&0===n.length)return l.a.createElement(m,{key:t,images:a})}else{if("YouTubePost"===e.label)return l.a.createElement(E,{type:e.label,key:t,src:e.url});if("SpotifyPlaylist"===e.label)return l.a.createElement(E,{type:e.label,key:t,src:e.url});if("TwitterPost"===e.label)return l.a.createElement(E,{type:e.label,key:t,src:e.url});if("InstagramPost"===e.label)return l.a.createElement(E,{type:e.label,key:t,src:e.url});if("SoundCloudPost"===e.label)return l.a.createElement(E,{type:e.label,key:t,src:e.url});if("TikTokPost"===e.label)return l.a.createElement(E,{type:e.label,key:t,src:e.url});if("VimeoPost"===e.label)return l.a.createElement(E,{type:e.label,key:t,src:e.url});if("FacebookPost"===e.label)return l.a.createElement(E,{type:e.label,key:t,src:e.url})}}function _(e,t){return"YouTubePost"===e?`https://www.youtube.com/oembed?url=${t}&format=json`:"SpotifyPlaylist"===e?"https://open.spotify.com/oembed/?url="+t:"TwitterPost"===e?"https://publish.twitter.com/oembed?url="+t:"InstagramPost"===e?"https://graph.facebook.com/v10.0/instagram_oembed?url="+t:"SoundCloudPost"===e?`https://soundcloud.com/oembed?url=${t}&iframe=true`:"TikTokPost"===e?`https://www.tiktok.com/oembed?url=${t}&format=json`:"VimeoPost"===e?` https://vimeo.com/api/oembed.json?url=${t}&format=json`:"FacebookPost"===e?"https://graph.facebook.com/v10.0/oembed_post?url="+t:void 0}},nll4:function(e,t,a){"use strict";var n=a("q1tI"),l=a.n(n);a("ik6Q");t.a=function(e){let{children:t,centered:a,light:n,secondary:r}=e;return r?l.a.createElement("h2",{className:`title--main${a?" center":""}${n?" light":""}`},t):l.a.createElement("h1",{className:`title--main${a?" center":""}${n?" light":""}`},t)}},nwof:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a("KTnM"),l=a("CZwz");function r(e,t){if(e)return{page:e.title?e.title.body:"",shareImage:e.image?Object(l.a)(Object(n.E)(e.image),1200,630):"",shareDescription:e.shorttext?Object(n.C)(e.shorttext):"",type:t||"website"}}},toje:function(e,t,a){},wGSU:function(e,t,a){"use strict";a.d(t,"a",(function(){return u}));var n=a("q1tI"),l=a.n(n),r=a("Wbzz"),c=a("bKZG"),o=a.n(c),i=a("nll4"),s=a("k9OT"),m=a("VcRX");function u(){return l.a.createElement(m.b,{imageInternal:o.a},l.a.createElement(i.a,null,"Oeps, we kunnen deze pagina niet terug vinden."),l.a.createElement(s.a,null,l.a.createElement("p",null,"Ga naar de ",l.a.createElement(r.Link,{to:"/"},"homepage"),".")))}}}]); //# sourceMappingURL=component---src-pages-programmas-jsx-4fe7de21f6d400919a09.js.map