!function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=287)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.yoast.propTypes},function(e,t){e.exports=window.React},function(e,t){e.exports=window.lodash},function(e,t){e.exports=window.wp.data},,function(e,t){e.exports=window.yoast.uiLibrary},function(e,t){e.exports=window.yoast.componentsNew},function(e,t){e.exports=window.yoast.helpers},,function(e,t){e.exports=window.yoast.styledComponents},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"";return Object(a.createInterpolateElement)(e,{a:Object(a.createElement)("a",{id:n,href:t,target:"_blank",rel:"noopener noreferrer"})})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=c(n(3)),o=c(n(127)),s=c(n(130));function c(e){return e&&e.__esModule?e:{default:e}}var i=void 0;t.default=function(e){var t=e.mixedString,n=e.components,c=e.throwErrors;if(i=t,!n)return t;if("object"!==(void 0===n?"undefined":a(n))){if(c)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var l=(0,s.default)(t);try{return function e(t,n){var s,c,l,u,d,p,b,m,h=[],f={};for(p=0;p "+i);if("componentClose"===d.type)throw new Error("Missing opening component token: `"+d.value+"`");if("componentOpen"===d.type){s=n[d.value],l=p;break}h.push(n[d.value])}else h.push(d.value);return s&&(u=function(e,t){var n,a,r=t[e],o=0;for(a=e+1;a3&&void 0!==arguments[3]?arguments[3]:200;try{const r=await e();return!!r&&(r.status===a?t(r):n(r))}catch(e){console.error(e.message)}}async function s(e){try{return await r()(e)}catch(e){return e.error&&e.status?e:e instanceof Response&&await e.json()}}},,function(e,t,n){var a;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t{let{children:t}=e;return Object(a.createElement)("div",null,t)};s.propTypes={renderPriority:o.a.number.isRequired,children:o.a.node.isRequired},t.a=s},,function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"e",(function(){return c})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return d}));var a=n(4),r=n(29);async function o(){return await Object(r.a)({path:"yoast/v1/wincher/authorization-url",method:"GET"})}async function s(){return await Object(r.a)({path:"yoast/v1/wincher/account/limit",method:"GET"})}async function c(){return await Object(r.a)({path:"yoast/v1/wincher/account/upgrade-campaign",method:"GET"})}async function i(e){const{code:t,websiteId:n}=e;return await Object(r.a)({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:t,websiteId:n}})}async function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return await Object(r.a)({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:e,permalink:t},signal:n})}async function u(e){return Object(a.isArray)(e)||(e=[e]),await Object(r.a)({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:e}})}async function d(e){return await Object(r.a)({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:e}})}},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const{get:a}=lodash,r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(window,"wordproofSdk.data"+(e?"."+e:""),t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return l}));var a=n(12),r=n.n(a),o=n(0),s=n(2),c=n.n(s),i=n(18);const l="yoast yoast-gutenberg-modal",u=e=>{const{title:t,className:n,showYoastIcon:a,additionalClassName:s,...c}=e,l=a?Object(o.createElement)("span",{className:"yoast-icon"}):null;return Object(o.createElement)(i.Modal,r()({title:t,className:`${n} ${s}`,icon:l},c),e.children)};u.propTypes={title:c.a.string,className:c.a.string,showYoastIcon:c.a.bool,children:c.a.oneOfType([c.a.node,c.a.arrayOf(c.a.node)]),additionalClassName:c.a.string},u.defaultProps={title:"Yoast SEO",className:l,showYoastIcon:!0,children:null,additionalClassName:""},t.a=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return l}));var a=n(4),r=n(17);const o=e=>Object(a.get)(window,"wordproofSdk.data"+(e?"."+e:""),{}),s=()=>{const e=Object(r.a)();return 1===Object(a.get)(e,"wordproofIntegrationActive",0)},c=e=>{const t=new CustomEvent(e);window.dispatchEvent(t)},i=()=>{c("wordproof:open_authentication")},l=()=>{c("wordproof:open_settings")}},function(e,t){e.exports=window.yoast.socialMetadataForms},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(1),r=n(14),o=n(4);function s(e){return Object(o.isNil)(e)||(e/=10),function(e){switch(e){case"feedback":return{className:"na",screenReaderText:Object(a.__)("Feedback","wordpress-seo"),screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""};case"bad":return{className:"bad",screenReaderText:Object(a.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:Object(a.__)("Needs improvement","wordpress-seo"),screenReaderInclusiveLanguageText:Object(a.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:Object(a.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:Object(a.__)("OK","wordpress-seo"),screenReaderInclusiveLanguageText:Object(a.__)("Potentially non-inclusive","wordpress-seo")};case"good":return{className:"good",screenReaderText:Object(a.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:Object(a.__)("Good","wordpress-seo"),screenReaderInclusiveLanguageText:Object(a.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""}}}(r.interpreters.scoreToRating(e))}},,function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return i}));var a=n(25),r=n.n(a),o=n(54);async function s(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:200;try{const r=await e();return!!r&&(r.status===a?t(r):n(r))}catch(e){}}async function c(e){try{return await r()(e)}catch(e){return e.error&&e.status?e:e instanceof window.Response&&await e.json()}}const i=async()=>await s(async()=>await Object(o.a)(),e=>e,()=>!1)},function(e,t,n){"use strict";n.d(t,"g",(function(){return r})),n.d(t,"h",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"i",(function(){return i})),n.d(t,"c",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"j",(function(){return p})),n.d(t,"d",(function(){return b})),n.d(t,"o",(function(){return m})),n.d(t,"p",(function(){return h})),n.d(t,"k",(function(){return f})),n.d(t,"q",(function(){return g})),n.d(t,"r",(function(){return O})),n.d(t,"n",(function(){return y})),n.d(t,"m",(function(){return j})),n.d(t,"l",(function(){return w}));var a=n(9);const r="SNIPPET_EDITOR_SWITCH_MODE",o="SNIPPET_EDITOR_UPDATE_DATA",s="SNIPPET_EDITOR_FIND_CUSTOM_FIELDS",c="SNIPPET_EDITOR_CUSTOM_FIELD_RESULTS",i="SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLE",l="SNIPPET_EDITOR_HIDE_REPLACEMENT_VARIABLES",u="SNIPPET_EDITOR_REMOVE_REPLACEMENT_VARIABLE",d="SNIPPET_EDITOR_REFRESH",p="SNIPPET_EDITOR_UPDATE_WORDS_TO_HIGHLIGHT",b="LOAD_SNIPPET_EDITOR_DATA";function m(e){return{type:r,mode:e}}function h(e){return{type:o,data:e}}function*f(e,t){const n=yield{type:s,query:e,postId:t};return{type:c,results:n}}function g(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o="string"==typeof t?Object(a.decodeHTML)(t):t;return{type:i,name:e,value:o,label:n,hidden:r}}function O(e){return{type:p,wordsToHighlight:e}}function y(e){return{type:u,name:e}}function j(){return{type:d,time:(new Date).getMilliseconds()}}function w(e){return{type:l,data:e}}},,function(e,t,n){"use strict";var a=n(12),r=n.n(a),o=n(0),s=n(8),c=n(11);const i=n.n(c)()(s.Collapsible)` h2 > button { padding-left: 24px; padding-top: 16px; &:hover { background-color: #f0f0f0; } } div[class^="collapsible_content"] { padding: 24px 0; margin: 0 24px; border-top: 1px solid rgba(0,0,0,0.2); } `;t.a=e=>Object(o.createElement)(i,r()({hasPadding:!0,hasSeparator:!0},e))},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return u}));var a=n(4),r=n(9),o=n(42);const s=e=>({type:e.subtype,width:e.width,height:e.height,url:e.url,id:e.id,sizes:e.sizes,alt:e.alt||e.title||e.name});function c(e){return new Promise((t,n)=>{window.wp.media.attachment||n(),window.wp.media.attachment(e).fetch().then(e=>{t(s(e))}).catch(()=>n())})}function i(e){(function(e){const t=window.wp.media();return t.on("select",()=>{const n=t.state().get("selection").first();e(s(n.attributes))}),t})(e).open()}const l=e=>{const{width:t,height:n}=e,a=Object(o.determineFacebookImageMode)({width:t,height:n}),s=o.FACEBOOK_IMAGE_SIZES[a+"Width"],c=o.FACEBOOK_IMAGE_SIZES[a+"Height"],i=Object.values(e.sizes).find(e=>e.width>=s&&e.height>=c);return{url:i?i.url:e.url,id:e.id,warnings:Object(r.validateFacebookImage)(e),alt:e.alt||""}},u=e=>{const t="summary"!==Object(a.get)(window,"wpseoScriptData.metabox.twitterCardType")?"landscape":"square",n=o.TWITTER_IMAGE_SIZES[t+"Width"],s=o.TWITTER_IMAGE_SIZES[t+"Height"],c=Object.values(e.sizes).find(e=>e.width>=n&&e.height>=s);return{url:c?c.url:e.url,id:e.id,warnings:Object(r.validateTwitterImage)(e),alt:e.alt||""}}},function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"f",(function(){return o})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return i})),n.d(t,"g",(function(){return l})),n.d(t,"c",(function(){return u}));var a=n(46);const r=async e=>{const{state:t,code:n}=e;return await Object(a.a)({path:"wordproof/v1/oauth/authenticate",method:"POST",data:{state:t,code:n}})},o=async e=>{const{settings:t}=e;return await Object(a.a)({path:"wordproof/v1/settings",method:"POST",data:{settings:t}})},s=async()=>await Object(a.a)({path:"wordproof/v1/oauth/destroy",method:"POST"}),c=async()=>await Object(a.a)({path:"wordproof/v1/settings",method:"GET"}),i=async()=>await Object(a.a)({path:"wordproof/v1/authentication",method:"GET"}),l=async e=>Object(a.a)({path:`wordproof/v1/posts/${e}/timestamp`,method:"POST"}),u=async e=>Object(a.a)({path:`wordproof/v1/posts/${e}/timestamp/transaction/latest`,method:"GET"})},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(20),r=n(0),o=n(22);function s(){return Object(a.createHigherOrderComponent)((function(e){return Object(a.pure)((function(t){const n=Object(r.useContext)(o.LocationContext);return Object(r.createElement)(e,{...t,location:n})}))}),"withLocation")}},function(e,t,n){"use strict";n.r(t),n.d(t,"getIconForScore",(function(){return c})),n.d(t,"default",(function(){return i}));var a=n(19),r=n(14);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.getIdentifier(),a={score:e.score,rating:r.interpreters.scoreToRating(e.score),hasMarks:e.hasMarks(),marker:e.getMarker(),id:n,text:e.text,markerId:t.length>0?`${t}:${n}`:n,hasBetaBadge:e.hasBetaBadge(),hasJumps:e.hasJumps(),editFieldName:e.editFieldName};return"ok"===a.rating&&(a.rating="OK"),a}function s(e,t){switch(e.rating){case"error":t.errorsResults.push(e);break;case"feedback":t.considerationsResults.push(e);break;case"bad":t.problemsResults.push(e);break;case"OK":t.improvementsResults.push(e);break;case"good":t.goodResults.push(e)}return t}function c(e){switch(e){case"loading":return{icon:"loading-spinner",color:a.colors.$color_green_medium_light};case"not-set":return{icon:"seo-score-none",color:a.colors.$color_score_icon};case"noindex":return{icon:"seo-score-none",color:a.colors.$color_noindex};case"good":return{icon:"seo-score-good",color:a.colors.$color_green_medium};case"ok":return{icon:"seo-score-ok",color:a.colors.$color_ok};default:return{icon:"seo-score-bad",color:a.colors.$color_red}}}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n={errorsResults:[],problemsResults:[],improvementsResults:[],goodResults:[],considerationsResults:[]};if(!e)return n;for(let a=0;a{const[t,n]=Object(a.useState)(!1),{prefixIcon:o}=e;return Object(a.createElement)("div",{className:"yoast components-panel__body "+(t?"is-opened":"")},Object(a.createElement)("h2",{className:"components-panel__body-title"},Object(a.createElement)("button",{onClick:function(){n(!t)},className:"components-button components-panel__body-toggle"},Object(a.createElement)("span",{className:"yoast-icon-span",style:{fill:""+(o&&o.color||"")}},o&&Object(a.createElement)(r.SvgIcon,{icon:o.icon,color:o.color,size:o.size})),Object(a.createElement)("span",{className:"yoast-title-container"},Object(a.createElement)("div",{className:"yoast-title"},e.title),Object(a.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),e.hasBetaBadgeLabel&&Object(a.createElement)(r.BetaBadge,null),Object(a.createElement)("span",{className:"yoast-chevron","aria-hidden":"true"}))),t&&e.children)};t.a=c,c.propTypes={title:s.a.string.isRequired,children:s.a.oneOfType([s.a.node,s.a.arrayOf(s.a.node)]).isRequired,prefixIcon:s.a.object,subTitle:s.a.string,hasBetaBadgeLabel:s.a.bool},c.defaultProps={prefixIcon:null,subTitle:"",hasBetaBadgeLabel:!1}},function(e,t,n){"use strict";var a=n(19),r=n(9),o=n(11),s=n.n(o);const c=Object(r.makeOutboundLink)(s.a.a` display: inline-block; position: relative; outline: none; text-decoration: none; border-radius: 100%; width: 24px; height: 24px; margin: -4px 0; vertical-align: middle; color: ${a.colors.$color_help_text}; &:hover, &:focus { color: ${a.colors.$color_snippet_focus}; } // Overwrite the default blue active color for links. &:active { color: ${a.colors.$color_help_text}; } &::before { position: absolute; top: 0; left: 0; padding: 2px; content: "\f223"; } `);t.a=c},,,function(e,t){e.exports=window.wp.richText},,function(e,t,n){"use strict";n.r(t),n.d(t,"nonReplaceVars",(function(){return l})),n.d(t,"fillReplacementVariables",(function(){return u})),n.d(t,"handlePrefixes",(function(){return d})),n.d(t,"createLabelFromName",(function(){return p})),n.d(t,"pushNewReplaceVar",(function(){return b})),n.d(t,"replaceSpaces",(function(){return m})),n.d(t,"prepareCustomFieldForDispatch",(function(){return h})),n.d(t,"prepareCustomTaxonomyForDispatch",(function(){return f})),n.d(t,"mapCustomTaxonomies",(function(){return g})),n.d(t,"mapCustomFields",(function(){return O})),n.d(t,"excerptFromContent",(function(){return y})),n.d(t,"applyReplaceUsingPlugin",(function(){return j}));var a=n(4),r=n(133),o=n(47),s=n(27),c=n(9);const{stripHTMLTags:i}=c.strings,l=["slug","content","contentImage","snippetPreviewImageURL"];function u(e,t){Object(a.forEach)(e,(e,n)=>{l.includes(n)||t.dispatch(Object(o.q)(n,e))})}function d(e){if(!["ct_","cf_","pt_"].includes(e.substr(0,3)))return e.replace(/_/g," ");const t=e.slice(0,3);switch(-1!==(e=e.slice(3)).indexOf("desc_")&&(e=e.slice(5)+" description"),t){case"ct_":e+=" (custom taxonomy)";break;case"cf_":e+=" (custom field)";break;case"pt_":e="Post type ("+(e=e.replace("single","singular"))+")"}return e}function p(e){return e=d(e),Object(s.b)(e)}function b(e,t){return e.push({name:t.name,label:t.label||p(t.name),value:t.value}),e}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e.replace(/\s/g,t)}function h(e){return{name:"cf_"+m(e),label:Object(s.b)(e+" (custom field)")}}function f(e){const t=m(e);return{name:"ct_"+t,label:Object(s.b)(e+" (custom taxonomy)"),descriptionName:"ct_desc_"+t,descriptionLabel:Object(s.b)(e+" description (custom taxonomy)")}}function g(e,t){return e.custom_taxonomies?(Object(a.forEach)(e.custom_taxonomies,(e,n)=>{const{name:a,label:r,descriptionName:s,descriptionLabel:c}=f(n);t.dispatch(Object(o.q)(a,e.name,r)),t.dispatch(Object(o.q)(s,e.description,c))}),Object(a.omit)({...e},"custom_taxonomies")):e}function O(e,t){return e.custom_fields?(Object(a.forEach)(e.custom_fields,(e,n)=>{const{name:a,label:r}=h(n);t.dispatch(Object(o.q)(a,e,r))}),Object(a.omit)({...e},"custom_fields")):e}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:156;return(e=(e=Object(r.stripTags)(e)).trim()).length<=t||(e=e.substring(0,t),/\s/.test(e)&&(e=e.substring(0,e.lastIndexOf(" ")))),e}const j=function(e){const t=Object(a.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!Object(a.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){const t=Object(a.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],a.identity);return{url:e.url,title:i(t(e.title)),description:i(t(e.description)),filteredSEOTitle:e.filteredSEOTitle?i(t(e.filteredSEOTitle)):""}}(e);const n=t._applyModifications.bind(t);return{url:e.url,title:i(n("data_page_title",e.title)),description:i(n("data_meta_desc",e.description)),filteredSEOTitle:e.filteredSEOTitle?i(n("data_page_title",e.filteredSEOTitle)):""}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n(2),o=n.n(r);function s(e){let{target:t,children:n}=e,r=t;return"string"==typeof t&&(r=document.getElementById(t)),r?Object(a.createPortal)(n,r):null}s.propTypes={target:o.a.oneOfType([o.a.string,o.a.object]).isRequired,children:o.a.node.isRequired}},function(e,t,n){"use strict";var a=n(0);let r,o,s,c;const i=/<(\/)?(\w+)\s*(\/)?>/g;function l(e,t,n,a,r){return{element:e,tokenStart:t,tokenLength:n,prevOffset:a,leadingTextStart:r,children:[]}}function u(){const e=r.length-o;0!==e&&s.push(r.substr(o,e))}function d(e){const{element:t,tokenStart:n,tokenLength:o,prevOffset:s,children:i}=e,l=c[c.length-1],u=r.substr(l.prevOffset,n-l.prevOffset);u&&l.children.push(u),l.children.push(Object(a.cloneElement)(t,null,...i)),l.prevOffset=s||n+o}function p(e){const t=function(){const e=i.exec(r);if(null===e)return["no-more-tokens"];const t=e.index,[n,a,o,s]=e,c=n.length;return s?["self-closed",o,t,c]:a?["closer",o,t,c]:["opener",o,t,c]}(),[n,p,b,m]=t,h=c.length,f=b>o?o:null;if(!e[p])return u(),!1;switch(n){case"no-more-tokens":if(0!==h){const{leadingTextStart:e,tokenStart:t}=c.pop();s.push(r.substr(e,t))}return u(),!1;case"self-closed":return 0===h?(null!==f&&s.push(r.substr(f,b-f)),s.push(e[p]),o=b+m,!0):(d(l(e[p],b,m)),o=b+m,!0);case"opener":return c.push(l(e[p],b,m,b+m,f)),o=b+m,!0;case"closer":if(1===h)return function(e){const{element:t,leadingTextStart:n,prevOffset:o,tokenStart:i,children:l}=c.pop(),u=e?r.substr(o,e-o):r.substr(o);u&&l.push(u),null!==n&&s.push(r.substr(n,i-n)),s.push(Object(a.cloneElement)(t,null,...l))}(b),o=b+m,!0;const t=c.pop(),n=r.substr(t.prevOffset,b-t.prevOffset);t.children.push(n),t.prevOffset=b+m;const i=l(t.element,t.tokenStart,t.tokenLength,b+m);return i.children=t.children,d(i),o=b+m,!0;default:return u(),!1}}t.a=(e,t)=>{if(r=e,o=0,s=[],c=[],i.lastIndex=0,!(e=>{const t="object"==typeof e,n=t&&Object.values(e);return t&&n.length&&n.every(e=>Object(a.isValidElement)(e))})(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(p(t));return Object(a.createElement)(a.Fragment,null,...s)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return i}));var a=n(11),r=n.n(a),o=n(8),s=n(9);const c=r.a.div` min-width: 600px; @media screen and ( max-width: 680px ) { min-width: 0; width: 86vw; } `,i=r()(o.Icon)` float: ${Object(s.getDirectionalStyle)("right","left")}; margin: ${Object(s.getDirectionalStyle)("0 0 16px 16px","0 16px 16px 0")}; && { width: 150px; height: 150px; @media screen and ( max-width: 680px ) { width: 80px; height: 80px; } } `},function(e,t,n){"use strict";var a=n(0),r=n(2),o=n.n(r),s=n(11),c=n(22);const i=e=>{let{theme:t,location:n,children:r}=e;return Object(a.createElement)(c.LocationProvider,{value:n},Object(a.createElement)(s.ThemeProvider,{theme:t},r))};i.propTypes={theme:o.a.object.isRequired,location:o.a.oneOf(["sidebar","metabox","modal"]).isRequired,children:o.a.element.isRequired},t.a=i},function(e,t,n){"use strict";var a=n(0),r=n(8),o=n(2),s=n.n(o);const c=e=>Object(a.createElement)("div",{className:"yoast components-panel__body"},Object(a.createElement)("h2",{className:"components-panel__body-title"},Object(a.createElement)("button",{id:e.id,onClick:e.onClick,className:"components-button components-panel__body-toggle"},e.prefixIcon&&Object(a.createElement)("span",{className:"yoast-icon-span",style:{fill:""+(e.prefixIcon&&e.prefixIcon.color||"")}},Object(a.createElement)(r.SvgIcon,{size:e.prefixIcon.size,icon:e.prefixIcon.icon})),Object(a.createElement)("span",{className:"yoast-title-container"},Object(a.createElement)("div",{className:"yoast-title"},e.title),Object(a.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),e.children,e.suffixIcon&&Object(a.createElement)(r.SvgIcon,{size:e.suffixIcon.size,icon:e.suffixIcon.icon}))));t.a=c,c.propTypes={onClick:s.a.func.isRequired,title:s.a.string.isRequired,id:s.a.string,subTitle:s.a.string,suffixIcon:s.a.object,prefixIcon:s.a.object,children:s.a.node},c.defaultProps={id:"",suffixIcon:null,prefixIcon:null,subTitle:"",children:null}},function(e,t,n){"use strict";var a=n(0),r=n(2),o=n.n(r),s=n(1);const c=e=>{let{data:t,mapChartDataToTableData:n,dataTableCaption:r,dataTableHeaderLabels:o,isDataTableVisuallyHidden:c}=e;return t.length!==o.length?Object(a.createElement)("p",null,Object(s.__)("The number of headers and header labels don't match.","wordpress-seo")):Object(a.createElement)("div",{className:c?"screen-reader-text":null},Object(a.createElement)("table",null,Object(a.createElement)("caption",null,r),Object(a.createElement)("thead",null,Object(a.createElement)("tr",null,o.map((e,t)=>Object(a.createElement)("th",{key:t},e)))),Object(a.createElement)("tbody",null,Object(a.createElement)("tr",null,t.map((e,t)=>Object(a.createElement)("td",{key:t},n(e.y)))))))};c.propTypes={data:o.a.arrayOf(o.a.shape({x:o.a.number,y:o.a.number})).isRequired,mapChartDataToTableData:o.a.func,dataTableCaption:o.a.string.isRequired,dataTableHeaderLabels:o.a.array.isRequired,isDataTableVisuallyHidden:o.a.bool},c.defaultProps={mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};var i=c;const l=e=>{let{data:t,width:n,height:r,fillColor:o,strokeColor:s,strokeWidth:c,className:l,mapChartDataToTableData:u,dataTableCaption:d,dataTableHeaderLabels:p,isDataTableVisuallyHidden:b}=e;const m=Math.max(1,Math.max(...t.map(e=>e.x))),h=Math.max(1,Math.max(...t.map(e=>e.y))),f=r-c,g=t.map(e=>`${e.x/m*n},${f-e.y/h*f+c}`).join(" "),O=`0,${f+c} `+g+` ${n},${f+c}`;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("svg",{width:n,height:r,viewBox:`0 0 ${n} ${r}`,className:l,role:"img","aria-hidden":"true",focusable:"false"},Object(a.createElement)("polygon",{fill:o,points:O}),Object(a.createElement)("polyline",{fill:"none",stroke:s,strokeWidth:c,strokeLinejoin:"round",strokeLinecap:"round",points:g})),u&&Object(a.createElement)(i,{data:t,mapChartDataToTableData:u,dataTableCaption:d,dataTableHeaderLabels:p,isDataTableVisuallyHidden:b}))};l.propTypes={data:o.a.arrayOf(o.a.shape({x:o.a.number,y:o.a.number})).isRequired,width:o.a.number.isRequired,height:o.a.number.isRequired,fillColor:o.a.string,strokeColor:o.a.string,strokeWidth:o.a.number,className:o.a.string,mapChartDataToTableData:o.a.func,dataTableCaption:o.a.string.isRequired,dataTableHeaderLabels:o.a.array.isRequired,isDataTableVisuallyHidden:o.a.bool},l.defaultProps={fillColor:null,strokeColor:"#000000",strokeWidth:1,className:"",mapChartDataToTableData:null,isDataTableVisuallyHidden:!0},t.a=l},,,,function(e,t,n){"use strict";var a=n(20),r=n(5),o=n(99);t.a=Object(a.compose)([Object(r.withSelect)((e,t)=>{const{getPostOrPageString:n,getIsModalOpen:a}=e("yoast-seo/editor");return{postTypeName:n(),isOpen:a(t.id)}}),Object(r.withDispatch)((e,t)=>{const{openEditorModal:n,closeEditorModal:a}=e("yoast-seo/editor");return{open:()=>n(t.id),close:a}})])(o.a)},,function(e,t,n){"use strict";var a=n(0),r=n(28),o=n.n(r),s=n(2),c=n.n(s),i=n(11),l=n.n(i),u=n(9);const d=l.a.ul` list-style: none; margin: 0 0 24px; padding: 0; li { margin: 10px 0 0 0; } span[aria-hidden="true"]:before { content: ""; display: inline-block; height: 13px; width: 13px; background-size: 13px 13px; background-image: var( --yoast-svg-icon-check ); background-repeat: no-repeat; margin-right: 10px; } `,p=l.a.small` display: block; margin-top: 4px; `,b=Object(u.makeOutboundLink)();class m extends a.Component{constructor(e){super(e)}createBenefitsList(e){return e.length>0&&Object(a.createElement)(d,{role:"list"},e.map((e,t)=>Object(a.createElement)("li",{key:t},Object(a.createElement)("span",{"aria-hidden":"true"}),o()({mixedString:e.replace("","{{strong}}").replace("","{{/strong}}"),components:{strong:Object(a.createElement)("strong",null)}}))))}createInfoParagraphs(e){return e.map((e,t)=>Object(a.createElement)("p",{key:t},e))}render(){return Object(a.createElement)("div",null,this.createInfoParagraphs(this.props.infoParagraphs),this.createBenefitsList(this.props.benefits),Object(a.createElement)(b,this.props.upsellButton,this.props.upsellButtonText,this.props.upsellButtonHasCaret&&Object(a.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})),Object(a.createElement)(p,{id:this.props.upsellButton["aria-describedby"]},this.props.upsellButtonLabel))}}m.propTypes={benefits:c.a.array,infoParagraphs:c.a.array,upsellButton:c.a.object,upsellButtonText:c.a.string.isRequired,upsellButtonLabel:c.a.string,upsellButtonHasCaret:c.a.bool},m.defaultProps={infoParagraphs:[],benefits:[],upsellButton:{href:"",className:"button button-primary"},upsellButtonLabel:"",upsellButtonHasCaret:!0},t.a=m},function(e,t){e.exports=window.moment},,function(e,t){e.exports=window.yoast.featureFlag},,,,,function(e,t,n){"use strict";function a(e){return function(){return e}}var r=function(){};r.thatReturns=a,r.thatReturnsFalse=a(!1),r.thatReturnsTrue=a(!0),r.thatReturnsNull=a(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));class a{static get articleTypeInput(){return document.getElementById("yoast_wpseo_schema_article_type")}static get defaultArticleType(){return a.articleTypeInput.getAttribute("data-default")}static get articleType(){return a.articleTypeInput.value}static set articleType(e){a.articleTypeInput.value=e}static get pageTypeInput(){return document.getElementById("yoast_wpseo_schema_page_type")}static get defaultPageType(){return a.pageTypeInput.getAttribute("data-default")}static get pageType(){return a.pageTypeInput.value}static set pageType(e){a.pageTypeInput.value=e}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return d}));var a=n(0),r=n(1),o=n(40),s=n(2),c=n.n(s),i=n(4),l=n(78),u=n(22);const d=e=>{let t=!0;if("blur"===e.type){const{relatedTarget:n}=e;if(n){const e=["media-modal","wp-core-ui"];t=Object(i.intersection)(e,Array.from(n.classList)).length!==e.length}}return t},p=e=>{let{id:t,postTypeName:n,children:s,title:c,isOpen:i,close:p,open:b,shouldCloseOnClickOutside:m,showChangesWarning:h}=e;const f=Object(a.useCallback)(e=>{d(e)&&p()},[p]);return Object(a.createElement)(a.Fragment,null,i&&Object(a.createElement)(u.LocationProvider,{value:"modal"},Object(a.createElement)(o.a,{title:c,onRequestClose:f,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal",id:"id",shouldCloseOnClickOutside:m},Object(a.createElement)("div",{className:"yoast-content-container"},Object(a.createElement)("div",{className:"yoast-modal-content"},s)),Object(a.createElement)("div",{className:"yoast-notice-container"},Object(a.createElement)("hr",null),Object(a.createElement)("div",{className:"yoast-button-container"},h&&Object(a.createElement)("p",null, /* Translators: %s translates to the Post Label in singular form */ Object(r.sprintf)(Object(r.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),n)),Object(a.createElement)("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:f}, /* Translators: %s translates to the Post Label in singular form */ Object(r.sprintf)(Object(r.__)("Return to your %s","wordpress-seo"),n)))))),Object(a.createElement)(l.a,{id:t+"-open-button",title:c,suffixIcon:{size:"20px",icon:"pencil-square"},onClick:b}))};p.propTypes={id:c.a.string.isRequired,postTypeName:c.a.string.isRequired,children:c.a.oneOfType([c.a.node,c.a.arrayOf(c.a.node)]).isRequired,title:c.a.string.isRequired,isOpen:c.a.bool.isRequired,open:c.a.func.isRequired,close:c.a.func.isRequired,shouldCloseOnClickOutside:c.a.bool,showChangesWarning:c.a.bool},p.defaultProps={shouldCloseOnClickOutside:!0,showChangesWarning:!0},t.a=p},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return O}));var a=n(0),r=n(2),o=n.n(r),s=n(1),c=n(4),i=n(86),l=n.n(i),u=n(8),d=n(9),p=n(79),b=()=>Object(a.createElement)("p",{className:"yoast-wincher-seo-performance-modal__loading-message"},Object(s.__)("Tracking the ranking position...","wordpress-seo")," ",Object(a.createElement)(u.SvgIcon,{icon:"loading-spinner"}));const m=Object(d.makeOutboundLink)();function h(e){return Math.round(100*e)}function f(e){let{chartData:t}=e;if(Object(c.isEmpty)(t)||Object(c.isEmpty)(t.position))return"?";const n=function(e){return Array.from({length:e.position.history.length},(e,t)=>t+1).map(e=>Object(s.sprintf)(Object(s._n)("%d day","%d days",e,"wordpress-seo"),e))}(t),r=t.position.history.map((e,t)=>({x:t,y:101-e.value}));return Object(a.createElement)(p.a,{width:66,height:24,data:r,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:h,dataTableCaption:Object(s.__)("Keyphrase position in the last 90 days on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:n})}function g(e){return!e||!e.position||e.position.value>100?"> 100":e.position.value}function O(e){const{keyphrase:t,rowData:n,onTrackKeyphrase:r,onUntrackKeyphrase:o,isFocusKeyphrase:i,isDisabled:d,isLoading:p}=e,h=!Object(c.isEmpty)(n),O=Object(a.useCallback)(()=>{d||(h?o(t,n.id):r(t))},[t,r,o,h,n,d]);return Object(a.createElement)("tr",null,Object(a.createElement)("td",{className:"yoast-table--nopadding"},function(e){let{keyphrase:t,isEnabled:n,toggleAction:r,isLoading:o}=e;return o?Object(a.createElement)(u.SvgIcon,{icon:"loading-spinner"}):Object(a.createElement)(u.Toggle,{id:"toggle-keyphrase-tracking-"+t,className:"wincher-toggle",isEnabled:n,onSetToggleState:r,showToggleStateLabel:!1})}({keyphrase:t,isEnabled:h,toggleAction:O,isLoading:p})),Object(a.createElement)("td",null,t,i&&Object(a.createElement)("span",null,"*")),function(e){const{rowData:t,websiteId:n}=e,r=!Object(c.isEmpty)(t),o=t&&t.updated_at&&l()(t.updated_at)>=l()().subtract(7,"days"),i=t?Object(s.sprintf)("https://app.wincher.com/websites/%s/keywords?serp=%s&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast",n,t.id):null;return r?o?Object(a.createElement)(a.Fragment,null,Object(a.createElement)("td",null,g(t)),Object(a.createElement)("td",{className:"yoast-table--nopadding"},Object(a.createElement)(f,{chartData:t})),Object(a.createElement)("td",{className:"yoast-table--nobreak"},Object(a.createElement)(m,{href:i},Object(s.__)("View","wordpress-seo")))):Object(a.createElement)(a.Fragment,null,Object(a.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},Object(a.createElement)(b,null))):Object(a.createElement)(a.Fragment,null,Object(a.createElement)("td",null,"?"),Object(a.createElement)("td",{className:"yoast-table--nopadding"},"?"),Object(a.createElement)("td",{className:"yoast-table--nobreak"}))}(e))}f.propTypes={chartData:o.a.object},f.defaultProps={chartData:{}},O.propTypes={rowData:o.a.object,keyphrase:o.a.string.isRequired,onTrackKeyphrase:o.a.func,onUntrackKeyphrase:o.a.func,isFocusKeyphrase:o.a.bool,isDisabled:o.a.bool,isLoading:o.a.bool,websiteId:o.a.string},O.defaultProps={rowData:{},onTrackKeyphrase:()=>{},onUntrackKeyphrase:()=>{},isFocusKeyphrase:!1,isDisabled:!1,isLoading:!1,websiteId:""}},function(e,t){e.exports=window.wp.blocks},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a,r,o=n(3);function s(){return(s=Object.assign||function(e){for(var t=1;te.isTitleShortened?"#F5F7F7":"transparent"}; border: 1px solid #C7C7C7; border-left: 4px solid${m.colors.$color_pink_dark}; padding: 0 16px; margin-bottom: 1.5em; `,E=e=>{let{limit:t,usage:n,isTitleShortened:a,isFreeAccount:r}=e;const s=Object(p.sprintf)( /* Translators: %1$s expands to the number of used keywords. * %2$s expands to the account keywords limit. */ Object(p.__)("Your are tracking %1$s out of %2$s keyphrases included in your free account.","wordpress-seo"),n,t),c=Object(p.sprintf)( /* Translators: %1$s expands to the number of used keywords. * %2$s expands to the account keywords limit. */ Object(p.__)("Your are tracking %1$s out of %2$s keyphrases included in your account.","wordpress-seo"),n,t),i=r?s:c,l=Object(p.sprintf)( /* Translators: %1$s expands to the number of used keywords. * %2$s expands to the account keywords limit. */ Object(p.__)("Keyphrases tracked: %1$s/%2$s","wordpress-seo"),n,t),u=a?l:i;return Object(o.createElement)(g,null,a&&Object(o.createElement)(O,{icon:"exclamation-triangle",color:m.colors.$color_pink_dark,size:"14px"}),u)};E.propTypes={limit:d.a.number.isRequired,usage:d.a.number.isRequired,isTitleShortened:d.a.bool,isFreeAccount:d.a.bool};const v=Object(h.makeOutboundLink)(),k=e=>{let{discount:t,months:n}=e;const a=Object(o.createElement)(v,{href:wpseoAdminGlobalL10n["links.wincher.upgrade"],style:{fontWeight:600}},Object(p.sprintf)( /* Translators: %s : Expands to "Wincher". */ Object(p.__)("Click here to upgrade your %s plan","wordpress-seo"),"Wincher"));if(!t||!n)return Object(o.createElement)(j,null,a);const r=100*t,s=Object(p.sprintf)( /* Translators: %1$s expands to upgrade account link. * %2$s expands to the upgrade discount value. * %3$s expands to the upgrade discount duration e.g. 2 months. */ Object(p.__)("%1$s and get an exclusive %2$s discount for %3$s month(s).","wordpress-seo"),"{{wincherAccountUpgradeLink/}}",r+"%",n);return Object(o.createElement)(j,null,l()({mixedString:s,components:{wincherAccountUpgradeLink:a}}))};k.propTypes={discount:d.a.number,months:d.a.number};const _=e=>{let{onClose:t,isTitleShortened:n}=e;const a=(()=>{const[e,t]=Object(o.useState)(null);return Object(o.useEffect)(()=>{e||Object(f.b)().then(e=>t(e))},[e]),e})(),s=(()=>{const[e,t]=Object(o.useState)(null);return Object(o.useEffect)(()=>{e||Object(f.e)().then(e=>t(e))},[e]),e})();if(null===a)return null;const{limit:c,usage:i}=a;if(!(c&&i/c>=.8))return null;const l=Boolean(null==s?void 0:s.discount);return Object(o.createElement)(w,{isTitleShortened:n},t&&Object(o.createElement)(y,{"aria-label":Object(p.__)("Close the upgrade callout","wordpress-seo"),onClick:t},Object(o.createElement)(b.SvgIcon,{icon:"times-circle",color:m.colors.$color_pink_dark,size:"14px"})),Object(o.createElement)(E,r()({},a,{isTitleShortened:n,isFreeAccount:l})),Object(o.createElement)(k,{discount:null==s?void 0:s.discount,months:null==s?void 0:s.months}))};_.propTypes={onClose:d.a.func,isTitleShortened:d.a.bool},t.a=_},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));class a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.url=e,this.origin=new URL(e).origin,this.eventHandlers=Object.assign({success:{type:"",callback:()=>{}},error:{type:"",callback:()=>{}}},t),this.options=Object.assign({height:570,width:340,title:""},n),this.popup=null,this.createPopup=this.createPopup.bind(this),this.messageHandler=this.messageHandler.bind(this),this.getPopup=this.getPopup.bind(this)}createPopup(){const{height:e,width:t,title:n}=this.options,a=["top="+(window.top.outerHeight/2+window.top.screenY-e/2),"left="+(window.top.outerWidth/2+window.top.screenX-t/2),"width="+t,"height="+e,"resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(this.url,n,a.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}async messageHandler(e){const{data:t,source:n,origin:a}=e;a===this.origin&&this.popup===n&&(t.type===this.eventHandlers.success.type&&(this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),await this.eventHandlers.success.callback(t)),t.type===this.eventHandlers.error.type&&(this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),await this.eventHandlers.error.callback(t)))}getPopup(){return this.popup}isClosed(){return!this.popup||this.popup.closed}focus(){this.isClosed()||this.popup.focus()}}},function(e,t,n){"use strict";var a=n(0),r=n(2),o=n.n(r),s=n(1),c=n(28),i=n.n(c),l=n(8);const u=e=>{const t=Object(s.sprintf)( /* translators: %s expands to a link to open the Wincher login popup. */ Object(s.__)("It seems like something went wrong when retrieving your website's data. Please %s and try again.","wordpress-seo"),"{{reconnectToWincher/}}","Wincher");return Object(a.createElement)(l.Alert,{type:"error",className:e.className},i()({mixedString:t,components:{reconnectToWincher:Object(a.createElement)("a",{href:"#",onClick:t=>{t.preventDefault(),e.onReconnect()}},Object(s.sprintf)( /* translators: %s : Expands to "Wincher". */ Object(s.__)("reconnect to %s","wordpress-seo"),"Wincher"))}}))};u.propTypes={onReconnect:o.a.func.isRequired,className:o.a.string},u.defaultProps={className:""},t.a=u},function(e,t,n){"use strict";var a=n(0),r=n(2),o=n.n(r),s=n(11),c=n.n(s),i=n(28),l=n.n(i),u=n(1),d=n(8),p=n(9),b=n(15),m=n(22);const h=c()(d.Alert)` p { margin: 0; } `,f=Object(p.makeOutboundLink)(),g=e=>{const t=Object(u.sprintf)( /* Translators: %s expands to the social medium name, which is either Twitter or Facebook. %s expands to Yoast SEO Premium */ Object(u.__)("Want to see how your content will look when it’s shared on %s?","wordpress-seo"),e.socialMediumName),n=Object(u.sprintf)( /* Translators: %s expands to Yoast SEO Premium */ Object(u.__)("Get %s to unlock social previews!","wordpress-seo"),"Yoast SEO Premium"),{locationContext:r}=Object(m.useRootContext)();return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(h,{type:"info"},l()({mixedString:t,components:{strong:Object(a.createElement)("b",null)}}),Object(a.createElement)("br",null),Object(a.createElement)(f,{"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",href:Object(b.addQueryArgs)(wpseoAdminL10n["shortlinks.upsell.social_preview."+e.socialMediumName.toLowerCase()],{context:r})},Object(a.createElement)("p",null,n))))};g.propTypes={socialMediumName:o.a.oneOf(["Twitter","Facebook"]).isRequired};var O=g,y=n(42),j=n(113);class w extends a.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.setHoveredField=this.setHoveredField.bind(this),this.setActiveField=this.setActiveField.bind(this),this.setEditorRef=this.setEditorRef.bind(this),this.setEditorFocus=this.setEditorFocus.bind(this)}setHoveredField(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}setActiveField(e){e!==this.state.activeField&&this.setState({activeField:e},()=>this.setEditorFocus(e))}setEditorFocus(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}setEditorRef(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}render(){const{onDescriptionChange:e,onTitleChange:t,onSelectImageClick:n,onRemoveImageClick:r,socialMediumName:o,imageWarnings:s,description:c,descriptionInputPlaceholder:i,imageUrl:l,alt:u,title:d,titleInputPlaceholder:p,replacementVariables:b,recommendedReplacementVariables:m,onReplacementVariableSearchChange:h,isPremium:f,location:g}=this.props;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(O,{socialMediumName:o}),Object(a.createElement)(y.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:o,title:d,titleInputPlaceholder:p,onRemoveImageClick:r,imageSelected:!!l,imageUrl:l,imageAltText:u,onTitleChange:t,onSelectImageClick:n,description:c,descriptionInputPlaceholder:i,imageWarnings:s,replacementVariables:b,recommendedReplacementVariables:m,onReplacementVariableSearchChange:h,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:f,setEditorRef:this.setEditorRef,idSuffix:g}))}}w.propTypes={title:o.a.string.isRequired,onTitleChange:o.a.func.isRequired,description:o.a.string.isRequired,onDescriptionChange:o.a.func.isRequired,imageUrl:o.a.string.isRequired,onSelectImageClick:o.a.func.isRequired,onRemoveImageClick:o.a.func.isRequired,socialMediumName:o.a.string.isRequired,isPremium:o.a.bool,imageWarnings:o.a.array,descriptionInputPlaceholder:o.a.string,titleInputPlaceholder:o.a.string,replacementVariables:j.replacementVariablesShape,recommendedReplacementVariables:j.recommendedReplacementVariablesShape,onReplacementVariableSearchChange:o.a.func,location:o.a.string,alt:o.a.string},w.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",onReplacementVariableSearchChange:null,location:"",alt:""},t.a=w},function(e,t,n){"use strict";function a(e){const t=new window.CustomEvent(e);window.dispatchEvent(t)}n.d(t,"a",(function(){return a}))},function(e,t){e.exports=window.yoast.replacementVariableEditor},,,function(e,t,n){"use strict";var a=n(0),r=n(1),o=n(28),s=n.n(o),c=n(9);const i=Object(c.makeOutboundLink)(),l=Object(c.makeOutboundLink)();t.a=()=>{const e=Object(r.sprintf)(Object(r.__)( /* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */ "With %1$s you can track the ranking position of your page in the search results based on your keyphrase(s). %2$s","wordpress-seo"),"{{wincherLink/}}","{{wincherReadMoreLink/}}");return Object(a.createElement)("p",null,s()({mixedString:e,components:{wincherLink:Object(a.createElement)(i,{href:wpseoAdminGlobalL10n["links.wincher.website"]},"Wincher"),wincherReadMoreLink:Object(a.createElement)(l,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"]},Object(r.__)("Read more about keyphrase tracking with Wincher","wordpress-seo"))}}))}},function(e,t,n){"use strict";var a=n(5),r=n(20),o=n(12),s=n.n(o),c=n(0),i=n(1),l=n(2),u=n.n(l),d=n(4),p=n(11),b=n.n(p),m=n(8),h=n(9),f=n(28),g=n.n(f);const O=Object(h.makeOutboundLink)(),y=e=>{const t=Object(i.sprintf)( /* translators: %d expands to the amount of allowed keyphrases on a free account, %s expands to a link to Wincher plans. */ Object(i.__)("You've reached the maximum amount of %d keyphrases you can add to your Wincher account. If you wish to add more keyphrases, please %s.","wordpress-seo"),e.limit,"{{updateWincherPlanLink/}}");return Object(c.createElement)(m.Alert,{type:"error"},g()({mixedString:t,components:{updateWincherPlanLink:Object(c.createElement)(O,{href:wpseoAdminGlobalL10n["links.wincher.pricing"]},Object(i.sprintf)( /* translators: %s : Expands to "Wincher". */ Object(i.__)("upgrade your %s plan","wordpress-seo"),"Wincher"))}}))};y.propTypes={limit:u.a.number},y.defaultProps={limit:10};var j=y,w=()=>Object(c.createElement)(m.Alert,{type:"error"},Object(i.__)("Something went wrong while tracking the ranking position(s) of your page. Please try again later.","wordpress-seo")),E=n(108),v=()=>Object(c.createElement)(m.Alert,{type:"success"},Object(i.sprintf)( /* translators: %s: Expands to "Wincher". */ Object(i.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher")),k=()=>Object(c.createElement)(m.Alert,{type:"info"},Object(i.sprintf)( /* translators: %s: Expands to "Wincher". */ Object(i.__)("%s is currently tracking the ranking position(s) of your page. This may take a few minutes. Please wait or check back later.","wordpress-seo"),"Wincher")),_=n(102),T=n(34),R=n(29);const x=Object(h.makeOutboundLink)(),S=b.a.span` display: block; font-style: italic; @media (min-width: 782px) { display: inline; position: absolute; ${Object(h.getDirectionalStyle)("right","left")}: 8px; } `,C=b.a.th` min-width: 60px; `,A=b.a.div` width: 100%; overflow-y: auto; `,P=e=>{const t=Object(c.useRef)();return Object(c.useEffect)(()=>{t.current=e}),t.current},I=Object(d.debounce)(T.d,500,{leading:!0}),L=e=>{const{addTrackedKeyphrase:t,isLoggedIn:n,keyphrases:a,permalink:r,removeTrackedKeyphrase:o,setKeyphraseLimitReached:s,setRequestFailed:l,setRequestSucceeded:u,setTrackedKeyphrases:p,setHasTrackedAll:b,trackAll:m,trackedKeyphrases:h,isNewlyAuthenticated:f,websiteId:g,focusKeyphrase:O,newRequest:y}=e,j=Object(c.useRef)(),w=Object(c.useRef)(),E=Object(c.useRef)(!1),[v,k]=Object(c.useState)([]),L=Object(c.useCallback)(e=>{const t=e.toLowerCase();return h&&!Object(d.isEmpty)(h)&&h.hasOwnProperty(t)?h[t]:null},[h]),F=Object(c.useMemo)(()=>async()=>{await Object(R.b)(()=>(w.current&&w.current.abort(),w.current="undefined"==typeof AbortController?null:new AbortController,I(a,r,w.current.signal)),e=>{u(e),p(e.results)},e=>{l(e)})},[u,l,p,a,r]),N=Object(c.useCallback)(async e=>{const n=(Array.isArray(e)?e:[e]).map(e=>e.toLowerCase());k(e=>[...e,...n]),await Object(R.b)(()=>Object(T.f)(n),e=>{u(e),t(e.results),F()},e=>{400===e.status&&e.limit&&s(e.limit),l(e)},201),k(e=>Object(d.without)(e,...n))},[u,l,s,t,F]),q=Object(c.useCallback)(async(e,t)=>{e=e.toLowerCase(),k(t=>[...t,e]),await Object(R.b)(()=>Object(T.g)(t),t=>{u(t),o(e)},e=>{l(e)}),k(t=>Object(d.without)(t,e))},[u,o,l]),M=Object(c.useCallback)(async e=>{y(),await N(e)},[y,N]),D=P(r),W=P(a);Object(c.useEffect)(()=>{n&&r&&(r!==D||Object(d.difference)(a,W).length)&&F()},[n,r,D,a,W,F]),Object(c.useEffect)(()=>{if(n&&m&&null!==h){const e=a.filter(e=>!L(e));e.length&&N(e),b()}},[n,m,h,N,b,L,a]),Object(c.useEffect)(()=>{f&&!E.current&&(F(),E.current=!0)},[f,F]),Object(c.useEffect)(()=>{if(n&&!Object(d.isEmpty)(h))return Object(d.filter)(h,e=>Object(d.isEmpty)(e.updated_at)).length>0&&(j.current=setInterval(()=>{F()},1e4)),()=>{clearInterval(j.current)}},[n,h,F]);const z=n&&null===h;return a&&!Object(d.isEmpty)(a)&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)(A,null,Object(c.createElement)("table",{className:"yoast yoast-table"},Object(c.createElement)("thead",null,Object(c.createElement)("tr",null,Object(c.createElement)("th",{scope:"col",abbr:Object(i.__)("Tracking","wordpress-seo")},Object(i.__)("Tracking","wordpress-seo")),Object(c.createElement)("th",{scope:"col",abbr:Object(i.__)("Keyphrase","wordpress-seo")},Object(i.__)("Keyphrase","wordpress-seo")),Object(c.createElement)("th",{scope:"col",abbr:Object(i.__)("Position","wordpress-seo")},Object(i.__)("Position","wordpress-seo")),Object(c.createElement)("th",{scope:"col",abbr:Object(i.__)("Position over time","wordpress-seo")},Object(i.__)("Position over time","wordpress-seo")),Object(c.createElement)(C,{className:"yoast-table--nobreak"}))),Object(c.createElement)("tbody",null,a.map((e,t)=>Object(c.createElement)(_.b,{key:"trackable-keyphrase-"+t,keyphrase:e,onTrackKeyphrase:M,onUntrackKeyphrase:q,rowData:L(e),isFocusKeyphrase:e===O.trim().toLowerCase(),websiteId:g,isDisabled:!n,isLoading:z||v.indexOf(e.toLowerCase())>=0}))))),Object(c.createElement)("p",{style:{marginBottom:0,position:"relative"}},Object(c.createElement)(x,{href:wpseoAdminGlobalL10n["links.wincher.login"]},Object(i.sprintf)( /* translators: %s expands to Wincher */ Object(i.__)("Get more insights over at %s","wordpress-seo"),"Wincher")),Object(c.createElement)(S,null,Object(i.__)("* focus keyphrase","wordpress-seo"))))};L.propTypes={addTrackedKeyphrase:u.a.func.isRequired,isLoggedIn:u.a.bool,isNewlyAuthenticated:u.a.bool,keyphrases:u.a.array,newRequest:u.a.func.isRequired,removeTrackedKeyphrase:u.a.func.isRequired,setRequestFailed:u.a.func.isRequired,setKeyphraseLimitReached:u.a.func.isRequired,setRequestSucceeded:u.a.func.isRequired,setTrackedKeyphrases:u.a.func.isRequired,setHasTrackedAll:u.a.func.isRequired,trackAll:u.a.bool,trackedKeyphrases:u.a.object,websiteId:u.a.string,permalink:u.a.string.isRequired,focusKeyphrase:u.a.string},L.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],trackAll:!1,trackedKeyphrases:null,websiteId:"",focusKeyphrase:""};var F=L,N=Object(r.compose)([Object(a.withSelect)(e=>{const{getWincherWebsiteId:t,getWincherTrackedKeyphrases:n,getWincherTrackableKeyphrases:a,getWincherLoginStatus:r,getWincherPermalink:o,getFocusKeyphrase:s,isWincherNewlyAuthenticated:c,shouldWincherTrackAll:i}=e("yoast-seo/editor");return{focusKeyphrase:s(),keyphrases:a(),trackedKeyphrases:n(),isLoggedIn:r(),trackAll:i(),websiteId:t(),isNewlyAuthenticated:c(),permalink:o()}}),Object(a.withDispatch)(e=>{const{setWincherNewRequest:t,setWincherRequestSucceeded:n,setWincherRequestFailed:a,setWincherSetKeyphraseLimitReached:r,setWincherTrackedKeyphrases:o,setWincherTrackingForKeyphrase:s,setWincherTrackAllKeyphrases:c,unsetWincherTrackingForKeyphrase:i}=e("yoast-seo/editor");return{newRequest:()=>{t()},setRequestSucceeded:e=>{n(e)},setRequestFailed:e=>{a(e)},setKeyphraseLimitReached:e=>{r(e)},addTrackedKeyphrase:e=>{s(e)},removeTrackedKeyphrase:e=>{i(e)},setTrackedKeyphrases:e=>{o(e)},setHasTrackedAll:()=>{c(!1)}}})])(F),q=n(116),M=()=>Object(c.createElement)(m.Alert,{type:"error"},Object(i.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo")),D=()=>Object(c.createElement)(m.Alert,{type:"info"},Object(i.sprintf)( /* translators: %s: Expands to "Wincher". */ Object(i.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher")),W=n(109),z=n(110),K=()=>Object(c.createElement)(m.Alert,{type:"error"},Object(i.__)("Before you can track your SEO performance make sure to set either the post’s title and save it as a draft or manually set the post’s slug.","wordpress-seo"));const B=e=>{let{response:t,onLogin:n}=e;return[401,403,404].includes(t.status)?Object(c.createElement)(z.a,{onReconnect:n}):Object(c.createElement)(w,null)};B.propTypes={response:u.a.object.isRequired,onLogin:u.a.func.isRequired};const U=e=>{let{isSuccess:t,response:n,allKeyphrasesMissRanking:a,onLogin:r,keyphraseLimitReached:o,limit:s}=e;return o?Object(c.createElement)(j,{limit:s}):Object(d.isEmpty)(n)||t?a?Object(c.createElement)(k,null):null:Object(c.createElement)(B,{response:n,onLogin:r})};U.propTypes={isSuccess:u.a.bool.isRequired,allKeyphrasesMissRanking:u.a.bool.isRequired,response:u.a.object,onLogin:u.a.func.isRequired,keyphraseLimitReached:u.a.bool.isRequired,limit:u.a.number.isRequired},U.defaultProps={response:{}};let $=null;const H=async e=>{if($&&!$.isClosed())return void $.focus();const{url:t}=await Object(T.c)();$=new W.a(t,{success:{type:"wincher:oauth:success",callback:t=>(async(e,t)=>{const{onAuthentication:n,setRequestSucceeded:a,setRequestFailed:r,keyphrases:o,addTrackedKeyphrase:s,setKeyphraseLimitReached:c}=e;await Object(R.b)(()=>Object(T.a)(t),async e=>{n(!0,!0,t.websiteId.toString()),a(e);const i=(Array.isArray(o)?o:[o]).map(e=>e.toLowerCase());await Object(R.b)(()=>Object(T.f)(i),e=>{a(e),s(e.results)},e=>{400===e.status&&e.limit&&c(e.limit),r(e)},201);const l=$.getPopup();l&&l.close()},async e=>r(e))})(e,t)},error:{type:"wincher:oauth:error",callback:()=>e.onAuthentication(!1,!1)}},{title:"Wincher_login",width:500,height:700}),$.createPopup()},Y=e=>e.isLoggedIn?null:Object(c.createElement)("p",null,Object(c.createElement)(m.NewButton,{onClick:e.onLogin,variant:"primary"},Object(i.sprintf)( /* translators: %s expands to Wincher */ Object(i.__)("Connect with %s","wordpress-seo"),"Wincher")));Y.propTypes={isLoggedIn:u.a.bool.isRequired,onLogin:u.a.func.isRequired};const V=b.a.div` p { margin: 1em 0; } `,G=b.a.div` ${e=>e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"}; `,Z=b.a.div` font-weight: var(--yoast-font-weight-bold); color: var(--yoast-color-label); font-size: var(--yoast-font-size-default); `,J=e=>{const{isLoggedIn:t,keyphrases:n,shouldTrackAll:a,permalink:r}=e;return!r&&t?Object(c.createElement)(K,null):0===n.length?Object(c.createElement)(M,null):Object(c.createElement)(G,{isDisabled:!t},Object(c.createElement)("p",null,Object(i.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")),t&&a&&Object(c.createElement)(D,null),Object(c.createElement)(N,null))};function Q(e){const{isNewlyAuthenticated:t,isLoggedIn:n}=e,a=Object(c.useCallback)(()=>{H(e)},[H,e]);return Object(c.createElement)(V,null,t&&Object(c.createElement)(v,null),n&&Object(c.createElement)(E.a,null),Object(c.createElement)(Z,null,Object(i.__)("SEO performance","wordpress-seo"),Object(c.createElement)(m.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"],linkText:Object(i.__)("Learn more about the SEO performance feature.","wordpress-seo")})),Object(c.createElement)(q.a,null),Object(c.createElement)(Y,{isLoggedIn:n,onLogin:a}),Object(c.createElement)(U,s()({},e,{onLogin:a})),Object(c.createElement)(J,e))}J.propTypes={keyphrases:u.a.array.isRequired,isLoggedIn:u.a.bool.isRequired,shouldTrackAll:u.a.bool.isRequired,permalink:u.a.string.isRequired},Q.propTypes={addTrackedKeyphrase:u.a.func.isRequired,isLoggedIn:u.a.bool,isNewlyAuthenticated:u.a.bool,keyphrases:u.a.array,response:u.a.object,shouldTrackAll:u.a.bool,permalink:u.a.string},Q.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],response:{},shouldTrackAll:!1,permalink:""},t.a=Object(r.compose)([Object(a.withSelect)(e=>{const{isWincherNewlyAuthenticated:t,getWincherKeyphraseLimitReached:n,getWincherLimit:a,getWincherLoginStatus:r,getWincherRequestIsSuccess:o,getWincherRequestResponse:s,getWincherTrackableKeyphrases:c,getWincherAllKeyphrasesMissRanking:i,getWincherPermalink:l,shouldWincherAutomaticallyTrackAll:u}=e("yoast-seo/editor");return{keyphrases:c(),allKeyphrasesMissRanking:i(),isLoggedIn:r(),isNewlyAuthenticated:t(),isSuccess:o(),keyphraseLimitReached:n(),limit:a(),response:s(),shouldTrackAll:u(),permalink:l()}}),Object(a.withDispatch)(e=>{const{setWincherWebsiteId:t,setWincherRequestSucceeded:n,setWincherRequestFailed:a,setWincherTrackingForKeyphrase:r,setWincherSetKeyphraseLimitReached:o,setWincherLoginStatus:s}=e("yoast-seo/editor");return{setRequestSucceeded:e=>{n(e)},setRequestFailed:e=>{a(e)},addTrackedKeyphrase:e=>{r(e)},setKeyphraseLimitReached:e=>{o(e)},onAuthentication:(e,n,a)=>{t(a),s(e,n)}}})])(Q)},function(e,t,n){"use strict";var a=n(4);const r=Object(a.memoize)((e,t)=>0===e?a.noop:Object(a.debounce)(n=>t(n,e),500));t.a=r},,,function(e,t,n){"use strict";var a=n(0),r=n(1),o=n(2),s=n.n(o),c=n(132),i=n(7);const l=e=>{let{link:t,text:n}=e;return Object(a.createElement)(i.Root,null,Object(a.createElement)("p",null,n),Object(a.createElement)(i.Button,{href:t,as:"a",className:"yst-gap-2 yst-mb-5 yst-mt-2",variant:"upsell",target:"_blank",rel:"noopener"},Object(a.createElement)(c.a,{className:"yst-w-4 yst-h-4 yst--ml-1 yst-shrink-0"}),Object(r.sprintf)( /* translators: %1$s expands to Yoast WooCommerce SEO. */ Object(r.__)("Unlock with %1$s","wordpress-seo"),"Yoast WooCommerce SEO")))};l.propTypes={link:s.a.string.isRequired,text:s.a.string.isRequired},t.a=l},,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return g})),n.d(t,"c",(function(){return O}));var a=n(4),r=(n(197),n(70)),o=n(5);const s="";let c=[];const i={"core/paragraph":[{key:"content"}],"core/list":[{key:"values",multilineTag:"li",multilineWrapperTag:["ul","ol"]}],"core/list-item":[{key:"content"}],"core/heading":[{key:"content"}],"core/audio":[{key:"caption"}],"core/embed":[{key:"caption"}],"core/gallery":[{key:"caption"}],"core/image":[{key:"caption"}],"core/table":[{key:"caption"}],"core/video":[{key:"caption"}],"yoast/faq-block":[{key:"questions"}],"yoast/how-to-block":[{key:"steps"}]},l={singleH1:{"core/heading":[{key:"content",filter:e=>1===e.level}]}};function u(){const e=c.shift();e&&(Object(o.dispatch)("core/annotations").__experimentalAddAnnotation(e),d())}function d(){Object(a.isFunction)(window.requestIdleCallback)?window.requestIdleCallback(u,{timeout:1e3}):setTimeout(u,150)}function p(){return Object(o.select)("core/block-editor")&&Object(a.isFunction)(Object(o.select)("core/block-editor").getBlocks)&&Object(o.select)("core/annotations")&&Object(a.isFunction)(Object(o.dispatch)("core/annotations").__experimentalAddAnnotation)}function b(e){const t=Object(o.select)("yoast-seo/editor").getActiveMarker(),n=l[t]||i;return n.hasOwnProperty(e)?n[e]:[]}function m(e,t,n,o,c){const i=Object(r.create)({html:e,multilineTag:n.multilineTag,multilineWrapperTag:n.multilineWrapperTag}).text;return Object(a.flatMap)(c,e=>{const n=function(e,t){const n=t.getOriginal().replace(/(<([^>]+)>)/gi,""),a=t.getMarked().replace(/(<(?!\/?yoastmark)[^>]+>)/gi,""),r=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const a=[];if(0===e.length)return a;let r,o=0;for(n||(t=t.toLowerCase(),e=e.toLowerCase());(r=e.indexOf(t,o))>-1;)a.push(r),o=r+t.length;return a}(e,n);if(0===r.length)return[];const o=function(e){let t=e.indexOf(s);const n=t>=0;n||(t=e.indexOf(''));let a=null;const r=[];for(;t>=0;){if(a=(e=n?e.replace(s,""):e.replace('',"")).indexOf(""),a",""),r.push({startOffset:t,endOffset:a}),t=n?e.indexOf(s):e.indexOf(''),a=null}return r}(a),c=[];return o.forEach(e=>{r.forEach(a=>{const r=a+e.startOffset;let o=a+e.endOffset;0===e.startOffset&&e.endOffset===t.getOriginal().length&&(o=a+n.length),c.push({startOffset:r,endOffset:o})})}),c}(i,e);return n?n.map(e=>({...e,block:o.clientId,richTextIdentifier:t})):[]})}function h(e,t,n){const r=e.key,{attributes:o}=t;return e.filter&&!e.filter(o)?[]:"yoast/faq-block"===t.name||"yoast/how-to-block"===t.name?function(e,t,n){const r=t.attributes[e.key];if("yoast/faq-block"===t.name&&0!==r.length){const o=r.map(a=>{const r=a.id+"-question",o=a.id+"-answer",s=m(a.jsonQuestion,r,e,t,n),c=m(a.jsonAnswer,o,e,t,n);return s.concat(c)});return Object(a.flatMap)(o)}if("yoast/how-to-block"===t.name&&0!==r.length){const o=r.map(a=>{const r=a.id+"-name",o=a.id+"-text",s=m(a.jsonName,r,e,t,n),c=m(a.jsonText,o,e,t,n);return s.concat(c)}),s=m(t.attributes.jsonDescription,"description",e,t,n);return Object(a.flatMap)(o.concat(s))}}(e,t,n):m(o[r],r,e,t,n)}function f(e){c=e.map(e=>({blockClientId:e.block,source:"yoast",richTextIdentifier:e.richTextIdentifier,range:{start:e.startOffset,end:e.endOffset}}))}function g(e){c=[],Object(o.dispatch)("core/annotations").__experimentalRemoveAnnotationsBySource("yoast");const t=function(e){return Object(a.uniq)(Object(a.flatten)(e.map(e=>{if(!Object(a.isUndefined)(e.getFieldsToMark()))return e.getFieldsToMark()})))}(e);if(0===e.length)return;let n=Object(o.select)("core/block-editor").getBlocks();t.length>0&&(n=n.filter(e=>t.some(t=>"core/"+t===e.name))),f(function e(t,n){return Object(a.flatMap)(t,t=>{const r=function(e){return e.innerBlocks.length>0}(t)?e(t.innerBlocks,n):[];return function(e,t){return Object(a.flatMap)(b(e.name),n=>h(n,e,t))}(t,n).concat(r)})}(n,e)),d()}function O(){const e=Object(o.select)("core/editor").getSelectedBlock(),t=Object(o.select)("yoast-seo/editor").getActiveMarker();if(!e||!t)return;var n;n=e.clientId,Object(o.select)("core/annotations").__experimentalGetAnnotations().filter(e=>e.blockClientId===n&&"yoast"===e.source).forEach(e=>{Object(o.dispatch)("core/annotations").__experimentalRemoveAnnotation(e.id)});const r=Object(o.select)("yoast-seo/editor").getResultById(t);if(void 0===r)return;const s=r.marks;f(Object(a.flatMap)(b(e.name),t=>h(t,e,s))),d()}},,function(e,t,n){"use strict";var a=n(3),r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(93),s=n(128),c=n(129),i="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,a={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return a[e]}))):t.toString(36);var n,a}var u=/\/+/g;function d(e){return(""+e).replace(u,"$&/")}var p,b,m=h,h=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)};function f(e,t,n,a){this.result=e,this.keyPrefix=t,this.func=n,this.context=a,this.count=0}function g(e,t,n){var r,s,c=e.result,i=e.keyPrefix,l=e.func,u=e.context,p=l.call(u,t,e.count++);Array.isArray(p)?O(p,c,n,o.thatReturnsArgument):null!=p&&(a.isValidElement(p)&&(r=p,s=i+(!p.key||t&&t.key===p.key?"":d(p.key)+"/")+n,p=a.cloneElement(r,{key:s},void 0!==r.props?r.props.children:void 0)),c.push(p))}function O(e,t,n,a,o){var c="";null!=n&&(c=d(n)+"/");var u=f.getPooled(t,c,a,o);!function(e,t,n){null==e||function e(t,n,a,o){var c,u=typeof t;if("undefined"!==u&&"boolean"!==u||(t=null),null===t||"string"===u||"number"===u||"object"===u&&t.$$typeof===r)return a(o,t,""===n?"."+l(t,0):n),1;var d=0,p=""===n?".":n+":";if(Array.isArray(t))for(var b=0;b{const t=Object(c.sprintf)( /* translators: %s expands to a 'Yoast SEO Premium' text linked to the yoast.com website. */ Object(c.__)("Great news: you can, with %s!","wordpress-seo"),"{{link}}Yoast SEO Premium{{/link}}"),n=[Object(c.sprintf)( /* translators: %1$s expands to a 'strong' start tag, %2$s to a 'strong' end tag. */ Object(c.__)("%1$sCreate content faster%2$s: Use AI to create titles & meta descriptions","wordpress-seo"),"",""),Object(c.sprintf)( /* translators: %1$s expands to a 'strong' start tag, %2$s to a 'strong' end tag. */ Object(c.__)("%1$sNo more dead links%2$s: easy redirect manager","wordpress-seo"),"",""),`${Object(c.__)("Superfast internal linking suggestions","wordpress-seo")}`,Object(c.sprintf)( /* translators: %1$s expands to a 'strong' start tag, %2$s to a 'strong' end tag. */ Object(c.__)("%1$sSocial media preview%2$s: Facebook & Twitter","wordpress-seo"),"",""),`${Object(c.__)("24/7 email support","wordpress-seo")}`,`${Object(c.__)("No ads!","wordpress-seo")}`],{locationContext:r}=Object(d.useRootContext)(),s=o()({mixedString:t,components:{link:Object(a.createElement)(b,{href:Object(p.addQueryArgs)(e.link,{context:r})})}}),l=Object(c.sprintf)( /* translators: %s expands to 'Yoast SEO Premium'. */ Object(c.__)("Other benefits of %s for you:","wordpress-seo"),"Yoast SEO Premium");return Object(a.createElement)(i.a,{infoParagraphs:[s,l],benefits:n,upsellButtonText:Object(c.sprintf)( /* translators: %s expands to 'Yoast SEO Premium'. */ Object(c.__)("Get %s","wordpress-seo"),"Yoast SEO Premium"),upsellButton:{href:Object(p.addQueryArgs)(e.buyLink,{context:r}),className:"yoast-button-upsell",rel:null,"data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2","data-action":"load-nfd-ctb"},upsellButtonLabel:Object(c.__)("1 year free support and updates included!","wordpress-seo")})};m.propTypes={link:u.a.string.isRequired,buyLink:u.a.string.isRequired},t.a=m},function(e,t,n){"use strict";var a=n(20),r=n(5);const o=Object(a.compose)([Object(r.withSelect)((e,t)=>{const{isAlertDismissed:n}=e(t.store||"yoast-seo/editor");return{isAlertDismissed:n(t.alertKey)}}),Object(r.withDispatch)((e,t)=>{const{dismissAlert:n}=e(t.store||"yoast-seo/editor");return{onDismissed:()=>n(t.alertKey)}})]);t.a=o},function(e,t,n){"use strict";var a=n(5),r=n(20),o=n(0),s=n(1),c=n(2),i=n.n(c),l=n(4),u=n(8),d=()=>Object(o.createElement)("p",{className:"yoast-related-keyphrases-modal__loading-message"},Object(s.sprintf)( /* translators: %1$s expands to "Yoast SEO", %2$s expands to "Semrush". */ Object(s.__)("Please wait while %1$s connects to %2$s to get related keyphrases...","wordpress-seo"),"Yoast SEO","Semrush")," ",Object(o.createElement)(u.SvgIcon,{icon:"loading-spinner"})),p=n(9);const b=Object(p.makeOutboundLink)();var m=()=>Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,Object(s.sprintf)( /* translators: %s : Expands to "Semrush". */ Object(s.__)("You've reached your request limit for today. Check back tomorrow or upgrade your plan over at %s.","wordpress-seo"),"Semrush")),Object(o.createElement)(b,{href:window.wpseoAdminL10n["shortlinks.semrush.prices"],className:"yoast-button-upsell"},Object(s.sprintf)( /* translators: %s : Expands to "Semrush". */ Object(s.__)("Upgrade your %s plan","wordpress-seo"),"Semrush"),Object(o.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"}))),h=n(25),f=n.n(h),g=n(15);const O="yoast-semrush-country-selector",y=[{value:"us",name:"United States - US"},{value:"uk",name:"United Kingdom - UK"},{value:"ca",name:"Canada - CA"},{value:"ru",name:"Russia - RU"},{value:"de",name:"Germany - DE"},{value:"fr",name:"France - FR"},{value:"es",name:"Spain - ES"},{value:"it",name:"Italy - IT"},{value:"br",name:"Brazil - BR"},{value:"au",name:"Australia - AU"},{value:"ar",name:"Argentina - AR"},{value:"be",name:"Belgium - BE"},{value:"ch",name:"Switzerland - CH"},{value:"dk",name:"Denmark - DK"},{value:"fi",name:"Finland - FI"},{value:"hk",name:"Hong Kong - HK"},{value:"ie",name:"Ireland - IE"},{value:"il",name:"Israel - IL"},{value:"mx",name:"Mexico - MX"},{value:"nl",name:"Netherlands - NL"},{value:"no",name:"Norway - NO"},{value:"pl",name:"Poland - PL"},{value:"se",name:"Sweden - SE"},{value:"sg",name:"Singapore - SG"},{value:"tr",name:"Turkey - TR"},{value:"jp",name:"Japan - JP"},{value:"in",name:"India - IN"},{value:"hu",name:"Hungary - HU"},{value:"af",name:"Afghanistan - AF"},{value:"al",name:"Albania - AL"},{value:"dz",name:"Algeria - DZ"},{value:"ao",name:"Angola - AO"},{value:"am",name:"Armenia - AM"},{value:"at",name:"Austria - AT"},{value:"az",name:"Azerbaijan - AZ"},{value:"bh",name:"Bahrain - BH"},{value:"bd",name:"Bangladesh - BD"},{value:"by",name:"Belarus - BY"},{value:"bz",name:"Belize - BZ"},{value:"bo",name:"Bolivia - BO"},{value:"ba",name:"Bosnia and Herzegovina - BA"},{value:"bw",name:"Botswana - BW"},{value:"bn",name:"Brunei - BN"},{value:"bg",name:"Bulgaria - BG"},{value:"cv",name:"Cabo Verde - CV"},{value:"kh",name:"Cambodia - KH"},{value:"cm",name:"Cameroon - CM"},{value:"cl",name:"Chile - CL"},{value:"co",name:"Colombia - CO"},{value:"cr",name:"Costa Rica - CR"},{value:"hr",name:"Croatia - HR"},{value:"cy",name:"Cyprus - CY"},{value:"cz",name:"Czech Republic - CZ"},{value:"cd",name:"Congo - CD"},{value:"do",name:"Dominican Republic - DO"},{value:"ec",name:"Ecuador - EC"},{value:"eg",name:"Egypt - EG"},{value:"sv",name:"El Salvador - SV"},{value:"ee",name:"Estonia - EE"},{value:"et",name:"Ethiopia - ET"},{value:"ge",name:"Georgia - GE"},{value:"gh",name:"Ghana - GH"},{value:"gr",name:"Greece - GR"},{value:"gt",name:"Guatemala - GT"},{value:"gy",name:"Guyana - GY"},{value:"ht",name:"Haiti - HT"},{value:"hn",name:"Honduras - HN"},{value:"is",name:"Iceland - IS"},{value:"id",name:"Indonesia - ID"},{value:"jm",name:"Jamaica - JM"},{value:"jo",name:"Jordan - JO"},{value:"kz",name:"Kazakhstan - KZ"},{value:"kw",name:"Kuwait - KW"},{value:"lv",name:"Latvia - LV"},{value:"lb",name:"Lebanon - LB"},{value:"lt",name:"Lithuania - LT"},{value:"lu",name:"Luxembourg - LU"},{value:"mg",name:"Madagascar - MG"},{value:"my",name:"Malaysia - MY"},{value:"mt",name:"Malta - MT"},{value:"mu",name:"Mauritius - MU"},{value:"md",name:"Moldova - MD"},{value:"mn",name:"Mongolia - MN"},{value:"me",name:"Montenegro - ME"},{value:"ma",name:"Morocco - MA"},{value:"mz",name:"Mozambique - MZ"},{value:"na",name:"Namibia - NA"},{value:"np",name:"Nepal - NP"},{value:"nz",name:"New Zealand - NZ"},{value:"ni",name:"Nicaragua - NI"},{value:"ng",name:"Nigeria - NG"},{value:"om",name:"Oman - OM"},{value:"py",name:"Paraguay - PY"},{value:"pe",name:"Peru - PE"},{value:"ph",name:"Philippines - PH"},{value:"pt",name:"Portugal - PT"},{value:"ro",name:"Romania - RO"},{value:"sa",name:"Saudi Arabia - SA"},{value:"sn",name:"Senegal - SN"},{value:"rs",name:"Serbia - RS"},{value:"sk",name:"Slovakia - SK"},{value:"si",name:"Slovenia - SI"},{value:"za",name:"South Africa - ZA"},{value:"kr",name:"South Korea - KR"},{value:"lk",name:"Sri Lanka - LK"},{value:"th",name:"Thailand - TH"},{value:"bs",name:"Bahamas - BS"},{value:"tt",name:"Trinidad and Tobago - TT"},{value:"tn",name:"Tunisia - TN"},{value:"ua",name:"Ukraine - UA"},{value:"ae",name:"United Arab Emirates - AE"},{value:"uy",name:"Uruguay - UY"},{value:"ve",name:"Venezuela - VE"},{value:"vn",name:"Vietnam - VN"},{value:"zm",name:"Zambia - ZM"},{value:"zw",name:"Zimbabwe - ZW"},{value:"ly",name:"Libya - LY"}];class j extends o.Component{constructor(e){super(e),this.relatedKeyphrasesRequest=this.relatedKeyphrasesRequest.bind(this),this.onChangeHandler=this.onChangeHandler.bind(this)}componentDidMount(){this.props.response&&this.props.keyphrase===this.props.lastRequestKeyphrase||this.relatedKeyphrasesRequest()}storeCountryCode(e){f()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}})}async relatedKeyphrasesRequest(){const{keyphrase:e,countryCode:t,newRequest:n}=this.props;n(t,e),this.storeCountryCode(t);const a=await this.doRequest(e,t);200!==a.status?this.handleFailedResponse(a):this.handleSuccessResponse(a)}handleSuccessResponse(e){const{setNoResultsFound:t,setRequestSucceeded:n}=this.props;0!==e.results.rows.length?n(e):t()}handleFailedResponse(e){const{setRequestLimitReached:t,setRequestFailed:n}=this.props;"error"in e&&(e.error.includes("TOTAL LIMIT EXCEEDED")?t():n(e))}async doRequest(e,t){return await f()({path:Object(g.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:e,country_code:t})})}onChangeHandler(e){this.props.setCountry(e)}render(){return Object(o.createElement)("div",{id:O},Object(o.createElement)(u.SingleSelect,{id:O+"-select",label:Object(s.__)("Show results for:","wordpress-seo"),name:"semrush-country-code",options:y,selected:this.props.countryCode,onChange:this.onChangeHandler,wrapperClassName:"yoast-field-group yoast-field-group--inline"}),Object(o.createElement)(u.NewButton,{id:O+"-button",variant:"secondary",onClick:this.relatedKeyphrasesRequest},Object(s.__)("Select country","wordpress-seo")))}}j.propTypes={keyphrase:i.a.string,countryCode:i.a.string,response:i.a.object,lastRequestKeyphrase:i.a.string,setCountry:i.a.func.isRequired,newRequest:i.a.func.isRequired,setNoResultsFound:i.a.func.isRequired,setRequestSucceeded:i.a.func.isRequired,setRequestLimitReached:i.a.func.isRequired,setRequestFailed:i.a.func.isRequired},j.defaultProps={keyphrase:"",countryCode:"us",response:{},lastRequestKeyphrase:""};var w=j,E=n(79),v=n(67);const k=Object(p.makeOutboundLink)();class _ extends o.Component{constructor(e){super(e),this.transformTrendDataToChartPoints=this.transformTrendDataToChartPoints.bind(this),this.getAreaChartDataTableHeaderLabels=this.getAreaChartDataTableHeaderLabels.bind(this),this.mapAreaChartDataToTableData=this.mapAreaChartDataToTableData.bind(this)}transformTrendDataToChartPoints(e){return e.split(",").map((e,t)=>({x:t,y:parseFloat(e)}))}getAreaChartDataTableHeaderLabels(){return[Object(s.__)("Twelve months ago","wordpress-seo"),Object(s.__)("Eleven months ago","wordpress-seo"),Object(s.__)("Ten months ago","wordpress-seo"),Object(s.__)("Nine months ago","wordpress-seo"),Object(s.__)("Eight months ago","wordpress-seo"),Object(s.__)("Seven months ago","wordpress-seo"),Object(s.__)("Six months ago","wordpress-seo"),Object(s.__)("Five months ago","wordpress-seo"),Object(s.__)("Four months ago","wordpress-seo"),Object(s.__)("Three months ago","wordpress-seo"),Object(s.__)("Two months ago","wordpress-seo"),Object(s.__)("Last month","wordpress-seo")]}mapAreaChartDataToTableData(e){return Math.round(100*e)}render(){const{keyphrase:e,relatedKeyphrases:t,countryCode:n,data:a,renderAction:r}=this.props,c="https://www.semrush.com/analytics/keywordoverview/?q="+encodeURIComponent(e)+"&db="+encodeURIComponent(n);return a&&!Object(l.isEmpty)(a.results)&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("table",{className:"yoast yoast-table"},Object(o.createElement)("thead",null,Object(o.createElement)("tr",null,Object(o.createElement)("th",{scope:"col",className:"yoast-table--primary"},Object(s.__)("Related keyphrase","wordpress-seo")),Object(o.createElement)("th",{scope:"col",abbr:Object(s.__)("Volume","wordpress-seo")},Object(s.__)("Volume","wordpress-seo"),Object(o.createElement)(v.a,{href:window.wpseoAdminL10n["shortlinks.semrush.volume_help"],className:"dashicons"},Object(o.createElement)("span",{className:"screen-reader-text"},Object(s.__)("Learn more about the related keyphrases volume","wordpress-seo")))),Object(o.createElement)("th",{scope:"col",abbr:Object(s.__)("Trend","wordpress-seo")},Object(s.__)("Trend","wordpress-seo"),Object(o.createElement)(v.a,{href:window.wpseoAdminL10n["shortlinks.semrush.trend_help"],className:"dashicons"},Object(o.createElement)("span",{className:"screen-reader-text"},Object(s.__)("Learn more about the related keyphrases trend","wordpress-seo")))),r&&Object(o.createElement)("td",{className:"yoast-table--nobreak"}))),Object(o.createElement)("tbody",null,a.results.rows.map((e,n)=>{const a=e[0],c=this.transformTrendDataToChartPoints(e[2]),i=this.getAreaChartDataTableHeaderLabels();return Object(o.createElement)("tr",{key:n},Object(o.createElement)("td",null,a),Object(o.createElement)("td",null,e[1]),Object(o.createElement)("td",{className:"yoast-table--nopadding"},Object(o.createElement)(E.a,{width:66,height:24,data:c,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:this.mapAreaChartDataToTableData,dataTableCaption:Object(s.__)("Keyphrase volume in the last 12 months on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:i})),r&&Object(o.createElement)("td",{className:"yoast-table--nobreak"},r(a,t)))}))),Object(o.createElement)("p",{style:{marginBottom:0}},Object(o.createElement)(k,{href:c},Object(s.sprintf)( /* translators: %s expands to Semrush */ Object(s.__)("Get more insights at %s","wordpress-seo"),"Semrush"))))}}_.propTypes={data:i.a.object,keyphrase:i.a.string,relatedKeyphrases:i.a.array,countryCode:i.a.string,renderAction:i.a.func},_.defaultProps={data:{},keyphrase:"",relatedKeyphrases:[],countryCode:"us",renderAction:null};var T=_;const R=Object(p.makeOutboundLink)();var x=()=>Object(o.createElement)(u.Alert,{type:"info"},Object(s.sprintf)( /* translators: %s: Expands to "Yoast SEO". */ Object(s.__)("Would you like to be able to add these related keyphrases to the %s analysis so you can optimize your content even further?","wordpress-seo"),"Yoast SEO")+" ",Object(o.createElement)(R,{href:window.wpseoAdminL10n["shortlinks.semrush.premium_landing_page"]},Object(s.sprintf)( /* translators: %s: Expands to "Yoast SEO Premium". */ Object(s.__)("Check out %s!","wordpress-seo"),"Yoast SEO Premium"))),S=()=>Object(o.createElement)(u.Alert,{type:"error"},Object(s.__)("We've encountered a problem trying to get related keyphrases. Please try again later.","wordpress-seo")),C=()=>Object(o.createElement)(u.Alert,{type:"warning"},Object(s.sprintf)( /* translators: %s: Expands to "Yoast SEO". */ Object(s.__)("You've reached the maximum amount of 4 related keyphrases. You can change or remove related keyphrases in the %s metabox or sidebar.","wordpress-seo"),"Yoast SEO")),A=n(17);function P(e){const{response:t,lastRequestKeyphrase:n,keyphrase:a,newRequest:r,setCountry:c,renderAction:i,countryCode:u,requestLimitReached:p,setRequestFailed:b,setNoResultsFound:h,relatedKeyphrases:f,setRequestSucceeded:g,setRequestLimitReached:O}=e,y=Object(A.a)().isPremium;return Object(o.createElement)(o.Fragment,null,!p&&Object(o.createElement)(o.Fragment,null,!y&&Object(o.createElement)(x,null),y&&function(e){return e&&e.length>=4}(f)&&Object(o.createElement)(C,null),Object(o.createElement)(w,{countryCode:u,setCountry:c,newRequest:r,keyphrase:a,setRequestFailed:b,setNoResultsFound:h,setRequestSucceeded:g,setRequestLimitReached:O,response:t,lastRequestKeyphrase:n})),function(e){const{isPending:t,requestLimitReached:n,isSuccess:a,response:r,requestHasData:c}=e;return t?Object(o.createElement)(d,null):n?Object(o.createElement)(m,null):!a&&function(e){return!Object(l.isEmpty)(e)&&"error"in e}(r)?Object(o.createElement)(S,null):c?void 0:Object(o.createElement)("p",null,Object(s.__)("Sorry, there's no data available for that keyphrase/country combination.","wordpress-seo"))}(e),Object(o.createElement)(T,{keyphrase:a,relatedKeyphrases:f,countryCode:u,renderAction:i,data:t}))}P.propTypes={keyphrase:i.a.string,relatedKeyphrases:i.a.array,renderAction:i.a.func,requestLimitReached:i.a.bool,countryCode:i.a.string.isRequired,setCountry:i.a.func.isRequired,newRequest:i.a.func.isRequired,setRequestSucceeded:i.a.func.isRequired,setRequestLimitReached:i.a.func.isRequired,setRequestFailed:i.a.func.isRequired,setNoResultsFound:i.a.func.isRequired,response:i.a.object,lastRequestKeyphrase:i.a.string},P.defaultProps={keyphrase:"",relatedKeyphrases:[],renderAction:null,requestLimitReached:!1,response:{},lastRequestKeyphrase:""},t.a=Object(r.compose)([Object(a.withSelect)(e=>{const{getFocusKeyphrase:t,getSEMrushSelectedCountry:n,getSEMrushRequestLimitReached:a,getSEMrushRequestResponse:r,getSEMrushRequestIsSuccess:o,getSEMrushIsRequestPending:s,getSEMrushRequestHasData:c,getSEMrushRequestKeyphrase:i}=e("yoast-seo/editor");return{keyphrase:t(),countryCode:n(),requestLimitReached:a(),response:r(),isSuccess:o(),isPending:s(),requestHasData:c(),lastRequestKeyphrase:i()}}),Object(a.withDispatch)(e=>{const{setSEMrushChangeCountry:t,setSEMrushNewRequest:n,setSEMrushRequestSucceeded:a,setSEMrushRequestFailed:r,setSEMrushSetRequestLimitReached:o,setSEMrushNoResultsFound:s}=e("yoast-seo/editor");return{setCountry:e=>{t(e)},newRequest:(e,t)=>{n(e,t)},setRequestSucceeded:e=>{a(e)},setRequestFailed:e=>{r(e)},setRequestLimitReached:()=>{o()},setNoResultsFound:()=>{s()}}})])(P)},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(4);function r(e){return void 0===e.length?e:Object(a.flatten)(e).sort((e,t)=>void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority)}},function(e,t,n){"use strict";var a=n(20),r=n(5),o=n(62),s=n(60);t.a=Object(a.compose)([Object(r.withSelect)(e=>{const{isCornerstoneContent:t}=e("yoast-seo/editor");return{isCornerstone:t(),learnMoreUrl:wpseoAdminL10n["shortlinks.cornerstone_content_info"]}}),Object(r.withDispatch)(e=>{const{toggleCornerstoneContent:t}=e("yoast-seo/editor");return{onChange:t}}),Object(s.a)()])(o.CollapsibleCornerstone)},function(e,t,n){"use strict";var a=n(0),r=n(5),o=n(1),s=n(8),c=n(4);t.a=()=>{const e=Object(r.useSelect)(e=>e("yoast-seo/editor").getEstimatedReadingTime(),[]),t=Object(a.useMemo)(()=>Object(c.get)(window,"wpseoAdminL10n.shortlinks-insights-estimated_reading_time",""),[]);return Object(a.createElement)(s.InsightsCard,{amount:e,unit:Object(o._n)("minute","minutes",e,"wordpress-seo"),title:Object(o.__)("Reading time","wordpress-seo"),linkTo:t,linkText:Object(o.__)("Learn more about reading time","wordpress-seo")})}},function(e,t,n){"use strict";var a=n(0),r=n(5),o=n(1),s=n(8),c=n(9),i=n(14),l=n(4);const u=Object(c.makeOutboundLink)();function d(e,t,n){const r=function(e){switch(e){case i.DIFFICULTY.FAIRLY_DIFFICULT:case i.DIFFICULTY.DIFFICULT:case i.DIFFICULTY.VERY_DIFFICULT:return Object(o.__)("Try to make shorter sentences, using less difficult words to improve readability","wordpress-seo");case i.DIFFICULTY.NO_DATA:return Object(o.__)("Continue writing to get insight into the readability of your text!","wordpress-seo");default:return Object(o.__)("Good job!","wordpress-seo")}}(t);return Object(a.createElement)("span",null,function(e,t){return-1===e?Object(o.sprintf)(Object(o.__)("Your text should be slightly longer to calculate your Flesch reading ease score.","wordpress-seo")):Object(o.sprintf)( /* Translators: %1$s expands to the numeric Flesch reading ease score, %2$s expands to the easiness of reading (e.g. 'easy' or 'very difficult'). */ Object(o.__)("The copy scores %1$s in the test, which is considered %2$s to read.","wordpress-seo"),e,function(e){switch(e){case i.DIFFICULTY.NO_DATA:return Object(o.__)("no data","wordpress-seo");case i.DIFFICULTY.VERY_EASY:return Object(o.__)("very easy","wordpress-seo");case i.DIFFICULTY.EASY:return Object(o.__)("easy","wordpress-seo");case i.DIFFICULTY.FAIRLY_EASY:return Object(o.__)("fairly easy","wordpress-seo");case i.DIFFICULTY.OKAY:return Object(o.__)("okay","wordpress-seo");case i.DIFFICULTY.FAIRLY_DIFFICULT:return Object(o.__)("fairly difficult","wordpress-seo");case i.DIFFICULTY.DIFFICULT:return Object(o.__)("difficult","wordpress-seo");case i.DIFFICULTY.VERY_DIFFICULT:return Object(o.__)("very difficult","wordpress-seo")}}(t))}(e,t)," ",t>=i.DIFFICULTY.FAIRLY_DIFFICULT?Object(a.createElement)(u,{href:n},r+"."):r)}t.a=()=>{let e=Object(r.useSelect)(e=>e("yoast-seo/editor").getFleschReadingEaseScore(),[]);const t=Object(a.useMemo)(()=>Object(l.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease",""),[]),n=Object(r.useSelect)(e=>e("yoast-seo/editor").getFleschReadingEaseDifficulty(),[e]),c=Object(a.useMemo)(()=>{const t=Object(l.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease_article","");return d(e,n,t)},[e,n]);return-1===e&&(e="?"),Object(a.createElement)(s.InsightsCard,{amount:e,unit:Object(o.__)("out of 100","wordpress-seo"),title:Object(o.__)("Flesch reading ease","wordpress-seo"),linkTo:t,linkText:Object(o.__)("Learn more about Flesch reading ease","wordpress-seo"),description:c})}},function(e,t,n){"use strict";var a=n(0),r=n(5),o=n(1),s=n(8),c=n(4);t.a=()=>{const e=Object(r.useSelect)(e=>e("yoast-seo/editor").getTextLength(),[]),t=Object(a.useMemo)(()=>Object(c.get)(window,"wpseoAdminL10n.shortlinks-insights-word_count",""),[]);let n=Object(o._n)("word","words",e.count,"wordpress-seo"),i=Object(o.__)("Word count","wordpress-seo"),l=Object(o.__)("Learn more about word count","wordpress-seo");return"character"===e.unit&&(n=Object(o._n)("character","characters",e.count,"wordpress-seo"),i=Object(o.__)("Character count","wordpress-seo"),l=Object(o.__)("Learn more about character count","wordpress-seo")),Object(a.createElement)(s.InsightsCard,{amount:e.count,unit:n,title:i,linkTo:t,linkText:l})}},function(e,t,n){"use strict";var a=n(0),r=n(22),o=n(19),s=n(1),c=n(49),i=n(134),l=n(66);t.a=()=>Object(a.createElement)(r.LocationConsumer,null,e=>{let t=wpseoAdminL10n["shortlinks.upsell.metabox.additional_link"],n=wpseoAdminL10n["shortlinks.upsell.metabox.additional_button"],r=c.a;return"sidebar"===e.toLowerCase()&&(t=wpseoAdminL10n["shortlinks.upsell.sidebar.additional_link"],n=wpseoAdminL10n["shortlinks.upsell.sidebar.additional_button"],r=l.a),Object(a.createElement)(r,{prefixIcon:{icon:"plus",color:o.colors.$color_grey_medium_dark},prefixIconCollapsed:{icon:"plus",color:o.colors.$color_grey_medium_dark},title:Object(s.__)("Add related keyphrase","wordpress-seo"),id:"yoast-additional-keyphrase-collapsible-"+e},Object(a.createElement)(i.a,{link:t,buyLink:n}))})},,,function(e,t,n){"use strict";var a=n(20),r=n(5),o=n(0),s=n(1),c=n(8),i=n(9),l=n(2),u=n.n(l),d=n(22),p=n(4),b=n(41),m=n(18);const h=e=>{if(!e.isAuthenticated)return null;const t=Object(o.useCallback)(()=>{Object(b.d)()});return Object(o.createElement)(m.Button,{variant:"link",onClick:t},Object(s.__)("Manage WordProof settings","wordpress-seo"))};h.propTypes={isAuthenticated:u.a.bool.isRequired};const f=e=>{const t=Object(o.useCallback)(()=>{Object(b.c)()});return!e.isAuthenticated&&e.toggleIsEnabled?Object(o.createElement)(m.Button,{variant:"link",onClick:t},Object(s.__)("Authenticate with WordProof","wordpress-seo")):null};f.propTypes={isAuthenticated:u.a.bool.isRequired,toggleIsEnabled:u.a.bool.isRequired};class g extends o.Component{constructor(e){super(e),this.handleToggle=this.handleToggle.bind(this),this.turnToggleOff=this.turnToggleOff.bind(this),this.turnToggleOn=this.turnToggleOn.bind(this)}componentDidMount(){window.addEventListener("wordproof:webhook:failed",this.turnToggleOff,!1),window.addEventListener("wordproof:oauth:success",this.turnToggleOn,!1)}componentWillUnmount(){window.removeEventListener("wordproof:webhook:failed",this.turnToggleOff,!1),window.removeEventListener("wordproof:oauth:success",this.turnToggleOn,!1)}handleToggle(e){this.props.isAuthenticated||!e?this.props.onToggle(e):Object(b.c)()}turnToggleOn(){this.props.onToggle(!0)}turnToggleOff(){this.props.onToggle(!1)}render(){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.FieldGroup,{linkText:Object(s.__)("Learn more about timestamping","wordpress-seo"),linkTo:"https://yoa.st/wordproof-integration",htmlFor:this.props.id,label:Object(s.__)("Timestamp with WordProof","wordpress-seo")},Object(o.createElement)(c.Toggle,{id:this.props.id,labelText:Object(s.sprintf)( /* Translators: %s translates to the Post type in singular form */ Object(s.__)("Timestamp this %s","wordpress-seo"),this.props.postTypeName.toLowerCase()),isEnabled:this.props.isEnabled,onSetToggleState:this.handleToggle}),Object(o.createElement)(h,{isAuthenticated:this.props.isAuthenticated}),Object(o.createElement)(f,{toggleIsEnabled:this.props.isEnabled,isAuthenticated:this.props.isAuthenticated}),!this.props.isAuthenticated&&this.props.isEnabled&&Object(o.createElement)(c.Alert,{className:"yoast-wordproof-metabox-alert",type:"info"},Object(s.__)("Unable to create new timestamps. Please authenticate with WordProof.","wordpress-seo"))))}}g.propTypes={id:u.a.string,isEnabled:u.a.bool,onToggle:u.a.func,postTypeName:u.a.string,isAuthenticated:u.a.bool.isRequired},g.defaultProps={id:"timestamp-toggle",isEnabled:!0,postTypeName:"post",onToggle:p.noop};var O=Object(a.compose)([Object(r.withSelect)(e=>({isAuthenticated:e("wordproof").getIsAuthenticated()}))])(g);const y=e=>{let{noIndex:t,onNoIndexChange:n,editorContext:a,isPrivateBlog:r}=e;const l=(e=>{const t=Object(s.__)("No","wordpress-seo"),n=Object(s.__)("Yes","wordpress-seo"),a=e.noIndex?t:n;return window.wpseoScriptData.isPost?[{name:Object(s.sprintf)( /* Translators: %s translates to "yes" or "no", %s translates to the Post Label in plural form */ Object(s.__)("%s (current default for %s)","wordpress-seo"),a,e.postTypeNamePlural),value:"0"},{name:t,value:"1"},{name:n,value:"2"}]:[{name:Object(s.sprintf)( /* Translators: %s translates to the "yes" or "no" ,%s translates to the Post Label in plural form */ Object(s.__)("%s (current default for %s)","wordpress-seo"),a,e.postTypeNamePlural),value:"default"},{name:n,value:"index"},{name:t,value:"noindex"}]})(a);return Object(o.createElement)(d.LocationConsumer,null,e=>Object(o.createElement)(o.Fragment,null,r&&Object(o.createElement)(c.Alert,{type:"warning"},Object(s.__)("Even though you can set the meta robots setting here, the entire site is set to noindex in the sitewide privacy settings, so these settings won't have an effect.","wordpress-seo")),Object(o.createElement)(c.Select,{label:Object(s.sprintf)( /* Translators: %s translates to the Post Label in singular form */ Object(s.__)("Allow search engines to show this %s in search results?","wordpress-seo"),a.postTypeNameSingular),onChange:n,id:Object(i.join)(["yoast-meta-robots-noindex",e]),options:l,selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.allow_search_engines"],linkText:Object(s.__)("Learn more about the no-index setting on our help page.","wordpress-seo")})))};y.propTypes={noIndex:u.a.string.isRequired,onNoIndexChange:u.a.func.isRequired,editorContext:u.a.object.isRequired,isPrivateBlog:u.a.bool},y.defaultProps={isPrivateBlog:!1};const j=e=>{let{noFollow:t,onNoFollowChange:n,postTypeName:a}=e;return Object(o.createElement)(d.LocationConsumer,null,e=>{const r=Object(i.join)(["yoast-meta-robots-nofollow",e]);return Object(o.createElement)(c.RadioButtonGroup,{id:r,options:[{value:"0",label:"Yes"},{value:"1",label:"No"}],label:Object(s.sprintf)( /* Translators: %s translates to the Post Label in singular form */ Object(s.__)("Should search engines follow links on this %s","wordpress-seo"),a),groupName:r,onChange:n,selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.follow_links"],linkText:Object(s.__)("Learn more about the no-follow setting on our help page.","wordpress-seo")})})};j.propTypes={noFollow:u.a.string.isRequired,onNoFollowChange:u.a.func.isRequired,postTypeName:u.a.string.isRequired};const w=e=>{let{advanced:t,onAdvancedChange:n}=e;return Object(o.createElement)(d.LocationConsumer,null,e=>{const a=Object(i.join)(["yoast-meta-robots-advanced",e]),r=a+"-input";return Object(o.createElement)(c.MultiSelect,{label:Object(s.__)("Meta robots advanced","wordpress-seo"),onChange:n,id:a,inputId:r,options:[{name:Object(s.__)("No Image Index","wordpress-seo"),value:"noimageindex"},{name:Object(s.__)("No Archive","wordpress-seo"),value:"noarchive"},{name:Object(s.__)("No Snippet","wordpress-seo"),value:"nosnippet"}],selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.meta_robots"],linkText:Object(s.__)("Learn more about advanced meta robots settings on our help page.","wordpress-seo")})})};w.propTypes={advanced:u.a.array.isRequired,onAdvancedChange:u.a.func.isRequired};const E=e=>{let{breadcrumbsTitle:t,onBreadcrumbsTitleChange:n}=e;return Object(o.createElement)(d.LocationConsumer,null,e=>Object(o.createElement)(c.TextInput,{label:Object(s.__)("Breadcrumbs Title","wordpress-seo"),id:Object(i.join)(["yoast-breadcrumbs-title",e]),onChange:n,value:t,linkTo:wpseoAdminL10n["shortlinks.advanced.breadcrumbs_title"],linkText:Object(s.__)("Learn more about the breadcrumbs title setting on our help page.","wordpress-seo")}))};E.propTypes={breadcrumbsTitle:u.a.string.isRequired,onBreadcrumbsTitleChange:u.a.func.isRequired};const v=e=>{let{canonical:t,onCanonicalChange:n}=e;return Object(o.createElement)(d.LocationConsumer,null,e=>Object(o.createElement)(c.TextInput,{label:Object(s.__)("Canonical URL","wordpress-seo"),id:Object(i.join)(["yoast-canonical",e]),onChange:n,value:t,linkTo:"https://yoa.st/canonical-url",linkText:Object(s.__)("Learn more about canonical URLs on our help page.","wordpress-seo")}))};v.propTypes={canonical:u.a.string.isRequired,onCanonicalChange:u.a.func.isRequired};const k=e=>{let{wordproofTimestamp:t,onWordProofTimestampChange:n,postTypeName:a}=e;return Object(o.createElement)(d.LocationConsumer,null,e=>Object(o.createElement)(O,{id:Object(i.join)(["yoast-wordproof-timestamp",e]),isEnabled:t,onToggle:n,postTypeName:a}))};k.propTypes={wordproofTimestamp:u.a.bool.isRequired,onWordProofTimestampChange:u.a.func.isRequired,postTypeName:u.a.string.isRequired};const _=e=>{const{noIndex:t,noFollow:n,advanced:a,breadcrumbsTitle:r,canonical:s,wordproofTimestamp:c,onNoIndexChange:i,onNoFollowChange:l,onAdvancedChange:u,onBreadcrumbsTitleChange:d,onCanonicalChange:p,onWordProofTimestampChange:b,onLoad:m,isLoading:h,editorContext:f,isBreadcrumbsDisabled:g,isPrivateBlog:O,isWordProofIntegrationActive:_}=e;Object(o.useEffect)(()=>{setTimeout(()=>{h&&m()})});const T={noIndex:t,onNoIndexChange:i,editorContext:f,isPrivateBlog:O},R={noFollow:n,onNoFollowChange:l,postTypeName:f.postTypeNameSingular},x={advanced:a,onAdvancedChange:u},S={breadcrumbsTitle:r,onBreadcrumbsTitleChange:d},C={canonical:s,onCanonicalChange:p},A={wordproofTimestamp:c,onWordProofTimestampChange:b,postTypeName:f.postTypeNameSingular};return h?null:Object(o.createElement)(o.Fragment,null,Object(o.createElement)(y,T),f.isPost&&Object(o.createElement)(j,R),f.isPost&&Object(o.createElement)(w,x),!g&&Object(o.createElement)(E,S),Object(o.createElement)(v,C),_&&Object(o.createElement)(k,A))};_.propTypes={noIndex:u.a.string.isRequired,canonical:u.a.string.isRequired,wordproofTimestamp:u.a.bool,onNoIndexChange:u.a.func.isRequired,onCanonicalChange:u.a.func.isRequired,onWordProofTimestampChange:u.a.func,onLoad:u.a.func.isRequired,isLoading:u.a.bool.isRequired,editorContext:u.a.object.isRequired,isBreadcrumbsDisabled:u.a.bool.isRequired,isPrivateBlog:u.a.bool,advanced:u.a.array,onAdvancedChange:u.a.func,noFollow:u.a.string,onNoFollowChange:u.a.func,breadcrumbsTitle:u.a.string,onBreadcrumbsTitleChange:u.a.func,isWordProofIntegrationActive:u.a.bool.isRequired},_.defaultProps={advanced:[],onAdvancedChange:()=>{},noFollow:"",onNoFollowChange:()=>{},breadcrumbsTitle:"",onBreadcrumbsTitleChange:()=>{},isPrivateBlog:!1,onWordProofTimestampChange:()=>{},wordproofTimestamp:!1};var T=_;t.a=Object(a.compose)([Object(r.withSelect)(e=>{const{getNoIndex:t,getNoFollow:n,getAdvanced:a,getBreadcrumbsTitle:r,getCanonical:o,getWordProofTimestamp:s,getIsLoading:c,getEditorContext:i,getPreferences:l}=e("yoast-seo/editor"),{isBreadcrumbsDisabled:u,isPrivateBlog:d,isWordProofIntegrationActive:p}=l();return{noIndex:t(),noFollow:n(),advanced:a(),breadcrumbsTitle:r(),canonical:o(),wordproofTimestamp:s(),isLoading:c(),editorContext:i(),isBreadcrumbsDisabled:u,isPrivateBlog:d,isWordProofIntegrationActive:p}}),Object(r.withDispatch)(e=>{const{setNoIndex:t,setNoFollow:n,setAdvanced:a,setBreadcrumbsTitle:r,setCanonical:o,setWordProofTimestamp:s,loadAdvancedSettingsData:c}=e("yoast-seo/editor");return{onNoIndexChange:t,onNoFollowChange:n,onAdvancedChange:a,onBreadcrumbsTitleChange:r,onCanonicalChange:o,onWordProofTimestampChange:s,onLoad:c}})])(T)},function(e,t,n){"use strict";var a=n(0),r=n(20),o=n(5),s=n(1),c=n(2),i=n.n(c),l=n(8),u=n(9),d=n(28),p=n.n(d),b=n(11),m=n.n(b),h=n(121),f=n(4);const g=Object(u.makeOutboundLink)(),O=m.a.div` padding: 16px; `;function y(e){let{location:t,show:n}=e;return n?Object(a.createElement)(l.Alert,{type:"info"},Object(s.sprintf)( /* translators: %s Expands to "Yoast News SEO" */ Object(s.__)("Are you working on a news article? %s helps you optimize your site for Google News.","wordpress-seo"),"Yoast News SEO")+" ",Object(a.createElement)(g,{href:window.wpseoAdminL10n[`shortlinks.upsell.${t}.news`]},Object(s.sprintf)( /* translators: %s: Expands to "Yoast News SEO". */ Object(s.__)("Buy %s now!","wordpress-seo"),"Yoast News SEO"))):null}y.propTypes={show:i.a.bool.isRequired,location:i.a.string.isRequired};const j=(e,t,n)=>{const a=e.find(e=>e.value===t);return[{name:Object(s.sprintf)( /* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */ Object(s.__)("Default for %1$s (%2$s)","wordpress-seo"),n,a?a.name:""),value:""},...e]},w=e=>Object(s.sprintf)( /* translators: %1$s expands to the plural name of the current post type, %2$s and %3$s expand to a link to the Settings page */ Object(s.__)("You can change the default type for %1$s under Content types in the %2$sSettings%3$s.","wordpress-seo"),e,"{{link}}","{{/link}}");i.a.string.isRequired,i.a.string.isRequired,i.a.string.isRequired;const E=e=>{const t=j(e.pageTypeOptions,e.defaultPageType,e.postTypeName),n=j(e.articleTypeOptions,e.defaultArticleType,e.postTypeName),r=Object(f.get)(window,"wpseoScriptData.metabox.woocommerceUpsellSchemaLink",""),o=Object(f.get)(window,"wpseoScriptData.woocommerceUpsell",""),[c,i]=Object(a.useState)(e.schemaArticleTypeSelected),d=Object(s.__)("Want your products stand out in search results with rich results like price, reviews and more?","wordpress-seo"),b=Object(a.useCallback)((e,t)=>{i(t)},[c]);return Object(a.useEffect)(()=>{b(null,e.schemaArticleTypeSelected)},[e.schemaArticleTypeSelected]),Object(a.createElement)(a.Fragment,null,Object(a.createElement)(l.FieldGroup,{label:Object(s.__)("What type of page or content is this?","wordpress-seo"),linkTo:e.additionalHelpTextLink,linkText:Object(s.__)("Learn more about page or content types","wordpress-seo")}),o&&Object(a.createElement)(h.a,{link:r,text:d}),Object(a.createElement)(l.Select,{id:Object(u.join)(["yoast-schema-page-type",e.location]),options:t,label:Object(s.__)("Page type","wordpress-seo"),onChange:e.schemaPageTypeChange,selected:e.schemaPageTypeSelected}),e.showArticleTypeInput&&Object(a.createElement)(l.Select,{id:Object(u.join)(["yoast-schema-article-type",e.location]),options:n,label:Object(s.__)("Article type","wordpress-seo"),onChange:e.schemaArticleTypeChange,selected:e.schemaArticleTypeSelected,onOptionFocus:b}),Object(a.createElement)(y,{location:e.location,show:!e.isNewsEnabled&&(g=c,O=e.defaultArticleType,"NewsArticle"===g||""===g&&"NewsArticle"===O)}),e.displayFooter&&Object(a.createElement)("p",null,(m=e.postTypeName,p()({mixedString:w(m),components:{link:Object(a.createElement)("a",{href:"/wp-admin/admin.php?page=wpseo_page_settings",target:"_blank"})}}))));var m,g,O},v=i.a.arrayOf(i.a.shape({name:i.a.string,value:i.a.string}));E.propTypes={schemaPageTypeChange:i.a.func,schemaPageTypeSelected:i.a.string,pageTypeOptions:v.isRequired,schemaArticleTypeChange:i.a.func,schemaArticleTypeSelected:i.a.string,articleTypeOptions:v.isRequired,showArticleTypeInput:i.a.bool.isRequired,additionalHelpTextLink:i.a.string.isRequired,helpTextLink:i.a.string.isRequired,helpTextTitle:i.a.string.isRequired,helpTextDescription:i.a.string.isRequired,postTypeName:i.a.string.isRequired,displayFooter:i.a.bool,defaultPageType:i.a.string.isRequired,defaultArticleType:i.a.string.isRequired,location:i.a.string.isRequired,isNewsEnabled:i.a.bool},E.defaultProps={schemaPageTypeChange:()=>{},schemaPageTypeSelected:null,schemaArticleTypeChange:()=>{},schemaArticleTypeSelected:null,displayFooter:!1,isNewsEnabled:!1};const k=e=>e.isMetabox?Object(a.createPortal)(Object(a.createElement)(O,null,Object(a.createElement)(E,e)),document.getElementById("wpseo-meta-section-schema")):Object(a.createElement)(E,e);k.propTypes={showArticleTypeInput:i.a.bool,articleTypeLabel:i.a.string,additionalHelpTextLink:i.a.string,pageTypeLabel:i.a.string.isRequired,helpTextLink:i.a.string.isRequired,helpTextTitle:i.a.string.isRequired,helpTextDescription:i.a.string.isRequired,isMetabox:i.a.bool.isRequired,postTypeName:i.a.string.isRequired,displayFooter:i.a.bool,loadSchemaArticleData:i.a.func.isRequired,loadSchemaPageData:i.a.func.isRequired,location:i.a.string.isRequired},k.defaultProps={showArticleTypeInput:!1,articleTypeLabel:"",additionalHelpTextLink:"",displayFooter:!1};var _=k,T=n(98),R=n(60);const x=e=>{const t=null!==T.a.articleTypeInput;Object(a.useEffect)(()=>{e.loadSchemaPageData(),t&&e.loadSchemaArticleData()},[]);const{pageTypeOptions:n,articleTypeOptions:r}=window.wpseoScriptData.metabox.schema,o={articleTypeLabel:Object(s.__)("Article type","wordpress-seo"),pageTypeLabel:Object(s.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:Object(s.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:Object(s.__)("This helps search engines understand your website and your content. You can change some of your settings for this page below.","wordpress-seo"),showArticleTypeInput:t,pageTypeOptions:n,articleTypeOptions:r},c={...e,...o,...(i=e.location,"metabox"===i?{helpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.page_type"],isMetabox:!0}:{helpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.page_type"],isMetabox:!1})};var i;return Object(a.createElement)(_,c)};x.propTypes={displayFooter:i.a.bool.isRequired,schemaPageTypeSelected:i.a.string.isRequired,schemaArticleTypeSelected:i.a.string.isRequired,defaultArticleType:i.a.string.isRequired,defaultPageType:i.a.string.isRequired,loadSchemaPageData:i.a.func.isRequired,loadSchemaArticleData:i.a.func.isRequired,schemaPageTypeChange:i.a.func.isRequired,schemaArticleTypeChange:i.a.func.isRequired,location:i.a.string.isRequired},t.a=Object(r.compose)([Object(o.withSelect)(e=>{const{getPreferences:t,getPageType:n,getDefaultPageType:a,getArticleType:r,getDefaultArticleType:o}=e("yoast-seo/editor"),{displaySchemaSettingsFooter:s,isNewsEnabled:c}=t();return{displayFooter:s,isNewsEnabled:c,schemaPageTypeSelected:n(),schemaArticleTypeSelected:r(),defaultArticleType:o(),defaultPageType:a()}}),Object(o.withDispatch)(e=>{const{setPageType:t,setArticleType:n,getSchemaPageData:a,getSchemaArticleData:r}=e("yoast-seo/editor");return{loadSchemaPageData:a,loadSchemaArticleData:r,schemaPageTypeChange:t,schemaArticleTypeChange:n}}),Object(R.a)()])(x)},function(e,t,n){"use strict";var a=n(0),r=n(1),o=n(2),s=n.n(o),c=n(11),i=n.n(c),l=n(8),u=n(19),d=n(76),p=n(40),b=n(78),m=n(85),h=n(22),f=n(15);const g=e=>{const t=Object(r.__)("Get extra, smarter recommendations about your site’s structure, content, and SEO opportunities.","wordpress-seo"),n=[Object(r.__)("Use AI to create titles & meta descriptions","wordpress-seo"),Object(r.__)("Target multiple focus keyphrases","wordpress-seo"),Object(r.__)("Use synonyms, plurals, and variations","wordpress-seo"),Object(r.__)("Unlock expert workouts and workflows","wordpress-seo")],{locationContext:o}=Object(h.useRootContext)(),s=Object(f.addQueryArgs)(wpseoAdminL10n[e.buyLink],{context:o});return Object(a.createElement)(m.a,{infoParagraphs:[t],benefits:n,upsellButtonText:Object(r.sprintf)( /* translators: %s expands to 'Yoast SEO Premium'. */ Object(r.__)("Unlock with %s","wordpress-seo"),"Yoast SEO Premium"),upsellButton:{href:s,className:"yoast-button-upsell",rel:null,"data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2","data-action":"load-nfd-ctb"},upsellButtonLabel:Object(r.__)("1 year of premium support and updates included!","wordpress-seo")})};g.propTypes={buyLink:s.a.string.isRequired};var O=g;const y=i()(l.CollapsibleStateless)` h2 > button { padding-left: 24px; padding-top: 16px; &:hover { background-color: #f0f0f0; } } `,j=e=>{let{location:t}=e;const[n,o]=Object(a.useState)(!1),s=Object(a.useCallback)(()=>o(!1),[]),c=Object(a.useCallback)(()=>o(!0),[]);return Object(a.createElement)(a.Fragment,null,n&&Object(a.createElement)(p.a,{title:Object(r.__)("Get Yoast SEO Premium","wordpress-seo"),onRequestClose:s,additionalClassName:"",className:p.b,id:"yoast-premium-seo-analysis-modal",shouldCloseOnClickOutside:!0},Object(a.createElement)(d.a,null,Object(a.createElement)(d.b,{icon:l.YoastSeoIcon}),Object(a.createElement)("h2",null,Object(r.__)("Optimize even further with our premium SEO analysis","wordpress-seo")),Object(a.createElement)(O,{buyLink:`shortlinks.upsell.${t}.premium_seo_analysis_button`}))),"sidebar"===t&&Object(a.createElement)(b.a,{id:"yoast-premium-seo-analysis-modal-open-button",title:Object(r.__)("Premium SEO analysis","wordpress-seo"),prefixIcon:{icon:"seo-score-none",color:u.colors.$color_grey},suffixIcon:{icon:"pencil-square",size:"20px"},onClick:c}),"metabox"===t&&Object(a.createElement)(y,{hasPadding:!1,hasSeparator:!0,isOpen:!1,id:"yoast-premium-seo-analysis-metabox-modal-open-button",title:Object(r.__)("Premium SEO analysis","wordpress-seo"),prefixIconCollapsed:{icon:"seo-score-none",color:u.colors.$color_grey,size:"16px"},suffixIconCollapsed:{icon:"pencil-square",color:u.colors.$black,size:"20px"},onToggle:c}))};j.propTypes={location:s.a.string},j.defaultProps={location:"sidebar"},t.a=j},function(e,t,n){"use strict";var a=n(0),r=n(5),o=n(1),s=n(9),c=n(4),i=n(2),l=n.n(i),u=n(75),d=n(12),p=n.n(d),b=n(31),m=n.n(b);const h=e=>{let{data:t,itemScreenReaderText:n,className:r,...s}=e;const i=Object(a.useMemo)(()=>{var e,n;return null!==(e=null===(n=Object(c.maxBy)(t,"number"))||void 0===n?void 0:n.number)&&void 0!==e?e:0},[t]);return Object(a.createElement)("ul",p()({className:m()("yoast-data-model",r)},s),t.map(e=>{let{name:t,number:r}=e;return Object(a.createElement)("li",{key:t+"_dataItem",style:{"--yoast-width":r/i*100+"%"}},t,Object(a.createElement)("span",null,r),n&&Object(a.createElement)("span",{className:"screen-reader-text"},Object(o.sprintf)(n,r)))}))};h.propTypes={data:l.a.arrayOf(l.a.shape({name:l.a.string.isRequired,number:l.a.number.isRequired})),itemScreenReaderText:l.a.string,className:l.a.string},h.defaultProps={data:[],itemScreenReaderText:"",className:""};var f=h,g=n(15),O=n(22);const y=Object(s.makeOutboundLink)(),j=e=>{let{location:t}=e;const n=Object(r.useSelect)(e=>{var t,n;return null===(t=null===(n=e("yoast-seo-premium/editor"))||void 0===n?void 0:n.getPreference("isProminentWordsAvailable",!1))||void 0===t||t},[]),s=Object(r.useSelect)(e=>e("yoast-seo/editor").getPreference("shouldUpsell",!1),[]),i=Object(a.useMemo)(()=>Object(c.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${t}-prominent_words`,""),[t]),l=Object(a.useMemo)(()=>{const e=Object(c.get)(window,"wpseoAdminL10n.shortlinks-insights-keyword_research_link","");return Object(u.a)(Object(o.sprintf)(Object(o.__)("Read our %1$sultimate guide to keyword research%2$s to learn more about keyword research and keyword strategy.","wordpress-seo"),"",""),{a:Object(a.createElement)(y,{href:e})})},[]),d=Object(a.useMemo)(()=>Object(u.a)(Object(o.sprintf)(// translators: %1$s expands to a starting `b` tag, %1$s expands to a closing `b` tag and %3$s expands to `Yoast SEO Premium`. Object(o.__)("With %1$s%3$s%2$s, this section will show you which words occur most often in your text. By checking these prominent words against your intended keyword(s), you'll know how to edit your text to be more focused.","wordpress-seo"),"","","Yoast SEO Premium"),{b:Object(a.createElement)("b",null)}),[]),p=Object(r.useSelect)(e=>{var t,n;return null!==(t=null===(n=e("yoast-seo-premium/editor"))||void 0===n?void 0:n.getProminentWords())&&void 0!==t?t:[]},[]),b=Object(a.useMemo)(()=>{const e=Object(o.sprintf)(// translators: %1$s expands to Yoast SEO Premium. Object(o.__)("Get %s to enjoy the benefits of prominent words","wordpress-seo"),"Yoast SEO Premium").split(/\s+/);return e.map((t,n)=>({name:t,number:e.length-n}))},[]),m=Object(a.useMemo)(()=>s?b:p.map(e=>{let{word:t,occurrence:n}=e;return{name:t,number:n}}),[p,b]);if(!n)return null;const{locationContext:h}=Object(O.useRootContext)();return Object(a.createElement)("div",{className:"yoast-prominent-words"},Object(a.createElement)("div",{className:"yoast-field-group__title"},Object(a.createElement)("b",null,Object(o.__)("Prominent words","wordpress-seo"))),!s&&Object(a.createElement)("p",null,0===m.length?Object(o.__)("Once you add a bit more copy, we'll give you a list of words that occur the most in the content. These give an indication of what your content focuses on.","wordpress-seo"):Object(o.__)("The following words occur the most in the content. These give an indication of what your content focuses on. If the words differ a lot from your topic, you might want to rewrite your content accordingly.","wordpress-seo")),s&&Object(a.createElement)("p",null,d),s&&Object(a.createElement)(y,{href:Object(g.addQueryArgs)(i,{context:h}),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",className:"yoast-button yoast-button-upsell"},Object(o.sprintf)(// translators: %s expands to `Premium` (part of add-on name). Object(o.__)("Unlock with %s","wordpress-seo"),"Premium"),Object(a.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})),Object(a.createElement)("p",null,l),Object(a.createElement)(f,{data:m,itemScreenReaderText:// translators: %d expands to the number of occurrences. Object(o.__)("%d occurrences","wordpress-seo"),"aria-label":Object(o.__)("Prominent words","wordpress-seo"),className:s?"yoast-data-model--upsell":null}))};j.propTypes={location:l.a.string.isRequired},t.a=j},function(e,t,n){"use strict";var a=n(0),r=n(18),o=n(1),s=n(8),c=n(4),i=n(2),l=n.n(i),u=n(9),d=n(75);const p=Object(u.makeOutboundLink)(),b=e=>{let{location:t}=e;const n=Object(a.useMemo)(()=>Object(c.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${t}-text_formality`,""),[t]),r=Object(a.useMemo)(()=>Object(d.a)(Object(o.sprintf)(// Translators: %1$s expands to a starting `b` tag, %2$s expands to a closing `b` tag and %3$s expands to `Yoast SEO Premium`. Object(o.__)("%1$s%3$s%2$s will help you assess the formality level of your text.","wordpress-seo"),"","","Yoast SEO Premium"),{b:Object(a.createElement)("b",null)}),[]);return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",null,Object(a.createElement)("p",null,r),Object(a.createElement)(p,{href:n,className:"yoast-button yoast-button-upsell"},Object(o.sprintf)(// Translators: %s expands to `Premium` (part of add-on name). Object(o.__)("Unlock with %s","wordpress-seo"),"Premium"),Object(a.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"}))))};b.propTypes={location:l.a.string.isRequired};var m=b,h=n(5),f=n(17);const g=e=>{let{location:t,name:n}=e;const i=Object(h.useSelect)(e=>e("yoast-seo/editor").isFormalitySupported(),[]),l=Object(f.a)().isPremium,u=l?Object(c.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_premium",""):Object(c.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_free",""),d=Object(o.__)("Read more about text formality.","wordpress-seo");return i?Object(a.createElement)("div",{className:"yoast-text-formality"},Object(a.createElement)("div",{className:"yoast-field-group__title"},Object(a.createElement)("b",null,Object(o.__)("Text formality","wordpress-seo")),Object(a.createElement)(s.HelpIcon,{linkTo:u,linkText:d})),l?Object(a.createElement)(r.Slot,{name:n}):Object(a.createElement)(m,{location:t})):null};g.propTypes={location:l.a.string.isRequired,name:l.a.string.isRequired},t.a=g},,,,,,,,,function(e,t){e.exports=window.yoast.searchMetadataPreviews},function(e,t,n){"use strict";var a=n(0),r=n(2),o=n.n(r),s=n(11),c=n.n(s),i=n(8),l=n(9);const u=c()(i.StyledSection)` &${i.StyledSectionBase} { padding: 0; & ${i.StyledHeading} { ${Object(l.getDirectionalStyle)("padding-left","padding-right")}: 20px; margin-left: ${Object(l.getDirectionalStyle)("0","20px")}; } } `,d=e=>{let{children:t,title:n,icon:r,hasPaperStyle:o,shoppingData:s}=e;return Object(a.createElement)(u,{headingLevel:3,headingText:n,headingIcon:r,headingIconColor:"#555",hasPaperStyle:o,shoppingData:s},t)};d.propTypes={children:o.a.element,title:o.a.string,icon:o.a.string,hasPaperStyle:o.a.bool,shoppingData:o.a.object},d.defaultProps={hasPaperStyle:!0,shoppingData:null},t.a=d},function(e,t,n){"use strict";var a=n(0),r=n(18),o=n(2),s=n.n(o),c=n(111);const i=e=>{const[t,n]=Object(a.useState)(""),o=Object(a.useCallback)(e=>{n(e.detail.metaTabId)},[n]);Object(a.useEffect)(()=>(setTimeout(e.onLoad),window.addEventListener("YoastSEO:metaTabChange",o),()=>{window.removeEventListener("YoastSEO:metaTabChange",o)}),[]);const s=Object(a.useMemo)(()=>({...e,activeMetaTabId:t}),[e,t]);return e.isPremium?Object(a.createElement)(r.Slot,{name:"YoastFacebookPremium"+(e.location.charAt(0).toUpperCase()+e.location.slice(1)),fillProps:s}):Object(a.createElement)(c.a,s)};i.propTypes={isPremium:s.a.bool.isRequired,onLoad:s.a.func.isRequired,location:s.a.string.isRequired},t.a=i},function(e,t,n){"use strict";var a=n(0),r=n(18),o=n(2),s=n.n(o),c=n(111);const i=e=>(Object(a.useEffect)(()=>{setTimeout(e.onLoad)},[]),e.isPremium?Object(a.createElement)(r.Slot,{name:"YoastTwitterPremium"+(e.location.charAt(0).toUpperCase()+e.location.slice(1)),fillProps:e}):Object(a.createElement)(c.a,e));i.propTypes={isPremium:s.a.bool.isRequired,onLoad:s.a.func.isRequired,location:s.a.string.isRequired},t.a=i},,,,,,,function(e,t,n){"use strict";var a,r,o,s,c,i,l,u,d,p,b,m,h,f,g,O,y,j,w,E,v,k,_,T,R,x,S,C,A,P,I,L,F,N,q,M,D,W,z,K,B,U,$,H,Y,V,G,Z,J=n(0),Q=n(1),X=n(27),ee=()=>Object(J.createElement)(J.Fragment,null,Object(J.createElement)("p",null,Object(X.a)(Object(Q.sprintf)( /* translators: 1: Opening a html tag, 2: Closing a html tag. 3: WordProof. 4. WordPress */ Object(Q.__)("Something went wrong authenticating your %3$s account with the %4$s site. Please try again or contact %1$s%3$s support%2$s.","wordpress-seo"),"","","WordProof","WordPress"),"https://help.wordproof.com/"))),te=n(3);function ne(){return(ne=Object.assign||function(e){for(var t=1;t{const{closeModal:t}=e;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)("div",{className:"yoast-wordproof-modal-image"},Object(J.createElement)(ae,{class:"yoast-wordproof-modal-svg__success"})),Object(J.createElement)("p",null,Object(Q.sprintf)( /* Translators: %s translates to the Post type in singular form */ Object(Q.__)("Your %s is now protected via the blockchain!","wordpress-seo"),Object(re.a)("current_post_type")),Object(J.createElement)("br",null),Object(J.createInterpolateElement)(Object(Q.sprintf)(Object(Q.__)( /** translators: * %1$s and %2$s are replaced by opening and closing tags. * %3$s translates to the Post type in singular form. */ "The %3$s will automatically be timestamped every time you %1$supdate%2$s or %1$spublish%2$s.","wordpress-seo"),"","",Object(re.a)("current_post_type")),{b:Object(J.createElement)("b",null)})),Object(J.createElement)("div",{className:"yoast-wordproof-modal-action"},Object(J.createElement)(oe.NewButton,{variant:"primary",onClick:t},"Continue")))};ie.propTypes={closeModal:ce.a.func.isRequired};var le,ue=ie;function de(){return(de=Object.assign||function(e){for(var t=1;t{const{closeModal:t}=e,n=Object(J.useCallback)(e=>{t(),e.preventDefault(),Object(re.c)()});return Object(J.createElement)("div",null,Object(J.createElement)("div",{className:"yoast-wordproof-modal-image"},Object(J.createElement)(pe,{className:"yoast-wordproof-modal-svg__webhook-failed"})),Object(J.createElement)("div",null,Object(Q.__)("There was a connection problem. This could be because your third party connections are blocked.","wordpress-seo"),Object(J.createElement)("br",null),Object(X.a)(Object(Q.sprintf)(Object(Q.__)("Find possible solutions in this %1$sArticle%2$s.","wordpress-seo"),"",""),"https://help.wordproof.com/en/articles/4823201-how-do-i-whitelist-wordproof-in-cloudflare")),Object(J.createElement)("div",{className:"yoast-wordproof-modal-action"},Object(J.createElement)(oe.NewButton,{variant:"secondary",onClick:n},Object(Q.__)("Try again","wordpress-seo"))),Object(J.createElement)("div",null,Object(X.a)(Object(Q.sprintf)(// translators: %1$s and %2$s are replaced by opening and closing tags. %3$s expands to WordProof. Object(Q.__)("Not working? %1$sContact %3$s support%2$s.","wordpress-seo"),"","","WordProof"),"https://help.wordproof.com")))};be.propTypes={closeModal:ce.a.func.isRequired};var me=be,he=n(40);t.a=()=>{const[e,t]=Object(J.useState)(null),n=Object(J.useCallback)(()=>{t("oauth:failed")}),a=Object(J.useCallback)(()=>{t("webhook:failed")}),r=Object(J.useCallback)(()=>{t("oauth:success")}),o=Object(J.useCallback)(()=>{t(null)});Object(J.useEffect)(()=>(window.addEventListener("wordproof:oauth:success",r,!1),window.addEventListener("wordproof:oauth:failed",n,!1),window.addEventListener("wordproof:webhook:failed",a,!1),()=>{window.removeEventListener("wordproof:oauth:success",r,!1),window.removeEventListener("wordproof:oauth:failed",n,!1),window.removeEventListener("wordproof:webhook:failed",a,!1)}),[]);const s=Object(J.useCallback)(()=>{switch(e){case"webhook:failed":return Object(Q.__)("Connection failed","wordpress-seo");case"oauth:success":return Object(Q.__)("Connected to WordProof","wordpress-seo");default:return Object(Q.__)("WordProof authentication","wordpress-seo")}});return Object(J.createElement)(J.Fragment,null,e&&Object(J.createElement)(he.a,{onRequestClose:o,additionalClassName:"yoast-wordproof-modal",title:s()},"oauth:success"===e&&Object(J.createElement)(ue,{closeModal:o}),"oauth:failed"===e&&Object(J.createElement)(ee,null),"webhook:failed"===e&&Object(J.createElement)(me,{closeModal:o})))}},function(e,t,n){"use strict";var a=n(12),r=n.n(a),o=n(0),s=n(1),c=n(5),i=n(2),l=n.n(i),u=n(135);const d=e=>{let{children:t,id:n,hasIcon:a=!0,title:r,image:c=null,isAlertDismissed:i,onDismissed:l}=e;return i?null:Object(o.createElement)("div",{id:n,className:"notice-yoast yoast is-dismissible"},Object(o.createElement)("div",{className:"notice-yoast__container"},Object(o.createElement)("div",null,Object(o.createElement)("div",{className:"notice-yoast__header"},a&&Object(o.createElement)("span",{className:"yoast-icon"}),Object(o.createElement)("h2",{className:"notice-yoast__header-heading"},r)),Object(o.createElement)("p",null,t)),c&&Object(o.createElement)(c,{height:"60"})),Object(o.createElement)("button",{className:"notice-dismiss",onClick:l},Object(o.createElement)("span",{className:"screen-reader-text"},Object(s.__)("Dismiss this notice.","wordpress-seo"))))};d.propTypes={children:l.a.node.isRequired,id:l.a.string.isRequired,hasIcon:l.a.bool,title:l.a.string.isRequired,image:l.a.elementType,isAlertDismissed:l.a.bool.isRequired,onDismissed:l.a.func.isRequired};var p,b,m,h,f,g,O,y,j,w,E,v,k,_,T,R,x,S,C,A,P,I,L,F,N,q,M,D,W,z,K,B,U,$,H,Y,V,G,Z,J,Q,X,ee,te,ne,ae,re,oe=Object(u.a)(d),se=n(3);function ce(){return(ce=Object.assign||function(e){for(var t=1;t{let{store:t="yoast-seo/editor",image:n=ie,url:a,...i}=e;return Object(c.useSelect)(e=>e(t).getIsPremium())?null:Object(o.createElement)(oe,r()({alertKey:"webinar-promo-notification",store:t,id:"webinar-promo-notification",title:Object(s.__)("Join our FREE webinar for SEO success","wordpress-seo"),image:n,url:a},i),Object(s.__)("Feeling lost when it comes to optimizing your site for the search engines? Join our FREE webinar to gain the confidence that you need in order to start optimizing like a pro! You'll obtain the knowledge and tools to start effectively implementing SEO.","wordpress-seo")," ",Object(o.createElement)("a",{href:a,target:"_blank",rel:"noreferrer"},Object(s.__)("Sign up today!","wordpress-seo")))};le.propTypes={store:l.a.string,image:l.a.elementType,url:l.a.string.isRequired},t.a=le},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(46),r=n(39),o=n(112),s=n(54);const{dispatch:c}=wp.data;function i(){const{setIsAuthenticated:e,setSelectedPostTypes:t}=c("wordproof"),n=Object(r.a)("popup_redirect_authentication_url"),i=Object(r.a)("popup_redirect_settings_url");let l=null;const u=(e,t)=>{l=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:800,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:680;const o=e.top.outerHeight/2+e.top.screenY-r/2,s=e.top.outerWidth/2+e.top.screenX-a/2;return e.open(t,n,`toolbar=no,\n\t\tlocation=no,\n\t\tdirectories=no,\n\t\tstatus=no,\n\t\tmenubar=no,\n\t\tresizable=no,\n\t\tcopyhistory=no,\n\t\twidth=${a},\n\t\theight=${r},\n\t\ttop=${o},\n\t\tleft=${s}`)}(window,e,t),l&&l.focus(),window.addEventListener("message",d,!1)},d=async e=>{const{data:t,source:n,origin:a}=e;if(a===Object(r.a)("origin")&&l===n)switch(t.type){case"wordproof:oauth:granted":!1===await m(t)&&await p("wordproof:oauth:failed",!1);break;case"wordproof:oauth:failed":await p("wordproof:oauth:failed",!1);break;case"wordproof:oauth:denied":await p("wordproof:oauth:denied",!1);break;case"wordproof:webhook:success":await p("wordproof:oauth:success",!0);break;case"wordproof:webhook:failed":await p("wordproof:webhook:failed",!1);break;case"wordproof:settings:updated":await p("wordproof:settings:updated"),await h(t);break;case"wordproof:oauth:destroy":await p("wordproof:oauth:destroy",!1);break;case"wordproof:oauth:retry":await p("wordproof:open_authentication",!1);break;case"wordproof:oauth:close":b()}},p=async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;b(),Object(o.a)(t),!1===n&&(await Object(a.b)(),e(!1)),!0===n&&e(!0)},b=()=>{window.removeEventListener("message",d,!1),l.close()},m=async e=>{await Object(a.c)(()=>Object(s.e)(e),async e=>{const t={type:"wordproof:sdk:access-token",source_id:e.source_id};return l.postMessage(t,Object(r.a)("origin")),!0},async()=>!1)},h=async e=>{await Object(a.c)(()=>Object(s.f)(e),async()=>{const n=e.settings;return n.selectedPostTypes&&t(n.selectedPostTypes),!0},async()=>!1)};window.addEventListener("wordproof:open_authentication",e=>{e.preventDefault(),u(n,"WordProof_Authentication")},!1),window.addEventListener("wordproof:open_settings",e=>{e.preventDefault(),u(i,"WordProof_Settings")},!1)}},,,,function(e,t,n){"use strict";var a=n(12),r=n.n(a),o=n(0),s=n(20),c=n(5),i=n(1),l=n(160),u=n(22),d=n(161),p=n(72),b=n(118),m=n(121),h=n(4);const f=function(e,t){let n=0;return t.shortenedBaseUrl&&"string"==typeof t.shortenedBaseUrl&&(n=t.shortenedBaseUrl.length),e.url=e.url.replace(/\s+/g,"-"),"-"===e.url[e.url.length-1]&&(e.url=e.url.slice(0,-1)),"-"===e.url[n]&&(e.url=e.url.slice(0,n)+e.url.slice(n+1)),Object(p.applyReplaceUsingPlugin)(e)};t.a=Object(s.compose)([Object(c.withSelect)((function(e){const{getBaseUrlFromSettings:t,getDateFromSettings:n,getFocusKeyphrase:a,getRecommendedReplaceVars:r,getReplaceVars:o,getShoppingData:s,getSiteIconUrlFromSettings:c,getSnippetEditorData:i,getSnippetEditorMode:l,getSnippetEditorPreviewImageUrl:u,getSnippetEditorWordsToHighlight:d,isCornerstoneContent:p,getIsTerm:b,getContentLocale:m,getSiteName:h}=e("yoast-seo/editor"),f=o();return f.forEach(e=>{""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(e.value="%%"+e.name+"%%")}),{baseUrl:t(),data:i(),date:n(),faviconSrc:c(),keyword:a(),mobileImageSrc:u(),mode:l(),recommendedReplacementVariables:r(),replacementVariables:f,shoppingData:s(),wordsToHighlight:d(),isCornerstone:p(),isTaxonomy:b(),locale:m(),siteName:h()}})),Object(c.withDispatch)((function(e,t,n){let{select:a}=n;const{updateData:r,switchMode:o,updateAnalysisData:s,findCustomFields:c}=e("yoast-seo/editor"),i=e("core/editor"),l=a("yoast-seo/editor").getPostId();return{onChange:(e,t)=>{switch(e){case"mode":o(t);break;case"slug":r({slug:t}),i&&i.editPost({slug:t});break;default:r({[e]:t})}},onChangeAnalysisData:s,onReplacementVariableSearchChange:Object(b.a)(l,c)}}))])(e=>{const t=Object(h.get)(window,"wpseoScriptData.metabox.woocommerceUpsellGooglePreviewLink",""),n=Object(h.get)(window,"wpseoScriptData.woocommerceUpsell",""),a=Object(i.__)("Want an enhanced Google preview of how your WooCommerce products look in the search results?","wordpress-seo");return Object(o.createElement)(u.LocationConsumer,null,s=>Object(o.createElement)(d.a,{icon:"eye",hasPaperStyle:e.hasPaperStyle},Object(o.createElement)(o.Fragment,null,n&&Object(o.createElement)(m.a,{link:t,text:a}),Object(o.createElement)(l.SnippetEditor,r()({},e,{descriptionPlaceholder:Object(i.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:f,showCloseButton:!1,idSuffix:s})))))})},function(e,t,n){"use strict";var a=n(5),r=n(8);t.a=Object(a.withSelect)(e=>{const{getWarningMessage:t}=e("yoast-seo/editor");return{message:t()}})(r.Warning)},function(e,t,n){"use strict";var a=n(20),r=n(5),o=n(162),s=n(17),c=n(60),i=n(53),l=n(118);const u=()=>{Object(i.b)(e=>Object(r.dispatch)("yoast-seo/editor").setFacebookPreviewImage(Object(i.c)(e)))};t.a=Object(a.compose)([Object(r.withSelect)(e=>{const{getFacebookDescription:t,getDescription:n,getFacebookTitle:a,getSeoTitle:r,getFacebookImageUrl:o,getImageFallback:c,getFacebookWarnings:i,getRecommendedReplaceVars:l,getReplaceVars:u,getSiteUrl:d,getSeoTitleTemplate:p,getSeoTitleTemplateNoFallback:b,getSocialTitleTemplate:m,getSeoDescriptionTemplate:h,getSocialDescriptionTemplate:f,getReplacedExcerpt:g,getFacebookAltText:O}=e("yoast-seo/editor");return{imageUrl:o(),imageFallbackUrl:c(),recommendedReplacementVariables:l(),replacementVariables:u(),description:t(),descriptionPreviewFallback:f()||n()||h()||g()||"",title:a(),titlePreviewFallback:m()||r()||b()||p()||"",imageWarnings:i(),siteUrl:d(),isPremium:!!Object(s.a)().isPremium,titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Facebook",alt:O()}}),Object(r.withDispatch)((e,t,n)=>{let{select:a}=n;const{setFacebookPreviewTitle:r,setFacebookPreviewDescription:o,clearFacebookPreviewImage:s,loadFacebookPreviewData:c,findCustomFields:i}=e("yoast-seo/editor"),d=a("yoast-seo/editor").getPostId();return{onSelectImageClick:u,onRemoveImageClick:s,onDescriptionChange:o,onTitleChange:r,onLoad:c,onReplacementVariableSearchChange:Object(l.a)(d,i)}}),Object(c.a)()])(o.a)},function(e,t,n){"use strict";var a=n(20),r=n(5),o=n(163),s=n(17),c=n(60),i=n(53),l=n(118);const u=()=>{Object(i.b)(e=>Object(r.dispatch)("yoast-seo/editor").setTwitterPreviewImage(Object(i.d)(e)))};t.a=Object(a.compose)([Object(r.withSelect)(e=>{const{getTwitterDescription:t,getTwitterTitle:n,getTwitterImageUrl:a,getFacebookImageUrl:r,getFacebookTitle:o,getFacebookDescription:c,getDescription:i,getSeoTitle:l,getTwitterWarnings:u,getTwitterImageType:d,getImageFallback:p,getRecommendedReplaceVars:b,getReplaceVars:m,getSiteUrl:h,getSeoTitleTemplate:f,getSeoTitleTemplateNoFallback:g,getSocialTitleTemplate:O,getSeoDescriptionTemplate:y,getSocialDescriptionTemplate:j,getReplacedExcerpt:w,getTwitterAltText:E}=e("yoast-seo/editor");return{imageUrl:a(),imageFallbackUrl:r()||p(),recommendedReplacementVariables:b(),replacementVariables:m(),description:t(),descriptionPreviewFallback:j()||c()||i()||y()||w()||"",title:n(),titlePreviewFallback:O()||o()||l()||g()||f()||"",imageWarnings:u(),siteUrl:h(),isPremium:!!Object(s.a)().isPremium,isLarge:"summary"!==d(),titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Twitter",alt:E()}}),Object(r.withDispatch)((e,t,n)=>{let{select:a}=n;const{setTwitterPreviewTitle:r,setTwitterPreviewDescription:o,clearTwitterPreviewImage:s,loadTwitterPreviewData:c,findCustomFields:i}=e("yoast-seo/editor"),d=a("yoast-seo/editor").getPostId();return{onSelectImageClick:u,onRemoveImageClick:s,onDescriptionChange:o,onTitleChange:r,onLoad:c,onReplacementVariableSearchChange:Object(l.a)(d,i)}}),Object(c.a)()])(o.a)},,,,,,function(e,t,n){"use strict";var a=n(5),r=n(20),o=n(0),s=n(1),c=n(2),i=n.n(c),l=n(19),u=n(76),d=n(40),p=n(107),b=n(99),m=n(78),h=n(117);function f(e){const{keyphrases:t,onNoKeyphraseSet:n,onOpen:a,location:r}=e;if(!t.length)return document.querySelector("#focus-keyword-input-sidebar").focus(),void n();a(r)}function g(e,t){Object(b.b)(t)&&e.onClose()}function O(e){const{location:t,whichModalOpen:n,shouldCloseOnClickOutside:a}=e,r=Object(o.useCallback)(()=>{f(e)},[f,e]),c=Object(o.useCallback)(t=>{g(e,t)},[g,e]),i=Object(s.__)("Track SEO performance","wordpress-seo");return Object(o.createElement)(o.Fragment,null,n===t&&Object(o.createElement)(d.a,{title:i,onRequestClose:c,icon:Object(o.createElement)(p.a,null),additionalClassName:"yoast-wincher-seo-performance-modal",shouldCloseOnClickOutside:a},Object(o.createElement)(u.a,{className:"yoast-gutenberg-modal__content yoast-wincher-seo-performance-modal__content"},Object(o.createElement)(h.a,null))),"sidebar"===t&&Object(o.createElement)(m.a,{id:"wincher-open-button-"+t,title:i,suffixIcon:{size:"20px",icon:"pencil-square"},prefixIcon:{icon:"chart-square-bar",color:l.colors.$color_grey_medium_dark},onClick:r}))}O.propTypes={location:i.a.string,whichModalOpen:i.a.oneOf(["none","metabox","sidebar","postpublish"]),shouldCloseOnClickOutside:i.a.bool},O.defaultProps={location:"",whichModalOpen:"none",shouldCloseOnClickOutside:!0},t.a=Object(r.compose)([Object(a.withSelect)(e=>{const{getWincherModalOpen:t,getWincherTrackableKeyphrases:n}=e("yoast-seo/editor");return{keyphrases:n(),whichModalOpen:t()}}),Object(a.withDispatch)(e=>{const{setWincherOpenModal:t,setWincherDismissModal:n,setWincherNoKeyphrase:a}=e("yoast-seo/editor");return{onOpen:e=>{t(e)},onClose:()=>{n()},onNoKeyphraseSet:()=>{a()}}})])(O)},,,,,,,,,,function(e,t){e.exports=window.wp.editPost},function(e,t){e.exports=window.wp.annotations},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n(8),o=n(61),s=n(2);function c(e){let{score:t,label:n,scoreValue:s}=e;return Object(a.createElement)("div",{className:"yoast-analysis-check"},Object(a.createElement)(r.SvgIcon,Object(o.getIconForScore)(t)),Object(a.createElement)("span",null," ",n," ",s&&Object(a.createElement)("strong",null,s)))}c.propTypes={score:s.string.isRequired,label:s.string.isRequired,scoreValue:s.string},c.defaultProps={scoreValue:""}},function(e,t,n){"use strict";var a=n(0),r=n(5),o=n(1),s=n(88),c=n(2),i=n.n(c),l=n(83),u=n(141),d=n(142),p=n(150),b=n(151),m=n(143);const h=e=>{let{location:t}=e;const n=Object(r.useSelect)(e=>e("yoast-seo/editor").getIsElementorEditor(),[]),c=Object(r.useSelect)(e=>e("yoast-seo/editor").isFleschReadingEaseAvailable(),[]);return Object(a.createElement)(l.a,{title:Object(o.__)("Insights","wordpress-seo"),id:"yoast-insights-modal-"+t,shouldCloseOnClickOutside:!n,showChangesWarning:!1},Object(a.createElement)("div",{className:"yoast-insights yoast-modal-content--columns"},Object(a.createElement)(p.a,{location:t}),Object(a.createElement)("div",null,c&&Object(a.createElement)("div",{className:"yoast-insights-row"},Object(a.createElement)(d.a,null)),Object(a.createElement)("div",{className:"yoast-insights-row yoast-insights-row--columns"},Object(a.createElement)(u.a,null),Object(a.createElement)(m.a,null)),Object(s.isFeatureEnabled)("TEXT_FORMALITY")&&Object(a.createElement)(b.a,{location:t,name:"YoastTextFormalityMetabox"}))))};h.propTypes={location:i.a.string},h.defaultProps={location:"sidebar"},t.a=h},function(e,t){e.exports=window.wp.htmlEntities},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return $}));var a=n(0),r=n(2),o=n.n(r),s=n(18),c=n(139),i=n(77);function l(e){let{theme:t}=e;return Object(a.createElement)(i.a,{theme:t,location:"metabox"},Object(a.createElement)(s.Slot,{name:"YoastMetabox"},e=>Object(c.a)(e)))}var u=n(5),d=n(20),p=n(1),b=n(19),m=n(140),h=n(177),f=n(178),g=n(62),O=n(88),y=n(49),j=n(141),w=n(142),E=n(150),v=n(143),k=n(151);const _=e=>{let{location:t}=e;const n=Object(u.useSelect)(e=>e("yoast-seo/editor").isFleschReadingEaseAvailable(),[]);return Object(a.createElement)(y.a,{title:Object(p.__)("Insights","wordpress-seo"),id:"yoast-insights-collapsible-"+t,className:"yoast-insights"},Object(a.createElement)(E.a,{location:t}),Object(a.createElement)("div",null,n&&Object(a.createElement)("div",{className:"yoast-insights-row"},Object(a.createElement)(w.a,null)),Object(a.createElement)("div",{className:"yoast-insights-row yoast-insights-row--columns"},Object(a.createElement)(j.a,null),Object(a.createElement)(v.a,null)),Object(O.isFeatureEnabled)("TEXT_FORMALITY")&&Object(a.createElement)(k.a,{location:t,name:"YoastTextFormalityMetabox"})))};_.propTypes={location:o.a.string},_.defaultProps={location:"metabox"};var T=_,R=n(32),x=n(147),S=n(179),C=n(180);const A=e=>{let{displayFacebook:t,displayTwitter:n}=e;return Object(a.createElement)(a.Fragment,null,t&&Object(a.createElement)(y.a,{hasSeparator:!1 /* Translators: %s expands to Facebook. */,title:Object(p.sprintf)(Object(p.__)("%s preview","wordpress-seo"),"Facebook"),initialIsOpen:!0},Object(a.createElement)(S.a,null)),n&&Object(a.createElement)(y.a /* Translators: %s expands to Twitter. */,{title:Object(p.sprintf)(Object(p.__)("%s preview","wordpress-seo"),"Twitter"),hasSeparator:t,initialIsOpen:!0},Object(a.createElement)(C.a,null)))};A.propTypes={displayFacebook:o.a.bool.isRequired,displayTwitter:o.a.bool.isRequired};var P=A,I=Object(u.withSelect)(e=>{const{getPreferences:t}=e("yoast-seo/editor"),{displayFacebook:n,displayTwitter:a}=t();return{displayFacebook:n,displayTwitter:a}})(P),L=n(74);function F(e){let{target:t}=e;return Object(a.createElement)(L.a,{target:t},Object(a.createElement)(I,null))}F.propTypes={target:o.a.string.isRequired};var N=n(148),q=n(136),M=n(117),D=n(41),W=n(170),z=n(149),K=n(144);function B(e){let{settings:t,wincherKeyphrases:n,setWincherNoKeyphrase:r}=e;const o=Object(a.useCallback)(()=>{if(!n.length)return r(!0),document.querySelector("#focus-keyword-input-metabox").focus(),!1},[n,r]);return Object(a.createElement)(a.Fragment,null,Object(D.b)()&&Object(a.createElement)(W.a,null),Object(a.createElement)(s.Fill,{name:"YoastMetabox"},Object(a.createElement)(R.a,{key:"warning",renderPriority:1},Object(a.createElement)(f.a,null)),t.isKeywordAnalysisActive&&Object(a.createElement)(R.a,{key:"keyword-input",renderPriority:8},Object(a.createElement)(g.KeywordInput,{isSEMrushIntegrationActive:t.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&Object(a.createElement)(s.Fill,{name:"YoastRelatedKeyphrases"},Object(a.createElement)(q.a,null))),Object(a.createElement)(R.a,{key:"google-preview",renderPriority:9},Object(a.createElement)(y.a,{id:"yoast-snippet-editor-metabox",title:Object(p.__)("Google preview","wordpress-seo"),initialIsOpen:!0},Object(a.createElement)(h.a,{hasPaperStyle:!1}))),t.isContentAnalysisActive&&Object(a.createElement)(R.a,{key:"readability-analysis",renderPriority:10},Object(a.createElement)(g.ReadabilityAnalysis,{shouldUpsell:t.shouldUpsell})),t.isKeywordAnalysisActive&&Object(a.createElement)(R.a,{key:"seo-analysis",renderPriority:20},Object(a.createElement)(a.Fragment,null,Object(a.createElement)(g.SeoAnalysis,{shouldUpsell:t.shouldUpsell,shouldUpsellWordFormRecognition:t.isWordFormRecognitionActive}),t.shouldUpsell&&Object(a.createElement)(z.a,{location:"metabox"}))),t.isInclusiveLanguageAnalysisActive&&Object(a.createElement)(R.a,{key:"inclusive-language-analysis",renderPriority:21},Object(a.createElement)(g.InclusiveLanguageAnalysis,null)),t.isKeywordAnalysisActive&&Object(a.createElement)(R.a,{key:"additional-keywords-upsell",renderPriority:22},t.shouldUpsell&&Object(a.createElement)(K.a,null)),t.isKeywordAnalysisActive&&t.isWincherIntegrationActive&&Object(a.createElement)(R.a,{key:"wincher-seo-performance",renderPriority:25},Object(a.createElement)(y.a,{id:"yoast-wincher-seo-performance-metabox",title:Object(p.__)("Track SEO performance","wordpress-seo"),initialIsOpen:!1,prefixIcon:{icon:"chart-square-bar",color:b.colors.$color_grey_medium_dark},prefixIconCollapsed:{icon:"chart-square-bar",color:b.colors.$color_grey_medium_dark},onToggle:o},Object(a.createElement)(M.a,null))),t.isCornerstoneActive&&Object(a.createElement)(R.a,{key:"cornerstone",renderPriority:30},Object(a.createElement)(m.a,null)),t.displayAdvancedTab&&Object(a.createElement)(R.a,{key:"advanced",renderPriority:40},Object(a.createElement)(y.a,{id:"collapsible-advanced-settings",title:Object(p.__)("Advanced","wordpress-seo")},Object(a.createElement)(x.a,null))),t.displaySchemaSettings&&Object(a.createElement)(R.a,{key:"schema",renderPriority:50},Object(a.createElement)(N.a,null)),Object(a.createElement)(R.a,{key:"social",renderPriority:-1},Object(a.createElement)(F,{target:"wpseo-section-social"})),t.isInsightsEnabled&&Object(a.createElement)(R.a,{key:"insights",renderPriority:52},Object(a.createElement)(T,{location:"metabox"}))))}B.propTypes={settings:o.a.object.isRequired,wincherKeyphrases:o.a.array.isRequired,setWincherNoKeyphrase:o.a.func.isRequired};var U=Object(d.compose)([Object(u.withSelect)((e,t)=>{const{getPreferences:n,getWincherTrackableKeyphrases:a}=e("yoast-seo/editor");return{settings:n(),store:t.store,wincherKeyphrases:a()}}),Object(u.withDispatch)(e=>{const{setWincherNoKeyphrase:t}=e("yoast-seo/editor");return{setWincherNoKeyphrase:t}})])(B);function $(e){let{target:t,store:n,theme:r}=e;return Object(a.createElement)(L.a,{target:t},Object(a.createElement)(l,{store:n,theme:r}),Object(a.createElement)(U,{store:n,theme:r}))}$.propTypes={target:o.a.string.isRequired,store:o.a.object,theme:o.a.object}},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(54),r=n(39),o=n(2),s=n.n(o),c=n(112);const i=e=>{const{response:t,createSuccessNotice:n,createErrorNotice:a,postId:o}=e;if(null===t||200===t.status)return;const s={id:"wordproof-timestamp-notice"};if(t&&201===t.status)0===t.balance?(s.actions=[{label:Object(r.a)("translations.open_settings_button_text"),onClick:()=>{Object(c.a)("wordproof:open_settings")},variant:"link"}],a(Object(r.a)("translations.no_balance"),s)):(n(Object(r.a)("translations.timestamp_success"),{type:"snackbar",id:"wordproof-timestamp-notice"}),l(o,t.hash,a,s));else if(t.error)switch(t.error){case"not_authenticated":s.type="snackbar",s.actions=[{label:Object(r.a)("translations.open_authentication_button_text"),onClick:()=>{Object(c.a)("wordproof:open_authentication")},variant:"link"}],a(Object(r.a)("translations.not_authenticated"),s);break;case"timestamp_failed":default:a(Object(r.a)("translations.timestamp_failed"),s)}},l=async(e,t,n,o)=>{setTimeout(async()=>{(await Object(a.c)(e)).hash!==t&&(o.type="snackbar",n(Object(r.a)("translations.webhook_failed"),o))},1e4)};i.proptypes={timestampResponse:s.a.any.isRequired,createSuccessNotice:s.a.func.isRequired,createErrorNotice:s.a.func.isRequired,postId:s.a.number.isRequired};const{debounce:u}=lodash,{applyFilters:d}=wp.hooks;function p(e,t,n){e(u(async()=>{if(d("wordproof.timestamp",!0)){const e=Object(r.a)("current_post_id"),o=await Object(a.g)(e);i({response:o,createSuccessNotice:t,createErrorNotice:n,postId:e})}},500))}},,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=window.wp.plugins},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return w}));var a=n(5),r=n(16),o=n(4),s=n(14),c=n(125),i=n(72),l=n(65);const{updateReplacementVariable:u,updateData:d,hideReplacementVariables:p,setContentImage:b,updateSettings:m,setEditorDataContent:h,setEditorDataTitle:f,setEditorDataExcerpt:g,setEditorDataImageUrl:O,setEditorDataSlug:y}=r.actions,j=e.jQuery;class w{constructor(e,t){this._refresh=e,this._store=t,this._data={},this.getPostAttribute=this.getPostAttribute.bind(this),this.refreshYoastSEO=this.refreshYoastSEO.bind(this)}initialize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this._data=this.getInitialData(e),Object(i.fillReplacementVariables)(this._data,this._store),this._store.dispatch(p(t)),this.subscribeToGutenberg(),this.subscribeToYoastSEO()}getInitialData(e){const t=this.collectGutenbergData(this.getPostAttribute);return e=Object(i.mapCustomFields)(e,this._store),e=Object(i.mapCustomTaxonomies)(e,this._store),{...e,...t}}setRefresh(e){this._refresh=e}isShallowEqual(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e.hasOwnProperty(n)&&(!(n in t)||e[n]!==t[n]))return!1;return!0}getMediaById(e){return this._coreDataSelect||(this._coreDataSelect=Object(a.select)("core")),this._coreDataSelect.getMedia(e)}getPostAttribute(e){return this._coreEditorSelect||(this._coreEditorSelect=Object(a.select)("core/editor")),this._coreEditorSelect.getEditedPostAttribute(e)}getSlug(){if("auto-draft"===this.getPostAttribute("status"))return"";let e=this.getPostAttribute("generated_slug")||"";"auto-draft"===e&&(e="");const t=this.getPostAttribute("slug")||e;try{return decodeURI(t)}catch(e){return t}}getPostBaseUrl(){const e=Object(a.select)("core/editor").getPermalinkParts();if(null===e||null==e||!e.prefix)return window.wpseoScriptData.metabox.base_url;let t=e.prefix;if(Object(a.select)("core/editor").isEditedPostNew())try{const e=new URL(t);t=e.origin+e.pathname}catch(e){}return t.endsWith("/")||(t+="/"),t}collectGutenbergData(){const e=this.getPostAttribute("content"),t=this.calculateContentImage(e),n=this.getPostAttribute("excerpt")||"";return{content:e,title:this.getPostAttribute("title")||"",slug:this.getSlug(),excerpt:n||Object(i.excerptFromContent)(e,"ja"===Object(l.a)()?80:156),excerpt_only:n,snippetPreviewImageURL:this.getFeaturedImage()||t,contentImage:t,baseUrl:this.getPostBaseUrl()}}getFeaturedImage(){const e=this.getPostAttribute("featured_media");if(e){const t=this.getMediaById(e);if(t)return t.source_url}return null}calculateContentImage(e){const t=s.languageProcessing.imageInText(e);if(0===t.length)return"";const n=j.parseHTML(t.join(""));for(const e of n)if(e.src)return e.src;return""}handleEditorChange(e){this._data.content!==e.content&&this._store.dispatch(h(e.content)),this._data.title!==e.title&&(this._store.dispatch(f(e.title)),this._store.dispatch(u("title",e.title))),this._data.excerpt!==e.excerpt&&(this._store.dispatch(g(e.excerpt)),this._store.dispatch(u("excerpt",e.excerpt)),this._store.dispatch(u("excerpt_only",e.excerpt_only))),this._data.slug!==e.slug&&(this._store.dispatch(y(e.slug)),this._store.dispatch(d({slug:e.slug}))),this._data.snippetPreviewImageURL!==e.snippetPreviewImageURL&&(this._store.dispatch(O(e.snippetPreviewImageURL)),this._store.dispatch(d({snippetPreviewImageURL:e.snippetPreviewImageURL}))),this._data.contentImage!==e.contentImage&&this._store.dispatch(b(e.contentImage)),this._data.baseUrl!==e.baseUrl&&this._store.dispatch(m({baseUrl:e.baseUrl}))}reapplyMarkers(){const{getActiveMarker:e,getMarkerPauseStatus:t}=Object(a.select)("yoast-seo/editor"),n=e(),r=t();n&&!r&&Object(c.c)()}refreshYoastSEO(){const e=this.collectGutenbergData();!this.isShallowEqual(this._data,e)&&(this.handleEditorChange(e),this._data=e,this._refresh())}areNewAnalysisResultsAvailable(){const e=Object(a.select)("yoast-seo/editor"),t=e.getReadabilityResults(),n=e.getResultsForFocusKeyword();return(this._previousReadabilityResults!==t||this._previousSeoResults!==n)&&(this._previousReadabilityResults=t,this._previousSeoResults=n,!0)}onNewAnalysisResultsAvailable(){this.reapplyMarkers()}subscribeToGutenberg(){this.subscriber=Object(o.debounce)(this.refreshYoastSEO,500),Object(a.subscribe)(this.subscriber)}subscribeToYoastSEO(){this.yoastSubscriber=()=>{this.areNewAnalysisResultsAvailable()&&this.onNewAnalysisResultsAvailable()},Object(a.subscribe)(this.yoastSubscriber)}getData(){return this._data}}}).call(this,n(198))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var a=n(0),r=n(103),o=n(5),s=n(196),c=n(1),i=n(237),l=n(70),u=n(22),d=n(16),p=n(4),b=n(214),m=n(173);const{subscribe:h,select:f}=wp.data;function g(e){let t=!0;h(()=>{const n=f("core/editor").isSavingPost(),a=f("core/editor").isAutosavingPost(),r=f("core/editor").didPostSaveRequestSucceed();if(n&&r&&!a){if(t)return void(t=!1);e()}})}var O=n(17),y=n(12),j=n.n(y),w=n(2),E=n.n(w),v=n(11);const k=n.n(v).a.svg` width: ${e=>e.size}px; height: ${e=>e.size}px; &&& path { fill: ${e=>e.color}; } &&& circle.yoast-icon-readability-score { fill: ${e=>e.readabilityScoreColor}; display: ${e=>e.isContentAnalysisActive?"inline":"none"}; } &&& circle.yoast-icon-seo-score { fill: ${e=>e.seoScoreColor}; display: ${e=>e.isKeywordAnalysisActive?"inline":"none"}; } `,_=function(e){return Object(a.createElement)(k,j()({},e,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 646.66 456.27"}),Object(a.createElement)("path",{d:"M73,405.26a68.53,68.53,0,0,1-12.82-4c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92q-2.64-2-5.08-4.19a68.26,68.26,0,0,1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24q-1.84-2.73-3.44-5.64a68.26,68.26,0,0,1-8.29-32.55V142.13a68.29,68.29,0,0,1,8.29-32.55,58.6,58.6,0,0,1,3.44-5.64,57.53,57.53,0,0,1,4-5.27A69.64,69.64,0,0,1,48.56,85.42,56.06,56.06,0,0,1,54.2,82,67.78,67.78,0,0,1,73,75.09,69.79,69.79,0,0,1,86.75,73.7H256.41L263,55.39H86.75A86.84,86.84,0,0,0,0,142.13V338.22A86.83,86.83,0,0,0,86.75,425H98.07V406.65H86.75A68.31,68.31,0,0,1,73,405.26ZM368.55,60.85l-1.41-.53L360.73,77.5l1.41.53a68.58,68.58,0,0,1,8.66,4,58.65,58.65,0,0,1,5.65,3.43A69.49,69.49,0,0,1,391,98.67c1.4,1.68,2.72,3.46,3.95,5.27s2.39,3.72,3.44,5.64a68.32,68.32,0,0,1,8.29,32.55V406.65H233.55l-.44.76c-3.07,5.37-6.26,10.48-9.49,15.19L222,425H425V142.13A87.19,87.19,0,0,0,368.55,60.85Z",fill:"#000001"}),Object(a.createElement)("path",{d:"M303.66,0l-96.8,268.87-47.58-149H101.1l72.72,186.78a73.61,73.61,0,0,1,0,53.73c-7.07,18.07-19.63,39.63-54.36,46l-1.56.29v49.57l2-.08c29-1.14,51.57-10.72,70.89-30.14,19.69-19.79,36.55-50.52,53-96.68L366.68,0Z",fill:"#000001"}),Object(a.createElement)("circle",{className:"yoast-icon-readability-score",cx:"561.26",cy:"142.43",r:"85.04",fill:"#000001",stroke:"#181716",strokeMiterlimit:"10",strokeWidth:"0.72"}),Object(a.createElement)("circle",{className:"yoast-icon-seo-score",cx:"561.26",cy:"341.96",r:"85.04",fill:"#000001",stroke:"#181716",strokeMiterlimit:"10",strokeWidth:"0.72"}))};_.propTypes={readabilityScoreColor:E.a.string,isContentAnalysisActive:E.a.bool,seoScoreColor:E.a.string,isKeywordAnalysisActive:E.a.bool,size:E.a.number,color:E.a.string},_.defaultProps={readabilityScoreColor:"#000000",isContentAnalysisActive:!1,seoScoreColor:"#000000",isKeywordAnalysisActive:!1,size:20,color:"#000001"};var T=_,R=n(209),x=n(18),S=n(139),C=n(77);function A(e){let{theme:t}=e;return Object(a.createElement)(C.a,{theme:t,location:"sidebar"},Object(a.createElement)(x.Slot,{name:"YoastSidebar"},e=>Object(S.a)(e)))}var P=n(20),I=n(8),L=n(201);function F(e){let{checklist:t,onClick:n}=e;const r=t.every(e=>"good"===e.score);return Object(a.createElement)(a.Fragment,null,t.map(e=>Object(a.createElement)(L.a,j()({key:e.label},e))),Object(a.createElement)("br",null),!r&&Object(a.createElement)(I.Button,{onClick:n},Object(c.__)("Improve your post with Yoast SEO","wordpress-seo")))}F.propTypes={checklist:E.a.array.isRequired,onClick:E.a.func.isRequired};var N=n(44);function q(e,t){const{isKeywordAnalysisActive:n}=t.getPreferences();if(n){const n=Object(N.a)(t.getReadabilityResults().overallScore);e.push({label:Object(c.__)("Readability analysis:","wordpress-seo"),score:n.className,scoreValue:n.screenReaderReadabilityText})}}function M(e,t){const{isContentAnalysisActive:n}=t.getPreferences();if(n){const n=Object(N.a)(t.getResultsForFocusKeyword().overallScore),a=Object(O.a)().isPremium;e.push({label:a?Object(c.__)("Premium SEO analysis:","wordpress-seo"):Object(c.__)("SEO analysis:","wordpress-seo"),score:n.className,scoreValue:n.screenReaderReadabilityText})}}function D(e,t){const{isInclusiveLanguageAnalysisActive:n}=t.getPreferences();if(n){const n=Object(N.a)(t.getInclusiveLanguageResults().overallScore);e.push({label:Object(c.__)("Inclusive language:","wordpress-seo"),score:n.className,scoreValue:n.screenReaderInclusiveLanguageText})}}var W,z,K,B=Object(P.compose)([Object(o.withSelect)((function(e){const t=e("yoast-seo/editor"),n=[];return q(n,t),M(n,t),D(n,t),n.push(...Object.values(t.getChecklistItems())),{checklist:n}})),Object(o.withDispatch)((function(e){const{openGeneralSidebar:t}=e("core/edit-post");return{onClick:()=>{t("yoast-seo/seo-sidebar")}}}))])(F),U=n(19),$=Object(P.compose)([Object(o.withSelect)(e=>{const t=e("yoast-seo/editor"),n=Object(N.a)(t.getResultsForFocusKeyword().overallScore),a=Object(N.a)(t.getReadabilityResults().overallScore),{isKeywordAnalysisActive:r,isContentAnalysisActive:o}=t.getPreferences();let s,c;switch(a.className){case"good":s=U.colors.$color_good;break;case"ok":s=U.colors.$color_ok;break;case"bad":default:s=U.colors.$color_bad}switch(n.className){case"good":c=U.colors.$color_good;break;case"ok":c=U.colors.$color_ok;break;case"bad":default:c=U.colors.$color_bad}return{readabilityScoreColor:s,seoScoreColor:c,isKeywordAnalysisActive:r,isContentAnalysisActive:o}})])(T),H=n(3);function Y(){return(Y=Object.assign||function(e){for(var t=1;t({permalink:e("core/editor").getPermalink()}))])(J);function X(e){let t,{checklist:n,onClick:r}=e;return t=n.every(e=>"good"===e.score)?Object(c.__)("We've analyzed your post. Everything looks good. Well done!","wordpress-seo"):Object(c.__)("We've analyzed your post. There is still room for improvement!","wordpress-seo"),Object(a.createElement)(a.Fragment,null,Object(a.createElement)("p",null,t),Object(a.createElement)(F,{checklist:n,onClick:r}))}X.propTypes={checklist:E.a.array.isRequired,onClick:E.a.func.isRequired};var ee=Object(P.compose)([Object(o.withSelect)((function(e){const t=e("yoast-seo/editor"),n=[];return function(e,t){t.getFocusKeyphrase()||e.push({label:Object(c.__)("No focus keyword was entered","wordpress-seo"),score:"bad"})}(n,t),q(n,t),M(n,t),D(n,t),n.push(...Object.values(t.getChecklistItems())),{checklist:n}})),Object(o.withDispatch)((function(e){const{closePublishSidebar:t,openGeneralSidebar:n}=e("core/edit-post");return{onClick:()=>{t(),n("yoast-seo/seo-sidebar")}}}))])(X),te=n(140),ne=n(178),ae=n(62),re=n(202),oe=n(32),se=n(83),ce=n(177),ie=()=>Object(a.createElement)(se.a,{title:Object(c.__)("Google preview","wordpress-seo"),id:"yoast-google-preview-modal",shouldCloseOnClickOutside:!1},Object(a.createElement)(ce.a,{showCloseButton:!1,hasPaperStyle:!1})),le=n(149),ue=n(180),de=()=>Object(a.createElement)(se.a,{title:Object(c.__)("Twitter preview","wordpress-seo"),id:"yoast-twitter-preview-modal",shouldCloseOnClickOutside:!1},Object(a.createElement)(ue.a,null)),pe=n(179),be=()=>Object(a.createElement)(se.a,{title:Object(c.__)("Facebook preview","wordpress-seo"),id:"yoast-facebook-preview-modal",shouldCloseOnClickOutside:!1},Object(a.createElement)(pe.a,null)),me=n(148),he=n(66),fe=n(147),ge=n(186),Oe=n(171),ye=n(144);function je(e){let{settings:t}=e;const n=Object(p.get)(window,"wpseoScriptData.webinarIntroBlockEditorUrl","https://yoa.st/webinar-intro-block-editor");return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(x.Fill,{name:"YoastSidebar"},Object(a.createElement)(oe.a,{key:"warning",renderPriority:1},Object(a.createElement)(ne.a,null),Object(a.createElement)("div",{style:{margin:"0 16px"}},Object(a.createElement)(Oe.a,{hasIcon:!1,image:null,url:n}))),t.isKeywordAnalysisActive&&Object(a.createElement)(oe.a,{key:"keyword-input",renderPriority:8},Object(a.createElement)(ae.KeywordInput,{isSEMrushIntegrationActive:t.isSEMrushIntegrationActive})),Object(a.createElement)(oe.a,{key:"google-preview",renderPriority:25},Object(a.createElement)(ie,null)),t.displayFacebook&&Object(a.createElement)(oe.a,{key:"facebook-preview",renderPriority:26},Object(a.createElement)(be,null)),t.displayTwitter&&Object(a.createElement)(oe.a,{key:"twitter-preview",renderPriority:27},Object(a.createElement)(de,null)),t.displaySchemaSettings&&Object(a.createElement)(oe.a,{key:"schema",renderPriority:28},Object(a.createElement)(he.a,{title:Object(c.__)("Schema","wordpress-seo")},Object(a.createElement)(me.a,null))),t.displayAdvancedTab&&Object(a.createElement)(oe.a,{key:"advanced",renderPriority:29},Object(a.createElement)(he.a,{title:Object(c.__)("Advanced","wordpress-seo")},Object(a.createElement)(fe.a,null))),t.isKeywordAnalysisActive&&Object(a.createElement)(oe.a,{key:"seo",renderPriority:10},Object(a.createElement)(a.Fragment,null,Object(a.createElement)(ae.SeoAnalysis,{shouldUpsell:t.shouldUpsell,shouldUpsellWordFormRecognition:t.isWordFormRecognitionActive}),t.shouldUpsell&&Object(a.createElement)(le.a,{location:"sidebar"}))),t.isContentAnalysisActive&&Object(a.createElement)(oe.a,{key:"readability",renderPriority:20},Object(a.createElement)(ae.ReadabilityAnalysis,{shouldUpsell:t.shouldUpsell})),t.isInclusiveLanguageAnalysisActive&&Object(a.createElement)(oe.a,{key:"inclusive-language-analysis",renderPriority:21},Object(a.createElement)(ae.InclusiveLanguageAnalysis,null)),t.isKeywordAnalysisActive&&Object(a.createElement)(oe.a,{key:"additional-keywords-upsell",renderPriority:22},t.shouldUpsell&&Object(a.createElement)(ye.a,null)),t.isCornerstoneActive&&Object(a.createElement)(oe.a,{key:"cornerstone",renderPriority:30},Object(a.createElement)(te.a,null)),t.isKeywordAnalysisActive&&t.isWincherIntegrationActive&&Object(a.createElement)(oe.a,{renderPriority:23},Object(a.createElement)(ge.a,{location:"sidebar"})),t.isInsightsEnabled&&Object(a.createElement)(oe.a,{renderPriority:32},Object(a.createElement)(re.a,{location:"sidebar"}))))}je.propTypes={settings:E.a.object.isRequired};var we=Object(o.withSelect)((e,t)=>{const{getPreferences:n}=e("yoast-seo/editor");return{settings:n(),store:t.store}})(je),Ee=n(116);function ve(e){const{hasTrackedKeyphrases:t,trackAll:n}=e;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(I.FieldGroup,{label:Object(c.__)("SEO performance","wordpress-seo"),linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"],linkText:Object(c.__)("Learn more about the SEO performance feature.","wordpress-seo"),wrapperClassName:"yoast-field-group yoast-wincher-post-publish"}),Object(a.createElement)(Ee.a,null),t&&Object(a.createElement)("p",null,Object(c.__)("Tracking has already been enabled for one or more keyphrases of this page. Clicking the button below will enable tracking for all of its keyphrases.","wordpress-seo")),Object(a.createElement)("div",{className:"yoast"},Object(a.createElement)(I.NewButton,{variant:"secondary",small:!0,onClick:n},Object(c.__)("Track all keyphrases on this page","wordpress-seo"))),Object(a.createElement)(ge.a,{location:"postpublish"}))}ve.propTypes={trackAll:E.a.func,hasTrackedKeyphrases:E.a.bool},ve.defaultProps={trackAll:()=>{},hasTrackedKeyphrases:!1};var ke=Object(P.compose)([Object(o.withSelect)(e=>{const{getWincherTrackedKeyphrases:t,hasWincherTrackedKeyphrases:n}=e("yoast-seo/editor");return{trackedKeyphrases:t(),hasTrackedKeyphrases:n()}}),Object(o.withDispatch)(e=>{const{setWincherOpenModal:t,setWincherTrackAllKeyphrases:n}=e("yoast-seo/editor");return{trackAll:()=>{n(!0),t("postpublish")}}})])(ve),_e=n(125),Te=n(41),Re=n(15),xe=n(203),Se=n(67),Ce=n(75);function Ae(e){let{isActive:t,activeAttributes:n,addingLink:r,value:o,onChange:s,speak:i,stopAddingLink:u}=e;const d=Object(a.useMemo)(p.uniqueId,[r]),[b,m]=Object(a.useState)(),h=Object(a.useMemo)(()=>{const e=window.getSelection();if(!e.rangeCount)return;const n=e.getRangeAt(0);if(r&&!t)return n;let a=n.startContainer;for(a=a.nextElementSibling||a;a.nodeType!==window.Node.ELEMENT_NODE;)a=a.parentNode;return a.closest("a")},[r,o.start,o.end]),f={url:n.url,type:n.type,id:n.id,opensInNewTab:"_blank"===n.target,noFollow:n.rel&&n.rel.split(" ").includes("nofollow"),sponsored:n.rel&&n.rel.split(" ").includes("sponsored"),...b},g=e=>f.url===e.url&&f.opensInNewTab!==e.opensInNewTab||f.noFollow!==e.noFollow||f.sponsored!==e.sponsored,O=e=>{if("number"==typeof e||"string"==typeof e)return String(e)},y=Object(a.useCallback)(e=>{e={...b,...e};const n=g(f);if((e=>g(e)&&!0===e.sponsored&&!0!==f.Sponsored)(e)&&(e.noFollow=!0),(e=>g(e)&&!1===e.noFollow&&!1!==f.noFollow)(e)&&(e.sponsored=!1),(e=>g(e)&&!e.url)(e))return void m(e);const a=Object(Re.prependHTTP)(e.url),r=function(e){let{url:t,opensInNewWindow:n,noFollow:a,sponsored:r}=e;const o={type:"core/link",attributes:{url:t}};let s=[];return n&&(o.attributes.target="_blank",s.push("noreferrer noopener")),r&&(s.push("sponsored"),s.push("nofollow")),a&&s.push("nofollow"),s.length>0&&(s=Object(p.uniq)(s),o.attributes.rel=s.join(" ")),o}({url:a,type:e.type,id:O(e.id),opensInNewWindow:e.opensInNewTab,noFollow:e.noFollow,sponsored:e.sponsored});if(Object(l.isCollapsed)(o)&&!t){const t=((e,t)=>e.title?e.title:t)(e,a),n=Object(l.applyFormat)(Object(l.create)({text:t}),r,0,t.length);s(Object(l.insert)(o,n))}else{const e=Object(l.applyFormat)(o,r);e.start=e.end,e.activeFormats=[],s(e)}n||u(),(e=>{!function(e){if(!e)return!1;const t=e.trim();if(!t)return!1;if(/^\S+:/.test(t)){const e=Object(Re.getProtocol)(t);if(!Object(Re.isValidProtocol)(e))return!1;if(Object(p.startsWith)(e,"http")&&!/^https?:\/\/[^\/\s]/i.test(t))return!1;const n=Object(Re.getAuthority)(t);if(!Object(Re.isValidAuthority)(n))return!1;const a=Object(Re.getPath)(t);if(a&&!Object(Re.isValidPath)(a))return!1;const r=Object(Re.getQueryString)(t);if(r&&!Object(Re.isValidQueryString)(r))return!1;const o=Object(Re.getFragment)(t);if(o&&!Object(Re.isValidFragment)(o))return!1}return!(Object(p.startsWith)(t,"#")&&!Object(Re.isValidFragment)(t))}(e)?i(Object(c.__)("Warning: the link has been inserted but may have errors. Please test it.","wordpress-seo"),"assertive"):i(t?Object(c.__)("Link edited.","wordpress-seo"):Object(c.__)("Link inserted.","wordpress-seo"),"assertive")})(a)},[]),j=Object(a.createElement)(Se.a,{href:window.wpseoAdminL10n["shortlinks.nofollow_sponsored"],className:"dashicons"},Object(a.createElement)("span",{className:"screen-reader-text"},Object(c.__)("Learn more about marking a link as nofollow or sponsored.","wordpress-seo"))),w=Object(Ce.a)(Object(c.sprintf)(Object(c.__)("Search engines should ignore this link (mark as %1$snofollow%2$s)%3$s","wordpress-seo"),"","",""),{code:Object(a.createElement)("code",null),helplink:j}),E=Object(Ce.a)(Object(c.sprintf)(Object(c.__)("This is a sponsored link or advert (mark as %1$ssponsored%2$s)%3$s","wordpress-seo"),"","",""),{code:Object(a.createElement)("code",null),helplink:j}),v=[{id:"opensInNewTab",title:Object(c.__)("Open in new tab","wordpress-seo")},{id:"noFollow",title:w},{id:"sponsored",title:E}],{__experimentalLinkControl:k}=window.wp.blockEditor;return Object(a.createElement)(x.Popover,{key:d,anchor:h,focusOnMount:!!r&&"firstElement",onClose:u,position:"bottom center",placement:"bottom",shift:!0},Object(a.createElement)(k,{value:f,onChange:y,forceIsEditingLink:r,settings:v}))}Ae.propTypes={isActive:E.a.bool,activeAttributes:E.a.object,addingLink:E.a.bool,value:E.a.object,onChange:E.a.func,speak:E.a.func.isRequired,stopAddingLink:E.a.func.isRequired};var Pe=Object(x.withSpokenMessages)(Ae);const Ie=Object(c.__)("Link","wordpress-seo"),Le={name:"core/link",title:Ie,tagName:"a",className:null,attributes:{url:"href",target:"target",rel:"rel"},replaces:"core/link",__unstablePasteRule(e,t){let{html:n,plainText:a}=t;if(Object(l.isCollapsed)(e))return e;const r=(n||a).replace(/<[^>]+>/g,"").trim();return Object(Re.isURL)(r)?(window.console.log("Created link:\n\n",r),Object(l.applyFormat)(e,{type:"core/link",attributes:{url:Object(xe.decodeEntities)(r)}})):e},edit:Object(x.withSpokenMessages)(class extends a.Component{constructor(){super(...arguments),this.addLink=this.addLink.bind(this),this.stopAddingLink=this.stopAddingLink.bind(this),this.onRemoveFormat=this.onRemoveFormat.bind(this),this.state={addingLink:!1}}addLink(){const{value:e,onChange:t}=this.props,n=Object(l.getTextContent)(Object(l.slice)(e));n&&Object(Re.isURL)(n)?t(Object(l.applyFormat)(e,{type:"core/link",attributes:{url:n}})):n&&Object(Re.isEmail)(n)?t(Object(l.applyFormat)(e,{type:"core/link",attributes:{url:"mailto:"+n}})):this.setState({addingLink:!0})}stopAddingLink(){this.setState({addingLink:!1}),this.props.onFocus()}onRemoveFormat(){const{value:e,onChange:t,speak:n}=this.props;t(Object(l.removeFormat)(e,"core/link")),n(Object(c.__)("Link removed.","wordpress-seo"),"assertive")}render(){const{isActive:e,activeAttributes:t,value:n,onChange:r}=this.props,{RichTextToolbarButton:o,RichTextShortcut:s}=window.wp.blockEditor;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(s,{type:"primary",character:"k",onUse:this.addLink}),Object(a.createElement)(s,{type:"primaryShift",character:"k",onUse:this.onRemoveFormat}),e&&Object(a.createElement)(o,{name:"link",icon:"editor-unlink",title:Object(c.__)("Unlink","wordpress-seo"),onClick:this.onRemoveFormat,isActive:e,shortcutType:"primaryShift",shortcutCharacter:"k"}),!e&&Object(a.createElement)(o,{name:"link",icon:"admin-links",title:Ie,onClick:this.addLink,isActive:e,shortcutType:"primary",shortcutCharacter:"k"}),(this.state.addingLink||e)&&Object(a.createElement)(Pe,{addingLink:this.state.addingLink,stopAddingLink:this.stopAddingLink,isActive:e,activeAttributes:t,value:n,onChange:r}))}})};var Fe=n(238);window.yoast=window.yoast||{},window.yoast.initEditorIntegration=function(e){(function(e){const t=Object(O.a)(),n=t.isPremium?"Yoast SEO Premium":"Yoast SEO",l=Object(a.createElement)(T,null);Object(r.updateCategory)("yoast-structured-data-blocks",{icon:l}),Object(r.updateCategory)("yoast-internal-linking-blocks",{icon:l});const d={isRtl:t.isRtl},p=e.getState().preferences,b=p.isKeywordAnalysisActive||p.isContentAnalysisActive,m=p.isKeywordAnalysisActive&&p.isWincherIntegrationActive;!Object(o.select)("core/preferences").get("core/edit-post","openPanels").includes("yoast-seo/document-panel")&&Object(o.dispatch)("core/edit-post").toggleEditorPanelOpened("yoast-seo/document-panel");const h={locationContext:"block-sidebar"},f={locationContext:"block-metabox"};Object(i.registerPlugin)("yoast-seo",{render:()=>Object(a.createElement)(a.Fragment,null,Object(a.createElement)(s.PluginSidebarMoreMenuItem,{target:"seo-sidebar",icon:Object(a.createElement)($,null)},n),Object(a.createElement)(s.PluginSidebar,{name:"seo-sidebar",title:n},Object(a.createElement)(u.Root,{context:h},Object(a.createElement)(A,{store:e,theme:d}))),Object(a.createElement)(a.Fragment,null,Object(a.createElement)(we,{store:e,theme:d}),Object(a.createElement)(u.Root,{context:f},Object(a.createElement)(R.a,{target:"wpseo-metabox-root",store:e,theme:d}))),b&&Object(a.createElement)(s.PluginPrePublishPanel,{className:"yoast-seo-sidebar-panel",title:Object(c.__)("Yoast SEO","wordpress-seo"),initialOpen:!0,icon:Object(a.createElement)(a.Fragment,null)},Object(a.createElement)(ee,null)),Object(a.createElement)(s.PluginPostPublishPanel,{className:"yoast-seo-sidebar-panel",title:Object(c.__)("Yoast SEO","wordpress-seo"),initialOpen:!0,icon:Object(a.createElement)(a.Fragment,null)},Object(a.createElement)(Q,null),m&&Object(a.createElement)(ke,null)),b&&Object(a.createElement)(s.PluginDocumentSettingPanel,{name:"document-panel",className:"yoast-seo-sidebar-panel",title:Object(c.__)("Yoast SEO","wordpress-seo"),icon:Object(a.createElement)(a.Fragment,null)},Object(a.createElement)(B,null))),icon:Object(a.createElement)($,null)})})(e),function(){if("function"==typeof Object(p.get)(window,"wp.blockEditor.__experimentalLinkControl")){const e=Object(o.select)("core/rich-text").getFormatType("core/unknown");void 0!==e&&Object(o.dispatch)("core/rich-text").removeFormatTypes("core/unknown"),[Le].forEach(e=>{let{name:t,replaces:n,...a}=e;n&&Object(o.dispatch)("core/rich-text").removeFormatTypes(n),t&&Object(l.registerFormatType)(t,a)}),void 0!==e&&Object(l.registerFormatType)("core/unknown",e)}else console.warn(Object(c.__)("Marking links with nofollow/sponsored has been disabled for WordPress installs < 5.4.","wordpress-seo")+" "+Object(c.sprintf)(Object(c.__)("Please upgrade your WordPress version or install the Gutenberg plugin to get this %1$s feature.","wordpress-seo"),"Yoast SEO"))}(),function(e){Object(_e.b)()&&e.dispatch(d.actions.setMarkerStatus("enabled"))}(e),Object(Te.b)()&&function(){const{createSuccessNotice:e,createErrorNotice:t}=Object(o.dispatch)("core/notices");Object(m.a)(),Object(b.a)(g,e,t)}()},window.yoast.EditorData=Fe.a}]);