(()=>{var e={4184:(e,t)=>{var s;!function(){"use strict";var i={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var r=typeof s;if("string"===r||"number"===r)e.push(s);else if(Array.isArray(s)){if(s.length){var n=o.apply(null,s);n&&e.push(n)}}else if("object"===r){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var a in s)i.call(s,a)&&s[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(s=function(){return o}.apply(t,[]))||(e.exports=s)}()}},t={};function s(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,s),r.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.blocks,t=window.wp.data,i=window.wp.editor,o=window.wp.element,r=window.wp.i18n,n=window.wp.plugins,a=window.wp.richText,l=window.yoast.externals.contexts,c=window.yoast.externals.redux,d=window.lodash;function p(){return(0,d.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}const u=window.yoast.propTypes;var h=s.n(u);const g=window.yoast.styledComponents;var m=s.n(g);const y=window.ReactJSXRuntime,f=m().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"};
	}
`,w=({readabilityScoreColor:e="#000000",isContentAnalysisActive:t=!1,seoScoreColor:s="#000000",isKeywordAnalysisActive:i=!1,size:o=20,color:r="#000001",...n})=>(0,y.jsxs)(f,{readabilityScoreColor:e,isContentAnalysisActive:t,seoScoreColor:s,isKeywordAnalysisActive:i,size:o,color:r,...n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 646.66 456.27",children:[(0,y.jsx)("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,y.jsx)("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,y.jsx)("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,y.jsx)("circle",{className:"yoast-icon-seo-score",cx:"561.26",cy:"341.96",r:"85.04",fill:"#000001",stroke:"#181716",strokeMiterlimit:"10",strokeWidth:"0.72"})]});w.propTypes={readabilityScoreColor:h().string,isContentAnalysisActive:h().bool,seoScoreColor:h().string,isKeywordAnalysisActive:h().bool,size:h().number,color:h().string};const b=w,x=window.wp.components,v=window.yoast.uiLibrary;function k(e){return void 0===e.length?e:(0,d.flatten)(e).sort(((e,t)=>void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority))}const _=window.React;var j=s.n(_);_.forwardRef((function(e,t){return _.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:t},e),_.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))}));const S=(e,t)=>{try{return(0,o.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}};h().string.isRequired;const T=_.forwardRef((function(e,t){return _.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:t},e),_.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"}))})),R=_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));h().string.isRequired,h().string.isRequired,h().shape({src:h().string.isRequired,width:h().string,height:h().string}).isRequired,h().shape({value:h().bool.isRequired,status:h().string.isRequired,set:h().func.isRequired}).isRequired,h().string,h().string,h().string;const C=({handleRefreshClick:e,supportLink:t})=>(0,y.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,y.jsx)(v.Button,{onClick:e,children:(0,r.__)("Refresh this page","wordpress-seo")}),(0,y.jsx)(v.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,r.__)("Contact support","wordpress-seo")})]});C.propTypes={handleRefreshClick:h().func.isRequired,supportLink:h().string.isRequired};const E=({handleRefreshClick:e,supportLink:t})=>(0,y.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,y.jsx)(v.Button,{className:"yst-order-last",onClick:e,children:(0,r.__)("Refresh this page","wordpress-seo")}),(0,y.jsx)(v.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,r.__)("Contact support","wordpress-seo")})]});E.propTypes={handleRefreshClick:h().func.isRequired,supportLink:h().string.isRequired};const I=({error:e,children:t=null})=>(0,y.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,y.jsx)(v.Title,{children:(0,r.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,y.jsx)("p",{children:(0,r.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,y.jsx)(v.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,r.__)("Undefined error message.","wordpress-seo")}),(0,y.jsx)("p",{children:(0,r.__)("Unfortunately, this means that any unsaved changes in this section 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")}),t]});I.propTypes={error:h().object.isRequired,children:h().node},I.VerticalButtons=E,I.HorizontalButtons=C;h().string,h().node.isRequired,h().node.isRequired,h().node,h().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}));const L=window.ReactDOM;var A,F,P;(F=A||(A={})).Pop="POP",F.Push="PUSH",F.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(P||(P={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const M=["post","put","patch","delete"],q=(new Set(M),["get",...M]);new Set(q),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),_.Component,_.startTransition,new Promise((()=>{})),_.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var O,N,D,U;new Map,_.startTransition,L.flushSync,_.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(U=O||(O={})).UseScrollRestoration="useScrollRestoration",U.UseSubmit="useSubmit",U.UseSubmitFetcher="useSubmitFetcher",U.UseFetcher="useFetcher",U.useViewTransitionState="useViewTransitionState",(D=N||(N={})).UseFetcher="useFetcher",D.UseFetchers="useFetchers",D.UseScrollRestoration="useScrollRestoration",h().string.isRequired,h().string;h().string.isRequired,h().node;const W=_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))}));(0,r.__)("Create optimized SEO titles & meta descriptions in seconds","wordpress-seo"),(0,r.__)("Apply AI suggestions to improve content in 1 click","wordpress-seo"),(0,r.__)("Manage redirects with ease and without extra plugins","wordpress-seo"),(0,r.__)("Optimize pages for multiple keywords with guidance","wordpress-seo"),(0,r.__)("Add product details to help your listings stand out","wordpress-seo"),(0,r.__)("Make sure search engines show the right version of your product page","wordpress-seo"),(0,r.__)("Create optimized SEO titles & meta descriptions with AI","wordpress-seo"),(0,r.__)("Receive clear SEO and readability guidance to optimize your products","wordpress-seo"),(0,r.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,r.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,r.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,r.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,r.__)("Internal links and redirect management, easy","wordpress-seo"),(0,r.__)("Access to friendly help when you need it, day or night","wordpress-seo");var $=s(4184),B=s.n($);var K;function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},H.apply(this,arguments)}h().string.isRequired,h().object.isRequired,h().func.isRequired,_.forwardRef((function(e,t){return _.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:t},e),_.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))}));const z=e=>_.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},e),K||(K=_.createElement("path",{fill:"#CD82AB",d:"M10.989 6.74 7.885.98v.002L7.882.98 4.778 6.74 0 3.32l1.126 7.702H14.64l1.126-7.703L10.99 6.74Z"})));h().string.isRequired,h().object,h().func.isRequired,h().bool.isRequired,h().string.isRequired,h().object.isRequired,h().string.isRequired,h().func.isRequired,h().bool.isRequired,_.forwardRef((function(e,t){return _.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:t},e),_.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),h().bool.isRequired,h().func,h().func,h().string.isRequired,h().string.isRequired,h().string.isRequired,h().string.isRequired;window.yoast.reactHelmet;h().string.isRequired,h().shape({src:h().string.isRequired,width:h().string,height:h().string}).isRequired,h().shape({value:h().bool.isRequired,status:h().string.isRequired,set:h().func.isRequired}).isRequired,h().bool,_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),h().bool.isRequired,h().func.isRequired,h().func,h().string,h().func.isRequired,h().string.isRequired,h().string.isRequired,h().string.isRequired,h().string.isRequired;const Y=window.yoast.componentsNew,V=window.yoast.styleGuide,G=window.yoast.analysis;function Z(e){switch(e){case"loading":return{icon:"loading-spinner",color:V.colors.$color_green_medium_light};case"not-set":return{icon:"seo-score-none",color:V.colors.$color_score_icon};case"noindex":return{icon:"seo-score-none",color:V.colors.$color_noindex};case"good":return{icon:"seo-score-good",color:V.colors.$color_green_medium};case"ok":return{icon:"seo-score-ok",color:V.colors.$color_ok};default:return{icon:"seo-score-bad",color:V.colors.$color_red}}}function X({target:e,children:t}){let s=e;return"string"==typeof e&&(s=document.getElementById(e)),s?(0,o.createPortal)(t,s):null}X.propTypes={target:h().oneOfType([h().string,h().object]).isRequired,children:h().node.isRequired};const Q=({target:e,scoreIndicator:t})=>(0,y.jsx)(X,{target:e,children:(0,y.jsx)(Y.SvgIcon,{...Z(t)})});Q.propTypes={target:h().string.isRequired,scoreIndicator:h().string.isRequired};const J=Q,ee=({error:e})=>{const s=(0,o.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),i=(0,t.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/metabox-error-support")),[]),r=(0,t.useSelect)((e=>e("yoast-seo/editor").getPreference("isRtl",!1)),[]);return(0,o.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,y.jsx)(v.Root,{context:{isRtl:r},children:(0,y.jsxs)(I,{error:e,children:[(0,y.jsx)(I.HorizontalButtons,{supportLink:i,handleRefreshClick:s}),(0,y.jsx)(J,{target:"wpseo-seo-score-icon",scoreIndicator:"not-set"}),(0,y.jsx)(J,{target:"wpseo-readability-score-icon",scoreIndicator:"not-set"}),(0,y.jsx)(J,{target:"wpseo-inclusive-language-score-icon",scoreIndicator:"not-set"})]})})};ee.propTypes={error:h().object.isRequired};const te=({theme:e,location:t,children:s})=>(0,y.jsx)(l.LocationProvider,{value:t,children:(0,y.jsx)(g.ThemeProvider,{theme:e,children:s})});te.propTypes={theme:h().object.isRequired,location:h().oneOf(["sidebar","metabox","modal"]).isRequired,children:h().node.isRequired};const se=te;function ie({theme:e}){return(0,y.jsx)(se,{theme:e,location:"metabox",children:(0,y.jsx)(v.ErrorBoundary,{FallbackComponent:ee,children:(0,y.jsx)(x.Slot,{name:"YoastMetabox",children:e=>k(e)})})})}const oe=window.wp.compose,re=_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.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"}))})),ne=(e=null)=>(0,_.useMemo)((()=>{const t={role:"img","aria-hidden":"true"};return null!==e&&(t.focusable=e?"true":"false"),t}),[e]),ae=({className:e="",...t})=>(0,y.jsx)("span",{className:B()("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-start",e),...t});ae.displayName="MetaboxButton.Text",ae.propTypes={className:h().string};const le=({className:e="",...t})=>(0,y.jsx)("button",{type:"button",className:B()("yst-flex yst-items-center yst-w-full yst-pt-4 yst-pb-4 yst-pe-4 yst-ps-6 yst-space-x-2 rtl:yst-space-x-reverse","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),...t});le.propTypes={className:h().string},le.Text=ae;const ce=window.yoast.helpers,de=m().div`
	min-width: 600px;

	@media screen and ( max-width: 680px ) {
		min-width: 0;
		width: 86vw;
	}
`,pe=(m().div`
	@media screen and ( min-width: 600px ) {
		max-width: 420px;
	}
`,m()(Y.Icon)`
	float: ${(0,ce.getDirectionalStyle)("right","left")};
	margin: ${(0,ce.getDirectionalStyle)("0 0 16px 16px","0 16px 16px 0")};

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

		@media screen and ( max-width: 680px ) {
			width: 80px;
			height: 80px;
		}
	}
`,({title:e="Yoast SEO",className:t="yoast yoast-gutenberg-modal",showYoastIcon:s=!0,children:i=null,additionalClassName:o="",...r})=>{const n=s?(0,y.jsx)("span",{className:"yoast-icon"}):null;return(0,y.jsx)(x.Modal,{title:e,className:`${t} ${o}`,icon:n,...r,children:i})});pe.propTypes={title:h().string,className:h().string,showYoastIcon:h().bool,children:h().oneOfType([h().node,h().arrayOf(h().node)]),additionalClassName:h().string};const ue=pe;var he,ge;function me(){return me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},me.apply(this,arguments)}const ye=e=>_.createElement("svg",me({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),he||(he=_.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"})),ge||(ge=_.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"}))),fe=({onClick:e,title:t,id:s="",subTitle:i="",suffixIcon:o=null,SuffixHeroIcon:r=null,prefixIcon:n=null,children:a=null})=>(0,y.jsx)("div",{className:"yoast components-panel__body",children:(0,y.jsx)("h2",{className:"components-panel__body-title",children:(0,y.jsxs)("button",{id:s,onClick:e,className:"components-button components-panel__body-toggle",type:"button",children:[n&&(0,y.jsx)("span",{className:"yoast-icon-span",style:{fill:`${n&&n.color||""}`},children:(0,y.jsx)(Y.SvgIcon,{size:n.size,icon:n.icon})}),(0,y.jsxs)("span",{className:"yoast-title-container",children:[(0,y.jsx)("div",{className:"yoast-title",children:t}),(0,y.jsx)("div",{className:"yoast-subtitle",children:i})]}),a,o&&(0,y.jsx)(Y.SvgIcon,{size:o.size,icon:o.icon}),r]})})}),we=fe;fe.propTypes={onClick:h().func.isRequired,title:h().string.isRequired,id:h().string,subTitle:h().string,suffixIcon:h().object,SuffixHeroIcon:h().element,prefixIcon:h().object,children:h().node};const be=window.moment;var xe=s.n(be);const ve=window.wp.apiFetch;var ke=s.n(ve);async function _e(e,t,s,i=200){try{const o=await e();return!!o&&(o.status===i?t(o):s(o))}catch(e){console.error(e.message)}}async function je(e){try{return await ke()(e)}catch(e){return e.error&&e.status?e:e instanceof Response&&await e.json()}}async function Se(e){return(0,d.isArray)(e)||(e=[e]),await je({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:e}})}const Te=({data:e,mapChartDataToTableData:t=null,dataTableCaption:s,dataTableHeaderLabels:i,isDataTableVisuallyHidden:o=!0})=>e.length!==i.length?(0,y.jsx)("p",{children:(0,r.__)("The number of headers and header labels don't match.","wordpress-seo")}):(0,y.jsx)("div",{className:o?"screen-reader-text":null,children:(0,y.jsxs)("table",{children:[(0,y.jsx)("caption",{children:s}),(0,y.jsx)("thead",{children:(0,y.jsx)("tr",{children:i.map(((e,t)=>(0,y.jsx)("th",{children:e},t)))})}),(0,y.jsx)("tbody",{children:(0,y.jsx)("tr",{children:e.map(((e,s)=>(0,y.jsx)("td",{children:t(e.y)},s)))})})]})});Te.propTypes={data:h().arrayOf(h().shape({x:h().number,y:h().number})).isRequired,mapChartDataToTableData:h().func,dataTableCaption:h().string.isRequired,dataTableHeaderLabels:h().array.isRequired,isDataTableVisuallyHidden:h().bool};const Re=Te,Ce=({data:e,width:t,height:s,fillColor:i=null,strokeColor:r="#000000",strokeWidth:n=1,className:a="",mapChartDataToTableData:l=null,dataTableCaption:c,dataTableHeaderLabels:d,isDataTableVisuallyHidden:p=!0})=>{const u=Math.max(1,Math.max(...e.map((e=>e.x)))),h=Math.max(1,Math.max(...e.map((e=>e.y)))),g=s-n,m=e.map((e=>`${e.x/u*t},${g-e.y/h*g+n}`)).join(" "),f=`0,${g+n} `+m+` ${t},${g+n}`;return(0,y.jsxs)(o.Fragment,{children:[(0,y.jsxs)("svg",{width:t,height:s,viewBox:`0 0 ${t} ${s}`,className:a,role:"img","aria-hidden":"true",focusable:"false",children:[(0,y.jsx)("polygon",{fill:i,points:f}),(0,y.jsx)("polyline",{fill:"none",stroke:r,strokeWidth:n,strokeLinejoin:"round",strokeLinecap:"round",points:m})]}),l&&(0,y.jsx)(Re,{data:e,mapChartDataToTableData:l,dataTableCaption:c,dataTableHeaderLabels:d,isDataTableVisuallyHidden:p})]})};Ce.propTypes={data:h().arrayOf(h().shape({x:h().number,y:h().number})).isRequired,width:h().number.isRequired,height:h().number.isRequired,fillColor:h().string,strokeColor:h().string,strokeWidth:h().number,className:h().string,mapChartDataToTableData:h().func,dataTableCaption:h().string.isRequired,dataTableHeaderLabels:h().array.isRequired,isDataTableVisuallyHidden:h().bool};const Ee=Ce,Ie=()=>(0,y.jsxs)("p",{className:"yoast-wincher-seo-performance-modal__loading-message",children:[(0,r.__)("Tracking the ranking position…","wordpress-seo")," ",(0,y.jsx)(Y.SvgIcon,{icon:"loading-spinner"})]}),Le=m()(Y.SvgIcon)`
	margin-left: 2px;
	flex-shrink: 0;
	rotate: ${e=>e.isImproving?"-90deg":"90deg"};
`,Ae=m().span`
	color: ${e=>e.isImproving?"#69AB56":"#DC3332"};
	font-size: 13px;
	font-weight: 600;
	line-height: 20px;
	margin-right: 2px;
	margin-left: 12px;
`,Fe=m().td`
	padding-right: 0 !important;

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

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

	& > div {
		margin: 0px;
	}
`,Xe=m().th`
	padding-left: 2px !important;
`,Qe=e=>{const t=(0,o.useRef)();return(0,o.useEffect)((()=>{t.current=e})),t.current},Je=(0,d.debounce)((async function(e=null,t=null,s=null,i){return await je({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:e,permalink:s,startAt:t},signal:i})}),500,{leading:!0}),et=({addTrackedKeyphrase:e,isLoggedIn:t=!1,isNewlyAuthenticated:s=!1,keyphrases:i=[],newRequest:n,removeTrackedKeyphrase:a,setRequestFailed:l,setKeyphraseLimitReached:c,setRequestSucceeded:p,setTrackedKeyphrases:u,setHasTrackedAll:h,trackAll:g=!1,trackedKeyphrases:m=null,websiteId:f="",permalink:w,focusKeyphrase:b="",startAt:x=null,selectedKeyphrases:v,onSelectKeyphrases:k})=>{const _=(0,o.useRef)(),j=(0,o.useRef)(),S=(0,o.useRef)(!1),[T,R]=(0,o.useState)([]),C=(0,o.useCallback)((e=>{const t=e.toLowerCase();return m&&!(0,d.isEmpty)(m)&&m.hasOwnProperty(t)?m[t]:null}),[m]),E=(0,o.useMemo)((()=>async()=>{await _e((()=>(j.current&&j.current.abort(),j.current="undefined"==typeof AbortController?null:new AbortController,Je(i,x,w,j.current.signal))),(e=>{p(e),u(e.results)}),(e=>{l(e)}))}),[p,l,u,i,w,x]),I=(0,o.useCallback)((async t=>{const s=(Array.isArray(t)?t:[t]).map((e=>e.toLowerCase()));R((e=>[...e,...s])),await _e((()=>Se(s)),(t=>{p(t),e(t.results),E()}),(e=>{400===e.status&&e.limit&&c(e.limit),l(e)}),201),R((e=>(0,d.without)(e,...s)))}),[p,l,c,e,E]),L=(0,o.useCallback)((async(e,t)=>{e=e.toLowerCase(),R((t=>[...t,e])),await _e((()=>async function(e){return await je({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:e}})}(t)),(t=>{p(t),a(e)}),(e=>{l(e)})),R((t=>(0,d.without)(t,e)))}),[p,a,l]),A=(0,o.useCallback)((async e=>{n(),await I(e)}),[n,I]),F=Qe(w),P=Qe(i),M=Qe(x),q=w&&x;(0,o.useEffect)((()=>{t&&q&&(w!==F||(0,d.difference)(i,P).length||x!==M)&&E()}),[t,w,F,i,P,E,q,x,M]),(0,o.useEffect)((()=>{if(t&&g&&null!==m){const e=i.filter((e=>!C(e)));e.length&&I(e),h()}}),[t,g,m,I,h,C,i]),(0,o.useEffect)((()=>{s&&!S.current&&(E(),S.current=!0)}),[s,E]),(0,o.useEffect)((()=>{if(t&&!(0,d.isEmpty)(m))return(0,d.filter)(m,(e=>(0,d.isEmpty)(e.updated_at))).length>0&&(_.current=setInterval((()=>{E()}),1e4)),()=>{clearInterval(_.current)}}),[t,m,E]);const O=t&&null===m,N=(0,o.useMemo)((()=>(0,d.isEmpty)(m)?[]:Object.values(m).filter((e=>{var t;return!(0,d.isEmpty)(null==e||null===(t=e.position)||void 0===t?void 0:t.history)})).map((e=>e.keyword))),[m]),D=(0,o.useMemo)((()=>v.length>0&&N.length>0&&N.every((e=>v.includes(e)))),[v,N]),U=(0,o.useCallback)((()=>{k(D?[]:N)}),[k,D,N]),W=(0,o.useMemo)((()=>(0,d.orderBy)(i,[e=>Object.values(m||{}).map((e=>e.keyword)).includes(e)],["desc"])),[i,m]);return i&&!(0,d.isEmpty)(i)&&(0,y.jsxs)(o.Fragment,{children:[(0,y.jsx)(Ge,{children:(0,y.jsxs)("table",{className:"yoast yoast-table",children:[(0,y.jsx)("thead",{children:(0,y.jsxs)("tr",{children:[(0,y.jsx)(Ze,{isDisabled:0===N.length,children:(0,y.jsx)(Y.Checkbox,{id:"select-all",onChange:U,checked:D,label:""})}),(0,y.jsx)(Xe,{scope:"col",abbr:(0,r.__)("Keyphrase","wordpress-seo"),children:(0,r.__)("Keyphrase","wordpress-seo")}),(0,y.jsx)("th",{scope:"col",abbr:(0,r.__)("Position","wordpress-seo"),children:(0,r.__)("Position","wordpress-seo")}),(0,y.jsx)("th",{scope:"col",abbr:(0,r.__)("Position over time","wordpress-seo"),children:(0,r.__)("Position over time","wordpress-seo")}),(0,y.jsx)("th",{scope:"col",abbr:(0,r.__)("Last updated","wordpress-seo"),children:(0,r.__)("Last updated","wordpress-seo")}),(0,y.jsx)("th",{scope:"col",abbr:(0,r.__)("Tracking","wordpress-seo"),children:(0,r.__)("Tracking","wordpress-seo")})]})}),(0,y.jsx)("tbody",{children:W.map(((e,s)=>(0,y.jsx)(ze,{keyphrase:e,onTrackKeyphrase:A,onUntrackKeyphrase:L,rowData:C(e),isFocusKeyphrase:e===b.trim().toLowerCase(),websiteId:f,isDisabled:!t,isLoading:O||T.indexOf(e.toLowerCase())>=0,isSelected:v.includes(e),onSelectKeyphrases:k},`trackable-keyphrase-${s}`)))})]})}),(0,y.jsxs)("p",{style:{marginBottom:0,position:"relative"},children:[(0,y.jsx)(Ye,{href:wpseoAdminGlobalL10n["links.wincher.login"],children:(0,r.sprintf)(/* translators: %s expands to Wincher */
(0,r.__)("Get more insights over at %s","wordpress-seo"),"Wincher")}),(0,y.jsx)(Ve,{children:(0,r.__)("* focus keyphrase","wordpress-seo")})]})]})};et.propTypes={addTrackedKeyphrase:h().func.isRequired,isLoggedIn:h().bool,isNewlyAuthenticated:h().bool,keyphrases:h().array,newRequest:h().func.isRequired,removeTrackedKeyphrase:h().func.isRequired,setRequestFailed:h().func.isRequired,setKeyphraseLimitReached:h().func.isRequired,setRequestSucceeded:h().func.isRequired,setTrackedKeyphrases:h().func.isRequired,setHasTrackedAll:h().func.isRequired,trackAll:h().bool,trackedKeyphrases:h().object,websiteId:h().string,permalink:h().string.isRequired,focusKeyphrase:h().string,startAt:h().string,selectedKeyphrases:h().arrayOf(h().string).isRequired,onSelectKeyphrases:h().func.isRequired};const tt=et,st=(0,oe.compose)([(0,t.withSelect)((e=>{const{getWincherWebsiteId:t,getWincherTrackableKeyphrases:s,getWincherLoginStatus:i,getWincherPermalink:o,getFocusKeyphrase:r,isWincherNewlyAuthenticated:n,shouldWincherTrackAll:a}=e("yoast-seo/editor");return{focusKeyphrase:r(),keyphrases:s(),isLoggedIn:i(),trackAll:a(),websiteId:t(),isNewlyAuthenticated:n(),permalink:o()}})),(0,t.withDispatch)((e=>{const{setWincherNewRequest:t,setWincherRequestSucceeded:s,setWincherRequestFailed:i,setWincherSetKeyphraseLimitReached:o,setWincherTrackedKeyphrases:r,setWincherTrackingForKeyphrase:n,setWincherTrackAllKeyphrases:a,unsetWincherTrackingForKeyphrase:l}=e("yoast-seo/editor");return{newRequest:()=>{t()},setRequestSucceeded:e=>{s(e)},setRequestFailed:e=>{i(e)},setKeyphraseLimitReached:e=>{o(e)},addTrackedKeyphrase:e=>{n(e)},removeTrackedKeyphrase:e=>{l(e)},setTrackedKeyphrases:e=>{r(e)},setHasTrackedAll:()=>{a(!1)}}}))])(tt);class it{constructor(e,t={},s={}){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:""},s),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:s}=this.options,i=["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,s,i.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}async messageHandler(e){const{data:t,source:s,origin:i}=e;i===this.origin&&this.popup===s&&(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 ot=()=>(0,y.jsx)(Y.Alert,{type:"info",children:(0,r.sprintf)(/* translators: %s: Expands to "Wincher". */
(0,r.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher")}),rt=()=>(0,y.jsx)(Y.Alert,{type:"success",children:(0,r.sprintf)(/* translators: %s: Expands to "Wincher". */
(0,r.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher")}),nt=()=>(0,y.jsx)(Y.Alert,{type:"info",children:(0,r.sprintf)(/* translators: %s: Expands to "Wincher". */
(0,r.__)("%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")}),at=(0,ce.makeOutboundLink)(),lt=(0,ce.makeOutboundLink)(),ct=()=>{const e=(0,r.sprintf)(/* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */
(0,r.__)("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,y.jsx)("p",{children:S(e,{wincherLink:(0,y.jsx)(at,{href:wpseoAdminGlobalL10n["links.wincher.website"],children:"Wincher"}),wincherReadMoreLink:(0,y.jsx)(lt,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"],children:(0,r.__)("Read more about keyphrase tracking with Wincher","wordpress-seo")})})})},dt=(0,ce.makeOutboundLink)(),pt=({limit:e=10})=>{const t=(0,r.sprintf)(/* translators: %1$d expands to the amount of allowed keyphrases on a free account, %2$s expands to a link to Wincher plans. */
(0,r.__)("You've reached the maximum amount of %1$d keyphrases you can add to your Wincher account. If you wish to add more keyphrases, please %2$s.","wordpress-seo"),e,"<UpdateWincherPlanLink/>");return(0,y.jsx)(Y.Alert,{type:"error",children:S(t,{UpdateWincherPlanLink:(0,y.jsx)(dt,{href:wpseoAdminGlobalL10n["links.wincher.pricing"],children:(0,r.sprintf)(/* translators: %s : Expands to "Wincher". */
(0,r.__)("upgrade your %s plan","wordpress-seo"),"Wincher")})})})};pt.propTypes={limit:h().number};const ut=pt,ht=()=>(0,y.jsx)(Y.Alert,{type:"error",children:(0,r.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo")}),gt=()=>(0,y.jsx)(Y.Alert,{type:"error",children:(0,r.__)("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")}),mt=({onReconnect:e,className:t=""})=>{const s=(0,r.sprintf)(/* translators: %s expands to a link to open the Wincher login popup. */
(0,r.__)("It seems like something went wrong when retrieving your website's data. Please %s and try again.","wordpress-seo"),"<reconnectToWincher/>","Wincher");return(0,y.jsx)(Y.Alert,{type:"error",className:t,children:S(s,{reconnectToWincher:(0,y.jsx)("a",{href:"#",onClick:t=>{t.preventDefault(),e()},children:(0,r.sprintf)(/* translators: %s : Expands to "Wincher". */
(0,r.__)("reconnect to %s","wordpress-seo"),"Wincher")})})})};mt.propTypes={onReconnect:h().func.isRequired,className:h().string};const yt=mt,ft=()=>(0,y.jsx)(Y.Alert,{type:"error",children:(0,r.__)("Something went wrong while tracking the ranking position(s) of your page. Please try again later.","wordpress-seo")}),wt=m().p`
	color: ${V.colors.$color_pink_dark};
	font-size: 14px;
	font-weight: 700;
	margin: 13px 0 10px;
`,bt=m()(Y.SvgIcon)`
	margin-right: 5px;
	vertical-align: middle;
`,xt=m().button`
	position: absolute;
	top: 9px;
	right: 9px;
	border: none;
	background: none;
	cursor: pointer;
`,vt=m().p`
	font-size: 13px;
	font-weight: 500;
	margin: 10px 0 13px;
`,kt=m().div`
	position: relative;
	background: ${e=>e.isTitleShortened?"#f5f7f7":"transparent"};
	border: 1px solid #c7c7c7;
	border-left: 4px solid${V.colors.$color_pink_dark};
	padding: 0 16px;
	margin-bottom: 1.5em;
`,_t=({limit:e,usage:t,isTitleShortened:s=!1,isFreeAccount:i=!1})=>{const o=(0,r.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
   * %2$s expands to the account keywords limit.
   */
(0,r.__)("Your are tracking %1$s out of %2$s keyphrases included in your free account.","wordpress-seo"),t,e),n=(0,r.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
   * %2$s expands to the account keywords limit.
   */
(0,r.__)("Your are tracking %1$s out of %2$s keyphrases included in your account.","wordpress-seo"),t,e),a=i?o:n,l=(0,r.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
   * %2$s expands to the account keywords limit.
   */
(0,r.__)("Keyphrases tracked: %1$s/%2$s","wordpress-seo"),t,e),c=s?l:a;return(0,y.jsxs)(wt,{children:[s&&(0,y.jsx)(bt,{icon:"exclamation-triangle",color:V.colors.$color_pink_dark,size:"14px"}),c]})};_t.propTypes={limit:h().number.isRequired,usage:h().number.isRequired,isTitleShortened:h().bool,isFreeAccount:h().bool};const jt=(0,ce.makeOutboundLink)(),St=({discount:e,months:t})=>{const s=(0,y.jsx)(jt,{href:wpseoAdminGlobalL10n["links.wincher.upgrade"],style:{fontWeight:600},children:(0,r.sprintf)(/* Translators: %s : Expands to "Wincher". */
(0,r.__)("Click here to upgrade your %s plan","wordpress-seo"),"Wincher")});if(!e||!t)return(0,y.jsx)(vt,{children:s});const i=100*e,o=(0,r.sprintf)(
/* Translators: %1$s expands to upgrade account link.
   * %2$s expands to the upgrade discount value.
   * %3$s expands to the upgrade discount duration e.g. 2 months.
   */
(0,r.__)("%1$s and get an exclusive %2$s discount for %3$s month(s).","wordpress-seo"),"<wincherAccountUpgradeLink/>",i+"%",t);return(0,y.jsx)(vt,{children:S(o,{wincherAccountUpgradeLink:s})})};St.propTypes={discount:h().number,months:h().number};const Tt=({onClose:e=null,isTitleShortened:t=!1,trackingInfo:s=null})=>{const i=(()=>{const[e,t]=(0,o.useState)(null);return(0,o.useEffect)((()=>{e||async function(){return await je({path:"yoast/v1/wincher/account/upgrade-campaign",method:"GET"})}().then((e=>t(e)))}),[e]),e})();if(null===s)return null;const{limit:n,usage:a}=s;if(!(n&&a/n>=.8))return null;const l=Boolean(null==i?void 0:i.discount);return(0,y.jsxs)(kt,{isTitleShortened:t,children:[e&&(0,y.jsx)(xt,{type:"button","aria-label":(0,r.__)("Close the upgrade callout","wordpress-seo"),onClick:e,children:(0,y.jsx)(Y.SvgIcon,{icon:"times-circle",color:V.colors.$color_pink_dark,size:"14px"})}),(0,y.jsx)(_t,{...s,isTitleShortened:t,isFreeAccount:l}),(0,y.jsx)(St,{discount:null==i?void 0:i.discount,months:null==i?void 0:i.months})]})};Tt.propTypes={onClose:h().func,isTitleShortened:h().bool,trackingInfo:h().object};const Rt=Tt,Ct=window.yoast["chart.js"],Et="label";function It(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Lt(e,t){e.labels=t}function At(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Et;const i=[];e.datasets=t.map((t=>{const o=e.datasets.find((e=>e[s]===t[s]));return o&&t.data&&!i.includes(o)?(i.push(o),Object.assign(o,t),o):{...t}}))}function Ft(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et;const s={labels:[],datasets:[]};return Lt(s,e.labels),At(s,e.datasets,t),s}function Pt(e,t){const{height:s=150,width:i=300,redraw:o=!1,datasetIdKey:r,type:n,data:a,options:l,plugins:c=[],fallbackContent:d,updateMode:p,...u}=e,h=(0,_.useRef)(null),g=(0,_.useRef)(),m=()=>{h.current&&(g.current=new Ct.Chart(h.current,{type:n,data:Ft(a,r),options:l&&{...l},plugins:c}),It(t,g.current))},y=()=>{It(t,null),g.current&&(g.current.destroy(),g.current=null)};return(0,_.useEffect)((()=>{!o&&g.current&&l&&function(e,t){const s=e.options;s&&t&&Object.assign(s,t)}(g.current,l)}),[o,l]),(0,_.useEffect)((()=>{!o&&g.current&&Lt(g.current.config.data,a.labels)}),[o,a.labels]),(0,_.useEffect)((()=>{!o&&g.current&&a.datasets&&At(g.current.config.data,a.datasets,r)}),[o,a.datasets]),(0,_.useEffect)((()=>{g.current&&(o?(y(),setTimeout(m)):g.current.update(p))}),[o,l,a.labels,a.datasets,p]),(0,_.useEffect)((()=>{g.current&&(y(),setTimeout(m))}),[n]),(0,_.useEffect)((()=>(m(),()=>y())),[]),_.createElement("canvas",Object.assign({ref:h,role:"img",height:s,width:i},u),d)}const Mt=(0,_.forwardRef)(Pt);function qt(e,t){return Ct.Chart.register(t),(0,_.forwardRef)(((t,s)=>_.createElement(Mt,Object.assign({},t,{ref:s,type:e}))))}const Ot=qt("line",Ct.LineController),Nt={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"};Ct._adapters._date.override("function"==typeof xe()?{_id:"moment",formats:function(){return Nt},parse:function(e,t){return"string"==typeof e&&"string"==typeof t?e=xe()(e,t):e instanceof xe()||(e=xe()(e)),e.isValid()?e.valueOf():null},format:function(e,t){return xe()(e).format(t)},add:function(e,t,s){return xe()(e).add(t,s).valueOf()},diff:function(e,t,s){return xe()(e).diff(xe()(t),s)},startOf:function(e,t,s){return e=xe()(e),"isoWeek"===t?(s=Math.trunc(Math.min(Math.max(0,s),6)),e.isoWeekday(s).startOf("day").valueOf()):e.startOf(t).valueOf()},endOf:function(e,t){return xe()(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 Dt=["top","right","bottom","left"];function Ut(e,t,s){const i={};s=s?"-"+s:"";for(let o=0;o<4;o++){const r=Dt[o];i[r]=parseFloat(e[t+"-"+r+s])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}!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){}}(),Ct.Chart.register(Ct.CategoryScale,Ct.LineController,Ct.LineElement,Ct.PointElement,Ct.LinearScale,Ct.TimeScale,Ct.Legend,Ct.Tooltip);const Wt=["#ff983b","#ffa3f7","#3798ff","#ff3b3b","#acce81","#b51751","#3949ab","#26c6da","#ccb800","#de66ff","#4db6ac","#ffab91","#45f5f1","#77f210","#90a4ae","#ffd54f","#006b5e","#8ec7d2","#b1887c","#cc9300"];function $t({datasets:e,isChartShown:t,keyphrases:s}){if(!t)return null;const i=(0,o.useMemo)((()=>Object.fromEntries([...s].sort().map(((e,t)=>[e,Wt[t%Wt.length]])))),[s]),r=e.map((e=>{const t=i[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,y.jsx)(Ot,{height:100,data:{datasets:r},options:{plugins:{legend:{display:!0,position:"bottom",labels:{color:"black",usePointStyle:!0,boxHeight:7,boxWidth:7},onClick:d.noop},tooltip:{enabled:!0,callbacks:{title:e=>xe()(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:31}}}})}Ct.Interaction.modes.xPoint=(e,t,s,i)=>{const o=function(e,t){if("native"in e)return e;const{canvas:s,currentDevicePixelRatio:i}=t,o=(h=s).ownerDocument.defaultView.getComputedStyle(h,null),r="border-box"===o.boxSizing,n=Ut(o,"padding"),a=Ut(o,"border","width"),{x:l,y:c,box:d}=function(e,t){const s=e.touches,i=s&&s.length?s[0]:e,{offsetX:o,offsetY:r}=i;let n,a,l=!1;if(((e,t,s)=>(e>0||t>0)&&(!s||!s.shadowRoot))(o,r,e.target))n=o,a=r;else{const e=t.getBoundingClientRect();n=i.clientX-e.left,a=i.clientY-e.top,l=!0}return{x:n,y:a,box:l}}(e,s),p=n.left+(d&&a.left),u=n.top+(d&&a.top);var h;let{width:g,height:m}=t;return r&&(g-=n.width+a.width,m-=n.height+a.height),{x:Math.round((l-p)/g*s.width/i),y:Math.round((c-u)/m*s.height/i)}}(t,e);let r=[];if(Ct.Interaction.evaluateInteractionItems(e,"x",o,((e,t,s)=>{e.inXRange(o.x,i)&&r.push({element:e,datasetIndex:t,index:s})})),0===r.length)return r;const n=r.reduce(((e,t)=>Math.abs(o.x-e.element.x)<Math.abs(o.x-t.element.x)?e:t)).element.x;return r=r.filter((e=>e.element.x===n)),r.some((e=>Math.abs(e.element.y-o.y)<10))?r:[]},$t.propTypes={datasets:h().arrayOf(h().shape({label:h().string.isRequired,data:h().arrayOf(h().shape({datetime:h().string.isRequired,value:h().number.isRequired})).isRequired,selected:h().bool})).isRequired,isChartShown:h().bool.isRequired,keyphrases:h().array.isRequired};const Bt=({response:e,onLogin:t})=>[401,403,404].includes(e.status)?(0,y.jsx)(yt,{onReconnect:t}):(0,y.jsx)(ft,{});Bt.propTypes={response:h().object.isRequired,onLogin:h().func.isRequired};const Kt=({isSuccess:e,response:t={},allKeyphrasesMissRanking:s,onLogin:i,keyphraseLimitReached:o,limit:r})=>o?(0,y.jsx)(ut,{limit:r}):(0,d.isEmpty)(t)||e?s?(0,y.jsx)(nt,{}):null:(0,y.jsx)(Bt,{response:t,onLogin:i});Kt.propTypes={isSuccess:h().bool.isRequired,allKeyphrasesMissRanking:h().bool.isRequired,response:h().object,onLogin:h().func.isRequired,keyphraseLimitReached:h().bool.isRequired,limit:h().number.isRequired};let Ht=null;const zt=async({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:i,addTrackedKeyphrase:o,setKeyphraseLimitReached:r})=>{if(Ht&&!Ht.isClosed())return void Ht.focus();const{url:n}=await async function(){return await je({path:"yoast/v1/wincher/authorization-url",method:"GET"})}();Ht=new it(n,{success:{type:"wincher:oauth:success",callback:n=>(async({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:i,addTrackedKeyphrase:o,setKeyphraseLimitReached:r},n)=>{await _e((()=>async function(e){const{code:t,websiteId:s}=e;return await je({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:t,websiteId:s}})}(n)),(async a=>{e(!0,!0,n.websiteId.toString()),t(a);const l=(Array.isArray(i)?i:[i]).map((e=>e.toLowerCase()));await _e((()=>Se(l)),(e=>{t(e),o(e.results)}),(e=>{400===e.status&&e.limit&&r(e.limit),s(e)}),201);const c=Ht.getPopup();c&&c.close()}),(async e=>s(e)))})({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:i,addTrackedKeyphrase:o,setKeyphraseLimitReached:r},n)},error:{type:"wincher:oauth:error",callback:()=>e(!1,!1)}},{title:"Wincher_login",width:500,height:700}),Ht.createPopup()},Yt=e=>e.isLoggedIn?null:(0,y.jsx)("p",{children:(0,y.jsx)(Y.NewButton,{onClick:e.onLogin,variant:"primary",children:(0,r.sprintf)(/* translators: %s expands to Wincher */
(0,r.__)("Connect with %s","wordpress-seo"),"Wincher")})});Yt.propTypes={isLoggedIn:h().bool.isRequired,onLogin:h().func.isRequired};const Vt=m().div`
	p {
		margin: 1em 0;
	}
`,Gt=m().div`
	${e=>e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"};
`,Zt=m().div`
	font-weight: var(--yoast-font-weight-bold);
	color: var(--yoast-color-label);
	font-size: var(--yoast-font-size-default);
`,Xt=m().div.attrs({className:"yoast-field-group"})`
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
`,Qt=m().div`
	margin: 8px 0;
`,Jt=xe().utc().startOf("day"),es=[{name:(0,r.__)("Last day","wordpress-seo"),value:xe()(Jt).subtract(1,"days").format(),defaultIndex:1},{name:(0,r.__)("Last week","wordpress-seo"),value:xe()(Jt).subtract(1,"week").format(),defaultIndex:2},{name:(0,r.__)("Last month","wordpress-seo"),value:xe()(Jt).subtract(1,"month").format(),defaultIndex:3},{name:(0,r.__)("Last year","wordpress-seo"),value:xe()(Jt).subtract(1,"year").format(),defaultIndex:0}],ts=({onSelect:e,selected:t=null,options:s,isLoggedIn:i})=>i?s.length<1?null:(0,y.jsx)("select",{className:"components-select-control__input",id:"wincher-period-picker",value:(null==t?void 0:t.value)||s[0].value,onChange:e,children:s.map((e=>(0,y.jsx)("option",{value:e.value,children:e.name},e.name)))}):null;ts.propTypes={onSelect:h().func.isRequired,selected:h().object,options:h().array.isRequired,isLoggedIn:h().bool.isRequired};const ss=({trackedKeyphrases:e=null,isLoggedIn:t,keyphrases:s,shouldTrackAll:i,permalink:n,historyDaysLimit:a=0})=>{if(!n&&t)return(0,y.jsx)(gt,{});if(0===s.length)return(0,y.jsx)(ht,{});const l=xe()(Jt).subtract(a,"days"),c=es.filter((e=>xe()(e.value).isSameOrAfter(l))),p=(0,d.orderBy)(c,(e=>e.defaultIndex),"desc")[0],[u,h]=(0,o.useState)(p),[g,m]=(0,o.useState)([]),f=g.length>0,w=(0,oe.usePrevious)(e);(0,o.useEffect)((()=>{if(!(0,d.isEmpty)(e)&&(0,d.difference)(Object.keys(e),Object.keys(w||[])).length){const t=Object.values(e).map((e=>e.keyword));m(t)}}),[e,w]),(0,o.useEffect)((()=>{h(p)}),[null==p?void 0:p.name]);const b=(0,o.useCallback)((e=>{const t=es.find((t=>t.value===e.target.value));t&&h(t)}),[h]),x=(0,o.useMemo)((()=>(0,d.isEmpty)(g)||(0,d.isEmpty)(e)?[]:Object.values(e).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:g.includes(e.keyword)&&!(0,d.isEmpty)(null===(t=e.position)||void 0===t?void 0:t.history)}}))),[g,e]);return(0,y.jsxs)(Gt,{isDisabled:!t,children:[(0,y.jsx)("p",{children:(0,r.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")}),t&&i&&(0,y.jsx)(ot,{}),(0,y.jsx)(Xt,{children:(0,y.jsx)(ts,{selected:u,onSelect:b,options:c,isLoggedIn:t})}),(0,y.jsx)(Qt,{children:(0,y.jsx)($t,{isChartShown:f,datasets:x,keyphrases:s})}),(0,y.jsx)(st,{startAt:null==u?void 0:u.value,selectedKeyphrases:g,onSelectKeyphrases:m,trackedKeyphrases:e})]})};function is({trackedKeyphrases:e=null,addTrackedKeyphrase:t,isLoggedIn:s=!1,isNewlyAuthenticated:i=!1,keyphrases:n=[],response:a={},shouldTrackAll:l=!1,permalink:c="",allKeyphrasesMissRanking:d,isSuccess:p,keyphraseLimitReached:u,limit:h,setRequestSucceeded:g,setRequestFailed:m,setKeyphraseLimitReached:f,onAuthentication:w}){const b=(0,o.useCallback)((()=>{zt({onAuthentication:w,setRequestSucceeded:g,setRequestFailed:m,keyphrases:n,addTrackedKeyphrase:t,setKeyphraseLimitReached:f})}),[zt,w,g,m,n,t,f]),x=(e=>{const[t,s]=(0,o.useState)(null);return(0,o.useEffect)((()=>{e&&!t&&async function(){return await je({path:"yoast/v1/wincher/account/limit",method:"GET"})}().then((e=>s(e)))}),[t]),t})(s);return(0,y.jsxs)(Vt,{children:[i&&(0,y.jsx)(rt,{}),s&&(0,y.jsx)(Rt,{trackingInfo:x}),(0,y.jsxs)(Zt,{children:[(0,r.__)("SEO performance","wordpress-seo"),(0,y.jsx)(Y.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"]
/* translators: Hidden accessibility text. */,linkText:(0,r.__)("Learn more about the SEO performance feature.","wordpress-seo")})]}),(0,y.jsx)(ct,{}),(0,y.jsx)(Yt,{isLoggedIn:s,onLogin:b}),(0,y.jsx)(Kt,{isSuccess:p,response:a,allKeyphrasesMissRanking:d,keyphraseLimitReached:u,limit:h,onLogin:b}),(0,y.jsx)(ss,{trackedKeyphrases:e,isLoggedIn:s,keyphrases:n,shouldTrackAll:l,permalink:c,historyDaysLimit:(null==x?void 0:x.historyDays)||31})]})}ss.propTypes={trackedKeyphrases:h().object,keyphrases:h().array.isRequired,isLoggedIn:h().bool.isRequired,shouldTrackAll:h().bool.isRequired,permalink:h().string.isRequired,historyDaysLimit:h().number},is.propTypes={trackedKeyphrases:h().object,addTrackedKeyphrase:h().func.isRequired,isLoggedIn:h().bool,isNewlyAuthenticated:h().bool,keyphrases:h().array,response:h().object,shouldTrackAll:h().bool,permalink:h().string,allKeyphrasesMissRanking:h().bool.isRequired,isSuccess:h().bool.isRequired,keyphraseLimitReached:h().bool.isRequired,limit:h().number.isRequired,setRequestSucceeded:h().func.isRequired,setRequestFailed:h().func.isRequired,setKeyphraseLimitReached:h().func.isRequired,onAuthentication:h().func.isRequired};const os=(0,oe.compose)([(0,t.withSelect)((e=>{const{isWincherNewlyAuthenticated:t,getWincherKeyphraseLimitReached:s,getWincherLimit:i,getWincherLoginStatus:o,getWincherRequestIsSuccess:r,getWincherRequestResponse:n,getWincherTrackableKeyphrases:a,getWincherTrackedKeyphrases:l,getWincherAllKeyphrasesMissRanking:c,getWincherPermalink:d,shouldWincherAutomaticallyTrackAll:p}=e("yoast-seo/editor");return{keyphrases:a(),trackedKeyphrases:l(),allKeyphrasesMissRanking:c(),isLoggedIn:o(),isNewlyAuthenticated:t(),isSuccess:r(),keyphraseLimitReached:s(),limit:i(),response:n(),shouldTrackAll:p(),permalink:d()}})),(0,t.withDispatch)((e=>{const{setWincherWebsiteId:t,setWincherRequestSucceeded:s,setWincherRequestFailed:i,setWincherTrackingForKeyphrase:o,setWincherSetKeyphraseLimitReached:r,setWincherLoginStatus:n}=e("yoast-seo/editor");return{setRequestSucceeded:e=>{s(e)},setRequestFailed:e=>{i(e)},addTrackedKeyphrase:e=>{o(e)},setKeyphraseLimitReached:e=>{r(e)},onAuthentication:(e,s,i)=>{t(i),n(e,s)}}}))])(is),rs=m()(re)`
	width: 18px;
	height: 18px;
	margin: 3px;
`;function ns({keyphrases:e,onNoKeyphraseSet:t,onOpen:s,location:i}){if(!e.length){let e=document.querySelector("#focus-keyword-input-metabox");return e||(e=document.querySelector("#focus-keyword-input-sidebar")),e.focus(),void t()}s(i)}function as({location:e="",whichModalOpen:t="none",shouldCloseOnClickOutside:s=!0,keyphrases:i,onNoKeyphraseSet:n,onOpen:a,onClose:l}){const c=(0,o.useCallback)((()=>{ns({keyphrases:i,onNoKeyphraseSet:n,onOpen:a,location:e})}),[ns,i,n,a,e]),d=(0,r.__)("Track SEO performance","wordpress-seo"),p=ne();return(0,y.jsxs)(o.Fragment,{children:[t===e&&(0,y.jsx)(ue,{title:d,onRequestClose:l,icon:(0,y.jsx)(ye,{}),additionalClassName:"yoast-wincher-seo-performance-modal yoast-gutenberg-modal__no-padding",shouldCloseOnClickOutside:s,children:(0,y.jsx)(de,{className:"yoast-gutenberg-modal__content yoast-wincher-seo-performance-modal__content",children:(0,y.jsx)(os,{})})}),"sidebar"===e&&(0,y.jsx)(we,{id:`wincher-open-button-${e}`,title:d,SuffixHeroIcon:(0,y.jsx)(rs,{className:"yst-text-slate-500",...p}),onClick:c}),"metabox"===e&&(0,y.jsx)("div",{className:"yst-root",children:(0,y.jsxs)(le,{id:`wincher-open-button-${e}`,onClick:c,children:[(0,y.jsx)(le.Text,{children:d}),(0,y.jsx)(re,{className:"yst-h-5 yst-w-5 yst-text-slate-500",...p})]})})]})}as.propTypes={location:h().string,whichModalOpen:h().oneOf(["none","metabox","sidebar","postpublish"]),shouldCloseOnClickOutside:h().bool,keyphrases:h().array.isRequired,onNoKeyphraseSet:h().func.isRequired,onOpen:h().func.isRequired,onClose:h().func.isRequired};const ls=(0,oe.compose)([(0,t.withSelect)((e=>{const{getWincherModalOpen:t,getWincherTrackableKeyphrases:s}=e("yoast-seo/editor");return{keyphrases:s(),whichModalOpen:t()}})),(0,t.withDispatch)((e=>{const{setWincherOpenModal:t,setWincherDismissModal:s,setWincherNoKeyphrase:i}=e("yoast-seo/editor");return{onOpen:e=>{t(e)},onClose:()=>{s()},onNoKeyphraseSet:()=>{i()}}}))])(as),cs=window.yoast.externals.components;function ds(){return(0,oe.createHigherOrderComponent)((function(e){return(0,oe.pure)((function(t){const s=(0,o.useContext)(l.LocationContext);return(0,o.createElement)(e,{...t,location:s})}))}),"withLocation")}const ps=(0,oe.compose)([(0,t.withSelect)((e=>{const{isCornerstoneContent:t}=e("yoast-seo/editor");return{isCornerstone:t(),learnMoreUrl:wpseoAdminL10n["shortlinks.cornerstone_content_info"]}})),(0,t.withDispatch)((e=>{const{toggleCornerstoneContent:t}=e("yoast-seo/editor");return{onChange:t}})),ds()])(cs.CollapsibleCornerstone),us=window.yoast.searchMetadataPreviews,hs=m()(Y.StyledSection)`
	&${Y.StyledSectionBase} {
		padding: 0;

		& ${Y.StyledHeading} {
			${(0,ce.getDirectionalStyle)("padding-left","padding-right")}: 20px;
			margin-left: ${(0,ce.getDirectionalStyle)("0","20px")};
		}
	}
`,gs=({children:e=null,title:t="",icon:s="",hasPaperStyle:i=!0,shoppingData:o=null})=>(0,y.jsx)(hs,{headingLevel:3,headingText:t,headingIcon:s,headingIconColor:"#555",hasPaperStyle:i,shoppingData:o,children:e});gs.propTypes={children:h().element,title:h().string,icon:h().string,hasPaperStyle:h().bool,shoppingData:h().object};const ms=gs,ys=window.wp.sanitize,fs="SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLE";function ws(e,t,s="",i=!1){const o="string"==typeof t?(0,ce.decodeHTML)(t):t;return{type:fs,name:e,value:o,label:s,hidden:i}}function bs(e){return e.charAt(0).toUpperCase()+e.slice(1)}const{stripHTMLTags:xs}=ce.strings,vs=["slug","content","contentImage","snippetPreviewImageURL"];function ks(e,t="_"){return e.replace(/\s/g,t)}function _s(e,t=156){return(e=(e=(0,ys.stripTags)(e)).trim()).length<=t||(e=e.substring(0,t),/\s/.test(e)&&(e=e.substring(0,e.lastIndexOf(" ")))),e}const js=(0,d.memoize)(((e,t)=>0===e?d.noop:(0,d.debounce)((s=>t(s,e)),500))),Ss=({link:e,text:t})=>(0,y.jsxs)(v.Root,{children:[(0,y.jsx)("p",{children:t}),(0,y.jsxs)(v.Button,{href:e,as:"a",className:"yst-gap-2 yst-mb-5 yst-mt-2",variant:"upsell",target:"_blank",rel:"noopener",children:[(0,y.jsx)(T,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"}),(0,r.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */
(0,r.__)("Unlock with %1$s","wordpress-seo"),"Yoast WooCommerce SEO")]})]});Ss.propTypes={link:h().string.isRequired,text:h().string.isRequired};const Ts=Ss,Rs=function(e,t){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)),function(e){const t=(0,d.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!(0,d.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){const t=(0,d.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],d.identity);return{url:e.url,title:xs(t(e.title)),description:xs(t(e.description)),filteredSEOTitle:e.filteredSEOTitle?xs(t(e.filteredSEOTitle)):""}}(e);const s=t._applyModifications.bind(t);return{url:e.url,title:xs(s("data_page_title",e.title)),description:xs(s("data_meta_desc",e.description)),filteredSEOTitle:e.filteredSEOTitle?xs(s("data_page_title",e.filteredSEOTitle)):""}}(e)},Cs=(0,oe.compose)([(0,t.withSelect)((function(e){const{getBaseUrlFromSettings:t,getDateFromSettings:s,getFocusKeyphrase:i,getRecommendedReplaceVars:o,getReplaceVars:r,getShoppingData:n,getSiteIconUrlFromSettings:a,getSnippetEditorData:l,getSnippetEditorMode:c,getSnippetEditorPreviewImageUrl:d,getSnippetEditorWordsToHighlight:p,isCornerstoneContent:u,getIsTerm:h,getContentLocale:g,getSiteName:m}=e("yoast-seo/editor"),y=r();return y.forEach((e=>{""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(e.value="%%"+e.name+"%%")})),{baseUrl:t(),data:l(),date:s(),faviconSrc:a(),keyword:i(),mobileImageSrc:d(),mode:c(),recommendedReplacementVariables:o(),replacementVariables:y,shoppingData:n(),wordsToHighlight:p(),isCornerstone:u(),isTaxonomy:h(),locale:g(),siteName:m()}})),(0,t.withDispatch)((function(e,t,{select:s}){const{updateData:i,switchMode:o,updateAnalysisData:r,findCustomFields:n}=e("yoast-seo/editor"),a=e("core/editor"),l=s("yoast-seo/editor").getPostId();return{onChange:(e,t)=>{switch(e){case"mode":o(t);break;case"slug":i({slug:t}),a&&a.editPost({slug:t});break;default:i({[e]:t})}},onChangeAnalysisData:r,onReplacementVariableSearchChange:js(l,n)}}))])((e=>{const s=(0,t.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/product-google-preview-metabox")),[]),i=(0,t.useSelect)((e=>e("yoast-seo/editor").getIsWooSeoUpsell()),[]),o=(0,r.__)("Want an enhanced Google preview of how your WooCommerce products look in the search results?","wordpress-seo");return(0,y.jsx)(l.LocationConsumer,{children:t=>(0,y.jsx)(ms,{icon:"eye",hasPaperStyle:e.hasPaperStyle,children:(0,y.jsxs)(y.Fragment,{children:[i&&(0,y.jsx)(Ts,{link:s,text:o}),(0,y.jsx)(us.SnippetEditor,{...e,descriptionPlaceholder:(0,r.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:Rs,showCloseButton:!1,idSuffix:t})]})})})})),Es=(0,t.withSelect)((e=>{const{getWarningMessage:t}=e("yoast-seo/editor");return{message:t()}}))(Y.Warning),Is=window.yoast.featureFlag,Ls=m()(Y.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);
	}

`,As=e=>(0,y.jsx)(Ls,{hasPadding:!0,hasSeparator:!0,...e}),Fs=()=>{const e=(0,t.useSelect)((e=>e("yoast-seo/editor").getEstimatedReadingTime()),[]),s=(0,o.useMemo)((()=>(0,d.get)(window,"wpseoAdminL10n.shortlinks-insights-estimated_reading_time","")),[]);return(0,y.jsx)(Y.InsightsCard,{amount:e,unit:(0,r._n)("minute","minutes",e,"wordpress-seo"),title:(0,r.__)("Reading time","wordpress-seo"),linkTo:s
/* translators: Hidden accessibility text. */,linkText:(0,r.__)("Learn more about reading time","wordpress-seo")})},Ps=(0,ce.makeOutboundLink)();function Ms(e,t){return-1===e?(0,r.__)("Your text should be slightly longer to calculate your Flesch reading ease score.","wordpress-seo"):(0,r.sprintf)(
/* Translators: %1$s expands to the numeric Flesch reading ease score,
  %2$s expands to the easiness of reading (e.g. 'easy' or 'very difficult') */
(0,r.__)("The copy scores %1$s in the test, which is considered %2$s to read.","wordpress-seo"),e,function(e){switch(e){case G.DIFFICULTY.NO_DATA:return(0,r.__)("no data","wordpress-seo");case G.DIFFICULTY.VERY_EASY:return(0,r.__)("very easy","wordpress-seo");case G.DIFFICULTY.EASY:return(0,r.__)("easy","wordpress-seo");case G.DIFFICULTY.FAIRLY_EASY:return(0,r.__)("fairly easy","wordpress-seo");case G.DIFFICULTY.OKAY:return(0,r.__)("okay","wordpress-seo");case G.DIFFICULTY.FAIRLY_DIFFICULT:return(0,r.__)("fairly difficult","wordpress-seo");case G.DIFFICULTY.DIFFICULT:return(0,r.__)("difficult","wordpress-seo");case G.DIFFICULTY.VERY_DIFFICULT:return(0,r.__)("very difficult","wordpress-seo")}}(t))}const qs=()=>{let e=(0,t.useSelect)((e=>e("yoast-seo/editor").getFleschReadingEaseScore()),[]);const s=(0,o.useMemo)((()=>(0,d.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease","")),[]),i=(0,t.useSelect)((e=>e("yoast-seo/editor").getFleschReadingEaseDifficulty()),[e]),n=(0,o.useMemo)((()=>{const t=(0,d.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease_article","");return function(e,t,s){const i=function(e){switch(e){case G.DIFFICULTY.FAIRLY_DIFFICULT:case G.DIFFICULTY.DIFFICULT:case G.DIFFICULTY.VERY_DIFFICULT:return(0,r.__)("Try to make shorter sentences, using less difficult words to improve readability","wordpress-seo");case G.DIFFICULTY.NO_DATA:return(0,r.__)("Continue writing to get insight into the readability of your text!","wordpress-seo");default:return(0,r.__)("Good job!","wordpress-seo")}}(t);return(0,y.jsxs)("span",{children:[Ms(e,t)," ",t>=G.DIFFICULTY.FAIRLY_DIFFICULT?(0,y.jsx)(Ps,{href:s,children:i+"."}):i]})}(e,i,t)}),[e,i]);return-1===e&&(e="?"),(0,y.jsx)(Y.InsightsCard,{amount:e,unit:(0,r.__)("out of 100","wordpress-seo"),title:(0,r.__)("Flesch reading ease","wordpress-seo"),linkTo:s
/* translators: Hidden accessibility text. */,linkText:(0,r.__)("Learn more about Flesch reading ease","wordpress-seo"),description:n})},Os=({data:e=[],itemScreenReaderText:t="",className:s="",...i})=>{const n=(0,o.useMemo)((()=>{var t,s;return null!==(t=null===(s=(0,d.maxBy)(e,"number"))||void 0===s?void 0:s.number)&&void 0!==t?t:0}),[e]);return(0,y.jsx)("ul",{className:B()("yoast-data-model",s),...i,children:e.map((({name:e,number:s})=>(0,y.jsxs)("li",{style:{"--yoast-width":s/n*100+"%"},children:[e,(0,y.jsx)("span",{children:s}),t&&(0,y.jsx)("span",{className:"screen-reader-text",children:(0,r.sprintf)(t,s)})]},`${e}_dataItem`)))})};Os.propTypes={data:h().arrayOf(h().shape({name:h().string.isRequired,number:h().number.isRequired})),itemScreenReaderText:h().string,className:h().string};const Ns=Os,Ds=window.wp.url,Us=(0,ce.makeOutboundLink)(),Ws=({location:e})=>{const s=(0,t.useSelect)((e=>{var t,s;return null===(t=null===(s=e("yoast-seo-premium/editor"))||void 0===s?void 0:s.getPreference("isProminentWordsAvailable",!1))||void 0===t||t}),[]),i=(0,t.useSelect)((e=>e("yoast-seo/editor").getPreference("shouldUpsell",!1)),[]),n=(0,o.useMemo)((()=>(0,d.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${e}-prominent_words`,"")),[e]),a=(0,o.useMemo)((()=>{const e=(0,d.get)(window,"wpseoAdminL10n.shortlinks-insights-keyword_research_link","");return S((0,r.sprintf)(
// translators: %1$s and %2$s are replaced by opening and closing <a> tags.
(0,r.__)("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,y.jsx)(Us,{href:e})})}),[]),c=(0,o.useMemo)((()=>S((0,r.sprintf)(
// translators: %1$s expands to a starting `b` tag, %1$s expands to a closing `b` tag and %3$s expands to `Yoast SEO Premium`.
(0,r.__)("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,y.jsx)("b",{})})),[]),p=(0,t.useSelect)((e=>{var t,s;return null!==(t=null===(s=e("yoast-seo-premium/editor"))||void 0===s?void 0:s.getProminentWords())&&void 0!==t?t:[]}),[]),u=(0,o.useMemo)((()=>{const e=(0,r.sprintf)(
// translators: %1$s expands to Yoast SEO Premium.
(0,r.__)("Get %s to enjoy the benefits of prominent words","wordpress-seo"),"Yoast SEO Premium").split(/\s+/);return e.map(((t,s)=>({name:t,number:e.length-s})))}),[]),h=(0,o.useMemo)((()=>i?u:p.map((({word:e,occurrence:t})=>({name:e,number:t})))),[p,u]);if(!s)return null;const{locationContext:g}=(0,l.useRootContext)();return(0,y.jsxs)("div",{className:"yoast-prominent-words",children:[(0,y.jsx)("div",{className:"yoast-field-group__title",children:(0,y.jsx)("b",{children:(0,r.__)("Prominent words","wordpress-seo")})}),!i&&(0,y.jsx)("p",{children:0===h.length?(0,r.__)("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,r.__)("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")}),i&&(0,y.jsx)("p",{children:c}),i&&(0,y.jsxs)(Us,{href:(0,Ds.addQueryArgs)(n,{context:g}),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",className:"yoast-button yoast-button-upsell",children:[(0,r.sprintf)(
// translators: %s expands to `Premium` (part of add-on name).
(0,r.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,y.jsx)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})]}),(0,y.jsx)("p",{children:a}),(0,y.jsx)(Ns,{data:h,itemScreenReaderText:/* translators: Hidden accessibility text; %d expands to the number of occurrences. */
(0,r.__)("%d occurrences","wordpress-seo"),"aria-label":(0,r.__)("Prominent words","wordpress-seo"),className:i?"yoast-data-model--upsell":null})]})};Ws.propTypes={location:h().string.isRequired};const $s=Ws,Bs=()=>{const e=(0,t.useSelect)((e=>e("yoast-seo/editor").getTextLength()),[]),s=(0,o.useMemo)((()=>(0,d.get)(window,"wpseoAdminL10n.shortlinks-insights-word_count","")),[]);let i=(0,r._n)("word","words",e.count,"wordpress-seo"),n=(0,r.__)("Word count","wordpress-seo"),a=(0,r.__)("Learn more about word count","wordpress-seo");return"character"===e.unit&&(i=(0,r._n)("character","characters",e.count,"wordpress-seo"),n=(0,r.__)("Character count","wordpress-seo"),
/* translators: Hidden accessibility text. */
a=(0,r.__)("Learn more about character count","wordpress-seo")),(0,y.jsx)(Y.InsightsCard,{amount:e.count,unit:i,title:n,linkTo:s,linkText:a})},Ks=(0,ce.makeOutboundLink)(),Hs=({location:e})=>{const t=(0,o.useMemo)((()=>(0,d.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${e}-text_formality`,"")),[e]),s=(0,o.useMemo)((()=>S((0,r.sprintf)(
// Translators: %1$s expands to a starting `b` tag, %2$s expands to a closing `b` tag and %3$s expands to `Yoast SEO Premium`.
(0,r.__)("%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,y.jsx)("b",{})})),[]);return(0,y.jsx)(o.Fragment,{children:(0,y.jsxs)("div",{children:[(0,y.jsx)("p",{children:s}),(0,y.jsxs)(Ks,{href:t,className:"yoast-button yoast-button-upsell",children:[(0,r.sprintf)(
// Translators: %s expands to `Premium` (part of add-on name).
(0,r.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,y.jsx)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})]})]})})};Hs.propTypes={location:h().string.isRequired};const zs=Hs,Ys=({location:e,name:s})=>{const i=(0,t.useSelect)((e=>e("yoast-seo/editor").isFormalitySupported()),[]),o=p().isPremium,n=o?(0,d.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_premium",""):(0,d.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_free",""),a=(0,r.__)("Read more about text formality.","wordpress-seo");return i?(0,y.jsxs)("div",{className:"yoast-text-formality",children:[(0,y.jsxs)("div",{className:"yoast-field-group__title",children:[(0,y.jsx)("b",{children:(0,r.__)("Text formality","wordpress-seo")}),(0,y.jsx)(Y.HelpIcon,{linkTo:n,linkText:a})]}),o?(0,y.jsx)(x.Slot,{name:s}):(0,y.jsx)(zs,{location:e})]}):null};Ys.propTypes={location:h().string.isRequired,name:h().string.isRequired};const Vs=Ys,Gs=({location:e="metabox"})=>{const s=(0,t.useSelect)((e=>e("yoast-seo/editor").isFleschReadingEaseAvailable()),[]);return(0,y.jsxs)(As,{title:(0,r.__)("Insights","wordpress-seo"),id:`yoast-insights-collapsible-${e}`,className:"yoast-insights",children:[(0,y.jsx)($s,{location:e}),(0,y.jsxs)("div",{children:[s&&(0,y.jsx)("div",{className:"yoast-insights-row",children:(0,y.jsx)(qs,{})}),(0,y.jsxs)("div",{className:"yoast-insights-row yoast-insights-row--columns",children:[(0,y.jsx)(Fs,{}),(0,y.jsx)(Bs,{})]}),(0,Is.isFeatureEnabled)("TEXT_FORMALITY")&&(0,y.jsx)(Vs,{location:e,name:"YoastTextFormalityMetabox"})]})]})};Gs.propTypes={location:h().string};const Zs=Gs,Xs=_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.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"}))})),Qs=_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{d:"M3 1a1 1 0 000 2h1.22l.305 1.222a.997.997 0 00.01.042l1.358 5.43-.893.892C3.74 11.846 4.632 14 6.414 14H15a1 1 0 000-2H6.414l1-1H14a1 1 0 00.894-.553l3-6A1 1 0 0017 3H6.28l-.31-1.243A1 1 0 005 1H3zM16 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM6.5 18a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"}))})),Js=({isOpen:e,onClose:s,id:i,upsellLink:n,title:a="",description:l="",benefits:c=[],note:d="",ctbId:p="",modalTitle:u})=>{const{isBlackFriday:h,isWooCommerceActive:g,isProductEntity:m,isWooSEOActive:f}=(0,t.useSelect)((e=>{const t=e("yoast-seo/editor");return{isProductEntity:t.getIsProductEntity(),isWooCommerceActive:t.getIsWooCommerceActive(),isBlackFriday:t.isPromotionActive("black-friday-promotion"),isWooSEOActive:t.getIsWooSeoActive()}}),[]),w=(0,o.useMemo)((()=>g&&m),[g,m]),b=(0,o.useRef)(null);return(0,y.jsx)(v.Modal,{isOpen:e,onClose:s,id:i,initialFocus:b,children:(0,y.jsx)(v.Modal.Panel,{className:"yst-max-w-md yst-p-0",hasCloseButton:!1,children:(0,y.jsxs)(v.Modal.Container,{children:[(0,y.jsxs)(v.Modal.Container.Header,{className:"yst-p-6 yst-border-b-slate-200 yst-border-b yst-flex yst-justify-start yst-gap-3 yst-items-center",children:[w?(0,y.jsx)(Qs,{className:"yst-text-woo-light yst-w-6 yst-h-6 yst-scale-x-[-1]"}):(0,y.jsx)(ye,{className:"yst-fill-primary-500 yst-w-5 yst-h-5"}),(0,y.jsx)(v.Modal.Title,{as:"h3",className:B()(w?"yst-text-woo-light":"yst-text-primary-500","yst-text-base yst-font-normal"),children:u}),(0,y.jsx)(v.Modal.CloseButton,{className:"yst-top-2",onClick:s,screenReaderText:(0,r.__)("Close modal","wordpress-seo")})]}),(0,y.jsxs)(v.Modal.Container.Content,{className:"yst-p-0",children:[h&&(0,y.jsx)("div",{className:"yst-flex yst-font-semibold 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",children:(0,y.jsx)("div",{className:"yst-mx-auto",children:(0,r.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})}),(0,y.jsxs)("div",{className:"yst-py-6 yst-px-12",children:[(0,y.jsx)(v.Title,{as:"h3",className:"yst-mb-1 yst-leading-5 yst-text-sm yst-font-medium yst-text-slate-800",children:a}),(0,y.jsx)("p",{className:"yst-mb-2",children:l}),Array.isArray(c)&&c.length>0&&(0,y.jsx)("ul",{className:"yst-my-2",children:c.map(((e,t)=>(0,y.jsxs)("li",{className:"yst-flex yst-gap-1 yst-mb-2",children:[(0,y.jsx)(W,{className:"yst-mr-1 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),(0,y.jsx)("p",{className:"yst-text-slate-600",children:e})]},`${i}-upsell-benefit-${t}`)))}),"function"==typeof c&&c(),(0,y.jsxs)("div",{className:"yst-text-center",children:[(0,y.jsxs)(v.Button,{as:"a",variant:"upsell",className:"yst-my-2 yst-gap-1.5 yst-w-full",href:n,target:"_blank","data-action":"load-nfd-ctb","data-ctb-id":p,ref:b,children:[(0,y.jsx)(T,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"}),(0,r.sprintf)(/* translators: %s expands to 'Yoast SEO Premium' or 'Yoast Woocommerce SEO'. */
(0,r.__)("Explore %s","wordpress-seo"),w&&!f?"Yoast WooCommerce SEO":"Yoast SEO Premium"),(0,y.jsx)("span",{className:"yst-sr-only",children:(0,r.__)("Opens in a new tab","wordpress-seo")})]}),(0,y.jsx)("div",{className:"yst-italic yst-text-slate-500 yst-mt-1",children:d})]})]})]})]})})})},ei=()=>{const[e,,,t,s]=(0,v.useToggleState)(!1),{locationContext:i}=(0,l.useRootContext)(),o=(0,v.useSvgAria)(),n=i.includes("sidebar"),a=i.includes("metabox"),c=n?"sidebar":"metabox",d=wpseoAdminL10n[n?"shortlinks.upsell.sidebar.internal_linking_suggestions":"shortlinks.upsell.metabox.internal_linking_suggestions"];return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Js,{isOpen:e,onClose:s,id:`yoast-internal-linking-suggestions-upsell-${c}`,upsellLink:(0,Ds.addQueryArgs)(d,{context:i}),modalTitle:(0,r.__)("Add smarter internal links with Premium","wordpress-seo"),title:(0,r.__)("Connect related content without the guesswork","wordpress-seo"),description:S((0,r.sprintf)(/* translators: %s expands to be tag. */
(0,r.__)("Optimize for up to 5 keyphrases to shape your content around different themes, audiences, and angles. %sScans your content to:","wordpress-seo"),"<br />"),{br:(0,y.jsx)("br",{})}),benefits:[(0,r.__)("Suggest internal links based on your content’s main topics","wordpress-seo"),(0,r.__)("Build relevant internal links faster","wordpress-seo"),(0,r.__)("Strengthen your site’s structure","wordpress-seo"),(0,r.__)("Keep visitors exploring longer","wordpress-seo")],note:(0,r.__)("Upgrade to link your content with ease","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"}),n&&(0,y.jsx)(we,{id:"yoast-internal-linking-suggestions-sidebar-modal-open-button",title:(0,r.__)("Internal linking suggestions","wordpress-seo"),onClick:t,children:(0,y.jsx)("div",{className:"yst-root",children:(0,y.jsx)(v.Badge,{size:"small",variant:"upsell",children:(0,y.jsx)(Xs,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...o})})})}),a&&(0,y.jsx)("div",{className:"yst-root",children:(0,y.jsxs)(le,{id:"yoast-internal-linking-suggestions-metabox-modal-open-button",onClick:t,children:[(0,y.jsx)(le.Text,{children:(0,r.__)("Internal linking suggestions","wordpress-seo")}),(0,y.jsxs)(v.Badge,{size:"small",variant:"upsell",children:[(0,y.jsx)(Xs,{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...o}),(0,y.jsx)("span",{children:"Premium"})]})]})})]})},ti=({children:e})=>(0,y.jsx)("div",{children:e});ti.propTypes={renderPriority:h().number.isRequired,children:h().node.isRequired};const si=ti,ii=({noIndex:e,onNoIndexChange:t,editorContext:s,isPrivateBlog:i=!1})=>{const n=(e=>{const t=(0,r.__)("No","wordpress-seo"),s=(0,r.__)("Yes","wordpress-seo"),i=e.noIndex?t:s;return window.wpseoScriptData.isPost?[{name:(0,r.sprintf)(/* translators: %1$s translates to "yes" or "no", %2$s translates to the content type label in plural form */
(0,r.__)("%1$s (current default for %2$s)","wordpress-seo"),i,e.postTypeNamePlural),value:"0"},{name:t,value:"1"},{name:s,value:"2"}]:[{name:(0,r.sprintf)(/* translators: %1$s translates to "yes" or "no", %2$s translates to the content type label in plural form */
(0,r.__)("%1$s (current default for %2$s)","wordpress-seo"),i,e.postTypeNamePlural),value:"default"},{name:s,value:"index"},{name:t,value:"noindex"}]})(s);return(0,y.jsx)(l.LocationConsumer,{children:s=>(0,y.jsxs)(o.Fragment,{children:[i&&(0,y.jsx)(Y.Alert,{type:"warning",children:(0,r.__)("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,y.jsx)(Y.Select,{label:(0,r.__)("Allow search engines to show this content in search results?","wordpress-seo"),onChange:t,id:(0,ce.join)(["yoast-meta-robots-noindex",s]),options:n,selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.allow_search_engines"]
/* translators: Hidden accessibility text. */,linkText:(0,r.__)("Learn more about the no-index setting on our help page.","wordpress-seo")})]})})};ii.propTypes={noIndex:h().string.isRequired,onNoIndexChange:h().func.isRequired,editorContext:h().object.isRequired,isPrivateBlog:h().bool};const oi=({noFollow:e,onNoFollowChange:t})=>(0,y.jsx)(l.LocationConsumer,{children:s=>{const i=(0,ce.join)(["yoast-meta-robots-nofollow",s]);return(0,y.jsx)(Y.RadioButtonGroup,{id:i,options:[{value:"0",label:"Yes"},{value:"1",label:"No"}],label:(0,r.__)("Should search engines follow links on this content?","wordpress-seo"),groupName:i,onChange:t,selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.follow_links"]
/* translators: Hidden accessibility text. */,linkText:(0,r.__)("Learn more about the no-follow setting on our help page.","wordpress-seo")})}});oi.propTypes={noFollow:h().string.isRequired,onNoFollowChange:h().func.isRequired};const ri=({advanced:e,onAdvancedChange:t})=>(0,y.jsx)(l.LocationConsumer,{children:s=>{const i=(0,ce.join)(["yoast-meta-robots-advanced",s]),o=`${i}-input`;return(0,y.jsx)(Y.MultiSelect,{label:(0,r.__)("Meta robots advanced","wordpress-seo"),onChange:t,id:i,inputId:o,options:[{name:(0,r.__)("No Image Index","wordpress-seo"),value:"noimageindex"},{name:(0,r.__)("No Archive","wordpress-seo"),value:"noarchive"},{name:(0,r.__)("No Snippet","wordpress-seo"),value:"nosnippet"}],selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.meta_robots"]
/* translators: Hidden accessibility text. */,linkText:(0,r.__)("Learn more about advanced meta robots settings on our help page.","wordpress-seo")})}});ri.propTypes={advanced:h().array.isRequired,onAdvancedChange:h().func.isRequired};const ni=({breadcrumbsTitle:e,onBreadcrumbsTitleChange:t})=>(0,y.jsx)(l.LocationConsumer,{children:s=>(0,y.jsx)(Y.TextInput,{label:(0,r.__)("Breadcrumbs Title","wordpress-seo"),id:(0,ce.join)(["yoast-breadcrumbs-title",s]),onChange:t,value:e,linkTo:wpseoAdminL10n["shortlinks.advanced.breadcrumbs_title"]
/* translators: Hidden accessibility text. */,linkText:(0,r.__)("Learn more about the breadcrumbs title setting on our help page.","wordpress-seo")})});ni.propTypes={breadcrumbsTitle:h().string.isRequired,onBreadcrumbsTitleChange:h().func.isRequired};const ai=({canonical:e,onCanonicalChange:t})=>(0,y.jsx)(l.LocationConsumer,{children:s=>(0,y.jsx)(Y.TextInput,{label:(0,r.__)("Canonical URL","wordpress-seo"),id:(0,ce.join)(["yoast-canonical",s]),onChange:t,value:e,linkTo:"https://yoa.st/canonical-url"
/* translators: Hidden accessibility text. */,linkText:(0,r.__)("Learn more about canonical URLs on our help page.","wordpress-seo")})});ai.propTypes={canonical:h().string.isRequired,onCanonicalChange:h().func.isRequired};const li=({noIndex:e,canonical:t,onNoIndexChange:s,onCanonicalChange:i,onLoad:r,isLoading:n,editorContext:a,isBreadcrumbsDisabled:l,advanced:c=[],onAdvancedChange:p=d.noop,noFollow:u="",onNoFollowChange:h=d.noop,breadcrumbsTitle:g="",onBreadcrumbsTitleChange:m=d.noop,isPrivateBlog:f=!1})=>{(0,o.useEffect)((()=>{setTimeout((()=>{n&&r()}))}));const w={noIndex:e,onNoIndexChange:s,editorContext:a,isPrivateBlog:f},b={noFollow:u,onNoFollowChange:h},x={advanced:c,onAdvancedChange:p},v={breadcrumbsTitle:g,onBreadcrumbsTitleChange:m},k={canonical:t,onCanonicalChange:i};return n?null:(0,y.jsxs)(o.Fragment,{children:[(0,y.jsx)(ii,{...w}),a.isPost&&(0,y.jsx)(oi,{...b}),a.isPost&&(0,y.jsx)(ri,{...x}),!l&&(0,y.jsx)(ni,{...v}),(0,y.jsx)(ai,{...k})]})};li.propTypes={noIndex:h().string.isRequired,canonical:h().string.isRequired,onNoIndexChange:h().func.isRequired,onCanonicalChange:h().func.isRequired,onLoad:h().func.isRequired,isLoading:h().bool.isRequired,editorContext:h().object.isRequired,isBreadcrumbsDisabled:h().bool.isRequired,isPrivateBlog:h().bool,advanced:h().array,onAdvancedChange:h().func,noFollow:h().string,onNoFollowChange:h().func,breadcrumbsTitle:h().string,onBreadcrumbsTitleChange:h().func};const ci=li,di=(0,oe.compose)([(0,t.withSelect)((e=>{const{getNoIndex:t,getNoFollow:s,getAdvanced:i,getBreadcrumbsTitle:o,getCanonical:r,getIsLoading:n,getEditorContext:a,getPreferences:l}=e("yoast-seo/editor"),{isBreadcrumbsDisabled:c,isPrivateBlog:d}=l();return{noIndex:t(),noFollow:s(),advanced:i(),breadcrumbsTitle:o(),canonical:r(),isLoading:n(),editorContext:a(),isBreadcrumbsDisabled:c,isPrivateBlog:d}})),(0,t.withDispatch)((e=>{const{setNoIndex:t,setNoFollow:s,setAdvanced:i,setBreadcrumbsTitle:o,setCanonical:r,loadAdvancedSettingsData:n}=e("yoast-seo/editor");return{onNoIndexChange:t,onNoFollowChange:s,onAdvancedChange:i,onBreadcrumbsTitleChange:o,onCanonicalChange:r,onLoad:n}}))])(ci),pi=m().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"};
`,ui=e=>{const{siteUrl:t}=e;return(0,y.jsxs)(_.Fragment,{children:[(0,y.jsx)("span",{className:"screen-reader-text",children:t}),(0,y.jsx)(pi,{"aria-hidden":"true",children:(0,y.jsx)("span",{children:t})})]})};ui.propTypes={siteUrl:h().string.isRequired};const hi=ui,gi=window.yoast.socialMetadataForms,mi=m().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;
	}
`,yi=m().img`
	&& {
		height: 100%;
		position: absolute;
		width: 100%;
		object-fit: cover;
	}
`,fi=m().div`
	padding-bottom: ${e=>e.aspectRatio}%;
`,wi=({imageProps:e,width:t,height:s,imageMode:i="landscape"})=>"landscape"===i?(0,y.jsx)(fi,{aspectRatio:e.aspectRatio,children:(0,y.jsx)(yi,{src:e.src,alt:e.alt})}):(0,y.jsx)(mi,{src:e.src,alt:e.alt,width:t,height:s,imageProperties:e});function bi(e,t,s){return"landscape"===s?{widthRatio:t.width/e.landscapeWidth,heightRatio:t.height/e.landscapeHeight}:"portrait"===s?{widthRatio:t.width/e.portraitWidth,heightRatio:t.height/e.portraitHeight}:{widthRatio:t.width/e.squareWidth,heightRatio:t.height/e.squareHeight}}function xi(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 vi(e,t,s=!1){const i=await function(e){return new Promise(((t,s)=>{const i=new Image;i.onload=()=>{t({width:i.width,height:i.height})},i.onerror=s,i.src=e}))}(e);let o=s?"landscape":"square";"Facebook"===t&&(o=(0,gi.determineFacebookImageMode)(i));const r=function(e){return"Twitter"===e?gi.TWITTER_IMAGE_SIZES:gi.FACEBOOK_IMAGE_SIZES}(t),n=function(e,t,s){return"square"===s&&t.width===t.height?{width:e.squareWidth,height:e.squareHeight}:xi(t,bi(e,t,s))}(r,i,o);return{mode:o,height:n.height,width:n.width}}async function ki(e,t,s=!1){try{return{imageProperties:await vi(e,t,s),status:"loaded"}}catch(e){return{imageProperties:null,status:"errored"}}}wi.propTypes={imageProps:h().shape({src:h().string.isRequired,alt:h().string.isRequired,aspectRatio:h().number.isRequired}).isRequired,width:h().number.isRequired,height:h().number.isRequired,imageMode:h().string};const _i=m().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: ${V.colors.$color_white};
`,ji=m().div`
	box-sizing: border-box;
	max-width: ${gi.FACEBOOK_IMAGE_SIZES.landscapeWidth}px;
	height: ${gi.FACEBOOK_IMAGE_SIZES.landscapeHeight}px;
	background-color: ${V.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 Si extends _.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 ki(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:gi.FACEBOOK_IMAGE_SIZES.squareHeight+"px",width:gi.FACEBOOK_IMAGE_SIZES.squareWidth+"px"};case"portrait":return{height:gi.FACEBOOK_IMAGE_SIZES.portraitHeight+"px",width:gi.FACEBOOK_IMAGE_SIZES.portraitWidth+"px"};case"landscape":return{height:gi.FACEBOOK_IMAGE_SIZES.landscapeHeight+"px",width:gi.FACEBOOK_IMAGE_SIZES.landscapeWidth+"px"}}}render(){const{imageProperties:e,status:t}=this.state;if("loading"===t||""===this.props.src||"errored"===t)return(0,y.jsx)(ji,{onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,r.__)("Select image","wordpress-seo")});const s=this.retrieveContainerDimensions(e.mode);return(0,y.jsx)(_i,{mode:e.mode,dimensions:s,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onClick:this.props.onImageClick,children:(0,y.jsx)(wi,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:gi.FACEBOOK_IMAGE_SIZES.aspectRatio},width:e.width,height:e.height,imageMode:e.mode})})}}Si.propTypes={src:h().string,alt:h().string,onImageLoaded:h().func,onImageClick:h().func,onMouseEnter:h().func,onMouseLeave:h().func},Si.defaultProps={src:"",alt:"",onImageLoaded:d.noop,onImageClick:d.noop,onMouseEnter:d.noop,onMouseLeave:d.noop};const Ti=Si,Ri=m().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;
