(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[4],{0:function(e,t){e.exports=React},1:function(e,t){e.exports=window.lodash},13:function(e,t){e.exports=ReactDOM},21:function(e,t){e.exports=window.yoast.styleGuide},3:function(e,t){e.exports=window.wp.i18n},34:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setTextdomainL10n=r,t.setYoastComponentsL10n=function(){r("yoast-components")},t.setWordPressSeoL10n=function(){r("wordpress-seo")};var s=n(3),o=n(1);function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wpseoYoastJSL10n",n=(0,o.get)(window,[t,e,"locale_data",e],!1);!1===n?(0,s.setLocaleData)({"":{}},e):(0,s.setLocaleData)(n,e)}},374:function(e,t,n){"use strict";var s=function(){function e(e,t){for(var n=0;n'+e.label+""}}),s.header=jQuery("
"+n.header+"
").text(),e.setState({statistics:s})})}},{key:"getRyte",value:function(){var e=this;"1"===wpseoDashboardWidgetL10n.ryteEnabled&&wpseoApi.get("ryte",function(n){if(n.ryte){var s={scores:[{color:t.getColorFromScore(n.ryte.score),html:n.ryte.label}],canFetch:n.ryte.can_fetch};e.setState({ryte:s})}})}},{key:"getFeed",value:function(){var e=this;(0,c.getPostFeed)("https://yoast.com/feed/widget/?wp_version="+wpseoDashboardWidgetL10n.wp_version+"&php_version="+wpseoDashboardWidgetL10n.php_version,2).then(function(t){t.items=t.items.map(function(e){return e.description=jQuery("
"+e.description+"
").text(),e.description=e.description.replace("The post "+e.title+" appeared first on Yoast.","").trim(),e}),e.setState({feed:t})}).catch(function(e){return console.log(e)})}},{key:"getSeoAssessment",value:function(){return null===this.state.statistics?null:wp.element.createElement(l.SiteSEOReport,{key:"yoast-seo-posts-assessment",seoAssessmentText:this.state.statistics.header,seoAssessmentItems:this.state.statistics.seoScores})}},{key:"getRyteAssessment",value:function(){return null===this.state.ryte?null:wp.element.createElement("div",{id:"yoast-seo-ryte-assessment",key:"yoast-seo-ryte-assessment"},wp.element.createElement("h3",null,wpseoDashboardWidgetL10n.ryte_header),wp.element.createElement(a.ScoreAssessments,{items:this.state.ryte.scores}),wp.element.createElement("div",null,this.state.ryte.canFetch&&wp.element.createElement("a",{className:"fetch-status button",href:wpseoDashboardWidgetL10n.ryte_fetch_url},wpseoDashboardWidgetL10n.ryte_fetch),wp.element.createElement(p,{className:"landing-page button",href:wpseoDashboardWidgetL10n.ryte_landing_url},wpseoDashboardWidgetL10n.ryte_analyze)))}},{key:"getYoastFeed",value:function(){return null===this.state.feed?null:wp.element.createElement(a.ArticleList,{className:"wordpress-feed",key:"yoast-seo-blog-feed",title:wpseoDashboardWidgetL10n.feed_header,feed:this.state.feed,footerLinkText:wpseoDashboardWidgetL10n.feed_footer})}},{key:"render",value:function(){var e=[this.getSeoAssessment(),this.getRyteAssessment(),this.getYoastFeed()].filter(function(e){return null!==e});return 0===e.length?null:wp.element.createElement("div",null,e)}}],[{key:"getColorFromScore",value:function(e){return i.colors["$color_"+e]||i.colors.$color_grey}}]),t}(),y=document.getElementById("yoast-seo-dashboard-widget");y&&((0,u.setYoastComponentsL10n)(),r.default.render(wp.element.createElement(f,null),y))},6:function(e,t){e.exports=window.yoast.componentsNew},7:function(e,t){e.exports=window.yoast.helpers},95:function(e,t){e.exports=window.yoast.analysisReport}},[[374,0]]]);