window.yoast=window.yoast||{},window.yoast.analysisReport=function(t){var e={};function s(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,s),r.l=!0,r.exports}return s.m=t,s.c=e,s.d=function(t,e,o){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(s.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)s.d(o,r,function(e){return t[e]}.bind(null,r));return o},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="",s(s.s=493)}({0:function(t,e){t.exports=window.yoast.propTypes},1:function(t,e){t.exports=window.wp.element},129:function(t,e){t.exports=window.lodash.noop},2:function(t,e){t.exports=window.lodash},3:function(t,e){t.exports=window.React},4:function(t,e){t.exports=window.wp.i18n},493:function(t,e,s){"use strict";s.r(e),s.d(e,"ContentAnalysis",(function(){return _})),s.d(e,"AnalysisResult",(function(){return C})),s.d(e,"AnalysisList",(function(){return E})),s.d(e,"renderRatingToColor",(function(){return y})),s.d(e,"SiteSEOReport",(function(){return M}));var o=s(1),r=s(4),a=s(3),n=s.n(a),i=s(5),l=s.n(i),u=s(0),d=s.n(u),c=s(129),m=s.n(c),p=s(6),b=s(2),g=s(7);const k=l.a.li`
	// This is the height of the IconButtonToggle.
	min-height: 24px;
	padding: 0;
	display: flex;
	align-items: flex-start;
`,B=l()(g.SvgIcon)`
	margin: 3px 11px 0 0; // icon 13 + 11 right margin = 24 for the 8px grid.
`,h=l.a.p`
	margin: 0 16px 0 0;
	flex: 1 1 auto;
	color: ${t=>t.suppressedText?"rgba(30,30,30,0.5)":"inherit"};
`,f=t=>Object(o.createElement)(k,null,Object(o.createElement)(B,{icon:t.icon,color:t.bulletColor,size:"13px"}),Object(o.createElement)(h,{suppressedText:t.suppressedText},t.hasBetaBadgeLabel&&Object(o.createElement)(g.BetaBadge,null),Object(o.createElement)("span",{dangerouslySetInnerHTML:{__html:t.text}})),t.hasMarksButton&&!function(t){return"hidden"===t.marksButtonStatus}(t)&&Object(o.createElement)(g.IconButtonToggle,{marksButtonStatus:t.marksButtonStatus,className:t.marksButtonClassName,onClick:t.onButtonClickMarks,id:t.buttonIdMarks,icon:"eye",pressed:t.pressed,ariaLabel:t.ariaLabelMarks}),t.hasEditButton&&t.isPremium&&Object(o.createElement)(g.IconCTAEditButton,{className:t.editButtonClassName,onClick:t.onButtonClickEdit,id:t.buttonIdEdit,icon:"edit",ariaLabel:t.ariaLabelEdit}));f.propTypes={icon:d.a.string,text:d.a.string.isRequired,suppressedText:d.a.bool,bulletColor:d.a.string.isRequired,hasMarksButton:d.a.bool.isRequired,hasEditButton:d.a.bool,buttonIdMarks:d.a.string.isRequired,buttonIdEdit:d.a.string,pressed:d.a.bool.isRequired,ariaLabelMarks:d.a.string.isRequired,ariaLabelEdit:d.a.string,onButtonClickMarks:d.a.func.isRequired,onButtonClickEdit:d.a.func,marksButtonStatus:d.a.string,marksButtonClassName:d.a.string,editButtonClassName:d.a.string,hasBetaBadgeLabel:d.a.bool,isPremium:d.a.bool},f.defaultProps={icon:"circle",suppressedText:!1,marksButtonStatus:"enabled",marksButtonClassName:"",editButtonClassName:"",hasBetaBadgeLabel:!1,hasEditButton:!1,buttonIdEdit:"",ariaLabelEdit:"",onButtonClickEdit:b.noop,isPremium:!1};var C=f;const x=l.a.ul`
	margin: 8px 0;
	padding: 0;
	list-style: none;
`;function y(t){switch(t){case"good":return p.colors.$color_good;case"OK":return p.colors.$color_ok;case"bad":return p.colors.$color_bad;default:return p.colors.$color_score_icon}}function E(t){return Object(o.createElement)(x,{role:"list"},t.results.map(e=>{const s=y(e.rating),a=e.markerId===t.marksButtonActivatedResult,n=e.id+"Mark",i=e.id+"Edit";let l="";l="disabled"===t.marksButtonStatus?Object(r.__)("Marks are disabled in current view","wordpress-seo"):a?Object(r.__)("Remove highlight from the text","wordpress-seo"):Object(r.__)("Highlight this result in the text","wordpress-seo");const u=e.editFieldName,d=""===u?"":Object(r.sprintf)(
/* Translators: %1$s refers to the name of the field that should be edited (keyphrase, meta description,
       slug or SEO title). */
Object(r.__)("Edit your %1$s","wordpress-seo"),u);return Object(o.createElement)(C,{key:e.id,text:e.text,bulletColor:s,hasMarksButton:e.hasMarks,hasEditButton:e.hasJumps,ariaLabelMarks:l,ariaLabelEdit:d,pressed:a,suppressedText:"upsell"===e.rating,buttonIdMarks:n,buttonIdEdit:i,onButtonClickMarks:()=>t.onMarksButtonClick(e.id,e.marker),onButtonClickEdit:()=>t.onEditButtonClick(e.id),marksButtonClassName:t.marksButtonClassName,editButtonClassName:t.editButtonClassName,marksButtonStatus:t.marksButtonStatus,hasBetaBadgeLabel:e.hasBetaBadge,isPremium:t.isPremium})}))}E.propTypes={results:d.a.array.isRequired,marksButtonActivatedResult:d.a.string,marksButtonStatus:d.a.string,marksButtonClassName:d.a.string,editButtonClassName:d.a.string,onMarksButtonClick:d.a.func,onEditButtonClick:d.a.func,isPremium:d.a.bool},E.defaultProps={marksButtonActivatedResult:"",marksButtonStatus:"enabled",marksButtonClassName:"",editButtonClassName:"",onMarksButtonClick:m.a,onEditButtonClick:m.a,isPremium:!1};const w=l.a.div`
	width: 100%;
	background-color: white;
	border-bottom: 1px solid transparent; // Avoid parent and child margin collapsing.
`,R=l()(g.Collapsible)`
	margin-bottom: 8px;

	button:first-child svg {
		margin: -2px 8px 0 -2px; // Compensate icon size set to 18px.
	}

	${g.StyledIconsButton} {
		padding: 8px 0;
		color: ${p.colors.$color_blue}
	}
`;class O extends n.a.Component{renderCollapsible(t,e,s){return Object(o.createElement)(R,{initialIsOpen:!0,title:`${t} (${s.length})`,prefixIcon:{icon:"angle-up",color:p.colors.$color_grey_dark,size:"18px"},prefixIconCollapsed:{icon:"angle-down",color:p.colors.$color_grey_dark,size:"18px"},suffixIcon:null,suffixIconCollapsed:null,headingProps:{level:e,fontSize:"13px",fontWeight:"bold"}},Object(o.createElement)(E,{results:s,marksButtonActivatedResult:this.props.activeMarker,marksButtonStatus:this.props.marksButtonStatus,marksButtonClassName:this.props.marksButtonClassName,editButtonClassName:this.props.editButtonClassName,onMarksButtonClick:this.props.onMarkButtonClick,onEditButtonClick:this.props.onEditButtonClick,isPremium:this.props.isPremium}))}render(){const{problemsResults:t,improvementsResults:e,goodResults:s,considerationsResults:a,errorsResults:n,upsellResults:i,headingLevel:l}=this.props,u=n.length,d=t.length,c=e.length,m=a.length,p=s.length,b=i.length;return Object(o.createElement)(w,null,u>0&&this.renderCollapsible(Object(r.__)("Errors","wordpress-seo"),l,n),d+b>0&&this.renderCollapsible(Object(r.__)("Problems","wordpress-seo"),l,[...i,...t]),c>0&&this.renderCollapsible(Object(r.__)("Improvements","wordpress-seo"),l,e),m>0&&this.renderCollapsible(Object(r.__)("Considerations","wordpress-seo"),l,a),p>0&&this.renderCollapsible(Object(r.__)("Good results","wordpress-seo"),l,s))}}O.propTypes={onMarkButtonClick:d.a.func,onEditButtonClick:d.a.func,problemsResults:d.a.array,improvementsResults:d.a.array,goodResults:d.a.array,considerationsResults:d.a.array,errorsResults:d.a.array,upsellResults:d.a.array,headingLevel:d.a.number,marksButtonStatus:d.a.string,marksButtonClassName:d.a.string,editButtonClassName:d.a.string,activeMarker:d.a.string,isPremium:d.a.bool},O.defaultProps={onMarkButtonClick:()=>{},onEditButtonClick:()=>{},problemsResults:[],improvementsResults:[],goodResults:[],considerationsResults:[],errorsResults:[],upsellResults:[],headingLevel:4,marksButtonStatus:"enabled",marksButtonClassName:"",editButtonClassName:"",activeMarker:"",isPremium:!1};var _=O;const v=l.a.div`
`,N=l.a.p`
	font-size: 14px;
`,j=t=>Object(o.createElement)(v,{className:t.className},Object(o.createElement)(N,{className:t.className+"__text"},t.seoAssessmentText),Object(o.createElement)(g.StackedProgressBar,{className:"progress",items:t.seoAssessmentItems,barHeight:t.barHeight}),Object(o.createElement)(g.ScoreAssessments,{className:"assessments",items:t.seoAssessmentItems}));j.propTypes={className:d.a.string,seoAssessmentText:d.a.string,seoAssessmentItems:d.a.arrayOf(d.a.shape({html:d.a.string.isRequired,value:d.a.number.isRequired,color:d.a.string.isRequired})),barHeight:d.a.string},j.defaultProps={className:"seo-assessment",seoAssessmentText:"SEO Assessment",seoAssessmentItems:null,barHeight:"24px"};var M=j},5:function(t,e){t.exports=window.yoast.styledComponents},6:function(t,e){t.exports=window.yoast.styleGuide},7:function(t,e){t.exports=window.yoast.componentsNew}});