`,Ci=m().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;
	}
`,Ei=e=>{switch(e){case"landscape":return"527px";case"square":case"portrait":return"369px";default:return"476px"}},Ii=m().div`
	box-sizing: border-box;
	display: flex;
	flex-direction: ${e=>"landscape"===e.mode?"column":"row"};
	background-color: #f2f3f5;
	max-width: 527px;
`,Li=m().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 Ai extends _.Component{constructor(e){super(e),this.state={imageMode:null,maxLineCount:0,descriptionLineCount:0},this.facebookTitleRef=j().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,s="landscape"===e?2:5;s!==t&&this.setState({maxLineCount:s})}maybeSetDescriptionLineCount(){const{descriptionLineCount:e,maxLineCount:t,imageMode:s}=this.state,i=this.getTitleLineCount();let o=t-i;"portrait"===s&&(o=5===i?0:4),o!==e&&this.setState({descriptionLineCount:o})}componentDidUpdate(){this.maybeSetMaxLineCount(),this.maybeSetDescriptionLineCount()}render(){const{imageMode:e,maxLineCount:t,descriptionLineCount:s}=this.state;return(0,y.jsxs)(Ii,{id:"facebookPreview",mode:e,children:[(0,y.jsx)(Ti,{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,y.jsxs)(Li,{mode:e,children:[(0,y.jsx)(hi,{siteUrl:this.props.siteUrl,mode:e}),(0,y.jsx)(Ri,{ref:this.facebookTitleRef,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,lineCount:t,children:this.props.title}),s>0&&(0,y.jsx)(Ci,{maxWidth:Ei(e),onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,lineCount:s,children:this.props.description})]})]})}}Ai.propTypes={siteUrl:h().string.isRequired,title:h().string.isRequired,description:h().string,imageUrl:h().string,imageFallbackUrl:h().string,alt:h().string,onSelect:h().func,onImageClick:h().func,onMouseHover:h().func},Ai.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{}};const Fi=Ai,Pi=m().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;
`,Mi=e=>(0,y.jsx)(Pi,{children:(0,y.jsx)("span",{children:e.siteUrl})});Mi.propTypes={siteUrl:h().string.isRequired};const qi=Mi,Oi=(e,t=!0)=>e?`\n\t\t\tmax-width: ${gi.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: ${gi.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`,Ni=m().div`
	position: relative;
	box-sizing: content-box;
	overflow: hidden;
	background-color: #e1e8ed;
	flex-shrink: 0;
	${e=>Oi(e.isLarge)}
`,Di=m().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=>Oi(e.isLarge,!1)}
`,Ui=m()(Di)`
	${e=>e.isLarge&&`height: ${gi.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 Wi extends j().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 ki(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:t}=this.state;return"loading"===e||""===this.props.src||"errored"===e?(0,y.jsx)(Ui,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,r.__)("Select image","wordpress-seo")}):(0,y.jsx)(Ni,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,y.jsx)(wi,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:gi.TWITTER_IMAGE_SIZES.aspectRatio},width:t.width,height:t.height,imageMode:t.mode})})}}Wi.propTypes={isLarge:h().bool.isRequired,src:h().string,alt:h().string,onImageClick:h().func,onMouseEnter:h().func,onMouseLeave:h().func},Wi.defaultProps={src:"",alt:"",onMouseEnter:d.noop,onImageClick:d.noop,onMouseLeave:d.noop};const $i=m().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;
    }
