(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[3],{"9dZH":function(e,t,a){},G8w8:function(e,t,a){e.exports=a.p+"static/media/no-search-results-v2.f76581a0.svg"},NrgV:function(e,t,a){"use strict";var i=a("wx14"),r=a("iuhU"),n=a("q1tI"),s=a.n(n),o=a("ZeOK"),c=a("ICNK"),l=a("Y53p"),p=a("H+2d");function d(e){var t=e.active,a=e.children,n=e.className,u=e.content,h=e.disabled,m=e.indeterminate,g=e.inline,v=e.inverted,b=e.size,f=Object(r.default)("ui",b,Object(o.a)(t,"active"),Object(o.a)(h,"disabled"),Object(o.a)(m,"indeterminate"),Object(o.a)(v,"inverted"),Object(o.a)(a||u,"text"),Object(o.b)(g,"inline"),"loader",n),y=Object(c.a)(d,e),O=Object(l.a)(d,e);return s.a.createElement(O,Object(i.a)({},y,{className:f}),p.a.isNil(a)?u:a)}d.handledProps=["active","as","children","className","content","disabled","indeterminate","inline","inverted","size"],d.propTypes={},t.a=d},OHzr:function(e,t,a){},U3pn:function(e,t,a){"use strict";a.r(t),a.d(t,"StaticPage",(function(){return w}));var i=a("wx14"),r=a("1OyB"),n=a("vuIU"),s=a("Ji7U"),o=a("LK+K"),c=a("q1tI"),l=a.n(c),p=a("ANjH"),d=a("/MKj"),u=a("3mGJ"),h=a("ezNy"),m=a("NrgV"),g=(a("OHzr"),a("9dZH"),a("4itl"),a("cucZ")),v=a("qhky"),b=a("GD6P"),f=a("Q7KY"),y=a("if8a"),O=l.a.createElement,j=[[[1024,0],[[728,90],[970,90]]],[[640,0],[[460,60]]],[[0,0],[[320,100],[320,50],[300,100],[300,50]]]],N=[[[1024,0],[[728,90],[970,90],[970,250]]],[[640,0],[[460,60]]],[[0,0],[[300,600],[336,280],[320,100],[320,50],[300,250],[300,100],[300,50]]]],w=function(e){Object(s.a)(a,e);var t=Object(o.a)(a);function a(){return Object(r.a)(this,a),t.apply(this,arguments)}return Object(n.a)(a,[{key:"componentDidUpdate",value:function(e){this.props.hasError&&e.page===this.props.page||this.props.staticPage&&e.page===this.props.page||this.props.fetchStaticPage(this.props.page)}},{key:"UNSAFE_componentWillMount",value:function(){if(!this.props.hasError){var e=new Date(this.props.lastFetch||0),t=new Date;(!this.props.staticPage||t-e>36e5)&&this.props.fetchStaticPage(this.props.page)}}},{key:"render",value:function(){if(this.props.hasError)return O("div",{className:"content-wrapper"},O(v.default,{title:"ERROR"}),O("p",null,"Error: ",this.props.error));if(this.props.hasFetched&&this.props.staticPage){var e=this.props.staticPage;return e&&e.title?O(l.a.Fragment,null,O(b.a,Object(i.a)({isConnected:this.props.isConnected,path:"/".concat("22491887924/dailyvoice","/").concat(this.props.page),slotId:"interstitial",targeting:{interstitial:"interstitial"},collapseEmptyDiv:!0,className:"advert-leaderboard",anchor:"interstitial",mapping:f.b.Interstitial},f.a.interstitial)),O("div",{className:"wrapper"},O(v.default,{title:this.props.title},O("meta",{name:"description",content:this.props.description})),O("div",{className:"static-page"},O("h1",null,O("span",null,e.title)),O("div",{dangerouslySetInnerHTML:{__html:e.body}})))):O(l.a.Fragment,null,O(b.a,Object(i.a)({isConnected:this.props.isConnected,path:"/".concat("22491887924/dailyvoice","/").concat(this.props.page),slotId:"interstitial",targeting:{interstitial:"interstitial"},collapseEmptyDiv:!0,className:"advert-leaderboard",anchor:"interstitial",mapping:f.b.Interstitial},f.a.interstitial)),O(b.a,Object(i.a)({isConnected:this.props.isConnected,path:"/".concat("22491887924/dailyvoice","/").concat(this.props.page),slotId:"leaderboard-top",targeting:{leaderboard:"top"},collapseEmptyDiv:!0,className:"advert-leaderboard-top",mapping:j},f.a.leaderboardtop)),O(y.default,null),O(b.a,Object(i.a)({isConnected:this.props.isConnected,path:"/".concat("22491887924/dailyvoice","/").concat(this.props.page),slotId:"leaderboard-bot",targeting:{leaderboard:"bot"},collapseEmptyDiv:!0,className:"advert-leaderboard-top",mapping:N},f.a.leaderboard)))}return O(l.a.Fragment,null,O(v.default,{title:"Article"}),O(u.a,null,O(h.a,{active:!0},O(m.a,{indeterminate:!0,size:"large"},"Loading Article"))))}}]),a}(c.Component);t.default=Object(d.connect)((function(e){return e.staticPage}),(function(e){return Object(p.bindActionCreators)({fetchStaticPage:g.b},e)}))(w)},ZpKF:function(e,t,a){"use strict";a.r(t),a.d(t,"SearchPage",(function(){return z}));var i=a("wx14"),r=a("1OyB"),n=a("vuIU"),s=a("JX7q"),o=a("Ji7U"),c=a("LK+K"),l=a("q1tI"),p=a.n(l),d=a("55Ip"),u=a("ANjH"),h=a("/MKj"),m=a("3mGJ"),g=a("ezNy"),v=a("NrgV"),b=a("rkQm"),f=(a("OHzr"),a("9dZH"),a("4itl"),a("Qyje")),y=a.n(f),O=a("qhky"),j=a("GD6P"),N=a("Q7KY"),w=a("6rlZ"),I=a("4I37"),C=a.n(I),M=a("azCW"),E=a.n(M),A=a("G8w8"),S=a.n(A),q=a("itc3"),D=a("yCm8"),k=p.a.createElement,P=[[[1024,0],[[728,90],[970,90]]],[[640,0],[[460,60]]],[[0,0],[[320,100],[320,50],[300,100],[300,50]]]],x=[[[1024,0],[[728,90],[970,90],[970,250]]],[[640,0],[[460,60]]],[[0,0],[[300,600],[336,280],[320,100],[320,50],[300,250],[300,100],[300,50]]]],z=function(e){Object(o.a)(a,e);var t=Object(c.a)(a);function a(){var e;return Object(r.a)(this,a),(e=t.call(this)).state={isHidden:!1,hasMounted:!1},e.page=0,e.index=0,e.pageSize=16,e.handleViewMore=e.handleViewMore.bind(Object(s.a)(e)),e}return Object(n.a)(a,[{key:"componentDidUpdate",value:function(e){e.query!==this.props.query&&this.props.searchArticles(this.props.query,this.index,this.pageSize)}},{key:"UNSAFE_componentWillMount",value:function(){var e=this.props.articles,t=new Date(this.props.lastFetch||0),a=new Date;this.params=this.props.query?{q:this.props.query}:y.a.parse(this.props.location.search,{ignoreQueryPrefix:!0}),this.page=this.params.page||1,(!e||a-t>5e3)&&this.props.searchArticles(this.params.q,this.index,this.pageSize)}},{key:"componentDidMount",value:function(){this.setState({isHidden:!this.state.isHidden,hasMounted:!0})}},{key:"handleViewMore",value:function(){var e=Math.max(this.index,0),t=Math.max(this.page,0)*this.pageSize;this.props.searchArticlesMore(this.params.q,e+t,this.pageSize),this.page++}},{key:"render",value:function(){var e=this;if(this.props.isEmpty||this.props.hasError)return k("div",{className:"wrapper no-results"},k(j.a,Object(i.a)({isConnected:this.props.isConnected,path:"/".concat("22491887924/dailyvoice","/search"),slotId:"interstitial",targeting:{interstitial:"interstitial"},collapseEmptyDiv:!0,className:"advert-leaderboard",anchor:"interstitial",mapping:N.b.Interstitial},N.a.interstitial)),k(j.a,Object(i.a)({path:"/".concat("22491887924/dailyvoice","/search"),slotId:"leaderboard-top",targeting:{leaderboard:"top"},className:"advert-leaderboard-top",mapping:P},N.a.leaderboardtop)),k("img",{src:S.a,alt:"No search results"}),k("h1",null,"Nothing to see here"),k("div",null,k("p",null,"Your search for ",k("strong",null,this.props.query)," returned no results.")),k("div",{className:"no-results-search"},k("form",{action:"/search",method:"get"},k("input",{type:"search",placeholder:"Search Daily Voice",name:"q",id:"q"}),k("button",null,"Search"))),k(j.a,Object(i.a)({path:"/".concat("22491887924/dailyvoice","/search"),slotId:"leaderboard-bot",targeting:{leaderboard:"bot"},className:"advert-leaderboard-bot",mapping:x},N.a.leaderboard)));if(this.props.articles&&this.props.articles.length&&this.props.hasFetched){var t=this.props.articles.map((function(e){return new C.a(e)}));return k(p.a.Fragment,null,k(j.a,Object(i.a)({isConnected:this.props.isConnected,path:"/".concat("22491887924/dailyvoice","/search"),slotId:"interstitial",targeting:{interstitial:"interstitial"},collapseEmptyDiv:!0,className:"advert-leaderboard",anchor:"interstitial",mapping:N.b.Interstitial},N.a.interstitial)),k(j.a,Object(i.a)({path:"/".concat("22491887924/dailyvoice","/search"),slotId:"leaderboard-top",targeting:{leaderboard:"top"},className:"advert-leaderboard-top",mapping:P},N.a.leaderboardtop)),k("div",{className:"wrapper"},k("div",{className:"search-page",itemType:"http://schema.org/ItemList"},k("h1",null,k("span",null,"Search Results for ",k("em",null,this.props.query))),k("div",{className:"search-results"},t.map((function(t,a){return k("article",{key:t.contentKey,role:"contentinfo","aria-label":"article",itemScope:"",itemType:"https://schema.org/NewsArticle"},k("div",{className:"article-list-img"},k(d.Link,{to:"/"+t.getCanonicalUri()},k(q.Mobile,null,k(D.ImageOrNoImage,{image:t.image,width:320,alt:t.headline,shape:"square",noImage:E.a})),e.state.hasMounted&&k(q.MobileElse,null,k(D.ImageOrNoImage,{image:t.image,width:222,alt:t.headline,shape:"square",noImage:E.a})))),k("div",{className:"content"},k("small",{className:"meta"},k(d.Link,{to:"/"+t.getSectionId()},t.sectionLabel)),k("h3",null,k(d.Link,{to:"/"+t.getCanonicalUri()},t.headline))))}))),this.props.hasMore&&k("div",{id:"buttonContainer",className:"more-from-btn noScript"},k(p.a.Fragment,null,k(b.a,{color:"#B10015",loading:this.props.isLoadingMore,margin:"10px"}),k("button",{id:"viewMoreButton",onClick:this.handleViewMore}," View More")),k(O.default,null,k("link",{rel:"canonical",itemprop:"url",href:"https://www.dailyvoice.co.za"+this.props.location.pathname+"?query="+this.props.query}))),this.props.children)),k(j.a,Object(i.a)({path:"/".concat("22491887924/dailyvoice","/search"),slotId:"leaderboard-bot",targeting:{leaderboard:"bot"},className:"advert-leaderboard-bot",mapping:x},N.a.leaderboard)))}return k(m.a,null,k(g.a,{active:!0},k(v.a,{indeterminate:!0,size:"large"},"Loading...")))}}]),a}(l.Component);z.defaultProps={articles:{}};t.default=Object(h.connect)((function(e){return e.search}),(function(e){return Object(u.bindActionCreators)({searchArticles:w.b,searchArticlesMore:w.c},e)}))(z)},if8a:function(e,t,a){"use strict";a.r(t);var i=a("1OyB"),r=a("vuIU"),n=a("Ji7U"),s=a("LK+K"),o=a("q1tI"),c=a.n(o),l=a("Ty5D"),p=a("/MKj"),d=a("ANjH"),u=a("diH0"),h=a("G8w8"),m=a.n(h),g=a("azCW"),v=a.n(g),b=a("0srb"),f=a("rQwP"),y=c.a.createElement,O=function(e){var t=e.articles,a=(e.authorName,e.noImage);e.moreButton;return y(c.a.Fragment,null,t.map((function(e,t){return e.image=e.images[0],y(f.a,{key:e.contentKey,article:e,noImage:a})})))},j=function(e){Object(n.a)(a,e);var t=Object(s.a)(a);function a(e){var r;Object(i.a)(this,a),r=t.call(this,e);var n=e.staticContext;return n&&(n.is404=!0),r}return Object(r.a)(a,[{key:"render",value:function(){return y(c.a.Fragment,null,y("div",{className:"main-content"},y("div",{className:"wrapper no-results"},y("img",{src:m.a,alt:"404 Page not found"}),y("h1",null,"404 Page not found"))),y("div",{className:"wrapper"},y("div",{className:"search-page",itemType:"http://schema.org/ItemList"},y("h1",null,y("span",null,"Most Read")),y(b.Articles,{className:"search-results",component:O,page0Limit:8,pageSize:8,fetchArticles:this.props.fetchMostReadArticles,noImage:v.a,articles:this.props.articles,notFound:function(){return y("div",null,"Oops! No articles found.")},fetchMoreArticles:function(){}}))))}}]),a}(o.Component);t.default=Object(l.withRouter)(Object(p.connect)((function(e){return{articles:e.mostReadArticles}}),(function(e){return Object(d.bindActionCreators)({fetchMostReadArticles:u.b},e)}))(j))},rkQm:function(e,t,a){"use strict";var i=a("q1tI"),r={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function n(e){var t=function(e){if("number"===typeof e)return{value:e,unit:"px"};var t,a=(e.match(/^[0-9.]*/)||"").toString();t=a.includes(".")?parseFloat(a):parseInt(a,10);var i=(e.match(/[^0-9]*$/)||"").toString();return r[i]?{value:t,unit:i}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}(e);return"".concat(t.value).concat(t.unit)}var s=function(){return(s=Object.assign||function(e){for(var t,a=1,i=arguments.length;a<i;a++)for(var r in t=arguments[a])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},o=function(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(a[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(a[i[r]]=e[i[r]])}return a},c=function(e,t,a){var i="react-spinners-".concat(e,"-").concat(a);if("undefined"==typeof window||!window.document)return i;var r=document.createElement("style");document.head.appendChild(r);var n=r.sheet,s="\n    @keyframes ".concat(i," {\n      ").concat(t,"\n    }\n  ");return n&&n.insertRule(s,0),i}("PulseLoader","0% {transform: scale(1); opacity: 1} 45% {transform: scale(0.1); opacity: 0.7} 80% {transform: scale(1); opacity: 1}","pulse");t.a=function(e){var t=e.loading,a=void 0===t||t,r=e.color,l=void 0===r?"#000000":r,p=e.speedMultiplier,d=void 0===p?1:p,u=e.cssOverride,h=void 0===u?{}:u,m=e.size,g=void 0===m?15:m,v=e.margin,b=void 0===v?2:v,f=o(e,["loading","color","speedMultiplier","cssOverride","size","margin"]),y=s({display:"inherit"},h),O=function(e){return{backgroundColor:l,width:n(g),height:n(g),margin:n(b),borderRadius:"100%",display:"inline-block",animation:"".concat(c," ").concat(.75/d,"s ").concat(.12*e/d,"s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08)"),animationFillMode:"both"}};return a?i.createElement("span",s({style:y},f),i.createElement("span",{style:O(1)}),i.createElement("span",{style:O(2)}),i.createElement("span",{style:O(3)})):null}}}]);
//# sourceMappingURL=pages-NotFound.5a112d23.chunk.js.map