/*! For license information please see block-editor.js.LICENSE.txt */
(()=>{var e={4659:e=>{"use strict";function t(e){return function(){return e}}var r=function(){};r.thatReturns=t,r.thatReturnsFalse=t(!1),r.thatReturnsTrue=t(!0),r.thatReturnsNull=t(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},9372:e=>{"use strict";e.exports=function(e,t,r,s,a,o,n,i){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,s,a,o,n,i],d=0;(l=new Error(t.replace(/%s/g,(function(){return c[d++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},7197:(e,t,r)=>{"use strict";var s=r(4659);e.exports=s},2635:(e,t,r)=>{"use strict";var s="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},a=i(r(9196)),o=i(r(9290)),n=i(r(2952));function i(e){return e&&e.__esModule?e:{default:e}}var l=void 0;function c(e,t){var r,n,i,d,p,u,m,h,g=[],y={};for(u=0;u<e.length;u++)if("string"!==(p=e[u]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==s(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+l);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){r=t[p.value],i=u;break}g.push(t[p.value])}else g.push(p.value);return r&&(d=function(e,t){var r,s,a=t[e],o=0;for(s=e+1;s<t.length;s++)if((r=t[s]).value===a.value){if("componentOpen"===r.type){o++;continue}if("componentClose"===r.type){if(0===o)return s;o--}}throw new Error("Missing closing component token `"+a.value+"`")}(i,e),m=c(e.slice(i+1,d),t),n=a.default.cloneElement(r,{},m),g.push(n),d<e.length-1&&(h=c(e.slice(d+1),t),g=g.concat(h))),1===g.length?g[0]:(g.forEach((function(e,t){e&&(y["interpolation-child-"+t]=e)})),(0,o.default)(y))}t.Z=function(e){var t=e.mixedString,r=e.components,a=e.throwErrors;if(l=t,!r)return t;if("object"!==(void 0===r?"undefined":s(r))){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var o=(0,n.default)(t);try{return c(o,r)}catch(e){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},2952:e=>{"use strict";function t(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(t)}},9290:(e,t,r)=>{"use strict";var s=r(9196),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=r(4659),n=r(9372),i=r(7197),l=".",c=":",d="function"==typeof Symbol&&Symbol.iterator,p="@@iterator";function u(e,t){return e&&"object"==typeof e&&null!=e.key?(r=e.key,s={"=":"=0",":":"=2"},"$"+(""+r).replace(/[=:]/g,(function(e){return s[e]}))):t.toString(36);var r,s}function m(e,t,r,s){var o,i=typeof e;if("undefined"!==i&&"boolean"!==i||(e=null),null===e||"string"===i||"number"===i||"object"===i&&e.$$typeof===a)return r(s,e,""===t?l+u(e,0):t),1;var h=0,g=""===t?l:t+c;if(Array.isArray(e))for(var y=0;y<e.length;y++)h+=m(o=e[y],g+u(o,y),r,s);else{var f=function(e){var t=e&&(d&&e[d]||e[p]);if("function"==typeof t)return t}(e);if(f)for(var w,b=f.call(e),E=0;!(w=b.next()).done;)h+=m(o=w.value,g+u(o,E++),r,s);else if("object"===i){var v=""+e;n(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===v?"object with keys {"+Object.keys(e).join(", ")+"}":v,"")}}return h}var h=/\/+/g;function g(e){return(""+e).replace(h,"$&/")}var y,f,w=b,b=function(e){var t=this;if(t.instancePool.length){var r=t.instancePool.pop();return t.call(r,e),r}return new t(e)};function E(e,t,r,s){this.result=e,this.keyPrefix=t,this.func=r,this.context=s,this.count=0}function v(e,t,r){var a,n,i=e.result,l=e.keyPrefix,c=e.func,d=e.context,p=c.call(d,t,e.count++);Array.isArray(p)?k(p,i,r,o.thatReturnsArgument):null!=p&&(s.isValidElement(p)&&(a=p,n=l+(!p.key||t&&t.key===p.key?"":g(p.key)+"/")+r,p=s.cloneElement(a,{key:n},void 0!==a.props?a.props.children:void 0)),i.push(p))}function k(e,t,r,s,a){var o="";null!=r&&(o=g(r)+"/");var n=E.getPooled(t,o,s,a);!function(e,t,r){null==e||m(e,"",t,r)}(e,v,n),E.release(n)}E.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},y=function(e,t,r,s){var a=this;if(a.instancePool.length){var o=a.instancePool.pop();return a.call(o,e,t,r,s),o}return new a(e,t,r,s)},(f=E).instancePool=[],f.getPooled=y||w,f.poolSize||(f.poolSize=10),f.release=function(e){var t=this;n(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return i(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(s.isValidElement(e))return i(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;n(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var r in e)k(e[r],t,r,o.thatReturnsArgument);return t}},9916:(e,t)=>{var r;!function(){"use strict";var s={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var n=a.apply(null,r);n&&e.push(n)}}else if("object"===o){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var i in r)s.call(r,i)&&r[i]&&e.push(i)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},9196:e=>{"use strict";e.exports=window.React}},t={};function r(s){var a=t[s];if(void 0!==a)return a.exports;var o=t[s]={exports:{}};return e[s](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};r.r(e),r.d(e,{authorFirstName:()=>Bl,authorLastName:()=>Wl,category:()=>Hl,categoryTitle:()=>Vl,currentDate:()=>Ul,currentDay:()=>Kl,currentMonth:()=>zl,currentYear:()=>jl,date:()=>Yl,excerpt:()=>Gl,focusKeyphrase:()=>Zl,id:()=>Xl,modified:()=>Ql,name:()=>Jl,page:()=>ec,pageNumber:()=>tc,pageTotal:()=>rc,permalink:()=>sc,postContent:()=>ac,postDay:()=>oc,postMonth:()=>nc,postTypeNamePlural:()=>lc,postTypeNameSingular:()=>cc,postYear:()=>ic,primaryCategory:()=>dc,searchPhrase:()=>pc,separator:()=>uc,siteDescription:()=>mc,siteName:()=>hc,tag:()=>gc,term404:()=>yc,termDescription:()=>fc,termHierarchy:()=>wc,termTitle:()=>bc,title:()=>Ec,userDescription:()=>vc});var t=r(9196),s=r.n(t);const a=window.wp.blocks,o=window.wp.data,n=window.wp.editPost,i=window.wp.element,l=window.wp.i18n,c=window.wp.plugins,d=window.wp.richText,p=window.yoast.externals.contexts,u=window.yoast.externals.redux,m=window.lodash,h=window.wp.apiFetch;var g=r.n(h);async function y(e,t,r,s=200){try{const a=await e();return!!a&&(a.status===s?t(a):r(a))}catch(e){}}async function f(e){try{return await g()(e)}catch(e){return e.error&&e.status?e:e instanceof window.Response&&await e.json()}}const w="wordproof/v1",b=async()=>await f({path:`${w}/oauth/destroy`,method:"POST"}),{get:E}=lodash,v=(e,t={})=>E(window,"wordproofSdk.data"+(e?`.${e}`:""),t),k=window.yoast.propTypes;var _=r.n(k);function x(e){const t=new window.CustomEvent(e);window.dispatchEvent(t)}const T=e=>{const{response:t,createSuccessNotice:r,createErrorNotice:s,postId:a}=e;if(null===t||200===t.status)return;const o={id:"wordproof-timestamp-notice"};t&&201===t.status?0===t.balance?(o.actions=[{label:v("translations.open_settings_button_text"),onClick:()=>{x("wordproof:open_settings")},variant:"link"}],s(v("translations.no_balance"),o)):(r(v("translations.timestamp_success"),{type:"snackbar",id:"wordproof-timestamp-notice"}),S(a,t.hash,s,o)):t.error&&("not_authenticated"===t.error?(o.type="snackbar",o.actions=[{label:v("translations.open_authentication_button_text"),onClick:()=>{x("wordproof:open_authentication")},variant:"link"}],s(v("translations.not_authenticated"),o)):s(v("translations.timestamp_failed"),o))},S=async(e,t,r,s)=>{setTimeout((async()=>{const a=await(async e=>f({path:`${w}/posts/${e}/timestamp/transaction/latest`,method:"GET"}))(e);a.hash!==t&&(s.type="snackbar",r(v("translations.webhook_failed"),s))}),1e4)};T.proptypes={timestampResponse:_().any.isRequired,createSuccessNotice:_().func.isRequired,createErrorNotice:_().func.isRequired,postId:_().number.isRequired};const{debounce:R}=lodash,{applyFilters:C}=wp.hooks,{dispatch:I}=wp.data,{subscribe:A,select:P}=wp.data;function L(e){let t=!0;A((()=>{const r=P("core/editor").isSavingPost(),s=P("core/editor").isAutosavingPost(),a=P("core/editor").didPostSaveRequestSucceed();if(r&&a&&!s){if(t)return void(t=!1);e()}}))}function F(){const{createSuccessNotice:e,createErrorNotice:t}=(0,o.dispatch)("core/notices");!function(){const{setIsAuthenticated:e,setSelectedPostTypes:t}=I("wordproof"),r=v("popup_redirect_authentication_url"),s=v("popup_redirect_settings_url");let a=null;const o=(e,t)=>{a=function(e,t,r="",s=800,a=680){const o=e.top.outerHeight/2+e.top.screenY-a/2,n=e.top.outerWidth/2+e.top.screenX-s/2;return e.open(t,r,`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=${s},\n\t\theight=${a},\n\t\ttop=${o},\n\t\tleft=${n}`)}(window,e,t),a&&a.focus(),window.addEventListener("message",n,!1)},n=async e=>{const{data:t,source:r,origin:s}=e;if(s===v("origin")&&a===r)switch(t.type){case"wordproof:oauth:granted":!1===await c(t)&&await i("wordproof:oauth:failed",!1);break;case"wordproof:oauth:failed":await i("wordproof:oauth:failed",!1);break;case"wordproof:oauth:denied":await i("wordproof:oauth:denied",!1);break;case"wordproof:oauth:invalid_token":await i("wordproof:oauth:invalid_token",!1);break;case"wordproof:webhook:success":await i("wordproof:oauth:success",!0);break;case"wordproof:webhook:failed":await i("wordproof:webhook:failed",!1);break;case"wordproof:settings:updated":await i("wordproof:settings:updated"),await d(t);break;case"wordproof:oauth:destroy":await i("wordproof:oauth:destroy",!1);break;case"wordproof:oauth:retry":await i("wordproof:open_authentication",!1);break;case"wordproof:oauth:close":l()}},i=async(t,r=null)=>{l(),x(t),!1===r&&(await(async()=>await y((async()=>await b()),(e=>e),(()=>!1)))(),e(!1)),!0===r&&e(!0)},l=()=>{window.removeEventListener("message",n,!1),a.close()},c=async e=>{await y((()=>(async e=>{const{state:t,code:r}=e;return await f({path:`${w}/oauth/authenticate`,method:"POST",data:{state:t,code:r}})})(e)),(async e=>{const t={type:"wordproof:sdk:access-token",source_id:e.source_id};return a.postMessage(t,v("origin")),!0}),(async()=>!1))},d=async e=>{await y((()=>(async e=>{const{settings:t}=e;return await f({path:`${w}/settings`,method:"POST",data:{settings:t}})})(e)),(async()=>{const r=e.settings;return r.selectedPostTypes&&t(r.selectedPostTypes),!0}),(async()=>!1))};window.addEventListener("wordproof:open_authentication",(e=>{e.preventDefault(),o(r,"WordProof_Authentication")}),!1),window.addEventListener("wordproof:open_settings",(e=>{e.preventDefault(),o(s,"WordProof_Settings")}),!1)}(),function(e,t,r){e(R((async()=>{if(C("wordproof.timestamp",!0)){const e=v("current_post_id"),s=await(async e=>f({path:`${w}/posts/${e}/timestamp`,method:"POST"}))(e);T({response:s,createSuccessNotice:t,createErrorNotice:r,postId:e})}}),500))}(L,e,t)}function M(){return(0,m.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}const O=window.yoast.styledComponents;var N=r.n(O);const q=N().svg`
	width: ${e=>e.size}px;
	height: ${e=>e.size}px;
	&&& path {
		fill: ${e=>e.color};
	}
	&&& circle.yoast-icon-readability-score {
		fill: ${e=>e.readabilityScoreColor};
		display: ${e=>e.isContentAnalysisActive?"inline":"none"};
	}
	
	&&& circle.yoast-icon-seo-score {
		fill: ${e=>e.seoScoreColor};
		display: ${e=>e.isKeywordAnalysisActive?"inline":"none"};
	}
`,D=function(e){return(0,t.createElement)(q,{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 646.66 456.27"},(0,t.createElement)("path",{d:"M73,405.26a68.53,68.53,0,0,1-12.82-4c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92q-2.64-2-5.08-4.19a68.26,68.26,0,0,1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24q-1.84-2.73-3.44-5.64a68.26,68.26,0,0,1-8.29-32.55V142.13a68.29,68.29,0,0,1,8.29-32.55,58.6,58.6,0,0,1,3.44-5.64,57.53,57.53,0,0,1,4-5.27A69.64,69.64,0,0,1,48.56,85.42,56.06,56.06,0,0,1,54.2,82,67.78,67.78,0,0,1,73,75.09,69.79,69.79,0,0,1,86.75,73.7H256.41L263,55.39H86.75A86.84,86.84,0,0,0,0,142.13V338.22A86.83,86.83,0,0,0,86.75,425H98.07V406.65H86.75A68.31,68.31,0,0,1,73,405.26ZM368.55,60.85l-1.41-.53L360.73,77.5l1.41.53a68.58,68.58,0,0,1,8.66,4,58.65,58.65,0,0,1,5.65,3.43A69.49,69.49,0,0,1,391,98.67c1.4,1.68,2.72,3.46,3.95,5.27s2.39,3.72,3.44,5.64a68.32,68.32,0,0,1,8.29,32.55V406.65H233.55l-.44.76c-3.07,5.37-6.26,10.48-9.49,15.19L222,425H425V142.13A87.19,87.19,0,0,0,368.55,60.85Z",fill:"#000001"}),(0,t.createElement)("path",{d:"M303.66,0l-96.8,268.87-47.58-149H101.1l72.72,186.78a73.61,73.61,0,0,1,0,53.73c-7.07,18.07-19.63,39.63-54.36,46l-1.56.29v49.57l2-.08c29-1.14,51.57-10.72,70.89-30.14,19.69-19.79,36.55-50.52,53-96.68L366.68,0Z",fill:"#000001"}),(0,t.createElement)("circle",{className:"yoast-icon-readability-score",cx:"561.26",cy:"142.43",r:"85.04",fill:"#000001",stroke:"#181716",strokeMiterlimit:"10",strokeWidth:"0.72"}),(0,t.createElement)("circle",{className:"yoast-icon-seo-score",cx:"561.26",cy:"341.96",r:"85.04",fill:"#000001",stroke:"#181716",strokeMiterlimit:"10",strokeWidth:"0.72"}))};D.propTypes={readabilityScoreColor:_().string,isContentAnalysisActive:_().bool,seoScoreColor:_().string,isKeywordAnalysisActive:_().bool,size:_().number,color:_().string},D.defaultProps={readabilityScoreColor:"#000000",isContentAnalysisActive:!1,seoScoreColor:"#000000",isKeywordAnalysisActive:!1,size:20,color:"#000001"};const $=D,B=window.wp.components;function W(e){return void 0===e.length?e:(0,m.flatten)(e).sort(((e,t)=>void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority))}const U=({theme:e,location:r,children:s})=>(0,t.createElement)(p.LocationProvider,{value:r},(0,t.createElement)(O.ThemeProvider,{theme:e},s));U.propTypes={theme:_().object.isRequired,location:_().oneOf(["sidebar","metabox","modal"]).isRequired,children:_().element.isRequired};const K=U;function z({theme:e}){return(0,t.createElement)(K,{theme:e,location:"metabox"},(0,t.createElement)(B.Slot,{name:"YoastMetabox"},(e=>W(e))))}const H=window.wp.compose,V=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{d:"M2 11a1 1 0 011-1h2a1 1 0 011 1v5a1 1 0 01-1 1H3a1 1 0 01-1-1v-5zM8 7a1 1 0 011-1h2a1 1 0 011 1v9a1 1 0 01-1 1H9a1 1 0 01-1-1V7zM14 4a1 1 0 011-1h2a1 1 0 011 1v12a1 1 0 01-1 1h-2a1 1 0 01-1-1V4z"}))})),j=(e=null)=>(0,t.useMemo)((()=>{const t={role:"img","aria-hidden":"true"};return null!==e&&(t.focusable=e?"true":"false"),t}),[e]);var Y=r(9916),G=r.n(Y);const Z=({className:e,...r})=>(0,t.createElement)("span",{className:G()("yst-grow yst-overflow-hidden yst-overflow-ellipsis yst-whitespace-nowrap yst-font-wp yst-text-[#555] yst-text-base yst-leading-[normal] yst-subpixel-antialiased yst-text-left",e),...r});Z.displayName="MetaboxButton.Text",Z.propTypes={className:_().string},Z.defaultProps={className:""};const X=({className:e,...r})=>(0,t.createElement)("button",{type:"button",className:G()("yst-flex yst-items-center yst-w-full yst-pt-4 yst-pb-4 yst-pr-4 yst-pl-6 yst-space-x-2 yst-border-t yst-border-t-[rgb(0,0,0,0.2)] yst-rounded-none yst-transition-all hover:yst-bg-[#f0f0f0] focus:yst-outline focus:yst-outline-[1px] focus:yst-outline-[color:#0066cd] focus:-yst-outline-offset-1 focus:yst-shadow-[0_0_3px_rgba(8,74,103,0.8)]",e),...r});X.propTypes={className:_().string},X.defaultProps={className:""},X.Text=Z;const Q=window.yoast.componentsNew,J=window.yoast.helpers,ee=N().div`
	min-width: 600px;

	@media screen and ( max-width: 680px ) {
		min-width: 0;
		width: 86vw;
	}
`,te=N().div`
	@media screen and ( min-width: 600px ) {
		max-width: 420px;
	}
`,re=(N()(Q.Icon)`
	float: ${(0,J.getDirectionalStyle)("right","left")};
	margin: ${(0,J.getDirectionalStyle)("0 0 16px 16px","0 16px 16px 0")};

	&& {
		width: 150px;
		height: 150px;

		@media screen and ( max-width: 680px ) {
			width: 80px;
			height: 80px;
		}
	}
`,"yoast yoast-gutenberg-modal"),se=e=>{const{title:r,className:s,showYoastIcon:a,additionalClassName:o,...n}=e,i=a?(0,t.createElement)("span",{className:"yoast-icon"}):null;return(0,t.createElement)(B.Modal,{title:r,className:`${s} ${o}`,icon:i,...n},e.children)};se.propTypes={title:_().string,className:_().string,showYoastIcon:_().bool,children:_().oneOfType([_().node,_().arrayOf(_().node)]),additionalClassName:_().string},se.defaultProps={title:"Yoast SEO",className:re,showYoastIcon:!0,children:null,additionalClassName:""};const ae=se;var oe,ne;function ie(){return ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},ie.apply(this,arguments)}const le=e=>t.createElement("svg",ie({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),oe||(oe=t.createElement("path",{d:"M73 405.26a66.79 66.79 0 0 1-6.54-1.7 64.75 64.75 0 0 1-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 0 1-5.08-4.19 69.21 69.21 0 0 1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 0 1-3.44-5.64 68.29 68.29 0 0 1-8.29-32.55V142.13a68.26 68.26 0 0 1 8.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0 1 14.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0 1 73 75.09a68.75 68.75 0 0 1 13.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 0 0 0 142.13v196.09A86.84 86.84 0 0 0 86.75 425h11.32v-18.35H86.75A68.75 68.75 0 0 1 73 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 0 1 8.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 0 1 391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 0 1 8.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 0 0-56.45-81.28z"})),ne||(ne=t.createElement("path",{stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81,d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 0 1 0 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z"}))),ce=e=>(0,t.createElement)("div",{className:"yoast components-panel__body"},(0,t.createElement)("h2",{className:"components-panel__body-title"},(0,t.createElement)("button",{id:e.id,onClick:e.onClick,className:"components-button components-panel__body-toggle",type:"button"},e.prefixIcon&&(0,t.createElement)("span",{className:"yoast-icon-span",style:{fill:`${e.prefixIcon&&e.prefixIcon.color||""}`}},(0,t.createElement)(Q.SvgIcon,{size:e.prefixIcon.size,icon:e.prefixIcon.icon})),(0,t.createElement)("span",{className:"yoast-title-container"},(0,t.createElement)("div",{className:"yoast-title"},e.title),(0,t.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),e.children,e.suffixIcon&&(0,t.createElement)(Q.SvgIcon,{size:e.suffixIcon.size,icon:e.suffixIcon.icon}),e.SuffixHeroIcon))),de=ce;ce.propTypes={onClick:_().func.isRequired,title:_().string.isRequired,id:_().string,subTitle:_().string,suffixIcon:_().object,SuffixHeroIcon:_().object,prefixIcon:_().object,children:_().node},ce.defaultProps={id:"",suffixIcon:null,SuffixHeroIcon:null,prefixIcon:null,subTitle:"",children:null};const pe=e=>{let t=!0;if("blur"===(null==e?void 0:e.type)){const{relatedTarget:r}=e;if(r){const e=["media-modal","wp-core-ui"];t=(0,m.intersection)(e,Array.from(r.classList)).length!==e.length}}return t},ue=({id:e,postTypeName:r,children:s,title:a,isOpen:o,close:n,open:c,shouldCloseOnClickOutside:d,showChangesWarning:u,SuffixHeroIcon:m})=>{const h=(0,i.useCallback)((e=>{pe(e)&&n()}),[n]);return(0,t.createElement)(i.Fragment,null,o&&(0,t.createElement)(p.LocationProvider,{value:"modal"},(0,t.createElement)(ae,{title:a,onRequestClose:h,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal",id:"id",shouldCloseOnClickOutside:d},(0,t.createElement)("div",{className:"yoast-content-container"},(0,t.createElement)("div",{className:"yoast-modal-content"},s)),(0,t.createElement)("div",{className:"yoast-notice-container"},(0,t.createElement)("hr",null),(0,t.createElement)("div",{className:"yoast-button-container"},u&&(0,t.createElement)("p",null,(0,l.sprintf)((0,l.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),r)),(0,t.createElement)("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:h},(0,l.sprintf)((0,l.__)("Return to your %s","wordpress-seo"),r)))))),(0,t.createElement)(de,{id:e+"-open-button",title:a,SuffixHeroIcon:m,suffixIcon:m?null:{size:"20px",icon:"pencil-square"},onClick:c}))};ue.propTypes={id:_().string.isRequired,postTypeName:_().string.isRequired,children:_().oneOfType([_().node,_().arrayOf(_().node)]).isRequired,title:_().string.isRequired,isOpen:_().bool.isRequired,open:_().func.isRequired,close:_().func.isRequired,shouldCloseOnClickOutside:_().bool,showChangesWarning:_().bool,SuffixHeroIcon:_().object},ue.defaultProps={shouldCloseOnClickOutside:!0,showChangesWarning:!0};const me=ue,he=window.moment;var ge=r.n(he),ye=r(2635);const fe=(0,J.makeOutboundLink)(),we=e=>{const r=(0,l.sprintf)((0,l.__)("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(0,t.createElement)(Q.Alert,{type:"error"},(0,ye.Z)({mixedString:r,components:{updateWincherPlanLink:(0,t.createElement)(fe,{href:wpseoAdminGlobalL10n["links.wincher.pricing"]},(0,l.sprintf)((0,l.__)("upgrade your %s plan","wordpress-seo"),"Wincher"))}}))};we.propTypes={limit:_().number},we.defaultProps={limit:10};const be=we,Ee=()=>(0,t.createElement)(Q.Alert,{type:"error"},(0,l.__)("Something went wrong while tracking the ranking position(s) of your page. Please try again later.","wordpress-seo")),ve=window.yoast.styleGuide;async function ke(e,t,r,s=200){try{const a=await e();return!!a&&(a.status===s?t(a):r(a))}catch(e){console.error(e.message)}}async function _e(e){try{return await g()(e)}catch(e){return e.error&&e.status?e:e instanceof Response&&await e.json()}}async function xe(e){return(0,m.isArray)(e)||(e=[e]),await _e({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:e}})}const Te=N().p`
	color: ${ve.colors.$color_pink_dark};
	font-size: 14px;
	font-weight: 700;
	margin: 13px 0 10px;
`,Se=N()(Q.SvgIcon)`
	margin-right: 5px;
	vertical-align: middle;
`,Re=N().button`
	position: absolute;
	top: 9px;
	right: 9px;
	border: none;
    background: none;
    cursor: pointer;
`,Ce=N().p`
	font-size: 13px;
	font-weight: 500;
	margin: 10px 0 13px;
`,Ie=N().div`
	position: relative;
	background: ${e=>e.isTitleShortened?"#F5F7F7":"transparent"};
	border: 1px solid #C7C7C7;
	border-left: 4px solid${ve.colors.$color_pink_dark};
	padding: 0 16px;
	margin-bottom: 1.5em;
`,Ae=e=>{const[t,r]=(0,i.useState)(null);return(0,i.useEffect)((()=>{e&&!t&&async function(){return await _e({path:"yoast/v1/wincher/account/limit",method:"GET"})}().then((e=>r(e)))}),[t]),t};Ae.propTypes={limit:_().bool.isRequired};const Pe=({limit:e,usage:r,isTitleShortened:s,isFreeAccount:a})=>{const o=(0,l.sprintf)((0,l.__)("Your are tracking %1$s out of %2$s keyphrases included in your free account.","wordpress-seo"),r,e),n=(0,l.sprintf)((0,l.__)("Your are tracking %1$s out of %2$s keyphrases included in your account.","wordpress-seo"),r,e),i=a?o:n,c=(0,l.sprintf)((0,l.__)("Keyphrases tracked: %1$s/%2$s","wordpress-seo"),r,e),d=s?c:i;return(0,t.createElement)(Te,null,s&&(0,t.createElement)(Se,{icon:"exclamation-triangle",color:ve.colors.$color_pink_dark,size:"14px"}),d)};Pe.propTypes={limit:_().number.isRequired,usage:_().number.isRequired,isTitleShortened:_().bool,isFreeAccount:_().bool};const Le=(0,J.makeOutboundLink)(),Fe=({discount:e,months:r})=>{const s=(0,t.createElement)(Le,{href:wpseoAdminGlobalL10n["links.wincher.upgrade"],style:{fontWeight:600}},(0,l.sprintf)((0,l.__)("Click here to upgrade your %s plan","wordpress-seo"),"Wincher"));if(!e||!r)return(0,t.createElement)(Ce,null,s);const a=100*e,o=(0,l.sprintf)((0,l.__)("%1$s and get an exclusive %2$s discount for %3$s month(s).","wordpress-seo"),"{{wincherAccountUpgradeLink/}}",a+"%",r);return(0,t.createElement)(Ce,null,(0,ye.Z)({mixedString:o,components:{wincherAccountUpgradeLink:s}}))};Fe.propTypes={discount:_().number,months:_().number};const Me=({onClose:e,isTitleShortened:r,trackingInfo:s})=>{const a=(()=>{const[e,t]=(0,i.useState)(null);return(0,i.useEffect)((()=>{e||async function(){return await _e({path:"yoast/v1/wincher/account/upgrade-campaign",method:"GET"})}().then((e=>t(e)))}),[e]),e})();if(null===s)return null;const{limit:o,usage:n}=s;if(!(o&&n/o>=.8))return null;const c=Boolean(null==a?void 0:a.discount);return(0,t.createElement)(Ie,{isTitleShortened:r},e&&(0,t.createElement)(Re,{type:"button","aria-label":(0,l.__)("Close the upgrade callout","wordpress-seo"),onClick:e},(0,t.createElement)(Q.SvgIcon,{icon:"times-circle",color:ve.colors.$color_pink_dark,size:"14px"})),(0,t.createElement)(Pe,{...s,isTitleShortened:r,isFreeAccount:c}),(0,t.createElement)(Fe,{discount:null==a?void 0:a.discount,months:null==a?void 0:a.months}))};Me.propTypes={onClose:_().func,isTitleShortened:_().bool,trackingInfo:_().object};const Oe=Me,Ne=()=>(0,t.createElement)(Q.Alert,{type:"success"},(0,l.sprintf)((0,l.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher")),qe=()=>(0,t.createElement)(Q.Alert,{type:"info"},(0,l.sprintf)((0,l.__)("%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")),De=({data:e,mapChartDataToTableData:r,dataTableCaption:s,dataTableHeaderLabels:a,isDataTableVisuallyHidden:o})=>e.length!==a.length?(0,t.createElement)("p",null,(0,l.__)("The number of headers and header labels don't match.","wordpress-seo")):(0,t.createElement)("div",{className:o?"screen-reader-text":null},(0,t.createElement)("table",null,(0,t.createElement)("caption",null,s),(0,t.createElement)("thead",null,(0,t.createElement)("tr",null,a.map(((e,r)=>(0,t.createElement)("th",{key:r},e))))),(0,t.createElement)("tbody",null,(0,t.createElement)("tr",null,e.map(((e,s)=>(0,t.createElement)("td",{key:s},r(e.y))))))));De.propTypes={data:_().arrayOf(_().shape({x:_().number,y:_().number})).isRequired,mapChartDataToTableData:_().func,dataTableCaption:_().string.isRequired,dataTableHeaderLabels:_().array.isRequired,isDataTableVisuallyHidden:_().bool},De.defaultProps={mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};const $e=De,Be=({data:e,width:r,height:s,fillColor:a,strokeColor:o,strokeWidth:n,className:l,mapChartDataToTableData:c,dataTableCaption:d,dataTableHeaderLabels:p,isDataTableVisuallyHidden:u})=>{const m=Math.max(1,Math.max(...e.map((e=>e.x)))),h=Math.max(1,Math.max(...e.map((e=>e.y)))),g=s-n,y=e.map((e=>`${e.x/m*r},${g-e.y/h*g+n}`)).join(" "),f=`0,${g+n} `+y+` ${r},${g+n}`;return(0,t.createElement)(i.Fragment,null,(0,t.createElement)("svg",{width:r,height:s,viewBox:`0 0 ${r} ${s}`,className:l,role:"img","aria-hidden":"true",focusable:"false"},(0,t.createElement)("polygon",{fill:a,points:f}),(0,t.createElement)("polyline",{fill:"none",stroke:o,strokeWidth:n,strokeLinejoin:"round",strokeLinecap:"round",points:y})),c&&(0,t.createElement)($e,{data:e,mapChartDataToTableData:c,dataTableCaption:d,dataTableHeaderLabels:p,isDataTableVisuallyHidden:u}))};Be.propTypes={data:_().arrayOf(_().shape({x:_().number,y:_().number})).isRequired,width:_().number.isRequired,height:_().number.isRequired,fillColor:_().string,strokeColor:_().string,strokeWidth:_().number,className:_().string,mapChartDataToTableData:_().func,dataTableCaption:_().string.isRequired,dataTableHeaderLabels:_().array.isRequired,isDataTableVisuallyHidden:_().bool},Be.defaultProps={fillColor:null,strokeColor:"#000000",strokeWidth:1,className:"",mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};const We=Be,Ue=()=>(0,t.createElement)("p",{className:"yoast-wincher-seo-performance-modal__loading-message"},(0,l.__)("Tracking the ranking position...","wordpress-seo")," ",(0,t.createElement)(Q.SvgIcon,{icon:"loading-spinner"})),Ke=N()(Q.SvgIcon)`
	margin-left: 2px;
	flex-shrink: 0;
	rotate: ${e=>e.isImproving?"-90deg":"90deg"};
`,ze=N().span`
	color: ${e=>e.isImproving?"#69AB56":"#DC3332"};
	font-size: 13px;
	font-weight: 600;
	line-height: 20px;
	margin-right: 2px;
	margin-left: 12px;
`,He=N().td`
	padding-right: 0 !important;

	& > div {
		margin: 0px;
	}
`,Ve=N().td`
	padding-left: 2px !important;
`,je=N().td.attrs({className:"yoast-table--nopadding"})`
	& > div {
		justify-content: center;
	}
`,Ye=N().div`
	display: flex;
	align-items: center;
	& > a {
		box-sizing: border-box;
	}
`,Ge=N().button`
	background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
    display: flex;
    align-items: center;
`,Ze=N().tr`
	background-color: ${e=>e.isEnabled?"#FFFFFF":"#F9F9F9"} !important;
`;function Xe(e){return Math.round(100*e)}function Qe({chartData:e}){if((0,m.isEmpty)(e)||(0,m.isEmpty)(e.position))return"?";const r=function(e){return Array.from({length:e.position.history.length},((e,t)=>t+1)).map((e=>(0,l.sprintf)((0,l._n)("%d day","%d days",e,"wordpress-seo"),e)))}(e),s=e.position.history.map(((e,t)=>({x:t,y:101-e.value})));return(0,t.createElement)(We,{width:66,height:24,data:s,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",mapChartDataToTableData:Xe,dataTableCaption:(0,l.__)("Keyphrase position in the last 90 days on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:r})}Qe.propTypes={chartData:_().object},Qe.defaultProps={chartData:{}};const Je=({rowData:e})=>{var r;if(null==e||null===(r=e.position)||void 0===r||!r.change)return(0,t.createElement)(Qe,{chartData:e});const s=e.position.change<0;return(0,t.createElement)(i.Fragment,null,(0,t.createElement)(Qe,{chartData:e}),(0,t.createElement)(ze,{isImproving:s},Math.abs(e.position.change)),(0,t.createElement)(Ke,{icon:"caret-right",color:s?"#69AB56":"#DC3332",size:"14px",isImproving:s}))};function et(e){var r;const{keyphrase:s,rowData:a,onTrackKeyphrase:o,onUntrackKeyphrase:n,isFocusKeyphrase:c,isDisabled:d,isLoading:p,isSelected:u,onSelectKeyphrases:h}=e,g=!(0,m.isEmpty)(a),y=!(0,m.isEmpty)(null==a||null===(r=a.position)||void 0===r?void 0:r.history),f=(0,i.useCallback)((()=>{d||(g?n(s,a.id):o(s))}),[s,o,n,g,a,d]),w=(0,i.useCallback)((()=>{h((e=>u?e.filter((e=>e!==s)):e.concat(s)))}),[h,u,s]);return(0,t.createElement)(Ze,{isEnabled:g},(0,t.createElement)(He,null,y&&(0,t.createElement)(Q.Checkbox,{id:"select-"+s,onChange:w,checked:u,label:""})),(0,t.createElement)(Ve,null,s,c&&(0,t.createElement)("span",null,"*")),function(e){const{rowData:r,websiteId:s,keyphrase:a,onSelectKeyphrases:o}=e,n=(0,i.useCallback)((()=>{o([a])}),[o,a]),c=!(0,m.isEmpty)(r),d=r&&r.updated_at&&ge()(r.updated_at)>=ge()().subtract(7,"days"),p=r?(0,l.sprintf)("https://app.wincher.com/websites/%s/keywords?serp=%s&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast",s,r.id):null;return c?d?(0,t.createElement)(i.Fragment,null,(0,t.createElement)("td",null,(0,t.createElement)(Ye,null,function(e){return!e||!e.position||e.position.value>100?"> 100":e.position.value}(r),(0,t.createElement)(Q.ButtonStyledLink,{variant:"secondary",href:p,style:{height:28,marginLeft:12},rel:"noopener",target:"_blank"},(0,l.__)("View","wordpress-seo")))),(0,t.createElement)("td",{className:"yoast-table--nopadding"},(0,t.createElement)(Ge,{type:"button",onClick:n},(0,t.createElement)(Je,{rowData:r}))),(0,t.createElement)("td",null,(u=r.updated_at,ge()(u).fromNow()))):(0,t.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},(0,t.createElement)(Ue,null)):(0,t.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},(0,t.createElement)("i",null,(0,l.__)("Activate tracking to show the ranking position","wordpress-seo")));var u}(e),(0,t.createElement)(je,null,function({keyphrase:e,isEnabled:r,toggleAction:s,isLoading:a}){return a?(0,t.createElement)(Q.SvgIcon,{icon:"loading-spinner"}):(0,t.createElement)(Q.Toggle,{id:`toggle-keyphrase-tracking-${e}`,className:"wincher-toggle",isEnabled:r,onSetToggleState:s,showToggleStateLabel:!1})}({keyphrase:s,isEnabled:g,toggleAction:f,isLoading:p})))}Je.propTypes={rowData:_().object},et.propTypes={rowData:_().object,keyphrase:_().string.isRequired,onTrackKeyphrase:_().func,onUntrackKeyphrase:_().func,isFocusKeyphrase:_().bool,isDisabled:_().bool,isLoading:_().bool,websiteId:_().string,isSelected:_().bool.isRequired,onSelectKeyphrases:_().func.isRequired},et.defaultProps={rowData:{},onTrackKeyphrase:()=>{},onUntrackKeyphrase:()=>{},isFocusKeyphrase:!1,isDisabled:!1,isLoading:!1,websiteId:""};const tt=(0,J.makeOutboundLink)(),rt=N().span`
	display: block;
	font-style: italic;

	@media (min-width: 782px) {
		display: inline;
		position: absolute;
		${(0,J.getDirectionalStyle)("right","left")}: 8px;
	}
`,st=N().div`
	width: 100%;
	overflow-y: auto;
`,at=N().th`
	pointer-events: ${e=>e.isDisabled?"none":"initial"};
	padding-right: 0 !important;

	& > div {
		margin: 0px;
	}
`,ot=N().th`
	padding-left: 2px !important;
`,nt=e=>{const t=(0,i.useRef)();return(0,i.useEffect)((()=>{t.current=e})),t.current},it=(0,m.debounce)((async function(e=null,t=null,r=null,s){return await _e({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:e,permalink:r,startAt:t},signal:s})}),500,{leading:!0}),lt=e=>{const{addTrackedKeyphrase:r,isLoggedIn:s,keyphrases:a,permalink:o,removeTrackedKeyphrase:n,setKeyphraseLimitReached:c,setRequestFailed:d,setRequestSucceeded:p,setTrackedKeyphrases:u,setHasTrackedAll:h,trackAll:g,trackedKeyphrases:y,isNewlyAuthenticated:f,websiteId:w,focusKeyphrase:b,newRequest:E,startAt:v,selectedKeyphrases:k,onSelectKeyphrases:_}=e,x=(0,i.useRef)(),T=(0,i.useRef)(),S=(0,i.useRef)(!1),[R,C]=(0,i.useState)([]),I=(0,i.useCallback)((e=>{const t=e.toLowerCase();return y&&!(0,m.isEmpty)(y)&&y.hasOwnProperty(t)?y[t]:null}),[y]),A=(0,i.useMemo)((()=>async()=>{await ke((()=>(T.current&&T.current.abort(),T.current="undefined"==typeof AbortController?null:new AbortController,it(a,v,o,T.current.signal))),(e=>{p(e),u(e.results)}),(e=>{d(e)}))}),[p,d,u,a,o,v]),P=(0,i.useCallback)((async e=>{const t=(Array.isArray(e)?e:[e]).map((e=>e.toLowerCase()));C((e=>[...e,...t])),await ke((()=>xe(t)),(e=>{p(e),r(e.results),A()}),(e=>{400===e.status&&e.limit&&c(e.limit),d(e)}),201),C((e=>(0,m.without)(e,...t)))}),[p,d,c,r,A]),L=(0,i.useCallback)((async(e,t)=>{e=e.toLowerCase(),C((t=>[...t,e])),await ke((()=>async function(e){return await _e({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:e}})}(t)),(t=>{p(t),n(e)}),(e=>{d(e)})),C((t=>(0,m.without)(t,e)))}),[p,n,d]),F=(0,i.useCallback)((async e=>{E(),await P(e)}),[E,P]),M=nt(o),O=nt(a),N=nt(v),q=o&&v;(0,i.useEffect)((()=>{s&&q&&(o!==M||(0,m.difference)(a,O).length||v!==N)&&A()}),[s,o,M,a,O,A,q,v,N]),(0,i.useEffect)((()=>{if(s&&g&&null!==y){const e=a.filter((e=>!I(e)));e.length&&P(e),h()}}),[s,g,y,P,h,I,a]),(0,i.useEffect)((()=>{f&&!S.current&&(A(),S.current=!0)}),[f,A]),(0,i.useEffect)((()=>{if(s&&!(0,m.isEmpty)(y))return(0,m.filter)(y,(e=>(0,m.isEmpty)(e.updated_at))).length>0&&(x.current=setInterval((()=>{A()}),1e4)),()=>{clearInterval(x.current)}}),[s,y,A]);const D=s&&null===y,$=(0,i.useMemo)((()=>(0,m.isEmpty)(y)?[]:Object.values(y).filter((e=>{var t;return!(0,m.isEmpty)(null==e||null===(t=e.position)||void 0===t?void 0:t.history)})).map((e=>e.keyword))),[y]),B=(0,i.useMemo)((()=>k.length>0&&$.length>0&&$.every((e=>k.includes(e)))),[k,$]),W=(0,i.useCallback)((()=>{_(B?[]:$)}),[_,B,$]),U=(0,i.useMemo)((()=>(0,m.orderBy)(a,[e=>Object.values(y||{}).map((e=>e.keyword)).includes(e)],["desc"])),[a,y]);return a&&!(0,m.isEmpty)(a)&&(0,t.createElement)(i.Fragment,null,(0,t.createElement)(st,null,(0,t.createElement)("table",{className:"yoast yoast-table"},(0,t.createElement)("thead",null,(0,t.createElement)("tr",null,(0,t.createElement)(at,{isDisabled:0===$.length},(0,t.createElement)(Q.Checkbox,{id:"select-all",onChange:W,checked:B,label:""})),(0,t.createElement)(ot,{scope:"col",abbr:(0,l.__)("Keyphrase","wordpress-seo")},(0,l.__)("Keyphrase","wordpress-seo")),(0,t.createElement)("th",{scope:"col",abbr:(0,l.__)("Position","wordpress-seo")},(0,l.__)("Position","wordpress-seo")),(0,t.createElement)("th",{scope:"col",abbr:(0,l.__)("Position over time","wordpress-seo")},(0,l.__)("Position over time","wordpress-seo")),(0,t.createElement)("th",{scope:"col",abbr:(0,l.__)("Last updated","wordpress-seo")},(0,l.__)("Last updated","wordpress-seo")),(0,t.createElement)("th",{scope:"col",abbr:(0,l.__)("Tracking","wordpress-seo")},(0,l.__)("Tracking","wordpress-seo")))),(0,t.createElement)("tbody",null,U.map(((e,r)=>(0,t.createElement)(et,{key:`trackable-keyphrase-${r}`,keyphrase:e,onTrackKeyphrase:F,onUntrackKeyphrase:L,rowData:I(e),isFocusKeyphrase:e===b.trim().toLowerCase(),websiteId:w,isDisabled:!s,isLoading:D||R.indexOf(e.toLowerCase())>=0,isSelected:k.includes(e),onSelectKeyphrases:_})))))),(0,t.createElement)("p",{style:{marginBottom:0,position:"relative"}},(0,t.createElement)(tt,{href:wpseoAdminGlobalL10n["links.wincher.login"]},(0,l.sprintf)((0,l.__)("Get more insights over at %s","wordpress-seo"),"Wincher")),(0,t.createElement)(rt,null,(0,l.__)("* focus keyphrase","wordpress-seo"))))};lt.propTypes={addTrackedKeyphrase:_().func.isRequired,isLoggedIn:_().bool,isNewlyAuthenticated:_().bool,keyphrases:_().array,newRequest:_().func.isRequired,removeTrackedKeyphrase:_().func.isRequired,setRequestFailed:_().func.isRequired,setKeyphraseLimitReached:_().func.isRequired,setRequestSucceeded:_().func.isRequired,setTrackedKeyphrases:_().func.isRequired,setHasTrackedAll:_().func.isRequired,trackAll:_().bool,trackedKeyphrases:_().object,websiteId:_().string,permalink:_().string.isRequired,focusKeyphrase:_().string,startAt:_().string,selectedKeyphrases:_().arrayOf(_().string).isRequired,onSelectKeyphrases:_().func.isRequired},lt.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],trackAll:!1,websiteId:"",focusKeyphrase:""};const ct=lt,dt=(0,H.compose)([(0,o.withSelect)((e=>{const{getWincherWebsiteId:t,getWincherTrackableKeyphrases:r,getWincherLoginStatus:s,getWincherPermalink:a,getFocusKeyphrase:o,isWincherNewlyAuthenticated:n,shouldWincherTrackAll:i}=e("yoast-seo/editor");return{focusKeyphrase:o(),keyphrases:r(),isLoggedIn:s(),trackAll:i(),websiteId:t(),isNewlyAuthenticated:n(),permalink:a()}})),(0,o.withDispatch)((e=>{const{setWincherNewRequest:t,setWincherRequestSucceeded:r,setWincherRequestFailed:s,setWincherSetKeyphraseLimitReached:a,setWincherTrackedKeyphrases:o,setWincherTrackingForKeyphrase:n,setWincherTrackAllKeyphrases:i,unsetWincherTrackingForKeyphrase:l}=e("yoast-seo/editor");return{newRequest:()=>{t()},setRequestSucceeded:e=>{r(e)},setRequestFailed:e=>{s(e)},setKeyphraseLimitReached:e=>{a(e)},addTrackedKeyphrase:e=>{n(e)},removeTrackedKeyphrase:e=>{l(e)},setTrackedKeyphrases:e=>{o(e)},setHasTrackedAll:()=>{i(!1)}}}))])(ct),pt=(0,J.makeOutboundLink)(),ut=(0,J.makeOutboundLink)(),mt=()=>{const e=(0,l.sprintf)((0,l.__)("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(0,t.createElement)("p",null,(0,ye.Z)({mixedString:e,components:{wincherLink:(0,t.createElement)(pt,{href:wpseoAdminGlobalL10n["links.wincher.website"]},"Wincher"),wincherReadMoreLink:(0,t.createElement)(ut,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"]},(0,l.__)("Read more about keyphrase tracking with Wincher","wordpress-seo"))}}))},ht=()=>(0,t.createElement)(Q.Alert,{type:"error"},(0,l.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo")),gt=()=>(0,t.createElement)(Q.Alert,{type:"info"},(0,l.sprintf)((0,l.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher"));class yt{constructor(e,t={},r={}){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:""},r),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:r}=this.options,s=["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,r,s.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}async messageHandler(e){const{data:t,source:r,origin:s}=e;s===this.origin&&this.popup===r&&(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()}}const ft=e=>{const r=(0,l.sprintf)((0,l.__)("It seems like something went wrong when retrieving your website's data. Please %s and try again.","wordpress-seo"),"{{reconnectToWincher/}}","Wincher");return(0,t.createElement)(Q.Alert,{type:"error",className:e.className},(0,ye.Z)({mixedString:r,components:{reconnectToWincher:(0,t.createElement)("a",{href:"#",onClick:t=>{t.preventDefault(),e.onReconnect()}},(0,l.sprintf)((0,l.__)("reconnect to %s","wordpress-seo"),"Wincher"))}}))};ft.propTypes={onReconnect:_().func.isRequired,className:_().string},ft.defaultProps={className:""};const wt=ft,bt=()=>(0,t.createElement)(Q.Alert,{type:"error"},(0,l.__)("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")),Et=window.yoast["chart.js"],vt="label";function kt(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function _t(e,t){e.labels=t}function xt(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vt;const s=[];e.datasets=t.map((t=>{const a=e.datasets.find((e=>e[r]===t[r]));return a&&t.data&&!s.includes(a)?(s.push(a),Object.assign(a,t),a):{...t}}))}function Tt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vt;const r={labels:[],datasets:[]};return _t(r,e.labels),xt(r,e.datasets,t),r}function St(e,r){const{height:s=150,width:a=300,redraw:o=!1,datasetIdKey:n,type:i,data:l,options:c,plugins:d=[],fallbackContent:p,updateMode:u,...m}=e,h=(0,t.useRef)(null),g=(0,t.useRef)(),y=()=>{h.current&&(g.current=new Et.Chart(h.current,{type:i,data:Tt(l,n),options:c&&{...c},plugins:d}),kt(r,g.current))},f=()=>{kt(r,null),g.current&&(g.current.destroy(),g.current=null)};return(0,t.useEffect)((()=>{!o&&g.current&&c&&function(e,t){const r=e.options;r&&t&&Object.assign(r,t)}(g.current,c)}),[o,c]),(0,t.useEffect)((()=>{!o&&g.current&&_t(g.current.config.data,l.labels)}),[o,l.labels]),(0,t.useEffect)((()=>{!o&&g.current&&l.datasets&&xt(g.current.config.data,l.datasets,n)}),[o,l.datasets]),(0,t.useEffect)((()=>{g.current&&(o?(f(),setTimeout(y)):g.current.update(u))}),[o,c,l.labels,l.datasets,u]),(0,t.useEffect)((()=>{g.current&&(f(),setTimeout(y))}),[i]),(0,t.useEffect)((()=>(y(),()=>f())),[]),t.createElement("canvas",Object.assign({ref:h,role:"img",height:s,width:a},m),p)}const Rt=(0,t.forwardRef)(St);function Ct(e,r){return Et.Chart.register(r),(0,t.forwardRef)(((r,s)=>t.createElement(Rt,Object.assign({},r,{ref:s,type:e}))))}const It=Ct("line",Et.LineController),At={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};Et._adapters._date.override("function"==typeof ge()?{_id:"moment",formats:function(){return At},parse:function(e,t){return"string"==typeof e&&"string"==typeof t?e=ge()(e,t):e instanceof ge()||(e=ge()(e)),e.isValid()?e.valueOf():null},format:function(e,t){return ge()(e).format(t)},add:function(e,t,r){return ge()(e).add(t,r).valueOf()},diff:function(e,t,r){return ge()(e).diff(ge()(t),r)},startOf:function(e,t,r){return e=ge()(e),"isoWeek"===t?(r=Math.trunc(Math.min(Math.max(0,r),6)),e.isoWeekday(r).startOf("day").valueOf()):e.startOf(t).valueOf()},endOf:function(e,t){return ge()(e).endOf(t).valueOf()}}:{}),Math.PI,Number.POSITIVE_INFINITY,Math.log10,Math.sign,"undefined"==typeof window||window.requestAnimationFrame,new Map,Object.create(null),Object.create(null),Number.EPSILON;const Pt=["top","right","bottom","left"];function Lt(e,t,r){const s={};r=r?"-"+r:"";for(let a=0;a<4;a++){const o=Pt[a];s[o]=parseFloat(e[t+"-"+o+r])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}!function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}}(),Et.Chart.register(Et.CategoryScale,Et.LineController,Et.LineElement,Et.PointElement,Et.LinearScale,Et.TimeScale,Et.Legend,Et.Tooltip);const Ft=["#ff983b","#ffa3f7","#3798ff","#ff3b3b","#acce81","#b51751","#3949ab","#26c6da","#ccb800","#de66ff","#4db6ac","#ffab91","#45f5f1","#77f210","#90a4ae","#ffd54f","#006b5e","#8ec7d2","#b1887c","#cc9300"];function Mt({datasets:e,isChartShown:r,keyphrases:s}){if(!r)return null;const a=(0,i.useMemo)((()=>Object.fromEntries([...s].sort().map(((e,t)=>[e,Ft[t%Ft.length]])))),[s]),o=e.map((e=>{const t=a[e.label];return{...e,data:e.data.map((({datetime:e,value:t})=>({x:e,y:t}))),lineTension:0,pointRadius:1,pointHoverRadius:4,borderWidth:2,pointHitRadius:6,backgroundColor:t,borderColor:t}})).filter((e=>!1!==e.selected));return(0,t.createElement)(It,{height:100,data:{datasets:o},options:{plugins:{legend:{display:!0,position:"bottom",labels:{color:"black",usePointStyle:!0,boxHeight:7,boxWidth:7},onClick:m.noop},tooltip:{enabled:!0,callbacks:{title:e=>ge()(e[0].raw.x).utc().format("YYYY-MM-DD")},titleAlign:"center",mode:"xPoint",position:"nearest",usePointStyle:!0,boxHeight:7,boxWidth:7,boxPadding:2}},scales:{x:{bounds:"ticks",type:"time",time:{unit:"day",minUnit:"day"},grid:{display:!1},ticks:{autoSkipPadding:50,maxRotation:0,color:"black"}},y:{bounds:"ticks",offset:!0,reverse:!0,ticks:{precision:0,color:"black"},max:101}}}})}Et.Interaction.modes.xPoint=(e,t,r,s)=>{const a=function(e,t){if("native"in e)return e;const{canvas:r,currentDevicePixelRatio:s}=t,a=(m=r).ownerDocument.defaultView.getComputedStyle(m,null),o="border-box"===a.boxSizing,n=Lt(a,"padding"),i=Lt(a,"border","width"),{x:l,y:c,box:d}=function(e,t){const r=e.touches,s=r&&r.length?r[0]:e,{offsetX:a,offsetY:o}=s;let n,i,l=!1;if(((e,t,r)=>(e>0||t>0)&&(!r||!r.shadowRoot))(a,o,e.target))n=a,i=o;else{const e=t.getBoundingClientRect();n=s.clientX-e.left,i=s.clientY-e.top,l=!0}return{x:n,y:i,box:l}}(e,r),p=n.left+(d&&i.left),u=n.top+(d&&i.top);var m;let{width:h,height:g}=t;return o&&(h-=n.width+i.width,g-=n.height+i.height),{x:Math.round((l-p)/h*r.width/s),y:Math.round((c-u)/g*r.height/s)}}(t,e);let o=[];if(Et.Interaction.evaluateInteractionItems(e,"x",a,((e,t,r)=>{e.inXRange(a.x,s)&&o.push({element:e,datasetIndex:t,index:r})})),0===o.length)return o;const n=o.reduce(((e,t)=>Math.abs(a.x-e.element.x)<Math.abs(a.x-t.element.x)?e:t)).element.x;return o=o.filter((e=>e.element.x===n)),o.some((e=>Math.abs(e.element.y-a.y)<10))?o:[]},Mt.propTypes={datasets:_().arrayOf(_().shape({label:_().string.isRequired,data:_().arrayOf(_().shape({datetime:_().string.isRequired,value:_().number.isRequired})).isRequired,selected:_().bool})).isRequired,isChartShown:_().bool.isRequired,keyphrases:_().array.isRequired};const Ot=({response:e,onLogin:r})=>[401,403,404].includes(e.status)?(0,t.createElement)(wt,{onReconnect:r}):(0,t.createElement)(Ee,null);Ot.propTypes={response:_().object.isRequired,onLogin:_().func.isRequired};const Nt=({isSuccess:e,response:r,allKeyphrasesMissRanking:s,onLogin:a,keyphraseLimitReached:o,limit:n})=>o?(0,t.createElement)(be,{limit:n}):(0,m.isEmpty)(r)||e?s?(0,t.createElement)(qe,null):null:(0,t.createElement)(Ot,{response:r,onLogin:a});Nt.propTypes={isSuccess:_().bool.isRequired,allKeyphrasesMissRanking:_().bool.isRequired,response:_().object,onLogin:_().func.isRequired,keyphraseLimitReached:_().bool.isRequired,limit:_().number.isRequired},Nt.defaultProps={response:{}};let qt=null;const Dt=async e=>{if(qt&&!qt.isClosed())return void qt.focus();const{url:t}=await async function(){return await _e({path:"yoast/v1/wincher/authorization-url",method:"GET"})}();qt=new yt(t,{success:{type:"wincher:oauth:success",callback:t=>(async(e,t)=>{const{onAuthentication:r,setRequestSucceeded:s,setRequestFailed:a,keyphrases:o,addTrackedKeyphrase:n,setKeyphraseLimitReached:i}=e;await ke((()=>async function(e){const{code:t,websiteId:r}=e;return await _e({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:t,websiteId:r}})}(t)),(async e=>{r(!0,!0,t.websiteId.toString()),s(e);const l=(Array.isArray(o)?o:[o]).map((e=>e.toLowerCase()));await ke((()=>xe(l)),(e=>{s(e),n(e.results)}),(e=>{400===e.status&&e.limit&&i(e.limit),a(e)}),201);const c=qt.getPopup();c&&c.close()}),(async e=>a(e)))})(e,t)},error:{type:"wincher:oauth:error",callback:()=>e.onAuthentication(!1,!1)}},{title:"Wincher_login",width:500,height:700}),qt.createPopup()},$t=e=>e.isLoggedIn?null:(0,t.createElement)("p",null,(0,t.createElement)(Q.NewButton,{onClick:e.onLogin,variant:"primary"},(0,l.sprintf)((0,l.__)("Connect with %s","wordpress-seo"),"Wincher")));$t.propTypes={isLoggedIn:_().bool.isRequired,onLogin:_().func.isRequired};const Bt=N().div`
	p {
		margin: 1em 0;
	}
`,Wt=N().div`
	${e=>e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"};
`,Ut=N().div`
	font-weight: var(--yoast-font-weight-bold);
	color: var(--yoast-color-label);
	font-size: var(--yoast-font-size-default);
`,Kt=N().div.attrs({className:"yoast-field-group"})`
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
`,zt=N().div`
	margin: 8px 0;
`,Ht=ge().utc().startOf("day"),Vt=[{name:(0,l.__)("Last day","wordpress-seo"),value:ge()(Ht).subtract(1,"days").format(),defaultIndex:1},{name:(0,l.__)("Last week","wordpress-seo"),value:ge()(Ht).subtract(1,"week").format(),defaultIndex:2},{name:(0,l.__)("Last month","wordpress-seo"),value:ge()(Ht).subtract(1,"month").format(),defaultIndex:3},{name:(0,l.__)("Last year","wordpress-seo"),value:ge()(Ht).subtract(1,"year").format(),defaultIndex:0}],jt=e=>{const{onSelect:r,selected:s,options:a,isLoggedIn:o}=e;return o?a.length<1?null:(0,t.createElement)("select",{className:"components-select-control__input",id:"wincher-period-picker",value:(null==s?void 0:s.value)||a[0].value,onChange:r},a.map((e=>(0,t.createElement)("option",{key:e.name,value:e.value},e.name)))):null};jt.propTypes={onSelect:_().func.isRequired,selected:_().object,options:_().array.isRequired,isLoggedIn:_().bool.isRequired};const Yt=e=>{const{trackedKeyphrases:r,isLoggedIn:s,keyphrases:a,shouldTrackAll:o,permalink:n,historyDaysLimit:c}=e;if(!n&&s)return(0,t.createElement)(bt,null);if(0===a.length)return(0,t.createElement)(ht,null);const d=ge()(Ht).subtract(c,"days"),p=Vt.filter((e=>ge()(e.value).isSameOrAfter(d))),u=(0,m.orderBy)(p,(e=>e.defaultIndex),"desc")[0],[h,g]=(0,i.useState)(u),[y,f]=(0,i.useState)([]),w=y.length>0,b=(0,H.usePrevious)(r);(0,i.useEffect)((()=>{if(!(0,m.isEmpty)(r)&&(0,m.difference)(Object.keys(r),Object.keys(b||[])).length){const e=Object.values(r).map((e=>e.keyword));f(e)}}),[r,b]),(0,i.useEffect)((()=>{g(u)}),[null==u?void 0:u.name]);const E=(0,i.useCallback)((e=>{const t=Vt.find((t=>t.value===e.target.value));t&&g(t)}),[g]),v=(0,i.useMemo)((()=>(0,m.isEmpty)(y)||(0,m.isEmpty)(r)?[]:Object.values(r).filter((e=>{var t;return!(null==e||null===(t=e.position)||void 0===t||!t.history)})).map((e=>{var t;return{label:e.keyword,data:e.position.history,selected:y.includes(e.keyword)&&!(0,m.isEmpty)(null===(t=e.position)||void 0===t?void 0:t.history)}}))),[y,r]);return(0,t.createElement)(Wt,{isDisabled:!s},(0,t.createElement)("p",null,(0,l.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")),s&&o&&(0,t.createElement)(gt,null),(0,t.createElement)(Kt,null,(0,t.createElement)(jt,{selected:h,onSelect:E,options:p,isLoggedIn:s})),(0,t.createElement)(zt,null,(0,t.createElement)(Mt,{isChartShown:w,datasets:v,keyphrases:a})),(0,t.createElement)(dt,{startAt:null==h?void 0:h.value,selectedKeyphrases:y,onSelectKeyphrases:f,trackedKeyphrases:r}))};function Gt(e){const{isNewlyAuthenticated:r,isLoggedIn:s}=e,a=(0,i.useCallback)((()=>{Dt(e)}),[Dt,e]),o=Ae(s);return(0,t.createElement)(Bt,null,r&&(0,t.createElement)(Ne,null),s&&(0,t.createElement)(Oe,{trackingInfo:o}),(0,t.createElement)(Ut,null,(0,l.__)("SEO performance","wordpress-seo"),(0,t.createElement)(Q.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"],linkText:(0,l.__)("Learn more about the SEO performance feature.","wordpress-seo")})),(0,t.createElement)(mt,null),(0,t.createElement)($t,{isLoggedIn:s,onLogin:a}),(0,t.createElement)(Nt,{...e,onLogin:a}),(0,t.createElement)(Yt,{...e,historyDaysLimit:(null==o?void 0:o.historyDays)||31}))}Yt.propTypes={trackedKeyphrases:_().object,keyphrases:_().array.isRequired,isLoggedIn:_().bool.isRequired,shouldTrackAll:_().bool.isRequired,permalink:_().string.isRequired,historyDaysLimit:_().number},Gt.propTypes={trackedKeyphrases:_().object,addTrackedKeyphrase:_().func.isRequired,isLoggedIn:_().bool,isNewlyAuthenticated:_().bool,keyphrases:_().array,response:_().object,shouldTrackAll:_().bool,permalink:_().string,historyDaysLimit:_().number},Gt.defaultProps={trackedKeyphrases:null,isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],response:{},shouldTrackAll:!1,permalink:"",historyDaysLimit:0};const Zt=(0,H.compose)([(0,o.withSelect)((e=>{const{isWincherNewlyAuthenticated:t,getWincherKeyphraseLimitReached:r,getWincherLimit:s,getWincherHistoryDaysLimit:a,getWincherLoginStatus:o,getWincherRequestIsSuccess:n,getWincherRequestResponse:i,getWincherTrackableKeyphrases:l,getWincherTrackedKeyphrases:c,getWincherAllKeyphrasesMissRanking:d,getWincherPermalink:p,shouldWincherAutomaticallyTrackAll:u}=e("yoast-seo/editor");return{keyphrases:l(),trackedKeyphrases:c(),allKeyphrasesMissRanking:d(),isLoggedIn:o(),isNewlyAuthenticated:t(),isSuccess:n(),keyphraseLimitReached:r(),limit:s(),response:i(),shouldTrackAll:u(),permalink:p(),historyDaysLimit:a()}})),(0,o.withDispatch)((e=>{const{setWincherWebsiteId:t,setWincherRequestSucceeded:r,setWincherRequestFailed:s,setWincherTrackingForKeyphrase:a,setWincherSetKeyphraseLimitReached:o,setWincherLoginStatus:n}=e("yoast-seo/editor");return{setRequestSucceeded:e=>{r(e)},setRequestFailed:e=>{s(e)},addTrackedKeyphrase:e=>{a(e)},setKeyphraseLimitReached:e=>{o(e)},onAuthentication:(e,r,s)=>{t(s),n(e,r)}}}))])(Gt),Xt=N()(V)`
	width: 18px;
	height: 18px;
	margin: 3px;
`;function Qt(e){const{keyphrases:t,onNoKeyphraseSet:r,onOpen:s,location:a}=e;if(!t.length){let e=document.querySelector("#focus-keyword-input-metabox");return e||(e=document.querySelector("#focus-keyword-input-sidebar")),e.focus(),void r()}s(a)}function Jt(e,t){pe(t)&&e.onClose()}function er(e){const{location:r,whichModalOpen:s,shouldCloseOnClickOutside:a}=e,o=(0,i.useCallback)((()=>{Qt(e)}),[Qt,e]),n=(0,i.useCallback)((t=>{Jt(e,t)}),[Jt,e]),c=(0,l.__)("Track SEO performance","wordpress-seo"),d=j();return(0,t.createElement)(i.Fragment,null,s===r&&(0,t.createElement)(ae,{title:c,onRequestClose:n,icon:(0,t.createElement)(le,null),additionalClassName:"yoast-wincher-seo-performance-modal yoast-gutenberg-modal__no-padding",shouldCloseOnClickOutside:a},(0,t.createElement)(ee,{className:"yoast-gutenberg-modal__content yoast-wincher-seo-performance-modal__content"},(0,t.createElement)(Zt,null))),"sidebar"===r&&(0,t.createElement)(de,{id:`wincher-open-button-${r}`,title:c,SuffixHeroIcon:(0,t.createElement)(Xt,{className:"yst-text-slate-500",...d}),onClick:o}),"metabox"===r&&(0,t.createElement)("div",{className:"yst-root"},(0,t.createElement)(X,{id:`wincher-open-button-${r}`,onClick:o},(0,t.createElement)(X.Text,null,c),(0,t.createElement)(V,{className:"yst-h-5 yst-w-5 yst-text-slate-500",...d}))))}er.propTypes={location:_().string,whichModalOpen:_().oneOf(["none","metabox","sidebar","postpublish"]),shouldCloseOnClickOutside:_().bool},er.defaultProps={location:"",whichModalOpen:"none",shouldCloseOnClickOutside:!0};const tr=(0,H.compose)([(0,o.withSelect)((e=>{const{getWincherModalOpen:t,getWincherTrackableKeyphrases:r}=e("yoast-seo/editor");return{keyphrases:r(),whichModalOpen:t()}})),(0,o.withDispatch)((e=>{const{setWincherOpenModal:t,setWincherDismissModal:r,setWincherNoKeyphrase:s}=e("yoast-seo/editor");return{onOpen:e=>{t(e)},onClose:()=>{r()},onNoKeyphraseSet:()=>{s()}}}))])(er),rr=window.yoast.externals.components;function sr(){return(0,H.createHigherOrderComponent)((function(e){return(0,H.pure)((function(t){const r=(0,i.useContext)(p.LocationContext);return(0,i.createElement)(e,{...t,location:r})}))}),"withLocation")}const ar=(0,H.compose)([(0,o.withSelect)((e=>{const{isCornerstoneContent:t}=e("yoast-seo/editor");return{isCornerstone:t(),learnMoreUrl:wpseoAdminL10n["shortlinks.cornerstone_content_info"]}})),(0,o.withDispatch)((e=>{const{toggleCornerstoneContent:t}=e("yoast-seo/editor");return{onChange:t}})),sr()])(rr.CollapsibleCornerstone),or=window.yoast.searchMetadataPreviews,nr=N()(Q.StyledSection)`
	&${Q.StyledSectionBase} {
		padding: 0;

		& ${Q.StyledHeading} {
			${(0,J.getDirectionalStyle)("padding-left","padding-right")}: 20px;
			margin-left: ${(0,J.getDirectionalStyle)("0","20px")};
		}
	}
`,ir=({children:e,title:r,icon:s,hasPaperStyle:a,shoppingData:o})=>(0,t.createElement)(nr,{headingLevel:3,headingText:r,headingIcon:s,headingIconColor:"#555",hasPaperStyle:a,shoppingData:o},e);ir.propTypes={children:_().element,title:_().string,icon:_().string,hasPaperStyle:_().bool,shoppingData:_().object},ir.defaultProps={hasPaperStyle:!0,shoppingData:null};const lr=ir,cr=window.wp.sanitize,dr="SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLE";function pr(e,t,r="",s=!1){const a="string"==typeof t?(0,J.decodeHTML)(t):t;return{type:dr,name:e,value:a,label:r,hidden:s}}function ur(e){return e.charAt(0).toUpperCase()+e.slice(1)}function mr(e,r,s=""){return(0,i.createInterpolateElement)(e,{a:(0,t.createElement)("a",{id:s,href:r,target:"_blank",rel:"noopener noreferrer"})})}const{stripHTMLTags:hr}=J.strings,gr=["slug","content","contentImage","snippetPreviewImageURL"];function yr(e,t="_"){return e.replace(/\s/g,t)}function fr(e,t=156){return(e=(e=(0,cr.stripTags)(e)).trim()).length<=t||(e=e.substring(0,t),/\s/.test(e)&&(e=e.substring(0,e.lastIndexOf(" ")))),e}const wr=(0,m.memoize)(((e,t)=>0===e?m.noop:(0,m.debounce)((r=>t(r,e)),500))),br=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))})),Er=window.yoast.uiLibrary,vr=({link:e,text:r})=>(0,t.createElement)(Er.Root,null,(0,t.createElement)("p",null,r),(0,t.createElement)(Er.Button,{href:e,as:"a",className:"yst-gap-2 yst-mb-5 yst-mt-2",variant:"upsell",target:"_blank",rel:"noopener"},(0,t.createElement)(br,{className:"yst-w-4 yst-h-4 yst--ml-1 yst-shrink-0"}),(0,l.sprintf)((0,l.__)("Unlock with %1$s","wordpress-seo"),"Yoast WooCommerce SEO")));vr.propTypes={link:_().string.isRequired,text:_().string.isRequired};const kr=vr,_r=function(e,t){let r=0;return t.shortenedBaseUrl&&"string"==typeof t.shortenedBaseUrl&&(r=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[r]&&(e.url=e.url.slice(0,r)+e.url.slice(r+1)),function(e){const t=(0,m.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!(0,m.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){const t=(0,m.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],m.identity);return{url:e.url,title:hr(t(e.title)),description:hr(t(e.description)),filteredSEOTitle:e.filteredSEOTitle?hr(t(e.filteredSEOTitle)):""}}(e);const r=t._applyModifications.bind(t);return{url:e.url,title:hr(r("data_page_title",e.title)),description:hr(r("data_meta_desc",e.description)),filteredSEOTitle:e.filteredSEOTitle?hr(r("data_page_title",e.filteredSEOTitle)):""}}(e)},xr=(0,H.compose)([(0,o.withSelect)((function(e){const{getBaseUrlFromSettings:t,getDateFromSettings:r,getFocusKeyphrase:s,getRecommendedReplaceVars:a,getReplaceVars:o,getShoppingData:n,getSiteIconUrlFromSettings:i,getSnippetEditorData:l,getSnippetEditorMode:c,getSnippetEditorPreviewImageUrl:d,getSnippetEditorWordsToHighlight:p,isCornerstoneContent:u,getIsTerm:m,getContentLocale:h,getSiteName:g}=e("yoast-seo/editor"),y=o();return y.forEach((e=>{""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(e.value="%%"+e.name+"%%")})),{baseUrl:t(),data:l(),date:r(),faviconSrc:i(),keyword:s(),mobileImageSrc:d(),mode:c(),recommendedReplacementVariables:a(),replacementVariables:y,shoppingData:n(),wordsToHighlight:p(),isCornerstone:u(),isTaxonomy:m(),locale:h(),siteName:g()}})),(0,o.withDispatch)((function(e,t,{select:r}){const{updateData:s,switchMode:a,updateAnalysisData:o,findCustomFields:n}=e("yoast-seo/editor"),i=e("core/editor"),l=r("yoast-seo/editor").getPostId();return{onChange:(e,t)=>{switch(e){case"mode":a(t);break;case"slug":s({slug:t}),i&&i.editPost({slug:t});break;default:s({[e]:t})}},onChangeAnalysisData:o,onReplacementVariableSearchChange:wr(l,n)}}))])((e=>{const r=(0,m.get)(window,"wpseoScriptData.metabox.woocommerceUpsellGooglePreviewLink",""),s=(0,m.get)(window,"wpseoScriptData.woocommerceUpsell",""),a=(0,l.__)("Want an enhanced Google preview of how your WooCommerce products look in the search results?","wordpress-seo");return(0,t.createElement)(p.LocationConsumer,null,(o=>(0,t.createElement)(lr,{icon:"eye",hasPaperStyle:e.hasPaperStyle},(0,t.createElement)(t.Fragment,null,s&&(0,t.createElement)(kr,{link:r,text:a}),(0,t.createElement)(or.SnippetEditor,{...e,descriptionPlaceholder:(0,l.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:_r,showCloseButton:!1,idSuffix:o})))))})),Tr=(0,o.withSelect)((e=>{const{getWarningMessage:t}=e("yoast-seo/editor");return{message:t()}}))(Q.Warning),Sr=window.yoast.featureFlag,Rr=N()(Q.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);
	}

`,Cr=e=>(0,t.createElement)(Rr,{hasPadding:!0,hasSeparator:!0,...e}),Ir=()=>{const e=(0,o.useSelect)((e=>e("yoast-seo/editor").getEstimatedReadingTime()),[]),r=(0,i.useMemo)((()=>(0,m.get)(window,"wpseoAdminL10n.shortlinks-insights-estimated_reading_time","")),[]);return(0,t.createElement)(Q.InsightsCard,{amount:e,unit:(0,l._n)("minute","minutes",e,"wordpress-seo"),title:(0,l.__)("Reading time","wordpress-seo"),linkTo:r,linkText:(0,l.__)("Learn more about reading time","wordpress-seo")})},Ar=window.yoast.analysis,Pr=(0,J.makeOutboundLink)();function Lr(e,r,s){const a=function(e){switch(e){case Ar.DIFFICULTY.FAIRLY_DIFFICULT:case Ar.DIFFICULTY.DIFFICULT:case Ar.DIFFICULTY.VERY_DIFFICULT:return(0,l.__)("Try to make shorter sentences, using less difficult words to improve readability","wordpress-seo");case Ar.DIFFICULTY.NO_DATA:return(0,l.__)("Continue writing to get insight into the readability of your text!","wordpress-seo");default:return(0,l.__)("Good job!","wordpress-seo")}}(r);return(0,t.createElement)("span",null,function(e,t){return-1===e?(0,l.sprintf)((0,l.__)("Your text should be slightly longer to calculate your Flesch reading ease score.","wordpress-seo")):(0,l.sprintf)((0,l.__)("The copy scores %1$s in the test, which is considered %2$s to read.","wordpress-seo"),e,function(e){switch(e){case Ar.DIFFICULTY.NO_DATA:return(0,l.__)("no data","wordpress-seo");case Ar.DIFFICULTY.VERY_EASY:return(0,l.__)("very easy","wordpress-seo");case Ar.DIFFICULTY.EASY:return(0,l.__)("easy","wordpress-seo");case Ar.DIFFICULTY.FAIRLY_EASY:return(0,l.__)("fairly easy","wordpress-seo");case Ar.DIFFICULTY.OKAY:return(0,l.__)("okay","wordpress-seo");case Ar.DIFFICULTY.FAIRLY_DIFFICULT:return(0,l.__)("fairly difficult","wordpress-seo");case Ar.DIFFICULTY.DIFFICULT:return(0,l.__)("difficult","wordpress-seo");case Ar.DIFFICULTY.VERY_DIFFICULT:return(0,l.__)("very difficult","wordpress-seo")}}(t))}(e,r)," ",r>=Ar.DIFFICULTY.FAIRLY_DIFFICULT?(0,t.createElement)(Pr,{href:s},a+"."):a)}const Fr=()=>{let e=(0,o.useSelect)((e=>e("yoast-seo/editor").getFleschReadingEaseScore()),[]);const r=(0,i.useMemo)((()=>(0,m.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease","")),[]),s=(0,o.useSelect)((e=>e("yoast-seo/editor").getFleschReadingEaseDifficulty()),[e]),a=(0,i.useMemo)((()=>{const t=(0,m.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease_article","");return Lr(e,s,t)}),[e,s]);return-1===e&&(e="?"),(0,t.createElement)(Q.InsightsCard,{amount:e,unit:(0,l.__)("out of 100","wordpress-seo"),title:(0,l.__)("Flesch reading ease","wordpress-seo"),linkTo:r,linkText:(0,l.__)("Learn more about Flesch reading ease","wordpress-seo"),description:a})};let Mr,Or,Nr,qr;const Dr=/<(\/)?(\w+)\s*(\/)?>/g;function $r(e,t,r,s,a){return{element:e,tokenStart:t,tokenLength:r,prevOffset:s,leadingTextStart:a,children:[]}}function Br(){const e=Mr.length-Or;0!==e&&Nr.push(Mr.substring(Or,Or+e))}function Wr(e){const{element:t,tokenStart:r,tokenLength:s,prevOffset:a,children:o}=e,n=qr[qr.length-1],l=Mr.substring(n.prevOffset,r);l&&n.children.push(l),n.children.push((0,i.cloneElement)(t,null,...o)),n.prevOffset=a||r+s}function Ur(e){const t=function(){const e=Dr.exec(Mr);if(null===e)return["no-more-tokens"];const t=e.index,[r,s,a,o]=e,n=r.length;return o?["self-closed",a,t,n]:s?["closer",a,t,n]:["opener",a,t,n]}(),[r,s,a,o]=t,n=qr.length,l=a>Or?Or:null;if(!e[s])return Br(),!1;switch(r){case"no-more-tokens":if(0!==n){const{leadingTextStart:e,tokenStart:t}=qr.pop();Nr.push(Mr.substring(e,e+t))}return Br(),!1;case"self-closed":return 0===n?(null!==l&&Nr.push(Mr.substring(l,a)),Nr.push(e[s]),Or=a+o,!0):(Wr($r(e[s],a,o)),Or=a+o,!0);case"opener":return qr.push($r(e[s],a,o,a+o,l)),Or=a+o,!0;case"closer":if(1===n)return function(e){const{element:t,leadingTextStart:r,prevOffset:s,tokenStart:a,children:o}=qr.pop(),n=e?Mr.substring(s,e):Mr.substring(s);n&&o.push(n),null!==r&&Nr.push(Mr.substring(r,a)),Nr.push((0,i.cloneElement)(t,null,...o))}(a),Or=a+o,!0;const t=qr.pop(),r=Mr.substring(t.prevOffset,a);t.children.push(r),t.prevOffset=a+o;const c=$r(t.element,t.tokenStart,t.tokenLength,a+o);return c.children=t.children,Wr(c),Or=a+o,!0;default:return Br(),!1}}const Kr=(e,t)=>{if(Mr=e,Or=0,Nr=[],qr=[],Dr.lastIndex=0,!(e=>{const t="object"==typeof e,r=t&&Object.values(e);return t&&r.length&&r.every((e=>(0,i.isValidElement)(e)))})(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(Ur(t));return(0,i.createElement)(i.Fragment,null,...Nr)},zr=({data:e,itemScreenReaderText:r,className:s,...a})=>{const o=(0,i.useMemo)((()=>{var t,r;return null!==(t=null===(r=(0,m.maxBy)(e,"number"))||void 0===r?void 0:r.number)&&void 0!==t?t:0}),[e]);return(0,t.createElement)("ul",{className:G()("yoast-data-model",s),...a},e.map((({name:e,number:s})=>(0,t.createElement)("li",{key:`${e}_dataItem`,style:{"--yoast-width":s/o*100+"%"}},e,(0,t.createElement)("span",null,s),r&&(0,t.createElement)("span",{className:"screen-reader-text"},(0,l.sprintf)(r,s))))))};zr.propTypes={data:_().arrayOf(_().shape({name:_().string.isRequired,number:_().number.isRequired})),itemScreenReaderText:_().string,className:_().string},zr.defaultProps={data:[],itemScreenReaderText:"",className:""};const Hr=zr,Vr=window.wp.url,jr=(0,J.makeOutboundLink)(),Yr=({location:e})=>{const r=(0,o.useSelect)((e=>{var t,r;return null===(t=null===(r=e("yoast-seo-premium/editor"))||void 0===r?void 0:r.getPreference("isProminentWordsAvailable",!1))||void 0===t||t}),[]),s=(0,o.useSelect)((e=>e("yoast-seo/editor").getPreference("shouldUpsell",!1)),[]),a=(0,i.useMemo)((()=>(0,m.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${e}-prominent_words`,"")),[e]),n=(0,i.useMemo)((()=>{const e=(0,m.get)(window,"wpseoAdminL10n.shortlinks-insights-keyword_research_link","");return Kr((0,l.sprintf)((0,l.__)("Read our %1$sultimate guide to keyword research%2$s to learn more about keyword research and keyword strategy.","wordpress-seo"),"<a>","</a>"),{a:(0,t.createElement)(jr,{href:e})})}),[]),c=(0,i.useMemo)((()=>Kr((0,l.sprintf)((0,l.__)("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"),"<b>","</b>","Yoast SEO Premium"),{b:(0,t.createElement)("b",null)})),[]),d=(0,o.useSelect)((e=>{var t,r;return null!==(t=null===(r=e("yoast-seo-premium/editor"))||void 0===r?void 0:r.getProminentWords())&&void 0!==t?t:[]}),[]),u=(0,i.useMemo)((()=>{const e=(0,l.sprintf)((0,l.__)("Get %s to enjoy the benefits of prominent words","wordpress-seo"),"Yoast SEO Premium").split(/\s+/);return e.map(((t,r)=>({name:t,number:e.length-r})))}),[]),h=(0,i.useMemo)((()=>s?u:d.map((({word:e,occurrence:t})=>({name:e,number:t})))),[d,u]);if(!r)return null;const{locationContext:g}=(0,p.useRootContext)();return(0,t.createElement)("div",{className:"yoast-prominent-words"},(0,t.createElement)("div",{className:"yoast-field-group__title"},(0,t.createElement)("b",null,(0,l.__)("Prominent words","wordpress-seo"))),!s&&(0,t.createElement)("p",null,0===h.length?(0,l.__)("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"):(0,l.__)("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&&(0,t.createElement)("p",null,c),s&&(0,t.createElement)(jr,{href:(0,Vr.addQueryArgs)(a,{context:g}),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",className:"yoast-button yoast-button-upsell"},(0,l.sprintf)((0,l.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,t.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})),(0,t.createElement)("p",null,n),(0,t.createElement)(Hr,{data:h,itemScreenReaderText:(0,l.__)("%d occurrences","wordpress-seo"),"aria-label":(0,l.__)("Prominent words","wordpress-seo"),className:s?"yoast-data-model--upsell":null}))};Yr.propTypes={location:_().string.isRequired};const Gr=Yr,Zr=()=>{const e=(0,o.useSelect)((e=>e("yoast-seo/editor").getTextLength()),[]),r=(0,i.useMemo)((()=>(0,m.get)(window,"wpseoAdminL10n.shortlinks-insights-word_count","")),[]);let s=(0,l._n)("word","words",e.count,"wordpress-seo"),a=(0,l.__)("Word count","wordpress-seo"),n=(0,l.__)("Learn more about word count","wordpress-seo");return"character"===e.unit&&(s=(0,l._n)("character","characters",e.count,"wordpress-seo"),a=(0,l.__)("Character count","wordpress-seo"),n=(0,l.__)("Learn more about character count","wordpress-seo")),(0,t.createElement)(Q.InsightsCard,{amount:e.count,unit:s,title:a,linkTo:r,linkText:n})},Xr=(0,J.makeOutboundLink)(),Qr=({location:e})=>{const r=(0,i.useMemo)((()=>(0,m.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${e}-text_formality`,"")),[e]),s=(0,i.useMemo)((()=>Kr((0,l.sprintf)((0,l.__)("%1$s%3$s%2$s will help you assess the formality level of your text.","wordpress-seo"),"<b>","</b>","Yoast SEO Premium"),{b:(0,t.createElement)("b",null)})),[]);return(0,t.createElement)(i.Fragment,null,(0,t.createElement)("div",null,(0,t.createElement)("p",null,s),(0,t.createElement)(Xr,{href:r,className:"yoast-button yoast-button-upsell"},(0,l.sprintf)((0,l.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,t.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"}))))};Qr.propTypes={location:_().string.isRequired};const Jr=Qr,es=({location:e,name:r})=>{const s=(0,o.useSelect)((e=>e("yoast-seo/editor").isFormalitySupported()),[]),a=M().isPremium,n=a?(0,m.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_premium",""):(0,m.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_free",""),i=(0,l.__)("Read more about text formality.","wordpress-seo");return s?(0,t.createElement)("div",{className:"yoast-text-formality"},(0,t.createElement)("div",{className:"yoast-field-group__title"},(0,t.createElement)("b",null,(0,l.__)("Text formality","wordpress-seo")),(0,t.createElement)(Q.HelpIcon,{linkTo:n,linkText:i})),a?(0,t.createElement)(B.Slot,{name:r}):(0,t.createElement)(Jr,{location:e})):null};es.propTypes={location:_().string.isRequired,name:_().string.isRequired};const ts=es,rs=({location:e})=>{const r=(0,o.useSelect)((e=>e("yoast-seo/editor").isFleschReadingEaseAvailable()),[]);return(0,t.createElement)(Cr,{title:(0,l.__)("Insights","wordpress-seo"),id:`yoast-insights-collapsible-${e}`,className:"yoast-insights"},(0,t.createElement)(Gr,{location:e}),(0,t.createElement)("div",null,r&&(0,t.createElement)("div",{className:"yoast-insights-row"},(0,t.createElement)(Fr,null)),(0,t.createElement)("div",{className:"yoast-insights-row yoast-insights-row--columns"},(0,t.createElement)(Ir,null),(0,t.createElement)(Zr,null)),(0,Sr.isFeatureEnabled)("TEXT_FORMALITY")&&(0,t.createElement)(ts,{location:e,name:"YoastTextFormalityMetabox"})))};rs.propTypes={location:_().string},rs.defaultProps={location:"metabox"};const ss=rs,as=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"}))})),os=()=>[(0,l.sprintf)((0,l.__)("%1$sAI%2$s: Better SEO titles and meta descriptions, faster.","wordpress-seo"),"<strong>","</strong>"),(0,l.sprintf)((0,l.__)("%1$sMultiple keywords%2$s: Rank higher for more searches.","wordpress-seo"),"<strong>","</strong>"),(0,l.sprintf)((0,l.__)("%1$sSuper fast%2$s internal linking suggestions.","wordpress-seo"),"<strong>","</strong>"),(0,l.sprintf)((0,l.__)("%1$sNo more broken links%2$s: Automatic redirect manager.","wordpress-seo"),"<strong>","</strong>"),(0,l.sprintf)((0,l.__)("%1$sAppealing social previews%2$s people actually want to click on.","wordpress-seo"),"<strong>","</strong>"),(0,l.sprintf)((0,l.__)("%1$s24/7 support%2$s: Also on evenings and weekends.","wordpress-seo"),"<strong>","</strong>")],ns=N().div`
  padding: 25px 32px 32px;
  color: #303030;
`,is=N().ul`
  margin: 0;
  padding: 0;

  li {
    list-style-image: var(--yoast-svg-icon-check);
    margin: 0.5rem 0 0 1.5rem;
    line-height: 1.4em;

    &::marker {
      font-size: 1.5rem;
    }
  }
`,ls=N().span`
  display: block;
  margin-top: 4px;
`,cs=N().h2`
  margin-top: 0;
  margin-bottom: 0.25rem;
  color: #303030;
  font-size: 0.8125rem;
  font-weight: 600;
`,ds=N().p`
  display: block;
  margin: 0.25rem 0 1rem 0 !important;
  max-width: 420px;
`,ps=N().hr`
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  border-top: 0;
  border-bottom: 1px solid #E2E8F0;
`,us=N().div`
  text-align: center;
`,ms=N().a`
  width: 100%;
`,hs=(0,J.makeOutboundLink)(ms);class gs extends i.Component{constructor(e){super(e),this.state={defaultPrice:"99"}}createBenefitsList(e){return e.length>0&&(0,t.createElement)(is,{role:"list"},e.map(((e,r)=>(0,t.createElement)("li",{key:`upsell-benefit-${r}`},(0,i.createInterpolateElement)(e,{strong:(0,t.createElement)("strong",null)})))))}render(){const e=(0,o.select)("yoast-seo/editor").isPromotionActive("black-friday-2023-promotion"),{defaultPrice:r}=this.state,s=e?"69.30":null,a=s||r;return(0,t.createElement)(i.Fragment,null,e&&(0,t.createElement)("div",{className:"yst-flex yst-justify-between yst-items-center yst-text-lg yst-content-between yst-bg-black yst-text-amber-300 yst-h-9 yst-border-amber-300 yst-border-y yst-border-x-0 yst-border-solid yst-px-6"},(0,t.createElement)("div",null,(0,l.__)("BLACK FRIDAY","wordpress-seo")),(0,t.createElement)("div",null,(0,l.__)("30% OFF","wordpress-seo"))),(0,t.createElement)(ns,null,(0,t.createElement)(cs,null,this.props.title),(0,t.createElement)(ds,null,this.props.description),(0,t.createElement)(us,null,(0,t.createElement)(hs,{...this.props.upsellButton},this.props.upsellButtonText,this.props.upsellButtonHasCaret&&(0,t.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})),(0,t.createElement)("div",{className:"yst-text-slate-600 yst-my-4"},s&&(0,t.createElement)(i.Fragment,null,(0,t.createElement)("span",{className:"yst-text-slate-500 yst-line-through"},r)," "),(0,t.createElement)("span",{className:"yst-text-slate-900 yst-text-2xl yst-font-bold"},a)," ",(0,l.__)("$ USD / € EUR / £ GBP per year (ex. VAT)","wordpress-seo")),(0,t.createElement)(ls,{id:this.props.upsellButton["aria-describedby"]},this.props.upsellButtonLabel)),(0,t.createElement)(ps,null),(0,t.createElement)(cs,null,this.props.benefitsTitle),this.createBenefitsList(this.props.benefits)))}}gs.propTypes={title:_().node,benefits:_().array,benefitsTitle:_().node,description:_().node,upsellButton:_().object,upsellButtonText:_().string.isRequired,upsellButtonLabel:_().string,upsellButtonHasCaret:_().bool},gs.defaultProps={title:null,description:null,benefits:[],benefitsTitle:null,upsellButton:{href:"",className:"button button-primary"},upsellButtonLabel:"",upsellButtonHasCaret:!0};const ys=gs,fs=()=>{const[e,,,r,s]=(0,Er.useToggleState)(!1),{locationContext:a}=(0,p.useRootContext)(),o=(0,Er.useSvgAria)(),n=a.includes("sidebar"),i=a.includes("metabox"),c=wpseoAdminL10n[n?"shortlinks.upsell.sidebar.internal_linking_suggestions":"shortlinks.upsell.metabox.internal_linking_suggestions"];return(0,t.createElement)(t.Fragment,null,e&&(0,t.createElement)(ae,{title:(0,l.__)("Get internal linking suggestions","wordpress-seo"),onRequestClose:s,additionalClassName:"",id:"yoast-internal-linking-suggestions-upsell",className:`${re} yoast-gutenberg-modal__box yoast-gutenberg-modal__no-padding`,shouldCloseOnClickOutside:!0},(0,t.createElement)(te,null,(0,t.createElement)(ys,{title:(0,l.__)("Rank higher by connecting your content","wordpress-seo"),description:(0,l.sprintf)((0,l.__)("%s automatically suggests to what content you can link with easy drag-and-drop functionality, which is good for your SEO!","wordpress-seo"),"Yoast SEO Premium"),benefitsTitle:(0,l.sprintf)("%s also gives you:","Yoast SEO Premium"),benefits:os(),upsellButtonText:(0,l.sprintf)((0,l.__)("Unlock with %s","wordpress-seo"),"Yoast SEO Premium"),upsellButton:{href:(0,Vr.addQueryArgs)(c,{context:a}),className:"yoast-button-upsell",rel:null,"data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2","data-action":"load-nfd-ctb"},upsellButtonLabel:(0,l.__)("1 year free support and updates included!","wordpress-seo")}))),n&&(0,t.createElement)(de,{id:"yoast-internal-linking-suggestions-sidebar-modal-open-button",title:(0,l.__)("Internal linking suggestions","wordpress-seo"),onClick:r},(0,t.createElement)("div",{className:"yst-root"},(0,t.createElement)(Er.Badge,{size:"small",variant:"upsell"},(0,t.createElement)(as,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...o})))),i&&(0,t.createElement)("div",{className:"yst-root"},(0,t.createElement)(X,{id:"yoast-internal-linking-suggestions-metabox-modal-open-button",onClick:r},(0,t.createElement)(X.Text,null,(0,l.__)("Internal linking suggestions","wordpress-seo")),(0,t.createElement)(Er.Badge,{size:"small",variant:"upsell"},(0,t.createElement)(as,{className:"yst-w-2.5 yst-h-2.5 yst-mr-1 yst-shrink-0",...o}),(0,t.createElement)("span",null,"Premium")))))},ws=({children:e})=>(0,t.createElement)("div",null,e);ws.propTypes={renderPriority:_().number.isRequired,children:_().node.isRequired};const bs=ws,Es=e=>(0,m.get)(window,"wordproofSdk.data"+(e?`.${e}`:""),{}),vs=()=>{const e=M();return 1===(0,m.get)(e,"wordproofIntegrationActive",0)},ks=e=>{const t=new CustomEvent(e);window.dispatchEvent(t)},_s=()=>{ks("wordproof:open_authentication")},xs=e=>{if(!e.isAuthenticated)return null;const r=(0,i.useCallback)((()=>{ks("wordproof:open_settings")}));return(0,t.createElement)(B.Button,{variant:"link",onClick:r},(0,l.__)("Manage WordProof settings","wordpress-seo"))};xs.propTypes={isAuthenticated:_().bool.isRequired};const Ts=e=>{const r=(0,i.useCallback)((()=>{_s()}));return!e.isAuthenticated&&e.toggleIsEnabled?(0,t.createElement)(B.Button,{variant:"link",onClick:r},(0,l.__)("Authenticate with WordProof","wordpress-seo")):null};Ts.propTypes={isAuthenticated:_().bool.isRequired,toggleIsEnabled:_().bool.isRequired};class Ss extends i.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):_s()}turnToggleOn(){this.props.onToggle(!0)}turnToggleOff(){this.props.onToggle(!1)}render(){return(0,t.createElement)(i.Fragment,null,(0,t.createElement)(Q.FieldGroup,{linkText:(0,l.__)("Learn more about timestamping","wordpress-seo"),linkTo:"https://yoa.st/wordproof-integration",htmlFor:this.props.id,label:(0,l.__)("Timestamp with WordProof","wordpress-seo")},(0,t.createElement)(Q.Toggle,{id:this.props.id,labelText:(0,l.sprintf)((0,l.__)("Timestamp this %s","wordpress-seo"),this.props.postTypeName.toLowerCase()),isEnabled:this.props.isEnabled,onSetToggleState:this.handleToggle}),(0,t.createElement)(xs,{isAuthenticated:this.props.isAuthenticated}),(0,t.createElement)(Ts,{toggleIsEnabled:this.props.isEnabled,isAuthenticated:this.props.isAuthenticated}),!this.props.isAuthenticated&&this.props.isEnabled&&(0,t.createElement)(Q.Alert,{className:"yoast-wordproof-metabox-alert",type:"info"},(0,l.__)("Unable to create new timestamps. Please authenticate with WordProof.","wordpress-seo"))))}}Ss.propTypes={id:_().string,isEnabled:_().bool,onToggle:_().func,postTypeName:_().string,isAuthenticated:_().bool.isRequired},Ss.defaultProps={id:"timestamp-toggle",isEnabled:!0,postTypeName:"post",onToggle:m.noop};const Rs=(0,H.compose)([(0,o.withSelect)((e=>({isAuthenticated:e("wordproof").getIsAuthenticated()})))])(Ss),Cs=({noIndex:e,onNoIndexChange:r,editorContext:s,isPrivateBlog:a})=>{const o=(e=>{const t=(0,l.__)("No","wordpress-seo"),r=(0,l.__)("Yes","wordpress-seo"),s=e.noIndex?t:r;return window.wpseoScriptData.isPost?[{name:(0,l.sprintf)((0,l.__)("%s (current default for %s)","wordpress-seo"),s,e.postTypeNamePlural),value:"0"},{name:t,value:"1"},{name:r,value:"2"}]:[{name:(0,l.sprintf)((0,l.__)("%s (current default for %s)","wordpress-seo"),s,e.postTypeNamePlural),value:"default"},{name:r,value:"index"},{name:t,value:"noindex"}]})(s);return(0,t.createElement)(p.LocationConsumer,null,(s=>(0,t.createElement)(i.Fragment,null,a&&(0,t.createElement)(Q.Alert,{type:"warning"},(0,l.__)("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")),(0,t.createElement)(Q.Select,{label:(0,l.__)("Allow search engines to show this content in search results?","wordpress-seo"),onChange:r,id:(0,J.join)(["yoast-meta-robots-noindex",s]),options:o,selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.allow_search_engines"],linkText:(0,l.__)("Learn more about the no-index setting on our help page.","wordpress-seo")}))))};Cs.propTypes={noIndex:_().string.isRequired,onNoIndexChange:_().func.isRequired,editorContext:_().object.isRequired,isPrivateBlog:_().bool},Cs.defaultProps={isPrivateBlog:!1};const Is=({noFollow:e,onNoFollowChange:r})=>(0,t.createElement)(p.LocationConsumer,null,(s=>{const a=(0,J.join)(["yoast-meta-robots-nofollow",s]);return(0,t.createElement)(Q.RadioButtonGroup,{id:a,options:[{value:"0",label:"Yes"},{value:"1",label:"No"}],label:(0,l.__)("Should search engines follow links on this content?","wordpress-seo"),groupName:a,onChange:r,selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.follow_links"],linkText:(0,l.__)("Learn more about the no-follow setting on our help page.","wordpress-seo")})}));Is.propTypes={noFollow:_().string.isRequired,onNoFollowChange:_().func.isRequired};const As=({advanced:e,onAdvancedChange:r})=>(0,t.createElement)(p.LocationConsumer,null,(s=>{const a=(0,J.join)(["yoast-meta-robots-advanced",s]),o=`${a}-input`;return(0,t.createElement)(Q.MultiSelect,{label:(0,l.__)("Meta robots advanced","wordpress-seo"),onChange:r,id:a,inputId:o,options:[{name:(0,l.__)("No Image Index","wordpress-seo"),value:"noimageindex"},{name:(0,l.__)("No Archive","wordpress-seo"),value:"noarchive"},{name:(0,l.__)("No Snippet","wordpress-seo"),value:"nosnippet"}],selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.meta_robots"],linkText:(0,l.__)("Learn more about advanced meta robots settings on our help page.","wordpress-seo")})}));As.propTypes={advanced:_().array.isRequired,onAdvancedChange:_().func.isRequired};const Ps=({breadcrumbsTitle:e,onBreadcrumbsTitleChange:r})=>(0,t.createElement)(p.LocationConsumer,null,(s=>(0,t.createElement)(Q.TextInput,{label:(0,l.__)("Breadcrumbs Title","wordpress-seo"),id:(0,J.join)(["yoast-breadcrumbs-title",s]),onChange:r,value:e,linkTo:wpseoAdminL10n["shortlinks.advanced.breadcrumbs_title"],linkText:(0,l.__)("Learn more about the breadcrumbs title setting on our help page.","wordpress-seo")})));Ps.propTypes={breadcrumbsTitle:_().string.isRequired,onBreadcrumbsTitleChange:_().func.isRequired};const Ls=({canonical:e,onCanonicalChange:r})=>(0,t.createElement)(p.LocationConsumer,null,(s=>(0,t.createElement)(Q.TextInput,{label:(0,l.__)("Canonical URL","wordpress-seo"),id:(0,J.join)(["yoast-canonical",s]),onChange:r,value:e,linkTo:"https://yoa.st/canonical-url",linkText:(0,l.__)("Learn more about canonical URLs on our help page.","wordpress-seo")})));Ls.propTypes={canonical:_().string.isRequired,onCanonicalChange:_().func.isRequired};const Fs=({wordproofTimestamp:e,onWordProofTimestampChange:r,postTypeName:s})=>(0,t.createElement)(p.LocationConsumer,null,(a=>(0,t.createElement)(Rs,{id:(0,J.join)(["yoast-wordproof-timestamp",a]),isEnabled:e,onToggle:r,postTypeName:s})));Fs.propTypes={wordproofTimestamp:_().bool.isRequired,onWordProofTimestampChange:_().func.isRequired,postTypeName:_().string.isRequired};const Ms=e=>{const{noIndex:r,noFollow:s,advanced:a,breadcrumbsTitle:o,canonical:n,wordproofTimestamp:l,onNoIndexChange:c,onNoFollowChange:d,onAdvancedChange:p,onBreadcrumbsTitleChange:u,onCanonicalChange:m,onWordProofTimestampChange:h,onLoad:g,isLoading:y,editorContext:f,isBreadcrumbsDisabled:w,isPrivateBlog:b,isWordProofIntegrationActive:E}=e;(0,i.useEffect)((()=>{setTimeout((()=>{y&&g()}))}));const v={noIndex:r,onNoIndexChange:c,editorContext:f,isPrivateBlog:b},k={noFollow:s,onNoFollowChange:d},_={advanced:a,onAdvancedChange:p},x={breadcrumbsTitle:o,onBreadcrumbsTitleChange:u},T={canonical:n,onCanonicalChange:m},S={wordproofTimestamp:l,onWordProofTimestampChange:h,postTypeName:f.postTypeNameSingular};return y?null:(0,t.createElement)(i.Fragment,null,(0,t.createElement)(Cs,{...v}),f.isPost&&(0,t.createElement)(Is,{...k}),f.isPost&&(0,t.createElement)(As,{..._}),!w&&(0,t.createElement)(Ps,{...x}),(0,t.createElement)(Ls,{...T}),E&&(0,t.createElement)(Fs,{...S}))};Ms.propTypes={noIndex:_().string.isRequired,canonical:_().string.isRequired,wordproofTimestamp:_().bool,onNoIndexChange:_().func.isRequired,onCanonicalChange:_().func.isRequired,onWordProofTimestampChange:_().func,onLoad:_().func.isRequired,isLoading:_().bool.isRequired,editorContext:_().object.isRequired,isBreadcrumbsDisabled:_().bool.isRequired,isPrivateBlog:_().bool,advanced:_().array,onAdvancedChange:_().func,noFollow:_().string,onNoFollowChange:_().func,breadcrumbsTitle:_().string,onBreadcrumbsTitleChange:_().func,isWordProofIntegrationActive:_().bool.isRequired},Ms.defaultProps={advanced:[],onAdvancedChange:()=>{},noFollow:"",onNoFollowChange:()=>{},breadcrumbsTitle:"",onBreadcrumbsTitleChange:()=>{},isPrivateBlog:!1,onWordProofTimestampChange:()=>{},wordproofTimestamp:!1};const Os=Ms,Ns=(0,H.compose)([(0,o.withSelect)((e=>{const{getNoIndex:t,getNoFollow:r,getAdvanced:s,getBreadcrumbsTitle:a,getCanonical:o,getWordProofTimestamp:n,getIsLoading:i,getEditorContext:l,getPreferences:c}=e("yoast-seo/editor"),{isBreadcrumbsDisabled:d,isPrivateBlog:p,isWordProofIntegrationActive:u}=c();return{noIndex:t(),noFollow:r(),advanced:s(),breadcrumbsTitle:a(),canonical:o(),wordproofTimestamp:n(),isLoading:i(),editorContext:l(),isBreadcrumbsDisabled:d,isPrivateBlog:p,isWordProofIntegrationActive:u}})),(0,o.withDispatch)((e=>{const{setNoIndex:t,setNoFollow:r,setAdvanced:s,setBreadcrumbsTitle:a,setCanonical:o,setWordProofTimestamp:n,loadAdvancedSettingsData:i}=e("yoast-seo/editor");return{onNoIndexChange:t,onNoFollowChange:r,onAdvancedChange:s,onBreadcrumbsTitleChange:a,onCanonicalChange:o,onWordProofTimestampChange:n,onLoad:i}}))])(Os),qs=N().p`
	color: #606770;
	flex-shrink: 0;
	font-size: 12px;
	line-height: 16px;
	overflow: hidden;
	padding: 0;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
	margin: 0;
	position: ${e=>"landscape"===e.mode?"relative":"static"};
`,Ds=e=>{const{siteUrl:r}=e;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("span",{className:"screen-reader-text"},r),(0,t.createElement)(qs,{"aria-hidden":"true"},(0,t.createElement)("span",null,r)))};Ds.propTypes={siteUrl:_().string.isRequired};const $s=Ds,Bs=window.yoast.socialMetadataForms,Ws=N().img`
	&& {
		max-width: ${e=>e.width}px;
		height: ${e=>e.height}px;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		max-width: none;
	}
`,Us=N().img`
	&&{
		height: 100%;
		position: absolute;
		width: 100%;
		object-fit: cover;
	}
`,Ks=N().div`
	padding-bottom: ${e=>e.aspectRatio}%;
`,zs=e=>{const{imageProps:r,width:s,height:a,imageMode:o}=e;return"landscape"===o?(0,t.createElement)(Ks,{aspectRatio:r.aspectRatio},(0,t.createElement)(Us,{src:r.src,alt:r.alt})):(0,t.createElement)(Ws,{src:r.src,alt:r.alt,width:s,height:a,imageProperties:r})};function Hs(e,t,r){return"landscape"===r?{widthRatio:t.width/e.landscapeWidth,heightRatio:t.height/e.landscapeHeight}:"portrait"===r?{widthRatio:t.width/e.portraitWidth,heightRatio:t.height/e.portraitHeight}:{widthRatio:t.width/e.squareWidth,heightRatio:t.height/e.squareHeight}}function Vs(e,t){return t.widthRatio<=t.heightRatio?{width:Math.round(e.width/t.widthRatio),height:Math.round(e.height/t.widthRatio)}:{width:Math.round(e.width/t.heightRatio),height:Math.round(e.height/t.heightRatio)}}async function js(e,t,r=!1){const s=await function(e){return new Promise(((t,r)=>{const s=new Image;s.onload=()=>{t({width:s.width,height:s.height})},s.onerror=r,s.src=e}))}(e);let a=r?"landscape":"square";"Facebook"===t&&(a=(0,Bs.determineFacebookImageMode)(s));const o=function(e){return"Twitter"===e?Bs.TWITTER_IMAGE_SIZES:Bs.FACEBOOK_IMAGE_SIZES}(t),n=function(e,t,r){return"square"===r&&t.width===t.height?{width:e.squareWidth,height:e.squareHeight}:Vs(t,Hs(e,t,r))}(o,s,a);return{mode:a,height:n.height,width:n.width}}async function Ys(e,t,r=!1){try{return{imageProperties:await js(e,t,r),status:"loaded"}}catch(e){return{imageProperties:null,status:"errored"}}}zs.propTypes={imageProps:_().shape({src:_().string.isRequired,alt:_().string.isRequired,aspectRatio:_().number.isRequired}).isRequired,width:_().number.isRequired,height:_().number.isRequired,imageMode:_().string},zs.defaultProps={imageMode:"landscape"};const Gs=N().div`
	position: relative;
	${e=>"landscape"===e.mode?`max-width: ${e.dimensions.width}`:`min-width: ${e.dimensions.width}; height: ${e.dimensions.height}`};
	overflow: hidden;
	background-color: ${ve.colors.$color_white};
`,Zs=N().div`
	box-sizing: border-box;
	max-width: ${Bs.FACEBOOK_IMAGE_SIZES.landscapeWidth}px;
	height: ${Bs.FACEBOOK_IMAGE_SIZES.landscapeHeight}px;
	background-color: ${ve.colors.$color_grey};
	border-style: dashed;
	border-width: 1px;
	// We're not using standard colors to increase contrast for accessibility.
	color: #006DAC;
	// We're not using standard colors to increase contrast for accessibility.
	background-color: #f1f1f1;
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: underline;
	font-size: 14px;
	cursor: pointer;
`;class Xs extends t.Component{constructor(e){super(e),this.state={imageProperties:null,status:"loading"},this.socialMedium="Facebook",this.handleFacebookImage=this.handleFacebookImage.bind(this),this.setState=this.setState.bind(this)}async handleFacebookImage(){try{const e=await Ys(this.props.src,this.socialMedium);this.setState(e),this.props.onImageLoaded(e.imageProperties.mode||"landscape")}catch(e){this.setState(e),this.props.onImageLoaded("landscape")}}componentDidUpdate(e){e.src!==this.props.src&&this.handleFacebookImage()}componentDidMount(){this.handleFacebookImage()}retrieveContainerDimensions(e){switch(e){case"square":return{height:Bs.FACEBOOK_IMAGE_SIZES.squareHeight+"px",width:Bs.FACEBOOK_IMAGE_SIZES.squareWidth+"px"};case"portrait":return{height:Bs.FACEBOOK_IMAGE_SIZES.portraitHeight+"px",width:Bs.FACEBOOK_IMAGE_SIZES.portraitWidth+"px"};case"landscape":return{height:Bs.FACEBOOK_IMAGE_SIZES.landscapeHeight+"px",width:Bs.FACEBOOK_IMAGE_SIZES.landscapeWidth+"px"}}}render(){const{imageProperties:e,status:r}=this.state;if("loading"===r||""===this.props.src||"errored"===r)return(0,t.createElement)(Zs,{onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},(0,l.__)("Select image","wordpress-seo"));const s=this.retrieveContainerDimensions(e.mode);return(0,t.createElement)(Gs,{mode:e.mode,dimensions:s,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onClick:this.props.onImageClick},(0,t.createElement)(zs,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:Bs.FACEBOOK_IMAGE_SIZES.aspectRatio},width:e.width,height:e.height,imageMode:e.mode}))}}Xs.propTypes={src:_().string,alt:_().string,onImageLoaded:_().func,onImageClick:_().func,onMouseEnter:_().func,onMouseLeave:_().func},Xs.defaultProps={src:"",alt:"",onImageLoaded:m.noop,onImageClick:m.noop,onMouseEnter:m.noop,onMouseLeave:m.noop};const Qs=Xs,Js=N().span`
	line-height: ${20}px;
	min-height : ${20}px;
	color: #1d2129;
	font-weight: 600;
	overflow: hidden;
	font-size: 16px;
	margin: 3px 0 0;
	letter-spacing: normal;
	white-space: normal;
	flex-shrink: 0;
	cursor: pointer;
	display: -webkit-box;
	-webkit-line-clamp: ${e=>e.lineCount};
	-webkit-box-orient: vertical;
	overflow: hidden;
`,ea=N().p`
	line-height: ${16}px;
	min-height : ${16}px;
	color: #606770;
	font-size: 14px;
	padding: 0;
	text-overflow: ellipsis;
	margin: 3px 0 0 0;
	display: -webkit-box;
	cursor: pointer;
	-webkit-line-clamp: ${e=>e.lineCount};
	-webkit-box-orient: vertical;
	overflow: hidden;

	@media all and ( max-width: ${e=>e.maxWidth} ) {
		display: none;
	}
`,ta=e=>{switch(e){case"landscape":return"527px";case"square":case"portrait":return"369px";default:return"476px"}},ra=N().div`
	box-sizing: border-box;
	display: flex;
	flex-direction: ${e=>"landscape"===e.mode?"column":"row"};
	background-color: #f2f3f5;
	max-width: 527px;
`,sa=N().div`
	box-sizing: border-box;
	background-color: #f2f3f5;
	margin: 0;
	padding: 10px 12px;
	position: relative;
	border-bottom: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
	border-top: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
	border-right: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
	border: ${e=>"landscape"===e.mode?"1px solid #dddfe2":""};
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	justify-content: ${e=>"landscape"===e.mode?"flex-start":"center"};
	font-size: 12px;
	overflow: hidden;
`;class aa extends t.Component{constructor(e){super(e),this.state={imageMode:null,maxLineCount:0,descriptionLineCount:0},this.facebookTitleRef=s().createRef(),this.onImageLoaded=this.onImageLoaded.bind(this),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}onImageLoaded(e){this.setState({imageMode:e})}getTitleLineCount(){return this.facebookTitleRef.current.offsetHeight/20}maybeSetMaxLineCount(){const{imageMode:e,maxLineCount:t}=this.state,r="landscape"===e?2:5;r!==t&&this.setState({maxLineCount:r})}maybeSetDescriptionLineCount(){const{descriptionLineCount:e,maxLineCount:t,imageMode:r}=this.state,s=this.getTitleLineCount();let a=t-s;"portrait"===r&&(a=5===s?0:4),a!==e&&this.setState({descriptionLineCount:a})}componentDidUpdate(){this.maybeSetMaxLineCount(),this.maybeSetDescriptionLineCount()}render(){const{imageMode:e,maxLineCount:r,descriptionLineCount:s}=this.state;return(0,t.createElement)(ra,{id:"facebookPreview",mode:e},(0,t.createElement)(Qs,{src:this.props.imageUrl||this.props.imageFallbackUrl,alt:this.props.alt,onImageLoaded:this.onImageLoaded,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,t.createElement)(sa,{mode:e},(0,t.createElement)($s,{siteUrl:this.props.siteUrl,mode:e}),(0,t.createElement)(Js,{ref:this.facebookTitleRef,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,lineCount:r},this.props.title),s>0&&(0,t.createElement)(ea,{maxWidth:ta(e),onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,lineCount:s},this.props.description)))}}aa.propTypes={siteUrl:_().string.isRequired,title:_().string.isRequired,description:_().string,imageUrl:_().string,imageFallbackUrl:_().string,alt:_().string,onSelect:_().func,onImageClick:_().func,onMouseHover:_().func},aa.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{}};const oa=aa,na=N().div`
	text-transform: lowercase;
	color: rgb(83, 100, 113);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	fill: currentcolor;
	display: flex;
	flex-direction: row;
	align-items: flex-end;
`,ia=e=>(0,t.createElement)(na,null,(0,t.createElement)("span",null,e.siteUrl));ia.propTypes={siteUrl:_().string.isRequired};const la=ia,ca=(e,t=!0)=>e?`\n\t\t\tmax-width: ${Bs.TWITTER_IMAGE_SIZES.landscapeWidth}px;\n\t\t\t${t?"border-bottom: 1px solid #E1E8ED;":""}\n\t\t\tborder-radius: 14px 14px 0 0;\n\t\t\t`:`\n\t\twidth: ${Bs.TWITTER_IMAGE_SIZES.squareWidth}px;\n\t\t${t?"border-right: 1px solid #E1E8ED;":""}\n\t\tborder-radius: 14px 0 0 14px;\n\t\t`,da=N().div`
	position: relative;
	box-sizing: content-box;
	overflow: hidden;
	background-color: #e1e8ed;
	flex-shrink: 0;
	${e=>ca(e.isLarge)}
`,pa=N().div`
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	max-width: 100%;
	margin: 0;
	padding: 1em;
	text-align: center;
	font-size: 1rem;
	${e=>ca(e.isLarge,!1)}
`,ua=N()(pa)`
	${e=>e.isLarge&&`height: ${Bs.TWITTER_IMAGE_SIZES.landscapeHeight}px;`}
	border-top-left-radius: 14px;
	${e=>e.isLarge?"border-top-right-radius":"border-bottom-left-radius"}: 14px;
	border-style: dashed;
	border-width: 1px;
	// We're not using standard colors to increase contrast for accessibility.
	color: #006DAC;
	// We're not using standard colors to increase contrast for accessibility.
	background-color: #f1f1f1;
	text-decoration: underline;
	font-size: 14px;
	cursor: pointer;
`;class ma extends s().Component{constructor(e){super(e),this.state={status:"loading"},this.socialMedium="Twitter",this.handleTwitterImage=this.handleTwitterImage.bind(this),this.setState=this.setState.bind(this)}async handleTwitterImage(){if(null===this.props.src)return;const e=await Ys(this.props.src,this.socialMedium,this.props.isLarge);this.setState(e)}componentDidUpdate(e){e.src!==this.props.src&&this.handleTwitterImage()}componentDidMount(){this.handleTwitterImage()}render(){const{status:e,imageProperties:r}=this.state;return"loading"===e||""===this.props.src||"errored"===e?(0,t.createElement)(ua,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},(0,l.__)("Select image","wordpress-seo")):(0,t.createElement)(da,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},(0,t.createElement)(zs,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:Bs.TWITTER_IMAGE_SIZES.aspectRatio},width:r.width,height:r.height,imageMode:r.mode}))}}ma.propTypes={isLarge:_().bool.isRequired,src:_().string,alt:_().string,onImageClick:_().func,onMouseEnter:_().func,onMouseLeave:_().func},ma.defaultProps={src:"",alt:"",onMouseEnter:m.noop,onImageClick:m.noop,onMouseLeave:m.noop};const ha=N().div`
	display: flex;
	flex-direction: column;
	padding: 12px;
	justify-content: center;
	margin: 0;
	box-sizing: border-box;
	flex: auto;
	min-width: 0px;
	gap:2px;
	> * {
		line-height:20px;
		min-height:20px;
		font-size:15px;
    }
`,ga=e=>(0,t.createElement)(ha,null,e.children);ga.propTypes={children:_().array.isRequired};const ya=ga,fa=N().p`
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	color: rgb(15, 20, 25);
	cursor: pointer;
`,wa=N().p`
	max-height: 55px;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	color: rgb(83, 100, 113);
	display: -webkit-box;
	cursor: pointer;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;

	@media all and ( max-width: ${Bs.TWITTER_IMAGE_SIZES.landscapeWidth}px ) {
		display: none;
	}
`,ba=N().div`
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 20px;
	max-width: 507px;
	border: 1px solid #E1E8ED;
	box-sizing: border-box;
	border-radius: 14px;
	color: #292F33;
	background: #FFFFFF;
	text-overflow: ellipsis;
	display: flex;

	&:hover {
		background: #f5f8fa;
		border: 1px solid rgba(136,153,166,.5);
	}
`,Ea=N()(ba)`
	flex-direction: column;
	max-height: 370px;
`,va=N()(ba)`
	flex-direction: row;
	height: 125px;
`;class ka extends t.Component{constructor(e){super(e),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}render(){const{isLarge:e,imageUrl:r,imageFallbackUrl:s,alt:a,title:o,description:n,siteUrl:i}=this.props,l=e?Ea:va;return(0,t.createElement)(l,{id:"twitterPreview"},(0,t.createElement)(ma,{src:r||s,alt:a,isLarge:e,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,t.createElement)(ya,null,(0,t.createElement)(la,{siteUrl:i}),(0,t.createElement)(fa,{onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle},o),(0,t.createElement)(wa,{onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription},n)))}}ka.propTypes={siteUrl:_().string.isRequired,title:_().string.isRequired,description:_().string,isLarge:_().bool,imageUrl:_().string,imageFallbackUrl:_().string,alt:_().string,onSelect:_().func,onImageClick:_().func,onMouseHover:_().func},ka.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{},isLarge:!0};const _a=ka,xa=window.yoast.replacementVariableEditor;class Ta extends t.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.SocialPreview="Social"===e.socialMediumName?oa:_a,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:r,onSelectImageClick:a,onRemoveImageClick:o,socialMediumName:n,imageWarnings:i,siteUrl:l,description:c,descriptionInputPlaceholder:d,descriptionPreviewFallback:p,imageUrl:u,imageFallbackUrl:m,alt:h,title:g,titleInputPlaceholder:y,titlePreviewFallback:f,replacementVariables:w,recommendedReplacementVariables:b,applyReplacementVariables:E,onReplacementVariableSearchChange:v,isPremium:k,isLarge:_,socialPreviewLabel:x,idSuffix:T,activeMetaTabId:S}=this.props,R=E({title:g||f,description:c||p});return(0,t.createElement)(s().Fragment,null,x&&(0,t.createElement)(Q.SimulatedLabel,null,x),(0,t.createElement)(this.SocialPreview,{onMouseHover:this.setHoveredField,onSelect:this.setActiveField,onImageClick:a,siteUrl:l,title:R.title,description:R.description,imageUrl:u,imageFallbackUrl:m,alt:h,isLarge:_,activeMetaTabId:S}),(0,t.createElement)(Bs.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:n,title:g,titleInputPlaceholder:y,onRemoveImageClick:o,imageSelected:!!u,imageUrl:u,onTitleChange:r,onSelectImageClick:a,description:c,descriptionInputPlaceholder:d,imageWarnings:i,replacementVariables:w,recommendedReplacementVariables:b,onReplacementVariableSearchChange:v,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:k,setEditorRef:this.setEditorRef,idSuffix:T}))}}Ta.propTypes={title:_().string.isRequired,onTitleChange:_().func.isRequired,description:_().string.isRequired,onDescriptionChange:_().func.isRequired,imageUrl:_().string.isRequired,imageFallbackUrl:_().string.isRequired,onSelectImageClick:_().func.isRequired,onRemoveImageClick:_().func.isRequired,socialMediumName:_().string.isRequired,alt:_().string,isPremium:_().bool,imageWarnings:_().array,isLarge:_().bool,siteUrl:_().string,descriptionInputPlaceholder:_().string,titleInputPlaceholder:_().string,descriptionPreviewFallback:_().string,titlePreviewFallback:_().string,replacementVariables:xa.replacementVariablesShape,recommendedReplacementVariables:xa.recommendedReplacementVariablesShape,applyReplacementVariables:_().func,onReplacementVariableSearchChange:_().func,socialPreviewLabel:_().string,idSuffix:_().string,activeMetaTabId:_().string},Ta.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,isLarge:!0,siteUrl:"",descriptionInputPlaceholder:"",titleInputPlaceholder:"",descriptionPreviewFallback:"",titlePreviewFallback:"",alt:"",applyReplacementVariables:e=>e,onReplacementVariableSearchChange:null,socialPreviewLabel:"",idSuffix:"",activeMetaTabId:""};const Sa={},Ra=(e,t,{log:r=console.warn}={})=>{Sa[e]||(Sa[e]=!0,r(t))},Ca=(e,t=m.noop)=>{const r={};for(const s in e)Object.hasOwn(e,s)&&Object.defineProperty(r,s,{set:r=>{e[s]=r,t("set",s,r)},get:()=>(t("get",s),e[s])});return r};Ca({squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},((e,t)=>Ra(`@yoast/social-metadata-previews/TWITTER_IMAGE_SIZES/${e}/${t}`,`[@yoast/social-metadata-previews] "TWITTER_IMAGE_SIZES.${t}" is deprecated and will be removed in the future, please use this from @yoast/social-metadata-forms instead.`))),Ca({squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}},((e,t)=>Ra(`@yoast/social-metadata-previews/FACEBOOK_IMAGE_SIZES/${e}/${t}`,`[@yoast/social-metadata-previews] "FACEBOOK_IMAGE_SIZES.${t}" is deprecated and will be removed in the future, please use this from @yoast/social-metadata-forms instead.`)));const Ia=N().div`
	max-width: calc(527px + 1.5rem);
`,Aa=e=>{const r="X"===e.socialMediumName?(0,l.__)("X share preview","wordpress-seo"):(0,l.__)("Social share preview","wordpress-seo"),{locationContext:s}=(0,Er.useRootContext)();return(0,t.createElement)(Er.Root,null,(0,t.createElement)(Ia,null,(0,t.createElement)(Er.FeatureUpsell,{shouldUpsell:!0,variant:"card",cardLink:(0,Vr.addQueryArgs)(wpseoAdminL10n["shortlinks.upsell.social_preview."+e.socialMediumName.toLowerCase()],{context:s}),cardText:(0,l.sprintf)((0,l.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"},(0,t.createElement)("div",{className:"yst-grayscale yst-opacity-50"},(0,t.createElement)(Er.Label,null,r),(0,t.createElement)(oa,{title:"",description:"",siteUrl:"",imageUrl:"",imageFallbackUrl:"",alt:"",onSelect:m.noop,onImageClick:m.noop,onMouseHover:m.noop})))))};Aa.propTypes={socialMediumName:_().oneOf(["Social","Twitter","X"]).isRequired};const Pa=Aa;class La extends i.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:r,onSelectImageClick:s,onRemoveImageClick:a,socialMediumName:o,imageWarnings:n,description:l,descriptionInputPlaceholder:c,imageUrl:d,alt:p,title:u,titleInputPlaceholder:m,replacementVariables:h,recommendedReplacementVariables:g,onReplacementVariableSearchChange:y,isPremium:f,location:w}=this.props;return(0,t.createElement)(i.Fragment,null,(0,t.createElement)(Pa,{socialMediumName:o}),(0,t.createElement)(Bs.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:o,title:u,titleInputPlaceholder:m,onRemoveImageClick:a,imageSelected:!!d,imageUrl:d,imageAltText:p,onTitleChange:r,onSelectImageClick:s,description:l,descriptionInputPlaceholder:c,imageWarnings:n,replacementVariables:h,recommendedReplacementVariables:g,onReplacementVariableSearchChange:y,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:f,setEditorRef:this.setEditorRef,idSuffix:w}))}}La.propTypes={title:_().string.isRequired,onTitleChange:_().func.isRequired,description:_().string.isRequired,onDescriptionChange:_().func.isRequired,imageUrl:_().string.isRequired,onSelectImageClick:_().func.isRequired,onRemoveImageClick:_().func.isRequired,socialMediumName:_().string.isRequired,isPremium:_().bool,imageWarnings:_().array,descriptionInputPlaceholder:_().string,titleInputPlaceholder:_().string,replacementVariables:xa.replacementVariablesShape,recommendedReplacementVariables:xa.recommendedReplacementVariablesShape,onReplacementVariableSearchChange:_().func,location:_().string,alt:_().string},La.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",onReplacementVariableSearchChange:null,location:"",alt:""};const Fa=La,Ma=e=>{const[r,s]=(0,i.useState)(""),a=(0,i.useCallback)((e=>{s(e.detail.metaTabId)}),[s]);(0,i.useEffect)((()=>(setTimeout(e.onLoad),window.addEventListener("YoastSEO:metaTabChange",a),()=>{window.removeEventListener("YoastSEO:metaTabChange",a)})),[]);const o=(0,i.useMemo)((()=>({...e,activeMetaTabId:r})),[e,r]);return e.isPremium?(0,t.createElement)(B.Slot,{name:`YoastFacebookPremium${e.location.charAt(0).toUpperCase()+e.location.slice(1)}`,fillProps:o}):(0,t.createElement)(Fa,{...o})};Ma.propTypes={isPremium:_().bool.isRequired,onLoad:_().func.isRequired,location:_().string.isRequired};const Oa=Ma;function Na(e){(function(e){const t=window.wp.media();return t.on("select",(()=>{const r=t.state().get("selection").first();var s;e({type:(s=r.attributes).subtype,width:s.width,height:s.height,url:s.url,id:s.id,sizes:s.sizes,alt:s.alt||s.title||s.name})})),t})(e).open()}const qa=()=>{Na((e=>(0,o.dispatch)("yoast-seo/editor").setFacebookPreviewImage((e=>{const{width:t,height:r}=e,s=(0,Bs.determineFacebookImageMode)({width:t,height:r}),a=Bs.FACEBOOK_IMAGE_SIZES[s+"Width"],o=Bs.FACEBOOK_IMAGE_SIZES[s+"Height"],n=Object.values(e.sizes).find((e=>e.width>=a&&e.height>=o));return{url:n?n.url:e.url,id:e.id,warnings:(0,J.validateFacebookImage)(e),alt:e.alt||""}})(e))))},Da=(0,H.compose)([(0,o.withSelect)((e=>{const{getFacebookDescription:t,getDescription:r,getFacebookTitle:s,getSeoTitle:a,getFacebookImageUrl:o,getImageFallback:n,getFacebookWarnings:i,getRecommendedReplaceVars:l,getReplaceVars:c,getSiteUrl:d,getSeoTitleTemplate:p,getSeoTitleTemplateNoFallback:u,getSocialTitleTemplate:m,getSeoDescriptionTemplate:h,getSocialDescriptionTemplate:g,getReplacedExcerpt:y,getFacebookAltText:f}=e("yoast-seo/editor");return{imageUrl:o(),imageFallbackUrl:n(),recommendedReplacementVariables:l(),replacementVariables:c(),description:t(),descriptionPreviewFallback:g()||r()||h()||y()||"",title:s(),titlePreviewFallback:m()||a()||u()||p()||"",imageWarnings:i(),siteUrl:d(),isPremium:!!M().isPremium,titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Social",alt:f()}})),(0,o.withDispatch)(((e,t,{select:r})=>{const{setFacebookPreviewTitle:s,setFacebookPreviewDescription:a,clearFacebookPreviewImage:o,loadFacebookPreviewData:n,findCustomFields:i}=e("yoast-seo/editor"),l=r("yoast-seo/editor").getPostId();return{onSelectImageClick:qa,onRemoveImageClick:o,onDescriptionChange:a,onTitleChange:s,onLoad:n,onReplacementVariableSearchChange:wr(l,i)}})),sr()])(Oa),$a=e=>((0,i.useEffect)((()=>{setTimeout(e.onLoad)}),[]),e.isPremium?(0,t.createElement)(B.Slot,{name:`YoastTwitterPremium${e.location.charAt(0).toUpperCase()+e.location.slice(1)}`,fillProps:e}):(0,t.createElement)(Fa,{...e}));$a.propTypes={isPremium:_().bool.isRequired,onLoad:_().func.isRequired,location:_().string.isRequired};const Ba=$a,Wa=()=>{Na((e=>(0,o.dispatch)("yoast-seo/editor").setTwitterPreviewImage((e=>{const t="summary"!==(0,m.get)(window,"wpseoScriptData.metabox.twitterCardType")?"landscape":"square",r=Bs.TWITTER_IMAGE_SIZES[t+"Width"],s=Bs.TWITTER_IMAGE_SIZES[t+"Height"],a=Object.values(e.sizes).find((e=>e.width>=r&&e.height>=s));return{url:a?a.url:e.url,id:e.id,warnings:(0,J.validateTwitterImage)(e),alt:e.alt||""}})(e))))},Ua=(0,H.compose)([(0,o.withSelect)((e=>{const{getTwitterDescription:t,getTwitterTitle:r,getTwitterImageUrl:s,getFacebookImageUrl:a,getFacebookTitle:o,getFacebookDescription:n,getDescription:i,getSeoTitle:l,getTwitterWarnings:c,getTwitterImageType:d,getImageFallback:p,getRecommendedReplaceVars:u,getReplaceVars:m,getSiteUrl:h,getSeoTitleTemplate:g,getSeoTitleTemplateNoFallback:y,getSocialTitleTemplate:f,getSeoDescriptionTemplate:w,getSocialDescriptionTemplate:b,getReplacedExcerpt:E,getTwitterAltText:v}=e("yoast-seo/editor");return{imageUrl:s(),imageFallbackUrl:a()||p(),recommendedReplacementVariables:u(),replacementVariables:m(),description:t(),descriptionPreviewFallback:b()||n()||i()||w()||E()||"",title:r(),titlePreviewFallback:f()||o()||l()||y()||g()||"",imageWarnings:c(),siteUrl:h(),isPremium:!!M().isPremium,isLarge:"summary"!==d(),titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"X",alt:v()}})),(0,o.withDispatch)(((e,t,{select:r})=>{const{setTwitterPreviewTitle:s,setTwitterPreviewDescription:a,clearTwitterPreviewImage:o,loadTwitterPreviewData:n,findCustomFields:i}=e("yoast-seo/editor"),l=r("yoast-seo/editor").getPostId();return{onSelectImageClick:Wa,onRemoveImageClick:o,onDescriptionChange:a,onTitleChange:s,onLoad:n,onReplacementVariableSearchChange:wr(l,i)}})),sr()])(Ba),Ka=N().legend`
	margin: 16px 0;
	padding: 0;
	color: ${ve.colors.$color_headings};
	font-size: 12px;
	font-weight: 300;
`,za=N().legend`
	margin: 0 0 16px;
	padding: 0;
	color: ${ve.colors.$color_headings};
	font-size: 12px;
	font-weight: 300;
`,Ha=N().div`
	padding: 16px;
`,Va=({useOpenGraphData:e,useTwitterData:r})=>(0,t.createElement)(i.Fragment,null,r&&e&&(0,t.createElement)(i.Fragment,null,(0,t.createElement)(Cr,{hasSeparator:!1,title:(0,l.__)("Social media appearance","wordpress-seo"),initialIsOpen:!0},(0,t.createElement)(za,null,(0,l.__)("Determine how your post should look on social media like Facebook, X, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")),(0,t.createElement)(Da,null),(0,t.createElement)(Ka,null,(0,l.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below. If you leave these settings untouched, the 'Social media appearance' settings mentioned above will also be applied for sharing on X.","wordpress-seo"))),(0,t.createElement)(Cr,{title:(0,l.__)("X appearance","wordpress-seo"),hasSeparator:!0,initialIsOpen:!1},(0,t.createElement)(Ua,null))),e&&!r&&(0,t.createElement)(Ha,null,(0,t.createElement)(za,null,(0,l.__)("Determine how your post should look on social media like Facebook, X, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")),(0,t.createElement)(Da,null)),!e&&r&&(0,t.createElement)(Ha,null,(0,t.createElement)(za,null,(0,l.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below.","wordpress-seo")),(0,t.createElement)(Ua,null)));Va.propTypes={useOpenGraphData:_().bool.isRequired,useTwitterData:_().bool.isRequired};const ja=Va,Ya=(0,o.withSelect)((e=>{const{getPreferences:t}=e("yoast-seo/editor"),{useOpenGraphData:r,useTwitterData:s}=t();return{useOpenGraphData:r,useTwitterData:s}}))(ja);function Ga({target:e,children:t}){let r=e;return"string"==typeof e&&(r=document.getElementById(e)),r?(0,i.createPortal)(t,r):null}function Za({target:e}){return(0,t.createElement)(Ga,{target:e},(0,t.createElement)(Ya,null))}Ga.propTypes={target:_().oneOfType([_().string,_().object]).isRequired,children:_().node.isRequired},Za.propTypes={target:_().string.isRequired};const Xa=(0,J.makeOutboundLink)(),Qa=N().div`
	padding: 16px;
`,Ja="yoast-seo/editor";function eo({location:e,show:r}){return r?(0,t.createElement)(Q.Alert,{type:"info"},(0,l.sprintf)((0,l.__)("Are you working on a news article? %s helps you optimize your site for Google News.","wordpress-seo"),"Yoast News SEO")+" ",(0,t.createElement)(Xa,{href:window.wpseoAdminL10n[`shortlinks.upsell.${e}.news`]},(0,l.sprintf)((0,l.__)("Buy %s now!","wordpress-seo"),"Yoast News SEO"))):null}eo.propTypes={show:_().bool.isRequired,location:_().string.isRequired};const to=(e,t,r)=>{const s=(0,o.useSelect)((e=>e(Ja).getIsProduct()),[]),a=(0,o.useSelect)((e=>e(Ja).getIsWooSeoActive()),[]),n=s&&a?{name:(0,l.__)("Item Page","wordpress-seo"),value:"ItemPage"}:e.find((e=>e.value===t));return[{name:(0,l.sprintf)((0,l.__)("Default for %1$s (%2$s)","wordpress-seo"),r,n?n.name:""),value:""},...e]},ro=e=>(0,l.sprintf)((0,l.__)("You can change the default type for %1$s under Content types in the %2$sSettings%3$s.","wordpress-seo"),e,"{{link}}","{{/link}}");_().string.isRequired,_().string.isRequired,_().string.isRequired;const so=e=>{const r=to(e.pageTypeOptions,e.defaultPageType,e.postTypeName),s=to(e.articleTypeOptions,e.defaultArticleType,e.postTypeName),a=(0,m.get)(window,"wpseoScriptData.metabox.woocommerceUpsellSchemaLink",""),n=(0,m.get)(window,"wpseoScriptData.woocommerceUpsell",""),[c,d]=(0,i.useState)(e.schemaArticleTypeSelected),p=(0,l.__)("Want your products stand out in search results with rich results like price, reviews and more?","wordpress-seo"),u=(0,o.useSelect)((e=>e(Ja).getIsProduct()),[]),h=(0,o.useSelect)((e=>e(Ja).getIsWooSeoActive()),[]),g=u&&h,y=(0,i.useCallback)(((e,t)=>{d(t)}),[c]);return(0,i.useEffect)((()=>{y(null,e.schemaArticleTypeSelected)}),[e.schemaArticleTypeSelected]),(0,t.createElement)(i.Fragment,null,(0,t.createElement)(Q.FieldGroup,{label:(0,l.__)("What type of page or content is this?","wordpress-seo"),linkTo:e.additionalHelpTextLink,linkText:(0,l.__)("Learn more about page or content types","wordpress-seo")}),n&&(0,t.createElement)(kr,{link:a,text:p}),(0,t.createElement)(Q.Select,{id:(0,J.join)(["yoast-schema-page-type",e.location]),options:r,label:(0,l.__)("Page type","wordpress-seo"),onChange:e.schemaPageTypeChange,selected:g?"ItemPage":e.schemaPageTypeSelected,disabled:g}),e.showArticleTypeInput&&(0,t.createElement)(Q.Select,{id:(0,J.join)(["yoast-schema-article-type",e.location]),options:s,label:(0,l.__)("Article type","wordpress-seo"),onChange:e.schemaArticleTypeChange,selected:e.schemaArticleTypeSelected,onOptionFocus:y}),(0,t.createElement)(eo,{location:e.location,show:!e.isNewsEnabled&&(w=c,b=e.defaultArticleType,"NewsArticle"===w||""===w&&"NewsArticle"===b)}),e.displayFooter&&!g&&(0,t.createElement)("p",null,(f=e.postTypeName,(0,ye.Z)({mixedString:ro(f),components:{link:(0,t.createElement)("a",{href:"/wp-admin/admin.php?page=wpseo_page_settings",target:"_blank"})}}))),g&&(0,t.createElement)("p",null,(0,l.sprintf)((0,l.__)("You have %1$s activated on your site, automatically setting the Page type for your products to 'Item Page'. As a result, the Page type selection is disabled.","wordpress-seo"),"Yoast WooCommerce SEO")));var f,w,b},ao=_().arrayOf(_().shape({name:_().string,value:_().string}));so.propTypes={schemaPageTypeChange:_().func,schemaPageTypeSelected:_().string,pageTypeOptions:ao.isRequired,schemaArticleTypeChange:_().func,schemaArticleTypeSelected:_().string,articleTypeOptions:ao.isRequired,showArticleTypeInput:_().bool.isRequired,additionalHelpTextLink:_().string.isRequired,helpTextLink:_().string.isRequired,helpTextTitle:_().string.isRequired,helpTextDescription:_().string.isRequired,postTypeName:_().string.isRequired,displayFooter:_().bool,defaultPageType:_().string.isRequired,defaultArticleType:_().string.isRequired,location:_().string.isRequired,isNewsEnabled:_().bool},so.defaultProps={schemaPageTypeChange:()=>{},schemaPageTypeSelected:null,schemaArticleTypeChange:()=>{},schemaArticleTypeSelected:null,displayFooter:!1,isNewsEnabled:!1};const oo=e=>e.isMetabox?(0,i.createPortal)((0,t.createElement)(Qa,null,(0,t.createElement)(so,{...e})),document.getElementById("wpseo-meta-section-schema")):(0,t.createElement)(so,{...e});oo.propTypes={showArticleTypeInput:_().bool,articleTypeLabel:_().string,additionalHelpTextLink:_().string,pageTypeLabel:_().string.isRequired,helpTextLink:_().string.isRequired,helpTextTitle:_().string.isRequired,helpTextDescription:_().string.isRequired,isMetabox:_().bool.isRequired,postTypeName:_().string.isRequired,displayFooter:_().bool,loadSchemaArticleData:_().func.isRequired,loadSchemaPageData:_().func.isRequired,location:_().string.isRequired},oo.defaultProps={showArticleTypeInput:!1,articleTypeLabel:"",additionalHelpTextLink:"",displayFooter:!1};const no=oo;class io{static get articleTypeInput(){return document.getElementById("yoast_wpseo_schema_article_type")}static get defaultArticleType(){return io.articleTypeInput.getAttribute("data-default")}static get articleType(){return io.articleTypeInput.value}static set articleType(e){io.articleTypeInput.value=e}static get pageTypeInput(){return document.getElementById("yoast_wpseo_schema_page_type")}static get defaultPageType(){return io.pageTypeInput.getAttribute("data-default")}static get pageType(){return io.pageTypeInput.value}static set pageType(e){io.pageTypeInput.value=e}}const lo=e=>{const r=null!==io.articleTypeInput;(0,i.useEffect)((()=>{e.loadSchemaPageData(),r&&e.loadSchemaArticleData()}),[]);const{pageTypeOptions:s,articleTypeOptions:a}=window.wpseoScriptData.metabox.schema,o={articleTypeLabel:(0,l.__)("Article type","wordpress-seo"),pageTypeLabel:(0,l.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:(0,l.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:(0,l.__)("This helps search engines understand your website and your content. You can change some of your settings for this page below.","wordpress-seo"),showArticleTypeInput:r,pageTypeOptions:s,articleTypeOptions:a},n={...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(0,t.createElement)(no,{...n})};lo.propTypes={displayFooter:_().bool.isRequired,schemaPageTypeSelected:_().string.isRequired,schemaArticleTypeSelected:_().string.isRequired,defaultArticleType:_().string.isRequired,defaultPageType:_().string.isRequired,loadSchemaPageData:_().func.isRequired,loadSchemaArticleData:_().func.isRequired,schemaPageTypeChange:_().func.isRequired,schemaArticleTypeChange:_().func.isRequired,location:_().string.isRequired};const co=(0,H.compose)([(0,o.withSelect)((e=>{const{getPreferences:t,getPageType:r,getDefaultPageType:s,getArticleType:a,getDefaultArticleType:o}=e("yoast-seo/editor"),{displaySchemaSettingsFooter:n,isNewsEnabled:i}=t();return{displayFooter:n,isNewsEnabled:i,schemaPageTypeSelected:r(),schemaArticleTypeSelected:a(),defaultArticleType:o(),defaultPageType:s()}})),(0,o.withDispatch)((e=>{const{setPageType:t,setArticleType:r,getSchemaPageData:s,getSchemaArticleData:a}=e("yoast-seo/editor");return{loadSchemaPageData:s,loadSchemaArticleData:a,schemaPageTypeChange:t,schemaArticleTypeChange:r}})),sr()])(lo),po=()=>(0,t.createElement)("p",{className:"yoast-related-keyphrases-modal__loading-message"},(0,l.sprintf)((0,l.__)("Please wait while %1$s connects to %2$s to get related keyphrases...","wordpress-seo"),"Yoast SEO","Semrush")," ",(0,t.createElement)(Q.SvgIcon,{icon:"loading-spinner"})),uo=(0,J.makeOutboundLink)(),mo=()=>(0,t.createElement)(i.Fragment,null,(0,t.createElement)("p",null,(0,l.sprintf)((0,l.__)("You've reached your request limit for today. Check back tomorrow or upgrade your plan over at %s.","wordpress-seo"),"Semrush")),(0,t.createElement)(uo,{href:window.wpseoAdminL10n["shortlinks.semrush.prices"],className:"yoast-button-upsell"},(0,l.sprintf)((0,l.__)("Upgrade your %s plan","wordpress-seo"),"Semrush"),(0,t.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"}))),ho="yoast-semrush-country-selector",go=[{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 yo extends i.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:r}=this.props;r(t,e),this.storeCountryCode(t);const s=await this.doRequest(e,t);200!==s.status?this.handleFailedResponse(s):this.handleSuccessResponse(s)}handleSuccessResponse(e){const{setNoResultsFound:t,setRequestSucceeded:r}=this.props;0!==e.results.rows.length?r(e):t()}handleFailedResponse(e){const{setRequestLimitReached:t,setRequestFailed:r}=this.props;"error"in e&&(e.error.includes("TOTAL LIMIT EXCEEDED")?t():r(e))}async doRequest(e,t){return await g()({path:(0,Vr.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:e,country_code:t})})}onChangeHandler(e){this.props.setCountry(e)}render(){return(0,t.createElement)("div",{id:ho},(0,t.createElement)(Q.SingleSelect,{id:ho+"-select",label:(0,l.__)("Show results for:","wordpress-seo"),name:"semrush-country-code",options:go,selected:this.props.countryCode,onChange:this.onChangeHandler,wrapperClassName:"yoast-field-group yoast-field-group--inline"}),(0,t.createElement)(Q.NewButton,{id:ho+"-button",variant:"secondary",onClick:this.relatedKeyphrasesRequest},(0,l.__)("Select country","wordpress-seo")))}}yo.propTypes={keyphrase:_().string,countryCode:_().string,response:_().object,lastRequestKeyphrase:_().string,setCountry:_().func.isRequired,newRequest:_().func.isRequired,setNoResultsFound:_().func.isRequired,setRequestSucceeded:_().func.isRequired,setRequestLimitReached:_().func.isRequired,setRequestFailed:_().func.isRequired},yo.defaultProps={keyphrase:"",countryCode:"us",response:{},lastRequestKeyphrase:""};const fo=yo,wo=(0,J.makeOutboundLink)(N().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: ${ve.colors.$color_help_text};
	
	&:hover,
	&:focus {
		color: ${ve.colors.$color_snippet_focus};	
	}
	
	// Overwrite the default blue active color for links.
	&:active {
		color: ${ve.colors.$color_help_text};	
	}

	&::before {
		position: absolute;
		top: 0;
		left: 0;
		padding: 2px;
		content: "\f223";
	}
`),bo=(0,J.makeOutboundLink)();class Eo extends i.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[(0,l.__)("Twelve months ago","wordpress-seo"),(0,l.__)("Eleven months ago","wordpress-seo"),(0,l.__)("Ten months ago","wordpress-seo"),(0,l.__)("Nine months ago","wordpress-seo"),(0,l.__)("Eight months ago","wordpress-seo"),(0,l.__)("Seven months ago","wordpress-seo"),(0,l.__)("Six months ago","wordpress-seo"),(0,l.__)("Five months ago","wordpress-seo"),(0,l.__)("Four months ago","wordpress-seo"),(0,l.__)("Three months ago","wordpress-seo"),(0,l.__)("Two months ago","wordpress-seo"),(0,l.__)("Last month","wordpress-seo")]}mapAreaChartDataToTableData(e){return Math.round(100*e)}render(){const{keyphrase:e,relatedKeyphrases:r,countryCode:s,data:a,renderAction:o}=this.props,n="https://www.semrush.com/analytics/keywordoverview/?q="+encodeURIComponent(e)+"&db="+encodeURIComponent(s);return a&&!(0,m.isEmpty)(a.results)&&(0,t.createElement)(i.Fragment,null,(0,t.createElement)("table",{className:"yoast yoast-table"},(0,t.createElement)("thead",null,(0,t.createElement)("tr",null,(0,t.createElement)("th",{scope:"col",className:"yoast-table--primary"},(0,l.__)("Related keyphrase","wordpress-seo")),(0,t.createElement)("th",{scope:"col",abbr:(0,l.__)("Volume","wordpress-seo")},(0,l.__)("Volume","wordpress-seo"),(0,t.createElement)(wo,{href:window.wpseoAdminL10n["shortlinks.semrush.volume_help"],className:"dashicons"},(0,t.createElement)("span",{className:"screen-reader-text"},(0,l.__)("Learn more about the related keyphrases volume","wordpress-seo")))),(0,t.createElement)("th",{scope:"col",abbr:(0,l.__)("Trend","wordpress-seo")},(0,l.__)("Trend","wordpress-seo"),(0,t.createElement)(wo,{href:window.wpseoAdminL10n["shortlinks.semrush.trend_help"],className:"dashicons"},(0,t.createElement)("span",{className:"screen-reader-text"},(0,l.__)("Learn more about the related keyphrases trend","wordpress-seo")))),o&&(0,t.createElement)("td",{className:"yoast-table--nobreak"}))),(0,t.createElement)("tbody",null,a.results.rows.map(((e,s)=>{const a=e[0],n=this.transformTrendDataToChartPoints(e[2]),i=this.getAreaChartDataTableHeaderLabels();return(0,t.createElement)("tr",{key:s},(0,t.createElement)("td",null,a),(0,t.createElement)("td",null,e[1]),(0,t.createElement)("td",{className:"yoast-table--nopadding"},(0,t.createElement)(We,{width:66,height:24,data:n,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:this.mapAreaChartDataToTableData,dataTableCaption:(0,l.__)("Keyphrase volume in the last 12 months on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:i})),o&&(0,t.createElement)("td",{className:"yoast-table--nobreak"},o(a,r)))})))),(0,t.createElement)("p",{style:{marginBottom:0}},(0,t.createElement)(bo,{href:n},(0,l.sprintf)((0,l.__)("Get more insights at %s","wordpress-seo"),"Semrush"))))}}Eo.propTypes={data:_().object,keyphrase:_().string,relatedKeyphrases:_().array,countryCode:_().string,renderAction:_().func},Eo.defaultProps={data:{},keyphrase:"",relatedKeyphrases:[],countryCode:"us",renderAction:null};const vo=Eo,ko=(0,J.makeOutboundLink)(),_o=()=>(0,t.createElement)(Q.Alert,{type:"info"},(0,l.sprintf)((0,l.__)("You’ll reach more people with multiple keyphrases! Want to quickly add these related keyphrases to the %s analyses for even better content optimization?","wordpress-seo"),"Yoast SEO")+" ",(0,t.createElement)(ko,{href:window.wpseoAdminL10n["shortlinks.semrush.premium_landing_page"]},(0,l.sprintf)((0,l.__)("Explore %s!","wordpress-seo"),"Yoast SEO Premium"))),xo=()=>(0,t.createElement)(Q.Alert,{type:"error"},(0,l.__)("We've encountered a problem trying to get related keyphrases. Please try again later.","wordpress-seo")),To=()=>(0,t.createElement)(Q.Alert,{type:"warning"},(0,l.sprintf)((0,l.__)("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"));function So(e){const{response:r,lastRequestKeyphrase:s,keyphrase:a,newRequest:o,setCountry:n,renderAction:c,countryCode:d,requestLimitReached:p,setRequestFailed:u,setNoResultsFound:h,relatedKeyphrases:g,setRequestSucceeded:y,setRequestLimitReached:f}=e,w=M().isPremium;return(0,t.createElement)(i.Fragment,null,!p&&(0,t.createElement)(i.Fragment,null,!w&&(0,t.createElement)(_o,null),w&&function(e){return e&&e.length>=4}(g)&&(0,t.createElement)(To,null),(0,t.createElement)(fo,{countryCode:d,setCountry:n,newRequest:o,keyphrase:a,setRequestFailed:u,setNoResultsFound:h,setRequestSucceeded:y,setRequestLimitReached:f,response:r,lastRequestKeyphrase:s})),function(e){const{isPending:r,requestLimitReached:s,isSuccess:a,response:o,requestHasData:n}=e;return r?(0,t.createElement)(po,null):s?(0,t.createElement)(mo,null):!a&&function(e){return!(0,m.isEmpty)(e)&&"error"in e}(o)?(0,t.createElement)(xo,null):n?void 0:(0,t.createElement)("p",null,(0,l.__)("Sorry, there's no data available for that keyphrase/country combination.","wordpress-seo"))}(e),(0,t.createElement)(vo,{keyphrase:a,relatedKeyphrases:g,countryCode:d,renderAction:c,data:r}))}So.propTypes={keyphrase:_().string,relatedKeyphrases:_().array,renderAction:_().func,requestLimitReached:_().bool,countryCode:_().string.isRequired,setCountry:_().func.isRequired,newRequest:_().func.isRequired,setRequestSucceeded:_().func.isRequired,setRequestLimitReached:_().func.isRequired,setRequestFailed:_().func.isRequired,setNoResultsFound:_().func.isRequired,response:_().object,lastRequestKeyphrase:_().string},So.defaultProps={keyphrase:"",relatedKeyphrases:[],renderAction:null,requestLimitReached:!1,response:{},lastRequestKeyphrase:""};const Ro=(0,H.compose)([(0,o.withSelect)((e=>{const{getFocusKeyphrase:t,getSEMrushSelectedCountry:r,getSEMrushRequestLimitReached:s,getSEMrushRequestResponse:a,getSEMrushRequestIsSuccess:o,getSEMrushIsRequestPending:n,getSEMrushRequestHasData:i,getSEMrushRequestKeyphrase:l}=e("yoast-seo/editor");return{keyphrase:t(),countryCode:r(),requestLimitReached:s(),response:a(),isSuccess:o(),isPending:n(),requestHasData:i(),lastRequestKeyphrase:l()}})),(0,o.withDispatch)((e=>{const{setSEMrushChangeCountry:t,setSEMrushNewRequest:r,setSEMrushRequestSucceeded:s,setSEMrushRequestFailed:a,setSEMrushSetRequestLimitReached:o,setSEMrushNoResultsFound:n}=e("yoast-seo/editor");return{setCountry:e=>{t(e)},newRequest:(e,t)=>{r(e,t)},setRequestSucceeded:e=>{s(e)},setRequestFailed:e=>{a(e)},setRequestLimitReached:()=>{o()},setNoResultsFound:()=>{n()}}}))])(So),Co=()=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)("p",null,mr((0,l.sprintf)((0,l.__)("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"),"<a>","</a>","WordProof","WordPress"),"https://help.wordproof.com/")));var Io,Ao,Po,Lo,Fo,Mo,Oo,No,qo,Do,$o,Bo,Wo,Uo,Ko,zo,Ho,Vo,jo,Yo,Go,Zo,Xo,Qo,Jo,en,tn,rn,sn,an,on,nn,ln,cn,dn,pn,un,mn,hn,gn,yn,fn,wn,bn,En,vn,kn,_n;function xn(){return xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},xn.apply(this,arguments)}const Tn=e=>t.createElement("svg",xn({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 448 360"},e),Io||(Io=t.createElement("circle",{cx:226,cy:211,r:149,fill:"#f0ecf0"})),Ao||(Ao=t.createElement("path",{fill:"#fbd2a6",d:"M173.53 189.38s-35.47-5.3-41.78-11c-9.39-24.93-29.61-48-35.47-66.21-.71-2.24 3.72-11.39 3.53-15.41s-5.34-11.64-5.23-14-.09-15.27-.09-15.27l-4.75-.72s-5.13 6.07-3.56 9.87c-1.73-4.19 4.3 7.93.5 9.35 0 0-6-5.94-11.76-8.27s-19.57-3.65-19.57-3.65L43.19 73l-4.42.6L31 69.7l-2.85 5.12 7.53 5.29L40.86 92l17.19 10.2 10.2 10.56 9.86 3.56s26.49 79.67 45 92c17 11.33 37.23 15.92 37.23 15.92Z"})),Po||(Po=t.createElement("path",{fill:"#a4286a",d:"M270.52 345.13c2.76-14.59 15.94-35.73 30.24-54.58 16.22-21.39 14-79.66-33.19-91.46-17.3-4.32-52.25-1-59.85-3.41C186.54 189 170 187 168 190.17c-5 10.51-7.73 27.81-5.51 36.26 1.18 4.73 3.54 5.91 20.49 13.4-5.12 15-16.35 26.3-22.86 37s7.88 27.2 7.1 33.51c-.48 3.8-4.26 21.13-7.18 34.25a149.47 149.47 0 0 0 110.3 8.66 25.66 25.66 0 0 1 .18-8.12Z"})),Lo||(Lo=t.createElement("path",{fill:"#9a5815",d:"M206.76 66.43c-5 14.4-1.42 25.67-3.93 40.74-10 60.34-24.08 43.92-31.44 93.6 7.24-14.19 14.32-15.82 20.63-23.11-.83 3.09-10.25 13.75-8.05 34.81 9.85-8.51 6.35-8.75 11.86-8.54.36 3.25 3.53 3.22-3.59 10.53 2.52.69 17.42-14.32 20.16-12.66s0 5.72-6 7.76c2.15 2.2 30.47-3.87 43.81-14.71 4.93-4 10-13.16 13.38-18.2 7.17-10.62 12.38-24.77 17.71-36.6 8.94-19.87 15.09-39.34 16.11-61.31.53-10.44-3.41-18.44-4.41-28.86-2.57-27.8-67.63-37.26-86.24 16.55Z"})),Fo||(Fo=t.createElement("path",{fill:"#efb17c",d:"M277.74 179.06c.62-.79 1.24-1.59 1.84-2.39-.85 2.59-1.52 3.73-1.84 2.39Z"})),Mo||(Mo=t.createElement("path",{fill:"#fbd2a6",d:"M216.1 206.72c3.69-5.42 8.28-3.35 15.57-8.28 3.76-3.06 1.57-9.46 1.77-11.82 18.25 4.56 37.38-1.18 49.07-16 .62 5.16-2.77 22.27-.2 27 4.73 8.67 13.4 18.92 13.4 18.92-35.47-2.76-63.45 39-89.86 44.54 5.52-28.74-2.36-35.84 10.25-54.36Z"})),Oo||(Oo=t.createElement("path",{fill:"#f6b488",d:"m235.21 167.9 53.21-25.23s-3.65 24-6.5 32.72c-64.05 62.66-46.47-7.33-46.71-7.49Z"})),No||(No=t.createElement("path",{fill:"#efb17c",d:"M277.68 178.82Z"})),qo||(qo=t.createElement("path",{fill:"#fbd2a6",d:"M226.86 50.64C215 59.31 206.37 93.21 204 95.57c-19.46 19.47-3.59 41.39-3.94 51.24-.2 5.52-4.14 25.42 5.72 29.36 22.22 8.89 60-3.48 67.19-12.61 13.28-16.75 40.89-94.78 17.74-108.19-7.92-4.58-42.78-20.18-63.85-4.73Z"})),Do||(Do=t.createElement("path",{fill:"#e5766c",d:"M243.69 143.66c-10.7-6.16-8.56-6.73-19.76-12.71-3.86-2.07-3.94.64-6.32 0-2.91-.79-1.39-2.74-5.37-3.48-6.52-1.21-3.67 3.63-3.15 6 1.32 6.15-8.17 17.3 3.26 21.42 12.65 4.55 21.38-9.41 31.34-11.23Z"})),$o||($o=t.createElement("path",{fill:"#fff",d:"M240.68 143.9c-11.49-5.53-11.65-8.17-24.64-11.69-8.6-2.32-5.53 1-5.69 4.42-.2 4.16-1.26 9.87 4.9 12.66 9 4.09 18.16-6.02 25.43-5.39ZM241.38 103c-.16 1.26-.06 4.9 5.46 8.25 11.43-4.73 16.36-2.56 17-3.33 1.48-1.76-2-8.87-7.88-9.85-5.58-.94-14.14 1.24-14.58 4.93Z"})),Bo||(Bo=t.createElement("path",{fill:"#000001",d:"M263.53 108.19c-4.32-4.33-6.85-6.24-12.26-8.21-2.77-1-6.18.18-8.65 1.67a3.65 3.65 0 0 0-1.24 1.23h-.12a3.73 3.73 0 0 1 1-1.52 12.53 12.53 0 0 1 11.93-3c4.73 1 9.43 4.63 9.42 9.82Z"})),Wo||(Wo=t.createElement("circle",{cx:254.13,cy:104.05,r:4.19,fill:"#000001"})),Uo||(Uo=t.createElement("path",{fill:"#fff",d:"M225.26 99.22c-.29 1-6.6 3.45-10.92 1.48-1.15-3.24-5-6.43-5.25-6.71-.5-2.86 5.55-8 10.06-6.3a10.21 10.21 0 0 1 6.11 11.53Z"})),Ko||(Ko=t.createElement("path",{fill:"#000001",d:"M209.29 94.21c-.19-2.34 1.84-4.1 3.65-5.2 7-3.87 13.18 3 12.43 10h-.12c-.14-4-2.38-8.44-6.47-9.11a3.19 3.19 0 0 0-2.42.31c-1.37.85-2.38 2-3.89 2.56-1 .45-1.92.42-3 1.4h-.22Z"})),zo||(zo=t.createElement("circle",{cx:219.55,cy:95.28,r:4,fill:"#000001"})),Ho||(Ho=t.createElement("path",{fill:"#efb17c",d:"M218.66 120.27a27.32 27.32 0 0 0 4.54 3.45c-2.29-.72-4.28-.69-6.32-2.27-2.53-2-3.39-5.16-.73-7.72 10.24-9.82 12.56-13.82 14.77-24.42-1 12.37-6 17.77-10.63 23.18-2.53 2.97-4.68 5.06-1.63 7.78Z"})),Vo||(Vo=t.createElement("path",{fill:"#a57c52",d:"M231.22 69.91c-.67-3.41-8.78-2.83-11.06-1.93-3.48 1.39-6.08 5.22-7.13 8.53 2.9-4.3 6.74-8.12 12.46-6 1.16.42 3.18 2.35 4.48 1.85s1.03-2.2 1.25-2.45ZM263.38 78.47c-2.75-1.66-12.24-5.08-12.18.82 2.56.24 5-.19 7.64.95 11.22 4.76 12.77 17.61 12.85 17.86.2-.53.1 1.26.23.7-.02.2.95-12.12-8.54-20.33Z"})),jo||(jo=t.createElement("path",{fill:"#fbd2a6",d:"M53.43 250.73c6.29 0-.6-.17 7.34 0 1.89.05-2.38-.7 0-.69 4.54-4.2 12.48-.74 20.6-2.45 4.55.35 3.93 1.35 5.59 4.19 4.89 8.38 4.78 14.21 14 19.56 16.42 8.38 66 12.92 88.49 18.86 5.52.83 42.64-20.15 61-23.75 6.51 10.74 11.46 28.68 8.39 34.93-6.54 13.3-57.07 25.4-75.91 25.15C156.47 326.18 94 294 92.2 293c-.94-.57.7-.7-7.68 0s-10.15.72-17.47-1.4c-3-.87-4.61-1.33-6.33-3.54-2 .22-3.39.2-4.78-1-3.15-2.74-4.84-6.61-2.73-10.06h-.12c-3.35-2.48-6.54-7.69-3.08-11.72 1-1.18 6.06-1.94 7.77-2.28-1.58-.29-6.37.19-7.49-.72-3.06-2.5-4.96-11.55 3.14-11.55Z"})),Yo||(Yo=t.createElement("path",{fill:"#a4286a",d:"M303.22 237.52c-9.87-11.88-41.59 8.19-47.8 12.34s-14.89 17.95-14.89 17.95c6 9.43 8.36 31 5.65 46.34l30.51-3s18-15.62 22.59-28.7 6.3-42.54 6.3-42.54"})),Go||(Go=t.createElement("path",{fill:"#cb9833",d:"M278.63 31.67c-6.08 0-22.91 4.07-22.93 12.91 0 11 47.9 38.38 16.14 85.85 10.21-.79 10.79-8.12 14.92-14.93-3.66 77-49.38 93.58-40.51 142.25 7.68-25.81 20.3-11.62 38.13-33.84 3.45 4.88 9 18.28-9.46 33.78 50-31.26 57.31-56.6 51.92-95C319.93 113.53 348.7 42 278.63 31.67Z"})),Zo||(Zo=t.createElement("path",{fill:"#fbd2a6",d:"M283.64 126.83c-2.42 9.67-8 15.76-1.48 16.46A21.26 21.26 0 0 0 302 132.6c5.17-8.52 3.93-16.44-2.46-18s-13.48 2.56-15.9 12.23Z"})),Xo||(Xo=t.createElement("path",{fill:"#efb17c",d:"M38 73.45c1.92 2 4.25 9.21 6.32 10.91 2.25 1.85 5.71 2.12 8.1 4.45 3.66-2 6-8.72 10-9.31-2.59 1.31-4.42 3.5-6.93 4.88-1.42.8-3 1.31-4.38 2.25-2.16-1.46-4.27-1.77-6.26-3.38-2.52-2.02-5.31-8-6.85-9.8Z"})),Qo||(Qo=t.createElement("path",{fill:"#efb17c",d:"M39 74.4c4.83 1.1 12.52 6.44 15.89 10-3.22-1.34-14.73-6.15-15.89-10ZM39.62 72.9c6.71-.79 18 1.54 23.29 5.9-3.85-.2-5.42-1.48-9-2.94-4.08-1.69-8.83-2.03-14.29-2.96ZM86.05 87.48c-3.72-1.32-10.52-1.13-13.22 3.52 2-1.16 1.84-2.11 4.18-1.72-3.81-4.15 8.16-.74 11.6-.24M85.83 102.19c.56-3.29-8-7.81-10.58-9.17-6.25-3.29-12.16 1.36-19.33-4.53 5.94 6.1 14.23 2.5 19.55 5.76 3.06 1.88 8.65 6.09 9.35 9.38-.23-.4 1.29-1.44 1.01-1.44Z"})),Jo||(Jo=t.createElement("circle",{cx:38.13,cy:30.03,r:3.14,fill:"#b89ac8"})),en||(en=t.createElement("circle",{cx:60.26,cy:39.96,r:3.14,fill:"#e31e0c"})),tn||(tn=t.createElement("circle",{cx:50.29,cy:25.63,r:3.14,fill:"#3baa45"})),rn||(rn=t.createElement("circle",{cx:22.19,cy:19.21,r:3.14,fill:"#2ca9e1"})),sn||(sn=t.createElement("circle",{cx:22.19,cy:30.03,r:3.14,fill:"#e31e0c"})),an||(an=t.createElement("circle",{cx:26.86,cy:8.28,r:3.14,fill:"#3baa45"})),on||(on=t.createElement("circle",{cx:49.32,cy:39.99,r:3.14,fill:"#e31e0c"})),nn||(nn=t.createElement("circle",{cx:63.86,cy:59.52,r:3.14,fill:"#f8ad39"})),ln||(ln=t.createElement("circle",{cx:50.88,cy:50.72,r:3.14,fill:"#3baa45"})),cn||(cn=t.createElement("circle",{cx:63.47,cy:76.17,r:3.14,fill:"#e31e0c"})),dn||(dn=t.createElement("circle",{cx:38.34,cy:14.83,r:3.14,fill:"#2ca9e1"})),pn||(pn=t.createElement("circle",{cx:44.44,cy:5.92,r:3.14,fill:"#f8ad39"})),un||(un=t.createElement("circle",{cx:57.42,cy:10.24,r:3.14,fill:"#e31e0c"})),mn||(mn=t.createElement("circle",{cx:66.81,cy:12.4,r:3.14,fill:"#2ca9e1"})),hn||(hn=t.createElement("circle",{cx:77.95,cy:5.14,r:3.14,fill:"#b89ac8"})),gn||(gn=t.createElement("circle",{cx:77.95,cy:30.34,r:3.14,fill:"#e31e0c"})),yn||(yn=t.createElement("circle",{cx:80.97,cy:16.55,r:3.14,fill:"#f8ad39"})),fn||(fn=t.createElement("circle",{cx:62.96,cy:27.27,r:3.14,fill:"#3baa45"})),wn||(wn=t.createElement("circle",{cx:75.36,cy:48.67,r:3.14,fill:"#2ca9e1"})),bn||(bn=t.createElement("circle",{cx:76.11,cy:65.31,r:3.14,fill:"#3baa45"})),En||(En=t.createElement("path",{fill:"#71b026",d:"M78.58 178.43C54.36 167.26 32 198.93 5 198.93c19.56 20.49 63.53 1.52 69 15.5 1.48-14.01 4.11-30.9 4.58-36Z"})),vn||(vn=t.createElement("path",{fill:"#074a67",d:"M67.75 251.08c0-4.65 10.13-72.65 10.13-72.65h2.8l-9.09 72.3Z"})),kn||(kn=t.createElement("ellipse",{cx:255.38,cy:103.18,fill:"#fff",rx:1.84,ry:1.77})),_n||(_n=t.createElement("ellipse",{cx:221.24,cy:94.75,fill:"#fff",rx:1.84,ry:1.77}))),Sn=e=>{const{closeModal:r}=e;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"yoast-wordproof-modal-image"},(0,t.createElement)(Tn,{class:"yoast-wordproof-modal-svg__success"})),(0,t.createElement)("p",null,(0,l.sprintf)((0,l.__)("Your %s is now protected via the blockchain!","wordpress-seo"),Es("current_post_type")),(0,t.createElement)("br",null),(0,i.createInterpolateElement)((0,l.sprintf)((0,l.__)("The %3$s will automatically be timestamped every time you %1$supdate%2$s or %1$spublish%2$s.","wordpress-seo"),"<b>","</b>",Es("current_post_type")),{b:(0,t.createElement)("b",null)})),(0,t.createElement)("div",{className:"yoast-wordproof-modal-action"},(0,t.createElement)(Q.NewButton,{variant:"primary",onClick:r},"Continue")))};Sn.propTypes={closeModal:_().func.isRequired};const Rn=Sn;var Cn;function In(){return In=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},In.apply(this,arguments)}const An=e=>t.createElement("svg",In({xmlns:"http://www.w3.org/2000/svg",fill:"#fff",fillRule:"evenodd",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",viewBox:"0 0 752 247"},e),Cn||(Cn=t.createElement("g",{stroke:"none",className:"connection-assistant_svg__B"},t.createElement("path",{fill:"#f17523",d:"M307.671 13.343C314.3 6.76 322.367.552 332.022-.127c5.029-.88 10.204-.124 15.012 1.447 3.588 1.147 6.294 3.893 8.763 6.605 3.333-1.582 7.09-1.837 10.73-1.803 3.35-.13 6.796.842 9.52 2.803 4.045 3.932 7.322 8.847 8.678 14.367.711 3.808 1.084 7.888-.22 11.616.824 2.334 4.61 2.746 3.96 5.628-.706 2.373-2.616 4.209-4.356 5.898l-.61.543c-2.532.644-4.605 2.203-5.888 4.474-.322-1.92-2.644-1.864-3.955-2.842-5.977-3.813-10.734-9.52-13.356-16.119-1.266-3.435-2.768-6.938-2.475-10.684-2.983.661-6 1.86-8.068 4.198-2.977 2.887-4.452 6.831-6.819 10.164-1.746 2.334-1.825 5.453-3.56 7.786-1.118 1.7-3 2.599-4.587 3.774 1.378.305 2.898.373 4.073 1.243 1.113.944.673 2.898-.632 3.424-2.255.288-4.577-.26-6.803.305-2.825.898-4.994 3.023-7.011 5.09-.91 1.035-2.61-.22-2.441-1.418-.192-1.406.955-2.412 1.66-3.48-2.7.898-5.525 1.21-8.316 1.593-1.508 1.243-2.819 2.763-4.022 4.306-1.537-1.345-3.057-3.22-5.34-2.91 1.204 1.7 2.86 2.989 4.475 4.271.249 5.39 1.774 10.594 3.271 15.74.616 2.266 2.52 3.809 4.334 5.137 3.542 2.22 7.497 3.74 10.995 6.022 1.819 3.029 3.35 6.255 4.469 9.616.559 1.373 1.005 3.046 2.503 3.684 4.638 2.6 9.808 4 14.712 6.006 3.955-2.068 7.695-4.52 11.531-6.791.616-.463 1.503-.785 1.718-1.605 1.056-3.847 1.74-7.785 2.746-11.638.74-2.645 2.96-4.447 4.706-6.436 2.266-2.65 5.565-4.457 7-7.774.255-5.853.294-11.746-.621-17.554 1.294-1.633 2.508-3.328 3.797-4.96.05 3.101.536 6.163.983 9.226.26 3.66.35 7.339.712 10.988.067.746.242 1.498.683 2.114 2.334 3.045 7.08 3.785 10.311 1.762-1 3.289-3.932 5.362-6.226 7.707-.073.655.237 1.271.396 1.898 1.096 2.554 1.163 5.752-1.164 7.65.943 2.051 1.689 4.322 1.14 6.6-.208 1.463-1.536 2.287-2.604 3.118.175 2.079 1.04 4.26.181 6.294-1.113 1.842-3.266 2.599-5.175 3.328-.413 1.66-.769 3.457-2.04 4.706-1.034 1.18-2.723 1.153-4.13 1.492-1.13 2.248-2.537 4.655-4.96 5.678-2.125.548-4.25-.34-6.34-.673-1.525 1.6-3.101 3.385-5.373 3.86-2.39.796-4.712-.6-6.78-1.645-1.638 1.215-3.423 2.6-5.599 2.334-2.344.146-3.972-1.633-5.53-3.074-2.12 1.08-4.566 2-6.945 1.198-2.209-.537-3.356-2.656-4.604-4.35-2.825-.029-5.978-.029-8.226-2.006-1.695-1.322-2.362-3.424-3.034-5.368-1.916-.305-4.142-.367-5.526-1.932-1.35-1.605-2.31-3.554-2.83-5.588-.566-2.305.638-4.497 1.028-6.723-.95-1.085-2.43-1.565-3.582-2.418-3.136-1.577-3.548-5.6-2.424-8.571-1.565-1.107-2.836-2.548-4.22-3.853 3.463-.023 7.056-1.904 8.028-5.424.847-2.21.802-4.616.599-6.938-.43-4.531-1.509-8.967-2.435-13.413-.464-2.074-3.023-2.011-4.447-3.136-2.265-1.644-4.593-4.119-4.102-7.147 1.125-1.881 3.102-3.266 3.47-5.56-2.792-4.276-1.882-9.565-.927-14.26 1.44-5.215 3.83-10.328 7.768-14.13zm22.78 19.356c-2.655 2.78-4.39 6.238-6.282 9.543 2.271-.904 3.955-2.808 5.661-4.492 3.656-3.966 7.775-8.073 9.006-13.509-3.254 2.35-5.746 5.475-8.384 8.458zm3.74 8.317c-1.027 1.622-2.383 2.989-3.423 4.599 3.955-2.147 7.057-6.271 7.373-10.82-1.61 1.882-2.469 4.25-3.95 6.221zm18.42 7.673c4.3-2.515 10.073-3.125 14.322-.136 1.492.588 2.13 2.848.605 3.774-1.396 1.102-2.74-.424-4.074-.797-3.864-1.028-7.786.543-11.108 2.435-.853-.457-2.045-1.017-1.994-2.163-.215-1.498 1.232-2.34 2.249-3.113z"}),t.createElement("path",{fill:"#fccda3",d:"M349.757 26.004c2.068-2.339 5.085-3.537 8.068-4.198-.293 3.746 1.21 7.25 2.475 10.684 2.622 6.6 7.379 12.306 13.356 16.12 1.311.977 3.633.92 3.955 2.841-2.084 2.876-4.356 5.622-6.361 8.554-1.899.644-3.809 1.266-5.78 1.656-1.402-4.707-7.797-6.023-11.47-3.193-.966.87-1.593 2.034-2.18 3.176-1.424-1.3-3.006-2.86-5.108-2.667-2.994.21-5.362 2.44-7.057 4.74-.796-2.859-3.43-5.13-6.452-5.09-3.893-.435-7.384 2.79-8.045 6.503-1.842.079-3.701.316-5.537.107-3.012-1.808-5.684-4.147-8.322-6.446 1.203-1.543 2.514-3.063 4.022-4.306 2.791-.384 5.616-.695 8.317-1.593-.706 1.068-1.853 2.074-1.661 3.48-.17 1.198 1.53 2.452 2.44 1.418 2.018-2.067 4.187-4.192 7.012-5.09 2.226-.565 4.548-.017 6.803-.305 1.305-.526 1.745-2.48.632-3.424-1.175-.87-2.695-.938-4.073-1.243 1.587-1.175 3.469-2.073 4.588-3.774 1.734-2.333 1.813-5.452 3.559-7.786 2.367-3.333 3.842-7.277 6.82-10.164zm2.853 22.685c-1.017.774-2.463 1.615-2.248 3.113-.051 1.147 1.141 1.706 1.994 2.164 3.322-1.893 7.243-3.464 11.108-2.435 1.333.372 2.678 1.898 4.074.796 1.525-.926.887-3.186-.605-3.774-4.249-2.989-10.023-2.379-14.322.136zm-22.158-15.99c2.638-2.983 5.13-6.107 8.384-8.458-1.232 5.436-5.35 9.543-9.006 13.51-1.706 1.683-3.39 3.587-5.661 4.491 1.893-3.305 3.627-6.763 6.283-9.543zm3.74 8.317c1.48-1.972 2.339-4.34 3.95-6.22-.317 4.548-3.419 8.672-7.374 10.819 1.04-1.61 2.396-2.978 3.424-4.599zm49.307 5.96.61-.542c1.678-.53 3.339.921 4.09 2.34 2.656 4.208 3.39 9.44 2.367 14.271-1.04 3.509-2.638 7.503-6.508 8.616l-.085.266c-.44-.616-.616-1.368-.684-2.113-.361-3.65-.452-7.328-.711-10.99-.447-3.062-.933-6.124-.984-9.226a37.81 37.81 0 0 0 1.905-2.621zm-84.11 8.357c.542-.526 1.203-1.622 2.073-.893 1.424 1.125 3.983 1.062 4.447 3.136.926 4.446 2.005 8.882 2.435 13.413.203 2.322.248 4.729-.6 6.938-1.49-.243-3.044-.548-4.203-1.582-4.497-3.695-6.599-9.74-6.119-15.464.243-1.932.532-4.096 1.967-5.548zm74.019 5.085 4.39-5.86c.915 5.809.876 11.702.621 17.555-1.435 3.317-4.734 5.124-7 7.774-1.746 1.989-3.966 3.791-4.706 6.436-1.006 3.853-1.69 7.79-2.746 11.638-.215.82-1.102 1.142-1.718 1.605-3.836 2.271-7.576 4.723-11.531 6.791-4.904-2.006-10.074-3.407-14.712-6.006-1.498-.638-1.944-2.31-2.503-3.684-1.119-3.361-2.65-6.587-4.47-9.616-3.497-2.282-7.452-3.802-10.994-6.022-1.814-1.328-3.718-2.87-4.334-5.136-1.497-5.147-3.022-10.35-3.27-15.74 3.135 2.203 5.559 5.44 9.112 7.016 1.882.108 3.763-.056 5.645-.079.135 3.147 1.943 6.334 4.966 7.498 2.085.712 4.723.96 6.492-.627 2.322-1.786 3.164-4.78 3.435-7.577 1.768-2.05 3.3-4.723 6.147-5.367 2.35-.452 3.825 1.808 5.158 3.339-.17 2.4.678 4.774 2.187 6.627 2.83 3.656 9.644 2.729 11.283-1.633.841-1.74.66-3.717.683-5.593 2.181-.548 4.362-1.13 6.475-1.921.661-.215.96-.921 1.39-1.418zm-26.12 21.47c-2.717.372-5.231-1.865-7.96-1.244 2.011 1.955 4.678 3.424 7.401 4.029 3.158-.887 5.927-3 7.904-5.582-2.69.079-4.938 1.796-7.345 2.796zm13.577 1.423c-6.751 2.22-13.3 5.175-20.306 6.526.678.808 1.74.955 2.746.78 5.515-.78 10.65-3.029 15.876-4.831 1.69-.684 3.48-1.424 4.65-2.893-1.005.034-2.017.085-2.966.418zm43.905 73.37c2.842-.673 6.017-1.232 8.746.146 2.498 1.385 5.147 2.577 7.323 4.464 2.638 2.316 4.655 5.232 6.514 8.192 1.57 2.65 2.147 5.73 2.316 8.769.305 1.56.3 3.158.085 4.734-.503 3.752-.361 7.814-2.249 11.21-2.18 2.418-5.243 3.768-7.802 5.729-2.729 2.011-6.407 1.457-9.243-.023-2.497 2.56-7.198 3.983-10.046 1.226-2.09.3-4.096 1.407-6.248.96-1.718-.084-3.085-1.327-4.142-2.57-1.062-1.418-.232-3.181-.028-4.729 1.164-7.707 2.04-15.492 4.096-23.029-4.972.678-10.238 1.09-15.085-.458-1.746-.61-3.82-1.248-4.43-3.22-1.237-2.074-.395-5.136 2.09-5.752 3.905-.214 7.747 1.814 11.657 1.096 5.316-2.599 10.695-5.226 16.446-6.746zm-95.906 18.96c3.344-1.18 6.966-2.457 10.525-1.44 2.272 1.395 4.266 3.277 5.86 5.412 3.485 4.701 6.717 9.588 9.508 14.741.802 1.48 2.04 3.147 1.215 4.904-.746 2.068-3.147 2.356-5.029 2.622-1.938.339-3.345-1.322-4.446-2.656-3.627-4.887-6.232-10.672-10.921-14.684 2.463 4.226 4.7 8.594 6.616 13.102 1.005 2.385 1.231 4.99 2.067 7.419.673 1.542.385 3.598-1.27 4.372-2.357.61-4.837 1.097-7.278.78-1.215-.135-2.175-1.05-3.373-1.22-1.542.424-2.96 1.237-4.542 1.537-2.588.632-5.277-.13-7.87.497-2.882.678-5.877.101-8.594-.927-3.17-1.265-5.345-4.113-6.848-7.073a20.88 20.88 0 0 1-1.565-3.955 31.05 31.05 0 0 1-.367-8.916c.209-2.158 2.215-3.322 3.893-4.305 7.367-3.627 14.418-8.063 22.419-10.21z"}),t.createElement("path",{fill:"#847972",d:"M377.611 51.451c1.283-2.27 3.356-3.83 5.888-4.474l-1.904 2.621-3.797 4.96-4.39 5.86c-.43.497-.73 1.203-1.39 1.418-2.113.79-4.294 1.373-6.475 1.92l-.073-2.095c1.972-.39 3.881-1.012 5.78-1.656 2.005-2.932 4.277-5.678 6.361-8.554zm-71.652 4.43c2.283-.31 3.803 1.565 5.34 2.91 2.638 2.3 5.31 4.638 8.322 6.446 1.836.21 3.695-.028 5.537-.107l.034 1.96c-1.882.023-3.763.187-5.645.08-3.553-1.577-5.977-4.814-9.113-7.018-1.616-1.282-3.271-2.57-4.475-4.271zm33.696 7.836c1.695-2.3 4.063-4.53 7.057-4.74 2.102-.192 3.684 1.367 5.108 2.667l-.43 2.712c-1.333-1.531-2.808-3.791-5.158-3.34-2.848.645-4.379 3.317-6.147 5.368l-.43-2.667z"}),t.createElement("path",{d:"M354 58.469c3.673-2.831 10.069-1.515 11.47 3.192l.073 2.096c-.022 1.876.158 3.853-.683 5.593-1.639 4.362-8.453 5.289-11.283 1.633-1.509-1.853-2.356-4.226-2.187-6.627.096-.91.243-1.814.43-2.712.587-1.141 1.214-2.305 2.18-3.175zm5.181 5.887c-2.565 1.294-3.452 5.328-1.367 7.424 2.656 1.91 5.865-1.362 5.464-4.142.542-2.328-2.046-3.96-4.097-3.282zm-34.023.774c.66-3.712 4.152-6.938 8.045-6.503 3.023-.04 5.656 2.231 6.452 5.09.164.882.305 1.774.43 2.667-.272 2.797-1.113 5.791-3.435 7.577-1.769 1.587-4.407 1.338-6.492.627-3.023-1.164-4.83-4.35-4.966-7.498l-.034-1.96zm7.627 1.525c-3.034 1.486-2.842 7.368.955 7.644 3.424.006 4.977-4.508 3.345-7.141-1.074-1.141-2.984-1.401-4.3-.503zm27.77-.43c1.316-.615 1.779 2.153.316 1.848-.933.125-1.215-1.672-.317-1.847zm-25.889 2.26c.758-1.344 2.515.61 1.34 1.317-.82.95-1.712-.565-1.34-1.316z"}),t.createElement("path",{fill:"#3e2723",d:"M359.181 64.356c2.051-.678 4.639.955 4.097 3.282.4 2.78-2.808 6.051-5.464 4.142-2.085-2.096-1.198-6.13 1.367-7.424zm1.373 1.87c-.898.175-.615 1.972.317 1.847 1.463.305 1-2.463-.317-1.847zm-27.769.43c1.316-.9 3.226-.64 4.3.502 1.633 2.633.079 7.147-3.345 7.141-3.797-.276-3.989-6.158-.955-7.644zm1.881 1.83c-.372.751.52 2.265 1.34 1.316 1.175-.706-.582-2.661-1.34-1.316zm337.48 82.296 79.115-9.526v4.74l-58.228 7.097-81.867 9.379L505.74 175.94c-10.77 1.684-21.623 2.718-32.437 4.023l-21.203 1.723c-7.447.469-14.877 1.401-22.346 1.3.215-1.577.22-3.176-.085-4.735 6.26.005 12.492-.616 18.735-1.068 11.984-1.006 24.024-1.605 35.928-3.407 14.955-1.3 29.724-4.102 44.606-5.994 47.645-6.385 95.432-11.656 143.208-17.001zm-299.213 21.696 6.074-1.176c4.848 1.549 10.113 1.136 15.085.458-2.056 7.537-2.932 15.323-4.096 23.029-3.695.814-7.424 1.463-11.13 2.226-.441-1.667-.718-3.379-1.238-5.023-1.938-.293-3.994.769-6.011.803-1.271-.034-3.328.672-3.91-.899-.621-.875.26-1.887 1.017-2.3 2.463-1.293 5.311-1.446 7.893-2.417l-1.446-5.854c-3.074.39-6.08 1.543-9.204 1.305-1.373-.491-1.525-2.678-.232-3.327 2.582-1.294 5.52-1.605 8.238-2.56l-1.04-4.265zm-47.685 7.135 15.334-2.005c2.164 7.717 3.509 15.639 4.684 23.56-6.916 1.69-13.955 2.915-21.007 3.892-.836-2.429-1.062-5.034-2.067-7.418-1.916-4.508-4.153-8.876-6.616-13.102 4.689 4.012 7.294 9.797 10.92 14.684 1.102 1.334 2.51 2.995 4.447 2.656 1.882-.266 4.283-.554 5.029-2.622.824-1.757-.413-3.424-1.215-4.904-2.791-5.153-6.023-10.04-9.509-14.74zM249.545 200.7c7.695-.706 15.447-.413 23.142-1.153 3.402-.3 6.814-.53 10.232-.474.379 1.367.915 2.689 1.565 3.955-3.361.118-6.723.31-10.062.706-8.43 1.118-16.955 1.079-25.425 1.785-12.045.989-24.153.554-36.204 1.458l-1.023.424c-.723-.356-1.525-.39-2.31-.328-10.165.763-20.363.435-30.55.593l-75.685.011c-27.877-.101-55.754.266-83.624-.305-6.701-.712-13.464-1.135-20.1-2.339v-2.904l18.964.69 25.99.112 140.653-.062c8.809-.005 17.634-.079 26.425-.52 12.639-1.163 25.368-.548 38.012-1.65z"}),t.createElement("path",{fill:"#dba378",d:"M347.288 81.887c2.407-1 4.656-2.717 7.345-2.796-1.977 2.582-4.746 4.695-7.904 5.582-2.723-.605-5.39-2.074-7.401-4.029 2.729-.621 5.243 1.616 7.96 1.243zm13.577 1.424c.95-.333 1.96-.384 2.966-.418-1.17 1.469-2.96 2.21-4.65 2.893-5.226 1.802-10.362 4.05-15.876 4.83-1.005.175-2.068.029-2.746-.78 7.006-1.35 13.554-4.305 20.306-6.525z"}),t.createElement("path",{fill:"#bf360c",d:"M388.453 83.294c10.408.7 20.865 1.057 31.16 2.893 14.006 2.57 27.938 5.548 41.797 8.842 4.837 1.073 9.47 2.864 14.159 4.435 3.277 1.136 6.633 2.074 9.757 3.616 5.537 2.678 11.684 4.31 16.526 8.26 5.61 4.215 9.52 10.385 11.944 16.905 1.859 6.474 1.367 13.43-.265 19.893-.701 4.198-2.684 8.17-5.594 11.271-3.684 3.56-8.107 6.227-12.373 9.012-3.446 2.356-7.43 3.695-11.232 5.356-11.904 1.802-23.944 2.401-35.928 3.407-6.243.452-12.475 1.073-18.735 1.068-.17-3.04-.745-6.12-2.316-8.769-1.859-2.96-3.876-5.876-6.514-8.192-2.176-1.887-4.825-3.08-7.323-4.464-2.729-1.378-5.904-.819-8.746-.146-5.751 1.52-11.13 4.147-16.446 6.745-3.91.718-7.752-1.31-11.656-1.096-2.486.616-3.328 3.678-2.09 5.752.61 1.972 2.683 2.61 4.429 3.22-2.045.294-4.063.74-6.074 1.176.367 1.412.712 2.836 1.04 4.265-2.718.955-5.656 1.266-8.238 2.56-1.294.65-1.141 2.836.232 3.327 3.124.238 6.13-.915 9.204-1.305.525 1.938.988 3.893 1.446 5.854-2.582.971-5.43 1.124-7.893 2.418-.757.412-1.638 1.424-1.017 2.3.582 1.57 2.639.864 3.91.898 2.017-.034 4.073-1.096 6.011-.803.52 1.644.797 3.356 1.238 5.023l11.13-2.226c-.204 1.548-1.034 3.31.028 4.729 1.057 1.243 2.424 2.486 4.142 2.57 2.152.447 4.158-.66 6.248-.96 2.848 2.757 7.549 1.334 10.046-1.226 2.836 1.48 6.514 2.034 9.243.023 2.56-1.96 5.622-3.311 7.802-5.73 1.888-3.395 1.746-7.457 2.25-11.209 7.468.102 14.898-.83 22.344-1.3.35 7.77 1.153 15.504 1.554 23.262-.028 4.14.757 8.226.785 12.361.187 9.718-.073 19.436-.05 29.148-65.155-.028-130.31.006-195.464-.017l.95-16.633c.112-5.08.05-10.158.073-15.238-6.588 1.707-13.487 2.034-20.25 1.498-9.808-.605-19.616-3.35-27.927-8.667l1.023-.424c12.051-.904 24.159-.47 36.204-1.458 8.47-.706 16.995-.667 25.425-1.785 3.339-.396 6.7-.588 10.062-.706 1.503 2.96 3.678 5.808 6.848 7.073 2.717 1.028 5.712 1.605 8.593.927 2.594-.627 5.283.135 7.87-.497 1.583-.3 3-1.113 4.543-1.537 1.198.17 2.158 1.085 3.373 1.22 2.44.317 4.921-.17 7.277-.78 1.656-.774 1.944-2.83 1.271-4.372 7.052-.978 14.091-2.204 21.007-3.893-1.175-7.921-2.52-15.843-4.684-23.56l-15.334 2.005c-1.593-2.135-3.587-4.017-5.859-5.412-3.56-1.017-7.18.26-10.525 1.44-8 2.147-15.052 6.583-22.42 10.21-1.677.983-3.683 2.147-3.892 4.305a31.05 31.05 0 0 0 .367 8.916c-3.418-.057-6.83.175-10.232.474-7.695.74-15.447.447-23.142 1.153-12.644 1.102-25.373.486-38.012 1.65a63.323 63.323 0 0 0-5.48-.057c-4.289-4.35-7.035-10.006-8.283-15.95-.497-2.904.39-5.762 1.005-8.576 1.012-5.17 3.712-9.803 6.628-14.12 3.18-4.677 7.492-8.384 11.424-12.395 2.237-2.622 4.57-5.204 7.39-7.22 4.548-3.6 9.226-7.03 13.983-10.357 10.04-7.26 20.696-13.593 31.075-20.345 4.712-3.266 10.085-5.345 15.153-7.972 5.034-2.379 9.927-5.124 15.266-6.786a44.715 44.715 0 0 0 6.667-2.796c1.152.853 2.632 1.333 3.582 2.418-.39 2.226-1.594 4.418-1.029 6.723.52 2.034 1.48 3.983 2.83 5.588 1.385 1.565 3.611 1.627 5.527 1.932.672 1.944 1.339 4.046 3.034 5.368 2.248 1.977 5.4 1.977 8.226 2.005 1.248 1.695 2.395 3.814 4.604 4.35 2.379.803 4.825-.118 6.944-1.197 1.56 1.44 3.187 3.22 5.531 3.074 2.176.265 3.96-1.12 5.6-2.334 2.067 1.045 4.39 2.44 6.78 1.644 2.27-.474 3.847-2.26 5.372-3.859 2.09.334 4.215 1.22 6.34.673 2.423-1.023 3.83-3.43 4.96-5.678 1.407-.34 3.096-.311 4.13-1.492 1.271-1.249 1.627-3.045 2.04-4.706 1.91-.73 4.062-1.486 5.175-3.328.859-2.034-.006-4.215-.18-6.294 1.067-.83 2.395-1.656 2.604-3.119.548-2.277-.198-4.548-1.141-6.599 2.327-1.898 2.26-5.096 1.163-7.65z"})))),Pn=e=>{const{closeModal:r}=e,s=(0,i.useCallback)((e=>{r(),e.preventDefault(),_s()}));return(0,t.createElement)("div",null,(0,t.createElement)("div",{className:"yoast-wordproof-modal-image"},(0,t.createElement)(An,{className:"yoast-wordproof-modal-svg__webhook-failed"})),(0,t.createElement)("div",null,(0,l.__)("There was a connection problem. This could be because your third party connections are blocked.","wordpress-seo"),(0,t.createElement)("br",null),mr((0,l.sprintf)((0,l.__)("Find possible solutions in this %1$sArticle%2$s.","wordpress-seo"),"<a>","</a>"),"https://help.wordproof.com/en/articles/4823201-how-do-i-whitelist-wordproof-in-cloudflare")),(0,t.createElement)("div",{className:"yoast-wordproof-modal-action"},(0,t.createElement)(Q.NewButton,{variant:"secondary",onClick:s},(0,l.__)("Try again","wordpress-seo"))),(0,t.createElement)("div",null,mr((0,l.sprintf)((0,l.__)("Not working? %1$sContact %3$s support%2$s.","wordpress-seo"),"<a>","</a>","WordProof"),"https://help.wordproof.com")))};Pn.propTypes={closeModal:_().func.isRequired};const Ln=Pn,Fn=()=>{const[e,r]=(0,i.useState)(null),s=(0,i.useCallback)((()=>{r("oauth:failed")})),a=(0,i.useCallback)((()=>{r("webhook:failed")})),o=(0,i.useCallback)((()=>{r("oauth:success")})),n=(0,i.useCallback)((()=>{r(null)}));(0,i.useEffect)((()=>(window.addEventListener("wordproof:oauth:success",o,!1),window.addEventListener("wordproof:oauth:failed",s,!1),window.addEventListener("wordproof:webhook:failed",a,!1),()=>{window.removeEventListener("wordproof:oauth:success",o,!1),window.removeEventListener("wordproof:oauth:failed",s,!1),window.removeEventListener("wordproof:webhook:failed",a,!1)})),[]);const c=(0,i.useCallback)((()=>{switch(e){case"webhook:failed":return(0,l.__)("Connection failed","wordpress-seo");case"oauth:success":return(0,l.__)("Connected to WordProof","wordpress-seo");default:return(0,l.__)("WordProof authentication","wordpress-seo")}}));return(0,t.createElement)(t.Fragment,null,e&&(0,t.createElement)(ae,{onRequestClose:n,additionalClassName:"yoast-wordproof-modal",title:c()},"oauth:success"===e&&(0,t.createElement)(Rn,{closeModal:n}),"oauth:failed"===e&&(0,t.createElement)(Co,null),"webhook:failed"===e&&(0,t.createElement)(Ln,{closeModal:n})))},Mn=(0,l.__)("Check your text on even more SEO criteria and get an enhanced keyphrase analysis, making it easier to optimize your content.","wordpress-seo"),On=e=>{const{locationContext:r}=(0,p.useRootContext)(),s=(0,Vr.addQueryArgs)(wpseoAdminL10n[e.buyLink],{context:r});return(0,t.createElement)(ys,{title:(0,l.__)("Get more help with writing content that ranks","wordpress-seo"),description:e.description,benefitsTitle:(0,l.sprintf)("%s also gives you:","Yoast SEO Premium"),benefits:os(),upsellButtonText:(0,l.sprintf)((0,l.__)("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:(0,l.__)("1 year of premium support and updates included!","wordpress-seo")})};On.propTypes={buyLink:_().string.isRequired,description:_().string},On.defaultProps={description:Mn};const Nn=On,qn=({location:e})=>{const[r,s]=(0,i.useState)(!1),a=(0,i.useCallback)((()=>s(!1)),[]),o=(0,i.useCallback)((()=>s(!0)),[]),n=(0,Er.useSvgAria)();return(0,t.createElement)(i.Fragment,null,r&&(0,t.createElement)(ae,{title:(0,l.__)("Unlock Premium SEO analysis","wordpress-seo"),onRequestClose:a,additionalClassName:"",className:`${re} yoast-gutenberg-modal__box yoast-gutenberg-modal__no-padding`,id:"yoast-premium-seo-analysis-modal",shouldCloseOnClickOutside:!0},(0,t.createElement)(te,null,(0,t.createElement)(Nn,{buyLink:`shortlinks.upsell.${e}.premium_seo_analysis_button`}))),"sidebar"===e&&(0,t.createElement)(de,{id:"yoast-premium-seo-analysis-modal-open-button",title:(0,l.__)("Premium SEO analysis","wordpress-seo"),prefixIcon:{icon:"seo-score-none",color:ve.colors.$color_grey},onClick:o},(0,t.createElement)("div",{className:"yst-root"},(0,t.createElement)(Er.Badge,{size:"small",variant:"upsell"},(0,t.createElement)(as,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...n})))),"metabox"===e&&(0,t.createElement)("div",{className:"yst-root"},(0,t.createElement)(X,{id:"yoast-premium-seo-analysis-metabox-modal-open-button",onClick:o},(0,t.createElement)(Q.SvgIcon,{icon:"seo-score-none",color:ve.colors.$color_grey}),(0,t.createElement)(X.Text,null,(0,l.__)("Premium SEO analysis","wordpress-seo")),(0,t.createElement)(Er.Badge,{size:"small",variant:"upsell"},(0,t.createElement)(as,{className:"yst-w-2.5 yst-h-2.5 yst-mr-1 yst-shrink-0",...n}),(0,t.createElement)("span",null,"Premium")))))};qn.propTypes={location:_().string},qn.defaultProps={location:"sidebar"};const Dn=qn,$n=e=>(0,t.createElement)(ys,{title:(0,l.__)("Reach a wider audience","wordpress-seo"),description:(0,l.__)("Get help optimizing for up to 5 related keyphrases. This helps you reach a wider audience and get more traffic.","wordpress-seo"),benefitsTitle:(0,l.sprintf)("%s also gives you:","Yoast SEO Premium"),benefits:os(),upsellButtonText:(0,l.sprintf)((0,l.__)("Unlock with %s","wordpress-seo"),"Yoast SEO Premium"),upsellButton:{href:e.buyLink,className:"yoast-button-upsell",rel:null,"data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2","data-action":"load-nfd-ctb"},upsellButtonLabel:(0,l.__)("1 year free support and updates included!","wordpress-seo")});$n.propTypes={buyLink:_().string.isRequired};const Bn=$n,Wn=()=>{const[e,,,r,s]=(0,Er.useToggleState)(!1),a=(0,i.useContext)(p.LocationContext),{locationContext:o}=(0,p.useRootContext)(),n=(0,Er.useSvgAria)(),c=wpseoAdminL10n["sidebar"===a.toLowerCase()?"shortlinks.upsell.sidebar.additional_button":"shortlinks.upsell.metabox.additional_button"];return(0,t.createElement)(t.Fragment,null,e&&(0,t.createElement)(ae,{title:(0,l.__)("Add related keyphrases","wordpress-seo"),onRequestClose:s,additionalClassName:"",id:"yoast-additional-keyphrases-modal",className:`${re} yoast-gutenberg-modal__box yoast-gutenberg-modal__no-padding`,shouldCloseOnClickOutside:!0},(0,t.createElement)(te,null,(0,t.createElement)(Bn,{buyLink:(0,Vr.addQueryArgs)(c,{context:o})}))),"sidebar"===a&&(0,t.createElement)(de,{id:"yoast-additional-keyphrase-modal-open-button",title:(0,l.__)("Add related keyphrase","wordpress-seo"),prefixIcon:{icon:"plus",color:ve.colors.$color_grey_medium_dark},onClick:r},(0,t.createElement)("div",{className:"yst-root"},(0,t.createElement)(Er.Badge,{size:"small",variant:"upsell"},(0,t.createElement)(as,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...n})))),"metabox"===a&&(0,t.createElement)("div",{className:"yst-root"},(0,t.createElement)(X,{id:"yoast-additional-keyphrase-metabox-modal-open-button",onClick:r},(0,t.createElement)(Q.SvgIcon,{icon:"plus",color:ve.colors.$color_grey_medium_dark}),(0,t.createElement)(X.Text,null,(0,l.__)("Add related keyphrase","wordpress-seo")),(0,t.createElement)(Er.Badge,{size:"small",variant:"upsell"},(0,t.createElement)(as,{className:"yst-w-2.5 yst-h-2.5 yst-mr-1 yst-shrink-0",...n}),(0,t.createElement)("span",null,"Premium")))))};var Un,Kn,zn,Hn,Vn,jn,Yn,Gn,Zn,Xn,Qn,Jn,ei,ti,ri,si,ai,oi,ni,ii,li,ci,di,pi,ui,mi,hi,gi,yi,fi,wi,bi,Ei,vi,ki,_i,xi,Ti,Si,Ri,Ci,Ii,Ai,Pi,Li,Fi,Mi;function Oi(){return Oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},Oi.apply(this,arguments)}const Ni=e=>t.createElement("svg",Oi({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 448 360"},e),Un||(Un=t.createElement("circle",{cx:226,cy:211,r:149,fill:"#f0ecf0"})),Kn||(Kn=t.createElement("path",{fill:"#fbd2a6",d:"M173.53 189.38s-35.47-5.3-41.78-11c-9.39-24.93-29.61-48-35.47-66.21-.71-2.24 3.72-11.39 3.53-15.41s-5.34-11.64-5.23-14-.09-15.27-.09-15.27l-4.75-.72s-5.13 6.07-3.56 9.87c-1.73-4.19 4.3 7.93.5 9.35 0 0-6-5.94-11.76-8.27s-19.57-3.65-19.57-3.65L43.19 73l-4.42.6L31 69.7l-2.85 5.12 7.53 5.29L40.86 92l17.19 10.2 10.2 10.56 9.86 3.56s26.49 79.67 45 92c17 11.33 37.23 15.92 37.23 15.92z"})),zn||(zn=t.createElement("path",{fill:"#a4286a",d:"M270.52 345.13c2.76-14.59 15.94-35.73 30.24-54.58 16.22-21.39 14-79.66-33.19-91.46-17.3-4.32-52.25-1-59.85-3.41C186.54 189 170 187 168 190.17c-5 10.51-7.73 27.81-5.51 36.26 1.18 4.73 3.54 5.91 20.49 13.4-5.12 15-16.35 26.3-22.86 37s7.88 27.2 7.1 33.51c-.48 3.8-4.26 21.13-7.18 34.25a149.47 149.47 0 0 0 110.3 8.66 25.66 25.66 0 0 1 .18-8.12z"})),Hn||(Hn=t.createElement("path",{fill:"#9a5815",d:"M206.76 66.43c-5 14.4-1.42 25.67-3.93 40.74-10 60.34-24.08 43.92-31.44 93.6 7.24-14.19 14.32-15.82 20.63-23.11-.83 3.09-10.25 13.75-8.05 34.81 9.85-8.51 6.35-8.75 11.86-8.54.36 3.25 3.53 3.22-3.59 10.53 2.52.69 17.42-14.32 20.16-12.66s0 5.72-6 7.76c2.15 2.2 30.47-3.87 43.81-14.71 4.93-4 10-13.16 13.38-18.2 7.17-10.62 12.38-24.77 17.71-36.6 8.94-19.87 15.09-39.34 16.11-61.31.53-10.44-3.41-18.44-4.41-28.86-2.57-27.8-67.63-37.26-86.24 16.55z"})),Vn||(Vn=t.createElement("path",{fill:"#efb17c",d:"M277.74 179.06c.62-.79 1.24-1.59 1.84-2.39-.85 2.59-1.52 3.73-1.84 2.39z"})),jn||(jn=t.createElement("path",{fill:"#fbd2a6",d:"M216.1 206.72c3.69-5.42 8.28-3.35 15.57-8.28 3.76-3.06 1.57-9.46 1.77-11.82 18.25 4.56 37.38-1.18 49.07-16 .62 5.16-2.77 22.27-.2 27 4.73 8.67 13.4 18.92 13.4 18.92-35.47-2.76-63.45 39-89.86 44.54 5.52-28.74-2.36-35.84 10.25-54.36z"})),Yn||(Yn=t.createElement("path",{fill:"#f6b488",d:"m235.21 167.9 53.21-25.23s-3.65 24-6.5 32.72c-64.05 62.66-46.47-7.33-46.71-7.49z"})),Gn||(Gn=t.createElement("path",{fill:"#fbd2a6",d:"M226.86 50.64C215 59.31 206.37 93.21 204 95.57c-19.46 19.47-3.59 41.39-3.94 51.24-.2 5.52-4.14 25.42 5.72 29.36 22.22 8.89 60-3.48 67.19-12.61 13.28-16.75 40.89-94.78 17.74-108.19-7.92-4.58-42.78-20.18-63.85-4.73z"})),Zn||(Zn=t.createElement("path",{fill:"#e5766c",d:"M243.69 143.66c-10.7-6.16-8.56-6.73-19.76-12.71-3.86-2.07-3.94.64-6.32 0-2.91-.79-1.39-2.74-5.37-3.48-6.52-1.21-3.67 3.63-3.15 6 1.32 6.15-8.17 17.3 3.26 21.42 12.65 4.55 21.38-9.41 31.34-11.23z"})),Xn||(Xn=t.createElement("path",{fill:"#fff",d:"M240.68 143.9c-11.49-5.53-11.65-8.17-24.64-11.69-8.6-2.32-5.53 1-5.69 4.42-.2 4.16-1.26 9.87 4.9 12.66 9 4.09 18.16-6.02 25.43-5.39zm.7-40.9c-.16 1.26-.06 4.9 5.46 8.25 11.43-4.73 16.36-2.56 17-3.33 1.48-1.76-2-8.87-7.88-9.85-5.58-.94-14.14 1.24-14.58 4.93z"})),Qn||(Qn=t.createElement("path",{fill:"#000001",d:"M263.53 108.19c-4.32-4.33-6.85-6.24-12.26-8.21-2.77-1-6.18.18-8.65 1.67a3.65 3.65 0 0 0-1.24 1.23h-.12a3.73 3.73 0 0 1 1-1.52 12.53 12.53 0 0 1 11.93-3c4.73 1 9.43 4.63 9.42 9.82z"})),Jn||(Jn=t.createElement("circle",{cx:254.13,cy:104.05,r:4.19,fill:"#000001"})),ei||(ei=t.createElement("path",{fill:"#fff",d:"M225.26 99.22c-.29 1-6.6 3.45-10.92 1.48-1.15-3.24-5-6.43-5.25-6.71-.5-2.86 5.55-8 10.06-6.3a10.21 10.21 0 0 1 6.11 11.53z"})),ti||(ti=t.createElement("path",{fill:"#000001",d:"M209.29 94.21c-.19-2.34 1.84-4.1 3.65-5.2 7-3.87 13.18 3 12.43 10h-.12c-.14-4-2.38-8.44-6.47-9.11a3.19 3.19 0 0 0-2.42.31c-1.37.85-2.38 2-3.89 2.56-1 .45-1.92.42-3 1.4h-.22z"})),ri||(ri=t.createElement("circle",{cx:219.55,cy:95.28,r:4,fill:"#000001"})),si||(si=t.createElement("path",{fill:"#efb17c",d:"M218.66 120.27a27.32 27.32 0 0 0 4.54 3.45c-2.29-.72-4.28-.69-6.32-2.27-2.53-2-3.39-5.16-.73-7.72 10.24-9.82 12.56-13.82 14.77-24.42-1 12.37-6 17.77-10.63 23.18-2.53 2.97-4.68 5.06-1.63 7.78z"})),ai||(ai=t.createElement("path",{fill:"#a57c52",d:"M231.22 69.91c-.67-3.41-8.78-2.83-11.06-1.93-3.48 1.39-6.08 5.22-7.13 8.53 2.9-4.3 6.74-8.12 12.46-6 1.16.42 3.18 2.35 4.48 1.85s1.03-2.2 1.25-2.45zm32.16 8.56c-2.75-1.66-12.24-5.08-12.18.82 2.56.24 5-.19 7.64.95 11.22 4.76 12.77 17.61 12.85 17.86.2-.53.1 1.26.23.7-.02.2.95-12.12-8.54-20.33z"})),oi||(oi=t.createElement("path",{fill:"#fbd2a6",d:"M53.43 250.73c6.29 0-.6-.17 7.34 0 1.89.05-2.38-.7 0-.69 4.54-4.2 12.48-.74 20.6-2.45 4.55.35 3.93 1.35 5.59 4.19 4.89 8.38 4.78 14.21 14 19.56 16.42 8.38 66 12.92 88.49 18.86 5.52.83 42.64-20.15 61-23.75 6.51 10.74 11.46 28.68 8.39 34.93-6.54 13.3-57.07 25.4-75.91 25.15C156.47 326.18 94 294 92.2 293c-.94-.57.7-.7-7.68 0s-10.15.72-17.47-1.4c-3-.87-4.61-1.33-6.33-3.54-2 .22-3.39.2-4.78-1-3.15-2.74-4.84-6.61-2.73-10.06h-.12c-3.35-2.48-6.54-7.69-3.08-11.72 1-1.18 6.06-1.94 7.77-2.28-1.58-.29-6.37.19-7.49-.72-3.06-2.5-4.96-11.55 3.14-11.55z"})),ni||(ni=t.createElement("path",{fill:"#a4286a",d:"M303.22 237.52c-9.87-11.88-41.59 8.19-47.8 12.34s-14.89 17.95-14.89 17.95c6 9.43 8.36 31 5.65 46.34l30.51-3s18-15.62 22.59-28.7 6.3-42.54 6.3-42.54"})),ii||(ii=t.createElement("path",{fill:"#cb9833",d:"M278.63 31.67c-6.08 0-22.91 4.07-22.93 12.91 0 11 47.9 38.38 16.14 85.85 10.21-.79 10.79-8.12 14.92-14.93-3.66 77-49.38 93.58-40.51 142.25 7.68-25.81 20.3-11.62 38.13-33.84 3.45 4.88 9 18.28-9.46 33.78 50-31.26 57.31-56.6 51.92-95C319.93 113.53 348.7 42 278.63 31.67z"})),li||(li=t.createElement("path",{fill:"#fbd2a6",d:"M283.64 126.83c-2.42 9.67-8 15.76-1.48 16.46A21.26 21.26 0 0 0 302 132.6c5.17-8.52 3.93-16.44-2.46-18s-13.48 2.56-15.9 12.23z"})),ci||(ci=t.createElement("path",{fill:"#efb17c",d:"M38 73.45c1.92 2 4.25 9.21 6.32 10.91 2.25 1.85 5.71 2.12 8.1 4.45 3.66-2 6-8.72 10-9.31-2.59 1.31-4.42 3.5-6.93 4.88-1.42.8-3 1.31-4.38 2.25-2.16-1.46-4.27-1.77-6.26-3.38-2.52-2.02-5.31-8-6.85-9.8z"})),di||(di=t.createElement("path",{fill:"#efb17c",d:"M39 74.4c4.83 1.1 12.52 6.44 15.89 10-3.22-1.34-14.73-6.15-15.89-10zm.62-1.5c6.71-.79 18 1.54 23.29 5.9-3.85-.2-5.42-1.48-9-2.94-4.08-1.69-8.83-2.03-14.29-2.96zm46.43 14.58c-3.72-1.32-10.52-1.13-13.22 3.52 2-1.16 1.84-2.11 4.18-1.72-3.81-4.15 8.16-.74 11.6-.24m-2.78 13.15c.56-3.29-8-7.81-10.58-9.17-6.25-3.29-12.16 1.36-19.33-4.53 5.94 6.1 14.23 2.5 19.55 5.76 3.06 1.88 8.65 6.09 9.35 9.38-.23-.4 1.29-1.44 1.01-1.44z"})),pi||(pi=t.createElement("circle",{cx:38.13,cy:30.03,r:3.14,fill:"#b89ac8"})),ui||(ui=t.createElement("circle",{cx:60.26,cy:39.96,r:3.14,fill:"#e31e0c"})),mi||(mi=t.createElement("circle",{cx:50.29,cy:25.63,r:3.14,fill:"#3baa45"})),hi||(hi=t.createElement("circle",{cx:22.19,cy:19.21,r:3.14,fill:"#2ca9e1"})),gi||(gi=t.createElement("circle",{cx:22.19,cy:30.03,r:3.14,fill:"#e31e0c"})),yi||(yi=t.createElement("circle",{cx:26.86,cy:8.28,r:3.14,fill:"#3baa45"})),fi||(fi=t.createElement("circle",{cx:49.32,cy:39.99,r:3.14,fill:"#e31e0c"})),wi||(wi=t.createElement("circle",{cx:63.86,cy:59.52,r:3.14,fill:"#f8ad39"})),bi||(bi=t.createElement("circle",{cx:50.88,cy:50.72,r:3.14,fill:"#3baa45"})),Ei||(Ei=t.createElement("circle",{cx:63.47,cy:76.17,r:3.14,fill:"#e31e0c"})),vi||(vi=t.createElement("circle",{cx:38.34,cy:14.83,r:3.14,fill:"#2ca9e1"})),ki||(ki=t.createElement("circle",{cx:44.44,cy:5.92,r:3.14,fill:"#f8ad39"})),_i||(_i=t.createElement("circle",{cx:57.42,cy:10.24,r:3.14,fill:"#e31e0c"})),xi||(xi=t.createElement("circle",{cx:66.81,cy:12.4,r:3.14,fill:"#2ca9e1"})),Ti||(Ti=t.createElement("circle",{cx:77.95,cy:5.14,r:3.14,fill:"#b89ac8"})),Si||(Si=t.createElement("circle",{cx:77.95,cy:30.34,r:3.14,fill:"#e31e0c"})),Ri||(Ri=t.createElement("circle",{cx:80.97,cy:16.55,r:3.14,fill:"#f8ad39"})),Ci||(Ci=t.createElement("circle",{cx:62.96,cy:27.27,r:3.14,fill:"#3baa45"})),Ii||(Ii=t.createElement("circle",{cx:75.36,cy:48.67,r:3.14,fill:"#2ca9e1"})),Ai||(Ai=t.createElement("circle",{cx:76.11,cy:65.31,r:3.14,fill:"#3baa45"})),Pi||(Pi=t.createElement("path",{fill:"#71b026",d:"M78.58 178.43C54.36 167.26 32 198.93 5 198.93c19.56 20.49 63.53 1.52 69 15.5 1.48-14.01 4.11-30.9 4.58-36z"})),Li||(Li=t.createElement("path",{fill:"#074a67",d:"M67.75 251.08c0-4.65 10.13-72.65 10.13-72.65h2.8l-9.09 72.3z"})),Fi||(Fi=t.createElement("ellipse",{cx:255.38,cy:103.18,fill:"#fff",rx:1.84,ry:1.77})),Mi||(Mi=t.createElement("ellipse",{cx:221.24,cy:94.75,fill:"#fff",rx:1.84,ry:1.77}))),qi=(0,H.compose)([(0,o.withSelect)(((e,t)=>{const{isAlertDismissed:r}=e(t.store||"yoast-seo/editor");return{isAlertDismissed:r(t.alertKey)}})),(0,o.withDispatch)(((e,t)=>{const{dismissAlert:r}=e(t.store||"yoast-seo/editor");return{onDismissed:()=>r(t.alertKey)}}))]),Di=({children:e,id:r,hasIcon:s=!0,title:a,image:o=null,isAlertDismissed:n,onDismissed:i})=>n?null:(0,t.createElement)("div",{id:r,className:"notice-yoast yoast is-dismissible"},(0,t.createElement)("div",{className:"notice-yoast__container"},(0,t.createElement)("div",null,(0,t.createElement)("div",{className:"notice-yoast__header"},s&&(0,t.createElement)("span",{className:"yoast-icon"}),(0,t.createElement)("h2",{className:"notice-yoast__header-heading"},a)),(0,t.createElement)("p",null,e)),o&&(0,t.createElement)(o,{height:"60"})),(0,t.createElement)("button",{type:"button",className:"notice-dismiss",onClick:i},(0,t.createElement)("span",{className:"screen-reader-text"},(0,l.__)("Dismiss this notice.","wordpress-seo"))));Di.propTypes={children:_().node.isRequired,id:_().string.isRequired,hasIcon:_().bool,title:_().any.isRequired,image:_().elementType,isAlertDismissed:_().bool.isRequired,onDismissed:_().func.isRequired};const $i=qi(Di),Bi=({store:e="yoast-seo/editor",image:r=null,title:s,promoId:a,alertKey:n,children:i,...l})=>(0,o.select)(e).isPromotionActive(a)&&(0,t.createElement)($i,{alertKey:n,store:e,id:n,title:s,image:r,...l},i);Bi.propTypes={store:_().string,image:_().elementType,title:_().any.isRequired,promoId:_().string.isRequired,alertKey:_().string.isRequired,children:_().node};const Wi=({store:e="yoast-seo/editor",location:r="sidebar",...s})=>{const a=(0,o.useSelect)((t=>t(e).getIsPremium()),[e]),n=(0,o.useSelect)((t=>t(e).selectLinkParams()),[e]),c="sidebar"===r?(0,l.sprintf)((0,l.__)("BLACK FRIDAY SALE: %1$s","wordpress-seo"),"YOAST SEO PREMIUM"):(0,i.createInterpolateElement)((0,l.sprintf)((0,l.__)("BLACK FRIDAY SALE: %1$s %2$sBuy now!%3$s","wordpress-seo"),"YOAST SEO PREMIUM","<a>","</a>"),{a:(0,t.createElement)("a",{href:(0,Vr.addQueryArgs)("https://yoa.st/black-friday-sale",n),target:"_blank",rel:"noreferrer"})});return a?null:(0,t.createElement)(Bi,{id:`black-friday-2023-promotion-${r}`,promoId:"black-friday-2023-promotion",alertKey:"black-friday-2023-promotion",store:e,title:c,image:Image,...s},(0,t.createElement)("span",{className:"yoast-bf-sale-badge"},(0,l.__)("30% OFF!","wordpress-seo")," "),"sidebar"===r&&(0,t.createElement)("a",{className:"yst-block yst--mb-[1em]",href:(0,Vr.addQueryArgs)("https://yoa.st/black-friday-sale",n),target:"_blank",rel:"noreferrer"},(0,l.__)("Buy now!","wordpress-seo")))};Wi.propTypes={store:_().string,location:_().oneOf(["sidebar","metabox"])};const Ui=()=>window.wpseoScriptData&&"1"===window.wpseoScriptData.isWooCommerceActive,Ki=e=>r=>!(()=>{var e,t;const r=(0,o.select)("yoast-seo/editor").getIsPremium(),s=(0,o.select)("yoast-seo/editor").getWarningMessage();return(r&&null!==(e=null===(t=(0,o.select)("yoast-seo-premium/editor"))||void 0===t?void 0:t.getMetaboxWarning())&&void 0!==e?e:[]).length>0||s.length>0})()&&(0,t.createElement)(e,{...r});function zi(e){switch(e){case"loading":return{icon:"loading-spinner",color:ve.colors.$color_green_medium_light};case"not-set":return{icon:"seo-score-none",color:ve.colors.$color_score_icon};case"noindex":return{icon:"seo-score-none",color:ve.colors.$color_noindex};case"good":return{icon:"seo-score-good",color:ve.colors.$color_green_medium};case"ok":return{icon:"seo-score-ok",color:ve.colors.$color_ok};default:return{icon:"seo-score-bad",color:ve.colors.$color_red}}}const Hi=({target:e,scoreIndicator:r})=>(0,t.createElement)(Ga,{target:e},(0,t.createElement)(Q.SvgIcon,{...zi(r)}));Hi.propTypes={target:_().string.isRequired,scoreIndicator:_().string.isRequired};const Vi=Hi,ji=({handleRefreshClick:e,supportLink:r})=>(0,t.createElement)("div",{className:"yst-flex yst-gap-2"},(0,t.createElement)(Er.Button,{onClick:e},(0,l.__)("Refresh this page","wordpress-seo")),(0,t.createElement)(Er.Button,{variant:"secondary",as:"a",href:r,target:"_blank",rel:"noopener"},(0,l.__)("Contact support","wordpress-seo")));ji.propTypes={handleRefreshClick:_().func.isRequired,supportLink:_().string.isRequired};const Yi=({handleRefreshClick:e,supportLink:r})=>(0,t.createElement)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2"},(0,t.createElement)(Er.Button,{className:"yst-order-last",onClick:e},(0,l.__)("Refresh this page","wordpress-seo")),(0,t.createElement)(Er.Button,{variant:"secondary",as:"a",href:r,target:"_blank",rel:"noopener"},(0,l.__)("Contact support","wordpress-seo")));Yi.propTypes={handleRefreshClick:_().func.isRequired,supportLink:_().string.isRequired};const Gi=({error:e,children:r})=>(0,t.createElement)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4"},(0,t.createElement)(Er.Title,null,(0,l.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")),(0,t.createElement)("p",null,(0,l.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")),(0,t.createElement)(Er.Alert,{variant:"error"},(null==e?void 0:e.message)||(0,l.__)("Undefined error message.","wordpress-seo")),(0,t.createElement)("p",null,(0,l.__)("Unfortunately, this means that all your unsaved changes will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")),r);Gi.propTypes={error:_().object.isRequired,children:_().node},Gi.VerticalButtons=Yi,Gi.HorizontalButtons=ji;const Zi=({error:e})=>{const r=(0,i.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),s=(0,o.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/metabox-error-support")),[]),a=(0,o.useSelect)((e=>e("yoast-seo/editor").getPreference("isRtl",!1)),[]);return(0,i.useEffect)((()=>{document.querySelectorAll('[id^="wpseo-meta-tab-"]').forEach((e=>{!function(e){const t=document.querySelector(`#${e}`);null!==t&&(t.style.opacity="0.5",t.style.pointerEvents="none",t.setAttribute("aria-disabled","true"),t.classList.contains("yoast-active-tab")&&t.classList.remove("yoast-active-tab"))}(e.id)}))}),[]),(0,t.createElement)(Er.Root,{context:{isRtl:a}},(0,t.createElement)(Gi,{error:e},(0,t.createElement)(Gi.HorizontalButtons,{supportLink:s,handleRefreshClick:r}),(0,t.createElement)(Vi,{target:"wpseo-seo-score-icon",scoreIndicator:"not-set"}),(0,t.createElement)(Vi,{target:"wpseo-readability-score-icon",scoreIndicator:"not-set"}),(0,t.createElement)(Vi,{target:"wpseo-inclusive-language-score-icon",scoreIndicator:"not-set"})))};Zi.propTypes={error:_().object.isRequired};const Xi=Ki((()=>{const e=(0,o.useSelect)((e=>e("yoast-seo/editor").selectLinkParams()),[]),r=(0,l.sprintf)((0,l.__)("Is your %1$s store ready for Black Friday?","wordpress-seo"),"WooCommerce");return(0,t.createElement)(Bi,{id:"black-friday-2023-product-editor-checklist",alertKey:"black-friday-2023-product-editor-checklist",promoId:"black-friday-2023-checklist",store:"yoast-seo/editor",title:r,image:Ni},(0,i.createInterpolateElement)((0,l.sprintf)((0,l.__)("The Yoast %1$sultimate Black Friday checklist%2$s helps you prepare in time, so you can boost your results during this sale.","wordpress-seo"),"<strong>","</strong>"),{strong:(0,t.createElement)("strong",null)})," ",(0,t.createElement)("a",{href:(0,Vr.addQueryArgs)("https://yoa.st/black-friday-checklist",e),target:"_blank",rel:"noreferrer"},(0,l.__)("Get the checklist and start optimizing now!","wordpress-seo")))})),Qi=Ki(Wi);function Ji({settings:e}){const r=(0,o.useSelect)((e=>e("yoast-seo/editor").getIsTerm()),[]),s=(0,o.useSelect)((e=>e("yoast-seo/editor").getIsProduct()),[])&&Ui();return(0,t.createElement)(i.Fragment,null,vs()&&(0,t.createElement)(Fn,null),(0,t.createElement)(B.Fill,{name:"YoastMetabox"},(0,t.createElement)(Er.ErrorBoundary,{FallbackComponent:Zi},(0,t.createElement)(bs,{key:"warning",renderPriority:1},(0,t.createElement)(Tr,null)),(0,t.createElement)(bs,{key:"time-constrained-notification",renderPriority:2},s&&(0,t.createElement)(Xi,null),(0,t.createElement)(Qi,{image:null,hasIcon:!1,location:"metabox"})),e.isKeywordAnalysisActive&&(0,t.createElement)(bs,{key:"keyword-input",renderPriority:8},(0,t.createElement)(rr.KeywordInput,{isSEMrushIntegrationActive:e.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&(0,t.createElement)(B.Fill,{name:"YoastRelatedKeyphrases"},(0,t.createElement)(Ro,null))),(0,t.createElement)(bs,{key:"search-appearance",renderPriority:9},(0,t.createElement)(Cr,{id:"yoast-snippet-editor-metabox",title:(0,l.__)("Search appearance","wordpress-seo"),initialIsOpen:!0},(0,t.createElement)(xr,{hasPaperStyle:!1}))),e.isContentAnalysisActive&&(0,t.createElement)(bs,{key:"readability-analysis",renderPriority:10},(0,t.createElement)(rr.ReadabilityAnalysis,{shouldUpsell:e.shouldUpsell})),e.isKeywordAnalysisActive&&(0,t.createElement)(bs,{key:"seo-analysis",renderPriority:20},(0,t.createElement)(i.Fragment,null,(0,t.createElement)(rr.SeoAnalysis,{shouldUpsell:e.shouldUpsell,shouldUpsellWordFormRecognition:e.isWordFormRecognitionActive}),e.shouldUpsell&&(0,t.createElement)(Dn,{location:"metabox"}))),e.isInclusiveLanguageAnalysisActive&&(0,t.createElement)(bs,{key:"inclusive-language-analysis",renderPriority:21},(0,t.createElement)(rr.InclusiveLanguageAnalysis,null)),e.isKeywordAnalysisActive&&(0,t.createElement)(bs,{key:"additional-keywords-upsell",renderPriority:22},e.shouldUpsell&&(0,t.createElement)(Wn,null)),e.isKeywordAnalysisActive&&e.isWincherIntegrationActive&&(0,t.createElement)(bs,{key:"wincher-seo-performance",renderPriority:23},(0,t.createElement)(tr,{location:"metabox"})),e.shouldUpsell&&!r&&(0,t.createElement)(bs,{key:"internal-linking-suggestions-upsell",renderPriority:25},(0,t.createElement)(fs,null)),e.isCornerstoneActive&&(0,t.createElement)(bs,{key:"cornerstone",renderPriority:30},(0,t.createElement)(ar,null)),e.displayAdvancedTab&&(0,t.createElement)(bs,{key:"advanced",renderPriority:40},(0,t.createElement)(Cr,{id:"collapsible-advanced-settings",title:(0,l.__)("Advanced","wordpress-seo")},(0,t.createElement)(Ns,null))),e.displaySchemaSettings&&(0,t.createElement)(bs,{key:"schema",renderPriority:50},(0,t.createElement)(co,null)),(0,t.createElement)(bs,{key:"social",renderPriority:-1},(0,t.createElement)(Za,{target:"wpseo-section-social"})),e.isInsightsEnabled&&(0,t.createElement)(bs,{key:"insights",renderPriority:52},(0,t.createElement)(ss,{location:"metabox"})))))}Ji.propTypes={settings:_().object.isRequired};const el=(0,H.compose)([(0,o.withSelect)(((e,t)=>{const{getPreferences:r}=e("yoast-seo/editor");return{settings:r(),store:t.store}}))])(Ji);function tl({target:e,store:r,theme:s}){return(0,t.createElement)(Ga,{target:e},(0,t.createElement)(z,{store:r,theme:s}),(0,t.createElement)(el,{store:r,theme:s}))}function rl({theme:e}){return(0,t.createElement)(K,{theme:e,location:"sidebar"},(0,t.createElement)(B.Slot,{name:"YoastSidebar"},(e=>W(e))))}function sl({score:e,label:r,scoreValue:s}){return(0,t.createElement)("div",{className:"yoast-analysis-check"},(0,t.createElement)(Q.SvgIcon,{...zi(e)}),(0,t.createElement)("span",null," ",r," ",s&&(0,t.createElement)("strong",null,s)))}function al({checklist:e,onClick:r}){const s=e.every((e=>"good"===e.score));return(0,t.createElement)(i.Fragment,null,e.map((e=>(0,t.createElement)(sl,{key:e.label,...e}))),(0,t.createElement)("br",null),!s&&(0,t.createElement)(Q.Button,{onClick:r},(0,l.__)("Improve your post with Yoast SEO","wordpress-seo")))}function ol(e){return(0,m.isNil)(e)||(e/=10),function(e){switch(e){case"feedback":return{className:"na",screenReaderText:(0,l.__)("Feedback","wordpress-seo"),screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""};case"bad":return{className:"bad",screenReaderText:(0,l.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:(0,l.__)("Needs improvement","wordpress-seo"),screenReaderInclusiveLanguageText:(0,l.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:(0,l.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:(0,l.__)("OK","wordpress-seo"),screenReaderInclusiveLanguageText:(0,l.__)("Potentially non-inclusive","wordpress-seo")};case"good":return{className:"good",screenReaderText:(0,l.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:(0,l.__)("Good","wordpress-seo"),screenReaderInclusiveLanguageText:(0,l.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""}}}(Ar.interpreters.scoreToRating(e))}function nl(e,t){const{isKeywordAnalysisActive:r}=t.getPreferences();if(r){const r=ol(t.getReadabilityResults().overallScore);e.push({label:(0,l.__)("Readability analysis:","wordpress-seo"),score:r.className,scoreValue:r.screenReaderReadabilityText})}}function il(e,t){const{isContentAnalysisActive:r}=t.getPreferences();if(r){const r=ol(t.getResultsForFocusKeyword().overallScore),s=M().isPremium;e.push({label:s?(0,l.__)("Premium SEO analysis:","wordpress-seo"):(0,l.__)("SEO analysis:","wordpress-seo"),score:r.className,scoreValue:r.screenReaderReadabilityText})}}function ll(e,t){const{isInclusiveLanguageAnalysisActive:r}=t.getPreferences();if(r){const r=ol(t.getInclusiveLanguageResults().overallScore);e.push({label:(0,l.__)("Inclusive language:","wordpress-seo"),score:r.className,scoreValue:r.screenReaderInclusiveLanguageText})}}tl.propTypes={target:_().string.isRequired,store:_().object,theme:_().object},sl.propTypes={score:k.string.isRequired,label:k.string.isRequired,scoreValue:k.string},sl.defaultProps={scoreValue:""},al.propTypes={checklist:_().array.isRequired,onClick:_().func.isRequired};const cl=(0,H.compose)([(0,o.withSelect)((function(e){const t=e("yoast-seo/editor"),r=[];return nl(r,t),il(r,t),ll(r,t),r.push(...Object.values(t.getChecklistItems())),{checklist:r}})),(0,o.withDispatch)((function(e){const{openGeneralSidebar:t}=e("core/edit-post");return{onClick:()=>{t("yoast-seo/seo-sidebar")}}}))])(al),dl=(0,H.compose)([(0,o.withSelect)((e=>{const t=e("yoast-seo/editor"),r=ol(t.getResultsForFocusKeyword().overallScore),s=ol(t.getReadabilityResults().overallScore),{isKeywordAnalysisActive:a,isContentAnalysisActive:o}=t.getPreferences();let n,i;switch(s.className){case"good":n=ve.colors.$color_good;break;case"ok":n=ve.colors.$color_ok;break;default:n=ve.colors.$color_bad}switch(r.className){case"good":i=ve.colors.$color_good;break;case"ok":i=ve.colors.$color_ok;break;default:i=ve.colors.$color_bad}return{readabilityScoreColor:n,seoScoreColor:i,isKeywordAnalysisActive:a,isContentAnalysisActive:o}}))])($);var pl;function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},ul.apply(this,arguments)}const ml=e=>t.createElement("svg",ul({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 1600 1600"},e),pl||(pl=t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("path",{fill:"#1877f2",d:"M1600 800a800 800 0 1 0-925 790v-559H472V800h203V624c0-201 119-311 302-311 88 0 179 15 179 15v197h-101c-99 0-130 62-130 125v150h222l-36 231H925v559a800 800 0 0 0 675-790"}),t.createElement("path",{fill:"#fff",d:"M1147 800H925V650c0-63 31-125 130-125h101V328s-91-15-179-15c-183 0-302 110-302 311v176H472v231h203v559a806 806 0 0 0 250 0v-559h186z"}))));var hl;function gl(){return gl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},gl.apply(this,arguments)}const yl=e=>t.createElement("svg",gl({xmlns:"http://www.w3.org/2000/svg",fill:"current",viewBox:"0 0 1200 1227"},e),hl||(hl=t.createElement("path",{d:"M714.163 519.284 1160.89 0h-105.86L667.137 450.887 357.328 0H0l468.492 681.821L0 1226.37h105.866l409.625-476.152 327.181 476.152H1200L714.137 519.284h.026ZM569.165 687.828l-47.468-67.894-377.686-540.24h162.604l304.797 435.991 47.468 67.894 396.2 566.721H892.476L569.165 687.854v-.026Z"})));function fl({permalink:e}){const r=encodeURI(e);return(0,t.createElement)(i.Fragment,null,(0,t.createElement)("div",null,(0,l.__)("Share your post!","wordpress-seo")),(0,t.createElement)("ul",{className:"yoast-seo-social-share-buttons"},(0,t.createElement)("li",null,(0,t.createElement)("a",{href:"https://www.facebook.com/sharer/sharer.php?u="+r,target:"_blank",rel:"noopener noreferrer"},(0,t.createElement)(ml,null),(0,l.__)("Facebook","wordpress-seo"),(0,t.createElement)("span",{className:"screen-reader-text"},(0,l.__)("(Opens in a new browser tab)","wordpress-seo")))),(0,t.createElement)("li",null,(0,t.createElement)("a",{href:"https://twitter.com/share?url="+r,target:"_blank",rel:"noopener noreferrer",className:"x-share"},(0,t.createElement)(yl,null),(0,l.__)("X","wordpress-seo"),(0,t.createElement)("span",{className:"screen-reader-text"},(0,l.__)("(Opens in a new browser tab)","wordpress-seo"))))))}fl.propTypes={permalink:_().string.isRequired};const wl=(0,H.compose)([(0,o.withSelect)((e=>({permalink:e("core/editor").getPermalink()})))])(fl);function bl({checklist:e,onClick:r}){let s;return s=e.every((e=>"good"===e.score))?(0,l.__)("We've analyzed your post. Everything looks good. Well done!","wordpress-seo"):(0,l.__)("We've analyzed your post. There is still room for improvement!","wordpress-seo"),(0,t.createElement)(i.Fragment,null,(0,t.createElement)("p",null,s),(0,t.createElement)(al,{checklist:e,onClick:r}))}bl.propTypes={checklist:_().array.isRequired,onClick:_().func.isRequired};const El=(0,H.compose)([(0,o.withSelect)((function(e){const t=e("yoast-seo/editor"),r=[];return function(e,t){t.getFocusKeyphrase()||e.push({label:(0,l.__)("No focus keyword was entered","wordpress-seo"),score:"bad"})}(r,t),nl(r,t),il(r,t),ll(r,t),r.push(...Object.values(t.getChecklistItems())),{checklist:r}})),(0,o.withDispatch)((function(e){const{closePublishSidebar:t,openGeneralSidebar:r}=e("core/edit-post");return{onClick:()=>{t(),r("yoast-seo/seo-sidebar")}}}))])(bl),vl=({store:e="yoast-seo/editor",...r})=>{const s=(0,o.useSelect)((t=>t(e).selectLinkParams()),[e]),a=(0,i.createInterpolateElement)((0,l.sprintf)((0,l.__)("The %1$s %2$sultimate Black Friday checklist%3$s helps you prepare in time, so you can boost your results during this sale.","wordpress-seo"),"Yoast","<strong>","</strong>"),{strong:(0,t.createElement)("strong",null)});return(0,t.createElement)(Bi,{id:"black-friday-2023-sidebar-checklist",promoId:"black-friday-2023-checklist",alertKey:"black-friday-2023-sidebar-checklist",store:e,title:(0,l.__)("Is your WooCommerce store ready for Black Friday?","wordpress-seo"),...r},a," ",(0,t.createElement)("a",{href:(0,Vr.addQueryArgs)("https://yoa.st/black-friday-checklist",s),target:"_blank",rel:"noreferrer"},(0,l.__)("Get the checklist and start optimizing now!","wordpress-seo")))};vl.propTypes={store:_().string};const kl="trustpilot-review-notification",_l="yoast-seo/editor",xl=()=>{const e=(0,o.useSelect)((e=>e(_l).getIsPremium()),[]),t=(0,o.useSelect)((e=>e(_l).isAlertDismissed(kl)),[]),{overallScore:r}=(0,o.useSelect)((e=>e(_l).getResultsForFocusKeyword()),[]),{dismissAlert:s}=(0,o.useDispatch)(_l),a=(0,i.useCallback)((()=>s(kl)),[s]),[n,l]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{var e;"good"===(null===(e=ol(r))||void 0===e?void 0:e.className)&&l(!0)}),[r]),{shouldShow:!e&&!t&&n,dismiss:a}},Tl=(0,J.makeOutboundLink)(),Sl=()=>{const{shouldShow:e,dismiss:r}=xl(),{locationContext:s}=(0,p.useRootContext)(),a=(0,o.useSelect)((e=>e(_l).selectLink("https://yoa.st/trustpilot-review",{context:s})),[s]);return(0,t.createElement)(Di,{alertKey:kl,store:_l,id:kl,title:(0,l.__)("Show Yoast SEO some love!","wordpress-seo"),hasIcon:!1,isAlertDismissed:!e,onDismissed:r},(0,l.__)("Happy with the plugin?","wordpress-seo")," ",(0,t.createElement)(Tl,{href:a,rel:"noopener noreferrer"},(0,l.__)("Leave a quick review","wordpress-seo")),".")},Rl=({store:e="yoast-seo/editor",image:r=Ni,url:s,...a})=>(0,o.useSelect)((t=>t(e).getIsPremium()))?null:(0,t.createElement)($i,{alertKey:"webinar-promo-notification",store:e,id:"webinar-promo-notification",title:(0,l.__)("Join our FREE webinar for SEO success","wordpress-seo"),image:r,url:s,...a},(0,l.__)("Feeling lost when it comes to optimizing your site for the search engines? Join our FREE webinar to gain the confidence that you need in order to start optimizing like a pro! You'll obtain the knowledge and tools to start effectively implementing SEO.","wordpress-seo")," ",(0,t.createElement)("a",{href:s,target:"_blank",rel:"noreferrer"},(0,l.__)("Sign up today!","wordpress-seo")));Rl.propTypes={store:_().string,image:_().elementType,url:_().string.isRequired};const Cl=Rl,Il=(e="yoast-seo/editor")=>{const t=(0,o.select)(e).isPromotionActive("black-friday-2023-promotion"),r=(0,o.select)(e).isAlertDismissed("black-friday-2023-promotion");return t?r:((e="yoast-seo/editor")=>{const t=(0,o.select)(e).isPromotionActive("black-friday-2023-checklist"),r=(0,o.select)(e).isAlertDismissed("black-friday-2023-sidebar-checklist");return!t||r})(e)},Al=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{d:"M11 3a1 1 0 10-2 0v1a1 1 0 102 0V3zM15.657 5.757a1 1 0 00-1.414-1.414l-.707.707a1 1 0 001.414 1.414l.707-.707zM18 10a1 1 0 01-1 1h-1a1 1 0 110-2h1a1 1 0 011 1zM5.05 6.464A1 1 0 106.464 5.05l-.707-.707a1 1 0 00-1.414 1.414l.707.707zM5 10a1 1 0 01-1 1H3a1 1 0 110-2h1a1 1 0 011 1zM8 16v-1h4v1a2 2 0 11-4 0zM12 14c.015-.34.208-.646.477-.859a4 4 0 10-4.954 0c.27.213.462.519.476.859h4.002z"}))})),Pl=(0,H.compose)([(0,o.withSelect)(((e,t)=>{const{getPostOrPageString:r,getIsModalOpen:s}=e("yoast-seo/editor");return{postTypeName:r(),isOpen:s(t.id)}})),(0,o.withDispatch)(((e,t)=>{const{openEditorModal:r,closeEditorModal:s}=e("yoast-seo/editor");return{open:()=>r(t.id),close:s}}))])(me),Ll=N()(Al)`
	width: 18px;
	height: 18px;
	margin: 3px;
`,Fl=({location:e})=>{const r=(0,o.useSelect)((e=>e("yoast-seo/editor").getIsElementorEditor()),[]),s=(0,o.useSelect)((e=>e("yoast-seo/editor").isFleschReadingEaseAvailable()),[]),a=j();return(0,t.createElement)(Pl,{title:(0,l.__)("Insights","wordpress-seo"),id:`yoast-insights-modal-${e}`,shouldCloseOnClickOutside:!r,showChangesWarning:!1,SuffixHeroIcon:(0,t.createElement)(Ll,{className:"yst-text-slate-500",...a})},(0,t.createElement)("div",{className:"yoast-insights yoast-modal-content--columns"},(0,t.createElement)(Gr,{location:e}),(0,t.createElement)("div",null,s&&(0,t.createElement)("div",{className:"yoast-insights-row"},(0,t.createElement)(Fr,null)),(0,t.createElement)("div",{className:"yoast-insights-row yoast-insights-row--columns"},(0,t.createElement)(Ir,null),(0,t.createElement)(Zr,null)),(0,Sr.isFeatureEnabled)("TEXT_FORMALITY")&&(0,t.createElement)(ts,{location:e,name:"YoastTextFormalityMetabox"}))))};Fl.propTypes={location:_().string},Fl.defaultProps={location:"sidebar"};const Ml=Fl,Ol=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"}))}));class Nl{constructor(e){this.refresh=e,this.loaded=!1,this.preloadThreshold=3e3,this.plugins={},this.modifications={},this._registerPlugin=this._registerPlugin.bind(this),this._ready=this._ready.bind(this),this._reloaded=this._reloaded.bind(this),this._registerModification=this._registerModification.bind(this),this._registerAssessment=this._registerAssessment.bind(this),this._applyModifications=this._applyModifications.bind(this),setTimeout(this._pollLoadingPlugins.bind(this),1500)}_registerPlugin(e,t){return(0,m.isString)(e)?(0,m.isUndefined)(t)||(0,m.isObject)(t)?!1===this._validateUniqueness(e)?(console.error("Failed to register plugin. Plugin with name "+e+" already exists"),!1):(this.plugins[e]=t,!0):(console.error("Failed to register plugin "+e+". Expected parameters `options` to be a object."),!1):(console.error("Failed to register plugin. Expected parameter `pluginName` to be a string."),!1)}_ready(e){return(0,m.isString)(e)?(0,m.isUndefined)(this.plugins[e])?(console.error("Failed to modify status for plugin "+e+". The plugin was not properly registered."),!1):(this.plugins[e].status="ready",!0):(console.error("Failed to modify status for plugin "+e+". Expected parameter `pluginName` to be a string."),!1)}_reloaded(e){return(0,m.isString)(e)?(0,m.isUndefined)(this.plugins[e])?(console.error("Failed to reload Content Analysis for plugin "+e+". The plugin was not properly registered."),!1):(this.refresh(),!0):(console.error("Failed to reload Content Analysis for "+e+". Expected parameter `pluginName` to be a string."),!1)}_registerModification(e,t,r,s){if(!(0,m.isString)(e))return console.error("Failed to register modification for plugin "+r+". Expected parameter `modification` to be a string."),!1;if(!(0,m.isFunction)(t))return console.error("Failed to register modification for plugin "+r+". Expected parameter `callable` to be a function."),!1;if(!(0,m.isString)(r))return console.error("Failed to register modification for plugin "+r+". Expected parameter `pluginName` to be a string."),!1;if(!1===this._validateOrigin(r))return console.error("Failed to register modification for plugin "+r+". The integration has not finished loading yet."),!1;const a={callable:t,origin:r,priority:(0,m.isNumber)(s)?s:10};return(0,m.isUndefined)(this.modifications[e])&&(this.modifications[e]=[]),this.modifications[e].push(a),!0}_registerAssessment(e,t,r,s){return(0,m.isString)(t)?(0,m.isObject)(r)?(0,m.isString)(s)?(t=s+"-"+t,e.addAssessment(t,r),!0):(console.error("Failed to register assessment for plugin "+s+". Expected parameter `pluginName` to be a string."),!1):(console.error("Failed to register assessment for plugin "+s+". Expected parameter `assessment` to be a function."),!1):(console.error("Failed to register test for plugin "+s+". Expected parameter `name` to be a string."),!1)}_applyModifications(e,t,r){let s=this.modifications[e];return!(0,m.isArray)(s)||s.length<1||(s=this._stripIllegalModifications(s),s.sort(((e,t)=>e.priority-t.priority)),(0,m.forEach)(s,(function(s){const a=s.callable(t,r);typeof a==typeof t?t=a:console.error("Modification with name "+e+" performed by plugin with name "+s.origin+" was ignored because the data that was returned by it was of a different type than the data we had passed it.")}))),t}_pollLoadingPlugins(e){e=(0,m.isUndefined)(e)?0:e,!0===this._allReady()?(this.loaded=!0,this.refresh()):e>=this.preloadThreshold?(this._pollTimeExceeded(),this.loaded=!0,this.refresh()):(e+=50,setTimeout(this._pollLoadingPlugins.bind(this,e),50))}_allReady(){return(0,m.reduce)(this.plugins,(function(e,t){return e&&"ready"===t.status}),!0)}_pollTimeExceeded(){(0,m.forEach)(this.plugins,(function(e,t){(0,m.isUndefined)(e.options)||"ready"===e.options.status||(console.error("Error: Plugin "+t+". did not finish loading in time."),delete this.plugins[t])}))}_stripIllegalModifications(e){return(0,m.forEach)(e,((t,r)=>{!1===this._validateOrigin(t.origin)&&delete e[r]})),e}_validateOrigin(e){return"ready"===this.plugins[e].status}_validateUniqueness(e){return(0,m.isUndefined)(this.plugins[e])}}let ql=null;const Dl=()=>{if(null===ql){const e=(0,o.dispatch)("yoast-seo/editor").runAnalysis;ql=window.YoastSEO.app&&window.YoastSEO.app.pluggable?window.YoastSEO.app.pluggable:new Nl(e)}return ql},$l=(e,t,r)=>Dl().loaded?Dl()._applyModifications(e,t,r):t,Bl={name:"author_first_name",label:"Author first name",placeholder:"%%author_first_name%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_first_name","")},regexp:new RegExp("%%author_first_name%%","g")},Wl={name:"author_last_name",label:"Author last name",placeholder:"%%author_last_name%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_last_name","")},regexp:new RegExp("%%author_last_name%%","g")},Ul={name:"currentdate",label:"Current date",placeholder:"%%currentdate%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentdate","")},regexp:new RegExp("%%currentdate%%","g")},Kl={name:"currentday",label:"Current day",placeholder:"%%currentday%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentday","")},regexp:new RegExp("%%currentday%%","g")},zl={name:"currentmonth",label:"Current month",placeholder:"%%currentmonth%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentmonth","")},regexp:new RegExp("%%currentmonth%%","g")},Hl={name:"category",label:"Category",placeholder:"%%category%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category","")},regexp:new RegExp("%%category%%","g")},Vl={name:"category_title",label:"Category Title",placeholder:"%%category_title%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category_title","")},regexp:new RegExp("%%category_title%%","g")},jl={name:"currentyear",label:"Current year",placeholder:"%%currentyear%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentyear","")},regexp:new RegExp("%%currentyear%%","g")},Yl={name:"date",label:"Date",placeholder:"%%date%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.date","")},regexp:new RegExp("%%date%%","g")},Gl={name:"excerpt",label:"Excerpt",placeholder:"%%excerpt%%",aliases:[{name:"excerpt_only",label:"Excerpt only",placeholder:"%%excerpt_only%%"}],getReplacement:function(){return(0,o.select)("yoast-seo/editor").getEditorDataExcerptWithFallback()},regexp:new RegExp("%%excerpt%%|%%excerpt_only%%","g")},Zl={name:"focuskw",label:"Focus keyphrase",placeholder:"%%focuskw%%",aliases:[],getReplacement:function(){return(0,o.select)("yoast-seo/editor").getFocusKeyphrase()},regexp:new RegExp("%%focuskw%%|%%keyword%%","g")},Xl={name:"id",label:"ID",placeholder:"%%id%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.id","")},regexp:new RegExp("%%id%%","g")},Ql={name:"modified",label:"Modified",placeholder:"%%modified%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.modified","")},regexp:new RegExp("%%modified%%","g")},Jl={name:"name",label:"Name",placeholder:"%%name%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.name","")},regexp:new RegExp("%%name%%","g")},ec={name:"page",label:"Page",placeholder:"%%page%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.page","")},regexp:new RegExp("%%page%%","g")},tc={name:"pagenumber",label:"Pagenumber",placeholder:"%%pagenumber%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagenumber","")},regexp:new RegExp("%%pagenumber%%","g")},rc={name:"pagetotal",label:"Pagetotal",placeholder:"%%pagetotal%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagetotal","")},regexp:new RegExp("%%pagetotal%%","g")},sc={name:"permalink",label:"Permalink",placeholder:"%%permalink%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.permalink","")},regexp:new RegExp("%%permalink%%","g")},ac={name:"post_content",label:"Post Content",placeholder:"%%post_content%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_content","")},regexp:new RegExp("%%post_content%%","g")},oc={name:"post_day",label:"Post Day",placeholder:"%%post_day%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_day","")},regexp:new RegExp("%%post_day%%","g")},nc={name:"post_month",label:"Post Month",placeholder:"%%post_month%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_month","")},regexp:new RegExp("%%post_month%%","g")},ic={name:"post_year",label:"Post Year",placeholder:"%%post_year%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_year","")},regexp:new RegExp("%%post_year%%","g")},lc={name:"pt_plural",label:"Post type (plural)",placeholder:"%%pt_plural%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_plural","")},regexp:new RegExp("%%pt_plural%%","g")},cc={name:"pt_single",label:"Post type (singular)",placeholder:"%%pt_single%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_single","")},regexp:new RegExp("%%pt_single%%","g")},dc={name:"primary_category",label:"Primary category",placeholder:"%%primary_category%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.primary_category","")},regexp:new RegExp("%%primary_category%%","g")},pc={name:"searchphrase",label:"Search phrase",placeholder:"%%searchphrase%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.searchphrase","")},regexp:new RegExp("%%searchphrase%%","g")},uc={name:"sep",label:"Separator",placeholder:"%%sep%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sep","")},regexp:new RegExp("%%sep%%(\\s*%%sep%%)*","g")},mc={name:"sitedesc",label:"Tagline",placeholder:"%%sitedesc%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitedesc","")},regexp:new RegExp("%%sitedesc%%","g")},hc={name:"sitename",label:"Site title",placeholder:"%%sitename%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitename","")},regexp:new RegExp("%%sitename%%","g")},gc={name:"tag",label:"Tag",placeholder:"%%tag%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.tag","")},regexp:new RegExp("%%tag%%","g")},yc={name:"term404",label:"Term404",placeholder:"%%term404%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term404","")},regexp:new RegExp("%%term404%%","g")},fc={name:"term_description",label:"Term description",placeholder:"%%term_description%%",aliases:[{name:"tag_description",label:"Tag description",placeholder:"%%tag_description%%"},{name:"category_description",label:"Category description",placeholder:"%%category_description%%"}],getReplacement:function(){return(0,m.get)(window,"YoastSEO.app.rawData.text","")},regexp:new RegExp("%%term_description%%|%%tag_description%%|%%category_description%%","g")},wc={name:"term_hierarchy",label:"Term hierarchy",placeholder:"%%term_hierarchy%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_hierarchy","")},regexp:new RegExp("%%term_hierarchy%%","g")},bc={name:"term_title",label:"Term title",placeholder:"%%term_title%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_title","")},regexp:new RegExp("%%term_title%%","g")},Ec={name:"title",label:"Title",placeholder:"%%title%%",aliases:[],getReplacement:function(){return(0,o.select)("yoast-seo/editor").getEditorDataTitle()},regexp:new RegExp("%%title%%","g")},vc={name:"user_description",label:"User description",placeholder:"%%user_description%%",aliases:[],getReplacement:function(){return(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.user_description","")},regexp:new RegExp("%%user_description%%","g")};var kc={source:"wpseoScriptData.analysis.plugins.replaceVars",scope:[],aliases:[]},_c=function(e,t,r){this.placeholder=e,this.replacement=t,this.options=(0,m.defaults)(r,kc)};_c.prototype.getPlaceholder=function(e){return(e=e||!1)&&this.hasAlias()?this.placeholder+"|"+this.getAliases().join("|"):this.placeholder},_c.prototype.setSource=function(e){this.options.source=e},_c.prototype.hasScope=function(){return!(0,m.isEmpty)(this.options.scope)},_c.prototype.addScope=function(e){this.hasScope()||(this.options.scope=[]),this.options.scope.push(e)},_c.prototype.inScope=function(e){return!this.hasScope()||(0,m.indexOf)(this.options.scope,e)>-1},_c.prototype.hasAlias=function(){return!(0,m.isEmpty)(this.options.aliases)},_c.prototype.addAlias=function(e){this.hasAlias()||(this.options.aliases=[]),this.options.aliases.push(e)},_c.prototype.getAliases=function(){return this.options.aliases};let xc=null,Tc=null;const Sc=()=>{if(null===Tc){Tc=[];const t=(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.hidden_replace_vars",[]);(null===xc&&(xc=((e="")=>{switch(""===e&&(e=(0,m.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.scope","")),e){case"post":case"page":return["authorFirstName","authorLastName","category","categoryTitle","currentDate","currentDay","currentMonth","currentYear","date","excerpt","id","focusKeyphrase","modified","name","page","primaryCategory","pageNumber","pageTotal","permalink","postContent","postDay","postMonth","postYear","postTypeNamePlural","postTypeNameSingular","searchPhrase","separator","siteDescription","siteName","tag","title","userDescription"]}return[]})().map((t=>null==e?void 0:e[t])).filter(Boolean)),xc).forEach((e=>{const r=t.includes(e.name);Tc.push({name:e.name,label:e.label,value:e.placeholder,hidden:r}),e.aliases.forEach((e=>{Tc.push({name:e.name,label:e.label,value:e.placeholder,hidden:r})}))}))}return Tc},{stripHTMLTags:Rc}=J.strings,Cc=(e,t)=>{const r=(0,o.select)("yoast-seo/editor").getSnippetEditorTemplates();""===e.title&&(e.title=r.title),""===e.description&&(e.description=r.description);let s=0;return t.shortenedBaseUrl&&"string"==typeof t.shortenedBaseUrl&&(s=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[s]&&(e.url=e.url.slice(0,s)+e.url.slice(s+1)),{url:e.url,title:Rc($l("data_page_title",e.title)),description:Rc($l("data_meta_desc",e.description)),filteredSEOTitle:Rc($l("data_page_title",e.filteredSEOTitle))}},Ic=({isLoading:e,onLoad:r,location:s,...a})=>((0,i.useEffect)((()=>{setTimeout((()=>{e&&r()}))})),e?null:(0,t.createElement)(lr,{icon:"eye",hasPaperStyle:a.hasPaperStyle},(0,t.createElement)(or.SnippetEditor,{...a,descriptionPlaceholder:(0,l.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:Cc,showCloseButton:!1,idSuffix:s})));Ic.propTypes={isLoading:_().bool.isRequired,onLoad:_().func.isRequired,hasPaperStyle:_().bool.isRequired,location:_().string.isRequired};const Ac=(0,H.compose)([(0,o.withSelect)((e=>{const{getBaseUrlFromSettings:t,getDateFromSettings:r,getEditorDataImageUrl:s,getFocusKeyphrase:a,getRecommendedReplaceVars:o,getSiteIconUrlFromSettings:n,getSnippetEditorData:i,getSnippetEditorIsLoading:l,getSnippetEditorMode:c,getSnippetEditorWordsToHighlight:d,isCornerstoneContent:p,getContentLocale:u,getSiteName:m}=e("yoast-seo/editor");return{baseUrl:t(),data:i(),date:r(),faviconSrc:n(),isLoading:l(),keyword:a(),mobileImageSrc:s(),mode:c(),recommendedReplacementVariables:o(),replacementVariables:Sc(),wordsToHighlight:d(),isCornerstone:p(),locale:u(),siteName:m()}})),(0,o.withDispatch)((e=>{const{updateData:t,switchMode:r,updateAnalysisData:s,loadSnippetEditorData:a}=e("yoast-seo/editor");return{onChange:(e,s)=>{switch(e){case"mode":r(s);break;case"slug":t({slug:s});break;default:t({[e]:s})}},onChangeAnalysisData:s,onLoad:a}})),sr()])(Ic),Pc=N()(Ol)`
	width: 18px;
	height: 18px;
	margin: 3px;
`,Lc=()=>{const e=j(),r=(0,o.useSelect)((e=>e("yoast-seo/editor").getIsElementorEditor()),[]);return(0,t.createElement)(Pl,{title:(0,l.__)("Search appearance","wordpress-seo"),id:"yoast-search-appearance-modal",shouldCloseOnClickOutside:!1,SuffixHeroIcon:(0,t.createElement)(Pc,{className:"yst-text-slate-500",...e})},!0===r&&(0,t.createElement)(Ac,{showCloseButton:!1,hasPaperStyle:!1}),!1===r&&(0,t.createElement)(xr,{showCloseButton:!1,hasPaperStyle:!1}))},Fc=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{d:"M15 8a3 3 0 10-2.977-2.63l-4.94 2.47a3 3 0 100 4.319l4.94 2.47a3 3 0 10.895-1.789l-4.94-2.47a3.027 3.027 0 000-.74l4.94-2.47C13.456 7.68 14.19 8 15 8z"}))})),Mc=N()(Q.Collapsible)`
	h2 > button {
		padding-left: 0;
		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);
	}

`,Oc=e=>(0,t.createElement)(Mc,{hasPadding:!1,hasSeparator:!0,...e}),Nc=N()(Fc)`
	width: 18px;
	height: 18px;
	margin: 3px;
`,qc=e=>{const{useOpenGraphData:r,useTwitterData:s}=e;if(!r&&!s)return;const a=j();return(0,t.createElement)(Pl,{title:(0,l.__)("Social media appearance","wordpress-seo"),id:"yoast-social-appearance-modal",shouldCloseOnClickOutside:!1,SuffixHeroIcon:(0,t.createElement)(Nc,{className:"yst-text-slate-500",...a})},r&&(0,t.createElement)(i.Fragment,null,(0,t.createElement)(za,null,(0,l.__)("Determine how your post should look on social media like Facebook, X, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")),(0,t.createElement)(Da,null),s&&(0,t.createElement)(Ka,null,(0,l.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below. If you leave these settings untouched, the 'Social media appearance' settings mentioned above will also be applied for sharing on X.","wordpress-seo"))),r&&s&&(0,t.createElement)(Oc,{title:(0,l.__)("X appearance","wordpress-seo"),hasSeparator:!0,initialIsOpen:!1},(0,t.createElement)(Ua,null)),!r&&s&&(0,t.createElement)(i.Fragment,null,(0,t.createElement)(za,null,(0,l.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below.","wordpress-seo")),(0,t.createElement)(Ua,null)))};qc.propTypes={useOpenGraphData:_().bool.isRequired,useTwitterData:_().bool.isRequired};const Dc=qc,$c=e=>{const[r,s]=(0,i.useState)(!1),{prefixIcon:a}=e;return(0,t.createElement)("div",{className:"yoast components-panel__body "+(r?"is-opened":"")},(0,t.createElement)("h2",{className:"components-panel__body-title"},(0,t.createElement)("button",{onClick:function(){s(!r)},className:"components-button components-panel__body-toggle",type:"button",id:e.buttonId},(0,t.createElement)("span",{className:"yoast-icon-span",style:{fill:`${a&&a.color||""}`}},a&&(0,t.createElement)(Q.SvgIcon,{icon:a.icon,color:a.color,size:a.size})),(0,t.createElement)("span",{className:"yoast-title-container"},(0,t.createElement)("div",{className:"yoast-title"},e.title),(0,t.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),e.hasBetaBadgeLabel&&(0,t.createElement)(Q.BetaBadge,null),(0,t.createElement)("span",{className:"yoast-chevron","aria-hidden":"true"}))),r&&e.children)},Bc=$c;$c.propTypes={title:_().string.isRequired,children:_().oneOfType([_().node,_().arrayOf(_().node)]).isRequired,prefixIcon:_().object,subTitle:_().string,hasBetaBadgeLabel:_().bool,buttonId:_().string},$c.defaultProps={prefixIcon:null,subTitle:"",hasBetaBadgeLabel:!1,buttonId:null};const Wc=({error:e})=>{const r=(0,i.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),s=(0,o.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/sidebar-error-support")),[]),a=(0,o.useSelect)((e=>e("yoast-seo/editor").getPreference("isRtl",!1)),[]);return(0,t.createElement)(Er.Root,{context:{isRtl:a}},(0,t.createElement)(Gi,{error:e},(0,t.createElement)(Gi.VerticalButtons,{supportLink:s,handleRefreshClick:r})))};function Uc({settings:e}){const r=(({webinarIntroUrl:e})=>{const{shouldShow:r}=xl(),s=(e=>{for(const t of e)if(null!=t&&t.getIsEligible())return t;return null})([{getIsEligible:()=>r,component:Sl},{getIsEligible:Il,component:()=>(0,t.createElement)(Cl,{hasIcon:!1,image:null,url:e})},{getIsEligible:Ui,component:()=>(0,t.createElement)(vl,{hasIcon:!1})},{getIsEligible:()=>!0,component:()=>(0,t.createElement)(Wi,{hasIcon:!1})}]);return(null==s?void 0:s.component)||null})({webinarIntroUrl:(0,m.get)(window,"wpseoScriptData.webinarIntroBlockEditorUrl","https://yoa.st/webinar-intro-block-editor")});return(0,t.createElement)(i.Fragment,null,(0,t.createElement)(B.Fill,{name:"YoastSidebar"},(0,t.createElement)(Er.ErrorBoundary,{FallbackComponent:Wc},(0,t.createElement)(bs,{key:"warning",renderPriority:1},(0,t.createElement)(Tr,null),(0,t.createElement)("div",{style:{margin:"0 16px"}},r&&(0,t.createElement)(r,null))),e.isKeywordAnalysisActive&&(0,t.createElement)(bs,{key:"keyword-input",renderPriority:8},(0,t.createElement)(rr.KeywordInput,{isSEMrushIntegrationActive:e.isSEMrushIntegrationActive})),e.isKeywordAnalysisActive&&(0,t.createElement)(bs,{key:"seo",renderPriority:10},(0,t.createElement)(i.Fragment,null,(0,t.createElement)(rr.SeoAnalysis,{shouldUpsell:e.shouldUpsell,shouldUpsellWordFormRecognition:e.isWordFormRecognitionActive}),e.shouldUpsell&&(0,t.createElement)(Dn,{location:"sidebar"}))),e.isContentAnalysisActive&&(0,t.createElement)(bs,{key:"readability",renderPriority:20},(0,t.createElement)(rr.ReadabilityAnalysis,{shouldUpsell:e.shouldUpsell})),e.isInclusiveLanguageAnalysisActive&&(0,t.createElement)(bs,{key:"inclusive-language-analysis",renderPriority:21},(0,t.createElement)(rr.InclusiveLanguageAnalysis,null)),e.isKeywordAnalysisActive&&(0,t.createElement)(bs,{key:"additional-keywords-upsell",renderPriority:22},e.shouldUpsell&&(0,t.createElement)(Wn,null)),e.isKeywordAnalysisActive&&e.isWincherIntegrationActive&&(0,t.createElement)(bs,{renderPriority:23},(0,t.createElement)(tr,{location:"sidebar"})),e.shouldUpsell&&(0,t.createElement)(bs,{key:"internal-linking-suggestions-upsell",renderPriority:25},(0,t.createElement)(fs,null)),(0,t.createElement)(bs,{key:"search-appearance",renderPriority:26},(0,t.createElement)(Lc,null)),(e.useOpenGraphData||e.useTwitterData)&&(0,t.createElement)(bs,{key:"social-appearance",renderPriority:27},(0,t.createElement)(Dc,{useOpenGraphData:e.useOpenGraphData,useTwitterData:e.useTwitterData})),e.displaySchemaSettings&&(0,t.createElement)(bs,{key:"schema",renderPriority:28},(0,t.createElement)(Bc,{title:(0,l.__)("Schema","wordpress-seo")},(0,t.createElement)(co,null))),e.displayAdvancedTab&&(0,t.createElement)(bs,{key:"advanced",renderPriority:29},(0,t.createElement)(Bc,{title:(0,l.__)("Advanced","wordpress-seo")},(0,t.createElement)(Ns,null))),e.isCornerstoneActive&&(0,t.createElement)(bs,{key:"cornerstone",renderPriority:30},(0,t.createElement)(ar,null)),e.isInsightsEnabled&&(0,t.createElement)(bs,{renderPriority:32},(0,t.createElement)(Ml,{location:"sidebar"})))))}Wc.propTypes={error:_().object.isRequired},Uc.propTypes={settings:_().object.isRequired};const Kc=(0,o.withSelect)(((e,t)=>{const{getPreferences:r}=e("yoast-seo/editor");return{settings:r(),store:t.store}}))(Uc);function zc(e){const{hasTrackedKeyphrases:r,trackAll:s}=e;return(0,t.createElement)(i.Fragment,null,(0,t.createElement)(Q.FieldGroup,{label:(0,l.__)("SEO performance","wordpress-seo"),linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"],linkText:(0,l.__)("Learn more about the SEO performance feature.","wordpress-seo"),wrapperClassName:"yoast-field-group yoast-wincher-post-publish"}),(0,t.createElement)(mt,null),r&&(0,t.createElement)("p",null,(0,l.__)("Tracking has already been enabled for one or more keyphrases of this page. Clicking the button below will enable tracking for all of its keyphrases.","wordpress-seo")),(0,t.createElement)("div",{className:"yoast"},(0,t.createElement)(Q.NewButton,{variant:"secondary",small:!0,onClick:s},(0,l.__)("Track all keyphrases on this page","wordpress-seo"))),(0,t.createElement)(tr,{location:"postpublish"}))}zc.propTypes={trackAll:_().func,hasTrackedKeyphrases:_().bool},zc.defaultProps={trackAll:()=>{},hasTrackedKeyphrases:!1};const Hc=(0,H.compose)([(0,o.withSelect)((e=>{const{getWincherTrackedKeyphrases:t,hasWincherTrackedKeyphrases:r}=e("yoast-seo/editor");return{trackedKeyphrases:t(),hasTrackedKeyphrases:r()}})),(0,o.withDispatch)((e=>{const{setWincherOpenModal:t,setWincherTrackAllKeyphrases:r}=e("yoast-seo/editor");return{trackAll:()=>{r(!0),t("postpublish")}}}))])(zc);window.wp.annotations;const Vc=/(<([a-z]|\/)[^<>]+>)/gi,{htmlEntitiesRegex:jc}=Ar.helpers.htmlEntities,Yc=e=>{let t=0;return(0,m.forEachRight)(e,(e=>{const[r]=e;let s=r.length;/^<\/?br/.test(r)&&(s-=1),t+=s})),t},Gc="<yoastmark class='yoast-text-mark'>",Zc="</yoastmark>",Xc='<yoastmark class="yoast-text-mark">';function Qc(e,t,r,s,a){const o=s.clientId,n=(0,d.create)({html:e,multilineTag:r.multilineTag,multilineWrapperTag:r.multilineWrapperTag}).text;return(0,m.flatMap)(a,(r=>{let a;return a=r.hasBlockPosition&&r.hasBlockPosition()?function(e,t,r,s,a){if(t===e.getBlockClientId()){let t=e.getBlockPositionStart(),o=e.getBlockPositionEnd();if(e.isMarkForFirstBlockSection()){const e=((e,t,r)=>{const s="yoast/faq-block"===r?'<strong class="schema-faq-question">':'<strong class="schema-how-to-step-name">';return{blockStartOffset:e-=s.length,blockEndOffset:t-=s.length}})(t,o,r);t=e.blockStartOffset,o=e.blockEndOffset}if(s.slice(t,o)===a.slice(t,o))return[{startOffset:t,endOffset:o}];const n=((e,t,r)=>{const s=r.slice(0,e),a=r.slice(0,t),o=((e,t,r,s)=>{const a=[...e.matchAll(Vc)];r-=Yc(a);const o=[...t.matchAll(Vc)];return{blockStartOffset:r,blockEndOffset:s-=Yc(o)}})(s,a,e,t),n=((e,t,r,s)=>{let a=[...e.matchAll(jc)];return(0,m.forEachRight)(a,(e=>{const[,t]=e;r-=t.length})),a=[...t.matchAll(jc)],(0,m.forEachRight)(a,(e=>{const[,t]=e;s-=t.length})),{blockStartOffset:r,blockEndOffset:s}})(s,a,e=o.blockStartOffset,t=o.blockEndOffset);return{blockStartOffset:e=n.blockStartOffset,blockEndOffset:t=n.blockEndOffset}})(t,o,s);return[{startOffset:n.blockStartOffset,endOffset:n.blockEndOffset}]}return[]}(r,o,s.name,e,n):function(e,t){const r=t.getOriginal().replace(/(<([^>]+)>)/gi,""),s=t.getMarked().replace(/(<(?!\/?yoastmark)[^>]+>)/gi,""),a=function(e,t,r=!0){const s=[];if(0===e.length)return s;let a,o=0;for(r||(t=t.toLowerCase(),e=e.toLowerCase());(a=e.indexOf(t,o))>-1;)s.push(a),o=a+t.length;return s}(e,r);if(0===a.length)return[];const o=function(e){let t=e.indexOf(Gc);const r=t>=0;r||(t=e.indexOf(Xc));let s=null;const a=[];for(;t>=0;){if(s=(e=r?e.replace(Gc,""):e.replace(Xc,"")).indexOf(Zc),s<t)return[];e=e.replace(Zc,""),a.push({startOffset:t,endOffset:s}),t=r?e.indexOf(Gc):e.indexOf(Xc),s=null}return a}(s),n=[];return o.forEach((e=>{a.forEach((s=>{const a=s+e.startOffset;let o=s+e.endOffset;0===e.startOffset&&e.endOffset===t.getOriginal().length&&(o=s+r.length),n.push({startOffset:a,endOffset:o})}))})),n}(n,r),a?a.map((e=>({...e,block:o,richTextIdentifier:t}))):[]}))}const Jc=e=>e[0].toUpperCase()+e.slice(1),ed=(e,t,r,s,a)=>(e=e.map((e=>{const o=`${e.id}-${a[0]}`,n=`${e.id}-${a[1]}`,i=Jc(a[0]),l=Jc(a[1]),c=e[`json${i}`],d=e[`json${l}`],{marksForFirstSection:p,marksForSecondSection:u}=((e,t)=>({marksForFirstSection:e.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&e.isMarkForFirstBlockSection():e)),marksForSecondSection:e.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&!e.isMarkForFirstBlockSection():e))}))(t,e),m=Qc(c,o,r,s,p),h=Qc(d,n,r,s,u);return m.concat(h)})),(0,m.flattenDeep)(e)),td="yoast";let rd=[];const sd={"core/paragraph":[{key:"content"}],"core/list":[{key:"values",multilineTag:"li",multilineWrapperTag:["ul","ol"]}],"core/list-item":[{key:"content"}],"core/heading":[{key:"content"}],"core/audio":[{key:"caption"}],"core/embed":[{key:"caption"}],"core/gallery":[{key:"caption"}],"core/image":[{key:"caption"}],"core/table":[{key:"caption"}],"core/video":[{key:"caption"}],"yoast/faq-block":[{key:"questions"}],"yoast/how-to-block":[{key:"steps"},{key:"jsonDescription"}]};function ad(){const e=rd.shift();e&&((0,o.dispatch)("core/annotations").__experimentalAddAnnotation(e),od())}function od(){(0,m.isFunction)(window.requestIdleCallback)?window.requestIdleCallback(ad,{timeout:1e3}):setTimeout(ad,150)}function nd(){const e=(0,o.select)("core/block-editor").getSelectedBlock(),t=(0,o.select)("yoast-seo/editor").getActiveMarker();if(!e||!t)return;var r;r=e.clientId,(0,o.select)("core/annotations").__experimentalGetAnnotations().filter((e=>e.blockClientId===r&&e.source===td)).forEach((e=>{(0,o.dispatch)("core/annotations").__experimentalRemoveAnnotation(e.id)}));const s=(0,o.select)("yoast-seo/editor").getResultById(t);if(void 0===s)return;const a=s.marks;var n;n=((e,t)=>{return(0,m.flatMap)((r=e.name,sd.hasOwnProperty(r)?sd[r]:[]),(r=>"yoast/faq-block"===e.name?((e,t,r)=>{const s=t.attributes[e.key];return 0===s.length?[]:ed(s,r,e,t,["question","answer"])})(r,e,t):"yoast/how-to-block"===e.name?((e,t,r)=>{const s=t.attributes[e.key];if(s&&0===s.length)return[];const a=[];return"steps"===e.key&&a.push(ed(s,r,e,t,["name","text"])),"jsonDescription"===e.key&&(r=r.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?!e.getBlockAttributeId():e)),a.push(Qc(s,"description",e,t,r))),(0,m.flattenDeep)(a)})(r,e,t):function(e,t,r){const s=e.key,a=((e,t)=>{const r=e.attributes[t];return"string"==typeof r?r:r.toString()})(t,s);return Qc(a,s,e,t,r)}(r,e,t)));var r})(e,a),rd=n.map((e=>({blockClientId:e.block,source:td,richTextIdentifier:e.richTextIdentifier,range:{start:e.startOffset,end:e.endOffset}}))),od()}const id=window.wp.htmlEntities;function ld({isActive:e,activeAttributes:r,addingLink:s,value:a,onChange:o,speak:n,stopAddingLink:c}){const p=(0,i.useMemo)(m.uniqueId,[s]),[u,h]=(0,i.useState)(),g=(0,i.useMemo)((()=>{const t=window.getSelection();if(!t.rangeCount)return;const r=t.getRangeAt(0);if(s&&!e)return r;let a=r.startContainer;for(a=a.nextElementSibling||a;a.nodeType!==window.Node.ELEMENT_NODE;)a=a.parentNode;return a.closest("a")}),[s,a.start,a.end]),y={url:r.url,type:r.type,id:r.id,opensInNewTab:"_blank"===r.target,noFollow:r.rel&&r.rel.split(" ").includes("nofollow"),sponsored:r.rel&&r.rel.split(" ").includes("sponsored"),...u},f=e=>y.url===e.url&&y.opensInNewTab!==e.opensInNewTab||y.noFollow!==e.noFollow||y.sponsored!==e.sponsored,w=e=>{if("number"==typeof e||"string"==typeof e)return String(e)},b=(0,i.useCallback)((t=>{t={...u,...t};const r=f(y);if((e=>f(e)&&!0===e.sponsored&&!0!==y.Sponsored)(t)&&(t.noFollow=!0),(e=>f(e)&&!1===e.noFollow&&!1!==y.noFollow)(t)&&(t.sponsored=!1),(e=>f(e)&&!e.url)(t))return void h(t);const s=(0,Vr.prependHTTP)(t.url),i=function({url:e,opensInNewWindow:t,noFollow:r,sponsored:s}){const a={type:"core/link",attributes:{url:e}};let o=[];return t&&(a.attributes.target="_blank",o.push("noreferrer noopener")),s&&(o.push("sponsored"),o.push("nofollow")),r&&o.push("nofollow"),o.length>0&&(o=(0,m.uniq)(o),a.attributes.rel=o.join(" ")),a}({url:s,type:t.type,id:w(t.id),opensInNewWindow:t.opensInNewTab,noFollow:t.noFollow,sponsored:t.sponsored});if((0,d.isCollapsed)(a)&&!e){const e=((e,t)=>e.title?e.title:t)(t,s),r=(0,d.applyFormat)((0,d.create)({text:e}),i,0,e.length);o((0,d.insert)(a,r))}else{const e=(0,d.applyFormat)(a,i);e.start=e.end,e.activeFormats=[],o(e)}r||c(),(t=>{!function(e){if(!e)return!1;const t=e.trim();if(!t)return!1;if(/^\S+:/.test(t)){const e=(0,Vr.getProtocol)(t);if(!(0,Vr.isValidProtocol)(e))return!1;if((0,m.startsWith)(e,"http")&&!/^https?:\/\/[^\/\s]/i.test(t))return!1;const r=(0,Vr.getAuthority)(t);if(!(0,Vr.isValidAuthority)(r))return!1;const s=(0,Vr.getPath)(t);if(s&&!(0,Vr.isValidPath)(s))return!1;const a=(0,Vr.getQueryString)(t);if(a&&!(0,Vr.isValidQueryString)(a))return!1;const o=(0,Vr.getFragment)(t);if(o&&!(0,Vr.isValidFragment)(o))return!1}return!((0,m.startsWith)(t,"#")&&!(0,Vr.isValidFragment)(t))}(t)?n((0,l.__)("Warning: the link has been inserted but may have errors. Please test it.","wordpress-seo"),"assertive"):n(e?(0,l.__)("Link edited.","wordpress-seo"):(0,l.__)("Link inserted.","wordpress-seo"),"assertive")})(s)}),[]),E=(0,t.createElement)(wo,{href:window.wpseoAdminL10n["shortlinks.nofollow_sponsored"],className:"dashicons"},(0,t.createElement)("span",{className:"screen-reader-text"},(0,l.__)("Learn more about marking a link as nofollow or sponsored.","wordpress-seo"))),v=Kr((0,l.sprintf)((0,l.__)("Search engines should ignore this link (mark as %1$snofollow%2$s)%3$s","wordpress-seo"),"<code>","</code>","<helplink />"),{code:(0,t.createElement)("code",null),helplink:E}),k=Kr((0,l.sprintf)((0,l.__)("This is a sponsored link or advert (mark as %1$ssponsored%2$s)%3$s","wordpress-seo"),"<code>","</code>","<helplink />"),{code:(0,t.createElement)("code",null),helplink:E}),_=[{id:"opensInNewTab",title:(0,l.__)("Open in new tab","wordpress-seo")},{id:"noFollow",title:v},{id:"sponsored",title:k}],{__experimentalLinkControl:x}=window.wp.blockEditor;return(0,t.createElement)(B.Popover,{key:p,anchor:g,focusOnMount:!!s&&"firstElement",onClose:c,position:"bottom center",placement:"bottom",shift:!0},(0,t.createElement)(x,{value:y,onChange:b,forceIsEditingLink:s,settings:_}))}ld.propTypes={isActive:_().bool,activeAttributes:_().object,addingLink:_().bool,value:_().object,onChange:_().func,speak:_().func.isRequired,stopAddingLink:_().func.isRequired};const cd=(0,B.withSpokenMessages)(ld),dd="core/link",pd=(0,l.__)("Link","wordpress-seo"),ud={name:dd,title:pd,tagName:"a",className:null,attributes:{url:"href",target:"target",rel:"rel"},replaces:"core/link",__unstablePasteRule(e,{html:t,plainText:r}){if((0,d.isCollapsed)(e))return e;const s=(t||r).replace(/<[^>]+>/g,"").trim();return(0,Vr.isURL)(s)?(window.console.log("Created link:\n\n",s),(0,d.applyFormat)(e,{type:dd,attributes:{url:(0,id.decodeEntities)(s)}})):e},edit:(0,B.withSpokenMessages)(class extends i.Component{constructor(){super(...arguments),this.addLink=this.addLink.bind(this),this.stopAddingLink=this.stopAddingLink.bind(this),this.onRemoveFormat=this.onRemoveFormat.bind(this),this.state={addingLink:!1}}addLink(){const{value:e,onChange:t}=this.props,r=(0,d.getTextContent)((0,d.slice)(e));r&&(0,Vr.isURL)(r)?t((0,d.applyFormat)(e,{type:dd,attributes:{url:r}})):r&&(0,Vr.isEmail)(r)?t((0,d.applyFormat)(e,{type:dd,attributes:{url:`mailto:${r}`}})):this.setState({addingLink:!0})}stopAddingLink(){this.setState({addingLink:!1}),this.props.onFocus()}onRemoveFormat(){const{value:e,onChange:t,speak:r}=this.props;t((0,d.removeFormat)(e,dd)),r((0,l.__)("Link removed.","wordpress-seo"),"assertive")}render(){const{isActive:e,activeAttributes:r,value:s,onChange:a}=this.props,{RichTextToolbarButton:o,RichTextShortcut:n}=window.wp.blockEditor;return(0,t.createElement)(i.Fragment,null,(0,t.createElement)(n,{type:"primary",character:"k",onUse:this.addLink}),(0,t.createElement)(n,{type:"primaryShift",character:"k",onUse:this.onRemoveFormat}),e&&(0,t.createElement)(o,{name:"link",icon:"editor-unlink",title:(0,l.__)("Unlink","wordpress-seo"),onClick:this.onRemoveFormat,isActive:e,shortcutType:"primaryShift",shortcutCharacter:"k"}),!e&&(0,t.createElement)(o,{name:"link",icon:"admin-links",title:pd,onClick:this.addLink,isActive:e,shortcutType:"primary",shortcutCharacter:"k"}),(this.state.addingLink||e)&&(0,t.createElement)(cd,{addingLink:this.state.addingLink,stopAddingLink:this.stopAddingLink,isActive:e,activeAttributes:r,value:s,onChange:a}))}})};function md(){const e=M();return(0,m.get)(e,"contentLocale","en_US")}const{updateReplacementVariable:hd,updateData:gd,hideReplacementVariables:yd,setContentImage:fd,updateSettings:wd,setEditorDataContent:bd,setEditorDataTitle:Ed,setEditorDataExcerpt:vd,setEditorDataImageUrl:kd,setEditorDataSlug:_d}=u.actions,xd=r.g.jQuery;window.yoast=window.yoast||{},window.yoast.initEditorIntegration=function(e){(function(e){const r=M(),s=r.isPremium?"Yoast SEO Premium":"Yoast SEO",d=(0,t.createElement)($,null);(0,a.updateCategory)("yoast-structured-data-blocks",{icon:d}),(0,a.updateCategory)("yoast-internal-linking-blocks",{icon:d});const u={isRtl:r.isRtl},m=e.getState().preferences,h=m.isKeywordAnalysisActive||m.isContentAnalysisActive,g=m.isKeywordAnalysisActive&&m.isWincherIntegrationActive;!function(){var e,t,r;const s="yoast-seo/document-panel";var a,n,i,l;Boolean(null===(e=(0,o.dispatch)("core/editor"))||void 0===e?void 0:e.toggleEditorPanelOpened)?((null===(t=(0,o.select)("core/preferences"))||void 0===t?void 0:t.get("core","openPanels"))||(null===(r=(0,o.select)("core/preferences"))||void 0===r?void 0:r.get("core/edit-post","openPanels"))).includes(s)||null===(a=(0,o.dispatch)("core/editor"))||void 0===a||a.toggleEditorPanelOpened(s):null!==(n=(0,o.select)("core/preferences"))&&void 0!==n&&null!==(i=n.get("core/edit-post","openPanels"))&&void 0!==i&&i.includes(s)||null===(l=(0,o.dispatch)("core/edit-post"))||void 0===l||l.toggleEditorPanelOpened(s)}();const y={locationContext:"block-sidebar"},f={locationContext:"block-metabox"};(0,c.registerPlugin)("yoast-seo",{render:()=>(0,t.createElement)(i.Fragment,null,(0,t.createElement)(n.PluginSidebarMoreMenuItem,{target:"seo-sidebar",icon:(0,t.createElement)(dl,null)},s),(0,t.createElement)(n.PluginSidebar,{name:"seo-sidebar",title:s},(0,t.createElement)(p.Root,{context:y},(0,t.createElement)(rl,{store:e,theme:u}))),(0,t.createElement)(i.Fragment,null,(0,t.createElement)(Kc,{store:e,theme:u}),(0,t.createElement)(p.Root,{context:f},(0,t.createElement)(tl,{target:"wpseo-metabox-root",store:e,theme:u}))),h&&(0,t.createElement)(n.PluginPrePublishPanel,{className:"yoast-seo-sidebar-panel",title:(0,l.__)("Yoast SEO","wordpress-seo"),initialOpen:!0,icon:(0,t.createElement)(i.Fragment,null)},(0,t.createElement)(El,null)),(0,t.createElement)(n.PluginPostPublishPanel,{className:"yoast-seo-sidebar-panel",title:(0,l.__)("Yoast SEO","wordpress-seo"),initialOpen:!0,icon:(0,t.createElement)(i.Fragment,null)},(0,t.createElement)(wl,null),g&&(0,t.createElement)(Hc,null)),h&&(0,t.createElement)(n.PluginDocumentSettingPanel,{name:"document-panel",className:"yoast-seo-sidebar-panel",title:(0,l.__)("Yoast SEO","wordpress-seo"),icon:(0,t.createElement)(i.Fragment,null)},(0,t.createElement)(cl,null))),icon:(0,t.createElement)(dl,null)})})(e),function(){if("function"==typeof(0,m.get)(window,"wp.blockEditor.__experimentalLinkControl")){const e=(0,o.select)("core/rich-text").getFormatType("core/unknown");void 0!==e&&(0,o.dispatch)("core/rich-text").removeFormatTypes("core/unknown"),[ud].forEach((({name:e,replaces:t,...r})=>{t&&(0,o.dispatch)("core/rich-text").removeFormatTypes(t),e&&(0,d.registerFormatType)(e,r)})),void 0!==e&&(0,d.registerFormatType)("core/unknown",e)}else console.warn((0,l.__)("Marking links with nofollow/sponsored has been disabled for WordPress installs < 5.4.","wordpress-seo")+" "+(0,l.sprintf)((0,l.__)("Please upgrade your WordPress version or install the Gutenberg plugin to get this %1$s feature.","wordpress-seo"),"Yoast SEO"))}(),function(e){(0,o.select)("core/block-editor")&&(0,m.isFunction)((0,o.select)("core/block-editor").getBlocks)&&(0,o.select)("core/annotations")&&(0,m.isFunction)((0,o.dispatch)("core/annotations").__experimentalAddAnnotation)&&e.dispatch(u.actions.setMarkerStatus("enabled"))}(e),vs()&&F()},window.yoast.EditorData=class{constructor(e,t){this._refresh=e,this._store=t,this._data={},this.getPostAttribute=this.getPostAttribute.bind(this),this.refreshYoastSEO=this.refreshYoastSEO.bind(this)}initialize(e,t=[]){var r,s;this._data=this.getInitialData(e),r=this._data,s=this._store,(0,m.forEach)(r,((e,t)=>{gr.includes(t)||s.dispatch(pr(t,e))})),this._store.dispatch(yd(t)),this.subscribeToGutenberg(),this.subscribeToYoastSEO()}getInitialData(e){const t=this.collectGutenbergData();return e=function(e,t){if(!e.custom_taxonomies)return e;const r={};return(0,m.forEach)(e.custom_taxonomies,((e,t)=>{const{name:s,label:a,descriptionName:o,descriptionLabel:n}=function(e){const t=yr(e);return{name:"ct_"+t,label:ur(e+" (custom taxonomy)"),descriptionName:"ct_desc_"+t,descriptionLabel:ur(e+" description (custom taxonomy)")}}(t),i="string"==typeof e.name?(0,J.decodeHTML)(e.name):e.name,l="string"==typeof e.description?(0,J.decodeHTML)(e.description):e.description;r[s]={value:i,label:a},r[o]={value:l,label:n}})),t.dispatch(function(e){return{type:"SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLES_BATCH",updatedVariables:e}}(r)),(0,m.omit)({...e},"custom_taxonomies")}(e=function(e,t){return e.custom_fields?((0,m.forEach)(e.custom_fields,((e,r)=>{const{name:s,label:a}=function(e){return{name:"cf_"+yr(e),label:ur(e+" (custom field)")}}(r);t.dispatch(pr(s,e,a))})),(0,m.omit)({...e},"custom_fields")):e}(e,this._store),this._store),{...e,...t}}setRefresh(e){this._refresh=e}isShallowEqual(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e.hasOwnProperty(r)&&(!(r in t)||e[r]!==t[r]))return!1;return!0}getMediaById(e){return this._coreDataSelect||(this._coreDataSelect=(0,o.select)("core")),this._coreDataSelect.getMedia(e)}getPostAttribute(e){return this._coreEditorSelect||(this._coreEditorSelect=(0,o.select)("core/editor")),this._coreEditorSelect.getEditedPostAttribute(e)}getSlug(){if("auto-draft"===this.getPostAttribute("status"))return"";let e=this.getPostAttribute("generated_slug")||"";"auto-draft"===e&&(e="");const t=this.getPostAttribute("slug")||e;try{return decodeURI(t)}catch(e){return t}}getPostBaseUrl(){const e=(0,o.select)("core/editor").getPermalinkParts();if(null===e||null==e||!e.prefix)return window.wpseoScriptData.metabox.base_url;let t=e.prefix;if((0,o.select)("core/editor").isEditedPostNew())try{const e=new URL(t);t=e.origin+e.pathname}catch(e){}return t.endsWith("/")||(t+="/"),t}collectGutenbergData(){let e=(0,o.select)("core/editor").getEditedPostContent();const t=(0,o.select)("core/block-editor").getBlocks();1===t.length&&"core/freeform"===t[0].name&&(e=(0,a.getBlockContent)(t[0]));const r=this.calculateContentImage(e),s=this.getPostAttribute("excerpt")||"";return{content:e,title:this.getPostAttribute("title")||"",slug:this.getSlug(),excerpt:s||fr(e,"ja"===md()?80:156),excerpt_only:s,snippetPreviewImageURL:this.getFeaturedImage()||r,contentImage:r,baseUrl:this.getPostBaseUrl()}}getFeaturedImage(){const e=this.getPostAttribute("featured_media");if(e){const t=this.getMediaById(e);if(t)return t.source_url}return null}calculateContentImage(e){const t=Ar.languageProcessing.imageInText(e);if(0===t.length)return"";const r=xd.parseHTML(t.join(""));for(const e of r)if(e.src)return e.src;return""}handleEditorChange(e){this._data.content!==e.content&&this._store.dispatch(bd(e.content)),this._data.title!==e.title&&(this._store.dispatch(Ed(e.title)),this._store.dispatch(hd("title",e.title))),this._data.excerpt!==e.excerpt&&(this._store.dispatch(vd(e.excerpt)),this._store.dispatch(hd("excerpt",e.excerpt)),this._store.dispatch(hd("excerpt_only",e.excerpt_only))),this._data.slug!==e.slug&&(this._store.dispatch(_d(e.slug)),this._store.dispatch(gd({slug:e.slug}))),this._data.snippetPreviewImageURL!==e.snippetPreviewImageURL&&(this._store.dispatch(kd(e.snippetPreviewImageURL)),this._store.dispatch(gd({snippetPreviewImageURL:e.snippetPreviewImageURL}))),this._data.contentImage!==e.contentImage&&this._store.dispatch(fd(e.contentImage)),this._data.baseUrl!==e.baseUrl&&this._store.dispatch(wd({baseUrl:e.baseUrl}))}reapplyMarkers(){const{getActiveMarker:e,getMarkerPauseStatus:t}=(0,o.select)("yoast-seo/editor"),r=e(),s=t();r&&!s&&nd()}refreshYoastSEO(){const e=this.collectGutenbergData();!this.isShallowEqual(this._data,e)&&(this.handleEditorChange(e),this._data=e,this._refresh())}areNewAnalysisResultsAvailable(){const e=(0,o.select)("yoast-seo/editor"),t=e.getReadabilityResults(),r=e.getResultsForFocusKeyword();return(this._previousReadabilityResults!==t||this._previousSeoResults!==r)&&(this._previousReadabilityResults=t,this._previousSeoResults=r,!0)}onNewAnalysisResultsAvailable(){this.reapplyMarkers()}subscribeToGutenberg(){this.subscriber=(0,m.debounce)(this.refreshYoastSEO,500),(0,o.subscribe)(this.subscriber)}subscribeToYoastSEO(){this.yoastSubscriber=()=>{this.areNewAnalysisResultsAvailable()&&this.onNewAnalysisResultsAvailable()},(0,o.subscribe)(this.yoastSubscriber)}getData(){return this._data}}})()})();