!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=296)}([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=i(n(3)),o=i(n(127)),s=i(n(130));function i(e){return e&&e.__esModule?e:{default:e}}var c=void 0;t.default=function(e){var t=e.mixedString,n=e.components,i=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":a(n))){if(i)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,i,l,u,d,p,m,b,h=[],g={};for(p=0;p "+c);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 i})),n.d(t,"a",(function(){return c})),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 i(){return await Object(r.a)({path:"yoast/v1/wincher/account/upgrade-campaign",method:"GET"})}async function c(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),i=n.n(s),c=n(18);const l="yoast yoast-gutenberg-modal",u=e=>{const{title:t,className:n,showYoastIcon:a,additionalClassName:s,...i}=e,l=a?Object(o.createElement)("span",{className:"yoast-icon"}):null;return Object(o.createElement)(c.Modal,r()({title:t,className:`${n} ${s}`,icon:l},i),e.children)};u.propTypes={title:i.a.string,className:i.a.string,showYoastIcon:i.a.bool,children:i.a.oneOfType([i.a.node,i.a.arrayOf(i.a.node)]),additionalClassName:i.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 c})),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)},i=e=>{const t=new CustomEvent(e);window.dispatchEvent(t)},c=()=>{i("wordproof:open_authentication")},l=()=>{i("wordproof:open_settings")}},function(e,t){e.exports=window.yoast.socialMetadataForms},,,function(e,t,n){"use strict";n.r(t),n.d(t,"tmceId",(function(){return c})),n.d(t,"termsTmceId",(function(){return l})),n.d(t,"setStore",(function(){return u})),n.d(t,"isTinyMCELoaded",(function(){return d})),n.d(t,"isTinyMCEAvailable",(function(){return p})),n.d(t,"getContentTinyMce",(function(){return m})),n.d(t,"addEventHandler",(function(){return b})),n.d(t,"disableMarkerButtons",(function(){return h})),n.d(t,"enableMarkerButtons",(function(){return g})),n.d(t,"pauseMarkers",(function(){return f})),n.d(t,"resumeMarkers",(function(){return y})),n.d(t,"isTextViewActive",(function(){return O})),n.d(t,"wpTextViewOnInitCheck",(function(){return w})),n.d(t,"tinyMceEventBinder",(function(){return j}));var a=n(4),r=n(95),o=n(146),s=n(16);let i;var c="content",l="description";function u(e){i=e}function d(){return"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.editors&&0!==tinyMCE.editors.length}function p(e){if(!d())return!1;var t=tinyMCE.get(e);return null!==t&&!t.isHidden()}function m(e){var t,n,a;return n=!1===p(e)||0==(t=e,null!==document.getElementById(t+"_ifr"))?function(e){return document.getElementById(e)&&document.getElementById(e).value||""}(e):tinyMCE.get(e).getContent(),a=new RegExp("&","g"),n.replace(a,"&")}function b(e,t,n){"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",(function(r){var o=r.editor;o.id===e&&Object(a.forEach)(t,(function(e){o.on(e,n)}))}))}function h(){Object(a.isUndefined)(i)||i.dispatch(s.actions.setMarkerStatus("disabled"))}function g(){Object(a.isUndefined)(i)||i.dispatch(s.actions.setMarkerStatus("enabled"))}function f(){Object(a.isUndefined)(i)||i.dispatch(s.actions.setMarkerPauseStatus(!0))}function y(){Object(a.isUndefined)(i)||i.dispatch(s.actions.setMarkerPauseStatus(!1))}function O(){const e=document.getElementById("wp-content-wrap");return!!e&&e.classList.contains("html-active")}function w(){O()&&(h(),d()&&tinyMCE.on("AddEditor",(function(){g()})))}function j(e,t){b(t,["input","change","cut","paste"],e),b(t,["hide"],h);const n=["show"];(new o.a).isPageBuilderActive()||n.push("init"),b(t,n,g),b("content",["focus"],(function(e){const t=e.target;Object(r.a)(t)&&(Object(r.b)(t),YoastSEO.app.disableMarkers()),f()})),b("content",["blur"],(function(){y()}))}},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c}));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 i(e){try{return await r()(e)}catch(e){return e.error&&e.status?e:e instanceof window.Response&&await e.json()}}const c=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 i})),n.d(t,"i",(function(){return c})),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 m})),n.d(t,"o",(function(){return b})),n.d(t,"p",(function(){return h})),n.d(t,"k",(function(){return g})),n.d(t,"q",(function(){return f})),n.d(t,"r",(function(){return y})),n.d(t,"n",(function(){return O})),n.d(t,"m",(function(){return w})),n.d(t,"l",(function(){return j}));var a=n(9);const r="SNIPPET_EDITOR_SWITCH_MODE",o="SNIPPET_EDITOR_UPDATE_DATA",s="SNIPPET_EDITOR_FIND_CUSTOM_FIELDS",i="SNIPPET_EDITOR_CUSTOM_FIELD_RESULTS",c="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",m="LOAD_SNIPPET_EDITOR_DATA";function b(e){return{type:r,mode:e}}function h(e){return{type:o,data:e}}function*g(e,t){const n=yield{type:s,query:e,postId:t};return{type:i,results:n}}function f(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:c,name:e,value:o,label:n,hidden:r}}function y(e){return{type:p,wordsToHighlight:e}}function O(e){return{type:u,name:e}}function w(){return{type:d,time:(new Date).getMilliseconds()}}function j(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),i=n(11);const c=n.n(i)()(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)(c,r()({hasPadding:!0,hasSeparator:!0},e))},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c})),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 i(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 c(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"],i=o.FACEBOOK_IMAGE_SIZES[a+"Height"],c=Object.values(e.sizes).find(e=>e.width>=s&&e.height>=i);return{url:c?c.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"],i=Object.values(e.sizes).find(e=>e.width>=n&&e.height>=s);return{url:i?i.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 i})),n.d(t,"b",(function(){return c})),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"}),i=async()=>await Object(a.a)({path:"wordproof/v1/settings",method:"GET"}),c=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){e.exports=window.yoast.externals.components},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(4),r=n(17);function o(){const e=Object(r.a)();return Object(a.get)(e,"contentLocale","en_US")}},function(e,t,n){"use strict";var a=n(0),r=n(8),o=n(2),s=n.n(o);const i=e=>{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=i,i.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},i.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 i=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=i},,,,,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 m})),n.d(t,"replaceSpaces",(function(){return b})),n.d(t,"prepareCustomFieldForDispatch",(function(){return h})),n.d(t,"prepareCustomTaxonomyForDispatch",(function(){return g})),n.d(t,"mapCustomTaxonomies",(function(){return f})),n.d(t,"mapCustomFields",(function(){return y})),n.d(t,"excerptFromContent",(function(){return O})),n.d(t,"applyReplaceUsingPlugin",(function(){return w}));var a=n(4),r=n(133),o=n(47),s=n(27),i=n(9);const{stripHTMLTags:c}=i.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 m(e,t){return e.push({name:t.name,label:t.label||p(t.name),value:t.value}),e}function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e.replace(/\s/g,t)}function h(e){return{name:"cf_"+b(e),label:Object(s.b)(e+" (custom field)")}}function g(e){const t=b(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 f(e,t){return e.custom_taxonomies?(Object(a.forEach)(e.custom_taxonomies,(e,n)=>{const{name:a,label:r,descriptionName:s,descriptionLabel:i}=g(n);t.dispatch(Object(o.q)(a,e.name,r)),t.dispatch(Object(o.q)(s,e.description,i))}),Object(a.omit)({...e},"custom_taxonomies")):e}function y(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 O(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 w=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:c(t(e.title)),description:c(t(e.description)),filteredSEOTitle:e.filteredSEOTitle?c(t(e.filteredSEOTitle)):""}}(e);const n=t._applyModifications.bind(t);return{url:e.url,title:c(n("data_page_title",e.title)),description:c(n("data_meta_desc",e.description)),filteredSEOTitle:e.filteredSEOTitle?c(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,i;const c=/<(\/)?(\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:c}=e,l=i[i.length-1],u=r.substr(l.prevOffset,n-l.prevOffset);u&&l.children.push(u),l.children.push(Object(a.cloneElement)(t,null,...c)),l.prevOffset=s||n+o}function p(e){const t=function(){const e=c.exec(r);if(null===e)return["no-more-tokens"];const t=e.index,[n,a,o,s]=e,i=n.length;return s?["self-closed",o,t,i]:a?["closer",o,t,i]:["opener",o,t,i]}(),[n,p,m,b]=t,h=i.length,g=m>o?o:null;if(!e[p])return u(),!1;switch(n){case"no-more-tokens":if(0!==h){const{leadingTextStart:e,tokenStart:t}=i.pop();s.push(r.substr(e,t))}return u(),!1;case"self-closed":return 0===h?(null!==g&&s.push(r.substr(g,m-g)),s.push(e[p]),o=m+b,!0):(d(l(e[p],m,b)),o=m+b,!0);case"opener":return i.push(l(e[p],m,b,m+b,g)),o=m+b,!0;case"closer":if(1===h)return function(e){const{element:t,leadingTextStart:n,prevOffset:o,tokenStart:c,children:l}=i.pop(),u=e?r.substr(o,e-o):r.substr(o);u&&l.push(u),null!==n&&s.push(r.substr(n,c-n)),s.push(Object(a.cloneElement)(t,null,...l))}(m),o=m+b,!0;const t=i.pop(),n=r.substr(t.prevOffset,m-t.prevOffset);t.children.push(n),t.prevOffset=m+b;const c=l(t.element,t.tokenStart,t.tokenLength,m+b);return c.children=t.children,d(c),o=m+b,!0;default:return u(),!1}}t.a=(e,t)=>{if(r=e,o=0,s=[],i=[],c.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 i})),n.d(t,"b",(function(){return c}));var a=n(11),r=n.n(a),o=n(8),s=n(9);const i=r.a.div` min-width: 600px; @media screen and ( max-width: 680px ) { min-width: 0; width: 86vw; } `,c=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),i=n(22);const c=e=>{let{theme:t,location:n,children:r}=e;return Object(a.createElement)(i.LocationProvider,{value:n},Object(a.createElement)(s.ThemeProvider,{theme:t},r))};c.propTypes={theme:o.a.object.isRequired,location:o.a.oneOf(["sidebar","metabox","modal"]).isRequired,children:o.a.element.isRequired},t.a=c},function(e,t,n){"use strict";var a=n(0),r=n(8),o=n(2),s=n.n(o);const i=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=i,i.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},i.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 i=e=>{let{data:t,mapChartDataToTableData:n,dataTableCaption:r,dataTableHeaderLabels:o,isDataTableVisuallyHidden:i}=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:i?"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)))))))};i.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},i.defaultProps={mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};var c=i;const l=e=>{let{data:t,width:n,height:r,fillColor:o,strokeColor:s,strokeWidth:i,className:l,mapChartDataToTableData:u,dataTableCaption:d,dataTableHeaderLabels:p,isDataTableVisuallyHidden:m}=e;const b=Math.max(1,Math.max(...t.map(e=>e.x))),h=Math.max(1,Math.max(...t.map(e=>e.y))),g=r-i,f=t.map(e=>`${e.x/b*n},${g-e.y/h*g+i}`).join(" "),y=`0,${g+i} `+f+` ${n},${g+i}`;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:y}),Object(a.createElement)("polyline",{fill:"none",stroke:s,strokeWidth:i,strokeLinejoin:"round",strokeLinecap:"round",points:f})),u&&Object(a.createElement)(c,{data:t,mapChartDataToTableData:u,dataTableCaption:d,dataTableHeaderLabels:p,isDataTableVisuallyHidden:m}))};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(0),r=n(28),o=n.n(r),s=n(2),i=n.n(s),c=n(11),l=n.n(c),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; `,m=Object(u.makeOutboundLink)();class b 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)(m,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))}}b.propTypes={benefits:i.a.array,infoParagraphs:i.a.array,upsellButton:i.a.object,upsellButtonText:i.a.string.isRequired,upsellButtonLabel:i.a.string,upsellButtonHasCaret:i.a.bool},b.defaultProps={infoParagraphs:[],benefits:[],upsellButton:{href:"",className:"button button-primary"},upsellButtonLabel:"",upsellButtonHasCaret:!0},t.a=b},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,"c",(function(){return i})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var a=n(14),r=n(4);function o(e,t){return e._properties.position.startOffset>t.length||e._properties.position.endOffset>t.length}function s(e,t,n){const s=e.dom;let i=e.getContent();if(i=a.markers.removeMarks(i),Object(r.isEmpty)(n))return void e.setContent(i);i=n[0].hasPosition()?function(e,t){if(!t)return"";for(let n=(e=Object(r.orderBy)(e,e=>e._properties.position.startOffset,["asc"])).length-1;n>=0;n--){const a=e[n];o(a,t)||(t=a.applyWithPosition(t))}return t}(n,i):function(e,t,n,o){const{fieldsToMark:s,selectedHTML:i}=a.languageProcessing.getFieldsToMark(n,o);return Object(r.forEach)(n,(function(t){"acf_content"!==e.id&&(t._properties.marked=a.languageProcessing.normalizeHTML(t._properties.marked),t._properties.original=a.languageProcessing.normalizeHTML(t._properties.original)),s.length>0?i.forEach(e=>{const n=t.applyWithReplace(e);o=o.replace(e,n)}):o=t.applyWithReplace(o)})),o}(e,0,n,i),e.setContent(i),function(e){let t=e.getContent();t=t.replace(new RegExp("<yoastmark.+?>","g"),"").replace(new RegExp("</yoastmark>","g"),""),e.setContent(t)}(e);const c=s.select("yoastmark");Object(r.forEach)(c,(function(e){e.setAttribute("data-mce-bogus","1")}))}function i(e){return window.test=e,s.bind(null,e)}function c(e){return-1!==e.getContent({format:"raw"}).indexOf("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 b=Object(d.makeOutboundLink)();function h(e){return Math.round(100*e)}function g(e){let{chartData:t}=e;if(Object(i.isEmpty)(t)||Object(i.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 f(e){return!e||!e.position||e.position.value>100?"> 100":e.position.value}function y(e){const{keyphrase:t,rowData:n,onTrackKeyphrase:r,onUntrackKeyphrase:o,isFocusKeyphrase:c,isDisabled:d,isLoading:p}=e,h=!Object(i.isEmpty)(n),y=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:y,isLoading:p})),Object(a.createElement)("td",null,t,c&&Object(a.createElement)("span",null,"*")),function(e){const{rowData:t,websiteId:n}=e,r=!Object(i.isEmpty)(t),o=t&&t.updated_at&&l()(t.updated_at)>=l()().subtract(7,"days"),c=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,f(t)),Object(a.createElement)("td",{className:"yoast-table--nopadding"},Object(a.createElement)(g,{chartData:t})),Object(a.createElement)("td",{className:"yoast-table--nobreak"},Object(a.createElement)(b,{href:c},Object(s.__)("View","wordpress-seo")))):Object(a.createElement)(a.Fragment,null,Object(a.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},Object(a.createElement)(m,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))}g.propTypes={chartData:o.a.object},g.defaultProps={chartData:{}},y.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},y.defaultProps={rowData:{},onTrackKeyphrase:()=>{},onUntrackKeyphrase:()=>{},isFocusKeyphrase:!1,isDisabled:!1,isLoading:!1,websiteId:""}},,,,,,function(e,t,n){"use strict";var a=n(12),r=n.n(a),o=n(0),s=n(11),i=n.n(s),c=n(28),l=n.n(c),u=n(2),d=n.n(u),p=n(1),m=n(8),b=n(19),h=n(9),g=n(34);const f=i.a.p` color: ${b.colors.$color_pink_dark}; font-size: 14px; font-weight: 700; margin: 13px 0 10px; `,y=i()(m.SvgIcon)` margin-right: 5px; vertical-align: middle; `,O=i.a.button` position: absolute; top: 9px; right: 9px; border: none; background: none; cursor: pointer; `,w=i.a.p` font-size: 13px; font-weight: 500; margin: 10px 0 13px; `,j=i.a.div` position: relative; background: ${e=>e.isTitleShortened?"#F5F7F7":"transparent"}; border: 1px solid #C7C7C7; border-left: 4px solid${b.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),i=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),c=r?s:i,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:c;return Object(o.createElement)(f,null,a&&Object(o.createElement)(y,{icon:"exclamation-triangle",color:b.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)(),_=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)(w,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)(w,null,l()({mixedString:s,components:{wincherAccountUpgradeLink:a}}))};_.propTypes={discount:d.a.number,months:d.a.number};const T=e=>{let{onClose:t,isTitleShortened:n}=e;const a=(()=>{const[e,t]=Object(o.useState)(null);return Object(o.useEffect)(()=>{e||Object(g.b)().then(e=>t(e))},[e]),e})(),s=(()=>{const[e,t]=Object(o.useState)(null);return Object(o.useEffect)(()=>{e||Object(g.e)().then(e=>t(e))},[e]),e})();if(null===a)return null;const{limit:i,usage:c}=a;if(!(i&&c/i>=.8))return null;const l=Boolean(null==s?void 0:s.discount);return Object(o.createElement)(j,{isTitleShortened:n},t&&Object(o.createElement)(O,{"aria-label":Object(p.__)("Close the upgrade callout","wordpress-seo"),onClick:t},Object(o.createElement)(m.SvgIcon,{icon:"times-circle",color:b.colors.$color_pink_dark,size:"14px"})),Object(o.createElement)(E,r()({},a,{isTitleShortened:n,isFreeAccount:l})),Object(o.createElement)(_,{discount:null==s?void 0:s.discount,months:null==s?void 0:s.months}))};T.propTypes={onClose:d.a.func,isTitleShortened:d.a.bool},t.a=T},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),i=n(28),c=n.n(i),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},c()({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),i=n.n(s),c=n(28),l=n.n(c),u=n(1),d=n(8),p=n(9),m=n(15),b=n(22);const h=i()(d.Alert)` p { margin: 0; } `,g=Object(p.makeOutboundLink)(),f=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(b.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)(g,{"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",href:Object(m.addQueryArgs)(wpseoAdminL10n["shortlinks.upsell.social_preview."+e.socialMediumName.toLowerCase()],{context:r})},Object(a.createElement)("p",null,n))))};f.propTypes={socialMediumName:o.a.oneOf(["Twitter","Facebook"]).isRequired};var y=f,O=n(42),w=n(113);class j 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:i,descriptionInputPlaceholder:c,imageUrl:l,alt:u,title:d,titleInputPlaceholder:p,replacementVariables:m,recommendedReplacementVariables:b,onReplacementVariableSearchChange:h,isPremium:g,location:f}=this.props;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(y,{socialMediumName:o}),Object(a.createElement)(O.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:o,title:d,titleInputPlaceholder:p,onRemoveImageClick:r,imageSelected:!!l,imageUrl:l,imageAltText:u,onTitleChange:t,onSelectImageClick:n,description:i,descriptionInputPlaceholder:c,imageWarnings:s,replacementVariables:m,recommendedReplacementVariables:b,onReplacementVariableSearchChange:h,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:g,setEditorRef:this.setEditorRef,idSuffix:f}))}}j.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:w.replacementVariablesShape,recommendedReplacementVariables:w.recommendedReplacementVariablesShape,onReplacementVariableSearchChange:o.a.func,location:o.a.string,alt:o.a.string},j.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",onReplacementVariableSearchChange:null,location:"",alt:""},t.a=j},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),i=n(9);const c=Object(i.makeOutboundLink)(),l=Object(i.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)(c,{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),i=n(0),c=n(1),l=n(2),u=n.n(l),d=n(4),p=n(11),m=n.n(p),b=n(8),h=n(9),g=n(28),f=n.n(g);const y=Object(h.makeOutboundLink)(),O=e=>{const t=Object(c.sprintf)( /* translators: %d expands to the amount of allowed keyphrases on a free account, %s expands to a link to Wincher plans. */ Object(c.__)("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(i.createElement)(b.Alert,{type:"error"},f()({mixedString:t,components:{updateWincherPlanLink:Object(i.createElement)(y,{href:wpseoAdminGlobalL10n["links.wincher.pricing"]},Object(c.sprintf)( /* translators: %s : Expands to "Wincher". */ Object(c.__)("upgrade your %s plan","wordpress-seo"),"Wincher"))}}))};O.propTypes={limit:u.a.number},O.defaultProps={limit:10};var w=O,j=()=>Object(i.createElement)(b.Alert,{type:"error"},Object(c.__)("Something went wrong while tracking the ranking position(s) of your page. Please try again later.","wordpress-seo")),E=n(108),v=()=>Object(i.createElement)(b.Alert,{type:"success"},Object(c.sprintf)( /* translators: %s: Expands to "Wincher". */ Object(c.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher")),_=()=>Object(i.createElement)(b.Alert,{type:"info"},Object(c.sprintf)( /* translators: %s: Expands to "Wincher". */ Object(c.__)("%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")),T=n(102),k=n(34),R=n(29);const C=Object(h.makeOutboundLink)(),S=m.a.span` display: block; font-style: italic; @media (min-width: 782px) { display: inline; position: absolute; ${Object(h.getDirectionalStyle)("right","left")}: 8px; } `,x=m.a.th` min-width: 60px; `,I=m.a.div` width: 100%; overflow-y: auto; `,P=e=>{const t=Object(i.useRef)();return Object(i.useEffect)(()=>{t.current=e}),t.current},L=Object(d.debounce)(k.d,500,{leading:!0}),A=e=>{const{addTrackedKeyphrase:t,isLoggedIn:n,keyphrases:a,permalink:r,removeTrackedKeyphrase:o,setKeyphraseLimitReached:s,setRequestFailed:l,setRequestSucceeded:u,setTrackedKeyphrases:p,setHasTrackedAll:m,trackAll:b,trackedKeyphrases:h,isNewlyAuthenticated:g,websiteId:f,focusKeyphrase:y,newRequest:O}=e,w=Object(i.useRef)(),j=Object(i.useRef)(),E=Object(i.useRef)(!1),[v,_]=Object(i.useState)([]),A=Object(i.useCallback)(e=>{const t=e.toLowerCase();return h&&!Object(d.isEmpty)(h)&&h.hasOwnProperty(t)?h[t]:null},[h]),q=Object(i.useMemo)(()=>async()=>{await Object(R.b)(()=>(j.current&&j.current.abort(),j.current="undefined"==typeof AbortController?null:new AbortController,L(a,r,j.current.signal)),e=>{u(e),p(e.results)},e=>{l(e)})},[u,l,p,a,r]),F=Object(i.useCallback)(async e=>{const n=(Array.isArray(e)?e:[e]).map(e=>e.toLowerCase());_(e=>[...e,...n]),await Object(R.b)(()=>Object(k.f)(n),e=>{u(e),t(e.results),q()},e=>{400===e.status&&e.limit&&s(e.limit),l(e)},201),_(e=>Object(d.without)(e,...n))},[u,l,s,t,q]),D=Object(i.useCallback)(async(e,t)=>{e=e.toLowerCase(),_(t=>[...t,e]),await Object(R.b)(()=>Object(k.g)(t),t=>{u(t),o(e)},e=>{l(e)}),_(t=>Object(d.without)(t,e))},[u,o,l]),N=Object(i.useCallback)(async e=>{O(),await F(e)},[O,F]),M=P(r),B=P(a);Object(i.useEffect)(()=>{n&&r&&(r!==M||Object(d.difference)(a,B).length)&&q()},[n,r,M,a,B,q]),Object(i.useEffect)(()=>{if(n&&b&&null!==h){const e=a.filter(e=>!A(e));e.length&&F(e),m()}},[n,b,h,F,m,A,a]),Object(i.useEffect)(()=>{g&&!E.current&&(q(),E.current=!0)},[g,q]),Object(i.useEffect)(()=>{if(n&&!Object(d.isEmpty)(h))return Object(d.filter)(h,e=>Object(d.isEmpty)(e.updated_at)).length>0&&(w.current=setInterval(()=>{q()},1e4)),()=>{clearInterval(w.current)}},[n,h,q]);const W=n&&null===h;return a&&!Object(d.isEmpty)(a)&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(I,null,Object(i.createElement)("table",{className:"yoast yoast-table"},Object(i.createElement)("thead",null,Object(i.createElement)("tr",null,Object(i.createElement)("th",{scope:"col",abbr:Object(c.__)("Tracking","wordpress-seo")},Object(c.__)("Tracking","wordpress-seo")),Object(i.createElement)("th",{scope:"col",abbr:Object(c.__)("Keyphrase","wordpress-seo")},Object(c.__)("Keyphrase","wordpress-seo")),Object(i.createElement)("th",{scope:"col",abbr:Object(c.__)("Position","wordpress-seo")},Object(c.__)("Position","wordpress-seo")),Object(i.createElement)("th",{scope:"col",abbr:Object(c.__)("Position over time","wordpress-seo")},Object(c.__)("Position over time","wordpress-seo")),Object(i.createElement)(x,{className:"yoast-table--nobreak"}))),Object(i.createElement)("tbody",null,a.map((e,t)=>Object(i.createElement)(T.b,{key:"trackable-keyphrase-"+t,keyphrase:e,onTrackKeyphrase:N,onUntrackKeyphrase:D,rowData:A(e),isFocusKeyphrase:e===y.trim().toLowerCase(),websiteId:f,isDisabled:!n,isLoading:W||v.indexOf(e.toLowerCase())>=0}))))),Object(i.createElement)("p",{style:{marginBottom:0,position:"relative"}},Object(i.createElement)(C,{href:wpseoAdminGlobalL10n["links.wincher.login"]},Object(c.sprintf)( /* translators: %s expands to Wincher */ Object(c.__)("Get more insights over at %s","wordpress-seo"),"Wincher")),Object(i.createElement)(S,null,Object(c.__)("* focus keyphrase","wordpress-seo"))))};A.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},A.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],trackAll:!1,trackedKeyphrases:null,websiteId:"",focusKeyphrase:""};var q=A,F=Object(r.compose)([Object(a.withSelect)(e=>{const{getWincherWebsiteId:t,getWincherTrackedKeyphrases:n,getWincherTrackableKeyphrases:a,getWincherLoginStatus:r,getWincherPermalink:o,getFocusKeyphrase:s,isWincherNewlyAuthenticated:i,shouldWincherTrackAll:c}=e("yoast-seo/editor");return{focusKeyphrase:s(),keyphrases:a(),trackedKeyphrases:n(),isLoggedIn:r(),trackAll:c(),websiteId:t(),isNewlyAuthenticated:i(),permalink:o()}}),Object(a.withDispatch)(e=>{const{setWincherNewRequest:t,setWincherRequestSucceeded:n,setWincherRequestFailed:a,setWincherSetKeyphraseLimitReached:r,setWincherTrackedKeyphrases:o,setWincherTrackingForKeyphrase:s,setWincherTrackAllKeyphrases:i,unsetWincherTrackingForKeyphrase:c}=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=>{c(e)},setTrackedKeyphrases:e=>{o(e)},setHasTrackedAll:()=>{i(!1)}}})])(q),D=n(116),N=()=>Object(i.createElement)(b.Alert,{type:"error"},Object(c.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo")),M=()=>Object(i.createElement)(b.Alert,{type:"info"},Object(c.sprintf)( /* translators: %s: Expands to "Wincher". */ Object(c.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher")),B=n(109),W=n(110),U=()=>Object(i.createElement)(b.Alert,{type:"error"},Object(c.__)("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 z=e=>{let{response:t,onLogin:n}=e;return[401,403,404].includes(t.status)?Object(i.createElement)(W.a,{onReconnect:n}):Object(i.createElement)(j,null)};z.propTypes={response:u.a.object.isRequired,onLogin:u.a.func.isRequired};const K=e=>{let{isSuccess:t,response:n,allKeyphrasesMissRanking:a,onLogin:r,keyphraseLimitReached:o,limit:s}=e;return o?Object(i.createElement)(w,{limit:s}):Object(d.isEmpty)(n)||t?a?Object(i.createElement)(_,null):null:Object(i.createElement)(z,{response:n,onLogin:r})};K.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},K.defaultProps={response:{}};let $=null;const H=async e=>{if($&&!$.isClosed())return void $.focus();const{url:t}=await Object(k.c)();$=new B.a(t,{success:{type:"wincher:oauth:success",callback:t=>(async(e,t)=>{const{onAuthentication:n,setRequestSucceeded:a,setRequestFailed:r,keyphrases:o,addTrackedKeyphrase:s,setKeyphraseLimitReached:i}=e;await Object(R.b)(()=>Object(k.a)(t),async e=>{n(!0,!0,t.websiteId.toString()),a(e);const c=(Array.isArray(o)?o:[o]).map(e=>e.toLowerCase());await Object(R.b)(()=>Object(k.f)(c),e=>{a(e),s(e.results)},e=>{400===e.status&&e.limit&&i(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(i.createElement)("p",null,Object(i.createElement)(b.NewButton,{onClick:e.onLogin,variant:"primary"},Object(c.sprintf)( /* translators: %s expands to Wincher */ Object(c.__)("Connect with %s","wordpress-seo"),"Wincher")));Y.propTypes={isLoggedIn:u.a.bool.isRequired,onLogin:u.a.func.isRequired};const V=m.a.div` p { margin: 1em 0; } `,G=m.a.div` ${e=>e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"}; `,Z=m.a.div` font-weight: var(--yoast-font-weight-bold); color: var(--yoast-color-label); font-size: var(--yoast-font-size-default); `,Q=e=>{const{isLoggedIn:t,keyphrases:n,shouldTrackAll:a,permalink:r}=e;return!r&&t?Object(i.createElement)(U,null):0===n.length?Object(i.createElement)(N,null):Object(i.createElement)(G,{isDisabled:!t},Object(i.createElement)("p",null,Object(c.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")),t&&a&&Object(i.createElement)(M,null),Object(i.createElement)(F,null))};function J(e){const{isNewlyAuthenticated:t,isLoggedIn:n}=e,a=Object(i.useCallback)(()=>{H(e)},[H,e]);return Object(i.createElement)(V,null,t&&Object(i.createElement)(v,null),n&&Object(i.createElement)(E.a,null),Object(i.createElement)(Z,null,Object(c.__)("SEO performance","wordpress-seo"),Object(i.createElement)(b.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"],linkText:Object(c.__)("Learn more about the SEO performance feature.","wordpress-seo")})),Object(i.createElement)(D.a,null),Object(i.createElement)(Y,{isLoggedIn:n,onLogin:a}),Object(i.createElement)(K,s()({},e,{onLogin:a})),Object(i.createElement)(Q,e))}Q.propTypes={keyphrases:u.a.array.isRequired,isLoggedIn:u.a.bool.isRequired,shouldTrackAll:u.a.bool.isRequired,permalink:u.a.string.isRequired},J.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},J.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:i,getWincherAllKeyphrasesMissRanking:c,getWincherPermalink:l,shouldWincherAutomaticallyTrackAll:u}=e("yoast-seo/editor");return{keyphrases:i(),allKeyphrasesMissRanking:c(),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)}}})])(J)},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),i=n(132),c=n(7);const l=e=>{let{link:t,text:n}=e;return Object(a.createElement)(c.Root,null,Object(a.createElement)("p",null,n),Object(a.createElement)(c.Button,{href:t,as:"a",className:"yst-gap-2 yst-mb-5 yst-mt-2",variant:"upsell",target:"_blank",rel:"noopener"},Object(a.createElement)(i.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";var a=n(3),r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(93),s=n(128),i=n(129),c="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,m,b=h,h=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)};function g(e,t,n,a){this.result=e,this.keyPrefix=t,this.func=n,this.context=a,this.count=0}function f(e,t,n){var r,s,i=e.result,c=e.keyPrefix,l=e.func,u=e.context,p=l.call(u,t,e.count++);Array.isArray(p)?y(p,i,n,o.thatReturnsArgument):null!=p&&(a.isValidElement(p)&&(r=p,s=c+(!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)),i.push(p))}function y(e,t,n,a,o){var i="";null!=n&&(i=d(n)+"/");var u=g.getPooled(t,i,a,o);!function(e,t,n){null==e||function e(t,n,a,o){var i,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 m=0;m{const t=Object(i.sprintf)( /* translators: %s expands to a 'Yoast SEO Premium' text linked to the yoast.com website. */ Object(i.__)("Great news: you can, with %s!","wordpress-seo"),"{{link}}Yoast SEO Premium{{/link}}"),n=[Object(i.sprintf)( /* translators: %1$s expands to a 'strong' start tag, %2$s to a 'strong' end tag. */ Object(i.__)("%1$sCreate content faster%2$s: Use AI to create titles & meta descriptions","wordpress-seo"),"",""),Object(i.sprintf)( /* translators: %1$s expands to a 'strong' start tag, %2$s to a 'strong' end tag. */ Object(i.__)("%1$sNo more dead links%2$s: easy redirect manager","wordpress-seo"),"",""),`${Object(i.__)("Superfast internal linking suggestions","wordpress-seo")}`,Object(i.sprintf)( /* translators: %1$s expands to a 'strong' start tag, %2$s to a 'strong' end tag. */ Object(i.__)("%1$sSocial media preview%2$s: Facebook & Twitter","wordpress-seo"),"",""),`${Object(i.__)("24/7 email support","wordpress-seo")}`,`${Object(i.__)("No ads!","wordpress-seo")}`],{locationContext:r}=Object(d.useRootContext)(),s=o()({mixedString:t,components:{link:Object(a.createElement)(m,{href:Object(p.addQueryArgs)(e.link,{context:r})})}}),l=Object(i.sprintf)( /* translators: %s expands to 'Yoast SEO Premium'. */ Object(i.__)("Other benefits of %s for you:","wordpress-seo"),"Yoast SEO Premium");return Object(a.createElement)(c.a,{infoParagraphs:[s,l],benefits:n,upsellButtonText:Object(i.sprintf)( /* translators: %s expands to 'Yoast SEO Premium'. */ Object(i.__)("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(i.__)("1 year free support and updates included!","wordpress-seo")})};b.propTypes={link:u.a.string.isRequired,buyLink:u.a.string.isRequired},t.a=b},,function(e,t,n){"use strict";var a=n(5),r=n(20),o=n(0),s=n(1),i=n(2),c=n.n(i),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 m=Object(p.makeOutboundLink)();var b=()=>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)(m,{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),g=n.n(h),f=n(15);const y="yoast-semrush-country-selector",O=[{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 w 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){g()({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 g()({path:Object(f.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:e,country_code:t})})}onChangeHandler(e){this.props.setCountry(e)}render(){return Object(o.createElement)("div",{id:y},Object(o.createElement)(u.SingleSelect,{id:y+"-select",label:Object(s.__)("Show results for:","wordpress-seo"),name:"semrush-country-code",options:O,selected:this.props.countryCode,onChange:this.onChangeHandler,wrapperClassName:"yoast-field-group yoast-field-group--inline"}),Object(o.createElement)(u.NewButton,{id:y+"-button",variant:"secondary",onClick:this.relatedKeyphrasesRequest},Object(s.__)("Select country","wordpress-seo")))}}w.propTypes={keyphrase:c.a.string,countryCode:c.a.string,response:c.a.object,lastRequestKeyphrase:c.a.string,setCountry:c.a.func.isRequired,newRequest:c.a.func.isRequired,setNoResultsFound:c.a.func.isRequired,setRequestSucceeded:c.a.func.isRequired,setRequestLimitReached:c.a.func.isRequired,setRequestFailed:c.a.func.isRequired},w.defaultProps={keyphrase:"",countryCode:"us",response:{},lastRequestKeyphrase:""};var j=w,E=n(79),v=n(67);const _=Object(p.makeOutboundLink)();class T 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,i="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],i=this.transformTrendDataToChartPoints(e[2]),c=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:i,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:c})),r&&Object(o.createElement)("td",{className:"yoast-table--nobreak"},r(a,t)))}))),Object(o.createElement)("p",{style:{marginBottom:0}},Object(o.createElement)(_,{href:i},Object(s.sprintf)( /* translators: %s expands to Semrush */ Object(s.__)("Get more insights at %s","wordpress-seo"),"Semrush"))))}}T.propTypes={data:c.a.object,keyphrase:c.a.string,relatedKeyphrases:c.a.array,countryCode:c.a.string,renderAction:c.a.func},T.defaultProps={data:{},keyphrase:"",relatedKeyphrases:[],countryCode:"us",renderAction:null};var k=T;const R=Object(p.makeOutboundLink)();var C=()=>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")),x=()=>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")),I=n(17);function P(e){const{response:t,lastRequestKeyphrase:n,keyphrase:a,newRequest:r,setCountry:i,renderAction:c,countryCode:u,requestLimitReached:p,setRequestFailed:m,setNoResultsFound:h,relatedKeyphrases:g,setRequestSucceeded:f,setRequestLimitReached:y}=e,O=Object(I.a)().isPremium;return Object(o.createElement)(o.Fragment,null,!p&&Object(o.createElement)(o.Fragment,null,!O&&Object(o.createElement)(C,null),O&&function(e){return e&&e.length>=4}(g)&&Object(o.createElement)(x,null),Object(o.createElement)(j,{countryCode:u,setCountry:i,newRequest:r,keyphrase:a,setRequestFailed:m,setNoResultsFound:h,setRequestSucceeded:f,setRequestLimitReached:y,response:t,lastRequestKeyphrase:n})),function(e){const{isPending:t,requestLimitReached:n,isSuccess:a,response:r,requestHasData:i}=e;return t?Object(o.createElement)(d,null):n?Object(o.createElement)(b,null):!a&&function(e){return!Object(l.isEmpty)(e)&&"error"in e}(r)?Object(o.createElement)(S,null):i?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)(k,{keyphrase:a,relatedKeyphrases:g,countryCode:u,renderAction:c,data:t}))}P.propTypes={keyphrase:c.a.string,relatedKeyphrases:c.a.array,renderAction:c.a.func,requestLimitReached:c.a.bool,countryCode:c.a.string.isRequired,setCountry:c.a.func.isRequired,newRequest:c.a.func.isRequired,setRequestSucceeded:c.a.func.isRequired,setRequestLimitReached:c.a.func.isRequired,setRequestFailed:c.a.func.isRequired,setNoResultsFound:c.a.func.isRequired,response:c.a.object,lastRequestKeyphrase:c.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:i,getSEMrushRequestKeyphrase:c}=e("yoast-seo/editor");return{keyphrase:t(),countryCode:n(),requestLimitReached:a(),response:r(),isSuccess:o(),isPending:s(),requestHasData:i(),lastRequestKeyphrase:c()}}),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),i=n(4);t.a=()=>{const e=Object(r.useSelect)(e=>e("yoast-seo/editor").getEstimatedReadingTime(),[]),t=Object(a.useMemo)(()=>Object(i.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),i=n(9),c=n(14),l=n(4);const u=Object(i.makeOutboundLink)();function d(e,t,n){const r=function(e){switch(e){case c.DIFFICULTY.FAIRLY_DIFFICULT:case c.DIFFICULTY.DIFFICULT:case c.DIFFICULTY.VERY_DIFFICULT:return Object(o.__)("Try to make shorter sentences, using less difficult words to improve readability","wordpress-seo");case c.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 c.DIFFICULTY.NO_DATA:return Object(o.__)("no data","wordpress-seo");case c.DIFFICULTY.VERY_EASY:return Object(o.__)("very easy","wordpress-seo");case c.DIFFICULTY.EASY:return Object(o.__)("easy","wordpress-seo");case c.DIFFICULTY.FAIRLY_EASY:return Object(o.__)("fairly easy","wordpress-seo");case c.DIFFICULTY.OKAY:return Object(o.__)("okay","wordpress-seo");case c.DIFFICULTY.FAIRLY_DIFFICULT:return Object(o.__)("fairly difficult","wordpress-seo");case c.DIFFICULTY.DIFFICULT:return Object(o.__)("difficult","wordpress-seo");case c.DIFFICULTY.VERY_DIFFICULT:return Object(o.__)("very difficult","wordpress-seo")}}(t))}(e,t)," ",t>=c.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]),i=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:i})}},function(e,t,n){"use strict";var a=n(0),r=n(5),o=n(1),s=n(8),i=n(4);t.a=()=>{const e=Object(r.useSelect)(e=>e("yoast-seo/editor").getTextLength(),[]),t=Object(a.useMemo)(()=>Object(i.get)(window,"wpseoAdminL10n.shortlinks-insights-word_count",""),[]);let n=Object(o._n)("word","words",e.count,"wordpress-seo"),c=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"),c=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:c,linkTo:t,linkText:l})}},function(e,t,n){"use strict";var a=n(0),r=n(22),o=n(19),s=n(1),i=n(49),c=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=i.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)(c.a,{link:t,buyLink:n}))})},,function(e,t,n){"use strict";var a=n(4),r=class{static isActive(){return!!document.getElementById("et_pb_main_editor_wrap")}static isTinyMCEHidden(){const e=document.getElementById("et_pb_main_editor_wrap");return!!e&&e.classList.contains("et_pb_hidden")}listen(e){this.classicEditorContainer=document.getElementById("et_pb_main_editor_wrap"),this.classicEditorContainer&&new MutationObserver(t=>{Object(a.forEach)(t,t=>{"attributes"===t.type&&"class"===t.attributeName&&(t.target.classList.contains("et_pb_hidden")?e.classicEditorHidden():e.classicEditorShown())})}).observe(this.classicEditorContainer,{attributes:!0})}};const o={classicEditorHidden:a.noop,classicEditorShown:a.noop,pageBuilderLoaded:a.noop};t.a=class{constructor(){this.determineActivePageBuilders()}determineActivePageBuilders(){r.isActive()&&(this.diviActive=!0),class{static isActive(){return!!window.VCV_I18N}}.isActive()&&(this.vcActive=!0)}isPageBuilderActive(){return this.diviActive||this.vcActive}listen(e){this.callbacks=Object(a.defaults)(e,o),this.diviActive&&(new r).listen(e)}isClassicEditorHidden(){return!(!this.diviActive||!r.isTinyMCEHidden())}}},function(e,t,n){"use strict";var a=n(20),r=n(5),o=n(0),s=n(1),i=n(8),c=n(9),l=n(2),u=n.n(l),d=n(22),p=n(4),m=n(41),b=n(18);const h=e=>{if(!e.isAuthenticated)return null;const t=Object(o.useCallback)(()=>{Object(m.d)()});return Object(o.createElement)(b.Button,{variant:"link",onClick:t},Object(s.__)("Manage WordProof settings","wordpress-seo"))};h.propTypes={isAuthenticated:u.a.bool.isRequired};const g=e=>{const t=Object(o.useCallback)(()=>{Object(m.c)()});return!e.isAuthenticated&&e.toggleIsEnabled?Object(o.createElement)(b.Button,{variant:"link",onClick:t},Object(s.__)("Authenticate with WordProof","wordpress-seo")):null};g.propTypes={isAuthenticated:u.a.bool.isRequired,toggleIsEnabled:u.a.bool.isRequired};class f 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(m.c)()}turnToggleOn(){this.props.onToggle(!0)}turnToggleOff(){this.props.onToggle(!1)}render(){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(i.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)(i.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)(g,{toggleIsEnabled:this.props.isEnabled,isAuthenticated:this.props.isAuthenticated}),!this.props.isAuthenticated&&this.props.isEnabled&&Object(o.createElement)(i.Alert,{className:"yoast-wordproof-metabox-alert",type:"info"},Object(s.__)("Unable to create new timestamps. Please authenticate with WordProof.","wordpress-seo"))))}}f.propTypes={id:u.a.string,isEnabled:u.a.bool,onToggle:u.a.func,postTypeName:u.a.string,isAuthenticated:u.a.bool.isRequired},f.defaultProps={id:"timestamp-toggle",isEnabled:!0,postTypeName:"post",onToggle:p.noop};var y=Object(a.compose)([Object(r.withSelect)(e=>({isAuthenticated:e("wordproof").getIsAuthenticated()}))])(f);const O=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)(i.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)(i.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(c.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")})))};O.propTypes={noIndex:u.a.string.isRequired,onNoIndexChange:u.a.func.isRequired,editorContext:u.a.object.isRequired,isPrivateBlog:u.a.bool},O.defaultProps={isPrivateBlog:!1};const w=e=>{let{noFollow:t,onNoFollowChange:n,postTypeName:a}=e;return Object(o.createElement)(d.LocationConsumer,null,e=>{const r=Object(c.join)(["yoast-meta-robots-nofollow",e]);return Object(o.createElement)(i.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")})})};w.propTypes={noFollow:u.a.string.isRequired,onNoFollowChange:u.a.func.isRequired,postTypeName:u.a.string.isRequired};const j=e=>{let{advanced:t,onAdvancedChange:n}=e;return Object(o.createElement)(d.LocationConsumer,null,e=>{const a=Object(c.join)(["yoast-meta-robots-advanced",e]),r=a+"-input";return Object(o.createElement)(i.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")})})};j.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)(i.TextInput,{label:Object(s.__)("Breadcrumbs Title","wordpress-seo"),id:Object(c.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)(i.TextInput,{label:Object(s.__)("Canonical URL","wordpress-seo"),id:Object(c.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 _=e=>{let{wordproofTimestamp:t,onWordProofTimestampChange:n,postTypeName:a}=e;return Object(o.createElement)(d.LocationConsumer,null,e=>Object(o.createElement)(y,{id:Object(c.join)(["yoast-wordproof-timestamp",e]),isEnabled:t,onToggle:n,postTypeName:a}))};_.propTypes={wordproofTimestamp:u.a.bool.isRequired,onWordProofTimestampChange:u.a.func.isRequired,postTypeName:u.a.string.isRequired};const T=e=>{const{noIndex:t,noFollow:n,advanced:a,breadcrumbsTitle:r,canonical:s,wordproofTimestamp:i,onNoIndexChange:c,onNoFollowChange:l,onAdvancedChange:u,onBreadcrumbsTitleChange:d,onCanonicalChange:p,onWordProofTimestampChange:m,onLoad:b,isLoading:h,editorContext:g,isBreadcrumbsDisabled:f,isPrivateBlog:y,isWordProofIntegrationActive:T}=e;Object(o.useEffect)(()=>{setTimeout(()=>{h&&b()})});const k={noIndex:t,onNoIndexChange:c,editorContext:g,isPrivateBlog:y},R={noFollow:n,onNoFollowChange:l,postTypeName:g.postTypeNameSingular},C={advanced:a,onAdvancedChange:u},S={breadcrumbsTitle:r,onBreadcrumbsTitleChange:d},x={canonical:s,onCanonicalChange:p},I={wordproofTimestamp:i,onWordProofTimestampChange:m,postTypeName:g.postTypeNameSingular};return h?null:Object(o.createElement)(o.Fragment,null,Object(o.createElement)(O,k),g.isPost&&Object(o.createElement)(w,R),g.isPost&&Object(o.createElement)(j,C),!f&&Object(o.createElement)(E,S),Object(o.createElement)(v,x),T&&Object(o.createElement)(_,I))};T.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},T.defaultProps={advanced:[],onAdvancedChange:()=>{},noFollow:"",onNoFollowChange:()=>{},breadcrumbsTitle:"",onBreadcrumbsTitleChange:()=>{},isPrivateBlog:!1,onWordProofTimestampChange:()=>{},wordproofTimestamp:!1};var k=T;t.a=Object(a.compose)([Object(r.withSelect)(e=>{const{getNoIndex:t,getNoFollow:n,getAdvanced:a,getBreadcrumbsTitle:r,getCanonical:o,getWordProofTimestamp:s,getIsLoading:i,getEditorContext:c,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:i(),editorContext:c(),isBreadcrumbsDisabled:u,isPrivateBlog:d,isWordProofIntegrationActive:p}}),Object(r.withDispatch)(e=>{const{setNoIndex:t,setNoFollow:n,setAdvanced:a,setBreadcrumbsTitle:r,setCanonical:o,setWordProofTimestamp:s,loadAdvancedSettingsData:i}=e("yoast-seo/editor");return{onNoIndexChange:t,onNoFollowChange:n,onAdvancedChange:a,onBreadcrumbsTitleChange:r,onCanonicalChange:o,onWordProofTimestampChange:s,onLoad:i}})])(k)},function(e,t,n){"use strict";var a=n(0),r=n(20),o=n(5),s=n(1),i=n(2),c=n.n(i),l=n(8),u=n(9),d=n(28),p=n.n(d),m=n(11),b=n.n(m),h=n(121),g=n(4);const f=Object(u.makeOutboundLink)(),y=b.a.div` padding: 16px; `;function O(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)(f,{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}O.propTypes={show:c.a.bool.isRequired,location:c.a.string.isRequired};const w=(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]},j=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}}");c.a.string.isRequired,c.a.string.isRequired,c.a.string.isRequired;const E=e=>{const t=w(e.pageTypeOptions,e.defaultPageType,e.postTypeName),n=w(e.articleTypeOptions,e.defaultArticleType,e.postTypeName),r=Object(g.get)(window,"wpseoScriptData.metabox.woocommerceUpsellSchemaLink",""),o=Object(g.get)(window,"wpseoScriptData.woocommerceUpsell",""),[i,c]=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"),m=Object(a.useCallback)((e,t)=>{c(t)},[i]);return Object(a.useEffect)(()=>{m(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:m}),Object(a.createElement)(O,{location:e.location,show:!e.isNewsEnabled&&(f=i,y=e.defaultArticleType,"NewsArticle"===f||""===f&&"NewsArticle"===y)}),e.displayFooter&&Object(a.createElement)("p",null,(b=e.postTypeName,p()({mixedString:j(b),components:{link:Object(a.createElement)("a",{href:"/wp-admin/admin.php?page=wpseo_page_settings",target:"_blank"})}}))));var b,f,y},v=c.a.arrayOf(c.a.shape({name:c.a.string,value:c.a.string}));E.propTypes={schemaPageTypeChange:c.a.func,schemaPageTypeSelected:c.a.string,pageTypeOptions:v.isRequired,schemaArticleTypeChange:c.a.func,schemaArticleTypeSelected:c.a.string,articleTypeOptions:v.isRequired,showArticleTypeInput:c.a.bool.isRequired,additionalHelpTextLink:c.a.string.isRequired,helpTextLink:c.a.string.isRequired,helpTextTitle:c.a.string.isRequired,helpTextDescription:c.a.string.isRequired,postTypeName:c.a.string.isRequired,displayFooter:c.a.bool,defaultPageType:c.a.string.isRequired,defaultArticleType:c.a.string.isRequired,location:c.a.string.isRequired,isNewsEnabled:c.a.bool},E.defaultProps={schemaPageTypeChange:()=>{},schemaPageTypeSelected:null,schemaArticleTypeChange:()=>{},schemaArticleTypeSelected:null,displayFooter:!1,isNewsEnabled:!1};const _=e=>e.isMetabox?Object(a.createPortal)(Object(a.createElement)(y,null,Object(a.createElement)(E,e)),document.getElementById("wpseo-meta-section-schema")):Object(a.createElement)(E,e);_.propTypes={showArticleTypeInput:c.a.bool,articleTypeLabel:c.a.string,additionalHelpTextLink:c.a.string,pageTypeLabel:c.a.string.isRequired,helpTextLink:c.a.string.isRequired,helpTextTitle:c.a.string.isRequired,helpTextDescription:c.a.string.isRequired,isMetabox:c.a.bool.isRequired,postTypeName:c.a.string.isRequired,displayFooter:c.a.bool,loadSchemaArticleData:c.a.func.isRequired,loadSchemaPageData:c.a.func.isRequired,location:c.a.string.isRequired},_.defaultProps={showArticleTypeInput:!1,articleTypeLabel:"",additionalHelpTextLink:"",displayFooter:!1};var T=_,k=n(98),R=n(60);const C=e=>{const t=null!==k.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},i={...e,...o,...(c=e.location,"metabox"===c?{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 c;return Object(a.createElement)(T,i)};C.propTypes={displayFooter:c.a.bool.isRequired,schemaPageTypeSelected:c.a.string.isRequired,schemaArticleTypeSelected:c.a.string.isRequired,defaultArticleType:c.a.string.isRequired,defaultPageType:c.a.string.isRequired,loadSchemaPageData:c.a.func.isRequired,loadSchemaArticleData:c.a.func.isRequired,schemaPageTypeChange:c.a.func.isRequired,schemaArticleTypeChange:c.a.func.isRequired,location:c.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:i}=t();return{displayFooter:s,isNewsEnabled:i,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)()])(C)},function(e,t,n){"use strict";var a=n(0),r=n(1),o=n(2),s=n.n(o),i=n(11),c=n.n(i),l=n(8),u=n(19),d=n(76),p=n(40),m=n(78),b=n(85),h=n(22),g=n(15);const f=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(g.addQueryArgs)(wpseoAdminL10n[e.buyLink],{context:o});return Object(a.createElement)(b.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")})};f.propTypes={buyLink:s.a.string.isRequired};var y=f;const O=c()(l.CollapsibleStateless)` h2 > button { padding-left: 24px; padding-top: 16px; &:hover { background-color: #f0f0f0; } } `,w=e=>{let{location:t}=e;const[n,o]=Object(a.useState)(!1),s=Object(a.useCallback)(()=>o(!1),[]),i=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)(y,{buyLink:`shortlinks.upsell.${t}.premium_seo_analysis_button`}))),"sidebar"===t&&Object(a.createElement)(m.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:i}),"metabox"===t&&Object(a.createElement)(O,{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:i}))};w.propTypes={location:s.a.string},w.defaultProps={location:"sidebar"},t.a=w},function(e,t,n){"use strict";var a=n(0),r=n(5),o=n(1),s=n(9),i=n(4),c=n(2),l=n.n(c),u=n(75),d=n(12),p=n.n(d),m=n(31),b=n.n(m);const h=e=>{let{data:t,itemScreenReaderText:n,className:r,...s}=e;const c=Object(a.useMemo)(()=>{var e,n;return null!==(e=null===(n=Object(i.maxBy)(t,"number"))||void 0===n?void 0:n.number)&&void 0!==e?e:0},[t]);return Object(a.createElement)("ul",p()({className:b()("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/c*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 g=h,f=n(15),y=n(22);const O=Object(s.makeOutboundLink)(),w=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),[]),c=Object(a.useMemo)(()=>Object(i.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${t}-prominent_words`,""),[t]),l=Object(a.useMemo)(()=>{const e=Object(i.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)(O,{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:[]},[]),m=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}))},[]),b=Object(a.useMemo)(()=>s?m:p.map(e=>{let{word:t,occurrence:n}=e;return{name:t,number:n}}),[p,m]);if(!n)return null;const{locationContext:h}=Object(y.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===b.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)(O,{href:Object(f.addQueryArgs)(c,{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)(g,{data:b,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}))};w.propTypes={location:l.a.string.isRequired},t.a=w},function(e,t,n){"use strict";var a=n(0),r=n(18),o=n(1),s=n(8),i=n(4),c=n(2),l=n.n(c),u=n(9),d=n(75);const p=Object(u.makeOutboundLink)(),m=e=>{let{location:t}=e;const n=Object(a.useMemo)(()=>Object(i.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"}))))};m.propTypes={location:l.a.string.isRequired};var b=m,h=n(5),g=n(17);const f=e=>{let{location:t,name:n}=e;const c=Object(h.useSelect)(e=>e("yoast-seo/editor").isFormalitySupported(),[]),l=Object(g.a)().isPremium,u=l?Object(i.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_premium",""):Object(i.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_free",""),d=Object(o.__)("Read more about text formality.","wordpress-seo");return c?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)(b,{location:t})):null};f.propTypes={location:l.a.string.isRequired,name:l.a.string.isRequired},t.a=f},,,,,,,,,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),i=n.n(s),c=n(8),l=n(9);const u=i()(c.StyledSection)` &${c.StyledSectionBase} { padding: 0; & ${c.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),i=n(111);const c=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)(i.a,s)};c.propTypes={isPremium:s.a.bool.isRequired,onLoad:s.a.func.isRequired,location:s.a.string.isRequired},t.a=c},function(e,t,n){"use strict";var a=n(0),r=n(18),o=n(2),s=n.n(o),i=n(111);const c=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)(i.a,e));c.propTypes={isPremium:s.a.bool.isRequired,onLoad:s.a.func.isRequired,location:s.a.string.isRequired},t.a=c},,,,,,,function(e,t,n){"use strict";var a,r,o,s,i,c,l,u,d,p,m,b,h,g,f,y,O,w,j,E,v,_,T,k,R,C,S,x,I,P,L,A,q,F,D,N,M,B,W,U,z,K,$,H,Y,V,G,Z,Q=n(0),J=n(1),X=n(27),ee=()=>Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)("p",null,Object(X.a)(Object(J.sprintf)( /* translators: 1: Opening a html tag, 2: Closing a html tag. 3: WordProof. 4. WordPress */ Object(J.__)("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(Q.createElement)(Q.Fragment,null,Object(Q.createElement)("div",{className:"yoast-wordproof-modal-image"},Object(Q.createElement)(ae,{class:"yoast-wordproof-modal-svg__success"})),Object(Q.createElement)("p",null,Object(J.sprintf)( /* Translators: %s translates to the Post type in singular form */ Object(J.__)("Your %s is now protected via the blockchain!","wordpress-seo"),Object(re.a)("current_post_type")),Object(Q.createElement)("br",null),Object(Q.createInterpolateElement)(Object(J.sprintf)(Object(J.__)( /** 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(Q.createElement)("b",null)})),Object(Q.createElement)("div",{className:"yoast-wordproof-modal-action"},Object(Q.createElement)(oe.NewButton,{variant:"primary",onClick:t},"Continue")))};ce.propTypes={closeModal:ie.a.func.isRequired};var le,ue=ce;function de(){return(de=Object.assign||function(e){for(var t=1;t{const{closeModal:t}=e,n=Object(Q.useCallback)(e=>{t(),e.preventDefault(),Object(re.c)()});return Object(Q.createElement)("div",null,Object(Q.createElement)("div",{className:"yoast-wordproof-modal-image"},Object(Q.createElement)(pe,{className:"yoast-wordproof-modal-svg__webhook-failed"})),Object(Q.createElement)("div",null,Object(J.__)("There was a connection problem. This could be because your third party connections are blocked.","wordpress-seo"),Object(Q.createElement)("br",null),Object(X.a)(Object(J.sprintf)(Object(J.__)("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(Q.createElement)("div",{className:"yoast-wordproof-modal-action"},Object(Q.createElement)(oe.NewButton,{variant:"secondary",onClick:n},Object(J.__)("Try again","wordpress-seo"))),Object(Q.createElement)("div",null,Object(X.a)(Object(J.sprintf)(// translators: %1$s and %2$s are replaced by opening and closing tags. %3$s expands to WordProof. Object(J.__)("Not working? %1$sContact %3$s support%2$s.","wordpress-seo"),"","","WordProof"),"https://help.wordproof.com")))};me.propTypes={closeModal:ie.a.func.isRequired};var be=me,he=n(40);t.a=()=>{const[e,t]=Object(Q.useState)(null),n=Object(Q.useCallback)(()=>{t("oauth:failed")}),a=Object(Q.useCallback)(()=>{t("webhook:failed")}),r=Object(Q.useCallback)(()=>{t("oauth:success")}),o=Object(Q.useCallback)(()=>{t(null)});Object(Q.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(Q.useCallback)(()=>{switch(e){case"webhook:failed":return Object(J.__)("Connection failed","wordpress-seo");case"oauth:success":return Object(J.__)("Connected to WordProof","wordpress-seo");default:return Object(J.__)("WordProof authentication","wordpress-seo")}});return Object(Q.createElement)(Q.Fragment,null,e&&Object(Q.createElement)(he.a,{onRequestClose:o,additionalClassName:"yoast-wordproof-modal",title:s()},"oauth:success"===e&&Object(Q.createElement)(ue,{closeModal:o}),"oauth:failed"===e&&Object(Q.createElement)(ee,null),"webhook:failed"===e&&Object(Q.createElement)(be,{closeModal:o})))}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(46),r=n(39),o=n(112),s=n(54);const{dispatch:i}=wp.data;function c(){const{setIsAuthenticated:e,setSelectedPostTypes:t}=i("wordproof"),n=Object(r.a)("popup_redirect_authentication_url"),c=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 b(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":m()}},p=async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;m(),Object(o.a)(t),!1===n&&(await Object(a.b)(),e(!1)),!0===n&&e(!0)},m=()=>{window.removeEventListener("message",d,!1),l.close()},b=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(c,"WordProof_Settings")},!1)}},,,,function(e,t,n){"use strict";var a=n(12),r=n.n(a),o=n(0),s=n(20),i=n(5),c=n(1),l=n(160),u=n(22),d=n(161),p=n(72),m=n(118),b=n(121),h=n(4);const g=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(i.withSelect)((function(e){const{getBaseUrlFromSettings:t,getDateFromSettings:n,getFocusKeyphrase:a,getRecommendedReplaceVars:r,getReplaceVars:o,getShoppingData:s,getSiteIconUrlFromSettings:i,getSnippetEditorData:c,getSnippetEditorMode:l,getSnippetEditorPreviewImageUrl:u,getSnippetEditorWordsToHighlight:d,isCornerstoneContent:p,getIsTerm:m,getContentLocale:b,getSiteName:h}=e("yoast-seo/editor"),g=o();return g.forEach(e=>{""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(e.value="%%"+e.name+"%%")}),{baseUrl:t(),data:c(),date:n(),faviconSrc:i(),keyword:a(),mobileImageSrc:u(),mode:l(),recommendedReplacementVariables:r(),replacementVariables:g,shoppingData:s(),wordsToHighlight:d(),isCornerstone:p(),isTaxonomy:m(),locale:b(),siteName:h()}})),Object(i.withDispatch)((function(e,t,n){let{select:a}=n;const{updateData:r,switchMode:o,updateAnalysisData:s,findCustomFields:i}=e("yoast-seo/editor"),c=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}),c&&c.editPost({slug:t});break;default:r({[e]:t})}},onChangeAnalysisData:s,onReplacementVariableSearchChange:Object(m.a)(l,i)}}))])(e=>{const t=Object(h.get)(window,"wpseoScriptData.metabox.woocommerceUpsellGooglePreviewLink",""),n=Object(h.get)(window,"wpseoScriptData.woocommerceUpsell",""),a=Object(c.__)("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)(b.a,{link:t,text:a}),Object(o.createElement)(l.SnippetEditor,r()({},e,{descriptionPlaceholder:Object(c.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:g,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),i=n(60),c=n(53),l=n(118);const u=()=>{Object(c.b)(e=>Object(r.dispatch)("yoast-seo/editor").setFacebookPreviewImage(Object(c.c)(e)))};t.a=Object(a.compose)([Object(r.withSelect)(e=>{const{getFacebookDescription:t,getDescription:n,getFacebookTitle:a,getSeoTitle:r,getFacebookImageUrl:o,getImageFallback:i,getFacebookWarnings:c,getRecommendedReplaceVars:l,getReplaceVars:u,getSiteUrl:d,getSeoTitleTemplate:p,getSeoTitleTemplateNoFallback:m,getSocialTitleTemplate:b,getSeoDescriptionTemplate:h,getSocialDescriptionTemplate:g,getReplacedExcerpt:f,getFacebookAltText:y}=e("yoast-seo/editor");return{imageUrl:o(),imageFallbackUrl:i(),recommendedReplacementVariables:l(),replacementVariables:u(),description:t(),descriptionPreviewFallback:g()||n()||h()||f()||"",title:a(),titlePreviewFallback:b()||r()||m()||p()||"",imageWarnings:c(),siteUrl:d(),isPremium:!!Object(s.a)().isPremium,titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Facebook",alt:y()}}),Object(r.withDispatch)((e,t,n)=>{let{select:a}=n;const{setFacebookPreviewTitle:r,setFacebookPreviewDescription:o,clearFacebookPreviewImage:s,loadFacebookPreviewData:i,findCustomFields:c}=e("yoast-seo/editor"),d=a("yoast-seo/editor").getPostId();return{onSelectImageClick:u,onRemoveImageClick:s,onDescriptionChange:o,onTitleChange:r,onLoad:i,onReplacementVariableSearchChange:Object(l.a)(d,c)}}),Object(i.a)()])(o.a)},function(e,t,n){"use strict";var a=n(20),r=n(5),o=n(163),s=n(17),i=n(60),c=n(53),l=n(118);const u=()=>{Object(c.b)(e=>Object(r.dispatch)("yoast-seo/editor").setTwitterPreviewImage(Object(c.d)(e)))};t.a=Object(a.compose)([Object(r.withSelect)(e=>{const{getTwitterDescription:t,getTwitterTitle:n,getTwitterImageUrl:a,getFacebookImageUrl:r,getFacebookTitle:o,getFacebookDescription:i,getDescription:c,getSeoTitle:l,getTwitterWarnings:u,getTwitterImageType:d,getImageFallback:p,getRecommendedReplaceVars:m,getReplaceVars:b,getSiteUrl:h,getSeoTitleTemplate:g,getSeoTitleTemplateNoFallback:f,getSocialTitleTemplate:y,getSeoDescriptionTemplate:O,getSocialDescriptionTemplate:w,getReplacedExcerpt:j,getTwitterAltText:E}=e("yoast-seo/editor");return{imageUrl:a(),imageFallbackUrl:r()||p(),recommendedReplacementVariables:m(),replacementVariables:b(),description:t(),descriptionPreviewFallback:w()||i()||c()||O()||j()||"",title:n(),titlePreviewFallback:y()||o()||l()||f()||g()||"",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:i,findCustomFields:c}=e("yoast-seo/editor"),d=a("yoast-seo/editor").getPostId();return{onSelectImageClick:u,onRemoveImageClick:s,onDescriptionChange:o,onTitleChange:r,onLoad:i,onReplacementVariableSearchChange:Object(l.a)(d,c)}}),Object(i.a)()])(o.a)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,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),i=n(139),c=n(77);function l(e){let{theme:t}=e;return Object(a.createElement)(c.a,{theme:t,location:"metabox"},Object(a.createElement)(s.Slot,{name:"YoastMetabox"},e=>Object(i.a)(e)))}var u=n(5),d=n(20),p=n(1),m=n(19),b=n(140),h=n(177),g=n(178),f=n(62),y=n(88),O=n(49),w=n(141),j=n(142),E=n(150),v=n(143),_=n(151);const T=e=>{let{location:t}=e;const n=Object(u.useSelect)(e=>e("yoast-seo/editor").isFleschReadingEaseAvailable(),[]);return Object(a.createElement)(O.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)(j.a,null)),Object(a.createElement)("div",{className:"yoast-insights-row yoast-insights-row--columns"},Object(a.createElement)(w.a,null),Object(a.createElement)(v.a,null)),Object(y.isFeatureEnabled)("TEXT_FORMALITY")&&Object(a.createElement)(_.a,{location:t,name:"YoastTextFormalityMetabox"})))};T.propTypes={location:o.a.string},T.defaultProps={location:"metabox"};var k=T,R=n(32),C=n(147),S=n(179),x=n(180);const I=e=>{let{displayFacebook:t,displayTwitter:n}=e;return Object(a.createElement)(a.Fragment,null,t&&Object(a.createElement)(O.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)(O.a /* Translators: %s expands to Twitter. */,{title:Object(p.sprintf)(Object(p.__)("%s preview","wordpress-seo"),"Twitter"),hasSeparator:t,initialIsOpen:!0},Object(a.createElement)(x.a,null)))};I.propTypes={displayFacebook:o.a.bool.isRequired,displayTwitter:o.a.bool.isRequired};var P=I,L=Object(u.withSelect)(e=>{const{getPreferences:t}=e("yoast-seo/editor"),{displayFacebook:n,displayTwitter:a}=t();return{displayFacebook:n,displayTwitter:a}})(P),A=n(74);function q(e){let{target:t}=e;return Object(a.createElement)(A.a,{target:t},Object(a.createElement)(L,null))}q.propTypes={target:o.a.string.isRequired};var F=n(148),D=n(136),N=n(117),M=n(41),B=n(170),W=n(149),U=n(144);function z(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(M.b)()&&Object(a.createElement)(B.a,null),Object(a.createElement)(s.Fill,{name:"YoastMetabox"},Object(a.createElement)(R.a,{key:"warning",renderPriority:1},Object(a.createElement)(g.a,null)),t.isKeywordAnalysisActive&&Object(a.createElement)(R.a,{key:"keyword-input",renderPriority:8},Object(a.createElement)(f.KeywordInput,{isSEMrushIntegrationActive:t.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&Object(a.createElement)(s.Fill,{name:"YoastRelatedKeyphrases"},Object(a.createElement)(D.a,null))),Object(a.createElement)(R.a,{key:"google-preview",renderPriority:9},Object(a.createElement)(O.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)(f.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)(f.SeoAnalysis,{shouldUpsell:t.shouldUpsell,shouldUpsellWordFormRecognition:t.isWordFormRecognitionActive}),t.shouldUpsell&&Object(a.createElement)(W.a,{location:"metabox"}))),t.isInclusiveLanguageAnalysisActive&&Object(a.createElement)(R.a,{key:"inclusive-language-analysis",renderPriority:21},Object(a.createElement)(f.InclusiveLanguageAnalysis,null)),t.isKeywordAnalysisActive&&Object(a.createElement)(R.a,{key:"additional-keywords-upsell",renderPriority:22},t.shouldUpsell&&Object(a.createElement)(U.a,null)),t.isKeywordAnalysisActive&&t.isWincherIntegrationActive&&Object(a.createElement)(R.a,{key:"wincher-seo-performance",renderPriority:25},Object(a.createElement)(O.a,{id:"yoast-wincher-seo-performance-metabox",title:Object(p.__)("Track SEO performance","wordpress-seo"),initialIsOpen:!1,prefixIcon:{icon:"chart-square-bar",color:m.colors.$color_grey_medium_dark},prefixIconCollapsed:{icon:"chart-square-bar",color:m.colors.$color_grey_medium_dark},onToggle:o},Object(a.createElement)(N.a,null))),t.isCornerstoneActive&&Object(a.createElement)(R.a,{key:"cornerstone",renderPriority:30},Object(a.createElement)(b.a,null)),t.displayAdvancedTab&&Object(a.createElement)(R.a,{key:"advanced",renderPriority:40},Object(a.createElement)(O.a,{id:"collapsible-advanced-settings",title:Object(p.__)("Advanced","wordpress-seo")},Object(a.createElement)(C.a,null))),t.displaySchemaSettings&&Object(a.createElement)(R.a,{key:"schema",renderPriority:50},Object(a.createElement)(F.a,null)),Object(a.createElement)(R.a,{key:"social",renderPriority:-1},Object(a.createElement)(q,{target:"wpseo-section-social"})),t.isInsightsEnabled&&Object(a.createElement)(R.a,{key:"insights",renderPriority:52},Object(a.createElement)(k,{location:"metabox"}))))}z.propTypes={settings:o.a.object.isRequired,wincherKeyphrases:o.a.array.isRequired,setWincherNoKeyphrase:o.a.func.isRequired};var K=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}})])(z);function $(e){let{target:t,store:n,theme:r}=e;return Object(a.createElement)(A.a,{target:t},Object(a.createElement)(l,{store:n,theme:r}),Object(a.createElement)(K,{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.r(t);var a=n(0),r=n(18),o=n(209),s=n(17),i=n(22);const c=[];let l=null;class u extends a.Component{constructor(e){super(e),this.state={registeredComponents:[]}}registerComponent(e,t){this.setState({registeredComponents:[...this.state.registeredComponents,{key:e,Component:t}]})}render(){return this.state.registeredComponents.map(e=>{let{Component:t,key:n}=e;return Object(a.createElement)(t,{key:n})})}}function d(e,t){null===l||null===l.current?c.push({key:e,Component:t}):l.current.registerComponent(e,t)}var p=n(41),m=n(173),b=n(16),h=n(21),g=n.n(h),f=n(4),y=n(14),O=n(72),w=n(45),j=n(65);const{removeMarks:E}=y.markers,{updateReplacementVariable:v,updateData:_,hideReplacementVariables:T,setContentImage:k,setEditorDataContent:R,setEditorDataTitle:C,setEditorDataExcerpt:S,setEditorDataImageUrl:x,setEditorDataSlug:I}=b.actions;window.yoast=window.yoast||{},window.yoast.initEditorIntegration=function(e){window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=d,function(e){const t=Object(s.a)();l=Object(a.createRef)();const n={isRtl:t.isRtl};Object(a.render)(Object(a.createElement)(r.SlotFillProvider,null,Object(a.createElement)(i.Root,{context:{locationContext:"classic-metabox"}},Object(a.createElement)(o.a,{target:"wpseo-metabox-root",store:e,theme:n})),Object(a.createElement)(u,{ref:l})),document.getElementById("wpseo-metabox-root")),c.forEach(e=>{l.current.registerComponent(e.key,e.Component)})}(e),Object(p.b)()&&Object(m.a)()},window.yoast.EditorData=class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"content";this._refresh=e,this._store=t,this._tinyMceId=n,this._previousData={},this._previousEditorData={},this.updateReplacementData=this.updateReplacementData.bind(this),this.refreshYoastSEO=this.refreshYoastSEO.bind(this)}initialize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=this.getInitialData(e);Object(O.fillReplacementVariables)(n,this._store),this._store.dispatch(T(t)),this._previousEditorData.content=n.content,this._store.dispatch(R(n.content)),this._previousEditorData.contentImage=n.contentImage,this._store.dispatch(k(n.contentImage)),this.setImageInSnippetPreview(n.snippetPreviewImageURL||n.contentImage),this._previousEditorData.slug=n.slug,this._store.dispatch(I(n.slug)),this.updateReplacementData({target:{value:n.title}},"title"),this.updateReplacementData({target:{value:n.excerpt}},"excerpt"),this.updateReplacementData({target:{value:n.excerpt_only}},"excerpt_only"),this.subscribeToElements(),this.subscribeToStore(),this.subscribeToSnippetPreviewImage(),this.subscribeToTinyMceEditor(),this.subscribeToSlug()}subscribeToTinyMceEditor(){const e=e=>{if(Object(f.isString)(e)||(e=this.getContent()),this._previousEditorData.content===e)return;if(this._previousEditorData.content=e,this._store.dispatch(R(e)),this.featuredImageIsSet)return;const t=this.getContentImage(e);this._previousEditorData.contentImage!==t&&(this._previousEditorData.contentImage=t,this._store.dispatch(k(t)),this.setImageInSnippetPreview(t))};g()(document).on("tinymce-editor-init",(t,n)=>{n.id===this._tinyMceId&&(e(this.getContent()),["input","change","cut","paste"].forEach(t=>n.on(t,Object(f.debounce)(e,1e3))))});const t=document.getElementById("attachment_content");t&&(e(t.value),t.addEventListener("input",t=>e(t.target.value)))}subscribeToSlug(){const e=e=>{this._previousEditorData.slug!==e&&(this._previousEditorData.slug=e,this._store.dispatch(I(e)),this._store.dispatch(_({slug:e})))},t=document.getElementById("slug");t&&t.addEventListener("input",t=>e(t.target.value));const n=document.getElementById("post_name");n&&n.addEventListener("input",t=>e(t.target.value));const a=document.getElementById("edit-slug-buttons");a&&new MutationObserver((t,n)=>t.forEach(t=>{t.addedNodes.forEach(t=>{var a,r;if(null==t||null===(a=t.classList)||void 0===a||!a.contains("edit-slug"))return;const o=null===(r=document.getElementById("editable-post-name-full"))||void 0===r?void 0:r.innerText;o&&(e(o),n.disconnect(),this.subscribeToSlug())})})).observe(a,{childList:!0})}subscribeToSnippetPreviewImage(){if(Object(f.isUndefined)(wp.media)||Object(f.isUndefined)(wp.media.featuredImage))return;g()("#postimagediv").on("click","#remove-post-thumbnail",()=>{this.featuredImageIsSet=!1,this.setImageInSnippetPreview(this.getContentImage(this.getContent()))});const e=wp.media.featuredImage.frame();e.on("select",()=>{const t=e.state().get("selection").first().attributes.url;t&&(this.featuredImageIsSet=!0,this.setImageInSnippetPreview(t))}),w.addEventHandler(this._tinyMceId,["init"],()=>{const e=this.getContentImage(this.getContent()),t=this.getFeaturedImage()||e||"";this._store.dispatch(k(e)),this.setImageInSnippetPreview(t)})}getFeaturedImage(){const e=g()("#set-post-thumbnail img").attr("src");return e?(this.featuredImageIsSet=!0,e):(this.featuredImageIsSet=!1,null)}setImageInSnippetPreview(e){this._store.dispatch(x(e)),this._store.dispatch(_({snippetPreviewImageURL:e}))}getContentImage(e){if(this.featuredImageIsSet)return"";const t=y.languageProcessing.imageInText(e);if(0===t.length)return"";const n=g.a.parseHTML(t.join(""));for(const e of n)if(e.src)return e.src;return""}getTitle(){const e=document.getElementById("title")||document.getElementById("name");return e&&e.value||""}getExcerpt(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=document.getElementById("excerpt"),n=t&&t.value||"",a="ja"===Object(j.a)()?80:156;return""!==n||!1===e?n:Object(O.excerptFromContent)(this.getContent(),a)}getSlug(){let e="";const t=document.getElementById("new-post-slug")||document.getElementById("slug");return t?e=t.value:null!==document.getElementById("editable-post-name-full")&&(e=document.getElementById("editable-post-name-full").textContent),e}getContent(){return E(w.getContentTinyMce(this._tinyMceId))}subscribeToElements(){this.subscribeToInputElement("title","title"),this.subscribeToInputElement("excerpt","excerpt"),this.subscribeToInputElement("excerpt","excerpt_only")}subscribeToInputElement(e,t){const n=document.getElementById(e);n&&n.addEventListener("input",e=>{this.updateReplacementData(e,t)})}updateReplacementData(e,t){let n=e.target.value;if("excerpt"===t&&""===n&&(n=this.getExcerpt()),this._previousEditorData[t]!==n){switch(this._previousEditorData[t]=n,t){case"title":this._store.dispatch(C(n));break;case"excerpt":this._store.dispatch(S(n))}this._store.dispatch(v(t,n))}}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}refreshYoastSEO(){const e=this.getData();!this.isShallowEqual(this._previousData,e)&&(this.handleEditorChange(e),this._previousData=e,window.YoastSEO&&window.YoastSEO.app&&window.YoastSEO.app.refresh())}handleEditorChange(e){this._previousData.excerpt!==e.excerpt&&(this._store.dispatch(v("excerpt",e.excerpt)),this._store.dispatch(v("excerpt_only",e.excerpt_only))),this._previousData.snippetPreviewImageURL!==e.snippetPreviewImageURL&&this.setImageInSnippetPreview(e.snippetPreviewImageURL),this._previousData.slug!==e.slug&&this._store.dispatch(I(e.slug)),this._previousData.title!==e.title&&this._store.dispatch(C(e.title))}subscribeToStore(){this.subscriber=Object(f.debounce)(this.refreshYoastSEO,500),this._store.subscribe(this.subscriber)}getInitialData(e){e=Object(O.mapCustomFields)(e,this._store),e=Object(O.mapCustomTaxonomies)(e,this._store);const t=this.getContent(),n=this.getFeaturedImage();return{...e,title:this.getTitle(),excerpt:this.getExcerpt(),excerpt_only:this.getExcerpt(!1),slug:this.getSlug(),content:t,snippetPreviewImageURL:n,contentImage:this.getContentImage(t)}}getData(){return{...this._store.getState().snippetEditor.data,title:this.getTitle(),content:this.getContent(),excerpt:this.getExcerpt(),excerpt_only:this.getExcerpt(!1)}}}}]);