`,Bi=e=>(0,y.jsx)($i,{children:e.children});Bi.propTypes={children:h().array.isRequired};const Ki=Bi,Hi=m().p`
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	color: rgb(15, 20, 25);
	cursor: pointer;
`,zi=m().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: ${gi.TWITTER_IMAGE_SIZES.landscapeWidth}px ) {
		display: none;
	}
`,Yi=m().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);
	}
`,Vi=m()(Yi)`
	flex-direction: column;
	max-height: 370px;
`,Gi=m()(Yi)`
	flex-direction: row;
	height: 125px;
`;class Zi extends _.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:t,imageFallbackUrl:s,alt:i,title:o,description:r,siteUrl:n}=this.props,a=e?Vi:Gi;return(0,y.jsxs)(a,{id:"twitterPreview",children:[(0,y.jsx)(Wi,{src:t||s,alt:i,isLarge:e,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,y.jsxs)(Ki,{children:[(0,y.jsx)(qi,{siteUrl:n}),(0,y.jsx)(Hi,{onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,children:o}),(0,y.jsx)(zi,{onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,children:r})]})]})}}Zi.propTypes={siteUrl:h().string.isRequired,title:h().string.isRequired,description:h().string,isLarge:h().bool,imageUrl:h().string,imageFallbackUrl:h().string,alt:h().string,onSelect:h().func,onImageClick:h().func,onMouseHover:h().func},Zi.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{},isLarge:!0};const Xi=Zi,Qi=window.yoast.replacementVariableEditor;class Ji extends _.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.SocialPreview="Social"===e.socialMediumName?Fi:Xi,this.setHoveredField=this.setHoveredField.bind(this),this.setActiveField=this.setActiveField.bind(this),this.setEditorRef=this.setEditorRef.bind(this),this.setEditorFocus=this.setEditorFocus.bind(this)}setHoveredField(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}setActiveField(e){e!==this.state.activeField&&this.setState({activeField:e},(()=>this.setEditorFocus(e)))}setEditorFocus(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}setEditorRef(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}render(){const{onDescriptionChange:e,onTitleChange:t,onSelectImageClick:s,onRemoveImageClick:i,socialMediumName:o,imageWarnings:r,siteUrl:n,description:a,descriptionInputPlaceholder:l,descriptionPreviewFallback:c,imageUrl:d,imageFallbackUrl:p,alt:u,title:h,titleInputPlaceholder:g,titlePreviewFallback:m,replacementVariables:f,recommendedReplacementVariables:w,applyReplacementVariables:b,onReplacementVariableSearchChange:x,isPremium:v,isLarge:k,socialPreviewLabel:_,idSuffix:S,activeMetaTabId:T}=this.props,R=b({title:h||m,description:a||c});return(0,y.jsxs)(j().Fragment,{children:[_&&(0,y.jsx)(Y.SimulatedLabel,{children:_}),(0,y.jsx)(this.SocialPreview,{onMouseHover:this.setHoveredField,onSelect:this.setActiveField,onImageClick:s,siteUrl:n,title:R.title,description:R.description,imageUrl:d,imageFallbackUrl:p,alt:u,isLarge:k,activeMetaTabId:T}),(0,y.jsx)(gi.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:o,title:h,titleInputPlaceholder:g,onRemoveImageClick:i,imageSelected:!!d,imageUrl:d,imageFallbackUrl:p,onTitleChange:t,onSelectImageClick:s,description:a,descriptionInputPlaceholder:l,imageWarnings:r,replacementVariables:f,recommendedReplacementVariables:w,onReplacementVariableSearchChange:x,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:v,setEditorRef:this.setEditorRef,idSuffix:S})]})}}Ji.propTypes={title:h().string.isRequired,onTitleChange:h().func.isRequired,description:h().string.isRequired,onDescriptionChange:h().func.isRequired,imageUrl:h().string.isRequired,imageFallbackUrl:h().string.isRequired,onSelectImageClick:h().func.isRequired,onRemoveImageClick:h().func.isRequired,socialMediumName:h().string.isRequired,alt:h().string,isPremium:h().bool,imageWarnings:h().array,isLarge:h().bool,siteUrl:h().string,descriptionInputPlaceholder:h().string,titleInputPlaceholder:h().string,descriptionPreviewFallback:h().string,titlePreviewFallback:h().string,replacementVariables:Qi.replacementVariablesShape,recommendedReplacementVariables:Qi.recommendedReplacementVariablesShape,applyReplacementVariables:h().func,onReplacementVariableSearchChange:h().func,socialPreviewLabel:h().string,idSuffix:h().string,activeMetaTabId:h().string},Ji.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,isLarge:!0,siteUrl:"",descriptionInputPlaceholder:"",titleInputPlaceholder:"",descriptionPreviewFallback:"",titlePreviewFallback:"",alt:"",applyReplacementVariables:e=>e,onReplacementVariableSearchChange:null,socialPreviewLabel:"",idSuffix:"",activeMetaTabId:""};const eo={},to=(e,t,{log:s=console.warn}={})=>{eo[e]||(eo[e]=!0,s(t))},so=(e,t=d.noop)=>{const s={};for(const i in e)Object.hasOwn(e,i)&&Object.defineProperty(s,i,{set:s=>{e[i]=s,t("set",i,s)},get:()=>(t("get",i),e[i])});return s};so({squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},((e,t)=>to(`@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.`))),so({squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}},((e,t)=>to(`@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 io=m().div`
	max-width: calc(527px + 1.5rem);
`,oo=e=>{const t="X"===e.socialMediumName?(0,r.__)("X share preview","wordpress-seo"):(0,r.__)("Social share preview","wordpress-seo"),{locationContext:s}=(0,v.useRootContext)();return(0,y.jsx)(v.Root,{children:(0,y.jsx)(io,{children:(0,y.jsx)(v.FeatureUpsell,{shouldUpsell:!0,variant:"card",cardLink:(0,Ds.addQueryArgs)(wpseoAdminL10n["shortlinks.upsell.social_preview."+e.socialMediumName.toLowerCase()],{context:s}),cardText:(0,r.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,r.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",children:(0,y.jsxs)("div",{className:"yst-grayscale yst-opacity-50",children:[(0,y.jsx)(v.Label,{children:t}),(0,y.jsx)(Fi,{title:"",description:"",siteUrl:"",imageUrl:"",imageFallbackUrl:"",alt:"",onSelect:d.noop,onImageClick:d.noop,onMouseHover:d.noop})]})})})})};oo.propTypes={socialMediumName:h().oneOf(["Social","Twitter","X"]).isRequired};const ro=oo;class no extends o.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.setHoveredField=this.setHoveredField.bind(this),this.setActiveField=this.setActiveField.bind(this),this.setEditorRef=this.setEditorRef.bind(this),this.setEditorFocus=this.setEditorFocus.bind(this)}setHoveredField(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}setActiveField(e){e!==this.state.activeField&&this.setState({activeField:e},(()=>this.setEditorFocus(e)))}setEditorFocus(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}setEditorRef(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}render(){const{onDescriptionChange:e,onTitleChange:t,onSelectImageClick:s,onRemoveImageClick:i,socialMediumName:r,imageWarnings:n,description:a,descriptionInputPlaceholder:l,imageUrl:c,imageFallbackUrl:d,alt:p,title:u,titleInputPlaceholder:h,replacementVariables:g,recommendedReplacementVariables:m,onReplacementVariableSearchChange:f,isPremium:w,location:b}=this.props;return(0,y.jsxs)(o.Fragment,{children:[(0,y.jsx)(ro,{socialMediumName:r}),(0,y.jsx)(gi.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:r,title:u,titleInputPlaceholder:h,onRemoveImageClick:i,imageSelected:!!c,imageUrl:c,imageFallbackUrl:d,imageAltText:p,onTitleChange:t,onSelectImageClick:s,description:a,descriptionInputPlaceholder:l,imageWarnings:n,replacementVariables:g,recommendedReplacementVariables:m,onReplacementVariableSearchChange:f,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:w,setEditorRef:this.setEditorRef,idSuffix:b})]})}}no.propTypes={title:h().string.isRequired,onTitleChange:h().func.isRequired,description:h().string.isRequired,onDescriptionChange:h().func.isRequired,imageUrl:h().string.isRequired,imageFallbackUrl:h().string,onSelectImageClick:h().func.isRequired,onRemoveImageClick:h().func.isRequired,socialMediumName:h().string.isRequired,isPremium:h().bool,imageWarnings:h().array,descriptionInputPlaceholder:h().string,titleInputPlaceholder:h().string,replacementVariables:Qi.replacementVariablesShape,recommendedReplacementVariables:Qi.recommendedReplacementVariablesShape,onReplacementVariableSearchChange:h().func,location:h().string,alt:h().string},no.defaultProps={imageWarnings:[],imageFallbackUrl:"",recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",onReplacementVariableSearchChange:null,location:"",alt:""};const ao=no,lo=(e,t,s)=>{const[i,n]=(0,o.useState)(!1),a=(0,r.sprintf)(
/* Translators: %1$s expands to the jpg format, %2$s expands to the png format,
  %3$s expands to the webp format, %4$s expands to the gif format. */
(0,r.__)("No image was found that we can automatically set as your social image. Please use %1$s, %2$s, %3$s or %4$s formats to ensure it displays correctly on social media.","wordpress-seo"),"JPG","PNG","WEBP","GIF");return(0,o.useEffect)((()=>{n(""===t&&e.toLowerCase().endsWith(".avif"))}),[e,t]),i?[a]:s},co=({isPremium:e,onLoad:t,location:s,imageFallbackUrl:i="",imageUrl:r="",imageWarnings:n=[],...a})=>{const[l,c]=(0,o.useState)(""),d=lo(i,r,n),p=(0,o.useCallback)((e=>{c(e.detail.metaTabId)}),[c]);(0,o.useEffect)((()=>(setTimeout(t),window.addEventListener("YoastSEO:metaTabChange",p),()=>{window.removeEventListener("YoastSEO:metaTabChange",p)})),[]);const u={isPremium:e,onLoad:t,location:s,imageFallbackUrl:i,imageUrl:r,imageWarnings:d,activeMetaTabId:l,...a};return e?(0,y.jsx)(x.Slot,{name:`YoastFacebookPremium${s.charAt(0).toUpperCase()+s.slice(1)}`,fillProps:u}):(0,y.jsx)(ao,{...u})};co.propTypes={isPremium:h().bool.isRequired,onLoad:h().func.isRequired,location:h().string.isRequired,imageFallbackUrl:h().string,imageUrl:h().string,imageWarnings:h().array};const po=co;function uo(e){(function(e){const t=window.wp.media();return t.on("select",(()=>{const s=t.state().get("selection").first();var i;e({type:(i=s.attributes).subtype,width:i.width,height:i.height,url:i.url,id:i.id,sizes:i.sizes,alt:i.alt||i.title||i.name})})),t})(e).open()}const ho=()=>{uo((e=>(0,t.dispatch)("yoast-seo/editor").setFacebookPreviewImage((e=>{const{width:t,height:s}=e,i=(0,gi.determineFacebookImageMode)({width:t,height:s}),o=gi.FACEBOOK_IMAGE_SIZES[i+"Width"],r=gi.FACEBOOK_IMAGE_SIZES[i+"Height"],n=Object.values(e.sizes).find((e=>e.width>=o&&e.height>=r));return{url:n?n.url:e.url,id:e.id,warnings:(0,ce.validateFacebookImage)(e),alt:e.alt||""}})(e))))},go=(0,oe.compose)([(0,t.withSelect)((e=>{const{getFacebookDescription:t,getDescription:s,getFacebookTitle:i,getSeoTitle:o,getFacebookImageUrl:r,getImageFallback:n,getFacebookWarnings:a,getRecommendedReplaceVars:l,getReplaceVars:c,getSiteUrl:d,getSeoTitleTemplate:u,getSeoTitleTemplateNoFallback:h,getSocialTitleTemplate:g,getSeoDescriptionTemplate:m,getSocialDescriptionTemplate:y,getReplacedExcerpt:f,getFacebookAltText:w}=e("yoast-seo/editor");return{imageUrl:r(),imageFallbackUrl:n(),recommendedReplacementVariables:l(),replacementVariables:c(),description:t(),descriptionPreviewFallback:y()||s()||m()||f()||"",title:i(),titlePreviewFallback:g()||o()||h()||u()||"",imageWarnings:a(),siteUrl:d(),isPremium:!!p().isPremium,titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Social",alt:w()}})),(0,t.withDispatch)(((e,t,{select:s})=>{const{setFacebookPreviewTitle:i,setFacebookPreviewDescription:o,clearFacebookPreviewImage:r,loadFacebookPreviewData:n,findCustomFields:a}=e("yoast-seo/editor"),l=s("yoast-seo/editor").getPostId();return{onSelectImageClick:ho,onRemoveImageClick:r,onDescriptionChange:o,onTitleChange:i,onLoad:n,onReplacementVariableSearchChange:js(l,a)}})),ds()])(po),mo=({isPremium:e,onLoad:t,location:s,imageFallbackUrl:i="",imageUrl:r="",imageWarnings:n=[],...a})=>{const l=lo(i,r,n);(0,o.useEffect)((()=>{setTimeout(t)}),[]);const c={isPremium:e,onLoad:t,location:s,imageFallbackUrl:i,imageUrl:r,imageWarnings:l,...a};return e?(0,y.jsx)(x.Slot,{name:`YoastTwitterPremium${s.charAt(0).toUpperCase()+s.slice(1)}`,fillProps:c}):(0,y.jsx)(ao,{...c})};mo.propTypes={isPremium:h().bool.isRequired,onLoad:h().func.isRequired,location:h().string.isRequired,imageFallbackUrl:h().string,imageUrl:h().string,imageWarnings:h().array};const yo=mo,fo=()=>{uo((e=>(0,t.dispatch)("yoast-seo/editor").setTwitterPreviewImage((e=>{const t="summary"!==(0,d.get)(window,"wpseoScriptData.metabox.twitterCardType")?"landscape":"square",s=gi.TWITTER_IMAGE_SIZES[t+"Width"],i=gi.TWITTER_IMAGE_SIZES[t+"Height"],o=Object.values(e.sizes).find((e=>e.width>=s&&e.height>=i));return{url:o?o.url:e.url,id:e.id,warnings:(0,ce.validateTwitterImage)(e),alt:e.alt||""}})(e))))},wo=(0,oe.compose)([(0,t.withSelect)((e=>{const{getTwitterDescription:t,getTwitterTitle:s,getTwitterImageUrl:i,getFacebookImageUrl:o,getFacebookTitle:r,getFacebookDescription:n,getDescription:a,getSeoTitle:l,getTwitterWarnings:c,getTwitterImageType:d,getImageFallback:u,getRecommendedReplaceVars:h,getReplaceVars:g,getSiteUrl:m,getSeoTitleTemplate:y,getSeoTitleTemplateNoFallback:f,getSocialTitleTemplate:w,getSeoDescriptionTemplate:b,getSocialDescriptionTemplate:x,getReplacedExcerpt:v,getTwitterAltText:k}=e("yoast-seo/editor");return{imageUrl:i(),imageFallbackUrl:o()||u(),recommendedReplacementVariables:h(),replacementVariables:g(),description:t(),descriptionPreviewFallback:x()||n()||a()||b()||v()||"",title:s(),titlePreviewFallback:w()||r()||l()||f()||y()||"",imageWarnings:c(),siteUrl:m(),isPremium:!!p().isPremium,isLarge:"summary"!==d(),titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"X",alt:k()}})),(0,t.withDispatch)(((e,t,{select:s})=>{const{setTwitterPreviewTitle:i,setTwitterPreviewDescription:o,clearTwitterPreviewImage:r,loadTwitterPreviewData:n,findCustomFields:a}=e("yoast-seo/editor"),l=s("yoast-seo/editor").getPostId();return{onSelectImageClick:fo,onRemoveImageClick:r,onDescriptionChange:o,onTitleChange:i,onLoad:n,onReplacementVariableSearchChange:js(l,a)}})),ds()])(yo),bo=m().legend`
	margin: 16px 0;
	padding: 0;
	color: ${V.colors.$color_headings};
	font-size: 12px;
	font-weight: 300;
`,xo=m().legend`
	margin: 0 0 16px;
	padding: 0;
	color: ${V.colors.$color_headings};
	font-size: 12px;
	font-weight: 300;
`,vo=m().div`
	padding: 16px;
`,ko=({useOpenGraphData:e,useTwitterData:t})=>(0,y.jsxs)(o.Fragment,{children:[t&&e&&(0,y.jsxs)(o.Fragment,{children:[(0,y.jsxs)(As,{hasSeparator:!1
/* translators: Social media appearance refers to a preview of how a page will be represented on social media. */,title:(0,r.__)("Social media appearance","wordpress-seo"),initialIsOpen:!0,children:[(0,y.jsx)(xo,{children:(0,r.__)("Determine how your post should look on social media like Facebook, X, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")}),(0,y.jsx)(go,{}),(0,y.jsx)(bo,{children:(0,r.__)("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,y.jsx)(As,{title:(0,r.__)("X appearance","wordpress-seo"),hasSeparator:!0,initialIsOpen:!1,children:(0,y.jsx)(wo,{})})]}),e&&!t&&(0,y.jsxs)(vo,{children:[(0,y.jsx)(xo,{children:(0,r.__)("Determine how your post should look on social media like Facebook, X, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")}),(0,y.jsx)(go,{})]}),!e&&t&&(0,y.jsxs)(vo,{children:[(0,y.jsx)(xo,{children:(0,r.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below.","wordpress-seo")}),(0,y.jsx)(wo,{})]})]});ko.propTypes={useOpenGraphData:h().bool.isRequired,useTwitterData:h().bool.isRequired};const _o=ko,jo=(0,t.withSelect)((e=>{const{getPreferences:t}=e("yoast-seo/editor"),{useOpenGraphData:s,useTwitterData:i}=t();return{useOpenGraphData:s,useTwitterData:i}}))(_o);function So({target:e}){return(0,y.jsx)(X,{target:e,children:(0,y.jsx)(jo,{})})}So.propTypes={target:h().string.isRequired};const To=(0,ce.makeOutboundLink)(),Ro=m().div`
	padding: 16px;
`,Co="yoast-seo/editor";function Eo({location:e,show:t}){return t?(0,y.jsxs)(Y.Alert,{type:"info",children:[(0,r.sprintf)(/* translators: %s Expands to "Yoast News SEO" */
(0,r.__)("Are you working on a news article? %s helps you optimize your site for Google News.","wordpress-seo"),"Yoast News SEO")+" ",(0,y.jsx)(To,{href:window.wpseoAdminL10n[`shortlinks.upsell.${e}.news`],children:(0,r.sprintf)(/* translators: %s: Expands to "Yoast News SEO". */
(0,r.__)("Buy %s now!","wordpress-seo"),"Yoast News SEO")})]}):null}Eo.propTypes={show:h().bool.isRequired,location:h().string.isRequired};const Io=(e,s,i)=>{const o=(0,t.useSelect)((e=>e(Co).getIsProduct()),[]),n=(0,t.useSelect)((e=>e(Co).getIsWooSeoActive()),[]),a=o&&n?{name:(0,r.__)("Item Page","wordpress-seo"),value:"ItemPage"}:e.find((e=>e.value===s));return[{name:(0,r.sprintf)(/* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */
(0,r.__)("Default for %1$s (%2$s)","wordpress-seo"),i,a?a.name:""),value:""},...e]},Lo=(e,t)=>S((e=>(0,r.sprintf)(/* translators: %1$s expands to the plural name of the current post type, %2$s and %3$s expand to a link to the Settings page */
(0,r.__)("You can change the default type for %1$s under Content types in the %2$sSettings%3$s.","wordpress-seo"),e,"<link>","</link>"))(e),{link:(0,y.jsx)("a",{href:t,target:"_blank",rel:"noreferrer"})}),Ao=({helpTextTitle:e,helpTextLink:t,helpTextDescription:s})=>(0,y.jsx)(Y.FieldGroup,{label:e,linkTo:t
/* translators: Hidden accessibility text. */,linkText:(0,r.__)("Learn more about structured data with Schema.org","wordpress-seo"),description:s});Ao.propTypes={helpTextTitle:h().string.isRequired,helpTextLink:h().string.isRequired,helpTextDescription:h().string.isRequired};const Fo=({schemaPageTypeChange:e=d.noop,schemaPageTypeSelected:s=null,pageTypeOptions:i,schemaArticleTypeChange:n=d.noop,schemaArticleTypeSelected:a=null,articleTypeOptions:l,showArticleTypeInput:c,additionalHelpTextLink:p,helpTextLink:u,helpTextTitle:h,helpTextDescription:g,postTypeName:m,displayFooter:f=!1,defaultPageType:w,defaultArticleType:b,location:x,isNewsEnabled:v=!1})=>{const k=Io(i,w,m),_=Io(l,b,m),j=(0,t.useSelect)((e=>e(Co).selectLink("https://yoa.st/product-schema-metabox")),[]),S=(0,t.useSelect)((e=>e(Co).getIsWooSeoUpsell()),[]),[T,R]=(0,o.useState)(a),C=(0,r.__)("Want your products stand out in search results with rich results like price, reviews and more?","wordpress-seo"),E=(0,t.useSelect)((e=>e(Co).getIsProduct()),[]),I=(0,t.useSelect)((e=>e(Co).getIsWooSeoActive()),[]),L=(0,t.useSelect)((e=>e(Co).selectAdminLink("?page=wpseo_page_settings")),[]),A=E&&I,F=(0,o.useCallback)(((e,t)=>{R(t)}),[]);return(0,o.useEffect)((()=>{F(null,a)}),[a]),(0,y.jsxs)(o.Fragment,{children:[(0,y.jsx)(Ao,{helpTextLink:u,helpTextTitle:h,helpTextDescription:g}),(0,y.jsx)(Y.FieldGroup,{label:(0,r.__)("What type of page or content is this?","wordpress-seo"),linkTo:p
/* translators: Hidden accessibility text. */,linkText:(0,r.__)("Learn more about page or content types","wordpress-seo")}),S&&(0,y.jsx)(Ts,{link:j,text:C}),(0,y.jsx)(Y.Select,{id:(0,ce.join)(["yoast-schema-page-type",x]),options:k,label:(0,r.__)("Page type","wordpress-seo"),onChange:e,selected:A?"ItemPage":s,disabled:A}),c&&(0,y.jsx)(Y.Select,{id:(0,ce.join)(["yoast-schema-article-type",x]),options:_,label:(0,r.__)("Article type","wordpress-seo"),onChange:n,selected:a,onOptionFocus:F}),(0,y.jsx)(Eo,{location:x,show:!v&&(P=T,M=b,"NewsArticle"===P||""===P&&"NewsArticle"===M)}),f&&!A&&(0,y.jsx)("p",{children:Lo(m,L)}),A&&(0,y.jsx)("p",{children:(0,r.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */
(0,r.__)("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 P,M},Po=h().arrayOf(h().shape({name:h().string,value:h().string}));Fo.propTypes={schemaPageTypeChange:h().func,schemaPageTypeSelected:h().string,pageTypeOptions:Po.isRequired,schemaArticleTypeChange:h().func,schemaArticleTypeSelected:h().string,articleTypeOptions:Po.isRequired,showArticleTypeInput:h().bool.isRequired,additionalHelpTextLink:h().string.isRequired,helpTextLink:h().string.isRequired,helpTextTitle:h().string.isRequired,helpTextDescription:h().string.isRequired,postTypeName:h().string.isRequired,displayFooter:h().bool,defaultPageType:h().string.isRequired,defaultArticleType:h().string.isRequired,location:h().string.isRequired,isNewsEnabled:h().bool};const Mo=({isMetabox:e,showArticleTypeInput:t=!1,articleTypeLabel:s="",additionalHelpTextLink:i="",pageTypeLabel:r,helpTextLink:n,helpTextTitle:a,helpTextDescription:l,postTypeName:c,displayFooter:d=!1,loadSchemaArticleData:p,loadSchemaPageData:u,location:h,...g})=>{const m=(0,y.jsx)(Fo,{showArticleTypeInput:t,articleTypeLabel:s,additionalHelpTextLink:i,pageTypeLabel:r,helpTextLink:n,helpTextTitle:a,helpTextDescription:l,postTypeName:c,displayFooter:d,loadSchemaArticleData:p,loadSchemaPageData:u,location:h,...g});return e?(0,o.createPortal)((0,y.jsx)(Ro,{children:m}),document.getElementById("wpseo-meta-section-schema")):m};Mo.propTypes={isMetabox:h().bool.isRequired,showArticleTypeInput:h().bool,articleTypeLabel:h().string,additionalHelpTextLink:h().string,pageTypeLabel:h().string.isRequired,helpTextLink:h().string.isRequired,helpTextTitle:h().string.isRequired,helpTextDescription:h().string.isRequired,postTypeName:h().string.isRequired,displayFooter:h().bool,loadSchemaArticleData:h().func.isRequired,loadSchemaPageData:h().func.isRequired,location:h().string.isRequired};const qo=Mo;class Oo{static get articleTypeInput(){return document.getElementById("yoast_wpseo_schema_article_type")}static get defaultArticleType(){return Oo.articleTypeInput.getAttribute("data-default")}static get articleType(){return Oo.articleTypeInput.value}static set articleType(e){Oo.articleTypeInput.value=e}static get pageTypeInput(){return document.getElementById("yoast_wpseo_schema_page_type")}static get defaultPageType(){return Oo.pageTypeInput.getAttribute("data-default")}static get pageType(){return Oo.pageTypeInput.value}static set pageType(e){Oo.pageTypeInput.value=e}}const No=e=>{const t=null!==Oo.articleTypeInput;(0,o.useEffect)((()=>{e.loadSchemaPageData(),t&&e.loadSchemaArticleData()}),[]);const{pageTypeOptions:s,articleTypeOptions:i}=window.wpseoScriptData.metabox.schema,n={articleTypeLabel:(0,r.__)("Article type","wordpress-seo"),pageTypeLabel:(0,r.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:(0,r.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:(0,r.__)("This helps search engines understand your website and your content. You can change some of your settings for this page below.","wordpress-seo"),showArticleTypeInput:t,pageTypeOptions:s,articleTypeOptions:i},a={...e,...n,...(l=e.location,"metabox"===l?{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 l;return(0,y.jsx)(qo,{...a})};No.propTypes={displayFooter:h().bool.isRequired,schemaPageTypeSelected:h().string.isRequired,schemaArticleTypeSelected:h().string.isRequired,defaultArticleType:h().string.isRequired,defaultPageType:h().string.isRequired,loadSchemaPageData:h().func.isRequired,loadSchemaArticleData:h().func.isRequired,schemaPageTypeChange:h().func.isRequired,schemaArticleTypeChange:h().func.isRequired,location:h().string.isRequired};const Do=(0,oe.compose)([(0,t.withSelect)((e=>{const{getPreferences:t,getPageType:s,getDefaultPageType:i,getArticleType:o,getDefaultArticleType:r}=e("yoast-seo/editor"),{displaySchemaSettingsFooter:n,isNewsEnabled:a}=t();return{displayFooter:n,isNewsEnabled:a,schemaPageTypeSelected:s(),schemaArticleTypeSelected:o(),defaultArticleType:r(),defaultPageType:i()}})),(0,t.withDispatch)((e=>{const{setPageType:t,setArticleType:s,getSchemaPageData:i,getSchemaArticleData:o}=e("yoast-seo/editor");return{loadSchemaPageData:i,loadSchemaArticleData:o,schemaPageTypeChange:t,schemaArticleTypeChange:s}})),ds()])(No),Uo=window.yoast.relatedKeyphraseSuggestions;function Wo({requestLimitReached:e,isSuccess:t,response:s,requestHasData:i,relatedKeyphrases:o}){return e?"requestLimitReached":!t&&function(e){return"invalid_json"===(null==e?void 0:e.code)||"fetch_error"===(null==e?void 0:e.code)||!(0,d.isEmpty)(e)&&"error"in e}(s)?"requestFailed":i?function(e){return e&&e.length>=4}(o)?"maxRelatedKeyphrases":null:"requestEmpty"}function $o({keyphrase:e="",relatedKeyphrases:t=[],renderAction:s=null,requestLimitReached:i=!1,countryCode:r,setCountry:n,newRequest:a,response:l={},isRtl:c=!1,userLocale:d="en_US",isPending:p=!1,isSuccess:u=!1,requestHasData:h=!0,isPremium:g=!1,semrushUpsellLink:m="",premiumUpsellLink:f=""}){var w,b;const[x,k]=(0,o.useState)(r),_=(0,o.useCallback)((async()=>{a(r,e),k(r)}),[r,e,a]);return(0,y.jsxs)(v.Root,{context:{isRtl:c},children:[!i&&!g&&(0,y.jsx)(Uo.PremiumUpsell,{url:f,className:"yst-mb-4"}),!i&&(0,y.jsx)(Uo.CountrySelector,{countryCode:r,activeCountryCode:x,onChange:n,onClick:_,className:"yst-mb-4",userLocale:d.split("_")[0]}),!p&&(0,y.jsx)(Uo.UserMessage,{variant:Wo({requestLimitReached:i,isSuccess:u,response:l,requestHasData:h,relatedKeyphrases:t}),upsellLink:m}),(0,y.jsx)(Uo.KeyphrasesTable,{relatedKeyphrases:t,columnNames:null==l||null===(w=l.results)||void 0===w?void 0:w.columnNames,data:null==l||null===(b=l.results)||void 0===b?void 0:b.rows,isPending:p,renderButton:s,className:"yst-mt-4"})]})}$o.propTypes={keyphrase:h().string,relatedKeyphrases:h().array,renderAction:h().func,requestLimitReached:h().bool,countryCode:h().string.isRequired,setCountry:h().func.isRequired,newRequest:h().func.isRequired,response:h().object,isRtl:h().bool,userLocale:h().string,isPending:h().bool,isSuccess:h().bool,requestHasData:h().bool,isPremium:h().bool,semrushUpsellLink:h().string,premiumUpsellLink:h().string};const Bo=(0,oe.compose)([(0,t.withSelect)((e=>{const{getFocusKeyphrase:t,getSEMrushSelectedCountry:s,getSEMrushRequestLimitReached:i,getSEMrushRequestResponse:o,getSEMrushRequestIsSuccess:r,getSEMrushIsRequestPending:n,getSEMrushRequestHasData:a,getPreference:l,getIsPremium:c,selectLinkParams:d}=e("yoast-seo/editor");return{keyphrase:t(),countryCode:s(),requestLimitReached:i(),response:o(),isSuccess:r(),isPending:n(),requestHasData:a(),isRtl:l("isRtl",!1),userLocale:l("userLocale","en_US"),isPremium:c(),semrushUpsellLink:(0,Ds.addQueryArgs)("https://yoa.st/semrush-prices",d()),premiumUpsellLink:(0,Ds.addQueryArgs)("https://yoa.st/413",d())}})),(0,t.withDispatch)((e=>{const{setSEMrushChangeCountry:t,setSEMrushNewRequest:s}=e("yoast-seo/editor");return{setCountry:e=>{t(e)},newRequest:(e,t)=>{s(e,t)}}}))])($o),Ko=({isOpen:e,closeModal:t,id:s,upsellLink:i})=>(0,y.jsx)(Js,{isOpen:e,onClose:t,id:s,upsellLink:i,title:(0,r.__)("Cover more search intent with related keyphrases","wordpress-seo"),description:(0,r.__)("Optimize for up to 5 keyphrases to shape your content around different themes, audiences, and angles - helping it get discovered by a wider audience.","wordpress-seo"),note:(0,r.__)("Fine-tune your content for every audience","wordpress-seo"),modalTitle:(0,r.__)("Add more keyphrases with Premium","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"}),Ho=()=>{const[e,,,t,s]=(0,v.useToggleState)(!1),i=(0,o.useContext)(l.LocationContext),{locationContext:n}=(0,l.useRootContext)(),a=(0,v.useSvgAria)(),c=wpseoAdminL10n["sidebar"===i.toLowerCase()?"shortlinks.upsell.sidebar.additional_button":"shortlinks.upsell.metabox.additional_button"];return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Ko,{isOpen:e,closeModal:s,upsellLink:(0,Ds.addQueryArgs)(c,{context:n}),id:`yoast-additional-keyphrases-modal-${i}`}),"sidebar"===i&&(0,y.jsx)(we,{id:"yoast-additional-keyphrase-modal-open-button",title:(0,r.__)("Add related keyphrase","wordpress-seo"),prefixIcon:{icon:"plus",color:V.colors.$color_grey_medium_dark},onClick:t,children:(0,y.jsx)("div",{className:"yst-root",children:(0,y.jsx)(v.Badge,{size:"small",variant:"upsell",children:(0,y.jsx)(Xs,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...a})})})}),"metabox"===i&&(0,y.jsx)("div",{className:"yst-root",children:(0,y.jsxs)(le,{id:"yoast-additional-keyphrase-metabox-modal-open-button",onClick:t,children:[(0,y.jsx)(Y.SvgIcon,{icon:"plus",color:V.colors.$color_grey_medium_dark}),(0,y.jsx)(le.Text,{children:(0,r.__)("Add related keyphrase","wordpress-seo")}),(0,y.jsxs)(v.Badge,{size:"small",variant:"upsell",children:[(0,y.jsx)(Xs,{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...a}),(0,y.jsx)("span",{children:"Premium"})]})]})})]})},zo=_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))})),Yo=({store:e="yoast-seo/editor",location:s="sidebar"})=>{const i="black-friday-promotion",n=(0,t.useSelect)((t=>t(e).getIsPremium()),[e]),a=(0,t.useSelect)((t=>t(e).selectLinkParams()),[e]),l=(0,t.useSelect)((t=>t(e).isPromotionActive(i)),[e]),c=(0,t.useSelect)((t=>t(e).getIsWooCommerceActive()),[e]),d=(0,t.useSelect)((t=>t(e).isAlertDismissed(i)),[e]),p=(0,t.useSelect)((t=>t(e).getIsElementorEditor()),[e]),u=(0,o.useCallback)((()=>{(0,t.dispatch)(e).dismissAlert(i)}),[e,i]),h=(0,Ds.addQueryArgs)("https://yoa.st/black-friday-sale",a),g=(0,v.useSvgAria)();return n||!l||d?null:(0,y.jsx)("div",{className:"yst-root",children:(0,y.jsxs)("div",{className:B()("sidebar"!==s||p?"yst-mx-4":"yst-mx-0","yst-border yst-rounded-lg yst-p-4 yst-max-w-md yst-mt-6 yst-relative yst-shadow-sm",c?"yst-border-woo-light":"yst-border-primary-200"),children:[(0,y.jsxs)(v.Badge,{size:"small",className:"yst-text-[10px] yst-bg-black yst-text-amber-300 yst-absolute yst--top-2",children:[(0,r.__)("BLACK FRIDAY","wordpress-seo")," "]}),(0,y.jsxs)("button",{className:"yst-absolute yst-top-4 yst-end-4",onClick:u,children:[(0,y.jsx)(zo,{className:"yst-w-4 yst-text-slate-400 yst-shrink-0 yst--mt-0.5"}),(0,y.jsx)("div",{className:"yst-sr-only",children:(0,r.__)("Dismiss","wordpress-seo")})]}),(0,y.jsxs)("div",{className:B()("sidebar"===s?"":"yst-flex yst-justify-between yst-gap-3"),children:[(0,y.jsxs)("div",{className:c?"yst-text-woo-light":"yst-text-primary-500",children:[(0,y.jsx)("div",{className:"yst-text-2xl yst-font-bold",children:(0,r.__)("30% OFF","wordpress-seo")}),(0,y.jsx)("div",{className:"yst-flex yst-gap-2 yst-font-semibold yst-text-tiny",children:c?(0,y.jsxs)(y.Fragment,{children:["Yoast WooCommerce SEO ",(0,y.jsx)(Qs,{className:"yst-w-4 yst-scale-x-[-1]",...g})]}):(0,y.jsxs)(y.Fragment,{children:[" Yoast SEO Premium ",(0,y.jsx)(z,{className:"yst-w-4",...g})]})})]}),(0,y.jsx)("div",{className:"yst-flex yst-items-end",children:(0,y.jsxs)(v.Button,{as:"a",className:B()("sidebar"===s?"yst-w-full":"yst-w-[140px]","yst-flex yst-gap-1 yst-w-[140px] yst-h-7 yst-mt-4"),variant:"upsell",href:h,target:"_blank",rel:"noreferrer",children:[(0,r.__)("Buy now!","wordpress-seo"),(0,y.jsx)(R,{className:"yst-w-4 rtl:yst-rotate-180",...g})]})})]})]})})};function Vo(){return window.wpseoScriptData&&"1"===window.wpseoScriptData.isBlockEditor}Yo.propTypes={store:h().string,location:h().oneOf(["sidebar","metabox"])};const Go=()=>{const{editorMode:e,activeAIButtonId:s}=(0,t.useSelect)((e=>({editorMode:e("core/edit-post").getEditorMode(),activeAIButtonId:e("yoast-seo/editor").getActiveAIFixesButton()})),[]),{setMarkerStatus:i}=(0,t.useDispatch)("yoast-seo/editor");(0,o.useEffect)((()=>(i("visual"===e&&s||"text"===e?"disabled":"enabled"),()=>{i("disabled")})),[e,s])},Zo=(Xo=Yo,e=>!(()=>{var e,s;const i=(0,t.select)("yoast-seo/editor").getIsPremium(),o=(0,t.select)("yoast-seo/editor").getWarningMessage();return(i&&null!==(e=null===(s=(0,t.select)("yoast-seo-premium/editor"))||void 0===s?void 0:s.getMetaboxWarning())&&void 0!==e?e:[]).length>0||o.length>0})()&&(0,y.jsx)(Xo,{...e}));var Xo;function Qo({settings:e}){const{isTerm:s}=(0,t.useSelect)((e=>({isTerm:e("yoast-seo/editor").getIsTerm(),isProduct:e("yoast-seo/editor").getIsProduct(),isWooCommerceActive:e("yoast-seo/editor").getIsWooCommerceActive()})),[]),i=Vo();return i&&Go(),(0,y.jsx)(y.Fragment,{children:(0,y.jsxs)(x.Fill,{name:"YoastMetabox",children:[(0,y.jsx)(si,{renderPriority:1,children:(0,y.jsx)(Es,{})},"warning"),(0,y.jsx)(si,{renderPriority:2,children:(0,y.jsx)(Zo,{location:"metabox"})},"time-constrained-notification"),e.isKeywordAnalysisActive&&(0,y.jsxs)(si,{renderPriority:8,children:[(0,y.jsx)(cs.KeywordInput,{isSEMrushIntegrationActive:e.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&(0,y.jsx)(x.Fill,{name:"YoastRelatedKeyphrases",children:(0,y.jsx)(Bo,{})})]},"keyword-input"),(0,y.jsx)(si,{renderPriority:9,children:(0,y.jsx)(As,{id:"yoast-snippet-editor-metabox",title:(0,r.__)("Search appearance","wordpress-seo"),initialIsOpen:!0,children:(0,y.jsx)(Cs,{hasPaperStyle:!1})})},"search-appearance"),e.isContentAnalysisActive&&(0,y.jsx)(si,{renderPriority:10,children:(0,y.jsx)(cs.ReadabilityAnalysis,{shouldUpsell:e.shouldUpsell})},"readability-analysis"),e.isKeywordAnalysisActive&&(0,y.jsx)(si,{renderPriority:20,children:(0,y.jsx)(o.Fragment,{children:(0,y.jsx)(cs.SeoAnalysis,{shouldUpsell:e.shouldUpsell})})},"seo-analysis"),e.isInclusiveLanguageAnalysisActive&&(0,y.jsx)(si,{renderPriority:21,children:(0,y.jsx)(cs.InclusiveLanguageAnalysis,{})},"inclusive-language-analysis"),e.isKeywordAnalysisActive&&(0,y.jsx)(si,{renderPriority:22,children:e.shouldUpsell&&(0,y.jsx)(Ho,{})},"additional-keywords-upsell"),e.isKeywordAnalysisActive&&e.isWincherIntegrationActive&&(0,y.jsx)(si,{renderPriority:23,children:(0,y.jsx)(ls,{location:"metabox"})},"wincher-seo-performance"),e.shouldUpsell&&!s&&(0,y.jsx)(si,{renderPriority:25,children:(0,y.jsx)(ei,{})},"internal-linking-suggestions-upsell"),e.isCornerstoneActive&&(0,y.jsx)(si,{renderPriority:30,children:(0,y.jsx)(ps,{})},"cornerstone"),e.displayAdvancedTab&&(0,y.jsx)(si,{renderPriority:40,children:(0,y.jsx)(As,{id:"collapsible-advanced-settings",title:(0,r.__)("Advanced","wordpress-seo"),children:(0,y.jsx)(di,{})})},"advanced"),e.displaySchemaSettings&&(0,y.jsx)(si,{renderPriority:50,children:(0,y.jsx)(Do,{})},"schema"),i&&(0,y.jsx)(si,{renderPriority:24,children:(0,y.jsx)(cs.ContentBlocks,{})},"content-blocks"),(0,y.jsx)(si,{renderPriority:-1,children:(0,y.jsx)(So,{target:"wpseo-section-social"})},"social"),e.isInsightsEnabled&&(0,y.jsx)(si,{renderPriority:52,children:(0,y.jsx)(Zs,{location:"metabox"})},"insights")]})})}Qo.propTypes={settings:h().object.isRequired};const Jo=(0,oe.compose)([(0,t.withSelect)(((e,t)=>{const{getPreferences:s}=e("yoast-seo/editor");return{settings:s(),store:t.store}}))])(Qo);function er({target:e,store:t,theme:s}){return(0,y.jsxs)(X,{target:e,children:[(0,y.jsx)(ie,{store:t,theme:s}),(0,y.jsx)(Jo,{store:t,theme:s})]})}er.propTypes={target:h().string.isRequired,store:h().object.isRequired,theme:h().object.isRequired};const tr=({error:e})=>{const s=(0,o.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),i=(0,t.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/sidebar-error-support")),[]),r=(0,t.useSelect)((e=>e("yoast-seo/editor").getPreference("isRtl",!1)),[]);return(0,y.jsx)(v.Root,{context:{isRtl:r},children:(0,y.jsx)(I,{error:e,children:(0,y.jsx)(I.VerticalButtons,{supportLink:i,handleRefreshClick:s})})})};function sr({theme:e}){return(0,y.jsx)(se,{theme:e,location:"sidebar",children:(0,y.jsx)(v.ErrorBoundary,{FallbackComponent:tr,children:(0,y.jsx)(x.Slot,{name:"YoastSidebar",children:e=>k(e)})})})}function ir({score:e,label:t,scoreValue:s=""}){return(0,y.jsxs)("div",{className:"yoast-analysis-check",children:[(0,y.jsx)(Y.SvgIcon,{...Z(e)}),(0,y.jsxs)("span",{children:[" ",t," ",s&&(0,y.jsx)("strong",{children:s})]})]})}function or({checklist:e,onClick:t}){const s=e.every((e=>"good"===e.score));return(0,y.jsxs)(o.Fragment,{children:[e.map((e=>(0,y.jsx)(ir,{...e},e.label))),(0,y.jsx)("br",{}),!s&&(0,y.jsx)(v.Root,{children:(0,y.jsx)(v.Button,{variant:"secondary",size:"small",onClick:t,children:(0,r.__)("Improve your post with Yoast SEO","wordpress-seo")})})]})}function rr(e){return(0,d.isNil)(e)||(e/=10),function(e){switch(e){case"feedback":return{className:"na",screenReaderText:(0,r.__)("Not available","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("Not available","wordpress-seo"),screenReaderInclusiveLanguageText:(0,r.__)("Not available","wordpress-seo")};case"bad":return{className:"bad",screenReaderText:(0,r.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("Needs improvement","wordpress-seo"),screenReaderInclusiveLanguageText:(0,r.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:(0,r.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("OK","wordpress-seo"),screenReaderInclusiveLanguageText:(0,r.__)("Potentially non-inclusive","wordpress-seo")};case"good":return{className:"good",screenReaderText:(0,r.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("Good","wordpress-seo"),screenReaderInclusiveLanguageText:(0,r.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""}}}(G.interpreters.scoreToRating(e))}function nr(e,t){const{isKeywordAnalysisActive:s}=t.getPreferences();if(s){const s=rr(t.getReadabilityResults().overallScore);e.push({label:(0,r.__)("Readability analysis:","wordpress-seo"),score:s.className,scoreValue:s.screenReaderReadabilityText})}}function ar(e,t){const{isContentAnalysisActive:s}=t.getPreferences();if(s){const s=rr(t.getResultsForFocusKeyword().overallScore),i=p().isPremium;e.push({label:i?(0,r.__)("Premium SEO analysis:","wordpress-seo"):(0,r.__)("SEO analysis:","wordpress-seo"),score:s.className,scoreValue:s.screenReaderReadabilityText})}}function lr(e,t){const{isInclusiveLanguageAnalysisActive:s}=t.getPreferences();if(s){const s=rr(t.getInclusiveLanguageResults().overallScore);e.push({label:(0,r.__)("Inclusive language:","wordpress-seo"),score:s.className,scoreValue:s.screenReaderInclusiveLanguageText})}}tr.propTypes={error:h().object.isRequired},ir.propTypes={score:u.string.isRequired,label:u.string.isRequired,scoreValue:u.string},or.propTypes={checklist:h().array.isRequired,onClick:h().func.isRequired};const cr=(0,oe.compose)([(0,t.withSelect)((function(e){const t=e("yoast-seo/editor"),s=[];return ar(s,t),nr(s,t),lr(s,t),s.push(...Object.values(t.getChecklistItems())),{checklist:s}})),(0,t.withDispatch)((function(e){const{openGeneralSidebar:t}=e("core/edit-post");return{onClick:()=>{t("yoast-seo/seo-sidebar")}}}))])(or),dr=(0,oe.compose)([(0,t.withSelect)((e=>{const t=e("yoast-seo/editor"),s=rr(t.getResultsForFocusKeyword().overallScore),i=rr(t.getReadabilityResults().overallScore),{isKeywordAnalysisActive:o,isContentAnalysisActive:r}=t.getPreferences();let n,a;switch(i.className){case"good":n=V.colors.$color_good;break;case"ok":n=V.colors.$color_ok;break;default:n=V.colors.$color_bad}switch(s.className){case"good":a=V.colors.$color_good;break;case"ok":a=V.colors.$color_ok;break;default:a=V.colors.$color_bad}return{readabilityScoreColor:n,seoScoreColor:a,isKeywordAnalysisActive:o,isContentAnalysisActive:r}}))])(b);var pr;function ur(){return ur=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},ur.apply(this,arguments)}const hr=e=>_.createElement("svg",ur({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 1600 1600"},e),pr||(pr=_.createElement("g",{fill:"none",fillRule:"evenodd"},_.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"}),_.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 gr;function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},mr.apply(this,arguments)}const yr=e=>_.createElement("svg",mr({xmlns:"http://www.w3.org/2000/svg",fill:"current",viewBox:"0 0 1200 1227"},e),gr||(gr=_.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 fr({permalink:e}){const t=encodeURI(e);return(0,y.jsxs)(o.Fragment,{children:[(0,y.jsx)("div",{children:(0,r.__)("Share your post!","wordpress-seo")}),(0,y.jsxs)("ul",{className:"yoast-seo-social-share-buttons",children:[(0,y.jsx)("li",{children:(0,y.jsxs)("a",{href:"https://www.facebook.com/sharer/sharer.php?u="+t,target:"_blank",rel:"noopener noreferrer",children:[(0,y.jsx)(hr,{}),(0,r.__)("Facebook","wordpress-seo"),(0,y.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */
(0,r.__)("(Opens in a new browser tab)","wordpress-seo")})]})}),(0,y.jsx)("li",{children:(0,y.jsxs)("a",{href:"https://twitter.com/share?url="+t,target:"_blank",rel:"noopener noreferrer",className:"x-share",children:[(0,y.jsx)(yr,{}),(0,r.__)("X","wordpress-seo"),(0,y.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */
(0,r.__)("(Opens in a new browser tab)","wordpress-seo")})]})})]})]})}fr.propTypes={permalink:h().string.isRequired};const wr=(0,oe.compose)([(0,t.withSelect)((e=>({permalink:e("core/editor").getPermalink()})))])(fr),br=_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))})),xr=window.wp.hooks,vr=e=>{var s,i;const r=null===(s=(0,t.useDispatch)("core/edit-post"))||void 0===s?void 0:s.openGeneralSidebar,n=null===(i=(0,t.useDispatch)("core/editor"))||void 0===i?void 0:i.closePublishSidebar,{openEditorModal:a}=(0,t.useDispatch)("yoast-seo/editor");return(0,o.useCallback)((()=>{n(),r("yoast-seo/seo-sidebar"),e&&a("yoast-search-appearance-modal")}),[n,r,a])},kr="yoast-seo/editor";function _r({isSeoDataDefault:e}){const s=(0,t.select)(kr).getPostType(),i=(0,o.useMemo)((()=>(null==e?void 0:e.isAllTitlesDefault)||!1),[e]),n=(0,o.useMemo)((()=>(null==e?void 0:e.isAllDescriptionsDefault)||!1),[e]),a=(0,o.useMemo)((()=>"post"===s&&(i||n)),[s,i,n]),l=(0,o.useMemo)((()=>i&&n?(0,r.__)("custom SEO titles and meta descriptions","wordpress-seo"):i?(0,r.__)("custom SEO titles","wordpress-seo"):n?(0,r.__)("custom meta descriptions","wordpress-seo"):void 0),[i,n]),c=(0,o.useMemo)((()=>i&&n?(0,r.__)("quick optimized SEO titles and meta descriptions","wordpress-seo"):i?(0,r.__)("quick optimized SEO titles","wordpress-seo"):n?(0,r.__)("quick optimized meta descriptions","wordpress-seo"):void 0),[i,n]),d=(0,o.useMemo)((()=>(0,r.sprintf)(/* translators: %1$s expands to "custom SEO titles" or "custom meta descriptions" or both. */
(0,r.__)("Stand out in the search results and attract more visitors by adding %1$s.","wordpress-seo"),l)),[l]),p=(0,o.useMemo)((()=>S((0,r.sprintf)(
/* translators: %1$s, %2$s expands to strong tags. %3$s, %4$s expands to emphasis tags.
  	%5$s expands to "quick optimized SEO titles" or "quick optimized meta descriptions" or both */
(0,r.__)("%1$sPro tip%2$s: Use %3$sAI Generate%4$s for %5$s.","wordpress-seo"),"<strong>","</strong>","<em>","</em>",c),{strong:(0,y.jsx)("strong",{}),em:(0,y.jsx)("em",{})})),[c]),u=(0,o.useMemo)((()=>i?n?[]:(0,xr.applyFilters)("yoast.replacementVariableEditor.additionalButtons",[],{fieldId:"yoast-google-preview-pre-publish",type:"title"}):[]),[i,n]),h=(0,o.useMemo)((()=>n?(0,xr.applyFilters)("yoast.replacementVariableEditor.additionalButtons",[],{fieldId:"yoast-google-preview-pre-publish",type:"description"}):[]),[i,n]),g=vr(!0),m=(0,o.useCallback)((()=>{g()}),[g]);return a&&(0,y.jsxs)(o.Fragment,{children:[(0,y.jsxs)("div",{className:"yst-flex yst-items-center yst-gap-1 yst-mb-[-25px]",children:[(0,y.jsx)(br,{className:"yst-w-4 yst-h-4 yst-text-amber-500"}),(0,y.jsx)("h4",{children:(0,r.__)("Default SEO data detected","wordpress-seo")})]}),(0,y.jsx)("p",{children:d}),u.length+h.length>0&&(0,y.jsx)("p",{children:p}),(0,y.jsx)(x.Slot,{name:"yoast.replacementVariableEditor.additionalButtons.yoast-google-preview-pre-publish"}),u.map(((e,t)=>(0,y.jsx)(o.Fragment,{children:e},`additional-button-pre-publish-sidebar-title-${t}`))),h.map(((e,t)=>(0,y.jsx)(o.Fragment,{children:e},`additional-button-pre-publish-sidebar-description-${t}`))),(0,y.jsx)(v.Root,{children:(0,y.jsx)(v.Button,{variant:"secondary",size:"small",className:"yst-mt-2",onClick:m,children:(0,r.__)("Write custom SEO data","wordpress-seo")})})]})}function jr({checklist:e,onClick:t,isSeoDataDefault:s}){let i;return i=e.every((e=>"good"===e.score))?(0,r.__)("We've analyzed your post. Everything looks good. Well done!","wordpress-seo"):(0,r.__)("We've analyzed your post. There is still room for improvement!","wordpress-seo"),(0,y.jsx)(o.Fragment,{children:(0,y.jsxs)(l.LocationProvider,{value:"pre-publish",children:[(0,y.jsx)("p",{children:i}),(0,y.jsx)(or,{checklist:e,onClick:t}),(0,y.jsx)(_r,{isSeoDataDefault:s})]})})}function Sr(e){const{isRecentTitlesDefault:t,isRecentDescriptionsDefault:s}=e.getPreferences(),i=e.getSnippetEditorData(),o=e.getSeoTitleTemplate(),r=e.getSeoDescriptionTemplate(),n=i.title.trim()===o.trim(),a=i.description.trim()===r.trim();return{isAllTitlesDefault:t&&n,isAllDescriptionsDefault:s&&a}}_r.propTypes={isSeoDataDefault:h().object.isRequired},jr.propTypes={checklist:h().array.isRequired,onClick:h().func.isRequired,isSeoDataDefault:h().object.isRequired};const Tr=(0,oe.compose)([(0,t.withSelect)((function(e){const t=e("yoast-seo/editor"),s=[];return function(e,t){t.getFocusKeyphrase()||e.push({label:(0,r.__)("No focus keyword was entered","wordpress-seo"),score:"bad"})}(s,t),ar(s,t),nr(s,t),lr(s,t),s.push(...Object.values(t.getChecklistItems())),{checklist:s,isSeoDataDefault:Sr(t)}})),(0,t.withDispatch)((function(e){const{closePublishSidebar:t,openGeneralSidebar:s}=e("core/edit-post");return{onClick:()=>{t(),s("yoast-seo/seo-sidebar")}}}))])(jr),Rr=(0,oe.compose)([(0,t.withSelect)(((e,t)=>{const{isAlertDismissed:s}=e(t.store||"yoast-seo/editor");return{isAlertDismissed:s(t.alertKey)}})),(0,t.withDispatch)(((e,t)=>{const{dismissAlert:s}=e(t.store||"yoast-seo/editor");return{onDismissed:()=>s(t.alertKey)}}))]),Cr=({children:e,id:t,hasIcon:s=!0,title:i,image:o=null,isAlertDismissed:n,onDismissed:a})=>n?null:(0,y.jsxs)("div",{id:t,className:"notice-yoast yoast is-dismissible yoast-webinar-dashboard yoast-general-page-notices",children:[(0,y.jsxs)("div",{className:"notice-yoast__container",children:[(0,y.jsxs)("div",{children:[(0,y.jsxs)("div",{className:"notice-yoast__header",children:[s&&(0,y.jsx)("span",{className:"yoast-icon"}),(0,y.jsx)("h2",{className:"notice-yoast__header-heading yoast-notice-migrated-header",children:i})]}),(0,y.jsx)("div",{className:"notice-yoast-content",children:(0,y.jsx)("p",{children:e})})]}),o&&(0,y.jsx)(o,{height:"60"})]}),(0,y.jsx)("button",{type:"button",className:"notice-dismiss",onClick:a,children:(0,y.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */
(0,r.__)("Dismiss this notice.","wordpress-seo")})})]});Cr.propTypes={children:h().node.isRequired,id:h().string.isRequired,hasIcon:h().bool,title:h().any.isRequired,image:h().elementType,isAlertDismissed:h().bool.isRequired,onDismissed:h().func.isRequired};const Er=Rr(Cr),Ir="trustpilot-review-notification",Lr="yoast-seo/editor",Ar=()=>{const e=(0,t.useSelect)((e=>e(Lr).getIsPremium()),[]),s=(0,t.useSelect)((e=>e(Lr).isAlertDismissed(Ir)),[]),{overallScore:i}=(0,t.useSelect)((e=>e(Lr).getResultsForFocusKeyword()),[]),{dismissAlert:r}=(0,t.useDispatch)(Lr),n=(0,o.useCallback)((()=>r(Ir)),[r]),[a,l]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{var e;"good"===(null===(e=rr(i))||void 0===e?void 0:e.className)&&l(!0)}),[i]),{shouldShow:!e&&!s&&a,dismiss:n}},Fr=(0,ce.makeOutboundLink)(),Pr=()=>{const{shouldShow:e,dismiss:s}=Ar(),{locationContext:i}=(0,l.useRootContext)(),o=(0,t.useSelect)((e=>e(Lr).selectLink("https://yoa.st/trustpilot-review",{context:i})),[i]);return(0,y.jsxs)(Cr,{alertKey:Ir,store:Lr,id:Ir,title:(0,r.__)("Show Yoast SEO some love!","wordpress-seo"),hasIcon:!1,isAlertDismissed:!e,onDismissed:s,children:[(0,r.__)("Happy with the plugin?","wordpress-seo")," ",(0,y.jsx)(Fr,{href:o,rel:"noopener noreferrer",children:(0,r.__)("Leave a quick review","wordpress-seo")}),"."]})};var Mr,qr,Or,Nr,Dr,Ur,Wr,$r,Br,Kr,Hr,zr,Yr,Vr,Gr,Zr,Xr,Qr,Jr,en,tn,sn,on,rn,nn,an,ln,cn,dn,pn,un,hn,gn,mn,yn,fn,wn,bn,xn,vn,kn,jn,Sn,Tn,Rn,Cn,En;function In(){return In=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},In.apply(this,arguments)}const Ln=e=>_.createElement("svg",In({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 448 360"},e),Mr||(Mr=_.createElement("circle",{cx:226,cy:211,r:149,fill:"#f0ecf0"})),qr||(qr=_.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"})),Or||(Or=_.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"})),Nr||(Nr=_.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"})),Dr||(Dr=_.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"})),Ur||(Ur=_.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"})),Wr||(Wr=_.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"})),$r||($r=_.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"})),Br||(Br=_.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"})),Kr||(Kr=_.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"})),Hr||(Hr=_.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"})),zr||(zr=_.createElement("circle",{cx:254.13,cy:104.05,r:4.19,fill:"#000001"})),Yr||(Yr=_.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"})),Vr||(Vr=_.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"})),Gr||(Gr=_.createElement("circle",{cx:219.55,cy:95.28,r:4,fill:"#000001"})),Zr||(Zr=_.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"})),Xr||(Xr=_.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"})),Qr||(Qr=_.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"})),Jr||(Jr=_.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"})),en||(en=_.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"})),tn||(tn=_.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"})),sn||(sn=_.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"})),on||(on=_.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"})),rn||(rn=_.createElement("circle",{cx:38.13,cy:30.03,r:3.14,fill:"#b89ac8"})),nn||(nn=_.createElement("circle",{cx:60.26,cy:39.96,r:3.14,fill:"#e31e0c"})),an||(an=_.createElement("circle",{cx:50.29,cy:25.63,r:3.14,fill:"#3baa45"})),ln||(ln=_.createElement("circle",{cx:22.19,cy:19.21,r:3.14,fill:"#2ca9e1"})),cn||(cn=_.createElement("circle",{cx:22.19,cy:30.03,r:3.14,fill:"#e31e0c"})),dn||(dn=_.createElement("circle",{cx:26.86,cy:8.28,r:3.14,fill:"#3baa45"})),pn||(pn=_.createElement("circle",{cx:49.32,cy:39.99,r:3.14,fill:"#e31e0c"})),un||(un=_.createElement("circle",{cx:63.86,cy:59.52,r:3.14,fill:"#f8ad39"})),hn||(hn=_.createElement("circle",{cx:50.88,cy:50.72,r:3.14,fill:"#3baa45"})),gn||(gn=_.createElement("circle",{cx:63.47,cy:76.17,r:3.14,fill:"#e31e0c"})),mn||(mn=_.createElement("circle",{cx:38.34,cy:14.83,r:3.14,fill:"#2ca9e1"})),yn||(yn=_.createElement("circle",{cx:44.44,cy:5.92,r:3.14,fill:"#f8ad39"})),fn||(fn=_.createElement("circle",{cx:57.42,cy:10.24,r:3.14,fill:"#e31e0c"})),wn||(wn=_.createElement("circle",{cx:66.81,cy:12.4,r:3.14,fill:"#2ca9e1"})),bn||(bn=_.createElement("circle",{cx:77.95,cy:5.14,r:3.14,fill:"#b89ac8"})),xn||(xn=_.createElement("circle",{cx:77.95,cy:30.34,r:3.14,fill:"#e31e0c"})),vn||(vn=_.createElement("circle",{cx:80.97,cy:16.55,r:3.14,fill:"#f8ad39"})),kn||(kn=_.createElement("circle",{cx:62.96,cy:27.27,r:3.14,fill:"#3baa45"})),jn||(jn=_.createElement("circle",{cx:75.36,cy:48.67,r:3.14,fill:"#2ca9e1"})),Sn||(Sn=_.createElement("circle",{cx:76.11,cy:65.31,r:3.14,fill:"#3baa45"})),Tn||(Tn=_.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"})),Rn||(Rn=_.createElement("path",{fill:"#074a67",d:"M67.75 251.08c0-4.65 10.13-72.65 10.13-72.65h2.8l-9.09 72.3z"})),Cn||(Cn=_.createElement("ellipse",{cx:255.38,cy:103.18,fill:"#fff",rx:1.84,ry:1.77})),En||(En=_.createElement("ellipse",{cx:221.24,cy:94.75,fill:"#fff",rx:1.84,ry:1.77}))),An=({store:e="yoast-seo/editor",image:s=Ln,url:i,...o})=>(0,t.useSelect)((t=>t(e).getIsPremium()))?null:(0,y.jsxs)(Er,{alertKey:"webinar-promo-notification",store:e,id:"webinar-promo-notification",title:(0,r.__)("Join our FREE webinar for SEO success","wordpress-seo"),image:s,url:i,...o,children:[(0,r.__)("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,y.jsx)("a",{href:i,target:"_blank",rel:"noreferrer",children:(0,r.__)("Sign up today!","wordpress-seo")})]});An.propTypes={store:h().string,image:h().elementType,url:h().string.isRequired};const Fn=An,Pn=(e="yoast-seo/editor")=>{const s=(0,t.select)(e).isPromotionActive("black-friday-promotion"),i=(0,t.select)(e).isAlertDismissed("black-friday-promotion");return!s||i},Mn=_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.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"}))})),qn=({id:e,postTypeName:t,children:s,title:i,isOpen:n,open:a,close:c,shouldCloseOnClickOutside:d=!0,showChangesWarning:p=!0,SuffixHeroIcon:u=null})=>(0,y.jsxs)(o.Fragment,{children:[n&&(0,y.jsx)(l.LocationProvider,{value:"modal",children:(0,y.jsxs)(ue,{title:i,onRequestClose:c,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal",id:"id",shouldCloseOnClickOutside:d,children:[(0,y.jsx)("div",{className:"yoast-content-container",children:(0,y.jsx)("div",{className:"yoast-modal-content",children:s})}),(0,y.jsxs)("div",{className:"yoast-notice-container",children:[(0,y.jsx)("hr",{}),(0,y.jsxs)("div",{className:"yoast-button-container",children:[p&&(0,y.jsx)("p",{children:/* Translators: %s translates to the Post Label in singular form */
(0,r.sprintf)((0,r.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),t)}),(0,y.jsx)("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:c,children:/* Translators: %s translates to the Post Label in singular form */
(0,r.sprintf)((0,r.__)("Return to your %s","wordpress-seo"),t)})]})]})]})}),(0,y.jsx)(we,{id:e+"-open-button",title:i,SuffixHeroIcon:u,suffixIcon:u?null:{size:"20px",icon:"pencil-square"},onClick:a})]});qn.propTypes={id:h().string.isRequired,postTypeName:h().string.isRequired,children:h().oneOfType([h().node,h().arrayOf(h().node)]).isRequired,title:h().string.isRequired,isOpen:h().bool.isRequired,open:h().func.isRequired,close:h().func.isRequired,shouldCloseOnClickOutside:h().bool,showChangesWarning:h().bool,SuffixHeroIcon:h().element};const On=qn,Nn=(0,oe.compose)([(0,t.withSelect)(((e,t)=>{const{getPostOrPageString:s,getIsModalOpen:i}=e("yoast-seo/editor");return{postTypeName:s(),isOpen:i(t.id)}})),(0,t.withDispatch)(((e,t)=>{const{openEditorModal:s,closeEditorModal:i}=e("yoast-seo/editor");return{open:()=>s(t.id),close:i}}))])(On),Dn=m()(Mn)`
	width: 18px;
	height: 18px;
	margin: 3px;
`,Un=({location:e="sidebar"})=>{const s=(0,t.useSelect)((e=>e("yoast-seo/editor").getIsElementorEditor()),[]),i=(0,t.useSelect)((e=>e("yoast-seo/editor").isFleschReadingEaseAvailable()),[]),o=ne();return(0,y.jsx)(Nn,{title:(0,r.__)("Insights","wordpress-seo"),id:`yoast-insights-modal-${e}`,shouldCloseOnClickOutside:!s,showChangesWarning:!1,SuffixHeroIcon:(0,y.jsx)(Dn,{className:"yst-text-slate-500",...o}),children:(0,y.jsxs)("div",{className:"yoast-insights yoast-modal-content--columns",children:[(0,y.jsx)($s,{location:e}),(0,y.jsxs)("div",{children:[i&&(0,y.jsx)("div",{className:"yoast-insights-row",children:(0,y.jsx)(qs,{})}),(0,y.jsxs)("div",{className:"yoast-insights-row yoast-insights-row--columns",children:[(0,y.jsx)(Fs,{}),(0,y.jsx)(Bs,{})]}),(0,Is.isFeatureEnabled)("TEXT_FORMALITY")&&(0,y.jsx)(Vs,{location:e,name:"YoastTextFormalityMetabox"})]})]})})};Un.propTypes={location:h().string};const Wn=Un,$n=_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.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 Bn{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,d.isString)(e)?(0,d.isUndefined)(t)||(0,d.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,d.isString)(e)?(0,d.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,d.isString)(e)?(0,d.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,s,i){if(!(0,d.isString)(e))return console.error("Failed to register modification for plugin "+s+". Expected parameter `modification` to be a string."),!1;if(!(0,d.isFunction)(t))return console.error("Failed to register modification for plugin "+s+". Expected parameter `callable` to be a function."),!1;if(!(0,d.isString)(s))return console.error("Failed to register modification for plugin "+s+". Expected parameter `pluginName` to be a string."),!1;if(!1===this._validateOrigin(s))return console.error("Failed to register modification for plugin "+s+". The integration has not finished loading yet."),!1;const o={callable:t,origin:s,priority:(0,d.isNumber)(i)?i:10};return(0,d.isUndefined)(this.modifications[e])&&(this.modifications[e]=[]),this.modifications[e].push(o),!0}_registerAssessment(e,t,s,i){return(0,d.isString)(t)?(0,d.isObject)(s)?(0,d.isString)(i)?(t=i+"-"+t,e.addAssessment(t,s),!0):(console.error("Failed to register assessment for plugin "+i+". Expected parameter `pluginName` to be a string."),!1):(console.error("Failed to register assessment for plugin "+i+". Expected parameter `assessment` to be a function."),!1):(console.error("Failed to register test for plugin "+i+". Expected parameter `name` to be a string."),!1)}_applyModifications(e,t,s){let i=this.modifications[e];return!(0,d.isArray)(i)||i.length<1||(i=this._stripIllegalModifications(i),i.sort(((e,t)=>e.priority-t.priority)),(0,d.forEach)(i,(function(i){const o=i.callable(t,s);typeof o==typeof t?t=o:console.error("Modification with name "+e+" performed by plugin with name "+i.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,d.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,d.reduce)(this.plugins,(function(e,t){return e&&"ready"===t.status}),!0)}_pollTimeExceeded(){(0,d.forEach)(this.plugins,(function(e,t){(0,d.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,d.forEach)(e,((t,s)=>{!1===this._validateOrigin(t.origin)&&delete e[s]})),e}_validateOrigin(e){return"ready"===this.plugins[e].status}_validateUniqueness(e){return(0,d.isUndefined)(this.plugins[e])}}let Kn=null;const Hn=()=>{if(null===Kn){const e=(0,t.dispatch)("yoast-seo/editor").runAnalysis;Kn=window.YoastSEO.app&&window.YoastSEO.app.pluggable?window.YoastSEO.app.pluggable:new Bn(e)}return Kn},zn=(e,t,s)=>Hn().loaded?Hn()._applyModifications(e,t,s):t,{stripHTMLTags:Yn}=ce.strings,Vn=(e,s)=>{const i=(0,t.select)("yoast-seo/editor").getSnippetEditorTemplates();""===e.title&&(e.title=i.title),""===e.description&&(e.description=i.description);let o=0;return s.shortenedBaseUrl&&"string"==typeof s.shortenedBaseUrl&&(o=s.shortenedBaseUrl.length),e.url=e.url.replace(/\s+/g,"-"),"-"===e.url[e.url.length-1]&&(e.url=e.url.slice(0,-1)),"-"===e.url[o]&&(e.url=e.url.slice(0,o)+e.url.slice(o+1)),{url:e.url,title:Yn(zn("data_page_title",e.title)),description:Yn(zn("data_meta_desc",e.description)),filteredSEOTitle:Yn(zn("data_page_title",e.filteredSEOTitle))}},Gn=({isLoading:e,onLoad:t,location:s,...i})=>((0,o.useEffect)((()=>{setTimeout((()=>{e&&t()}))})),e?null:(0,y.jsx)(ms,{icon:"eye",hasPaperStyle:i.hasPaperStyle,children:(0,y.jsx)(us.SnippetEditor,{...i,descriptionPlaceholder:(0,r.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:Vn,showCloseButton:!1,idSuffix:s})}));Gn.propTypes={isLoading:h().bool.isRequired,onLoad:h().func.isRequired,hasPaperStyle:h().bool.isRequired,location:h().string.isRequired};const Zn=(0,oe.compose)([(0,t.withSelect)((e=>{const{getBaseUrlFromSettings:t,getDateFromSettings:s,getEditorDataImageUrl:i,getFocusKeyphrase:o,getRecommendedReplaceVars:r,getSiteIconUrlFromSettings:n,getSnippetEditorData:a,getSnippetEditorIsLoading:l,getSnippetEditorMode:c,getSnippetEditorWordsToHighlight:d,isCornerstoneContent:p,getContentLocale:u,getSiteName:h,getReplaceVars:g}=e("yoast-seo/editor");return{baseUrl:t(),data:a(),date:s(),faviconSrc:n(),isLoading:l(),keyword:o(),mobileImageSrc:i(),mode:c(),recommendedReplacementVariables:r(),replacementVariables:g(),wordsToHighlight:d(),isCornerstone:p(),locale:u(),siteName:h()}})),(0,t.withDispatch)((e=>{const{updateData:t,switchMode:s,updateAnalysisData:i,loadSnippetEditorData:o}=e("yoast-seo/editor");return{onChange:(e,i)=>{switch(e){case"mode":s(i);break;case"slug":t({slug:i});break;default:t({[e]:i})}},onChangeAnalysisData:i,onLoad:o}})),ds()])(Gn),Xn=m()($n)`
	width: 18px;
	height: 18px;
	margin: 3px;
`,Qn=()=>{const e=ne(),s=(0,t.useSelect)((e=>e("yoast-seo/editor").getIsElementorEditor()),[]);return(0,y.jsxs)(Nn,{title:(0,r.__)("Search appearance","wordpress-seo"),id:"yoast-search-appearance-modal",shouldCloseOnClickOutside:!1,SuffixHeroIcon:(0,y.jsx)(Xn,{className:"yst-text-slate-500",...e}),children:[!0===s&&(0,y.jsx)(Zn,{showCloseButton:!1,hasPaperStyle:!1}),!1===s&&(0,y.jsx)(Cs,{showCloseButton:!1,hasPaperStyle:!1})]})},Jn=_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.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"}))})),ea=m()(Y.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);
	}

`,ta=e=>(0,y.jsx)(ea,{hasPadding:!1,hasSeparator:!0,...e}),sa=m()(Jn)`
	width: 18px;
	height: 18px;
	margin: 3px;
`,ia=e=>{const{useOpenGraphData:t,useTwitterData:s}=e;if(!t&&!s)return;const i=ne();return(0,y.jsxs)(Nn
/* translators: Social media appearance refers to a preview of how a page will be represented on social media. */,{title:(0,r.__)("Social media appearance","wordpress-seo"),id:"yoast-social-appearance-modal",shouldCloseOnClickOutside:!1,SuffixHeroIcon:(0,y.jsx)(sa,{className:"yst-text-slate-500",...i}),children:[t&&(0,y.jsxs)(o.Fragment,{children:[(0,y.jsx)(xo,{children:(0,r.__)("Determine how your post should look on social media like Facebook, X, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")}),(0,y.jsx)(go,{}),s&&(0,y.jsx)(bo,{children:(0,r.__)("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")})]}),t&&s&&(0,y.jsx)(ta,{title:(0,r.__)("X appearance","wordpress-seo"),hasSeparator:!0,initialIsOpen:!1,children:(0,y.jsx)(wo,{})}),!t&&s&&(0,y.jsxs)(o.Fragment,{children:[(0,y.jsx)(xo,{children:(0,r.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below.","wordpress-seo")}),(0,y.jsx)(wo,{})]})]})};ia.propTypes={useOpenGraphData:h().bool.isRequired,useTwitterData:h().bool.isRequired};const oa=ia,ra=({title:e,children:t,prefixIcon:s=null,subTitle:i="",hasBetaBadgeLabel:r=!1,hasNewBadgeLabel:n=!1,buttonId:a=null,renderNewBadgeLabel:l=(()=>{})})=>{const[c,d]=(0,o.useState)(!1),p=(0,o.useCallback)((()=>{d((e=>!e))}),[d]);return(0,y.jsxs)("div",{className:"yoast components-panel__body "+(c?"is-opened":""),children:[(0,y.jsx)("h2",{className:"components-panel__body-title",children:(0,y.jsxs)("button",{onClick:p,className:"components-button components-panel__body-toggle",type:"button",id:a,children:[(0,y.jsx)("span",{className:"yoast-icon-span",style:{fill:`${s&&s.color||""}`},children:s&&(0,y.jsx)(Y.SvgIcon,{icon:s.icon,color:s.color,size:s.size})}),!n&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("span",{className:"yoast-title-container",children:[(0,y.jsx)("div",{className:"yoast-title",children:e}),i&&(0,y.jsx)("div",{className:"yoast-subtitle",children:i})]}),r&&(0,y.jsx)(Y.BetaBadge,{})]}),n&&(0,y.jsxs)("div",{className:"yst-flex-grow yst-flex yst-items-center yst-gap-2",children:[(0,y.jsxs)("span",{className:"yst-overflow-x-hidden yst-leading-normal",children:[(0,y.jsx)("div",{className:"yoast-title",children:e}),i&&(0,y.jsx)("div",{className:"yoast-subtitle",children:i})]}),l()]}),(0,y.jsx)("span",{className:"yoast-chevron","aria-hidden":"true"})]})}),c&&t]})},na=ra;function aa({settings:e}){const t=(({webinarIntroUrl:e})=>{const{shouldShow:t}=Ar(),s=(e=>{for(const t of e)if(null!=t&&t.getIsEligible())return t;return null})([{getIsEligible:()=>t,component:Pr},{getIsEligible:Pn,component:()=>(0,y.jsx)(Fn,{hasIcon:!1,image:null,url:e})},{getIsEligible:()=>!0,component:()=>(0,y.jsx)(Yo,{})}]);return(null==s?void 0:s.component)||null})({webinarIntroUrl:(0,d.get)(window,"wpseoScriptData.webinarIntroBlockEditorUrl","https://yoa.st/webinar-intro-block-editor")}),s=Vo();return s&&Go(),(0,y.jsx)(o.Fragment,{children:(0,y.jsxs)(x.Fill,{name:"YoastSidebar",children:[(0,y.jsxs)(si,{renderPriority:1,children:[(0,y.jsx)(Es,{}),(0,y.jsx)("div",{style:{margin:"0 16px"},children:t&&(0,y.jsx)(t,{})})]},"warning"),e.isKeywordAnalysisActive&&(0,y.jsx)(si,{renderPriority:8,children:(0,y.jsx)(cs.KeywordInput,{isSEMrushIntegrationActive:e.isSEMrushIntegrationActive})},"keyword-input"),e.isKeywordAnalysisActive&&(0,y.jsx)(si,{renderPriority:10,children:(0,y.jsx)(o.Fragment,{children:(0,y.jsx)(cs.SeoAnalysis,{shouldUpsell:e.shouldUpsell})})},"seo"),e.isContentAnalysisActive&&(0,y.jsx)(si,{renderPriority:20,children:(0,y.jsx)(cs.ReadabilityAnalysis,{shouldUpsell:e.shouldUpsell})},"readability"),e.isInclusiveLanguageAnalysisActive&&(0,y.jsx)(si,{renderPriority:21,children:(0,y.jsx)(cs.InclusiveLanguageAnalysis,{})},"inclusive-language-analysis"),e.isKeywordAnalysisActive&&(0,y.jsx)(si,{renderPriority:22,children:e.shouldUpsell&&(0,y.jsx)(Ho,{})},"additional-keywords-upsell"),e.isKeywordAnalysisActive&&e.isWincherIntegrationActive&&(0,y.jsx)(si,{renderPriority:23,children:(0,y.jsx)(ls,{location:"sidebar"})}),e.shouldUpsell&&(0,y.jsx)(si,{renderPriority:25,children:(0,y.jsx)(ei,{})},"internal-linking-suggestions-upsell"),(0,y.jsx)(si,{renderPriority:26,children:(0,y.jsx)(Qn,{})},"search-appearance"),(e.useOpenGraphData||e.useTwitterData)&&(0,y.jsx)(si,{renderPriority:27,children:(0,y.jsx)(oa,{useOpenGraphData:e.useOpenGraphData,useTwitterData:e.useTwitterData})},"social-appearance"),e.displaySchemaSettings&&(0,y.jsx)(si,{renderPriority:28,children:(0,y.jsx)(na,{title:(0,r.__)("Schema","wordpress-seo"),children:(0,y.jsx)(Do,{})})},"schema"),s&&(0,y.jsx)(si,{renderPriority:29,children:(0,y.jsx)(cs.ContentBlocks,{})},"content-blocks"),e.displayAdvancedTab&&(0,y.jsx)(si,{renderPriority:30,children:(0,y.jsx)(na,{title:(0,r.__)("Advanced","wordpress-seo"),children:(0,y.jsx)(di,{})})},"advanced"),e.isCornerstoneActive&&(0,y.jsx)(si,{renderPriority:31,children:(0,y.jsx)(ps,{})},"cornerstone"),e.isInsightsEnabled&&(0,y.jsx)(si,{renderPriority:32,children:(0,y.jsx)(Wn,{location:"sidebar"})})]})})}ra.propTypes={title:h().string.isRequired,children:h().oneOfType([h().node,h().arrayOf(h().node)]).isRequired,prefixIcon:h().object,subTitle:h().string,hasBetaBadgeLabel:h().bool,hasNewBadgeLabel:h().bool,buttonId:h().string,renderNewBadgeLabel:h().func},aa.propTypes={settings:h().object.isRequired};const la=(0,t.withSelect)(((e,t)=>{const{getPreferences:s}=e("yoast-seo/editor");return{settings:s(),store:t.store}}))(aa);function ca({trackAll:e=d.noop,hasTrackedKeyphrases:t=!1}){return(0,y.jsxs)(o.Fragment,{children:[(0,y.jsx)(Y.FieldGroup,{label:(0,r.__)("SEO performance","wordpress-seo"),linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"]
/* translators: Hidden accessibility text. */,linkText:(0,r.__)("Learn more about the SEO performance feature.","wordpress-seo"),wrapperClassName:"yoast-field-group yoast-wincher-post-publish"}),(0,y.jsx)(ct,{}),t&&(0,y.jsx)("p",{children:(0,r.__)("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,y.jsx)("div",{className:"yoast",children:(0,y.jsx)(Y.NewButton,{variant:"secondary",small:!0,onClick:e,children:(0,r.__)("Track all keyphrases on this page","wordpress-seo")})}),(0,y.jsx)(ls,{location:"postpublish"})]})}ca.propTypes={trackAll:h().func,hasTrackedKeyphrases:h().bool};const da=(0,oe.compose)([(0,t.withSelect)((e=>{const{getWincherTrackedKeyphrases:t,hasWincherTrackedKeyphrases:s}=e("yoast-seo/editor");return{trackedKeyphrases:t(),hasTrackedKeyphrases:s()}})),(0,t.withDispatch)((e=>{const{setWincherOpenModal:t,setWincherTrackAllKeyphrases:s}=e("yoast-seo/editor");return{trackAll:()=>{s(!0),t("postpublish")}}}))])(ca);window.wp.annotations;const pa=/(<([a-z]|\/)[^<>]+>)/gi,{htmlEntitiesRegex:ua}=G.helpers.htmlEntities,ha=e=>{let t=0;return(0,d.forEachRight)(e,(e=>{const[s]=e;let i=s.length;/^<\/?br/.test(s)&&(i-=1),t+=i})),t},ga="<yoastmark class='yoast-text-mark'>",ma="</yoastmark>",ya='<yoastmark class="yoast-text-mark">';function fa(e,t,s,i,o){const r=i.clientId,n=(0,a.create)({html:e,multilineTag:s.multilineTag,multilineWrapperTag:s.multilineWrapperTag}).text;return(0,d.flatMap)(o,(s=>{let o;return o=s.hasBlockPosition&&s.hasBlockPosition()?function(e,t,s,i,o){if(t===e.getBlockClientId()){let t=e.getBlockPositionStart(),r=e.getBlockPositionEnd();if(e.isMarkForFirstBlockSection()){const e=((e,t,s)=>{const i="yoast/faq-block"===s?'<strong class="schema-faq-question">':'<strong class="schema-how-to-step-name">';return{blockStartOffset:e-=i.length,blockEndOffset:t-=i.length}})(t,r,s);t=e.blockStartOffset,r=e.blockEndOffset}if(i.slice(t,r)===o.slice(t,r))return[{startOffset:t,endOffset:r}];const n=((e,t,s)=>{const i=s.slice(0,e),o=s.slice(0,t),r=((e,t,s,i)=>{const o=[...e.matchAll(pa)];s-=ha(o);const r=[...t.matchAll(pa)];return{blockStartOffset:s,blockEndOffset:i-=ha(r)}})(i,o,e,t),n=((e,t,s,i)=>{let o=[...e.matchAll(ua)];return(0,d.forEachRight)(o,(e=>{const[,t]=e;s-=t.length})),o=[...t.matchAll(ua)],(0,d.forEachRight)(o,(e=>{const[,t]=e;i-=t.length})),{blockStartOffset:s,blockEndOffset:i}})(i,o,e=r.blockStartOffset,t=r.blockEndOffset);return{blockStartOffset:e=n.blockStartOffset,blockEndOffset:t=n.blockEndOffset}})(t,r,i);return[{startOffset:n.blockStartOffset,endOffset:n.blockEndOffset}]}return[]}(s,r,i.name,e,n):function(e,t){const s=t.getOriginal().replace(/(<([^>]+)>)/gi,""),i=t.getMarked().replace(/(<(?!\/?yoastmark)[^>]+>)/gi,""),o=function(e,t,s=!0){const i=[];if(0===e.length)return i;let o,r=0;for(s||(t=t.toLowerCase(),e=e.toLowerCase());(o=e.indexOf(t,r))>-1;)i.push(o),r=o+t.length;return i}(e,s);if(0===o.length)return[];const r=function(e){let t=e.indexOf(ga);const s=t>=0;s||(t=e.indexOf(ya));let i=null;const o=[];for(;t>=0;){if(i=(e=s?e.replace(ga,""):e.replace(ya,"")).indexOf(ma),i<t)return[];e=e.replace(ma,""),o.push({startOffset:t,endOffset:i}),t=s?e.indexOf(ga):e.indexOf(ya),i=null}return o}(i),n=[];return r.forEach((e=>{o.forEach((i=>{const o=i+e.startOffset;let r=i+e.endOffset;0===e.startOffset&&e.endOffset===t.getOriginal().length&&(r=i+s.length),n.push({startOffset:o,endOffset:r})}))})),n}(n,s),o?o.map((e=>({...e,block:r,richTextIdentifier:t}))):[]}))}const wa=e=>e[0].toUpperCase()+e.slice(1),ba=(e,t,s,i,o)=>(e=e.map((e=>{const r=`${e.id}-${o[0]}`,n=`${e.id}-${o[1]}`,a=wa(o[0]),l=wa(o[1]),c=e[`json${a}`],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),h=fa(c,r,s,i,p),g=fa(d,n,s,i,u);return h.concat(g)})),(0,d.flattenDeep)(e)),xa="yoast";let va=[];const ka={"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 _a(){const e=va.shift();e&&((0,t.dispatch)("core/annotations").__experimentalAddAnnotation(e),ja())}function ja(){(0,d.isFunction)(window.requestIdleCallback)?window.requestIdleCallback(_a,{timeout:1e3}):setTimeout(_a,150)}function Sa(){const e=(0,t.select)("core/block-editor").getSelectedBlock(),s=(0,t.select)("yoast-seo/editor").getActiveMarker();if(!e||!s)return;var i;i=e.clientId,(0,t.select)("core/annotations").__experimentalGetAnnotations().filter((e=>e.blockClientId===i&&e.source===xa)).forEach((e=>{(0,t.dispatch)("core/annotations").__experimentalRemoveAnnotation(e.id)}));const o=(0,t.select)("yoast-seo/editor").getResultById(s);if(void 0===o)return;const r=o.marks;var n;n=((e,t)=>{return(0,d.flatMap)((s=e.name,ka.hasOwnProperty(s)?ka[s]:[]),(s=>"yoast/faq-block"===e.name?((e,t,s)=>{const i=t.attributes[e.key];return 0===i.length?[]:ba(i,s,e,t,["question","answer"])})(s,e,t):"yoast/how-to-block"===e.name?((e,t,s)=>{const i=t.attributes[e.key];if(i&&0===i.length)return[];const o=[];return"steps"===e.key&&o.push(ba(i,s,e,t,["name","text"])),"jsonDescription"===e.key&&(s=s.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?!e.getBlockAttributeId():e)),o.push(fa(i,"description",e,t,s))),(0,d.flattenDeep)(o)})(s,e,t):function(e,t,s){const i=e.key,o=((e,t)=>{const s=e.attributes[t];return"string"==typeof s?s:(s||"").toString()})(t,i);return fa(o,i,e,t,s)}(s,e,t)));var s})(e,r),va=n.map((e=>({blockClientId:e.block,source:xa,richTextIdentifier:e.richTextIdentifier,range:{start:e.startOffset,end:e.endOffset}}))),ja()}const Ta=window.wp.htmlEntities,Ra=(0,ce.makeOutboundLink)(m().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: ${V.colors.$color_help_text};
	
	&:hover,
	&:focus {
		color: ${V.colors.$color_snippet_focus};	
	}
	
	// Overwrite the default blue active color for links.
	&:active {
		color: ${V.colors.$color_help_text};	
	}

	&::before {
		position: absolute;
		top: 0;
		left: 0;
		padding: 2px;
		content: "\f223";
	}
`);function Ca({isActive:e=!1,activeAttributes:t={},addingLink:s=!1,value:i={},onChange:n=d.noop,speak:l,stopAddingLink:c,contentRef:p={}}){const u=(0,o.useMemo)(d.uniqueId,[s]),[h,g]=(0,o.useState)(),m=(0,a.useAnchor)({editableContentElement:p.current,settings:{...Aa,isActive:e}}),f=(0,a.getActiveFormat)(i,"core/link"),w=e=>{var t;const{formats:s,start:i,text:o}=e,r=null==f||null===(t=f.attributes)||void 0===t?void 0:t.url;let n=i,a=i;const l=e=>{var t;return null===(t=s[e])||void 0===t?void 0:t.some((e=>{var t;return"core/link"===(null==e?void 0:e.type)&&(null==e||null===(t=e.attributes)||void 0===t?void 0:t.url)===r}))};for(!l(n)&&n>0&&l(n-1)&&(n--,a=n);n>0&&l(n-1);)n--;for(;a<((null==o?void 0:o.length)||0)&&l(a);)a++;return{start:n,end:a}};let b="";if(e&&f){const{start:e,end:t}=w(i);e<t&&(b=i.text.substring(e,t))}else i.start!==i.end&&(b=(0,a.getTextContent)((0,a.slice)(i)));const v={url:t.url,type:t.type,id:t.id,opensInNewTab:"_blank"===t.target,noFollow:t.rel&&t.rel.split(" ").includes("nofollow"),sponsored:t.rel&&t.rel.split(" ").includes("sponsored"),title:b,className:t.class,...h},k=e=>v.url===e.url&&(v.opensInNewTab!==e.opensInNewTab||v.noFollow!==e.noFollow||v.sponsored!==e.sponsored),_=e=>{if("number"==typeof e||"string"==typeof e)return String(e)},j=(0,y.jsx)(Ra,{href:window.wpseoAdminL10n["shortlinks.nofollow_sponsored"],className:"dashicons",children:(0,y.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */
(0,r.__)("Learn more about marking a link as nofollow or sponsored.","wordpress-seo")})}),T=S((0,r.sprintf)(
// translators: %1$s and %2$s are opening and closing code tags, %3$s is a help link.
(0,r.__)("Search engines should ignore this link (mark as %1$snofollow%2$s)%3$s","wordpress-seo"),"<code>","</code>","<helplink />"),{code:(0,y.jsx)("code",{}),helplink:j}),R=S((0,r.sprintf)(
// translators: %1$s and %2$s are opening and closing code tags, %3$s is a help link.
(0,r.__)("This is a sponsored link or advert (mark as %1$ssponsored%2$s)%3$s","wordpress-seo"),"<code>","</code>","<helplink />"),{code:(0,y.jsx)("code",{}),helplink:j}),C=[{id:"opensInNewTab",title:(0,r.__)("Open in new tab","wordpress-seo")},{id:"noFollow",title:T},{id:"sponsored",title:R}],{__experimentalLinkControl:E}=window.wp.blockEditor;return(0,y.jsx)(x.Popover,{anchor:m,focusOnMount:!!s&&"firstElement",onClose:c,position:"bottom center",placement:"bottom",shift:!0,children:(0,y.jsx)(E,{value:v,onChange:t=>{t={...h,...t};const s=k(t);if((e=>k(e)&&!e.url)(t=(e=>{var t;return k(t=e)&&!0===t.sponsored&&!0!==v.sponsored&&(e.noFollow=!0),(e=>k(e)&&!1===e.noFollow&&!1!==v.noFollow)(e)&&(e.sponsored=!1),e})(t)))return void g(t);const o=(0,Ds.prependHTTP)(t.url),p=function({url:e,type:t,id:s,opensInNewWindow:i,noFollow:o,sponsored:r,className:n}){const a={type:"core/link",attributes:{url:e}};t&&(a.attributes.type=t),s&&(a.attributes.id=s);let l=[];return i&&(a.attributes.target="_blank",l.push("noreferrer noopener")),r&&(l.push("sponsored"),l.push("nofollow")),o&&l.push("nofollow"),l.length>0&&(l=(0,d.uniq)(l),a.attributes.rel=l.join(" ")),n&&(a.attributes.class=n),a}({url:o,type:t.type,id:_(t.id),opensInNewWindow:t.opensInNewTab,noFollow:t.noFollow,sponsored:t.sponsored,className:t.className});(0,a.isCollapsed)(i)&&!e?((e,t,s)=>{const o=((e,t)=>e.title?e.title:t)(t,s),r=(0,a.applyFormat)((0,a.create)({text:o}),e,0,o.length);n((0,a.insert)(i,r))})(p,t,o):((e,t)=>{const{start:s,end:o}=w(i),r=s<o?i.text.substring(s,o):"";let l;if(void 0!==t&&""!==t&&t!==r&&s<o){const r=(0,a.remove)(i,s,o);r.start=s,r.end=s;const n=(0,a.applyFormat)((0,a.create)({text:t}),e,0,t.length);l=(0,a.insert)(r,n)}else l=(0,a.applyFormat)(i,e),l.start=l.end;l.activeFormats=[],n(l)})(p,t.title),s||c(),(t=>{!function(e){if(!e)return!1;const t=e.trim();if(!t)return!1;if(/^\S+:/.test(t)){const e=(0,Ds.getProtocol)(t);if(!(0,Ds.isValidProtocol)(e))return!1;if((0,d.startsWith)(e,"http")&&!/^https?:\/\/[^\/\s]/i.test(t))return!1;const s=(0,Ds.getAuthority)(t);if(!(0,Ds.isValidAuthority)(s))return!1;const i=(0,Ds.getPath)(t);if(i&&!(0,Ds.isValidPath)(i))return!1;const o=(0,Ds.getQueryString)(t);if(o&&!(0,Ds.isValidQueryString)(o))return!1;const r=(0,Ds.getFragment)(t);if(r&&!(0,Ds.isValidFragment)(r))return!1}return!((0,d.startsWith)(t,"#")&&!(0,Ds.isValidFragment)(t))}(t)?l((0,r.__)("Warning: the link has been inserted but may have errors. Please test it.","wordpress-seo"),"assertive"):l(e?(0,r.__)("Link edited.","wordpress-seo"):(0,r.__)("Link inserted.","wordpress-seo"),"assertive")})(o)},forceIsEditingLink:s,hasTextControl:!0,settings:C})},u)}Ca.propTypes={isActive:h().bool,activeAttributes:h().object,addingLink:h().bool,value:h().object,onChange:h().func,speak:h().func.isRequired,stopAddingLink:h().func.isRequired,contentRef:h().object};const Ea=(0,x.withSpokenMessages)(Ca),Ia="core/link",La=(0,r.__)("Link","wordpress-seo"),Aa={name:Ia,title:La,tagName:"a",className:null,attributes:{url:"href",type:"type",id:"id",target:"target",rel:"rel",class:"class"},replaces:"core/link",__unstablePasteRule(e,{html:t,plainText:s}){if((0,a.isCollapsed)(e))return e;const i=(t||s).replace(/<[^>]+>/g,"").trim();return(0,Ds.isURL)(i)?(window.console.log("Created link:\n\n",i),(0,a.applyFormat)(e,{type:Ia,attributes:{url:(0,Ta.decodeEntities)(i)}})):e},edit:(0,x.withSpokenMessages)(class extends o.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,s=(0,a.getTextContent)((0,a.slice)(e));s&&(0,Ds.isURL)(s)?t((0,a.applyFormat)(e,{type:Ia,attributes:{url:s}})):s&&(0,Ds.isEmail)(s)?t((0,a.applyFormat)(e,{type:Ia,attributes:{url:`mailto:${s}`}})):this.setState({addingLink:!0})}stopAddingLink(){this.setState({addingLink:!1}),this.props.onFocus()}onRemoveFormat(){const{value:e,onChange:t,speak:s}=this.props;t((0,a.removeFormat)(e,Ia)),s((0,r.__)("Link removed.","wordpress-seo"),"assertive")}render(){const{isActive:e,activeAttributes:t,value:s,onChange:i}=this.props,{RichTextToolbarButton:n,RichTextShortcut:a}=window.wp.blockEditor;return(0,y.jsxs)(o.Fragment,{children:[(0,y.jsx)(a,{type:"primary",character:"k",onUse:this.addLink}),(0,y.jsx)(a,{type:"primaryShift",character:"k",onUse:this.onRemoveFormat}),e&&(0,y.jsx)(n,{name:"link",icon:"editor-unlink",title:(0,r.__)("Unlink","wordpress-seo"),onClick:this.onRemoveFormat,isActive:e,shortcutType:"primaryShift",shortcutCharacter:"k"}),!e&&(0,y.jsx)(n,{name:"link",icon:"admin-links",title:La,onClick:this.addLink,isActive:e,shortcutType:"primary",shortcutCharacter:"k"}),(this.state.addingLink||e)&&(0,y.jsx)(Ea,{addingLink:this.state.addingLink,stopAddingLink:this.stopAddingLink,isActive:e,activeAttributes:t,value:s,onChange:i,contentRef:this.props.contentRef})]})}})};function Fa(){const e=p();return(0,d.get)(e,"contentLocale","en_US")}const{updateReplacementVariable:Pa,updateData:Ma,hideReplacementVariables:qa,setContentImage:Oa,updateSettings:Na,setEditorDataContent:Da,setEditorDataTitle:Ua,setEditorDataExcerpt:Wa,setEditorDataImageUrl:$a,setEditorDataSlug:Ba}=c.actions,Ka=s.g.jQuery;window.yoast=window.yoast||{},window.yoast.initEditorIntegration=function(s){(function(s){const a=p(),c=a.isPremium?"Yoast SEO Premium":"Yoast SEO",d=(0,y.jsx)(b,{});(0,e.updateCategory)("yoast-structured-data-blocks",{icon:d}),(0,e.updateCategory)("yoast-internal-linking-blocks",{icon:d}),(0,e.updateCategory)("yoast-ai-blocks",{icon:d});const u={isRtl:a.isRtl},h=s.getState().preferences,g=h.isKeywordAnalysisActive||h.isContentAnalysisActive,m=h.isKeywordAnalysisActive&&h.isWincherIntegrationActive;!function(){var e;const s="yoast-seo/document-panel",i=null===(e=(0,t.select)("core/preferences"))||void 0===e?void 0:e.get("core","openPanels");var o;i&&!i.includes(s)&&(null===(o=(0,t.dispatch)("core/editor"))||void 0===o||o.toggleEditorPanelOpened(s))}();const f={locationContext:"block-sidebar"},w={locationContext:"block-metabox"};(0,n.registerPlugin)("yoast-seo",{render:()=>(0,y.jsxs)(o.Fragment,{children:[(0,y.jsx)(i.PluginSidebarMoreMenuItem,{target:"seo-sidebar",icon:(0,y.jsx)(dr,{}),children:c}),(0,y.jsx)(i.PluginSidebar,{name:"seo-sidebar",title:c,children:(0,y.jsx)(l.Root,{context:f,children:(0,y.jsx)(sr,{store:s,theme:u})})}),(0,y.jsxs)(o.Fragment,{children:[(0,y.jsx)(la,{store:s,theme:u}),(0,y.jsx)(l.Root,{context:w,children:(0,y.jsx)(er,{target:"wpseo-metabox-root",store:s,theme:u})})]}),g&&(0,y.jsx)(i.PluginPrePublishPanel,{className:"yoast-seo-sidebar-panel",title:(0,r.__)("Yoast SEO","wordpress-seo"),initialOpen:!0,icon:(0,y.jsx)(o.Fragment,{}),children:(0,y.jsx)(Tr,{})}),(0,y.jsxs)(i.PluginPostPublishPanel,{className:"yoast-seo-sidebar-panel",title:(0,r.__)("Yoast SEO","wordpress-seo"),initialOpen:!0,icon:(0,y.jsx)(o.Fragment,{}),children:[(0,y.jsx)(wr,{}),m&&(0,y.jsx)(da,{})]}),g&&(0,y.jsx)(i.PluginDocumentSettingPanel,{name:"document-panel",className:"yoast-seo-sidebar-panel",title:(0,r.__)("Yoast SEO","wordpress-seo"),icon:(0,y.jsx)(o.Fragment,{}),children:(0,y.jsx)(cr,{})})]}),icon:(0,y.jsx)(dr,{})})})(s),function(){if("function"==typeof(0,d.get)(window,"wp.blockEditor.__experimentalLinkControl")){const e=(0,t.select)("core/rich-text").getFormatType("core/link"),s=(0,t.select)("core/rich-text").getFormatType("core/unknown");void 0!==s&&(0,t.dispatch)("core/rich-text").removeFormatTypes("core/unknown"),[Aa].forEach((({name:s,replaces:i,...o})=>{if(i&&(0,t.dispatch)("core/rich-text").removeFormatTypes(i),s){const t=e&&"core/link"===s?{...e,...o}:o;(0,a.registerFormatType)(s,t)}})),void 0!==s&&(0,a.registerFormatType)("core/unknown",s)}else console.warn((0,r.__)("Marking links with nofollow/sponsored has been disabled for WordPress installs < 5.4.","wordpress-seo")+" "+(0,r.sprintf)(
// translators: %1$s expands to Yoast SEO.
(0,r.__)("Please upgrade your WordPress version or install the Gutenberg plugin to get this %1$s feature.","wordpress-seo"),"Yoast SEO"))}(),function(e){(0,t.select)("core/editor")&&(0,t.select)("core/block-editor")&&(0,d.isFunction)((0,t.select)("core/block-editor").getBlocks)&&(0,t.select)("core/annotations")&&(0,d.isFunction)((0,t.dispatch)("core/annotations").__experimentalAddAnnotation)&&e.dispatch(c.actions.setMarkerStatus("enabled"))}(s)},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 s,i;this._data=this.getInitialData(e),s=this._data,i=this._store,(0,d.forEach)(s,((e,t)=>{vs.includes(t)||i.dispatch(ws(t,e))})),this._store.dispatch(qa(t)),this.subscribeToGutenberg(),this.subscribeToYoastSEO()}getInitialData(e){const t=this.collectGutenbergData();return e=function(e,t){if(!e.custom_taxonomies)return e;const s={};return(0,d.forEach)(e.custom_taxonomies,((e,t)=>{const{name:i,label:o,descriptionName:r,descriptionLabel:n}=function(e){const t=ks(e);return{name:"ct_"+t,label:bs(e+" (custom taxonomy)"),descriptionName:"ct_desc_"+t,descriptionLabel:bs(e+" description (custom taxonomy)")}}(t),a="string"==typeof e.name?(0,ce.decodeHTML)(e.name):e.name,l="string"==typeof e.description?(0,ce.decodeHTML)(e.description):e.description;s[i]={value:a,label:o},s[r]={value:l,label:n}})),t.dispatch(function(e){return{type:"SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLES_BATCH",updatedVariables:e}}(s)),(0,d.omit)({...e},"custom_taxonomies")}(e=function(e,t){return e.custom_fields?((0,d.forEach)(e.custom_fields,((e,s)=>{const{name:i,label:o}=function(e){return{name:"cf_"+ks(e),label:bs(e+" (custom field)")}}(s);t.dispatch(ws(i,e,o))})),(0,d.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 s in e)if(e.hasOwnProperty(s)&&(!(s in t)||e[s]!==t[s]))return!1;return!0}getMediaById(e){return this._coreDataSelect||(this._coreDataSelect=(0,t.select)("core")),this._coreDataSelect.getMedia(e)}getPostAttribute(e){return this._coreEditorSelect||(this._coreEditorSelect=(0,t.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,t.select)("core/editor").getPermalinkParts();if(null===e||null==e||!e.prefix)return window.wpseoScriptData.metabox.base_url;let s=e.prefix;if((0,t.select)("core/editor").isEditedPostNew())try{const e=new URL(s);s=e.origin+e.pathname}catch(e){}return s.endsWith("/")||(s+="/"),s}collectGutenbergData(){let s=(0,t.select)("core/editor").getEditedPostContent();const i=(0,t.select)("core/editor").getEditorBlocks();1===i.length&&"core/freeform"===i[0].name&&(s=(0,e.getBlockContent)(i[0]));const o=this.calculateContentImage(s),r=this.getPostAttribute("excerpt")||"";return{content:s,title:this.getPostAttribute("title")||"",slug:this.getSlug(),excerpt:r||_s(s,"ja"===Fa()?80:156),excerpt_only:r,snippetPreviewImageURL:this.getFeaturedImage()||o,contentImage:o,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=G.languageProcessing.imageInText(e);if(0===t.length)return"";const s=Ka.parseHTML(t.join(""));for(const e of s)if(e.src)return e.src;return""}handleEditorChange(e){this._data.content!==e.content&&this._store.dispatch(Da(e.content)),this._data.title!==e.title&&(this._store.dispatch(Ua(e.title)),this._store.dispatch(Pa("title",e.title))),this._data.excerpt!==e.excerpt&&(this._store.dispatch(Wa(e.excerpt)),this._store.dispatch(Pa("excerpt",e.excerpt)),this._store.dispatch(Pa("excerpt_only",e.excerpt_only))),this._data.slug!==e.slug&&(this._store.dispatch(Ba(e.slug)),this._store.dispatch(Ma({slug:e.slug}))),this._data.snippetPreviewImageURL!==e.snippetPreviewImageURL&&(this._store.dispatch($a(e.snippetPreviewImageURL)),this._store.dispatch(Ma({snippetPreviewImageURL:e.snippetPreviewImageURL}))),this._data.contentImage!==e.contentImage&&this._store.dispatch(Oa(e.contentImage)),this._data.baseUrl!==e.baseUrl&&this._store.dispatch(Na({baseUrl:e.baseUrl}))}reapplyMarkers(){const{getActiveMarker:e,getMarkerPauseStatus:s}=(0,t.select)("yoast-seo/editor"),i=e(),o=s();i&&!o&&Sa()}refreshYoastSEO(){const e=this.collectGutenbergData();!this.isShallowEqual(this._data,e)&&(this.handleEditorChange(e),this._data=e,this._refresh())}areNewAnalysisResultsAvailable(){const e=(0,t.select)("yoast-seo/editor"),s=e.getReadabilityResults(),i=e.getResultsForFocusKeyword();return(this._previousReadabilityResults!==s||this._previousSeoResults!==i)&&(this._previousReadabilityResults=s,this._previousSeoResults=i,!0)}onNewAnalysisResultsAvailable(){this.reapplyMarkers()}subscribeToGutenberg(){this._previousRenderingMode=(0,t.select)("core/editor").getRenderingMode&&(0,t.select)("core/editor").getRenderingMode(),this.subscriber=(0,d.debounce)((()=>{const e=(0,t.select)("core/editor").getRenderingMode&&(0,t.select)("core/editor").getRenderingMode();if(e!==this._previousRenderingMode)return this._previousRenderingMode=e,void this._refresh();this.refreshYoastSEO()}),500),(0,t.subscribe)(this.subscriber)}subscribeToYoastSEO(){this.yoastSubscriber=()=>{this.areNewAnalysisResultsAvailable()&&this.onNewAnalysisResultsAvailable()},(0,t.subscribe)(this.yoastSubscriber)}getData(){return this._data}}})()})();