!function(e){var t={};function a(l){if(t[l])return t[l].exports;var c=t[l]={i:l,l:!1,exports:{}};return e[l].call(c.exports,c,c.exports,a),c.l=!0,c.exports}a.m=e,a.c=t,a.d=function(e,t,l){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(a.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)a.d(l,c,function(t){return e[t]}.bind(null,c));return l},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=249)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},153:function(e,t,a){"use strict";a.d(t,"a",(function(){return p}));var l=a(0),c=a(2),n=a.n(c),r=a(1),o=a(5),s=a(8),i=a(9);function p(e){let{name:t,title:a,subtitle:c,usps:n,id:p,image:d,finishableSteps:m,finishedSteps:u,upsellLink:f,upsellText:h,workout:z,badges:E}=e;const{openWorkout:b,toggleWorkout:M}=Object(o.useDispatch)("yoast-seo/workouts"),w=Object(o.useSelect)(e=>e("yoast-seo/workouts").getActiveWorkout(),[]),[g,k]=Object(l.useState)(!1),v=z,O=d;Object(l.useEffect)(()=>{m&&u&&u.length===m.length?k(!0):k(!1)},[u,m]);const y=Object(l.useMemo)(()=>u&&0!==u.length?u.length{b(t),g&&M(t)},[z,g,b,M]),F=Object(i.makeOutboundLink)(),B=h||Object(r.sprintf)( /* translators: %s : Expands to the add-on name. */ Object(r.__)("Unlock with %s!","wordpress-seo"),"Premium"),A=z?"":" card-disabled";return Object(l.createElement)(l.Fragment,null,!w&&Object(l.createElement)("div",{id:p,className:"card card-small"+A},Object(l.createElement)("h2",null,a," ",E),Object(l.createElement)("h3",null,c),Object(l.createElement)("div",{className:"workout-card-content-flex"},Object(l.createElement)("ul",{id:p+"-usp-list",className:"yoast-list--usp"},n.map((e,t)=>Object(l.createElement)("li",{id:`${p}-usp-${t}`,key:`${p}-${t}`},e))),d&&Object(l.createElement)(O,null)),Object(l.createElement)("span",null,z&&Object(l.createElement)(s.NewButton,{id:p+"-action-button",className:"yoast-button yoast-button--"+(g?"secondary":"primary"),onClick:j},y),!z&&Object(l.createElement)(F,{id:p+"-upsell-button",href:f,className:"yoast-button yoast-button-upsell","data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"},B,Object(l.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})),m&&u&&Object(l.createElement)("div",{className:"workout-card-progress"},Object(l.createElement)(s.ProgressBar,{id:p+"-progress",max:m.length,value:u.length}),Object(l.createElement)("label",{htmlFor:p+"-progress"},Object(l.createElement)("i",null,Object(r.sprintf)(// translators: %1$s: number of finished steps, %2$s: number of finishable steps Object(r.__)("%1$s/%2$s steps completed","wordpress-seo"),u.length,m.length)))))),z&&w===t&&Object(l.createElement)(v,null))}p.propTypes={name:n.a.string.isRequired,title:n.a.string.isRequired,subtitle:n.a.string.isRequired,usps:n.a.arrayOf(n.a.string).isRequired,id:n.a.string,finishableSteps:n.a.arrayOf(n.a.string),finishedSteps:n.a.arrayOf(n.a.string),image:n.a.func,upsellLink:n.a.string,upsellText:n.a.string,workout:n.a.func,badges:n.a.arrayOf(n.a.element)},p.defaultProps={id:"",finishableSteps:null,finishedSteps:null,image:null,upsellLink:null,upsellText:null,workout:null,badges:[]}},2:function(e,t){e.exports=window.yoast.propTypes},210:function(e,t,a){"use strict";a.d(t,"a",(function(){return f}));var l,c=a(0),n=a(2),r=a.n(n),o=a(1),s=a(5),i=a(153),p=a(3);function d(){return(d=Object.assign||function(e){for(var t=1;te("yoast-seo/workouts").getFinishedSteps(u.c.cornerstone)),p=l||"https://yoa.st/workout-cornerstone-upsell";return Object(c.createElement)(i.a,{id:"cornerstone-workout-card",name:u.c.cornerstone,title:Object(o.__)("The cornerstone approach","wordpress-seo"),subtitle:Object(o.__)("Rank with articles you want to rank with","wordpress-seo"),usps:[Object(o.__)("Make your important articles rank higher","wordpress-seo"),Object(o.__)("Bring more visitors to your articles","wordpress-seo")],image:m,finishableSteps:u.a.cornerstone,finishedSteps:r,upsellLink:p,upsellText:n,workout:t,badges:a})}f.propTypes={workout:r.a.func,badges:r.a.arrayOf(r.a.element),upsellLink:r.a.string,upsellText:r.a.string},f.defaultProps={workout:null,badges:[],upsellLink:null,upsellText:null}},211:function(e,t,a){"use strict";a.d(t,"a",(function(){return f}));var l,c=a(0),n=a(2),r=a.n(n),o=a(1),s=a(5),i=a(153),p=a(3);function d(){return(d=Object.assign||function(e){for(var t=1;te("yoast-seo/workouts").getFinishedSteps(u.c.orphaned)),p=l||"https://yoa.st/workout-orphaned-content-upsell";return Object(c.createElement)(i.a,{id:"orphaned-workout-card",name:u.c.orphaned,title:Object(o.__)("Orphaned content","wordpress-seo"),subtitle:Object(o.__)("Clean up your unlinked content to make sure people can find it","wordpress-seo"),usps:[Object(o.__)("Make pages easier for Google and visitors to find","wordpress-seo"),Object(o.__)("Add internal links to your posts and pages","wordpress-seo")],image:m,finishableSteps:u.a.orphaned,finishedSteps:r,upsellLink:p,upsellText:n,workout:t,badges:a})}f.propTypes={workout:r.a.func,badges:r.a.arrayOf(r.a.element),upsellLink:r.a.string,upsellText:r.a.string},f.defaultProps={workout:null,badges:[],upsellLink:null,upsellText:null}},249:function(e,t,a){"use strict";a.r(t);var l=a(210),c=a(211);window.yoast=window.yoast||{},window.yoast.adminModules={components:{workouts:{CornerstoneWorkoutCard:l.a,OrphanedWorkoutCard:c.a}}}},3:function(e,t){e.exports=window.React},43:function(e,t,a){"use strict";a.d(t,"c",(function(){return l})),a.d(t,"b",(function(){return c})),a.d(t,"a",(function(){return n}));const l={configuration:"configuration",cornerstone:"cornerstone",orphaned:"orphaned"},c={cornerstone:{chooseCornerstones:"chooseCornerstones",checkLinks:"checkLinks",addLinks:"addLinks",improved:"improved",skipped:"skipped"},orphaned:{improveRemove:"improveRemove",update:"update",addLinks:"addLinks",removed:"removed",noindexed:"noindexed",improved:"improved",skipped:"skipped"}},n={cornerstone:[c.cornerstone.chooseCornerstones,c.cornerstone.checkLinks,c.cornerstone.addLinks],orphaned:[c.orphaned.improveRemove,c.orphaned.update,c.orphaned.addLinks]}},5:function(e,t){e.exports=window.wp.data},8:function(e,t){e.exports=window.yoast.componentsNew},9:function(e,t){e.exports=window.yoast.helpers}});