Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 18.227.134.95
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/blog.diixadigital.com/wp-content/plugins/wordpress-seo/js/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/blog.diixadigital.com/wp-content/plugins/wordpress-seo/js/dist/elementor.js
(()=>{var e={139:e=>{"use strict";function t(e){return function(){return e}}var s=function(){};s.thatReturns=t,s.thatReturnsFalse=t(!1),s.thatReturnsTrue=t(!0),s.thatReturnsNull=t(null),s.thatReturnsThis=function(){return this},s.thatReturnsArgument=function(e){return e},e.exports=s},3759:e=>{"use strict";e.exports=function(e,t,s,a,r,n,o,i){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[s,a,r,n,o,i],d=0;(l=new Error(t.replace(/%s/g,(function(){return c[d++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},3620:(e,t,s)=>{"use strict";var a=s(139);e.exports=a},6746:(e,t,s)=>{"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=i(s(9196)),n=i(s(9156)),o=i(s(6743));function i(e){return e&&e.__esModule?e:{default:e}}var l=void 0;function c(e,t){var s,o,i,d,p,u,m,h,g=[],y={};for(u=0;u<e.length;u++)if("string"!==(p=e[u]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==a(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+l);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){s=t[p.value],i=u;break}g.push(t[p.value])}else g.push(p.value);return s&&(d=function(e,t){var s,a,r=t[e],n=0;for(a=e+1;a<t.length;a++)if((s=t[a]).value===r.value){if("componentOpen"===s.type){n++;continue}if("componentClose"===s.type){if(0===n)return a;n--}}throw new Error("Missing closing component token `"+r.value+"`")}(i,e),m=c(e.slice(i+1,d),t),o=r.default.cloneElement(s,{},m),g.push(o),d<e.length-1&&(h=c(e.slice(d+1),t),g=g.concat(h))),1===g.length?g[0]:(g.forEach((function(e,t){e&&(y["interpolation-child-"+t]=e)})),(0,n.default)(y))}t.Z=function(e){var t=e.mixedString,s=e.components,r=e.throwErrors;if(l=t,!s)return t;if("object"!==(void 0===s?"undefined":a(s))){if(r)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var n=(0,o.default)(t);try{return c(n,s)}catch(e){if(r)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},6743:e=>{"use strict";function t(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(t)}},9156:(e,t,s)=>{"use strict";var a=s(9196),r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,n=s(139),o=s(3759),i=s(3620),l=".",c=":",d="function"==typeof Symbol&&Symbol.iterator,p="@@iterator";function u(e,t){return e&&"object"==typeof e&&null!=e.key?(s=e.key,a={"=":"=0",":":"=2"},"$"+(""+s).replace(/[=:]/g,(function(e){return a[e]}))):t.toString(36);var s,a}function m(e,t,s,a){var n,i=typeof e;if("undefined"!==i&&"boolean"!==i||(e=null),null===e||"string"===i||"number"===i||"object"===i&&e.$$typeof===r)return s(a,e,""===t?l+u(e,0):t),1;var h=0,g=""===t?l:t+c;if(Array.isArray(e))for(var y=0;y<e.length;y++)h+=m(n=e[y],g+u(n,y),s,a);else{var f=function(e){var t=e&&(d&&e[d]||e[p]);if("function"==typeof t)return t}(e);if(f)for(var w,b=f.call(e),E=0;!(w=b.next()).done;)h+=m(n=w.value,g+u(n,E++),s,a);else if("object"===i){var v=""+e;o(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===v?"object with keys {"+Object.keys(e).join(", ")+"}":v,"")}}return h}var h=/\/+/g;function g(e){return(""+e).replace(h,"$&/")}var y,f,w=b,b=function(e){var t=this;if(t.instancePool.length){var s=t.instancePool.pop();return t.call(s,e),s}return new t(e)};function E(e,t,s,a){this.result=e,this.keyPrefix=t,this.func=s,this.context=a,this.count=0}function v(e,t,s){var r,o,i=e.result,l=e.keyPrefix,c=e.func,d=e.context,p=c.call(d,t,e.count++);Array.isArray(p)?_(p,i,s,n.thatReturnsArgument):null!=p&&(a.isValidElement(p)&&(r=p,o=l+(!p.key||t&&t.key===p.key?"":g(p.key)+"/")+s,p=a.cloneElement(r,{key:o},void 0!==r.props?r.props.children:void 0)),i.push(p))}function _(e,t,s,a,r){var n="";null!=s&&(n=g(s)+"/");var o=E.getPooled(t,n,a,r);!function(e,t,s){null==e||m(e,"",t,s)}(e,v,o),E.release(o)}E.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},y=function(e,t,s,a){var r=this;if(r.instancePool.length){var n=r.instancePool.pop();return r.call(n,e,t,s,a),n}return new r(e,t,s,a)},(f=E).instancePool=[],f.getPooled=y||w,f.poolSize||(f.poolSize=10),f.release=function(e){var t=this;o(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return i(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(a.isValidElement(e))return i(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;o(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var s in e)_(e[s],t,s,n.thatReturnsArgument);return t}},4530:(e,t)=>{var s;!function(){"use strict";var a={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var n=typeof s;if("string"===n||"number"===n)e.push(s);else if(Array.isArray(s)){if(s.length){var o=r.apply(null,s);o&&e.push(o)}}else if("object"===n){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var i in s)a.call(s,i)&&s[i]&&e.push(i)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(s=function(){return r}.apply(t,[]))||(e.exports=s)}()},9196:e=>{"use strict";e.exports=window.React}},t={};function s(a){var r=t[a];if(void 0!==r)return r.exports;var n=t[a]={exports:{}};return e[a](n,n.exports,s),n.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 a in t)s.o(t,a)&&!s.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};s.r(e),s.d(e,{DISMISS_ALERT:()=>Me,SNIPPET_EDITOR_FIND_CUSTOM_FIELDS:()=>Oe,wistiaEmbedPermission:()=>Fe});var t={};s.r(t),s.d(t,{loadSnippetEditorData:()=>Be,updateData:()=>Ue});var a={};s.r(a),s.d(a,{getAnalysisData:()=>it});var r={};s.r(r),s.d(r,{authorFirstName:()=>ht,authorLastName:()=>gt,category:()=>bt,categoryTitle:()=>Et,currentDate:()=>yt,currentDay:()=>ft,currentMonth:()=>wt,currentYear:()=>vt,date:()=>_t,excerpt:()=>kt,focusKeyphrase:()=>xt,id:()=>Tt,modified:()=>St,name:()=>Rt,page:()=>Ct,pageNumber:()=>It,pageTotal:()=>Lt,permalink:()=>Pt,postContent:()=>At,postDay:()=>Mt,postMonth:()=>Ot,postTypeNamePlural:()=>Dt,postTypeNameSingular:()=>Nt,postYear:()=>Ft,primaryCategory:()=>qt,searchPhrase:()=>$t,separator:()=>Ut,siteDescription:()=>Bt,siteName:()=>Wt,tag:()=>zt,term404:()=>Kt,termDescription:()=>Ht,termHierarchy:()=>Yt,termTitle:()=>jt,title:()=>Vt,userDescription:()=>Gt});const n=window.wp.data,o=window.wp.hooks,i=window.wp.apiFetch;var l=s.n(i);async function c(e,t,s,a=200){try{const r=await e();return!!r&&(r.status===a?t(r):s(r))}catch(e){}}async function d(e){try{return await l()(e)}catch(e){return e.error&&e.status?e:e instanceof window.Response&&await e.json()}}const p=async()=>await c((async()=>await g()),(e=>e),(()=>!1)),u="wordproof/v1",m=async e=>{const{state:t,code:s}=e;return await d({path:`${u}/oauth/authenticate`,method:"POST",data:{state:t,code:s}})},h=async e=>{const{settings:t}=e;return await d({path:`${u}/settings`,method:"POST",data:{settings:t}})},g=async()=>await d({path:`${u}/oauth/destroy`,method:"POST"}),y=async e=>d({path:`${u}/posts/${e}/timestamp`,method:"POST"}),{get:f}=lodash,w=(e,t={})=>f(window,"wordproofSdk.data"+(e?`.${e}`:""),t),b=window.yoast.propTypes;var E=s.n(b);function v(e){const t=new window.CustomEvent(e);window.dispatchEvent(t)}const _=e=>{const{response:t,createSuccessNotice:s,createErrorNotice:a,postId:r}=e;if(null===t||200===t.status)return;const n={id:"wordproof-timestamp-notice"};t&&201===t.status?0===t.balance?(n.actions=[{label:w("translations.open_settings_button_text"),onClick:()=>{v("wordproof:open_settings")},variant:"link"}],a(w("translations.no_balance"),n)):(s(w("translations.timestamp_success"),{type:"snackbar",id:"wordproof-timestamp-notice"}),k(r,t.hash,a,n)):t.error&&("not_authenticated"===t.error?(n.type="snackbar",n.actions=[{label:w("translations.open_authentication_button_text"),onClick:()=>{v("wordproof:open_authentication")},variant:"link"}],a(w("translations.not_authenticated"),n)):a(w("translations.timestamp_failed"),n))},k=async(e,t,s,a)=>{setTimeout((async()=>{const r=await(async e=>d({path:`${u}/posts/${e}/timestamp/transaction/latest`,method:"GET"}))(e);r.hash!==t&&(a.type="snackbar",s(w("translations.webhook_failed"),a))}),1e4)};_.proptypes={timestampResponse:E().any.isRequired,createSuccessNotice:E().func.isRequired,createErrorNotice:E().func.isRequired,postId:E().number.isRequired};const{debounce:x}=lodash,{applyFilters:T}=wp.hooks,{dispatch:S}=wp.data;$e.modules.hookUI.Base;class R extends $e.modules.hookData.Base{constructor(e,t,s){super(),this.hook=e,this.id=t,this.callback=s}getCommand(){return this.hook}getId(){return this.id}apply(){return this.callback()}}function C(e,t){let s=null;t.actions&&(s=[],t.actions.forEach((e=>{s.push({name:"wordproof_notice_button",text:e.label,callback(){e.onClick()}})}))),window.elementor.notifications.showToast({message:e,buttons:s})}function I(e){!function(e,t,s){$e&&$e.hooks.registerDataAfter(new R("document/save/save","wordproof/timestamper",s))}(0,0,(()=>{window.setTimeout(e,1e3)}))}var L=s(9196),P=s.n(L);const A=window.wp.components,M=window.wp.element,O=window.wp.i18n,F=window.yoast.uiLibrary;E().string.isRequired;const D=L.forwardRef((function(e,t){return L.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),L.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"}))})),N=L.forwardRef((function(e,t){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),L.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"}))})),q=({learnMoreLink:e,thumbnail:t,wistiaEmbedPermission:s,upsellLink:a,isProductCopy:r,title:n,upsellLabel:o,newToText:i,bundleNote:l})=>{const{onClose:c,initialFocus:d}=(0,F.useModalContext)(),p={a:(0,L.createElement)(W,{href:e,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,L.createElement)(N,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"})};return(0,L.createElement)("div",{className:"yst-flex yst-flex-col yst-items-center yst-p-10"},(0,L.createElement)("div",{className:"yst-relative yst-w-full"},(0,L.createElement)(he,{videoId:"vmrahpfjxp",thumbnail:t,wistiaEmbedPermission:s}),(0,L.createElement)(F.Badge,{className:"yst-absolute yst-top-0 yst-right-2 yst-mt-2 yst-ml-2",variant:"info"},"Beta")),(0,L.createElement)("div",{className:"yst-mt-6 yst-text-xs yst-font-medium"},(0,L.createElement)("span",{className:"yst-introduction-modal-uppercase"},i)),(0,L.createElement)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center"},(0,L.createElement)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium"},n),(0,L.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},r?(0,M.createInterpolateElement)((0,O.sprintf)(/* translators: %1$s and %2$s are anchor tags; %3$s is the arrow icon. */
(0,O.__)("Let AI do some of the thinking for you and help you save time. Get high-quality suggestions for product titles and meta descriptions to make your content rank high and look good on social media. %1$sLearn more%2$s%3$s","wordpress-seo"),"<a>","<ArrowNarrowRightIcon />","</a>"),p):(0,M.createInterpolateElement)((0,O.sprintf)(/* translators: %1$s and %2$s are anchor tags; %3$s is the arrow icon. */
(0,O.__)("Let AI do some of the thinking for you and help you save time. Get high-quality suggestions for titles and meta descriptions to make your content rank high and look good on social media. %1$sLearn more%2$s%3$s","wordpress-seo"),"<a>","<ArrowNarrowRightIcon />","</a>"),p))),(0,L.createElement)("div",{className:"yst-w-full yst-flex yst-mt-10"},(0,L.createElement)(F.Button,{as:"a",className:"yst-grow",size:"extra-large",variant:"upsell",href:a,target:"_blank",ref:d},(0,L.createElement)(D,{className:"yst--ml-1 yst-mr-2 yst-h-5 yst-w-5"}),o,(0,L.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
(0,O.__)("(Opens in a new browser tab)","wordpress-seo")))),l,(0,L.createElement)(F.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:c},(0,O.__)("Close","wordpress-seo")))};q.propTypes={learnMoreLink:E().string.isRequired,upsellLink:E().string.isRequired,thumbnail:E().shape({src:E().string.isRequired,width:E().string,height:E().string}).isRequired,wistiaEmbedPermission:E().shape({value:E().bool.isRequired,status:E().string.isRequired,set:E().func.isRequired}).isRequired,title:E().string,upsellLabel:E().string,newToText:E().string,isProductCopy:E().bool,bundleNote:E().oneOfType([E().string,E().element])},q.defaultProps={title:(0,O.__)("Use AI to write your titles & meta descriptions!","wordpress-seo"),upsellLabel:(0,O.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,O.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),newToText:(0,O.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,O.__)("New in %1$s","wordpress-seo"),"Yoast SEO Premium"),isProductCopy:!1,bundleNote:""};var $;function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e},U.apply(this,arguments)}E().string,E().node.isRequired,E().node.isRequired,E().node,E().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 B=e=>L.createElement("svg",U({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 1000 1000"},e),$||($=L.createElement("path",{fill:"#fff",d:"M500 0C223.9 0 0 223.9 0 500s223.9 500 500 500 500-223.9 500-500S776.1 0 500 0Zm87.2 412.4c0-21.9 4.3-40.2 13.1-54.4s24-27.1 45.9-38.2l10.1-4.9c17.8-9 22.4-16.7 22.4-26 0-11.1-9.5-19.1-25-19.1-18.3 0-32.2 9.5-41.8 28.9l-24.7-24.8c5.4-11.6 14.1-20.9 25.8-28.1a70.8 70.8 0 0 1 38.9-11.1c17.8 0 33.3 4.6 45.9 14.2s19.4 22.7 19.4 39.4c0 26.6-15 42.9-43.1 57.3l-15.7 8c-16.8 8.5-25.1 16-27.4 29.4h85.4v35.4H587.2Zm-82.1 373.3c-157.8 0-285.7-127.9-285.7-285.7s127.9-285.7 285.7-285.7a286.4 286.4 0 0 1 55.9 5.5l-55.9 116.9c-90 0-163.3 73.3-163.3 163.3s73.3 163.3 163.3 163.3a162.8 162.8 0 0 0 106.4-39.6l61.8 107.2a283.9 283.9 0 0 1-168.2 54.8ZM705 704.1l-70.7-122.5H492.9l70.7-122.4H705l70.7 122.4Z"}))),W=({href:e,children:t,...s})=>(0,L.createElement)(F.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e},t,(0,L.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
(0,O.__)("(Opens in a new browser tab)","wordpress-seo")));W.propTypes={href:E().string.isRequired,children:E().node},W.defaultProps={children:null};const z=L.forwardRef((function(e,t){return L.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),L.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))}));var K,H,Y;function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e},j.apply(this,arguments)}const V=e=>L.createElement("svg",j({xmlns:"http://www.w3.org/2000/svg",id:"star-rating-half_svg__Layer_1","data-name":"Layer 1",viewBox:"0 0 500 475.53"},e),K||(K=L.createElement("defs",null,L.createElement("style",null,".star-rating-half_svg__cls-1{fill:#fbbf24}"))),H||(H=L.createElement("path",{d:"M250 392.04 98.15 471.87l29-169.09L4.3 183.03l169.77-24.67L250 4.52l75.93 153.84 169.77 24.67-122.85 119.75 29 169.09L250 392.04z",className:"star-rating-half_svg__cls-1"})),Y||(Y=L.createElement("path",{d:"m250 9.04 73.67 149.27.93 1.88 2.08.3 164.72 23.94-119.19 116.19-1.51 1.47.36 2.07 28.14 164.06-147.34-77.46-1.86-1-1.86 1-147.34 77.46 28.14-164.06.36-2.07-1.51-1.47L8.6 184.43l164.72-23.9 2.08-.3.93-1.88L250 9.04m0-9-77.25 156.49L0 181.64l125 121.89-29.51 172L250 394.3l154.51 81.23-29.51-172 125-121.89-172.75-25.11L250 0Z",className:"star-rating-half_svg__cls-1"})),L.createElement("path",{d:"m500 181.64-172.75-25.11L250 0v394.3l154.51 81.23L375 303.48l125-121.84z",style:{fill:"#f3f4f6"}}));function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e},G.apply(this,arguments)}const Z=e=>L.createElement("svg",G({xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 500 475.53"},e),L.createElement("path",{d:"m250 0 77.25 156.53L500 181.64 375 303.48l29.51 172.05L250 394.3 95.49 475.53 125 303.48 0 181.64l172.75-25.11L250 0z",style:{fill:"#fbbf24"}}));var Q,J,X,ee,te,se,ae,re,ne;function oe(){return oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e},oe.apply(this,arguments)}const ie=e=>L.createElement("svg",oe({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 500 500"},e),Q||(Q=L.createElement("path",{fill:"#a4286a",d:"M80 0h340a80 80 0 0 1 80 80v420H80a80 80 0 0 1-80-80V80A80 80 0 0 1 80 0z"})),J||(J=L.createElement("path",{fill:"#6c2548",d:"M437.61 2 155.89 500H500V80a80 80 0 0 0-62.39-78z"})),X||(X=L.createElement("path",{fill:"#fff",d:"M74.4 337.3v34.9c21.6-.9 38.5-8 52.8-22.5s27.4-38 39.9-72.9l92.6-248h-44.8L140.3 236l-37-116.2h-41l54.4 139.8a57.54 57.54 0 0 1 0 41.8c-5.5 14.2-15.4 30.9-42.3 35.9z"})),ee||(ee=L.createElement("circle",{cx:368.33,cy:124.68,r:97.34,fill:"#9fda4f",transform:"rotate(-45 368.335 124.68)"})),te||(te=L.createElement("path",{fill:"#77b227",d:"m416.2 39.93-95.74 169.51A97.34 97.34 0 1 0 416.2 39.93z"})),se||(se=L.createElement("path",{fill:"#fec228",d:"m294.78 254.75-.15-.08-.13-.07a63.6 63.6 0 0 0-62.56 110.76h.13a63.6 63.6 0 0 0 62.71-110.67z"})),ae||(ae=L.createElement("path",{fill:"#f49a00",d:"m294.5 254.59-62.56 110.76a63.6 63.6 0 1 0 62.56-110.76z"})),re||(re=L.createElement("path",{fill:"#ff4e47",d:"M222.31 450.07A38.16 38.16 0 0 0 203 416.83a38.18 38.18 0 1 0 19.41 33.27z"})),ne||(ne=L.createElement("path",{fill:"#ed261f",d:"m202.9 416.8-37.54 66.48a38.17 38.17 0 0 0 37.54-66.48z"}))),le=({link:e,linkProps:t,promotions:s})=>{const a=(0,M.useMemo)((()=>(0,O.__)("Use AI to generate titles and meta descriptions, automatically redirect deleted pages, get 24/7 support, and much, much more!","wordpress-seo")),[]),r=(0,M.createInterpolateElement)((0,O.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */
(0,O.__)("%1$sGet%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast SEO Premium"),{nowrap:(0,L.createElement)("span",{className:"yst-whitespace-nowrap"})}),n=s.includes("black-friday-2023-promotion"),o=(0,M.createInterpolateElement)((0,O.sprintf)(/* translators: %1$s and %2$s expand to strong tags. */
(0,O.__)("%1$sSAVE 30%%%2$s on your 12 month subscription","wordpress-seo"),"<strong>","</strong>"),{strong:(0,L.createElement)("strong",null)});return(0,L.createElement)("div",{className:"yst-p-6 yst-rounded-lg yst-text-white yst-bg-primary-500 yst-shadow"},(0,L.createElement)("figure",{className:"yst-logo-square yst-w-16 yst-h-16 yst-mx-auto yst-overflow-hidden yst-border yst-border-white yst-rounded-xl yst-rounded-br-none yst-relative yst-z-10 yst-mt-[-2.6rem]"},(0,L.createElement)(ie,null)),n&&(0,L.createElement)("div",{className:"sidebar__sale_banner_container"},(0,L.createElement)("div",{className:"sidebar__sale_banner"},(0,L.createElement)("span",{className:"banner_text"},(0,O.__)("BLACK FRIDAY - 30% OFF","wordpress-seo")))),(0,L.createElement)(F.Title,{as:"h2",className:"yst-mt-6 yst-text-base yst-font-extrabold yst-text-white"},r),(0,L.createElement)("p",{className:"yst-mt-2"},a),n&&(0,L.createElement)("div",{className:"yst-text-center yst-border-t-[1px] yst-border-white yst-italic yst-mt-3"},(0,L.createElement)("p",{className:"yst-text-[10px] yst-my-3 yst-mx-0"},o)),(0,L.createElement)(F.Button,{as:"a",variant:"upsell",href:e,target:"_blank",rel:"noopener",className:"yst-flex yst-justify-center yst-gap-2 yst-mt-4 focus:yst-ring-offset-primary-500",...t},(0,L.createElement)("span",null,n?(0,O.__)("Claim your 30% off now!","wordpress-seo"):r),(0,L.createElement)(z,{className:"yst-w-4 yst-h-4 yst-icon-rtl"})),(0,L.createElement)("p",{className:"yst-text-center yst-text-xs yst-mx-2 yst-font-light yst-leading-5 yst-mt-2"},(0,O.__)("Only $/€/£99 per year (ex VAT)","wordpress-seo"),(0,L.createElement)("br",null),(0,O.__)("30-day money back guarantee.","wordpress-seo")),(0,L.createElement)("hr",{className:"yst-border-t yst-border-primary-300 yst-my-4"}),(0,L.createElement)("a",{className:"yst-block yst-mt-4 yst-no-underline",href:"https://www.g2.com/products/yoast-yoast/reviews",target:"_blank",rel:"noopener noreferrer"},(0,L.createElement)("span",{className:"yst-font-medium yst-text-white hover:yst-underline"},(0,O.__)("Read reviews from real users","wordpress-seo")),(0,L.createElement)("span",{className:"yst-flex yst-gap-2 yst-mt-2 yst-items-center"},(0,L.createElement)(B,{className:"yst-w-5 yst-h-5"}),(0,L.createElement)("span",{className:"yst-flex yst-gap-1"},(0,L.createElement)(Z,{className:"yst-w-5 yst-h-5"}),(0,L.createElement)(Z,{className:"yst-w-5 yst-h-5"}),(0,L.createElement)(Z,{className:"yst-w-5 yst-h-5"}),(0,L.createElement)(Z,{className:"yst-w-5 yst-h-5"}),(0,L.createElement)(V,{className:"yst-w-5 yst-h-5"})),(0,L.createElement)("span",{className:"yst-text-sm yst-font-semibold yst-text-white"},"4.6 / 5"))))};le.propTypes={link:E().string.isRequired,linkProps:E().object,promotions:E().array},le.defaultProps={linkProps:{},promotions:[]},E().node.isRequired;const ce=window.yoast.reactHelmet,de="loading",pe="showPlay",ue="askPermission",me="isPlaying",he=({videoId:e,thumbnail:t,wistiaEmbedPermission:s})=>{const[a,r]=(0,M.useState)(s.value?me:pe),n=(0,M.useCallback)((()=>r(me)),[r]),o=(0,M.useCallback)((()=>{s.value?n():r(ue)}),[s.value,n,r]),i=(0,M.useCallback)((()=>r(pe)),[r]),l=(0,M.useCallback)((()=>{s.set(!0),n()}),[s.set,n]);return(0,L.createElement)(L.Fragment,null,s.value&&(0,L.createElement)(ce.Helmet,null,(0,L.createElement)("script",{src:"https://fast.wistia.com/assets/external/E-v1.js",async:!0})),(0,L.createElement)("div",{className:"yst-relative yst-w-full yst-h-0 yst-pt-[56.25%] yst-overflow-hidden yst-rounded-md yst-drop-shadow-md yst-bg-white"},a===pe&&(0,L.createElement)("button",{type:"button",className:"yst-absolute yst-inset-0 yst-button yst-p-0 yst-border-none yst-bg-white yst-transition-opacity yst-duration-1000 yst-opacity-100",onClick:o},(0,L.createElement)("img",{className:"yst-w-full yst-h-auto",alt:"",loading:"lazy",decoding:"async",...t})),a===ue&&(0,L.createElement)("div",{className:"yst-absolute yst-inset-0 yst-flex yst-flex-col yst-items-center yst-justify-center yst-bg-white"},(0,L.createElement)("p",{className:"yst-max-w-xs yst-mx-auto yst-text-center"},s.status===de&&(0,L.createElement)(F.Spinner,null),s.status!==de&&(0,O.sprintf)(/* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */
(0,O.__)("To see this video, you need to allow %1$s to load embedded videos from %2$s.","wordpress-seo"),"Yoast SEO","Wistia")),(0,L.createElement)("div",{className:"yst-flex yst-mt-6 yst-gap-x-4"},(0,L.createElement)(F.Button,{type:"button",variant:"secondary",onClick:i,disabled:s.status===de},(0,O.__)("Deny","wordpress-seo")),(0,L.createElement)(F.Button,{type:"button",variant:"primary",onClick:l,disabled:s.status===de},(0,O.__)("Allow","wordpress-seo")))),s.value&&a===me&&(0,L.createElement)("div",{className:"yst-absolute yst-w-full yst-h-full yst-top-0 yst-left-0"},null===e&&(0,L.createElement)(F.Spinner,{className:"yst-h-full yst-mx-auto"}),null!==e&&(0,L.createElement)("div",{className:`wistia_embed wistia_async_${e} videoFoam=true`}))))};he.propTypes={videoId:E().string.isRequired,thumbnail:E().shape({src:E().string.isRequired,width:E().string,height:E().string}).isRequired,wistiaEmbedPermission:E().shape({value:E().bool.isRequired,status:E().string.isRequired,set:E().func.isRequired}).isRequired};const ge="yoast-seo/editor",ye=()=>{const e=(0,n.useSelect)((e=>e(ge).selectLink("https://www.yoa.st/ai-generator-learn-more")),[]),t=(0,n.useSelect)((e=>e(ge).selectLink("https://yoa.st/ai-generator-upsell")),[]),s=(0,n.useSelect)((e=>e(ge).selectLink("https://yoa.st/ai-generator-upsell-woo-seo-premium-bundle")),[]),a=(0,n.useSelect)((e=>e(ge).selectLink("https://yoa.st/ai-generator-upsell-woo-seo")),[]),r=(0,n.useSelect)((e=>e(ge).getIsPremium()),[]),o=(0,n.useSelect)((e=>e(ge).getIsWooSeoUpsell()),[]),i=(0,n.useSelect)((e=>e(ge).getIsProduct()),[]),l=!(!o&&(!i||o||r)),c={isProductCopy:l,upsellLink:t};if(l){const e=(0,O.sprintf)(/* translators: %1$s expands to Yoast SEO Premium, %2$s expands to Yoast WooCommerce SEO. */
(0,O.__)("%1$s + %2$s","wordpress-seo"),"Yoast SEO Premium","Yoast WooCommerce SEO");c.newToText=(0,O.sprintf)(/* translators: %1$s expands to Yoast SEO Premium and Yoast WooCommerce SEO. */
(0,O.__)("New in %1$s","wordpress-seo"),e),c.title=(0,O.__)("Generate product titles & descriptions with AI!","wordpress-seo"),!r&&o&&(c.upsellLabel=`${(0,O.sprintf)(/* translators: %1$s expands to Woo Premium bundle. */
(0,O.__)("Unlock with the %1$s","wordpress-seo"),"Woo Premium bundle")}*`,c.bundleNote=(0,L.createElement)("div",{className:"yst-text-xs yst-text-slate-500 yst-mt-2"},`*${e}`),c.upsellLink=s),r&&(c.upsellLabel=(0,O.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */
(0,O.__)("Unlock with %1$s","wordpress-seo"),"Yoast WooCommerce SEO"),c.upsellLink=a)}const d=(0,n.useSelect)((e=>e(ge).selectImageLink("ai-generator-preview.png")),[]),p=(0,M.useMemo)((()=>({src:d,width:"432",height:"244"})),[d]),u=(0,n.useSelect)((e=>e(ge).selectWistiaEmbedPermissionValue()),[]),m=(0,n.useSelect)((e=>e(ge).selectWistiaEmbedPermissionStatus()),[]),{setWistiaEmbedPermission:h}=(0,n.useDispatch)(ge),g=(0,M.useMemo)((()=>({value:u,status:m,set:h})),[u,m,h]);return(0,L.createElement)(q,{learnMoreLink:e,thumbnail:p,wistiaEmbedPermission:g,...c})},fe=({fieldId:e})=>{const[t,,,s,a]=(0,F.useToggleState)(!1),r=(0,M.useCallback)((()=>{s()}),[s]),n=(0,M.useRef)(null);return(0,L.createElement)(L.Fragment,null,(0,L.createElement)("button",{type:"button",id:`yst-replacevar__use-ai-button__${e}`,className:"yst-replacevar__use-ai-button-upsell",onClick:r},(0,O.__)("Use AI","wordpress-seo")),(0,L.createElement)(F.Modal,{className:"yst-introduction-modal",isOpen:t,onClose:a,initialFocus:n},(0,L.createElement)(F.Modal.Panel,{className:"yst-max-w-lg yst-p-0 yst-rounded-3xl yst-introduction-modal-panel"},(0,L.createElement)(ye,{onClose:a,focusElementRef:n}))))};fe.propTypes={fieldId:E().string.isRequired};const we="yoast-seo/editor",be=window.yoast.externals.redux,Ee=window.lodash,ve=window.yoast.reduxJsToolkit,_e=window.wp.url,ke="linkParams",xe=(0,ve.createSlice)({name:ke,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),Te=(xe.getInitialState,{selectLinkParam:(e,t,s={})=>(0,Ee.get)(e,`${ke}.${t}`,s),selectLinkParams:e=>(0,Ee.get)(e,ke,{})});Te.selectLink=(0,ve.createSelector)([Te.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,_e.addQueryArgs)(t,{...e,...s}))),xe.actions,xe.reducer;const Se=(0,ve.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:s="default",title:a,description:r})=>({payload:{id:e||(0,ve.nanoid)(),variant:t,size:s,title:a||"",description:r}})},removeNotification:(e,{payload:t})=>(0,Ee.omit)(e,t)}}),Re=(Se.getInitialState,Se.actions,Se.reducer,"pluginUrl"),Ce=(0,ve.createSlice)({name:Re,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),Ie=(Ce.getInitialState,{selectPluginUrl:e=>(0,Ee.get)(e,Re,"")});Ie.selectImageLink=(0,ve.createSelector)([Ie.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,Ee.trimEnd)(e,"/"),(0,Ee.trim)(t,"/"),(0,Ee.trimStart)(s,"/")].join("/"))),Ce.actions,Ce.reducer;const Le="wistiaEmbedPermission",Pe=(0,ve.createSlice)({name:Le,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${Le}/request`,(e=>{e.status=de})),e.addCase(`${Le}/success`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${Le}/error`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,Ee.get)(t,"error.code",500),message:(0,Ee.get)(t,"error.message","Unknown")}}))}}),Ae=(Pe.getInitialState,Pe.actions,{[Le]:async({payload:e})=>l()({path:"/yoast/v1/wistia_embed_permission",method:"POST",data:{value:Boolean(e)}})});function Me({alertKey:e}){return new Promise((t=>wpseoApi.post("alerts/dismiss",{key:e},(()=>t()))))}function Oe({query:e,postId:t}){return new Promise((s=>{wpseoApi.get("meta/search",{query:e,post_id:t},(e=>{s(e.meta)}))}))}Pe.reducer;const Fe=Ae[Le];class De{static get titleElement(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_title":"hidden_wpseo_title")}static get descriptionElement(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_metadesc":"hidden_wpseo_desc")}static get slugElement(){return document.getElementById("yoast_wpseo_slug")}static get title(){return De.titleElement.value}static set title(e){De.titleElement.value=e}static get description(){return De.descriptionElement.value}static set description(e){De.descriptionElement.value=e}static get slug(){return De.slugElement.value}static set slug(e){De.slugElement.value=e}}const{UPDATE_DATA:Ne,LOAD_SNIPPET_EDITOR_DATA:qe}=be.actions;function Ue(e){if(e.hasOwnProperty("title")){let t=e.title;e.title===(0,Ee.get)(window,"wpseoScriptData.metabox.title_template","")&&(t=""),De.title=t}if(e.hasOwnProperty("description")){let t=e.description;e.description===(0,Ee.get)(window,"wpseoScriptData.metabox.metadesc_template","")&&(t=""),De.description=t}return e.hasOwnProperty("slug")&&(De.slug=e.slug),{type:Ne,data:e}}const Be=()=>{const e=(0,Ee.get)(window,"wpseoScriptData.metabox.title_template",""),t=(0,Ee.get)(window,"wpseoScriptData.metabox.metadesc_template","");return{type:qe,data:{title:De.title||e,description:De.description||t,slug:De.slug},templates:{title:e,description:t}}},We=window.yoast.helpers,ze="yoast-measurement-element";function Ke(e){let t=document.getElementById(ze);return t||(t=function(){const e=document.createElement("div");return e.id=ze,e.style.position="absolute",e.style.left="-9999em",e.style.top=0,e.style.height=0,e.style.overflow="hidden",e.style.fontFamily="arial, sans-serif",e.style.fontSize="20px",e.style.fontWeight="400",document.body.appendChild(e),e}()),t.innerText=e,t.offsetWidth}class He{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,Ee.isString)(e)?(0,Ee.isUndefined)(t)||(0,Ee.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,Ee.isString)(e)?(0,Ee.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,Ee.isString)(e)?(0,Ee.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,a){if(!(0,Ee.isString)(e))return console.error("Failed to register modification for plugin "+s+". Expected parameter `modification` to be a string."),!1;if(!(0,Ee.isFunction)(t))return console.error("Failed to register modification for plugin "+s+". Expected parameter `callable` to be a function."),!1;if(!(0,Ee.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 r={callable:t,origin:s,priority:(0,Ee.isNumber)(a)?a:10};return(0,Ee.isUndefined)(this.modifications[e])&&(this.modifications[e]=[]),this.modifications[e].push(r),!0}_registerAssessment(e,t,s,a){return(0,Ee.isString)(t)?(0,Ee.isObject)(s)?(0,Ee.isString)(a)?(t=a+"-"+t,e.addAssessment(t,s),!0):(console.error("Failed to register assessment for plugin "+a+". Expected parameter `pluginName` to be a string."),!1):(console.error("Failed to register assessment for plugin "+a+". Expected parameter `assessment` to be a function."),!1):(console.error("Failed to register test for plugin "+a+". Expected parameter `name` to be a string."),!1)}_applyModifications(e,t,s){let a=this.modifications[e];return!(0,Ee.isArray)(a)||a.length<1||(a=this._stripIllegalModifications(a),a.sort(((e,t)=>e.priority-t.priority)),(0,Ee.forEach)(a,(function(a){const r=a.callable(t,s);typeof r==typeof t?t=r:console.error("Modification with name "+e+" performed by plugin with name "+a.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,Ee.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,Ee.reduce)(this.plugins,(function(e,t){return e&&"ready"===t.status}),!0)}_pollTimeExceeded(){(0,Ee.forEach)(this.plugins,(function(e,t){(0,Ee.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,Ee.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,Ee.isUndefined)(this.plugins[e])}}let Ye=null;const je=()=>{if(null===Ye){const e=(0,n.dispatch)("yoast-seo/editor").runAnalysis;Ye=window.YoastSEO.app&&window.YoastSEO.app.pluggable?window.YoastSEO.app.pluggable:new He(e)}return Ye},Ve=e=>je()._ready(e),Ge=e=>je()._reloaded(e),Ze=(e,t,s,a)=>je()._registerModification(e,t,s,a),Qe=(e,t)=>je()._registerPlugin(e,t),Je=(e,t,s)=>je().loaded?je()._applyModifications(e,t,s):t,{getBaseUrlFromSettings:Xe,getContentLocale:et,getEditorDataContent:tt,getFocusKeyphrase:st,getSnippetEditorDescriptionWithTemplate:at,getSnippetEditorSlug:rt,getSnippetEditorTitleWithTemplate:nt,getDateFromSettings:ot}=be.selectors,it=e=>{let t=nt(e),s=at(e),a=rt(e);const r=Xe(e);return t=We.strings.stripHTMLTags(Je("data_page_title",t)),s=We.strings.stripHTMLTags(Je("data_meta_desc",s)),a=a.trim().replace(/\s+/g,"-"),{text:tt(e),title:t,keyword:st(e),description:s,locale:et(e),titleWidth:Ke(t),slug:a,permalink:r+a,date:ot(e)}},lt=window.yoast.analysis;function ct(e,t){const{updateWordsToHighlight:s}=(0,n.dispatch)("yoast-seo/editor");e("morphology",new lt.Paper("",{keyword:t})).then((({result:{keyphraseForms:e}})=>{s((0,Ee.uniq)((0,Ee.flatten)(e)))})).catch((()=>{s([])}))}const dt=(0,Ee.debounce)(ct,500);function pt(){return(0,Ee.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}var ut=jQuery;function mt(e,t,s,a,r){this._scriptUrl=a,this._options={usedKeywords:t.keyword_usage,usedKeywordsPostTypes:t.keyword_usage_post_types,searchUrl:t.search_url,postUrl:t.post_edit_url},this._keywordUsage=t.keyword_usage,this._usedKeywordsPostTypes=t.keyword_usage_post_types,this._postID=ut("#post_ID, [name=tag_ID]").val(),this._taxonomy=ut("[name=taxonomy]").val()||"",this._nonce=r,this._ajaxAction=e,this._refreshAnalysis=s,this._initialized=!1}mt.prototype.init=function(){const{worker:e}=window.YoastSEO.analysis;this.requestKeywordUsage=(0,Ee.debounce)(this.requestKeywordUsage.bind(this),500),e.loadScript(this._scriptUrl).then((()=>{e.sendMessage("initialize",this._options,"used-keywords-assessment")})).then((()=>{this._initialized=!0,(0,Ee.isEqual)(this._options.usedKeywords,this._keywordUsage)?this._refreshAnalysis():e.sendMessage("updateKeywordUsage",this._keywordUsage,"used-keywords-assessment").then((()=>this._refreshAnalysis()))})).catch((e=>console.error(e)))},mt.prototype.setKeyword=function(e){(0,Ee.has)(this._keywordUsage,e)||this.requestKeywordUsage(e)},mt.prototype.requestKeywordUsage=function(e){ut.post(ajaxurl,{action:this._ajaxAction,post_id:this._postID,keyword:e,taxonomy:this._taxonomy,nonce:this._nonce},this.updateKeywordUsage.bind(this,e),"json")},mt.prototype.updateKeywordUsage=function(e,t){const{worker:s}=window.YoastSEO.analysis,a=t.keyword_usage,r=t.post_types;a&&(0,Ee.isArray)(a)&&(this._keywordUsage[e]=a,this._usedKeywordsPostTypes[e]=r,this._initialized&&s.sendMessage("updateKeywordUsage",{usedKeywords:this._keywordUsage,usedKeywordsPostTypes:this._usedKeywordsPostTypes},"used-keywords-assessment").then((()=>this._refreshAnalysis())))};const ht={name:"author_first_name",label:"Author first name",placeholder:"%%author_first_name%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_first_name","")},regexp:new RegExp("%%author_first_name%%","g")},gt={name:"author_last_name",label:"Author last name",placeholder:"%%author_last_name%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_last_name","")},regexp:new RegExp("%%author_last_name%%","g")},yt={name:"currentdate",label:"Current date",placeholder:"%%currentdate%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentdate","")},regexp:new RegExp("%%currentdate%%","g")},ft={name:"currentday",label:"Current day",placeholder:"%%currentday%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentday","")},regexp:new RegExp("%%currentday%%","g")},wt={name:"currentmonth",label:"Current month",placeholder:"%%currentmonth%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentmonth","")},regexp:new RegExp("%%currentmonth%%","g")},bt={name:"category",label:"Category",placeholder:"%%category%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category","")},regexp:new RegExp("%%category%%","g")},Et={name:"category_title",label:"Category Title",placeholder:"%%category_title%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category_title","")},regexp:new RegExp("%%category_title%%","g")},vt={name:"currentyear",label:"Current year",placeholder:"%%currentyear%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentyear","")},regexp:new RegExp("%%currentyear%%","g")},_t={name:"date",label:"Date",placeholder:"%%date%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.date","")},regexp:new RegExp("%%date%%","g")},kt={name:"excerpt",label:"Excerpt",placeholder:"%%excerpt%%",aliases:[{name:"excerpt_only",label:"Excerpt only",placeholder:"%%excerpt_only%%"}],getReplacement:function(){return(0,n.select)("yoast-seo/editor").getEditorDataExcerptWithFallback()},regexp:new RegExp("%%excerpt%%|%%excerpt_only%%","g")},xt={name:"focuskw",label:"Focus keyphrase",placeholder:"%%focuskw%%",aliases:[],getReplacement:function(){return(0,n.select)("yoast-seo/editor").getFocusKeyphrase()},regexp:new RegExp("%%focuskw%%|%%keyword%%","g")},Tt={name:"id",label:"ID",placeholder:"%%id%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.id","")},regexp:new RegExp("%%id%%","g")},St={name:"modified",label:"Modified",placeholder:"%%modified%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.modified","")},regexp:new RegExp("%%modified%%","g")},Rt={name:"name",label:"Name",placeholder:"%%name%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.name","")},regexp:new RegExp("%%name%%","g")},Ct={name:"page",label:"Page",placeholder:"%%page%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.page","")},regexp:new RegExp("%%page%%","g")},It={name:"pagenumber",label:"Pagenumber",placeholder:"%%pagenumber%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagenumber","")},regexp:new RegExp("%%pagenumber%%","g")},Lt={name:"pagetotal",label:"Pagetotal",placeholder:"%%pagetotal%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagetotal","")},regexp:new RegExp("%%pagetotal%%","g")},Pt={name:"permalink",label:"Permalink",placeholder:"%%permalink%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.permalink","")},regexp:new RegExp("%%permalink%%","g")},At={name:"post_content",label:"Post Content",placeholder:"%%post_content%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_content","")},regexp:new RegExp("%%post_content%%","g")},Mt={name:"post_day",label:"Post Day",placeholder:"%%post_day%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_day","")},regexp:new RegExp("%%post_day%%","g")},Ot={name:"post_month",label:"Post Month",placeholder:"%%post_month%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_month","")},regexp:new RegExp("%%post_month%%","g")},Ft={name:"post_year",label:"Post Year",placeholder:"%%post_year%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_year","")},regexp:new RegExp("%%post_year%%","g")},Dt={name:"pt_plural",label:"Post type (plural)",placeholder:"%%pt_plural%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_plural","")},regexp:new RegExp("%%pt_plural%%","g")},Nt={name:"pt_single",label:"Post type (singular)",placeholder:"%%pt_single%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_single","")},regexp:new RegExp("%%pt_single%%","g")},qt={name:"primary_category",label:"Primary category",placeholder:"%%primary_category%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.primary_category","")},regexp:new RegExp("%%primary_category%%","g")},$t={name:"searchphrase",label:"Search phrase",placeholder:"%%searchphrase%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.searchphrase","")},regexp:new RegExp("%%searchphrase%%","g")},Ut={name:"sep",label:"Separator",placeholder:"%%sep%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sep","")},regexp:new RegExp("%%sep%%(\\s*%%sep%%)*","g")},Bt={name:"sitedesc",label:"Tagline",placeholder:"%%sitedesc%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitedesc","")},regexp:new RegExp("%%sitedesc%%","g")},Wt={name:"sitename",label:"Site title",placeholder:"%%sitename%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitename","")},regexp:new RegExp("%%sitename%%","g")},zt={name:"tag",label:"Tag",placeholder:"%%tag%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.tag","")},regexp:new RegExp("%%tag%%","g")},Kt={name:"term404",label:"Term404",placeholder:"%%term404%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term404","")},regexp:new RegExp("%%term404%%","g")},Ht={name:"term_description",label:"Term description",placeholder:"%%term_description%%",aliases:[{name:"tag_description",label:"Tag description",placeholder:"%%tag_description%%"},{name:"category_description",label:"Category description",placeholder:"%%category_description%%"}],getReplacement:function(){return(0,Ee.get)(window,"YoastSEO.app.rawData.text","")},regexp:new RegExp("%%term_description%%|%%tag_description%%|%%category_description%%","g")},Yt={name:"term_hierarchy",label:"Term hierarchy",placeholder:"%%term_hierarchy%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_hierarchy","")},regexp:new RegExp("%%term_hierarchy%%","g")},jt={name:"term_title",label:"Term title",placeholder:"%%term_title%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_title","")},regexp:new RegExp("%%term_title%%","g")},Vt={name:"title",label:"Title",placeholder:"%%title%%",aliases:[],getReplacement:function(){return(0,n.select)("yoast-seo/editor").getEditorDataTitle()},regexp:new RegExp("%%title%%","g")},Gt={name:"user_description",label:"User description",placeholder:"%%user_description%%",aliases:[],getReplacement:function(){return(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.user_description","")},regexp:new RegExp("%%user_description%%","g")};var Zt={source:"wpseoScriptData.analysis.plugins.replaceVars",scope:[],aliases:[]},Qt=function(e,t,s){this.placeholder=e,this.replacement=t,this.options=(0,Ee.defaults)(s,Zt)};Qt.prototype.getPlaceholder=function(e){return(e=e||!1)&&this.hasAlias()?this.placeholder+"|"+this.getAliases().join("|"):this.placeholder},Qt.prototype.setSource=function(e){this.options.source=e},Qt.prototype.hasScope=function(){return!(0,Ee.isEmpty)(this.options.scope)},Qt.prototype.addScope=function(e){this.hasScope()||(this.options.scope=[]),this.options.scope.push(e)},Qt.prototype.inScope=function(e){return!this.hasScope()||(0,Ee.indexOf)(this.options.scope,e)>-1},Qt.prototype.hasAlias=function(){return!(0,Ee.isEmpty)(this.options.aliases)},Qt.prototype.addAlias=function(e){this.hasAlias()||(this.options.aliases=[]),this.options.aliases.push(e)},Qt.prototype.getAliases=function(){return this.options.aliases};const Jt=Qt,Xt="replaceVariablePlugin",es=e=>{["content","title","snippet_title","snippet_meta","primary_category","data_page_title","data_meta_desc","excerpt"].forEach((t=>{Ze(t,e,Xt,10)}))},ts=e=>es((t=>t.replace(new RegExp(e.placeholder,"g"),e.replacement))),ss=e=>(0,Ee.get)(window,"wordproofSdk.data"+(e?`.${e}`:""),{}),as=()=>{const e=pt();return 1===(0,Ee.get)(e,"wordproofIntegrationActive",0)},rs=e=>{const t=new CustomEvent(e);window.dispatchEvent(t)},ns=()=>{rs("wordproof:open_authentication")},os=500;function is(){}function ls(e){return e.sort(((e,t)=>e._identifier.localeCompare(t._identifier)))}function cs(){const e=pt();return(0,Ee.get)(e,"contentLocale","en_US")}function ds(){const e=pt();return!0===(0,Ee.get)(e,"contentAnalysisActive",!1)}function ps(){const e=pt();return!0===(0,Ee.get)(e,"keywordAnalysisActive",!1)}function us(){const e=pt();return!0===(0,Ee.get)(e,"inclusiveLanguageAnalysisActive",!1)}const ms=window.yoast.featureFlag;const hs="yoastmark";function gs(e,t){return e._properties.position.startOffset>t.length||e._properties.position.endOffset>t.length}function ys(e,t,s){const a=e.dom;let r=e.getContent();if(r=lt.markers.removeMarks(r),(0,Ee.isEmpty)(s))return void e.setContent(r);r=s[0].hasPosition()?function(e,t){if(!t)return"";for(let s=(e=(0,Ee.orderBy)(e,(e=>e._properties.position.startOffset),["asc"])).length-1;s>=0;s--){const a=e[s];gs(a,t)||(t=a.applyWithPosition(t))}return t}(s,r):function(e,t,s,a){const{fieldsToMark:r,selectedHTML:n}=lt.languageProcessing.getFieldsToMark(s,a);return(0,Ee.forEach)(s,(function(t){"acf_content"!==e.id&&(t._properties.marked=lt.languageProcessing.normalizeHTML(t._properties.marked),t._properties.original=lt.languageProcessing.normalizeHTML(t._properties.original)),r.length>0?n.forEach((e=>{const s=t.applyWithReplace(e);a=a.replace(e,s)})):a=t.applyWithReplace(a)})),a}(e,0,s,r),e.setContent(r),function(e){let t=e.getContent();t=t.replace(new RegExp("&lt;yoastmark.+?&gt;","g"),"").replace(new RegExp("&lt;/yoastmark&gt;","g"),""),e.setContent(t)}(e);const n=a.select(hs);(0,Ee.forEach)(n,(function(e){e.setAttribute("data-mce-bogus","1")}))}function fs(e){return window.test=e,ys.bind(null,e)}Ee.noop,Ee.noop,Ee.noop;const ws="content";function bs(e){if("undefined"==typeof tinyMCE||void 0===tinyMCE.editors||0===tinyMCE.editors.length)return!1;const t=tinyMCE.get(e);return null!==t&&!t.isHidden()}window.wp.annotations;const Es=function(e){return(0,Ee.uniq)((0,Ee.flatten)(e.map((e=>{if(!(0,Ee.isUndefined)(e.getFieldsToMark()))return e.getFieldsToMark()}))))},vs=window.wp.richText,_s=/(<([a-z]|\/)[^<>]+>)/gi,{htmlEntitiesRegex:ks}=lt.helpers.htmlEntities,xs=e=>{let t=0;return(0,Ee.forEachRight)(e,(e=>{const[s]=e;let a=s.length;/^<\/?br/.test(s)&&(a-=1),t+=a})),t},Ts="<yoastmark class='yoast-text-mark'>",Ss="</yoastmark>",Rs='<yoastmark class="yoast-text-mark">';function Cs(e,t,s,a,r){const n=a.clientId,o=(0,vs.create)({html:e,multilineTag:s.multilineTag,multilineWrapperTag:s.multilineWrapperTag}).text;return(0,Ee.flatMap)(r,(s=>{let r;return r=s.hasBlockPosition&&s.hasBlockPosition()?function(e,t,s,a,r){if(t===e.getBlockClientId()){let t=e.getBlockPositionStart(),n=e.getBlockPositionEnd();if(e.isMarkForFirstBlockSection()){const e=((e,t,s)=>{const a="yoast/faq-block"===s?'<strong class="schema-faq-question">':'<strong class="schema-how-to-step-name">';return{blockStartOffset:e-=a.length,blockEndOffset:t-=a.length}})(t,n,s);t=e.blockStartOffset,n=e.blockEndOffset}if(a.slice(t,n)===r.slice(t,n))return[{startOffset:t,endOffset:n}];const o=((e,t,s)=>{const a=s.slice(0,e),r=s.slice(0,t),n=((e,t,s,a)=>{const r=[...e.matchAll(_s)];s-=xs(r);const n=[...t.matchAll(_s)];return{blockStartOffset:s,blockEndOffset:a-=xs(n)}})(a,r,e,t),o=((e,t,s,a)=>{let r=[...e.matchAll(ks)];return(0,Ee.forEachRight)(r,(e=>{const[,t]=e;s-=t.length})),r=[...t.matchAll(ks)],(0,Ee.forEachRight)(r,(e=>{const[,t]=e;a-=t.length})),{blockStartOffset:s,blockEndOffset:a}})(a,r,e=n.blockStartOffset,t=n.blockEndOffset);return{blockStartOffset:e=o.blockStartOffset,blockEndOffset:t=o.blockEndOffset}})(t,n,a);return[{startOffset:o.blockStartOffset,endOffset:o.blockEndOffset}]}return[]}(s,n,a.name,e,o):function(e,t){const s=t.getOriginal().replace(/(<([^>]+)>)/gi,""),a=t.getMarked().replace(/(<(?!\/?yoastmark)[^>]+>)/gi,""),r=function(e,t,s=!0){const a=[];if(0===e.length)return a;let r,n=0;for(s||(t=t.toLowerCase(),e=e.toLowerCase());(r=e.indexOf(t,n))>-1;)a.push(r),n=r+t.length;return a}(e,s);if(0===r.length)return[];const n=function(e){let t=e.indexOf(Ts);const s=t>=0;s||(t=e.indexOf(Rs));let a=null;const r=[];for(;t>=0;){if(a=(e=s?e.replace(Ts,""):e.replace(Rs,"")).indexOf(Ss),a<t)return[];e=e.replace(Ss,""),r.push({startOffset:t,endOffset:a}),t=s?e.indexOf(Ts):e.indexOf(Rs),a=null}return r}(a),o=[];return n.forEach((e=>{r.forEach((a=>{const r=a+e.startOffset;let n=a+e.endOffset;0===e.startOffset&&e.endOffset===t.getOriginal().length&&(n=a+s.length),o.push({startOffset:r,endOffset:n})}))})),o}(o,s),r?r.map((e=>({...e,block:n,richTextIdentifier:t}))):[]}))}const Is=e=>e[0].toUpperCase()+e.slice(1),Ls=(e,t,s,a,r)=>(e=e.map((e=>{const n=`${e.id}-${r[0]}`,o=`${e.id}-${r[1]}`,i=Is(r[0]),l=Is(r[1]),c=e[`json${i}`],d=e[`json${l}`],{marksForFirstSection:p,marksForSecondSection:u}=((e,t)=>({marksForFirstSection:e.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&e.isMarkForFirstBlockSection():e)),marksForSecondSection:e.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&!e.isMarkForFirstBlockSection():e))}))(t,e),m=Cs(c,n,s,a,p),h=Cs(d,o,s,a,u);return m.concat(h)})),(0,Ee.flattenDeep)(e)),Ps="yoast";let As=[];const Ms={"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 Os(){const e=As.shift();e&&((0,n.dispatch)("core/annotations").__experimentalAddAnnotation(e),Fs())}function Fs(){(0,Ee.isFunction)(window.requestIdleCallback)?window.requestIdleCallback(Os,{timeout:1e3}):setTimeout(Os,150)}const Ds=(e,t)=>{return(0,Ee.flatMap)((s=e.name,Ms.hasOwnProperty(s)?Ms[s]:[]),(s=>"yoast/faq-block"===e.name?((e,t,s)=>{const a=t.attributes[e.key];return 0===a.length?[]:Ls(a,s,e,t,["question","answer"])})(s,e,t):"yoast/how-to-block"===e.name?((e,t,s)=>{const a=t.attributes[e.key];if(a&&0===a.length)return[];const r=[];return"steps"===e.key&&r.push(Ls(a,s,e,t,["name","text"])),"jsonDescription"===e.key&&(s=s.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?!e.getBlockAttributeId():e)),r.push(Cs(a,"description",e,t,s))),(0,Ee.flattenDeep)(r)})(s,e,t):function(e,t,s){const a=e.key,r=((e,t)=>{const s=e.attributes[t];return"string"==typeof s?s:s.toString()})(t,a);return Cs(r,a,e,t,s)}(s,e,t)));var s};function Ns(e,t){return(0,Ee.flatMap)(e,(e=>{const s=function(e){return e.innerBlocks.length>0}(e)?Ns(e.innerBlocks,t):[];return Ds(e,t).concat(s)}))}function qs(e){As=[],(0,n.dispatch)("core/annotations").__experimentalRemoveAnnotationsBySource(Ps);const t=Es(e);if(0===e.length)return;let s=(0,n.select)("core/block-editor").getBlocks();var a;t.length>0&&(s=s.filter((e=>t.some((t=>"core/"+t===e.name))))),a=Ns(s,e),As=a.map((e=>({blockClientId:e.block,source:Ps,richTextIdentifier:e.richTextIdentifier,range:{start:e.startOffset,end:e.endOffset}}))),Fs()}function $s(e,t){let s;bs(ws)&&((0,Ee.isUndefined)(s)&&(s=fs(tinyMCE.get(ws))),s(e,t)),(0,n.select)("core/block-editor")&&(0,Ee.isFunction)((0,n.select)("core/block-editor").getBlocks)&&(0,n.select)("core/annotations")&&(0,Ee.isFunction)((0,n.dispatch)("core/annotations").__experimentalAddAnnotation)&&(function(e,t){tinyMCE.editors.map((e=>fs(e))).forEach((s=>s(e,t)))}(e,t),qs(t)),(0,o.doAction)("yoast.analysis.applyMarks",t)}function Us(){const e=(0,n.select)("yoast-seo/editor").isMarkingAvailable(),t=(0,n.select)("yoast-seo/editor").getMarkerPauseStatus();return!e||t?Ee.noop:$s}const Bs=(0,Ee.debounce)((async function(e,t){const{text:s,...a}=t,r=new lt.Paper(s,a);try{const t=await e.analyze(r),{seo:s,readability:a,inclusiveLanguage:i}=t.result;if(s){const e=s[""];e.results.forEach((e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(r,e.marks)})),e.results=ls(e.results),(0,n.dispatch)("yoast-seo/editor").setSeoResultsForKeyword(r.getKeyword(),e.results),(0,n.dispatch)("yoast-seo/editor").setOverallSeoScore(e.score,r.getKeyword())}a&&(a.results.forEach((e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(r,e.marks)})),a.results=ls(a.results),(0,n.dispatch)("yoast-seo/editor").setReadabilityResults(a.results),(0,n.dispatch)("yoast-seo/editor").setOverallReadabilityScore(a.score)),i&&(i.results.forEach((e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(r,e.marks)})),i.results=ls(i.results),(0,n.dispatch)("yoast-seo/editor").setInclusiveLanguageResults(i.results),(0,n.dispatch)("yoast-seo/editor").setOverallInclusiveLanguageScore(i.score)),(0,o.doAction)("yoast.analysis.run",t,{paper:r})}catch(e){}}),os);function Ws(){const{getAnalysisData:e,getEditorDataTitle:t}=(0,n.select)("yoast-seo/editor");let s=e();s={...s,textTitle:t()};const a=function(e){return e.title=Je("data_page_title",e.title),e.title=Je("title",e.title),e.description=Je("data_meta_desc",e.description),e.text=Je("content",e.text),e}(s);return(0,o.applyFilters)("yoast.analysis.data",a)}function zs(){const{getAnalysisTimestamp:e,isCornerstoneContent:t}=(0,n.select)("yoast-seo/editor"),s=function(){const e=(0,Ee.get)(window,["wpseoScriptData","analysis","worker","url"],"analysis-worker.js"),t=(0,lt.createWorker)(e),s=(0,Ee.get)(window,["wpseoScriptData","analysis","worker","dependencies"],[]),a=[];for(const e in s){if(!Object.prototype.hasOwnProperty.call(s,e))continue;const t=window.document.getElementById(`${e}-js-translations`);if(!t)continue;const r=t.innerHTML.slice(214),n=r.indexOf(","),o=r.slice(0,n-1);try{const e=JSON.parse(r.slice(n+1,-4));a.push([o,e])}catch(t){console.warn(`Failed to parse translation data for ${e} to send to the Yoast SEO worker`);continue}}return t.postMessage({dependencies:s,translations:a}),new lt.AnalysisWorkerWrapper(t)}();s.initialize(function(e={}){let t={locale:cs(),contentAnalysisActive:ds(),keywordAnalysisActive:ps(),inclusiveLanguageAnalysisActive:us(),defaultQueryParams:(0,Ee.get)(window,["wpseoAdminL10n","default_query_params"],{}),logLevel:(0,Ee.get)(window,["wpseoScriptData","analysis","worker","log_level"],"ERROR"),enabledFeatures:(0,ms.enabledFeatures)()};t=(0,Ee.merge)(t,e);const s=function(){const e=pt();return(0,Ee.get)(e,"translations",{domain:"wordpress-seo",locale_data:{"wordpress-seo":{"":{}}}})}();return(0,Ee.isUndefined)(s)||(0,Ee.isUndefined)(s.domain)||(t.translations=s),t}({useCornerstone:t(),marker:Us()})).catch(is),window.YoastSEO.analysis.applyMarks=(e,t)=>Us()(e,t);let a=Ws(),r=t(),o=e();return(0,n.subscribe)((()=>{const n=t(),i=Ws(),l=e();if(n!==r)return r=n,a=i,void s.initialize({useCornerstone:n}).then((()=>Bs(s,i))).catch(is);l===o&&!1!==(0,Ee.isEqual)(i,a)||(a=i,o=l,Bs(s,i))})),s}const Ks=window.yoast.styledComponents;var Hs=s.n(Ks);class Ys extends $e.modules.hookUI.Base{constructor(e,t,s){super(),this.hook=e,this.id=t,this.callback=s}getCommand(){return this.hook}getId(){return this.id}apply(){return this.callback()}}class js extends $e.modules.hookData.Base{constructor(e,t,s){super(),this.hook=e,this.id=t,this.callback=s}getCommand(){return this.hook}getId(){return this.id}apply(){return this.callback()}}function Vs(e,t,s){$e.hooks.registerUIAfter(new Ys(e,t,s))}function Gs(e,t,s){$e.hooks.registerUIBefore(new Ys(e,t,s))}const Zs=window.yoast.externals.contexts,Qs=({theme:e,location:t,children:s})=>(0,L.createElement)(Zs.LocationProvider,{value:t},(0,L.createElement)(Ks.ThemeProvider,{theme:e},s));Qs.propTypes={theme:E().object.isRequired,location:E().oneOf(["sidebar","metabox","modal"]).isRequired,children:E().element.isRequired};const Js=Qs,Xs=[];let ea=null;class ta extends M.Component{constructor(e){super(e),this.state={registeredComponents:[]}}registerComponent(e,t){this.setState({registeredComponents:[...this.state.registeredComponents,{key:e,Component:t}]})}render(){return this.state.registeredComponents.map((({Component:e,key:t})=>(0,L.createElement)(e,{key:t})))}}function sa(e,t){null===ea||null===ea.current?Xs.push({key:e,Component:t}):ea.current.registerComponent(e,t)}function aa(){return(0,L.createElement)(A.Slot,{name:"YoastElementor"},(e=>{return void 0===(t=e).length?t:(0,Ee.flatten)(t).sort(((e,t)=>void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority));var t}))}const ra=window.wp.compose,na=L.forwardRef((function(e,t){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),L.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"}))})),oa=()=>[(0,O.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,O.__)("%1$sAI%2$s: Better SEO titles and meta descriptions, faster.","wordpress-seo"),"<strong>","</strong>"),(0,O.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,O.__)("%1$sMultiple keywords%2$s: Rank higher for more searches.","wordpress-seo"),"<strong>","</strong>"),(0,O.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,O.__)("%1$sSuper fast%2$s internal linking suggestions.","wordpress-seo"),"<strong>","</strong>"),(0,O.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,O.__)("%1$sNo more broken links%2$s: Automatic redirect manager.","wordpress-seo"),"<strong>","</strong>"),(0,O.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,O.__)("%1$sAppealing social previews%2$s people actually want to click on.","wordpress-seo"),"<strong>","</strong>"),(0,O.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,O.__)("%1$s24/7 support%2$s: Also on evenings and weekends.","wordpress-seo"),"<strong>","</strong>")];var ia=s(4530),la=s.n(ia);const ca=({className:e,...t})=>(0,L.createElement)("span",{className:la()("yst-grow yst-overflow-hidden yst-overflow-ellipsis yst-whitespace-nowrap yst-font-wp yst-text-[#555] yst-text-base yst-leading-[normal] yst-subpixel-antialiased yst-text-left",e),...t});ca.displayName="MetaboxButton.Text",ca.propTypes={className:E().string},ca.defaultProps={className:""};const da=({className:e,...t})=>(0,L.createElement)("button",{type:"button",className:la()("yst-flex yst-items-center yst-w-full yst-pt-4 yst-pb-4 yst-pr-4 yst-pl-6 yst-space-x-2 yst-border-t yst-border-t-[rgb(0,0,0,0.2)] yst-rounded-none yst-transition-all hover:yst-bg-[#f0f0f0] focus:yst-outline focus:yst-outline-[1px] focus:yst-outline-[color:#0066cd] focus:-yst-outline-offset-1 focus:yst-shadow-[0_0_3px_rgba(8,74,103,0.8)]",e),...t});da.propTypes={className:E().string},da.defaultProps={className:""},da.Text=ca;const pa=window.yoast.componentsNew,ua=e=>(0,L.createElement)("div",{className:"yoast components-panel__body"},(0,L.createElement)("h2",{className:"components-panel__body-title"},(0,L.createElement)("button",{id:e.id,onClick:e.onClick,className:"components-button components-panel__body-toggle",type:"button"},e.prefixIcon&&(0,L.createElement)("span",{className:"yoast-icon-span",style:{fill:`${e.prefixIcon&&e.prefixIcon.color||""}`}},(0,L.createElement)(pa.SvgIcon,{size:e.prefixIcon.size,icon:e.prefixIcon.icon})),(0,L.createElement)("span",{className:"yoast-title-container"},(0,L.createElement)("div",{className:"yoast-title"},e.title),(0,L.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),e.children,e.suffixIcon&&(0,L.createElement)(pa.SvgIcon,{size:e.suffixIcon.size,icon:e.suffixIcon.icon}),e.SuffixHeroIcon))),ma=ua;ua.propTypes={onClick:E().func.isRequired,title:E().string.isRequired,id:E().string,subTitle:E().string,suffixIcon:E().object,SuffixHeroIcon:E().object,prefixIcon:E().object,children:E().node},ua.defaultProps={id:"",suffixIcon:null,SuffixHeroIcon:null,prefixIcon:null,subTitle:"",children:null};const ha=Hs().div`
  padding: 25px 32px 32px;
  color: #303030;
`,ga=Hs().ul`
  margin: 0;
  padding: 0;

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

    &::marker {
      font-size: 1.5rem;
    }
  }
`,ya=Hs().span`
  display: block;
  margin-top: 4px;
`,fa=Hs().h2`
  margin-top: 0;
  margin-bottom: 0.25rem;
  color: #303030;
  font-size: 0.8125rem;
  font-weight: 600;
`,wa=Hs().p`
  display: block;
  margin: 0.25rem 0 1rem 0 !important;
  max-width: 420px;
`,ba=Hs().hr`
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  border-top: 0;
  border-bottom: 1px solid #E2E8F0;
`,Ea=Hs().div`
  text-align: center;
`,va=Hs().a`
  width: 100%;
`,_a=(0,We.makeOutboundLink)(va);class ka extends M.Component{constructor(e){super(e),this.state={defaultPrice:"99"}}createBenefitsList(e){return e.length>0&&(0,L.createElement)(ga,{role:"list"},e.map(((e,t)=>(0,L.createElement)("li",{key:`upsell-benefit-${t}`},(0,M.createInterpolateElement)(e,{strong:(0,L.createElement)("strong",null)})))))}render(){const e=(0,n.select)("yoast-seo/editor").isPromotionActive("black-friday-2023-promotion"),{defaultPrice:t}=this.state,s=e?"69.30":null,a=s||t;return(0,L.createElement)(M.Fragment,null,e&&(0,L.createElement)("div",{className:"yst-flex yst-justify-between yst-items-center yst-text-lg yst-content-between yst-bg-black yst-text-amber-300 yst-h-9 yst-border-amber-300 yst-border-y yst-border-x-0 yst-border-solid yst-px-6"},(0,L.createElement)("div",null,(0,O.__)("BLACK FRIDAY","wordpress-seo")),(0,L.createElement)("div",null,(0,O.__)("30% OFF","wordpress-seo"))),(0,L.createElement)(ha,null,(0,L.createElement)(fa,null,this.props.title),(0,L.createElement)(wa,null,this.props.description),(0,L.createElement)(Ea,null,(0,L.createElement)(_a,{...this.props.upsellButton},this.props.upsellButtonText,this.props.upsellButtonHasCaret&&(0,L.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})),(0,L.createElement)("div",{className:"yst-text-slate-600 yst-my-4"},s&&(0,L.createElement)(M.Fragment,null,(0,L.createElement)("span",{className:"yst-text-slate-500 yst-line-through"},t)," "),(0,L.createElement)("span",{className:"yst-text-slate-900 yst-text-2xl yst-font-bold"},a)," ",(0,O.__)("$ USD / € EUR / £ GBP per year (ex. VAT)","wordpress-seo")),(0,L.createElement)(ya,{id:this.props.upsellButton["aria-describedby"]},this.props.upsellButtonLabel)),(0,L.createElement)(ba,null),(0,L.createElement)(fa,null,this.props.benefitsTitle),this.createBenefitsList(this.props.benefits)))}}ka.propTypes={title:E().node,benefits:E().array,benefitsTitle:E().node,description:E().node,upsellButton:E().object,upsellButtonText:E().string.isRequired,upsellButtonLabel:E().string,upsellButtonHasCaret:E().bool},ka.defaultProps={title:null,description:null,benefits:[],benefitsTitle:null,upsellButton:{href:"",className:"button button-primary"},upsellButtonLabel:"",upsellButtonHasCaret:!0};const xa=ka,Ta=Hs().div`
	min-width: 600px;

	@media screen and ( max-width: 680px ) {
		min-width: 0;
		width: 86vw;
	}
`,Sa=Hs().div`
	@media screen and ( min-width: 600px ) {
		max-width: 420px;
	}
`,Ra=(Hs()(pa.Icon)`
	float: ${(0,We.getDirectionalStyle)("right","left")};
	margin: ${(0,We.getDirectionalStyle)("0 0 16px 16px","0 16px 16px 0")};

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

		@media screen and ( max-width: 680px ) {
			width: 80px;
			height: 80px;
		}
	}
`,"yoast yoast-gutenberg-modal"),Ca=e=>{const{title:t,className:s,showYoastIcon:a,additionalClassName:r,...n}=e,o=a?(0,L.createElement)("span",{className:"yoast-icon"}):null;return(0,L.createElement)(A.Modal,{title:t,className:`${s} ${r}`,icon:o,...n},e.children)};Ca.propTypes={title:E().string,className:E().string,showYoastIcon:E().bool,children:E().oneOfType([E().node,E().arrayOf(E().node)]),additionalClassName:E().string},Ca.defaultProps={title:"Yoast SEO",className:Ra,showYoastIcon:!0,children:null,additionalClassName:""};const Ia=Ca,La=()=>{const[e,,,t,s]=(0,F.useToggleState)(!1),{locationContext:a}=(0,Zs.useRootContext)(),r=(0,F.useSvgAria)(),n=a.includes("sidebar"),o=a.includes("metabox"),i=wpseoAdminL10n[n?"shortlinks.upsell.sidebar.internal_linking_suggestions":"shortlinks.upsell.metabox.internal_linking_suggestions"];return(0,L.createElement)(L.Fragment,null,e&&(0,L.createElement)(Ia,{title:(0,O.__)("Get internal linking suggestions","wordpress-seo"),onRequestClose:s,additionalClassName:"",id:"yoast-internal-linking-suggestions-upsell",className:`${Ra} yoast-gutenberg-modal__box yoast-gutenberg-modal__no-padding`,shouldCloseOnClickOutside:!0},(0,L.createElement)(Sa,null,(0,L.createElement)(xa,{title:(0,O.__)("Rank higher by connecting your content","wordpress-seo"),description:(0,O.sprintf)(/* translators: %s expands to Yoast SEO Premium. */
(0,O.__)("%s automatically suggests to what content you can link with easy drag-and-drop functionality, which is good for your SEO!","wordpress-seo"),"Yoast SEO Premium"),benefitsTitle:/* translators: %s expands to 'Yoast SEO Premium'. */
(0,O.sprintf)("%s also gives you:","Yoast SEO Premium"),benefits:oa(),upsellButtonText:(0,O.sprintf)(/* translators: %s expands to 'Yoast SEO Premium'. */
(0,O.__)("Unlock with %s","wordpress-seo"),"Yoast SEO Premium"),upsellButton:{href:(0,_e.addQueryArgs)(i,{context:a}),className:"yoast-button-upsell",rel:null,"data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2","data-action":"load-nfd-ctb"},upsellButtonLabel:(0,O.__)("1 year free support and updates included!","wordpress-seo")}))),n&&(0,L.createElement)(ma,{id:"yoast-internal-linking-suggestions-sidebar-modal-open-button",title:(0,O.__)("Internal linking suggestions","wordpress-seo"),onClick:t},(0,L.createElement)("div",{className:"yst-root"},(0,L.createElement)(F.Badge,{size:"small",variant:"upsell"},(0,L.createElement)(na,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...r})))),o&&(0,L.createElement)("div",{className:"yst-root"},(0,L.createElement)(da,{id:"yoast-internal-linking-suggestions-metabox-modal-open-button",onClick:t},(0,L.createElement)(da.Text,null,(0,O.__)("Internal linking suggestions","wordpress-seo")),(0,L.createElement)(F.Badge,{size:"small",variant:"upsell"},(0,L.createElement)(na,{className:"yst-w-2.5 yst-h-2.5 yst-mr-1 yst-shrink-0",...r}),(0,L.createElement)("span",null,"Premium")))))},Pa=window.yoast.externals.components;function Aa(){return(0,ra.createHigherOrderComponent)((function(e){return(0,ra.pure)((function(t){const s=(0,M.useContext)(Zs.LocationContext);return(0,M.createElement)(e,{...t,location:s})}))}),"withLocation")}const Ma=(0,ra.compose)([(0,n.withSelect)((e=>{const{isCornerstoneContent:t}=e("yoast-seo/editor");return{isCornerstone:t(),learnMoreUrl:wpseoAdminL10n["shortlinks.cornerstone_content_info"]}})),(0,n.withDispatch)((e=>{const{toggleCornerstoneContent:t}=e("yoast-seo/editor");return{onChange:t}})),Aa()])(Pa.CollapsibleCornerstone),Oa=(0,ra.compose)([(0,n.withSelect)(((e,t)=>{const{isAlertDismissed:s}=e(t.store||"yoast-seo/editor");return{isAlertDismissed:s(t.alertKey)}})),(0,n.withDispatch)(((e,t)=>{const{dismissAlert:s}=e(t.store||"yoast-seo/editor");return{onDismissed:()=>s(t.alertKey)}}))]),Fa=({children:e,id:t,hasIcon:s=!0,title:a,image:r=null,isAlertDismissed:n,onDismissed:o})=>n?null:(0,L.createElement)("div",{id:t,className:"notice-yoast yoast is-dismissible"},(0,L.createElement)("div",{className:"notice-yoast__container"},(0,L.createElement)("div",null,(0,L.createElement)("div",{className:"notice-yoast__header"},s&&(0,L.createElement)("span",{className:"yoast-icon"}),(0,L.createElement)("h2",{className:"notice-yoast__header-heading"},a)),(0,L.createElement)("p",null,e)),r&&(0,L.createElement)(r,{height:"60"})),(0,L.createElement)("button",{type:"button",className:"notice-dismiss",onClick:o},(0,L.createElement)("span",{className:"screen-reader-text"},/* translators: Hidden accessibility text. */
(0,O.__)("Dismiss this notice.","wordpress-seo"))));Fa.propTypes={children:E().node.isRequired,id:E().string.isRequired,hasIcon:E().bool,title:E().any.isRequired,image:E().elementType,isAlertDismissed:E().bool.isRequired,onDismissed:E().func.isRequired};const Da=Oa(Fa),Na=({store:e="yoast-seo/editor",image:t=null,title:s,promoId:a,alertKey:r,children:o,...i})=>(0,n.select)(e).isPromotionActive(a)&&(0,L.createElement)(Da,{alertKey:r,store:e,id:r,title:s,image:t,...i},o);Na.propTypes={store:E().string,image:E().elementType,title:E().any.isRequired,promoId:E().string.isRequired,alertKey:E().string.isRequired,children:E().node};const qa=({store:e="yoast-seo/editor",location:t="sidebar",...s})=>{const a=(0,n.useSelect)((t=>t(e).getIsPremium()),[e]),r=(0,n.useSelect)((t=>t(e).selectLinkParams()),[e]),o="sidebar"===t?(0,O.sprintf)(/* translators: %1$s expands to YOAST SEO PREMIUM */
(0,O.__)("BLACK FRIDAY SALE: %1$s","wordpress-seo"),"YOAST SEO PREMIUM"):(0,M.createInterpolateElement)((0,O.sprintf)(/* translators: %1$s expands to YOAST SEO PREMIUM, %2$s expands to a link on yoast.com, %3$s expands to the anchor end tag. */
(0,O.__)("BLACK FRIDAY SALE: %1$s %2$sBuy now!%3$s","wordpress-seo"),"YOAST SEO PREMIUM","<a>","</a>"),{a:(0,L.createElement)("a",{href:(0,_e.addQueryArgs)("https://yoa.st/black-friday-sale",r),target:"_blank",rel:"noreferrer"})});return a?null:(0,L.createElement)(Na,{id:`black-friday-2023-promotion-${t}`,promoId:"black-friday-2023-promotion",alertKey:"black-friday-2023-promotion",store:e,title:o,image:Image,...s},(0,L.createElement)("span",{className:"yoast-bf-sale-badge"},(0,O.__)("30% OFF!","wordpress-seo")," "),"sidebar"===t&&(0,L.createElement)("a",{className:"yst-block yst--mb-[1em]",href:(0,_e.addQueryArgs)("https://yoa.st/black-friday-sale",r),target:"_blank",rel:"noreferrer"},(0,O.__)("Buy now!","wordpress-seo")))};qa.propTypes={store:E().string,location:E().oneOf(["sidebar","metabox"])};const $a=({store:e="yoast-seo/editor",...t})=>{const s=(0,n.useSelect)((t=>t(e).selectLinkParams()),[e]),a=(0,M.createInterpolateElement)((0,O.sprintf)(/* translators:  %1$s expands to Yoast, %2$s expands to a 'strong' start tag, %2$s to a 'strong' end tag. */
(0,O.__)("The %1$s %2$sultimate Black Friday checklist%3$s helps you prepare in time, so you can boost your results during this sale.","wordpress-seo"),"Yoast","<strong>","</strong>"),{strong:(0,L.createElement)("strong",null)});return(0,L.createElement)(Na,{id:"black-friday-2023-sidebar-checklist",promoId:"black-friday-2023-checklist",alertKey:"black-friday-2023-sidebar-checklist",store:e,title:(0,O.__)("Is your WooCommerce store ready for Black Friday?","wordpress-seo"),...t},a," ",(0,L.createElement)("a",{href:(0,_e.addQueryArgs)("https://yoa.st/black-friday-checklist",s),target:"_blank",rel:"noreferrer"},(0,O.__)("Get the checklist and start optimizing now!","wordpress-seo")))};$a.propTypes={store:E().string};const Ua="trustpilot-review-notification",Ba="yoast-seo/editor";const Wa=()=>{const e=(0,n.useSelect)((e=>e(Ba).getIsPremium()),[]),t=(0,n.useSelect)((e=>e(Ba).isAlertDismissed(Ua)),[]),{overallScore:s}=(0,n.useSelect)((e=>e(Ba).getResultsForFocusKeyword()),[]),{dismissAlert:a}=(0,n.useDispatch)(Ba),r=(0,M.useCallback)((()=>a(Ua)),[a]),[o,i]=(0,M.useState)(!1);return(0,M.useEffect)((()=>{var e,t;"good"===(null===(t=s,(0,Ee.isNil)(t)||(t/=10),e=function(e){switch(e){case"feedback":return{className:"na",screenReaderText:(0,O.__)("Feedback","wordpress-seo"),screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""};case"bad":return{className:"bad",screenReaderText:(0,O.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:(0,O.__)("Needs improvement","wordpress-seo"),screenReaderInclusiveLanguageText:(0,O.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:(0,O.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:(0,O.__)("OK","wordpress-seo"),screenReaderInclusiveLanguageText:(0,O.__)("Potentially non-inclusive","wordpress-seo")};case"good":return{className:"good",screenReaderText:(0,O.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:(0,O.__)("Good","wordpress-seo"),screenReaderInclusiveLanguageText:(0,O.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""}}}(lt.interpreters.scoreToRating(t)))||void 0===e?void 0:e.className)&&i(!0)}),[s]),{shouldShow:!e&&!t&&o,dismiss:r}},za=(0,We.makeOutboundLink)(),Ka=()=>{const{shouldShow:e,dismiss:t}=Wa(),{locationContext:s}=(0,Zs.useRootContext)(),a=(0,n.useSelect)((e=>e(Ba).selectLink("https://yoa.st/trustpilot-review",{context:s})),[s]);return(0,L.createElement)(Fa,{alertKey:Ua,store:Ba,id:Ua,title:(0,O.__)("Show Yoast SEO some love!","wordpress-seo"),hasIcon:!1,isAlertDismissed:!e,onDismissed:t},(0,O.__)("Happy with the plugin?","wordpress-seo")," ",(0,L.createElement)(za,{href:a,rel:"noopener noreferrer"},(0,O.__)("Leave a quick review","wordpress-seo")),".")};var Ha,Ya,ja,Va,Ga,Za,Qa,Ja,Xa,er,tr,sr,ar,rr,nr,or,ir,lr,cr,dr,pr,ur,mr,hr,gr,yr,fr,wr,br,Er,vr,_r,kr,xr,Tr,Sr,Rr,Cr,Ir,Lr,Pr,Ar,Mr,Or,Fr,Dr,Nr;function qr(){return qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e},qr.apply(this,arguments)}const $r=e=>L.createElement("svg",qr({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 448 360"},e),Ha||(Ha=L.createElement("circle",{cx:226,cy:211,r:149,fill:"#f0ecf0"})),Ya||(Ya=L.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"})),ja||(ja=L.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"})),Va||(Va=L.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"})),Ga||(Ga=L.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"})),Za||(Za=L.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"})),Qa||(Qa=L.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"})),Ja||(Ja=L.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"})),Xa||(Xa=L.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"})),er||(er=L.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"})),tr||(tr=L.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"})),sr||(sr=L.createElement("circle",{cx:254.13,cy:104.05,r:4.19,fill:"#000001"})),ar||(ar=L.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"})),rr||(rr=L.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"})),nr||(nr=L.createElement("circle",{cx:219.55,cy:95.28,r:4,fill:"#000001"})),or||(or=L.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"})),ir||(ir=L.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"})),lr||(lr=L.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"})),cr||(cr=L.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"})),dr||(dr=L.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"})),pr||(pr=L.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"})),ur||(ur=L.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"})),mr||(mr=L.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"})),hr||(hr=L.createElement("circle",{cx:38.13,cy:30.03,r:3.14,fill:"#b89ac8"})),gr||(gr=L.createElement("circle",{cx:60.26,cy:39.96,r:3.14,fill:"#e31e0c"})),yr||(yr=L.createElement("circle",{cx:50.29,cy:25.63,r:3.14,fill:"#3baa45"})),fr||(fr=L.createElement("circle",{cx:22.19,cy:19.21,r:3.14,fill:"#2ca9e1"})),wr||(wr=L.createElement("circle",{cx:22.19,cy:30.03,r:3.14,fill:"#e31e0c"})),br||(br=L.createElement("circle",{cx:26.86,cy:8.28,r:3.14,fill:"#3baa45"})),Er||(Er=L.createElement("circle",{cx:49.32,cy:39.99,r:3.14,fill:"#e31e0c"})),vr||(vr=L.createElement("circle",{cx:63.86,cy:59.52,r:3.14,fill:"#f8ad39"})),_r||(_r=L.createElement("circle",{cx:50.88,cy:50.72,r:3.14,fill:"#3baa45"})),kr||(kr=L.createElement("circle",{cx:63.47,cy:76.17,r:3.14,fill:"#e31e0c"})),xr||(xr=L.createElement("circle",{cx:38.34,cy:14.83,r:3.14,fill:"#2ca9e1"})),Tr||(Tr=L.createElement("circle",{cx:44.44,cy:5.92,r:3.14,fill:"#f8ad39"})),Sr||(Sr=L.createElement("circle",{cx:57.42,cy:10.24,r:3.14,fill:"#e31e0c"})),Rr||(Rr=L.createElement("circle",{cx:66.81,cy:12.4,r:3.14,fill:"#2ca9e1"})),Cr||(Cr=L.createElement("circle",{cx:77.95,cy:5.14,r:3.14,fill:"#b89ac8"})),Ir||(Ir=L.createElement("circle",{cx:77.95,cy:30.34,r:3.14,fill:"#e31e0c"})),Lr||(Lr=L.createElement("circle",{cx:80.97,cy:16.55,r:3.14,fill:"#f8ad39"})),Pr||(Pr=L.createElement("circle",{cx:62.96,cy:27.27,r:3.14,fill:"#3baa45"})),Ar||(Ar=L.createElement("circle",{cx:75.36,cy:48.67,r:3.14,fill:"#2ca9e1"})),Mr||(Mr=L.createElement("circle",{cx:76.11,cy:65.31,r:3.14,fill:"#3baa45"})),Or||(Or=L.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"})),Fr||(Fr=L.createElement("path",{fill:"#074a67",d:"M67.75 251.08c0-4.65 10.13-72.65 10.13-72.65h2.8l-9.09 72.3z"})),Dr||(Dr=L.createElement("ellipse",{cx:255.38,cy:103.18,fill:"#fff",rx:1.84,ry:1.77})),Nr||(Nr=L.createElement("ellipse",{cx:221.24,cy:94.75,fill:"#fff",rx:1.84,ry:1.77}))),Ur=({store:e="yoast-seo/editor",image:t=$r,url:s,...a})=>(0,n.useSelect)((t=>t(e).getIsPremium()))?null:(0,L.createElement)(Da,{alertKey:"webinar-promo-notification",store:e,id:"webinar-promo-notification",title:(0,O.__)("Join our FREE webinar for SEO success","wordpress-seo"),image:t,url:s,...a},(0,O.__)("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,L.createElement)("a",{href:s,target:"_blank",rel:"noreferrer"},(0,O.__)("Sign up today!","wordpress-seo")));Ur.propTypes={store:E().string,image:E().elementType,url:E().string.isRequired};const Br=Ur,Wr=()=>window.wpseoScriptData&&"1"===window.wpseoScriptData.isWooCommerceActive,zr=(e="yoast-seo/editor")=>{const t=(0,n.select)(e).isPromotionActive("black-friday-2023-promotion"),s=(0,n.select)(e).isAlertDismissed("black-friday-2023-promotion");return t?s:((e="yoast-seo/editor")=>{const t=(0,n.select)(e).isPromotionActive("black-friday-2023-checklist"),s=(0,n.select)(e).isAlertDismissed("black-friday-2023-sidebar-checklist");return!t||s})(e)},Kr=L.forwardRef((function(e,t){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),L.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"}))})),Hr=(e=null)=>(0,M.useMemo)((()=>{const t={role:"img","aria-hidden":"true"};return null!==e&&(t.focusable=e?"true":"false"),t}),[e]),Yr=e=>{let t=!0;if("blur"===(null==e?void 0:e.type)){const{relatedTarget:s}=e;if(s){const e=["media-modal","wp-core-ui"];t=(0,Ee.intersection)(e,Array.from(s.classList)).length!==e.length}}return t},jr=({id:e,postTypeName:t,children:s,title:a,isOpen:r,close:n,open:o,shouldCloseOnClickOutside:i,showChangesWarning:l,SuffixHeroIcon:c})=>{const d=(0,M.useCallback)((e=>{Yr(e)&&n()}),[n]);return(0,L.createElement)(M.Fragment,null,r&&(0,L.createElement)(Zs.LocationProvider,{value:"modal"},(0,L.createElement)(Ia,{title:a,onRequestClose:d,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal",id:"id",shouldCloseOnClickOutside:i},(0,L.createElement)("div",{className:"yoast-content-container"},(0,L.createElement)("div",{className:"yoast-modal-content"},s)),(0,L.createElement)("div",{className:"yoast-notice-container"},(0,L.createElement)("hr",null),(0,L.createElement)("div",{className:"yoast-button-container"},l&&(0,L.createElement)("p",null,/* Translators: %s translates to the Post Label in singular form */
(0,O.sprintf)((0,O.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),t)),(0,L.createElement)("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:d},/* Translators: %s translates to the Post Label in singular form */
(0,O.sprintf)((0,O.__)("Return to your %s","wordpress-seo"),t)))))),(0,L.createElement)(ma,{id:e+"-open-button",title:a,SuffixHeroIcon:c,suffixIcon:c?null:{size:"20px",icon:"pencil-square"},onClick:o}))};jr.propTypes={id:E().string.isRequired,postTypeName:E().string.isRequired,children:E().oneOfType([E().node,E().arrayOf(E().node)]).isRequired,title:E().string.isRequired,isOpen:E().bool.isRequired,open:E().func.isRequired,close:E().func.isRequired,shouldCloseOnClickOutside:E().bool,showChangesWarning:E().bool,SuffixHeroIcon:E().object},jr.defaultProps={shouldCloseOnClickOutside:!0,showChangesWarning:!0};const Vr=jr,Gr=(0,ra.compose)([(0,n.withSelect)(((e,t)=>{const{getPostOrPageString:s,getIsModalOpen:a}=e("yoast-seo/editor");return{postTypeName:s(),isOpen:a(t.id)}})),(0,n.withDispatch)(((e,t)=>{const{openEditorModal:s,closeEditorModal:a}=e("yoast-seo/editor");return{open:()=>s(t.id),close:a}}))])(Vr),Zr=()=>{const e=(0,n.useSelect)((e=>e("yoast-seo/editor").getEstimatedReadingTime()),[]),t=(0,M.useMemo)((()=>(0,Ee.get)(window,"wpseoAdminL10n.shortlinks-insights-estimated_reading_time","")),[]);return(0,L.createElement)(pa.InsightsCard,{amount:e,unit:(0,O._n)("minute","minutes",e,"wordpress-seo"),title:(0,O.__)("Reading time","wordpress-seo"),linkTo:t
/* translators: Hidden accessibility text. */,linkText:(0,O.__)("Learn more about reading time","wordpress-seo")})},Qr=(0,We.makeOutboundLink)();function Jr(e,t,s){const a=function(e){switch(e){case lt.DIFFICULTY.FAIRLY_DIFFICULT:case lt.DIFFICULTY.DIFFICULT:case lt.DIFFICULTY.VERY_DIFFICULT:return(0,O.__)("Try to make shorter sentences, using less difficult words to improve readability","wordpress-seo");case lt.DIFFICULTY.NO_DATA:return(0,O.__)("Continue writing to get insight into the readability of your text!","wordpress-seo");default:return(0,O.__)("Good job!","wordpress-seo")}}(t);return(0,L.createElement)("span",null,function(e,t){return-1===e?(0,O.sprintf)((0,O.__)("Your text should be slightly longer to calculate your Flesch reading ease score.","wordpress-seo")):(0,O.sprintf)(
/* Translators: %1$s expands to the numeric Flesch reading ease score,
  		%2$s expands to the easiness of reading (e.g. 'easy' or 'very difficult').
  	 */
(0,O.__)("The copy scores %1$s in the test, which is considered %2$s to read.","wordpress-seo"),e,function(e){switch(e){case lt.DIFFICULTY.NO_DATA:return(0,O.__)("no data","wordpress-seo");case lt.DIFFICULTY.VERY_EASY:return(0,O.__)("very easy","wordpress-seo");case lt.DIFFICULTY.EASY:return(0,O.__)("easy","wordpress-seo");case lt.DIFFICULTY.FAIRLY_EASY:return(0,O.__)("fairly easy","wordpress-seo");case lt.DIFFICULTY.OKAY:return(0,O.__)("okay","wordpress-seo");case lt.DIFFICULTY.FAIRLY_DIFFICULT:return(0,O.__)("fairly difficult","wordpress-seo");case lt.DIFFICULTY.DIFFICULT:return(0,O.__)("difficult","wordpress-seo");case lt.DIFFICULTY.VERY_DIFFICULT:return(0,O.__)("very difficult","wordpress-seo")}}(t))}(e,t)," ",t>=lt.DIFFICULTY.FAIRLY_DIFFICULT?(0,L.createElement)(Qr,{href:s},a+"."):a)}const Xr=()=>{let e=(0,n.useSelect)((e=>e("yoast-seo/editor").getFleschReadingEaseScore()),[]);const t=(0,M.useMemo)((()=>(0,Ee.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease","")),[]),s=(0,n.useSelect)((e=>e("yoast-seo/editor").getFleschReadingEaseDifficulty()),[e]),a=(0,M.useMemo)((()=>{const t=(0,Ee.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease_article","");return Jr(e,s,t)}),[e,s]);return-1===e&&(e="?"),(0,L.createElement)(pa.InsightsCard,{amount:e,unit:(0,O.__)("out of 100","wordpress-seo"),title:(0,O.__)("Flesch reading ease","wordpress-seo"),linkTo:t
/* translators: Hidden accessibility text. */,linkText:(0,O.__)("Learn more about Flesch reading ease","wordpress-seo"),description:a})};let en,tn,sn,an;const rn=/<(\/)?(\w+)\s*(\/)?>/g;function nn(e,t,s,a,r){return{element:e,tokenStart:t,tokenLength:s,prevOffset:a,leadingTextStart:r,children:[]}}function on(){const e=en.length-tn;0!==e&&sn.push(en.substring(tn,tn+e))}function ln(e){const{element:t,tokenStart:s,tokenLength:a,prevOffset:r,children:n}=e,o=an[an.length-1],i=en.substring(o.prevOffset,s);i&&o.children.push(i),o.children.push((0,M.cloneElement)(t,null,...n)),o.prevOffset=r||s+a}function cn(e){const t=function(){const e=rn.exec(en);if(null===e)return["no-more-tokens"];const t=e.index,[s,a,r,n]=e,o=s.length;return n?["self-closed",r,t,o]:a?["closer",r,t,o]:["opener",r,t,o]}(),[s,a,r,n]=t,o=an.length,i=r>tn?tn:null;if(!e[a])return on(),!1;switch(s){case"no-more-tokens":if(0!==o){const{leadingTextStart:e,tokenStart:t}=an.pop();sn.push(en.substring(e,e+t))}return on(),!1;case"self-closed":return 0===o?(null!==i&&sn.push(en.substring(i,r)),sn.push(e[a]),tn=r+n,!0):(ln(nn(e[a],r,n)),tn=r+n,!0);case"opener":return an.push(nn(e[a],r,n,r+n,i)),tn=r+n,!0;case"closer":if(1===o)return function(e){const{element:t,leadingTextStart:s,prevOffset:a,tokenStart:r,children:n}=an.pop(),o=e?en.substring(a,e):en.substring(a);o&&n.push(o),null!==s&&sn.push(en.substring(s,r)),sn.push((0,M.cloneElement)(t,null,...n))}(r),tn=r+n,!0;const t=an.pop(),s=en.substring(t.prevOffset,r);t.children.push(s),t.prevOffset=r+n;const l=nn(t.element,t.tokenStart,t.tokenLength,r+n);return l.children=t.children,ln(l),tn=r+n,!0;default:return on(),!1}}const dn=(e,t)=>{if(en=e,tn=0,sn=[],an=[],rn.lastIndex=0,!(e=>{const t="object"==typeof e,s=t&&Object.values(e);return t&&s.length&&s.every((e=>(0,M.isValidElement)(e)))})(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(cn(t));return(0,M.createElement)(M.Fragment,null,...sn)},pn=({data:e,itemScreenReaderText:t,className:s,...a})=>{const r=(0,M.useMemo)((()=>{var t,s;return null!==(t=null===(s=(0,Ee.maxBy)(e,"number"))||void 0===s?void 0:s.number)&&void 0!==t?t:0}),[e]);return(0,L.createElement)("ul",{className:la()("yoast-data-model",s),...a},e.map((({name:e,number:s})=>(0,L.createElement)("li",{key:`${e}_dataItem`,style:{"--yoast-width":s/r*100+"%"}},e,(0,L.createElement)("span",null,s),t&&(0,L.createElement)("span",{className:"screen-reader-text"},(0,O.sprintf)(t,s))))))};pn.propTypes={data:E().arrayOf(E().shape({name:E().string.isRequired,number:E().number.isRequired})),itemScreenReaderText:E().string,className:E().string},pn.defaultProps={data:[],itemScreenReaderText:"",className:""};const un=pn,mn=(0,We.makeOutboundLink)(),hn=({location:e})=>{const t=(0,n.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}),[]),s=(0,n.useSelect)((e=>e("yoast-seo/editor").getPreference("shouldUpsell",!1)),[]),a=(0,M.useMemo)((()=>(0,Ee.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${e}-prominent_words`,"")),[e]),r=(0,M.useMemo)((()=>{const e=(0,Ee.get)(window,"wpseoAdminL10n.shortlinks-insights-keyword_research_link","");return dn((0,O.sprintf)(
// translators: %1$s and %2$s are replaced by opening and closing <a> tags.
(0,O.__)("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,L.createElement)(mn,{href:e})})}),[]),o=(0,M.useMemo)((()=>dn((0,O.sprintf)(
// translators: %1$s expands to a starting `b` tag, %1$s expands to a closing `b` tag and %3$s expands to `Yoast SEO Premium`.
(0,O.__)("With %1$s%3$s%2$s, this section will show you which words occur most often in your text. By checking these prominent words against your intended keyword(s), you'll know how to edit your text to be more focused.","wordpress-seo"),"<b>","</b>","Yoast SEO Premium"),{b:(0,L.createElement)("b",null)})),[]),i=(0,n.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:[]}),[]),l=(0,M.useMemo)((()=>{const e=(0,O.sprintf)(
// translators: %1$s expands to Yoast SEO Premium.
(0,O.__)("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})))}),[]),c=(0,M.useMemo)((()=>s?l:i.map((({word:e,occurrence:t})=>({name:e,number:t})))),[i,l]);if(!t)return null;const{locationContext:d}=(0,Zs.useRootContext)();return(0,L.createElement)("div",{className:"yoast-prominent-words"},(0,L.createElement)("div",{className:"yoast-field-group__title"},(0,L.createElement)("b",null,(0,O.__)("Prominent words","wordpress-seo"))),!s&&(0,L.createElement)("p",null,0===c.length?(0,O.__)("Once you add a bit more copy, we'll give you a list of words that occur the most in the content. These give an indication of what your content focuses on.","wordpress-seo"):(0,O.__)("The following words occur the most in the content. These give an indication of what your content focuses on. If the words differ a lot from your topic, you might want to rewrite your content accordingly.","wordpress-seo")),s&&(0,L.createElement)("p",null,o),s&&(0,L.createElement)(mn,{href:(0,_e.addQueryArgs)(a,{context:d}),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",className:"yoast-button yoast-button-upsell"},(0,O.sprintf)(
// translators: %s expands to `Premium` (part of add-on name).
(0,O.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,L.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})),(0,L.createElement)("p",null,r),(0,L.createElement)(un,{data:c,itemScreenReaderText:/* translators: Hidden accessibility text; %d expands to the number of occurrences. */
(0,O.__)("%d occurrences","wordpress-seo"),"aria-label":(0,O.__)("Prominent words","wordpress-seo"),className:s?"yoast-data-model--upsell":null}))};hn.propTypes={location:E().string.isRequired};const gn=hn,yn=(0,We.makeOutboundLink)(),fn=({location:e})=>{const t=(0,M.useMemo)((()=>(0,Ee.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${e}-text_formality`,"")),[e]),s=(0,M.useMemo)((()=>dn((0,O.sprintf)(
// Translators: %1$s expands to a starting `b` tag, %2$s expands to a closing `b` tag and %3$s expands to `Yoast SEO Premium`.
(0,O.__)("%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,L.createElement)("b",null)})),[]);return(0,L.createElement)(M.Fragment,null,(0,L.createElement)("div",null,(0,L.createElement)("p",null,s),(0,L.createElement)(yn,{href:t,className:"yoast-button yoast-button-upsell"},(0,O.sprintf)(
// Translators: %s expands to `Premium` (part of add-on name).
(0,O.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,L.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"}))))};fn.propTypes={location:E().string.isRequired};const wn=fn,bn=({location:e,name:t})=>{const s=(0,n.useSelect)((e=>e("yoast-seo/editor").isFormalitySupported()),[]),a=pt().isPremium,r=a?(0,Ee.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_premium",""):(0,Ee.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_free",""),o=(0,O.__)("Read more about text formality.","wordpress-seo");return s?(0,L.createElement)("div",{className:"yoast-text-formality"},(0,L.createElement)("div",{className:"yoast-field-group__title"},(0,L.createElement)("b",null,(0,O.__)("Text formality","wordpress-seo")),(0,L.createElement)(pa.HelpIcon,{linkTo:r,linkText:o})),a?(0,L.createElement)(A.Slot,{name:t}):(0,L.createElement)(wn,{location:e})):null};bn.propTypes={location:E().string.isRequired,name:E().string.isRequired};const En=bn,vn=()=>{const e=(0,n.useSelect)((e=>e("yoast-seo/editor").getTextLength()),[]),t=(0,M.useMemo)((()=>(0,Ee.get)(window,"wpseoAdminL10n.shortlinks-insights-word_count","")),[]);let s=(0,O._n)("word","words",e.count,"wordpress-seo"),a=(0,O.__)("Word count","wordpress-seo"),r=(0,O.__)("Learn more about word count","wordpress-seo");return"character"===e.unit&&(s=(0,O._n)("character","characters",e.count,"wordpress-seo"),a=(0,O.__)("Character count","wordpress-seo"),
/* translators: Hidden accessibility text. */
r=(0,O.__)("Learn more about character count","wordpress-seo")),(0,L.createElement)(pa.InsightsCard,{amount:e.count,unit:s,title:a,linkTo:t,linkText:r})},kn=Hs()(Kr)`
	width: 18px;
	height: 18px;
	margin: 3px;
`,xn=({location:e})=>{const t=(0,n.useSelect)((e=>e("yoast-seo/editor").getIsElementorEditor()),[]),s=(0,n.useSelect)((e=>e("yoast-seo/editor").isFleschReadingEaseAvailable()),[]),a=Hr();return(0,L.createElement)(Gr,{title:(0,O.__)("Insights","wordpress-seo"),id:`yoast-insights-modal-${e}`,shouldCloseOnClickOutside:!t,showChangesWarning:!1,SuffixHeroIcon:(0,L.createElement)(kn,{className:"yst-text-slate-500",...a})},(0,L.createElement)("div",{className:"yoast-insights yoast-modal-content--columns"},(0,L.createElement)(gn,{location:e}),(0,L.createElement)("div",null,s&&(0,L.createElement)("div",{className:"yoast-insights-row"},(0,L.createElement)(Xr,null)),(0,L.createElement)("div",{className:"yoast-insights-row yoast-insights-row--columns"},(0,L.createElement)(Zr,null),(0,L.createElement)(vn,null)),(0,ms.isFeatureEnabled)("TEXT_FORMALITY")&&(0,L.createElement)(En,{location:e,name:"YoastTextFormalityMetabox"}))))};xn.propTypes={location:E().string},xn.defaultProps={location:"sidebar"};const Tn=xn;function Sn(e){return 0===e.message.length?null:(0,L.createElement)(pa.Alert,{type:e.type},e.message)}Sn.propTypes={message:E().oneOfType([E().array,E().string]).isRequired,type:E().string.isRequired};const Rn=(0,n.withSelect)((e=>{const{getWarningMessage:t}=e("yoast-seo/editor");return{message:t(),type:"info"}}))(Sn),Cn=({children:e})=>(0,L.createElement)("div",null,e);Cn.propTypes={renderPriority:E().number.isRequired,children:E().node.isRequired};const In=Cn,Ln=L.forwardRef((function(e,t){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),L.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"}))})),Pn=window.yoast.searchMetadataPreviews,An=Hs()(pa.StyledSection)`
	&${pa.StyledSectionBase} {
		padding: 0;

		& ${pa.StyledHeading} {
			${(0,We.getDirectionalStyle)("padding-left","padding-right")}: 20px;
			margin-left: ${(0,We.getDirectionalStyle)("0","20px")};
		}
	}
`,Mn=({children:e,title:t,icon:s,hasPaperStyle:a,shoppingData:r})=>(0,L.createElement)(An,{headingLevel:3,headingText:t,headingIcon:s,headingIconColor:"#555",hasPaperStyle:a,shoppingData:r},e);Mn.propTypes={children:E().element,title:E().string,icon:E().string,hasPaperStyle:E().bool,shoppingData:E().object},Mn.defaultProps={hasPaperStyle:!0,shoppingData:null};const On=Mn;function Fn(e,t,s=""){return(0,M.createInterpolateElement)(e,{a:(0,L.createElement)("a",{id:s,href:t,target:"_blank",rel:"noopener noreferrer"})})}window.wp.sanitize;const{stripHTMLTags:Dn}=We.strings,Nn=(0,Ee.memoize)(((e,t)=>0===e?Ee.noop:(0,Ee.debounce)((s=>t(s,e)),500))),qn=({link:e,text:t})=>(0,L.createElement)(F.Root,null,(0,L.createElement)("p",null,t),(0,L.createElement)(F.Button,{href:e,as:"a",className:"yst-gap-2 yst-mb-5 yst-mt-2",variant:"upsell",target:"_blank",rel:"noopener"},(0,L.createElement)(D,{className:"yst-w-4 yst-h-4 yst--ml-1 yst-shrink-0"}),(0,O.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */
(0,O.__)("Unlock with %1$s","wordpress-seo"),"Yoast WooCommerce SEO")));qn.propTypes={link:E().string.isRequired,text:E().string.isRequired};const $n=qn,Un=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,Ee.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!(0,Ee.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){const t=(0,Ee.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],Ee.identity);return{url:e.url,title:Dn(t(e.title)),description:Dn(t(e.description)),filteredSEOTitle:e.filteredSEOTitle?Dn(t(e.filteredSEOTitle)):""}}(e);const s=t._applyModifications.bind(t);return{url:e.url,title:Dn(s("data_page_title",e.title)),description:Dn(s("data_meta_desc",e.description)),filteredSEOTitle:e.filteredSEOTitle?Dn(s("data_page_title",e.filteredSEOTitle)):""}}(e)},Bn=(0,ra.compose)([(0,n.withSelect)((function(e){const{getBaseUrlFromSettings:t,getDateFromSettings:s,getFocusKeyphrase:a,getRecommendedReplaceVars:r,getReplaceVars:n,getShoppingData:o,getSiteIconUrlFromSettings:i,getSnippetEditorData:l,getSnippetEditorMode:c,getSnippetEditorPreviewImageUrl:d,getSnippetEditorWordsToHighlight:p,isCornerstoneContent:u,getIsTerm:m,getContentLocale:h,getSiteName:g}=e("yoast-seo/editor"),y=n();return y.forEach((e=>{""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(e.value="%%"+e.name+"%%")})),{baseUrl:t(),data:l(),date:s(),faviconSrc:i(),keyword:a(),mobileImageSrc:d(),mode:c(),recommendedReplacementVariables:r(),replacementVariables:y,shoppingData:o(),wordsToHighlight:p(),isCornerstone:u(),isTaxonomy:m(),locale:h(),siteName:g()}})),(0,n.withDispatch)((function(e,t,{select:s}){const{updateData:a,switchMode:r,updateAnalysisData:n,findCustomFields:o}=e("yoast-seo/editor"),i=e("core/editor"),l=s("yoast-seo/editor").getPostId();return{onChange:(e,t)=>{switch(e){case"mode":r(t);break;case"slug":a({slug:t}),i&&i.editPost({slug:t});break;default:a({[e]:t})}},onChangeAnalysisData:n,onReplacementVariableSearchChange:Nn(l,o)}}))])((e=>{const t=(0,Ee.get)(window,"wpseoScriptData.metabox.woocommerceUpsellGooglePreviewLink",""),s=(0,Ee.get)(window,"wpseoScriptData.woocommerceUpsell",""),a=(0,O.__)("Want an enhanced Google preview of how your WooCommerce products look in the search results?","wordpress-seo");return(0,L.createElement)(Zs.LocationConsumer,null,(r=>(0,L.createElement)(On,{icon:"eye",hasPaperStyle:e.hasPaperStyle},(0,L.createElement)(L.Fragment,null,s&&(0,L.createElement)($n,{link:t,text:a}),(0,L.createElement)(Pn.SnippetEditor,{...e,descriptionPlaceholder:(0,O.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:Un,showCloseButton:!1,idSuffix:r})))))})),Wn=Hs()(Ln)`
	width: 18px;
	height: 18px;
	margin: 3px;
`,zn=()=>{const e=Hr();return(0,L.createElement)(Gr,{title:(0,O.__)("Search appearance","wordpress-seo"),id:"yoast-search-appearance-modal",shouldCloseOnClickOutside:!1,SuffixHeroIcon:(0,L.createElement)(Wn,{className:"yst-text-slate-500",...e})},(0,L.createElement)(Bn,{showCloseButton:!1,hasPaperStyle:!1}))},Kn=L.forwardRef((function(e,t){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),L.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"}))})),Hn=Hs().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"};
`,Yn=e=>{const{siteUrl:t}=e;return(0,L.createElement)(L.Fragment,null,(0,L.createElement)("span",{className:"screen-reader-text"},t),(0,L.createElement)(Hn,{"aria-hidden":"true"},(0,L.createElement)("span",null,t)))};Yn.propTypes={siteUrl:E().string.isRequired};const jn=Yn,Vn=window.yoast.socialMetadataForms,Gn=window.yoast.styleGuide,Zn=Hs().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;
	}
`,Qn=Hs().img`
	&&{
		height: 100%;
		position: absolute;
		width: 100%;
		object-fit: cover;
	}
`,Jn=Hs().div`
	padding-bottom: ${e=>e.aspectRatio}%;
`,Xn=e=>{const{imageProps:t,width:s,height:a,imageMode:r}=e;return"landscape"===r?(0,L.createElement)(Jn,{aspectRatio:t.aspectRatio},(0,L.createElement)(Qn,{src:t.src,alt:t.alt})):(0,L.createElement)(Zn,{src:t.src,alt:t.alt,width:s,height:a,imageProperties:t})};function eo(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 to(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 so(e,t,s=!1){const a=await function(e){return new Promise(((t,s)=>{const a=new Image;a.onload=()=>{t({width:a.width,height:a.height})},a.onerror=s,a.src=e}))}(e);let r=s?"landscape":"square";"Facebook"===t&&(r=(0,Vn.determineFacebookImageMode)(a));const n=function(e){return"Twitter"===e?Vn.TWITTER_IMAGE_SIZES:Vn.FACEBOOK_IMAGE_SIZES}(t),o=function(e,t,s){return"square"===s&&t.width===t.height?{width:e.squareWidth,height:e.squareHeight}:to(t,eo(e,t,s))}(n,a,r);return{mode:r,height:o.height,width:o.width}}async function ao(e,t,s=!1){try{return{imageProperties:await so(e,t,s),status:"loaded"}}catch(e){return{imageProperties:null,status:"errored"}}}Xn.propTypes={imageProps:E().shape({src:E().string.isRequired,alt:E().string.isRequired,aspectRatio:E().number.isRequired}).isRequired,width:E().number.isRequired,height:E().number.isRequired,imageMode:E().string},Xn.defaultProps={imageMode:"landscape"};const ro=Hs().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: ${Gn.colors.$color_white};
`,no=Hs().div`
	box-sizing: border-box;
	max-width: ${Vn.FACEBOOK_IMAGE_SIZES.landscapeWidth}px;
	height: ${Vn.FACEBOOK_IMAGE_SIZES.landscapeHeight}px;
	background-color: ${Gn.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 oo extends L.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 ao(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:Vn.FACEBOOK_IMAGE_SIZES.squareHeight+"px",width:Vn.FACEBOOK_IMAGE_SIZES.squareWidth+"px"};case"portrait":return{height:Vn.FACEBOOK_IMAGE_SIZES.portraitHeight+"px",width:Vn.FACEBOOK_IMAGE_SIZES.portraitWidth+"px"};case"landscape":return{height:Vn.FACEBOOK_IMAGE_SIZES.landscapeHeight+"px",width:Vn.FACEBOOK_IMAGE_SIZES.landscapeWidth+"px"}}}render(){const{imageProperties:e,status:t}=this.state;if("loading"===t||""===this.props.src||"errored"===t)return(0,L.createElement)(no,{onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},(0,O.__)("Select image","wordpress-seo"));const s=this.retrieveContainerDimensions(e.mode);return(0,L.createElement)(ro,{mode:e.mode,dimensions:s,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onClick:this.props.onImageClick},(0,L.createElement)(Xn,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:Vn.FACEBOOK_IMAGE_SIZES.aspectRatio},width:e.width,height:e.height,imageMode:e.mode}))}}oo.propTypes={src:E().string,alt:E().string,onImageLoaded:E().func,onImageClick:E().func,onMouseEnter:E().func,onMouseLeave:E().func},oo.defaultProps={src:"",alt:"",onImageLoaded:Ee.noop,onImageClick:Ee.noop,onMouseEnter:Ee.noop,onMouseLeave:Ee.noop};const io=oo,lo=Hs().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;
`,co=Hs().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;
	}
`,po=e=>{switch(e){case"landscape":return"527px";case"square":case"portrait":return"369px";default:return"476px"}},uo=Hs().div`
	box-sizing: border-box;
	display: flex;
	flex-direction: ${e=>"landscape"===e.mode?"column":"row"};
	background-color: #f2f3f5;
	max-width: 527px;
`,mo=Hs().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 ho extends L.Component{constructor(e){super(e),this.state={imageMode:null,maxLineCount:0,descriptionLineCount:0},this.facebookTitleRef=P().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,a=this.getTitleLineCount();let r=t-a;"portrait"===s&&(r=5===a?0:4),r!==e&&this.setState({descriptionLineCount:r})}componentDidUpdate(){this.maybeSetMaxLineCount(),this.maybeSetDescriptionLineCount()}render(){const{imageMode:e,maxLineCount:t,descriptionLineCount:s}=this.state;return(0,L.createElement)(uo,{id:"facebookPreview",mode:e},(0,L.createElement)(io,{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,L.createElement)(mo,{mode:e},(0,L.createElement)(jn,{siteUrl:this.props.siteUrl,mode:e}),(0,L.createElement)(lo,{ref:this.facebookTitleRef,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,lineCount:t},this.props.title),s>0&&(0,L.createElement)(co,{maxWidth:po(e),onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,lineCount:s},this.props.description)))}}ho.propTypes={siteUrl:E().string.isRequired,title:E().string.isRequired,description:E().string,imageUrl:E().string,imageFallbackUrl:E().string,alt:E().string,onSelect:E().func,onImageClick:E().func,onMouseHover:E().func},ho.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{}};const go=ho,yo=Hs().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;
`,fo=e=>(0,L.createElement)(yo,null,(0,L.createElement)("span",null,e.siteUrl));fo.propTypes={siteUrl:E().string.isRequired};const wo=fo,bo=(e,t=!0)=>e?`\n\t\t\tmax-width: ${Vn.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: ${Vn.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`,Eo=Hs().div`
	position: relative;
	box-sizing: content-box;
	overflow: hidden;
	background-color: #e1e8ed;
	flex-shrink: 0;
	${e=>bo(e.isLarge)}
`,vo=Hs().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=>bo(e.isLarge,!1)}
`,_o=Hs()(vo)`
	${e=>e.isLarge&&`height: ${Vn.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 ko extends P().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 ao(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,L.createElement)(_o,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},(0,O.__)("Select image","wordpress-seo")):(0,L.createElement)(Eo,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},(0,L.createElement)(Xn,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:Vn.TWITTER_IMAGE_SIZES.aspectRatio},width:t.width,height:t.height,imageMode:t.mode}))}}ko.propTypes={isLarge:E().bool.isRequired,src:E().string,alt:E().string,onImageClick:E().func,onMouseEnter:E().func,onMouseLeave:E().func},ko.defaultProps={src:"",alt:"",onMouseEnter:Ee.noop,onImageClick:Ee.noop,onMouseLeave:Ee.noop};const xo=Hs().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;
    }
`,To=e=>(0,L.createElement)(xo,null,e.children);To.propTypes={children:E().array.isRequired};const So=To,Ro=Hs().p`
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	color: rgb(15, 20, 25);
	cursor: pointer;
`,Co=Hs().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: ${Vn.TWITTER_IMAGE_SIZES.landscapeWidth}px ) {
		display: none;
	}
`,Io=Hs().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);
	}
`,Lo=Hs()(Io)`
	flex-direction: column;
	max-height: 370px;
`,Po=Hs()(Io)`
	flex-direction: row;
	height: 125px;
`;class Ao extends L.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:a,title:r,description:n,siteUrl:o}=this.props,i=e?Lo:Po;return(0,L.createElement)(i,{id:"twitterPreview"},(0,L.createElement)(ko,{src:t||s,alt:a,isLarge:e,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,L.createElement)(So,null,(0,L.createElement)(wo,{siteUrl:o}),(0,L.createElement)(Ro,{onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle},r),(0,L.createElement)(Co,{onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription},n)))}}Ao.propTypes={siteUrl:E().string.isRequired,title:E().string.isRequired,description:E().string,isLarge:E().bool,imageUrl:E().string,imageFallbackUrl:E().string,alt:E().string,onSelect:E().func,onImageClick:E().func,onMouseHover:E().func},Ao.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{},isLarge:!0};const Mo=Ao,Oo=window.yoast.replacementVariableEditor;class Fo extends L.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.SocialPreview="Social"===e.socialMediumName?go:Mo,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:a,socialMediumName:r,imageWarnings:n,siteUrl:o,description:i,descriptionInputPlaceholder:l,descriptionPreviewFallback:c,imageUrl:d,imageFallbackUrl:p,alt:u,title:m,titleInputPlaceholder:h,titlePreviewFallback:g,replacementVariables:y,recommendedReplacementVariables:f,applyReplacementVariables:w,onReplacementVariableSearchChange:b,isPremium:E,isLarge:v,socialPreviewLabel:_,idSuffix:k,activeMetaTabId:x}=this.props,T=w({title:m||g,description:i||c});return(0,L.createElement)(P().Fragment,null,_&&(0,L.createElement)(pa.SimulatedLabel,null,_),(0,L.createElement)(this.SocialPreview,{onMouseHover:this.setHoveredField,onSelect:this.setActiveField,onImageClick:s,siteUrl:o,title:T.title,description:T.description,imageUrl:d,imageFallbackUrl:p,alt:u,isLarge:v,activeMetaTabId:x}),(0,L.createElement)(Vn.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:r,title:m,titleInputPlaceholder:h,onRemoveImageClick:a,imageSelected:!!d,imageUrl:d,onTitleChange:t,onSelectImageClick:s,description:i,descriptionInputPlaceholder:l,imageWarnings:n,replacementVariables:y,recommendedReplacementVariables:f,onReplacementVariableSearchChange:b,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:E,setEditorRef:this.setEditorRef,idSuffix:k}))}}Fo.propTypes={title:E().string.isRequired,onTitleChange:E().func.isRequired,description:E().string.isRequired,onDescriptionChange:E().func.isRequired,imageUrl:E().string.isRequired,imageFallbackUrl:E().string.isRequired,onSelectImageClick:E().func.isRequired,onRemoveImageClick:E().func.isRequired,socialMediumName:E().string.isRequired,alt:E().string,isPremium:E().bool,imageWarnings:E().array,isLarge:E().bool,siteUrl:E().string,descriptionInputPlaceholder:E().string,titleInputPlaceholder:E().string,descriptionPreviewFallback:E().string,titlePreviewFallback:E().string,replacementVariables:Oo.replacementVariablesShape,recommendedReplacementVariables:Oo.recommendedReplacementVariablesShape,applyReplacementVariables:E().func,onReplacementVariableSearchChange:E().func,socialPreviewLabel:E().string,idSuffix:E().string,activeMetaTabId:E().string},Fo.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,isLarge:!0,siteUrl:"",descriptionInputPlaceholder:"",titleInputPlaceholder:"",descriptionPreviewFallback:"",titlePreviewFallback:"",alt:"",applyReplacementVariables:e=>e,onReplacementVariableSearchChange:null,socialPreviewLabel:"",idSuffix:"",activeMetaTabId:""};const Do={},No=(e,t,{log:s=console.warn}={})=>{Do[e]||(Do[e]=!0,s(t))},qo=(e,t=Ee.noop)=>{const s={};for(const a in e)Object.hasOwn(e,a)&&Object.defineProperty(s,a,{set:s=>{e[a]=s,t("set",a,s)},get:()=>(t("get",a),e[a])});return s};qo({squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},((e,t)=>No(`@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.`))),qo({squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}},((e,t)=>No(`@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 $o=Hs().div`
	max-width: calc(527px + 1.5rem);
`,Uo=e=>{const t="Twitter"===e.socialMediumName?(0,O.__)("Twitter share preview","wordpress-seo"):(0,O.__)("Social share preview","wordpress-seo"),{locationContext:s}=(0,F.useRootContext)();return(0,L.createElement)(F.Root,null,(0,L.createElement)($o,null,(0,L.createElement)(F.FeatureUpsell,{shouldUpsell:!0,variant:"card",cardLink:(0,_e.addQueryArgs)(wpseoAdminL10n["shortlinks.upsell.social_preview."+e.socialMediumName.toLowerCase()],{context:s}),cardText:(0,O.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,O.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"},(0,L.createElement)("div",{className:"yst-grayscale yst-opacity-50"},(0,L.createElement)(F.Label,null,t),(0,L.createElement)(go,{title:"",description:"",siteUrl:"",imageUrl:"",imageFallbackUrl:"",alt:"",onSelect:Ee.noop,onImageClick:Ee.noop,onMouseHover:Ee.noop})))))};Uo.propTypes={socialMediumName:E().oneOf(["Social","Twitter"]).isRequired};const Bo=Uo;class Wo extends M.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:a,socialMediumName:r,imageWarnings:n,description:o,descriptionInputPlaceholder:i,imageUrl:l,alt:c,title:d,titleInputPlaceholder:p,replacementVariables:u,recommendedReplacementVariables:m,onReplacementVariableSearchChange:h,isPremium:g,location:y}=this.props;return(0,L.createElement)(M.Fragment,null,(0,L.createElement)(Bo,{socialMediumName:r}),(0,L.createElement)(Vn.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:r,title:d,titleInputPlaceholder:p,onRemoveImageClick:a,imageSelected:!!l,imageUrl:l,imageAltText:c,onTitleChange:t,onSelectImageClick:s,description:o,descriptionInputPlaceholder:i,imageWarnings:n,replacementVariables:u,recommendedReplacementVariables:m,onReplacementVariableSearchChange:h,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:g,setEditorRef:this.setEditorRef,idSuffix:y}))}}Wo.propTypes={title:E().string.isRequired,onTitleChange:E().func.isRequired,description:E().string.isRequired,onDescriptionChange:E().func.isRequired,imageUrl:E().string.isRequired,onSelectImageClick:E().func.isRequired,onRemoveImageClick:E().func.isRequired,socialMediumName:E().string.isRequired,isPremium:E().bool,imageWarnings:E().array,descriptionInputPlaceholder:E().string,titleInputPlaceholder:E().string,replacementVariables:Oo.replacementVariablesShape,recommendedReplacementVariables:Oo.recommendedReplacementVariablesShape,onReplacementVariableSearchChange:E().func,location:E().string,alt:E().string},Wo.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",onReplacementVariableSearchChange:null,location:"",alt:""};const zo=Wo,Ko=e=>{const[t,s]=(0,M.useState)(""),a=(0,M.useCallback)((e=>{s(e.detail.metaTabId)}),[s]);(0,M.useEffect)((()=>(setTimeout(e.onLoad),window.addEventListener("YoastSEO:metaTabChange",a),()=>{window.removeEventListener("YoastSEO:metaTabChange",a)})),[]);const r=(0,M.useMemo)((()=>({...e,activeMetaTabId:t})),[e,t]);return e.isPremium?(0,L.createElement)(A.Slot,{name:`YoastFacebookPremium${e.location.charAt(0).toUpperCase()+e.location.slice(1)}`,fillProps:r}):(0,L.createElement)(zo,{...r})};Ko.propTypes={isPremium:E().bool.isRequired,onLoad:E().func.isRequired,location:E().string.isRequired};const Ho=Ko;function Yo(e){(function(e){const t=window.wp.media();return t.on("select",(()=>{const s=t.state().get("selection").first();var a;e({type:(a=s.attributes).subtype,width:a.width,height:a.height,url:a.url,id:a.id,sizes:a.sizes,alt:a.alt||a.title||a.name})})),t})(e).open()}const jo=()=>{Yo((e=>(0,n.dispatch)("yoast-seo/editor").setFacebookPreviewImage((e=>{const{width:t,height:s}=e,a=(0,Vn.determineFacebookImageMode)({width:t,height:s}),r=Vn.FACEBOOK_IMAGE_SIZES[a+"Width"],n=Vn.FACEBOOK_IMAGE_SIZES[a+"Height"],o=Object.values(e.sizes).find((e=>e.width>=r&&e.height>=n));return{url:o?o.url:e.url,id:e.id,warnings:(0,We.validateFacebookImage)(e),alt:e.alt||""}})(e))))},Vo=(0,ra.compose)([(0,n.withSelect)((e=>{const{getFacebookDescription:t,getDescription:s,getFacebookTitle:a,getSeoTitle:r,getFacebookImageUrl:n,getImageFallback:o,getFacebookWarnings:i,getRecommendedReplaceVars:l,getReplaceVars:c,getSiteUrl:d,getSeoTitleTemplate:p,getSeoTitleTemplateNoFallback:u,getSocialTitleTemplate:m,getSeoDescriptionTemplate:h,getSocialDescriptionTemplate:g,getReplacedExcerpt:y,getFacebookAltText:f}=e("yoast-seo/editor");return{imageUrl:n(),imageFallbackUrl:o(),recommendedReplacementVariables:l(),replacementVariables:c(),description:t(),descriptionPreviewFallback:g()||s()||h()||y()||"",title:a(),titlePreviewFallback:m()||r()||u()||p()||"",imageWarnings:i(),siteUrl:d(),isPremium:!!pt().isPremium,titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Social",alt:f()}})),(0,n.withDispatch)(((e,t,{select:s})=>{const{setFacebookPreviewTitle:a,setFacebookPreviewDescription:r,clearFacebookPreviewImage:n,loadFacebookPreviewData:o,findCustomFields:i}=e("yoast-seo/editor"),l=s("yoast-seo/editor").getPostId();return{onSelectImageClick:jo,onRemoveImageClick:n,onDescriptionChange:r,onTitleChange:a,onLoad:o,onReplacementVariableSearchChange:Nn(l,i)}})),Aa()])(Ho),Go=e=>((0,M.useEffect)((()=>{setTimeout(e.onLoad)}),[]),e.isPremium?(0,L.createElement)(A.Slot,{name:`YoastTwitterPremium${e.location.charAt(0).toUpperCase()+e.location.slice(1)}`,fillProps:e}):(0,L.createElement)(zo,{...e}));Go.propTypes={isPremium:E().bool.isRequired,onLoad:E().func.isRequired,location:E().string.isRequired};const Zo=Go,Qo=()=>{Yo((e=>(0,n.dispatch)("yoast-seo/editor").setTwitterPreviewImage((e=>{const t="summary"!==(0,Ee.get)(window,"wpseoScriptData.metabox.twitterCardType")?"landscape":"square",s=Vn.TWITTER_IMAGE_SIZES[t+"Width"],a=Vn.TWITTER_IMAGE_SIZES[t+"Height"],r=Object.values(e.sizes).find((e=>e.width>=s&&e.height>=a));return{url:r?r.url:e.url,id:e.id,warnings:(0,We.validateTwitterImage)(e),alt:e.alt||""}})(e))))},Jo=(0,ra.compose)([(0,n.withSelect)((e=>{const{getTwitterDescription:t,getTwitterTitle:s,getTwitterImageUrl:a,getFacebookImageUrl:r,getFacebookTitle:n,getFacebookDescription:o,getDescription:i,getSeoTitle:l,getTwitterWarnings:c,getTwitterImageType:d,getImageFallback:p,getRecommendedReplaceVars:u,getReplaceVars:m,getSiteUrl:h,getSeoTitleTemplate:g,getSeoTitleTemplateNoFallback:y,getSocialTitleTemplate:f,getSeoDescriptionTemplate:w,getSocialDescriptionTemplate:b,getReplacedExcerpt:E,getTwitterAltText:v}=e("yoast-seo/editor");return{imageUrl:a(),imageFallbackUrl:r()||p(),recommendedReplacementVariables:u(),replacementVariables:m(),description:t(),descriptionPreviewFallback:b()||o()||i()||w()||E()||"",title:s(),titlePreviewFallback:f()||n()||l()||y()||g()||"",imageWarnings:c(),siteUrl:h(),isPremium:!!pt().isPremium,isLarge:"summary"!==d(),titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Twitter",alt:v()}})),(0,n.withDispatch)(((e,t,{select:s})=>{const{setTwitterPreviewTitle:a,setTwitterPreviewDescription:r,clearTwitterPreviewImage:n,loadTwitterPreviewData:o,findCustomFields:i}=e("yoast-seo/editor"),l=s("yoast-seo/editor").getPostId();return{onSelectImageClick:Qo,onRemoveImageClick:n,onDescriptionChange:r,onTitleChange:a,onLoad:o,onReplacementVariableSearchChange:Nn(l,i)}})),Aa()])(Zo),Xo=Hs()(pa.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);
	}

`,ei=e=>(0,L.createElement)(Xo,{hasPadding:!1,hasSeparator:!0,...e}),ti=Hs().legend`
	margin: 16px 0;
	padding: 0;
	color: ${Gn.colors.$color_headings};
	font-size: 12px;
	font-weight: 300;
`,si=Hs().legend`
	margin: 0 0 16px;
	padding: 0;
	color: ${Gn.colors.$color_headings};
	font-size: 12px;
	font-weight: 300;
`,ai=Hs()(Kn)`
	width: 18px;
	height: 18px;
	margin: 3px;
`,ri=e=>{const{useOpenGraphData:t,useTwitterData:s}=e;if(!t&&!s)return;const a=Hr();return(0,L.createElement)(Gr
/* translators: Social media appearance refers to a preview of how a page will be represented on social media. */,{title:(0,O.__)("Social media appearance","wordpress-seo"),id:"yoast-social-appearance-modal",shouldCloseOnClickOutside:!1,SuffixHeroIcon:(0,L.createElement)(ai,{className:"yst-text-slate-500",...a})},t&&(0,L.createElement)(M.Fragment,null,(0,L.createElement)(si,null,(0,O.__)("Determine how your post should look on social media like Facebook, Twitter, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")),(0,L.createElement)(Vo,null),s&&(0,L.createElement)(ti,null,(0,O.__)("To customize the appearance of your post specifically for Twitter, please fill out the 'Twitter appearance' settings below. If you leave these settings untouched, the 'Social media appearance' settings mentioned above will also be applied for sharing on Twitter.","wordpress-seo"))),t&&s&&(0,L.createElement)(ei,{title:(0,O.__)("Twitter appearance","wordpress-seo"),hasSeparator:!0,initialIsOpen:!1},(0,L.createElement)(Jo,null)),!t&&s&&(0,L.createElement)(M.Fragment,null,(0,L.createElement)(si,null,(0,O.__)("To customize the appearance of your post specifically for Twitter, please fill out the 'Twitter appearance' settings below.","wordpress-seo")),(0,L.createElement)(Jo,null)))};ri.propTypes={useOpenGraphData:E().bool.isRequired,useTwitterData:E().bool.isRequired};const ni=ri,oi=(0,O.__)("Check your text on even more SEO criteria and get an enhanced keyphrase analysis, making it easier to optimize your content.","wordpress-seo"),ii=e=>{const{locationContext:t}=(0,Zs.useRootContext)(),s=(0,_e.addQueryArgs)(wpseoAdminL10n[e.buyLink],{context:t});return(0,L.createElement)(xa,{title:(0,O.__)("Get more help with writing content that ranks","wordpress-seo"),description:e.description,benefitsTitle:/* translators: %s expands to 'Yoast SEO Premium'. */
(0,O.sprintf)("%s also gives you:","Yoast SEO Premium"),benefits:oa(),upsellButtonText:(0,O.sprintf)(/* translators: %s expands to 'Yoast SEO Premium'. */
(0,O.__)("Unlock with %s","wordpress-seo"),"Yoast SEO Premium"),upsellButton:{href:s,className:"yoast-button-upsell",rel:null,"data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2","data-action":"load-nfd-ctb"},upsellButtonLabel:(0,O.__)("1 year of premium support and updates included!","wordpress-seo")})};ii.propTypes={buyLink:E().string.isRequired,description:E().string},ii.defaultProps={description:oi};const li=ii,ci=({location:e})=>{const[t,s]=(0,M.useState)(!1),a=(0,M.useCallback)((()=>s(!1)),[]),r=(0,M.useCallback)((()=>s(!0)),[]),n=(0,F.useSvgAria)();return(0,L.createElement)(M.Fragment,null,t&&(0,L.createElement)(Ia,{title:(0,O.__)("Unlock Premium SEO analysis","wordpress-seo"),onRequestClose:a,additionalClassName:"",className:`${Ra} yoast-gutenberg-modal__box yoast-gutenberg-modal__no-padding`,id:"yoast-premium-seo-analysis-modal",shouldCloseOnClickOutside:!0},(0,L.createElement)(Sa,null,(0,L.createElement)(li,{buyLink:`shortlinks.upsell.${e}.premium_seo_analysis_button`}))),"sidebar"===e&&(0,L.createElement)(ma,{id:"yoast-premium-seo-analysis-modal-open-button",title:(0,O.__)("Premium SEO analysis","wordpress-seo"),prefixIcon:{icon:"seo-score-none",color:Gn.colors.$color_grey},onClick:r},(0,L.createElement)("div",{className:"yst-root"},(0,L.createElement)(F.Badge,{size:"small",variant:"upsell"},(0,L.createElement)(na,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...n})))),"metabox"===e&&(0,L.createElement)("div",{className:"yst-root"},(0,L.createElement)(da,{id:"yoast-premium-seo-analysis-metabox-modal-open-button",onClick:r},(0,L.createElement)(pa.SvgIcon,{icon:"seo-score-none",color:Gn.colors.$color_grey}),(0,L.createElement)(da.Text,null,(0,O.__)("Premium SEO analysis","wordpress-seo")),(0,L.createElement)(F.Badge,{size:"small",variant:"upsell"},(0,L.createElement)(na,{className:"yst-w-2.5 yst-h-2.5 yst-mr-1 yst-shrink-0",...n}),(0,L.createElement)("span",null,"Premium")))))};ci.propTypes={location:E().string},ci.defaultProps={location:"sidebar"};const di=ci,pi=e=>{const[t,s]=(0,M.useState)(!1),{prefixIcon:a}=e;return(0,L.createElement)("div",{className:"yoast components-panel__body "+(t?"is-opened":"")},(0,L.createElement)("h2",{className:"components-panel__body-title"},(0,L.createElement)("button",{onClick:function(){s(!t)},className:"components-button components-panel__body-toggle",type:"button",id:e.buttonId},(0,L.createElement)("span",{className:"yoast-icon-span",style:{fill:`${a&&a.color||""}`}},a&&(0,L.createElement)(pa.SvgIcon,{icon:a.icon,color:a.color,size:a.size})),(0,L.createElement)("span",{className:"yoast-title-container"},(0,L.createElement)("div",{className:"yoast-title"},e.title),(0,L.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),e.hasBetaBadgeLabel&&(0,L.createElement)(pa.BetaBadge,null),(0,L.createElement)("span",{className:"yoast-chevron","aria-hidden":"true"}))),t&&e.children)},ui=pi;pi.propTypes={title:E().string.isRequired,children:E().oneOfType([E().node,E().arrayOf(E().node)]).isRequired,prefixIcon:E().object,subTitle:E().string,hasBetaBadgeLabel:E().bool,buttonId:E().string},pi.defaultProps={prefixIcon:null,subTitle:"",hasBetaBadgeLabel:!1,buttonId:null};var mi=s(6746);const hi=(0,We.makeOutboundLink)(),gi=Hs().div`
	padding: 16px;
`,yi="yoast-seo/editor";function fi({location:e,show:t}){return t?(0,L.createElement)(pa.Alert,{type:"info"},(0,O.sprintf)(/* translators: %s Expands to "Yoast News SEO" */
(0,O.__)("Are you working on a news article? %s helps you optimize your site for Google News.","wordpress-seo"),"Yoast News SEO")+" ",(0,L.createElement)(hi,{href:window.wpseoAdminL10n[`shortlinks.upsell.${e}.news`]},(0,O.sprintf)(/* translators: %s: Expands to "Yoast News SEO". */
(0,O.__)("Buy %s now!","wordpress-seo"),"Yoast News SEO"))):null}fi.propTypes={show:E().bool.isRequired,location:E().string.isRequired};const wi=(e,t,s)=>{const a=(0,n.useSelect)((e=>e(yi).getIsProduct()),[]),r=(0,n.useSelect)((e=>e(yi).getIsWooSeoActive()),[]),o=a&&r?{name:(0,O.__)("Item Page","wordpress-seo"),value:"ItemPage"}:e.find((e=>e.value===t));return[{name:(0,O.sprintf)(/* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */
(0,O.__)("Default for %1$s (%2$s)","wordpress-seo"),s,o?o.name:""),value:""},...e]},bi=e=>(0,O.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,O.__)("You can change the default type for %1$s under Content types in the %2$sSettings%3$s.","wordpress-seo"),e,"{{link}}","{{/link}}");E().string.isRequired,E().string.isRequired,E().string.isRequired;const Ei=e=>{const t=wi(e.pageTypeOptions,e.defaultPageType,e.postTypeName),s=wi(e.articleTypeOptions,e.defaultArticleType,e.postTypeName),a=(0,Ee.get)(window,"wpseoScriptData.metabox.woocommerceUpsellSchemaLink",""),r=(0,Ee.get)(window,"wpseoScriptData.woocommerceUpsell",""),[o,i]=(0,M.useState)(e.schemaArticleTypeSelected),l=(0,O.__)("Want your products stand out in search results with rich results like price, reviews and more?","wordpress-seo"),c=(0,n.useSelect)((e=>e(yi).getIsProduct()),[]),d=(0,n.useSelect)((e=>e(yi).getIsWooSeoActive()),[]),p=c&&d,u=(0,M.useCallback)(((e,t)=>{i(t)}),[o]);return(0,M.useEffect)((()=>{u(null,e.schemaArticleTypeSelected)}),[e.schemaArticleTypeSelected]),(0,L.createElement)(M.Fragment,null,(0,L.createElement)(pa.FieldGroup,{label:(0,O.__)("What type of page or content is this?","wordpress-seo"),linkTo:e.additionalHelpTextLink
/* translators: Hidden accessibility text. */,linkText:(0,O.__)("Learn more about page or content types","wordpress-seo")}),r&&(0,L.createElement)($n,{link:a,text:l}),(0,L.createElement)(pa.Select,{id:(0,We.join)(["yoast-schema-page-type",e.location]),options:t,label:(0,O.__)("Page type","wordpress-seo"),onChange:e.schemaPageTypeChange,selected:p?"ItemPage":e.schemaPageTypeSelected,disabled:p}),e.showArticleTypeInput&&(0,L.createElement)(pa.Select,{id:(0,We.join)(["yoast-schema-article-type",e.location]),options:s,label:(0,O.__)("Article type","wordpress-seo"),onChange:e.schemaArticleTypeChange,selected:e.schemaArticleTypeSelected,onOptionFocus:u}),(0,L.createElement)(fi,{location:e.location,show:!e.isNewsEnabled&&(h=o,g=e.defaultArticleType,"NewsArticle"===h||""===h&&"NewsArticle"===g)}),e.displayFooter&&!p&&(0,L.createElement)("p",null,(m=e.postTypeName,(0,mi.Z)({mixedString:bi(m),components:{link:(0,L.createElement)("a",{href:"/wp-admin/admin.php?page=wpseo_page_settings",target:"_blank"})}}))),p&&(0,L.createElement)("p",null,(0,O.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */
(0,O.__)("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 m,h,g},vi=E().arrayOf(E().shape({name:E().string,value:E().string}));Ei.propTypes={schemaPageTypeChange:E().func,schemaPageTypeSelected:E().string,pageTypeOptions:vi.isRequired,schemaArticleTypeChange:E().func,schemaArticleTypeSelected:E().string,articleTypeOptions:vi.isRequired,showArticleTypeInput:E().bool.isRequired,additionalHelpTextLink:E().string.isRequired,helpTextLink:E().string.isRequired,helpTextTitle:E().string.isRequired,helpTextDescription:E().string.isRequired,postTypeName:E().string.isRequired,displayFooter:E().bool,defaultPageType:E().string.isRequired,defaultArticleType:E().string.isRequired,location:E().string.isRequired,isNewsEnabled:E().bool},Ei.defaultProps={schemaPageTypeChange:()=>{},schemaPageTypeSelected:null,schemaArticleTypeChange:()=>{},schemaArticleTypeSelected:null,displayFooter:!1,isNewsEnabled:!1};const _i=e=>e.isMetabox?(0,M.createPortal)((0,L.createElement)(gi,null,(0,L.createElement)(Ei,{...e})),document.getElementById("wpseo-meta-section-schema")):(0,L.createElement)(Ei,{...e});_i.propTypes={showArticleTypeInput:E().bool,articleTypeLabel:E().string,additionalHelpTextLink:E().string,pageTypeLabel:E().string.isRequired,helpTextLink:E().string.isRequired,helpTextTitle:E().string.isRequired,helpTextDescription:E().string.isRequired,isMetabox:E().bool.isRequired,postTypeName:E().string.isRequired,displayFooter:E().bool,loadSchemaArticleData:E().func.isRequired,loadSchemaPageData:E().func.isRequired,location:E().string.isRequired},_i.defaultProps={showArticleTypeInput:!1,articleTypeLabel:"",additionalHelpTextLink:"",displayFooter:!1};const ki=_i;class xi{static get articleTypeInput(){return document.getElementById("yoast_wpseo_schema_article_type")}static get defaultArticleType(){return xi.articleTypeInput.getAttribute("data-default")}static get articleType(){return xi.articleTypeInput.value}static set articleType(e){xi.articleTypeInput.value=e}static get pageTypeInput(){return document.getElementById("yoast_wpseo_schema_page_type")}static get defaultPageType(){return xi.pageTypeInput.getAttribute("data-default")}static get pageType(){return xi.pageTypeInput.value}static set pageType(e){xi.pageTypeInput.value=e}}const Ti=e=>{const t=null!==xi.articleTypeInput;(0,M.useEffect)((()=>{e.loadSchemaPageData(),t&&e.loadSchemaArticleData()}),[]);const{pageTypeOptions:s,articleTypeOptions:a}=window.wpseoScriptData.metabox.schema,r={articleTypeLabel:(0,O.__)("Article type","wordpress-seo"),pageTypeLabel:(0,O.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:(0,O.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:(0,O.__)("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:a},n={...e,...r,...(o=e.location,"metabox"===o?{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 o;return(0,L.createElement)(ki,{...n})};Ti.propTypes={displayFooter:E().bool.isRequired,schemaPageTypeSelected:E().string.isRequired,schemaArticleTypeSelected:E().string.isRequired,defaultArticleType:E().string.isRequired,defaultPageType:E().string.isRequired,loadSchemaPageData:E().func.isRequired,loadSchemaArticleData:E().func.isRequired,schemaPageTypeChange:E().func.isRequired,schemaArticleTypeChange:E().func.isRequired,location:E().string.isRequired};const Si=(0,ra.compose)([(0,n.withSelect)((e=>{const{getPreferences:t,getPageType:s,getDefaultPageType:a,getArticleType:r,getDefaultArticleType:n}=e("yoast-seo/editor"),{displaySchemaSettingsFooter:o,isNewsEnabled:i}=t();return{displayFooter:o,isNewsEnabled:i,schemaPageTypeSelected:s(),schemaArticleTypeSelected:r(),defaultArticleType:n(),defaultPageType:a()}})),(0,n.withDispatch)((e=>{const{setPageType:t,setArticleType:s,getSchemaPageData:a,getSchemaArticleData:r}=e("yoast-seo/editor");return{loadSchemaPageData:a,loadSchemaArticleData:r,schemaPageTypeChange:t,schemaArticleTypeChange:s}})),Aa()])(Ti),Ri=e=>{if(!e.isAuthenticated)return null;const t=(0,M.useCallback)((()=>{rs("wordproof:open_settings")}));return(0,L.createElement)(A.Button,{variant:"link",onClick:t},(0,O.__)("Manage WordProof settings","wordpress-seo"))};Ri.propTypes={isAuthenticated:E().bool.isRequired};const Ci=e=>{const t=(0,M.useCallback)((()=>{ns()}));return!e.isAuthenticated&&e.toggleIsEnabled?(0,L.createElement)(A.Button,{variant:"link",onClick:t},(0,O.__)("Authenticate with WordProof","wordpress-seo")):null};Ci.propTypes={isAuthenticated:E().bool.isRequired,toggleIsEnabled:E().bool.isRequired};class Ii extends M.Component{constructor(e){super(e),this.handleToggle=this.handleToggle.bind(this),this.turnToggleOff=this.turnToggleOff.bind(this),this.turnToggleOn=this.turnToggleOn.bind(this)}componentDidMount(){window.addEventListener("wordproof:webhook:failed",this.turnToggleOff,!1),window.addEventListener("wordproof:oauth:success",this.turnToggleOn,!1)}componentWillUnmount(){window.removeEventListener("wordproof:webhook:failed",this.turnToggleOff,!1),window.removeEventListener("wordproof:oauth:success",this.turnToggleOn,!1)}handleToggle(e){this.props.isAuthenticated||!e?this.props.onToggle(e):ns()}turnToggleOn(){this.props.onToggle(!0)}turnToggleOff(){this.props.onToggle(!1)}render(){return(0,L.createElement)(M.Fragment,null,(0,L.createElement)(pa.FieldGroup
/* translators: Hidden accessibility text. */,{linkText:(0,O.__)("Learn more about timestamping","wordpress-seo"),linkTo:"https://yoa.st/wordproof-integration",htmlFor:this.props.id,label:(0,O.__)("Timestamp with WordProof","wordpress-seo")},(0,L.createElement)(pa.Toggle,{id:this.props.id,labelText:(0,O.sprintf)(/* Translators: %s translates to the Post type in singular form */
(0,O.__)("Timestamp this %s","wordpress-seo"),this.props.postTypeName.toLowerCase()),isEnabled:this.props.isEnabled,onSetToggleState:this.handleToggle}),(0,L.createElement)(Ri,{isAuthenticated:this.props.isAuthenticated}),(0,L.createElement)(Ci,{toggleIsEnabled:this.props.isEnabled,isAuthenticated:this.props.isAuthenticated}),!this.props.isAuthenticated&&this.props.isEnabled&&(0,L.createElement)(pa.Alert,{className:"yoast-wordproof-metabox-alert",type:"info"},(0,O.__)("Unable to create new timestamps. Please authenticate with WordProof.","wordpress-seo"))))}}Ii.propTypes={id:E().string,isEnabled:E().bool,onToggle:E().func,postTypeName:E().string,isAuthenticated:E().bool.isRequired},Ii.defaultProps={id:"timestamp-toggle",isEnabled:!0,postTypeName:"post",onToggle:Ee.noop};const Li=(0,ra.compose)([(0,n.withSelect)((e=>({isAuthenticated:e("wordproof").getIsAuthenticated()})))])(Ii),Pi=({noIndex:e,onNoIndexChange:t,editorContext:s,isPrivateBlog:a})=>{const r=(e=>{const t=(0,O.__)("No","wordpress-seo"),s=(0,O.__)("Yes","wordpress-seo"),a=e.noIndex?t:s;return window.wpseoScriptData.isPost?[{name:(0,O.sprintf)(/* translators: the first %s translates to "yes" or "no", the second %s translates to the content type label in plural form */
(0,O.__)("%s (current default for %s)","wordpress-seo"),a,e.postTypeNamePlural),value:"0"},{name:t,value:"1"},{name:s,value:"2"}]:[{name:(0,O.sprintf)(/* translators: the first %s translates to "yes" or "no", the second %s translates to the content type label in plural form */
(0,O.__)("%s (current default for %s)","wordpress-seo"),a,e.postTypeNamePlural),value:"default"},{name:s,value:"index"},{name:t,value:"noindex"}]})(s);return(0,L.createElement)(Zs.LocationConsumer,null,(s=>(0,L.createElement)(M.Fragment,null,a&&(0,L.createElement)(pa.Alert,{type:"warning"},(0,O.__)("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,L.createElement)(pa.Select,{label:(0,O.__)("Allow search engines to show this content in search results?","wordpress-seo"),onChange:t,id:(0,We.join)(["yoast-meta-robots-noindex",s]),options:r,selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.allow_search_engines"]
/* translators: Hidden accessibility text. */,linkText:(0,O.__)("Learn more about the no-index setting on our help page.","wordpress-seo")}))))};Pi.propTypes={noIndex:E().string.isRequired,onNoIndexChange:E().func.isRequired,editorContext:E().object.isRequired,isPrivateBlog:E().bool},Pi.defaultProps={isPrivateBlog:!1};const Ai=({noFollow:e,onNoFollowChange:t})=>(0,L.createElement)(Zs.LocationConsumer,null,(s=>{const a=(0,We.join)(["yoast-meta-robots-nofollow",s]);return(0,L.createElement)(pa.RadioButtonGroup,{id:a,options:[{value:"0",label:"Yes"},{value:"1",label:"No"}],label:(0,O.__)("Should search engines follow links on this content?","wordpress-seo"),groupName:a,onChange:t,selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.follow_links"]
/* translators: Hidden accessibility text. */,linkText:(0,O.__)("Learn more about the no-follow setting on our help page.","wordpress-seo")})}));Ai.propTypes={noFollow:E().string.isRequired,onNoFollowChange:E().func.isRequired};const Mi=({advanced:e,onAdvancedChange:t})=>(0,L.createElement)(Zs.LocationConsumer,null,(s=>{const a=(0,We.join)(["yoast-meta-robots-advanced",s]),r=`${a}-input`;return(0,L.createElement)(pa.MultiSelect,{label:(0,O.__)("Meta robots advanced","wordpress-seo"),onChange:t,id:a,inputId:r,options:[{name:(0,O.__)("No Image Index","wordpress-seo"),value:"noimageindex"},{name:(0,O.__)("No Archive","wordpress-seo"),value:"noarchive"},{name:(0,O.__)("No Snippet","wordpress-seo"),value:"nosnippet"}],selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.meta_robots"]
/* translators: Hidden accessibility text. */,linkText:(0,O.__)("Learn more about advanced meta robots settings on our help page.","wordpress-seo")})}));Mi.propTypes={advanced:E().array.isRequired,onAdvancedChange:E().func.isRequired};const Oi=({breadcrumbsTitle:e,onBreadcrumbsTitleChange:t})=>(0,L.createElement)(Zs.LocationConsumer,null,(s=>(0,L.createElement)(pa.TextInput,{label:(0,O.__)("Breadcrumbs Title","wordpress-seo"),id:(0,We.join)(["yoast-breadcrumbs-title",s]),onChange:t,value:e,linkTo:wpseoAdminL10n["shortlinks.advanced.breadcrumbs_title"]
/* translators: Hidden accessibility text. */,linkText:(0,O.__)("Learn more about the breadcrumbs title setting on our help page.","wordpress-seo")})));Oi.propTypes={breadcrumbsTitle:E().string.isRequired,onBreadcrumbsTitleChange:E().func.isRequired};const Fi=({canonical:e,onCanonicalChange:t})=>(0,L.createElement)(Zs.LocationConsumer,null,(s=>(0,L.createElement)(pa.TextInput,{label:(0,O.__)("Canonical URL","wordpress-seo"),id:(0,We.join)(["yoast-canonical",s]),onChange:t,value:e,linkTo:"https://yoa.st/canonical-url"
/* translators: Hidden accessibility text. */,linkText:(0,O.__)("Learn more about canonical URLs on our help page.","wordpress-seo")})));Fi.propTypes={canonical:E().string.isRequired,onCanonicalChange:E().func.isRequired};const Di=({wordproofTimestamp:e,onWordProofTimestampChange:t,postTypeName:s})=>(0,L.createElement)(Zs.LocationConsumer,null,(a=>(0,L.createElement)(Li,{id:(0,We.join)(["yoast-wordproof-timestamp",a]),isEnabled:e,onToggle:t,postTypeName:s})));Di.propTypes={wordproofTimestamp:E().bool.isRequired,onWordProofTimestampChange:E().func.isRequired,postTypeName:E().string.isRequired};const Ni=e=>{const{noIndex:t,noFollow:s,advanced:a,breadcrumbsTitle:r,canonical:n,wordproofTimestamp:o,onNoIndexChange:i,onNoFollowChange:l,onAdvancedChange:c,onBreadcrumbsTitleChange:d,onCanonicalChange:p,onWordProofTimestampChange:u,onLoad:m,isLoading:h,editorContext:g,isBreadcrumbsDisabled:y,isPrivateBlog:f,isWordProofIntegrationActive:w}=e;(0,M.useEffect)((()=>{setTimeout((()=>{h&&m()}))}));const b={noIndex:t,onNoIndexChange:i,editorContext:g,isPrivateBlog:f},E={noFollow:s,onNoFollowChange:l},v={advanced:a,onAdvancedChange:c},_={breadcrumbsTitle:r,onBreadcrumbsTitleChange:d},k={canonical:n,onCanonicalChange:p},x={wordproofTimestamp:o,onWordProofTimestampChange:u,postTypeName:g.postTypeNameSingular};return h?null:(0,L.createElement)(M.Fragment,null,(0,L.createElement)(Pi,{...b}),g.isPost&&(0,L.createElement)(Ai,{...E}),g.isPost&&(0,L.createElement)(Mi,{...v}),!y&&(0,L.createElement)(Oi,{..._}),(0,L.createElement)(Fi,{...k}),w&&(0,L.createElement)(Di,{...x}))};Ni.propTypes={noIndex:E().string.isRequired,canonical:E().string.isRequired,wordproofTimestamp:E().bool,onNoIndexChange:E().func.isRequired,onCanonicalChange:E().func.isRequired,onWordProofTimestampChange:E().func,onLoad:E().func.isRequired,isLoading:E().bool.isRequired,editorContext:E().object.isRequired,isBreadcrumbsDisabled:E().bool.isRequired,isPrivateBlog:E().bool,advanced:E().array,onAdvancedChange:E().func,noFollow:E().string,onNoFollowChange:E().func,breadcrumbsTitle:E().string,onBreadcrumbsTitleChange:E().func,isWordProofIntegrationActive:E().bool.isRequired},Ni.defaultProps={advanced:[],onAdvancedChange:()=>{},noFollow:"",onNoFollowChange:()=>{},breadcrumbsTitle:"",onBreadcrumbsTitleChange:()=>{},isPrivateBlog:!1,onWordProofTimestampChange:()=>{},wordproofTimestamp:!1};const qi=Ni,$i=(0,ra.compose)([(0,n.withSelect)((e=>{const{getNoIndex:t,getNoFollow:s,getAdvanced:a,getBreadcrumbsTitle:r,getCanonical:n,getWordProofTimestamp:o,getIsLoading:i,getEditorContext:l,getPreferences:c}=e("yoast-seo/editor"),{isBreadcrumbsDisabled:d,isPrivateBlog:p,isWordProofIntegrationActive:u}=c();return{noIndex:t(),noFollow:s(),advanced:a(),breadcrumbsTitle:r(),canonical:n(),wordproofTimestamp:o(),isLoading:i(),editorContext:l(),isBreadcrumbsDisabled:d,isPrivateBlog:p,isWordProofIntegrationActive:u}})),(0,n.withDispatch)((e=>{const{setNoIndex:t,setNoFollow:s,setAdvanced:a,setBreadcrumbsTitle:r,setCanonical:n,setWordProofTimestamp:o,loadAdvancedSettingsData:i}=e("yoast-seo/editor");return{onNoIndexChange:t,onNoFollowChange:s,onAdvancedChange:a,onBreadcrumbsTitleChange:r,onCanonicalChange:n,onWordProofTimestampChange:o,onLoad:i}}))])(qi),Ui=()=>(0,L.createElement)("p",{className:"yoast-related-keyphrases-modal__loading-message"},(0,O.sprintf)(/* translators: %1$s expands to "Yoast SEO", %2$s expands to "Semrush". */
(0,O.__)("Please wait while %1$s connects to %2$s to get related keyphrases...","wordpress-seo"),"Yoast SEO","Semrush")," ",(0,L.createElement)(pa.SvgIcon,{icon:"loading-spinner"})),Bi=(0,We.makeOutboundLink)(),Wi=()=>(0,L.createElement)(M.Fragment,null,(0,L.createElement)("p",null,(0,O.sprintf)(/* translators: %s : Expands to "Semrush". */
(0,O.__)("You've reached your request limit for today. Check back tomorrow or upgrade your plan over at %s.","wordpress-seo"),"Semrush")),(0,L.createElement)(Bi,{href:window.wpseoAdminL10n["shortlinks.semrush.prices"],className:"yoast-button-upsell"},(0,O.sprintf)(/* translators: %s : Expands to "Semrush". */
(0,O.__)("Upgrade your %s plan","wordpress-seo"),"Semrush"),(0,L.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"}))),zi="yoast-semrush-country-selector",Ki=[{value:"us",name:"United States - US"},{value:"uk",name:"United Kingdom - UK"},{value:"ca",name:"Canada - CA"},{value:"ru",name:"Russia - RU"},{value:"de",name:"Germany - DE"},{value:"fr",name:"France - FR"},{value:"es",name:"Spain - ES"},{value:"it",name:"Italy - IT"},{value:"br",name:"Brazil - BR"},{value:"au",name:"Australia - AU"},{value:"ar",name:"Argentina - AR"},{value:"be",name:"Belgium - BE"},{value:"ch",name:"Switzerland - CH"},{value:"dk",name:"Denmark - DK"},{value:"fi",name:"Finland - FI"},{value:"hk",name:"Hong Kong - HK"},{value:"ie",name:"Ireland - IE"},{value:"il",name:"Israel - IL"},{value:"mx",name:"Mexico - MX"},{value:"nl",name:"Netherlands - NL"},{value:"no",name:"Norway - NO"},{value:"pl",name:"Poland - PL"},{value:"se",name:"Sweden - SE"},{value:"sg",name:"Singapore - SG"},{value:"tr",name:"Turkey - TR"},{value:"jp",name:"Japan - JP"},{value:"in",name:"India - IN"},{value:"hu",name:"Hungary - HU"},{value:"af",name:"Afghanistan - AF"},{value:"al",name:"Albania - AL"},{value:"dz",name:"Algeria - DZ"},{value:"ao",name:"Angola - AO"},{value:"am",name:"Armenia - AM"},{value:"at",name:"Austria - AT"},{value:"az",name:"Azerbaijan - AZ"},{value:"bh",name:"Bahrain - BH"},{value:"bd",name:"Bangladesh - BD"},{value:"by",name:"Belarus - BY"},{value:"bz",name:"Belize - BZ"},{value:"bo",name:"Bolivia - BO"},{value:"ba",name:"Bosnia and Herzegovina - BA"},{value:"bw",name:"Botswana - BW"},{value:"bn",name:"Brunei - BN"},{value:"bg",name:"Bulgaria - BG"},{value:"cv",name:"Cabo Verde - CV"},{value:"kh",name:"Cambodia - KH"},{value:"cm",name:"Cameroon - CM"},{value:"cl",name:"Chile - CL"},{value:"co",name:"Colombia - CO"},{value:"cr",name:"Costa Rica - CR"},{value:"hr",name:"Croatia - HR"},{value:"cy",name:"Cyprus - CY"},{value:"cz",name:"Czech Republic - CZ"},{value:"cd",name:"Congo - CD"},{value:"do",name:"Dominican Republic - DO"},{value:"ec",name:"Ecuador - EC"},{value:"eg",name:"Egypt - EG"},{value:"sv",name:"El Salvador - SV"},{value:"ee",name:"Estonia - EE"},{value:"et",name:"Ethiopia - ET"},{value:"ge",name:"Georgia - GE"},{value:"gh",name:"Ghana - GH"},{value:"gr",name:"Greece - GR"},{value:"gt",name:"Guatemala - GT"},{value:"gy",name:"Guyana - GY"},{value:"ht",name:"Haiti - HT"},{value:"hn",name:"Honduras - HN"},{value:"is",name:"Iceland - IS"},{value:"id",name:"Indonesia - ID"},{value:"jm",name:"Jamaica - JM"},{value:"jo",name:"Jordan - JO"},{value:"kz",name:"Kazakhstan - KZ"},{value:"kw",name:"Kuwait - KW"},{value:"lv",name:"Latvia - LV"},{value:"lb",name:"Lebanon - LB"},{value:"lt",name:"Lithuania - LT"},{value:"lu",name:"Luxembourg - LU"},{value:"mg",name:"Madagascar - MG"},{value:"my",name:"Malaysia - MY"},{value:"mt",name:"Malta - MT"},{value:"mu",name:"Mauritius - MU"},{value:"md",name:"Moldova - MD"},{value:"mn",name:"Mongolia - MN"},{value:"me",name:"Montenegro - ME"},{value:"ma",name:"Morocco - MA"},{value:"mz",name:"Mozambique - MZ"},{value:"na",name:"Namibia - NA"},{value:"np",name:"Nepal - NP"},{value:"nz",name:"New Zealand - NZ"},{value:"ni",name:"Nicaragua - NI"},{value:"ng",name:"Nigeria - NG"},{value:"om",name:"Oman - OM"},{value:"py",name:"Paraguay - PY"},{value:"pe",name:"Peru - PE"},{value:"ph",name:"Philippines - PH"},{value:"pt",name:"Portugal - PT"},{value:"ro",name:"Romania - RO"},{value:"sa",name:"Saudi Arabia - SA"},{value:"sn",name:"Senegal - SN"},{value:"rs",name:"Serbia - RS"},{value:"sk",name:"Slovakia - SK"},{value:"si",name:"Slovenia - SI"},{value:"za",name:"South Africa - ZA"},{value:"kr",name:"South Korea - KR"},{value:"lk",name:"Sri Lanka - LK"},{value:"th",name:"Thailand - TH"},{value:"bs",name:"Bahamas - BS"},{value:"tt",name:"Trinidad and Tobago - TT"},{value:"tn",name:"Tunisia - TN"},{value:"ua",name:"Ukraine - UA"},{value:"ae",name:"United Arab Emirates - AE"},{value:"uy",name:"Uruguay - UY"},{value:"ve",name:"Venezuela - VE"},{value:"vn",name:"Vietnam - VN"},{value:"zm",name:"Zambia - ZM"},{value:"zw",name:"Zimbabwe - ZW"},{value:"ly",name:"Libya - LY"}];class Hi extends M.Component{constructor(e){super(e),this.relatedKeyphrasesRequest=this.relatedKeyphrasesRequest.bind(this),this.onChangeHandler=this.onChangeHandler.bind(this)}componentDidMount(){this.props.response&&this.props.keyphrase===this.props.lastRequestKeyphrase||this.relatedKeyphrasesRequest()}storeCountryCode(e){l()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}})}async relatedKeyphrasesRequest(){const{keyphrase:e,countryCode:t,newRequest:s}=this.props;s(t,e),this.storeCountryCode(t);const a=await this.doRequest(e,t);200!==a.status?this.handleFailedResponse(a):this.handleSuccessResponse(a)}handleSuccessResponse(e){const{setNoResultsFound:t,setRequestSucceeded:s}=this.props;0!==e.results.rows.length?s(e):t()}handleFailedResponse(e){const{setRequestLimitReached:t,setRequestFailed:s}=this.props;"error"in e&&(e.error.includes("TOTAL LIMIT EXCEEDED")?t():s(e))}async doRequest(e,t){return await l()({path:(0,_e.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:e,country_code:t})})}onChangeHandler(e){this.props.setCountry(e)}render(){return(0,L.createElement)("div",{id:zi},(0,L.createElement)(pa.SingleSelect,{id:zi+"-select",label:(0,O.__)("Show results for:","wordpress-seo"),name:"semrush-country-code",options:Ki,selected:this.props.countryCode,onChange:this.onChangeHandler,wrapperClassName:"yoast-field-group yoast-field-group--inline"}),(0,L.createElement)(pa.NewButton,{id:zi+"-button",variant:"secondary",onClick:this.relatedKeyphrasesRequest},(0,O.__)("Select country","wordpress-seo")))}}Hi.propTypes={keyphrase:E().string,countryCode:E().string,response:E().object,lastRequestKeyphrase:E().string,setCountry:E().func.isRequired,newRequest:E().func.isRequired,setNoResultsFound:E().func.isRequired,setRequestSucceeded:E().func.isRequired,setRequestLimitReached:E().func.isRequired,setRequestFailed:E().func.isRequired},Hi.defaultProps={keyphrase:"",countryCode:"us",response:{},lastRequestKeyphrase:""};const Yi=Hi,ji=({data:e,mapChartDataToTableData:t,dataTableCaption:s,dataTableHeaderLabels:a,isDataTableVisuallyHidden:r})=>e.length!==a.length?(0,L.createElement)("p",null,(0,O.__)("The number of headers and header labels don't match.","wordpress-seo")):(0,L.createElement)("div",{className:r?"screen-reader-text":null},(0,L.createElement)("table",null,(0,L.createElement)("caption",null,s),(0,L.createElement)("thead",null,(0,L.createElement)("tr",null,a.map(((e,t)=>(0,L.createElement)("th",{key:t},e))))),(0,L.createElement)("tbody",null,(0,L.createElement)("tr",null,e.map(((e,s)=>(0,L.createElement)("td",{key:s},t(e.y))))))));ji.propTypes={data:E().arrayOf(E().shape({x:E().number,y:E().number})).isRequired,mapChartDataToTableData:E().func,dataTableCaption:E().string.isRequired,dataTableHeaderLabels:E().array.isRequired,isDataTableVisuallyHidden:E().bool},ji.defaultProps={mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};const Vi=ji,Gi=({data:e,width:t,height:s,fillColor:a,strokeColor:r,strokeWidth:n,className:o,mapChartDataToTableData:i,dataTableCaption:l,dataTableHeaderLabels:c,isDataTableVisuallyHidden:d})=>{const p=Math.max(1,Math.max(...e.map((e=>e.x)))),u=Math.max(1,Math.max(...e.map((e=>e.y)))),m=s-n,h=e.map((e=>`${e.x/p*t},${m-e.y/u*m+n}`)).join(" "),g=`0,${m+n} `+h+` ${t},${m+n}`;return(0,L.createElement)(M.Fragment,null,(0,L.createElement)("svg",{width:t,height:s,viewBox:`0 0 ${t} ${s}`,className:o,role:"img","aria-hidden":"true",focusable:"false"},(0,L.createElement)("polygon",{fill:a,points:g}),(0,L.createElement)("polyline",{fill:"none",stroke:r,strokeWidth:n,strokeLinejoin:"round",strokeLinecap:"round",points:h})),i&&(0,L.createElement)(Vi,{data:e,mapChartDataToTableData:i,dataTableCaption:l,dataTableHeaderLabels:c,isDataTableVisuallyHidden:d}))};Gi.propTypes={data:E().arrayOf(E().shape({x:E().number,y:E().number})).isRequired,width:E().number.isRequired,height:E().number.isRequired,fillColor:E().string,strokeColor:E().string,strokeWidth:E().number,className:E().string,mapChartDataToTableData:E().func,dataTableCaption:E().string.isRequired,dataTableHeaderLabels:E().array.isRequired,isDataTableVisuallyHidden:E().bool},Gi.defaultProps={fillColor:null,strokeColor:"#000000",strokeWidth:1,className:"",mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};const Zi=Gi,Qi=(0,We.makeOutboundLink)(Hs().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: ${Gn.colors.$color_help_text};
	
	&:hover,
	&:focus {
		color: ${Gn.colors.$color_snippet_focus};	
	}
	
	// Overwrite the default blue active color for links.
	&:active {
		color: ${Gn.colors.$color_help_text};	
	}

	&::before {
		position: absolute;
		top: 0;
		left: 0;
		padding: 2px;
		content: "\f223";
	}
`),Ji=(0,We.makeOutboundLink)();class Xi extends M.Component{constructor(e){super(e),this.transformTrendDataToChartPoints=this.transformTrendDataToChartPoints.bind(this),this.getAreaChartDataTableHeaderLabels=this.getAreaChartDataTableHeaderLabels.bind(this),this.mapAreaChartDataToTableData=this.mapAreaChartDataToTableData.bind(this)}transformTrendDataToChartPoints(e){return e.split(",").map(((e,t)=>({x:t,y:parseFloat(e)})))}getAreaChartDataTableHeaderLabels(){return[(0,O.__)("Twelve months ago","wordpress-seo"),(0,O.__)("Eleven months ago","wordpress-seo"),(0,O.__)("Ten months ago","wordpress-seo"),(0,O.__)("Nine months ago","wordpress-seo"),(0,O.__)("Eight months ago","wordpress-seo"),(0,O.__)("Seven months ago","wordpress-seo"),(0,O.__)("Six months ago","wordpress-seo"),(0,O.__)("Five months ago","wordpress-seo"),(0,O.__)("Four months ago","wordpress-seo"),(0,O.__)("Three months ago","wordpress-seo"),(0,O.__)("Two months ago","wordpress-seo"),(0,O.__)("Last month","wordpress-seo")]}mapAreaChartDataToTableData(e){return Math.round(100*e)}render(){const{keyphrase:e,relatedKeyphrases:t,countryCode:s,data:a,renderAction:r}=this.props,n="https://www.semrush.com/analytics/keywordoverview/?q="+encodeURIComponent(e)+"&db="+encodeURIComponent(s);return a&&!(0,Ee.isEmpty)(a.results)&&(0,L.createElement)(M.Fragment,null,(0,L.createElement)("table",{className:"yoast yoast-table"},(0,L.createElement)("thead",null,(0,L.createElement)("tr",null,(0,L.createElement)("th",{scope:"col",className:"yoast-table--primary"},(0,O.__)("Related keyphrase","wordpress-seo")),(0,L.createElement)("th",{scope:"col",abbr:(0,O.__)("Volume","wordpress-seo")},(0,O.__)("Volume","wordpress-seo"),(0,L.createElement)(Qi,{href:window.wpseoAdminL10n["shortlinks.semrush.volume_help"],className:"dashicons"},(0,L.createElement)("span",{className:"screen-reader-text"},/* translators: Hidden accessibility text. */
(0,O.__)("Learn more about the related keyphrases volume","wordpress-seo")))),(0,L.createElement)("th",{scope:"col",abbr:(0,O.__)("Trend","wordpress-seo")},(0,O.__)("Trend","wordpress-seo"),(0,L.createElement)(Qi,{href:window.wpseoAdminL10n["shortlinks.semrush.trend_help"],className:"dashicons"},(0,L.createElement)("span",{className:"screen-reader-text"},/* translators: Hidden accessibility text. */
(0,O.__)("Learn more about the related keyphrases trend","wordpress-seo")))),r&&(0,L.createElement)("td",{className:"yoast-table--nobreak"}))),(0,L.createElement)("tbody",null,a.results.rows.map(((e,s)=>{const a=e[0],n=this.transformTrendDataToChartPoints(e[2]),o=this.getAreaChartDataTableHeaderLabels();return(0,L.createElement)("tr",{key:s},(0,L.createElement)("td",null,a),(0,L.createElement)("td",null,e[1]),(0,L.createElement)("td",{className:"yoast-table--nopadding"},(0,L.createElement)(Zi,{width:66,height:24,data:n,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:this.mapAreaChartDataToTableData,dataTableCaption:(0,O.__)("Keyphrase volume in the last 12 months on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:o})),r&&(0,L.createElement)("td",{className:"yoast-table--nobreak"},r(a,t)))})))),(0,L.createElement)("p",{style:{marginBottom:0}},(0,L.createElement)(Ji,{href:n},(0,O.sprintf)(/* translators: %s expands to Semrush */
(0,O.__)("Get more insights at %s","wordpress-seo"),"Semrush"))))}}Xi.propTypes={data:E().object,keyphrase:E().string,relatedKeyphrases:E().array,countryCode:E().string,renderAction:E().func},Xi.defaultProps={data:{},keyphrase:"",relatedKeyphrases:[],countryCode:"us",renderAction:null};const el=Xi,tl=(0,We.makeOutboundLink)(),sl=()=>(0,L.createElement)(pa.Alert,{type:"info"},(0,O.sprintf)(/* translators: %s: Expands to "Yoast SEO". */
(0,O.__)("You’ll reach more people with multiple keyphrases! Want to quickly add these related keyphrases to the %s analyses for even better content optimization?","wordpress-seo"),"Yoast SEO")+" ",(0,L.createElement)(tl,{href:window.wpseoAdminL10n["shortlinks.semrush.premium_landing_page"]},(0,O.sprintf)(/* translators: %s: Expands to "Yoast SEO Premium". */
(0,O.__)("Explore %s!","wordpress-seo"),"Yoast SEO Premium"))),al=()=>(0,L.createElement)(pa.Alert,{type:"error"},(0,O.__)("We've encountered a problem trying to get related keyphrases. Please try again later.","wordpress-seo")),rl=()=>(0,L.createElement)(pa.Alert,{type:"warning"},(0,O.sprintf)(/* translators: %s: Expands to "Yoast SEO". */
(0,O.__)("You've reached the maximum amount of 4 related keyphrases. You can change or remove related keyphrases in the %s metabox or sidebar.","wordpress-seo"),"Yoast SEO"));function nl(e){const{response:t,lastRequestKeyphrase:s,keyphrase:a,newRequest:r,setCountry:n,renderAction:o,countryCode:i,requestLimitReached:l,setRequestFailed:c,setNoResultsFound:d,relatedKeyphrases:p,setRequestSucceeded:u,setRequestLimitReached:m}=e,h=pt().isPremium;return(0,L.createElement)(M.Fragment,null,!l&&(0,L.createElement)(M.Fragment,null,!h&&(0,L.createElement)(sl,null),h&&function(e){return e&&e.length>=4}(p)&&(0,L.createElement)(rl,null),(0,L.createElement)(Yi,{countryCode:i,setCountry:n,newRequest:r,keyphrase:a,setRequestFailed:c,setNoResultsFound:d,setRequestSucceeded:u,setRequestLimitReached:m,response:t,lastRequestKeyphrase:s})),function(e){const{isPending:t,requestLimitReached:s,isSuccess:a,response:r,requestHasData:n}=e;return t?(0,L.createElement)(Ui,null):s?(0,L.createElement)(Wi,null):!a&&function(e){return!(0,Ee.isEmpty)(e)&&"error"in e}(r)?(0,L.createElement)(al,null):n?void 0:(0,L.createElement)("p",null,(0,O.__)("Sorry, there's no data available for that keyphrase/country combination.","wordpress-seo"))}(e),(0,L.createElement)(el,{keyphrase:a,relatedKeyphrases:p,countryCode:i,renderAction:o,data:t}))}nl.propTypes={keyphrase:E().string,relatedKeyphrases:E().array,renderAction:E().func,requestLimitReached:E().bool,countryCode:E().string.isRequired,setCountry:E().func.isRequired,newRequest:E().func.isRequired,setRequestSucceeded:E().func.isRequired,setRequestLimitReached:E().func.isRequired,setRequestFailed:E().func.isRequired,setNoResultsFound:E().func.isRequired,response:E().object,lastRequestKeyphrase:E().string},nl.defaultProps={keyphrase:"",relatedKeyphrases:[],renderAction:null,requestLimitReached:!1,response:{},lastRequestKeyphrase:""};const ol=(0,ra.compose)([(0,n.withSelect)((e=>{const{getFocusKeyphrase:t,getSEMrushSelectedCountry:s,getSEMrushRequestLimitReached:a,getSEMrushRequestResponse:r,getSEMrushRequestIsSuccess:n,getSEMrushIsRequestPending:o,getSEMrushRequestHasData:i,getSEMrushRequestKeyphrase:l}=e("yoast-seo/editor");return{keyphrase:t(),countryCode:s(),requestLimitReached:a(),response:r(),isSuccess:n(),isPending:o(),requestHasData:i(),lastRequestKeyphrase:l()}})),(0,n.withDispatch)((e=>{const{setSEMrushChangeCountry:t,setSEMrushNewRequest:s,setSEMrushRequestSucceeded:a,setSEMrushRequestFailed:r,setSEMrushSetRequestLimitReached:n,setSEMrushNoResultsFound:o}=e("yoast-seo/editor");return{setCountry:e=>{t(e)},newRequest:(e,t)=>{s(e,t)},setRequestSucceeded:e=>{a(e)},setRequestFailed:e=>{r(e)},setRequestLimitReached:()=>{n()},setNoResultsFound:()=>{o()}}}))])(nl),il=L.forwardRef((function(e,t){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),L.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"}))}));var ll,cl;function dl(){return dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e},dl.apply(this,arguments)}const pl=e=>L.createElement("svg",dl({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),ll||(ll=L.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"})),cl||(cl=L.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"}))),ul=window.moment;var ml=s.n(ul);const hl=(0,We.makeOutboundLink)(),gl=e=>{const t=(0,O.sprintf)(/* translators: %d expands to the amount of allowed keyphrases on a free account, %s expands to a link to Wincher plans. */
(0,O.__)("You've reached the maximum amount of %d keyphrases you can add to your Wincher account. If you wish to add more keyphrases, please %s.","wordpress-seo"),e.limit,"{{updateWincherPlanLink/}}");return(0,L.createElement)(pa.Alert,{type:"error"},(0,mi.Z)({mixedString:t,components:{updateWincherPlanLink:(0,L.createElement)(hl,{href:wpseoAdminGlobalL10n["links.wincher.pricing"]},(0,O.sprintf)(/* translators: %s : Expands to "Wincher". */
(0,O.__)("upgrade your %s plan","wordpress-seo"),"Wincher"))}}))};gl.propTypes={limit:E().number},gl.defaultProps={limit:10};const yl=gl,fl=()=>(0,L.createElement)(pa.Alert,{type:"error"},(0,O.__)("Something went wrong while tracking the ranking position(s) of your page. Please try again later.","wordpress-seo"));async function wl(e,t,s,a=200){try{const r=await e();return!!r&&(r.status===a?t(r):s(r))}catch(e){console.error(e.message)}}async function bl(e){try{return await l()(e)}catch(e){return e.error&&e.status?e:e instanceof Response&&await e.json()}}async function El(e){return(0,Ee.isArray)(e)||(e=[e]),await bl({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:e}})}const vl=Hs().p`
	color: ${Gn.colors.$color_pink_dark};
	font-size: 14px;
	font-weight: 700;
	margin: 13px 0 10px;
`,_l=Hs()(pa.SvgIcon)`
	margin-right: 5px;
	vertical-align: middle;
`,kl=Hs().button`
	position: absolute;
	top: 9px;
	right: 9px;
	border: none;
    background: none;
    cursor: pointer;
`,xl=Hs().p`
	font-size: 13px;
	font-weight: 500;
	margin: 10px 0 13px;
`,Tl=Hs().div`
	position: relative;
	background: ${e=>e.isTitleShortened?"#F5F7F7":"transparent"};
	border: 1px solid #C7C7C7;
	border-left: 4px solid${Gn.colors.$color_pink_dark};
	padding: 0 16px;
	margin-bottom: 1.5em;
`,Sl=e=>{const[t,s]=(0,M.useState)(null);return(0,M.useEffect)((()=>{e&&!t&&async function(){return await bl({path:"yoast/v1/wincher/account/limit",method:"GET"})}().then((e=>s(e)))}),[t]),t};Sl.propTypes={limit:E().bool.isRequired};const Rl=({limit:e,usage:t,isTitleShortened:s,isFreeAccount:a})=>{const r=(0,O.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
   * %2$s expands to the account keywords limit.
   */
(0,O.__)("Your are tracking %1$s out of %2$s keyphrases included in your free account.","wordpress-seo"),t,e),n=(0,O.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
   * %2$s expands to the account keywords limit.
   */
(0,O.__)("Your are tracking %1$s out of %2$s keyphrases included in your account.","wordpress-seo"),t,e),o=a?r:n,i=(0,O.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
   * %2$s expands to the account keywords limit.
   */
(0,O.__)("Keyphrases tracked: %1$s/%2$s","wordpress-seo"),t,e),l=s?i:o;return(0,L.createElement)(vl,null,s&&(0,L.createElement)(_l,{icon:"exclamation-triangle",color:Gn.colors.$color_pink_dark,size:"14px"}),l)};Rl.propTypes={limit:E().number.isRequired,usage:E().number.isRequired,isTitleShortened:E().bool,isFreeAccount:E().bool};const Cl=(0,We.makeOutboundLink)(),Il=({discount:e,months:t})=>{const s=(0,L.createElement)(Cl,{href:wpseoAdminGlobalL10n["links.wincher.upgrade"],style:{fontWeight:600}},(0,O.sprintf)(/* Translators: %s : Expands to "Wincher". */
(0,O.__)("Click here to upgrade your %s plan","wordpress-seo"),"Wincher"));if(!e||!t)return(0,L.createElement)(xl,null,s);const a=100*e,r=(0,O.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,O.__)("%1$s and get an exclusive %2$s discount for %3$s month(s).","wordpress-seo"),"{{wincherAccountUpgradeLink/}}",a+"%",t);return(0,L.createElement)(xl,null,(0,mi.Z)({mixedString:r,components:{wincherAccountUpgradeLink:s}}))};Il.propTypes={discount:E().number,months:E().number};const Ll=({onClose:e,isTitleShortened:t,trackingInfo:s})=>{const a=(()=>{const[e,t]=(0,M.useState)(null);return(0,M.useEffect)((()=>{e||async function(){return await bl({path:"yoast/v1/wincher/account/upgrade-campaign",method:"GET"})}().then((e=>t(e)))}),[e]),e})();if(null===s)return null;const{limit:r,usage:n}=s;if(!(r&&n/r>=.8))return null;const o=Boolean(null==a?void 0:a.discount);return(0,L.createElement)(Tl,{isTitleShortened:t},e&&(0,L.createElement)(kl,{type:"button","aria-label":(0,O.__)("Close the upgrade callout","wordpress-seo"),onClick:e},(0,L.createElement)(pa.SvgIcon,{icon:"times-circle",color:Gn.colors.$color_pink_dark,size:"14px"})),(0,L.createElement)(Rl,{...s,isTitleShortened:t,isFreeAccount:o}),(0,L.createElement)(Il,{discount:null==a?void 0:a.discount,months:null==a?void 0:a.months}))};Ll.propTypes={onClose:E().func,isTitleShortened:E().bool,trackingInfo:E().object};const Pl=Ll,Al=()=>(0,L.createElement)(pa.Alert,{type:"success"},(0,O.sprintf)(/* translators: %s: Expands to "Wincher". */
(0,O.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher")),Ml=()=>(0,L.createElement)(pa.Alert,{type:"info"},(0,O.sprintf)(/* translators: %s: Expands to "Wincher". */
(0,O.__)("%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")),Ol=()=>(0,L.createElement)("p",{className:"yoast-wincher-seo-performance-modal__loading-message"},(0,O.__)("Tracking the ranking position...","wordpress-seo")," ",(0,L.createElement)(pa.SvgIcon,{icon:"loading-spinner"})),Fl=Hs()(pa.SvgIcon)`
	margin-left: 2px;
	flex-shrink: 0;
	rotate: ${e=>e.isImproving?"-90deg":"90deg"};
`,Dl=Hs().span`
	color: ${e=>e.isImproving?"#69AB56":"#DC3332"};
	font-size: 13px;
	font-weight: 600;
	line-height: 20px;
	margin-right: 2px;
	margin-left: 12px;
`,Nl=Hs().td`
	padding-right: 0 !important;

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

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

	& > div {
		margin: 0px;
	}
`,Ql=Hs().th`
	padding-left: 2px !important;
`,Jl=e=>{const t=(0,M.useRef)();return(0,M.useEffect)((()=>{t.current=e})),t.current},Xl=(0,Ee.debounce)((async function(e=null,t=null,s=null,a){return await bl({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:e,permalink:s,startAt:t},signal:a})}),500,{leading:!0}),ec=e=>{const{addTrackedKeyphrase:t,isLoggedIn:s,keyphrases:a,permalink:r,removeTrackedKeyphrase:n,setKeyphraseLimitReached:o,setRequestFailed:i,setRequestSucceeded:l,setTrackedKeyphrases:c,setHasTrackedAll:d,trackAll:p,trackedKeyphrases:u,isNewlyAuthenticated:m,websiteId:h,focusKeyphrase:g,newRequest:y,startAt:f,selectedKeyphrases:w,onSelectKeyphrases:b}=e,E=(0,M.useRef)(),v=(0,M.useRef)(),_=(0,M.useRef)(!1),[k,x]=(0,M.useState)([]),T=(0,M.useCallback)((e=>{const t=e.toLowerCase();return u&&!(0,Ee.isEmpty)(u)&&u.hasOwnProperty(t)?u[t]:null}),[u]),S=(0,M.useMemo)((()=>async()=>{await wl((()=>(v.current&&v.current.abort(),v.current="undefined"==typeof AbortController?null:new AbortController,Xl(a,f,r,v.current.signal))),(e=>{l(e),c(e.results)}),(e=>{i(e)}))}),[l,i,c,a,r,f]),R=(0,M.useCallback)((async e=>{const s=(Array.isArray(e)?e:[e]).map((e=>e.toLowerCase()));x((e=>[...e,...s])),await wl((()=>El(s)),(e=>{l(e),t(e.results),S()}),(e=>{400===e.status&&e.limit&&o(e.limit),i(e)}),201),x((e=>(0,Ee.without)(e,...s)))}),[l,i,o,t,S]),C=(0,M.useCallback)((async(e,t)=>{e=e.toLowerCase(),x((t=>[...t,e])),await wl((()=>async function(e){return await bl({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:e}})}(t)),(t=>{l(t),n(e)}),(e=>{i(e)})),x((t=>(0,Ee.without)(t,e)))}),[l,n,i]),I=(0,M.useCallback)((async e=>{y(),await R(e)}),[y,R]),P=Jl(r),A=Jl(a),F=Jl(f),D=r&&f;(0,M.useEffect)((()=>{s&&D&&(r!==P||(0,Ee.difference)(a,A).length||f!==F)&&S()}),[s,r,P,a,A,S,D,f,F]),(0,M.useEffect)((()=>{if(s&&p&&null!==u){const e=a.filter((e=>!T(e)));e.length&&R(e),d()}}),[s,p,u,R,d,T,a]),(0,M.useEffect)((()=>{m&&!_.current&&(S(),_.current=!0)}),[m,S]),(0,M.useEffect)((()=>{if(s&&!(0,Ee.isEmpty)(u))return(0,Ee.filter)(u,(e=>(0,Ee.isEmpty)(e.updated_at))).length>0&&(E.current=setInterval((()=>{S()}),1e4)),()=>{clearInterval(E.current)}}),[s,u,S]);const N=s&&null===u,q=(0,M.useMemo)((()=>(0,Ee.isEmpty)(u)?[]:Object.values(u).filter((e=>{var t;return!(0,Ee.isEmpty)(null==e||null===(t=e.position)||void 0===t?void 0:t.history)})).map((e=>e.keyword))),[u]),$=(0,M.useMemo)((()=>w.length>0&&q.length>0&&q.every((e=>w.includes(e)))),[w,q]),U=(0,M.useCallback)((()=>{b($?[]:q)}),[b,$,q]),B=(0,M.useMemo)((()=>(0,Ee.orderBy)(a,[e=>Object.values(u||{}).map((e=>e.keyword)).includes(e)],["desc"])),[a,u]);return a&&!(0,Ee.isEmpty)(a)&&(0,L.createElement)(M.Fragment,null,(0,L.createElement)(Gl,null,(0,L.createElement)("table",{className:"yoast yoast-table"},(0,L.createElement)("thead",null,(0,L.createElement)("tr",null,(0,L.createElement)(Zl,{isDisabled:0===q.length},(0,L.createElement)(pa.Checkbox,{id:"select-all",onChange:U,checked:$,label:""})),(0,L.createElement)(Ql,{scope:"col",abbr:(0,O.__)("Keyphrase","wordpress-seo")},(0,O.__)("Keyphrase","wordpress-seo")),(0,L.createElement)("th",{scope:"col",abbr:(0,O.__)("Position","wordpress-seo")},(0,O.__)("Position","wordpress-seo")),(0,L.createElement)("th",{scope:"col",abbr:(0,O.__)("Position over time","wordpress-seo")},(0,O.__)("Position over time","wordpress-seo")),(0,L.createElement)("th",{scope:"col",abbr:(0,O.__)("Last updated","wordpress-seo")},(0,O.__)("Last updated","wordpress-seo")),(0,L.createElement)("th",{scope:"col",abbr:(0,O.__)("Tracking","wordpress-seo")},(0,O.__)("Tracking","wordpress-seo")))),(0,L.createElement)("tbody",null,B.map(((e,t)=>(0,L.createElement)(Yl,{key:`trackable-keyphrase-${t}`,keyphrase:e,onTrackKeyphrase:I,onUntrackKeyphrase:C,rowData:T(e),isFocusKeyphrase:e===g.trim().toLowerCase(),websiteId:h,isDisabled:!s,isLoading:N||k.indexOf(e.toLowerCase())>=0,isSelected:w.includes(e),onSelectKeyphrases:b})))))),(0,L.createElement)("p",{style:{marginBottom:0,position:"relative"}},(0,L.createElement)(jl,{href:wpseoAdminGlobalL10n["links.wincher.login"]},(0,O.sprintf)(/* translators: %s expands to Wincher */
(0,O.__)("Get more insights over at %s","wordpress-seo"),"Wincher")),(0,L.createElement)(Vl,null,(0,O.__)("* focus keyphrase","wordpress-seo"))))};ec.propTypes={addTrackedKeyphrase:E().func.isRequired,isLoggedIn:E().bool,isNewlyAuthenticated:E().bool,keyphrases:E().array,newRequest:E().func.isRequired,removeTrackedKeyphrase:E().func.isRequired,setRequestFailed:E().func.isRequired,setKeyphraseLimitReached:E().func.isRequired,setRequestSucceeded:E().func.isRequired,setTrackedKeyphrases:E().func.isRequired,setHasTrackedAll:E().func.isRequired,trackAll:E().bool,trackedKeyphrases:E().object,websiteId:E().string,permalink:E().string.isRequired,focusKeyphrase:E().string,startAt:E().string,selectedKeyphrases:E().arrayOf(E().string).isRequired,onSelectKeyphrases:E().func.isRequired},ec.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],trackAll:!1,websiteId:"",focusKeyphrase:""};const tc=ec,sc=(0,ra.compose)([(0,n.withSelect)((e=>{const{getWincherWebsiteId:t,getWincherTrackableKeyphrases:s,getWincherLoginStatus:a,getWincherPermalink:r,getFocusKeyphrase:n,isWincherNewlyAuthenticated:o,shouldWincherTrackAll:i}=e("yoast-seo/editor");return{focusKeyphrase:n(),keyphrases:s(),isLoggedIn:a(),trackAll:i(),websiteId:t(),isNewlyAuthenticated:o(),permalink:r()}})),(0,n.withDispatch)((e=>{const{setWincherNewRequest:t,setWincherRequestSucceeded:s,setWincherRequestFailed:a,setWincherSetKeyphraseLimitReached:r,setWincherTrackedKeyphrases:n,setWincherTrackingForKeyphrase:o,setWincherTrackAllKeyphrases:i,unsetWincherTrackingForKeyphrase:l}=e("yoast-seo/editor");return{newRequest:()=>{t()},setRequestSucceeded:e=>{s(e)},setRequestFailed:e=>{a(e)},setKeyphraseLimitReached:e=>{r(e)},addTrackedKeyphrase:e=>{o(e)},removeTrackedKeyphrase:e=>{l(e)},setTrackedKeyphrases:e=>{n(e)},setHasTrackedAll:()=>{i(!1)}}}))])(tc),ac=(0,We.makeOutboundLink)(),rc=(0,We.makeOutboundLink)(),nc=()=>{const e=(0,O.sprintf)((0,O.__)(/* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */
"With %1$s you can track the ranking position of your page in the search results based on your keyphrase(s). %2$s","wordpress-seo"),"{{wincherLink/}}","{{wincherReadMoreLink/}}");return(0,L.createElement)("p",null,(0,mi.Z)({mixedString:e,components:{wincherLink:(0,L.createElement)(ac,{href:wpseoAdminGlobalL10n["links.wincher.website"]},"Wincher"),wincherReadMoreLink:(0,L.createElement)(rc,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"]},(0,O.__)("Read more about keyphrase tracking with Wincher","wordpress-seo"))}}))},oc=()=>(0,L.createElement)(pa.Alert,{type:"error"},(0,O.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo")),ic=()=>(0,L.createElement)(pa.Alert,{type:"info"},(0,O.sprintf)(/* translators: %s: Expands to "Wincher". */
(0,O.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher"));class lc{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,a=["top="+(window.top.outerHeight/2+window.top.screenY-e/2),"left="+(window.top.outerWidth/2+window.top.screenX-t/2),"width="+t,"height="+e,"resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(this.url,s,a.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}async messageHandler(e){const{data:t,source:s,origin:a}=e;a===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 cc=e=>{const t=(0,O.sprintf)(/* translators: %s expands to a link to open the Wincher login popup. */
(0,O.__)("It seems like something went wrong when retrieving your website's data. Please %s and try again.","wordpress-seo"),"{{reconnectToWincher/}}","Wincher");return(0,L.createElement)(pa.Alert,{type:"error",className:e.className},(0,mi.Z)({mixedString:t,components:{reconnectToWincher:(0,L.createElement)("a",{href:"#",onClick:t=>{t.preventDefault(),e.onReconnect()}},(0,O.sprintf)(/* translators: %s : Expands to "Wincher". */
(0,O.__)("reconnect to %s","wordpress-seo"),"Wincher"))}}))};cc.propTypes={onReconnect:E().func.isRequired,className:E().string},cc.defaultProps={className:""};const dc=cc,pc=()=>(0,L.createElement)(pa.Alert,{type:"error"},(0,O.__)("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")),uc=window.yoast["chart.js"],mc="label";function hc(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function gc(e,t){e.labels=t}function yc(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:mc;const a=[];e.datasets=t.map((t=>{const r=e.datasets.find((e=>e[s]===t[s]));return r&&t.data&&!a.includes(r)?(a.push(r),Object.assign(r,t),r):{...t}}))}function fc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mc;const s={labels:[],datasets:[]};return gc(s,e.labels),yc(s,e.datasets,t),s}function wc(e,t){const{height:s=150,width:a=300,redraw:r=!1,datasetIdKey:n,type:o,data:i,options:l,plugins:c=[],fallbackContent:d,updateMode:p,...u}=e,m=(0,L.useRef)(null),h=(0,L.useRef)(),g=()=>{m.current&&(h.current=new uc.Chart(m.current,{type:o,data:fc(i,n),options:l&&{...l},plugins:c}),hc(t,h.current))},y=()=>{hc(t,null),h.current&&(h.current.destroy(),h.current=null)};return(0,L.useEffect)((()=>{!r&&h.current&&l&&function(e,t){const s=e.options;s&&t&&Object.assign(s,t)}(h.current,l)}),[r,l]),(0,L.useEffect)((()=>{!r&&h.current&&gc(h.current.config.data,i.labels)}),[r,i.labels]),(0,L.useEffect)((()=>{!r&&h.current&&i.datasets&&yc(h.current.config.data,i.datasets,n)}),[r,i.datasets]),(0,L.useEffect)((()=>{h.current&&(r?(y(),setTimeout(g)):h.current.update(p))}),[r,l,i.labels,i.datasets,p]),(0,L.useEffect)((()=>{h.current&&(y(),setTimeout(g))}),[o]),(0,L.useEffect)((()=>(g(),()=>y())),[]),L.createElement("canvas",Object.assign({ref:m,role:"img",height:s,width:a},u),d)}const bc=(0,L.forwardRef)(wc);function Ec(e,t){return uc.Chart.register(t),(0,L.forwardRef)(((t,s)=>L.createElement(bc,Object.assign({},t,{ref:s,type:e}))))}const vc=Ec("line",uc.LineController),_c={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"};uc._adapters._date.override("function"==typeof ml()?{_id:"moment",formats:function(){return _c},parse:function(e,t){return"string"==typeof e&&"string"==typeof t?e=ml()(e,t):e instanceof ml()||(e=ml()(e)),e.isValid()?e.valueOf():null},format:function(e,t){return ml()(e).format(t)},add:function(e,t,s){return ml()(e).add(t,s).valueOf()},diff:function(e,t,s){return ml()(e).diff(ml()(t),s)},startOf:function(e,t,s){return e=ml()(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 ml()(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 kc=["top","right","bottom","left"];function xc(e,t,s){const a={};s=s?"-"+s:"";for(let r=0;r<4;r++){const n=kc[r];a[n]=parseFloat(e[t+"-"+n+s])||0}return a.width=a.left+a.right,a.height=a.top+a.bottom,a}!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){}}(),uc.Chart.register(uc.CategoryScale,uc.LineController,uc.LineElement,uc.PointElement,uc.LinearScale,uc.TimeScale,uc.Legend,uc.Tooltip);const Tc=["#ff983b","#ffa3f7","#3798ff","#ff3b3b","#acce81","#b51751","#3949ab","#26c6da","#ccb800","#de66ff","#4db6ac","#ffab91","#45f5f1","#77f210","#90a4ae","#ffd54f","#006b5e","#8ec7d2","#b1887c","#cc9300"];function Sc({datasets:e,isChartShown:t,keyphrases:s}){if(!t)return null;const a=(0,M.useMemo)((()=>Object.fromEntries([...s].sort().map(((e,t)=>[e,Tc[t%Tc.length]])))),[s]),r=e.map((e=>{const t=a[e.label];return{...e,data:e.data.map((({datetime:e,value:t})=>({x:e,y:t}))),lineTension:0,pointRadius:1,pointHoverRadius:4,borderWidth:2,pointHitRadius:6,backgroundColor:t,borderColor:t}})).filter((e=>!1!==e.selected));return(0,L.createElement)(vc,{height:100,data:{datasets:r},options:{plugins:{legend:{display:!0,position:"bottom",labels:{color:"black",usePointStyle:!0,boxHeight:7,boxWidth:7},onClick:Ee.noop},tooltip:{enabled:!0,callbacks:{title:e=>ml()(e[0].raw.x).utc().format("YYYY-MM-DD")},titleAlign:"center",mode:"xPoint",position:"nearest",usePointStyle:!0,boxHeight:7,boxWidth:7,boxPadding:2}},scales:{x:{bounds:"ticks",type:"time",time:{unit:"day",minUnit:"day"},grid:{display:!1},ticks:{autoSkipPadding:50,maxRotation:0,color:"black"}},y:{bounds:"ticks",offset:!0,reverse:!0,ticks:{precision:0,color:"black"},max:101}}}})}uc.Interaction.modes.xPoint=(e,t,s,a)=>{const r=function(e,t){if("native"in e)return e;const{canvas:s,currentDevicePixelRatio:a}=t,r=(m=s).ownerDocument.defaultView.getComputedStyle(m,null),n="border-box"===r.boxSizing,o=xc(r,"padding"),i=xc(r,"border","width"),{x:l,y:c,box:d}=function(e,t){const s=e.touches,a=s&&s.length?s[0]:e,{offsetX:r,offsetY:n}=a;let o,i,l=!1;if(((e,t,s)=>(e>0||t>0)&&(!s||!s.shadowRoot))(r,n,e.target))o=r,i=n;else{const e=t.getBoundingClientRect();o=a.clientX-e.left,i=a.clientY-e.top,l=!0}return{x:o,y:i,box:l}}(e,s),p=o.left+(d&&i.left),u=o.top+(d&&i.top);var m;let{width:h,height:g}=t;return n&&(h-=o.width+i.width,g-=o.height+i.height),{x:Math.round((l-p)/h*s.width/a),y:Math.round((c-u)/g*s.height/a)}}(t,e);let n=[];if(uc.Interaction.evaluateInteractionItems(e,"x",r,((e,t,s)=>{e.inXRange(r.x,a)&&n.push({element:e,datasetIndex:t,index:s})})),0===n.length)return n;const o=n.reduce(((e,t)=>Math.abs(r.x-e.element.x)<Math.abs(r.x-t.element.x)?e:t)).element.x;return n=n.filter((e=>e.element.x===o)),n.some((e=>Math.abs(e.element.y-r.y)<10))?n:[]},Sc.propTypes={datasets:E().arrayOf(E().shape({label:E().string.isRequired,data:E().arrayOf(E().shape({datetime:E().string.isRequired,value:E().number.isRequired})).isRequired,selected:E().bool})).isRequired,isChartShown:E().bool.isRequired,keyphrases:E().array.isRequired};const Rc=({response:e,onLogin:t})=>[401,403,404].includes(e.status)?(0,L.createElement)(dc,{onReconnect:t}):(0,L.createElement)(fl,null);Rc.propTypes={response:E().object.isRequired,onLogin:E().func.isRequired};const Cc=({isSuccess:e,response:t,allKeyphrasesMissRanking:s,onLogin:a,keyphraseLimitReached:r,limit:n})=>r?(0,L.createElement)(yl,{limit:n}):(0,Ee.isEmpty)(t)||e?s?(0,L.createElement)(Ml,null):null:(0,L.createElement)(Rc,{response:t,onLogin:a});Cc.propTypes={isSuccess:E().bool.isRequired,allKeyphrasesMissRanking:E().bool.isRequired,response:E().object,onLogin:E().func.isRequired,keyphraseLimitReached:E().bool.isRequired,limit:E().number.isRequired},Cc.defaultProps={response:{}};let Ic=null;const Lc=async e=>{if(Ic&&!Ic.isClosed())return void Ic.focus();const{url:t}=await async function(){return await bl({path:"yoast/v1/wincher/authorization-url",method:"GET"})}();Ic=new lc(t,{success:{type:"wincher:oauth:success",callback:t=>(async(e,t)=>{const{onAuthentication:s,setRequestSucceeded:a,setRequestFailed:r,keyphrases:n,addTrackedKeyphrase:o,setKeyphraseLimitReached:i}=e;await wl((()=>async function(e){const{code:t,websiteId:s}=e;return await bl({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:t,websiteId:s}})}(t)),(async e=>{s(!0,!0,t.websiteId.toString()),a(e);const l=(Array.isArray(n)?n:[n]).map((e=>e.toLowerCase()));await wl((()=>El(l)),(e=>{a(e),o(e.results)}),(e=>{400===e.status&&e.limit&&i(e.limit),r(e)}),201);const c=Ic.getPopup();c&&c.close()}),(async e=>r(e)))})(e,t)},error:{type:"wincher:oauth:error",callback:()=>e.onAuthentication(!1,!1)}},{title:"Wincher_login",width:500,height:700}),Ic.createPopup()},Pc=e=>e.isLoggedIn?null:(0,L.createElement)("p",null,(0,L.createElement)(pa.NewButton,{onClick:e.onLogin,variant:"primary"},(0,O.sprintf)(/* translators: %s expands to Wincher */
(0,O.__)("Connect with %s","wordpress-seo"),"Wincher")));Pc.propTypes={isLoggedIn:E().bool.isRequired,onLogin:E().func.isRequired};const Ac=Hs().div`
	p {
		margin: 1em 0;
	}
`,Mc=Hs().div`
	${e=>e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"};
`,Oc=Hs().div`
	font-weight: var(--yoast-font-weight-bold);
	color: var(--yoast-color-label);
	font-size: var(--yoast-font-size-default);
`,Fc=Hs().div.attrs({className:"yoast-field-group"})`
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
`,Dc=Hs().div`
	margin: 8px 0;
`,Nc=ml().utc().startOf("day"),qc=[{name:(0,O.__)("Last day","wordpress-seo"),value:ml()(Nc).subtract(1,"days").format(),defaultIndex:1},{name:(0,O.__)("Last week","wordpress-seo"),value:ml()(Nc).subtract(1,"week").format(),defaultIndex:2},{name:(0,O.__)("Last month","wordpress-seo"),value:ml()(Nc).subtract(1,"month").format(),defaultIndex:3},{name:(0,O.__)("Last year","wordpress-seo"),value:ml()(Nc).subtract(1,"year").format(),defaultIndex:0}],$c=e=>{const{onSelect:t,selected:s,options:a,isLoggedIn:r}=e;return r?a.length<1?null:(0,L.createElement)("select",{className:"components-select-control__input",id:"wincher-period-picker",value:(null==s?void 0:s.value)||a[0].value,onChange:t},a.map((e=>(0,L.createElement)("option",{key:e.name,value:e.value},e.name)))):null};$c.propTypes={onSelect:E().func.isRequired,selected:E().object,options:E().array.isRequired,isLoggedIn:E().bool.isRequired};const Uc=e=>{const{trackedKeyphrases:t,isLoggedIn:s,keyphrases:a,shouldTrackAll:r,permalink:n,historyDaysLimit:o}=e;if(!n&&s)return(0,L.createElement)(pc,null);if(0===a.length)return(0,L.createElement)(oc,null);const i=ml()(Nc).subtract(o,"days"),l=qc.filter((e=>ml()(e.value).isSameOrAfter(i))),c=(0,Ee.orderBy)(l,(e=>e.defaultIndex),"desc")[0],[d,p]=(0,M.useState)(c),[u,m]=(0,M.useState)([]),h=u.length>0,g=(0,ra.usePrevious)(t);(0,M.useEffect)((()=>{if(!(0,Ee.isEmpty)(t)&&(0,Ee.difference)(Object.keys(t),Object.keys(g||[])).length){const e=Object.values(t).map((e=>e.keyword));m(e)}}),[t,g]),(0,M.useEffect)((()=>{p(c)}),[null==c?void 0:c.name]);const y=(0,M.useCallback)((e=>{const t=qc.find((t=>t.value===e.target.value));t&&p(t)}),[p]),f=(0,M.useMemo)((()=>(0,Ee.isEmpty)(u)||(0,Ee.isEmpty)(t)?[]:Object.values(t).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:u.includes(e.keyword)&&!(0,Ee.isEmpty)(null===(t=e.position)||void 0===t?void 0:t.history)}}))),[u,t]);return(0,L.createElement)(Mc,{isDisabled:!s},(0,L.createElement)("p",null,(0,O.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")),s&&r&&(0,L.createElement)(ic,null),(0,L.createElement)(Fc,null,(0,L.createElement)($c,{selected:d,onSelect:y,options:l,isLoggedIn:s})),(0,L.createElement)(Dc,null,(0,L.createElement)(Sc,{isChartShown:h,datasets:f,keyphrases:a})),(0,L.createElement)(sc,{startAt:null==d?void 0:d.value,selectedKeyphrases:u,onSelectKeyphrases:m,trackedKeyphrases:t}))};function Bc(e){const{isNewlyAuthenticated:t,isLoggedIn:s}=e,a=(0,M.useCallback)((()=>{Lc(e)}),[Lc,e]),r=Sl(s);return(0,L.createElement)(Ac,null,t&&(0,L.createElement)(Al,null),s&&(0,L.createElement)(Pl,{trackingInfo:r}),(0,L.createElement)(Oc,null,(0,O.__)("SEO performance","wordpress-seo"),(0,L.createElement)(pa.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"]
/* translators: Hidden accessibility text. */,linkText:(0,O.__)("Learn more about the SEO performance feature.","wordpress-seo")})),(0,L.createElement)(nc,null),(0,L.createElement)(Pc,{isLoggedIn:s,onLogin:a}),(0,L.createElement)(Cc,{...e,onLogin:a}),(0,L.createElement)(Uc,{...e,historyDaysLimit:(null==r?void 0:r.historyDays)||31}))}Uc.propTypes={trackedKeyphrases:E().object,keyphrases:E().array.isRequired,isLoggedIn:E().bool.isRequired,shouldTrackAll:E().bool.isRequired,permalink:E().string.isRequired,historyDaysLimit:E().number},Bc.propTypes={trackedKeyphrases:E().object,addTrackedKeyphrase:E().func.isRequired,isLoggedIn:E().bool,isNewlyAuthenticated:E().bool,keyphrases:E().array,response:E().object,shouldTrackAll:E().bool,permalink:E().string,historyDaysLimit:E().number},Bc.defaultProps={trackedKeyphrases:null,isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],response:{},shouldTrackAll:!1,permalink:"",historyDaysLimit:0};const Wc=(0,ra.compose)([(0,n.withSelect)((e=>{const{isWincherNewlyAuthenticated:t,getWincherKeyphraseLimitReached:s,getWincherLimit:a,getWincherHistoryDaysLimit:r,getWincherLoginStatus:n,getWincherRequestIsSuccess:o,getWincherRequestResponse:i,getWincherTrackableKeyphrases:l,getWincherTrackedKeyphrases:c,getWincherAllKeyphrasesMissRanking:d,getWincherPermalink:p,shouldWincherAutomaticallyTrackAll:u}=e("yoast-seo/editor");return{keyphrases:l(),trackedKeyphrases:c(),allKeyphrasesMissRanking:d(),isLoggedIn:n(),isNewlyAuthenticated:t(),isSuccess:o(),keyphraseLimitReached:s(),limit:a(),response:i(),shouldTrackAll:u(),permalink:p(),historyDaysLimit:r()}})),(0,n.withDispatch)((e=>{const{setWincherWebsiteId:t,setWincherRequestSucceeded:s,setWincherRequestFailed:a,setWincherTrackingForKeyphrase:r,setWincherSetKeyphraseLimitReached:n,setWincherLoginStatus:o}=e("yoast-seo/editor");return{setRequestSucceeded:e=>{s(e)},setRequestFailed:e=>{a(e)},addTrackedKeyphrase:e=>{r(e)},setKeyphraseLimitReached:e=>{n(e)},onAuthentication:(e,s,a)=>{t(a),o(e,s)}}}))])(Bc),zc=Hs()(il)`
	width: 18px;
	height: 18px;
	margin: 3px;
`;function Kc(e){const{keyphrases:t,onNoKeyphraseSet:s,onOpen:a,location:r}=e;if(!t.length){let e=document.querySelector("#focus-keyword-input-metabox");return e||(e=document.querySelector("#focus-keyword-input-sidebar")),e.focus(),void s()}a(r)}function Hc(e,t){Yr(t)&&e.onClose()}function Yc(e){const{location:t,whichModalOpen:s,shouldCloseOnClickOutside:a}=e,r=(0,M.useCallback)((()=>{Kc(e)}),[Kc,e]),n=(0,M.useCallback)((t=>{Hc(e,t)}),[Hc,e]),o=(0,O.__)("Track SEO performance","wordpress-seo"),i=Hr();return(0,L.createElement)(M.Fragment,null,s===t&&(0,L.createElement)(Ia,{title:o,onRequestClose:n,icon:(0,L.createElement)(pl,null),additionalClassName:"yoast-wincher-seo-performance-modal yoast-gutenberg-modal__no-padding",shouldCloseOnClickOutside:a},(0,L.createElement)(Ta,{className:"yoast-gutenberg-modal__content yoast-wincher-seo-performance-modal__content"},(0,L.createElement)(Wc,null))),"sidebar"===t&&(0,L.createElement)(ma,{id:`wincher-open-button-${t}`,title:o,SuffixHeroIcon:(0,L.createElement)(zc,{className:"yst-text-slate-500",...i}),onClick:r}),"metabox"===t&&(0,L.createElement)("div",{className:"yst-root"},(0,L.createElement)(da,{id:`wincher-open-button-${t}`,onClick:r},(0,L.createElement)(da.Text,null,o),(0,L.createElement)(il,{className:"yst-h-5 yst-w-5 yst-text-slate-500",...i}))))}Yc.propTypes={location:E().string,whichModalOpen:E().oneOf(["none","metabox","sidebar","postpublish"]),shouldCloseOnClickOutside:E().bool},Yc.defaultProps={location:"",whichModalOpen:"none",shouldCloseOnClickOutside:!0};const jc=(0,ra.compose)([(0,n.withSelect)((e=>{const{getWincherModalOpen:t,getWincherTrackableKeyphrases:s}=e("yoast-seo/editor");return{keyphrases:s(),whichModalOpen:t()}})),(0,n.withDispatch)((e=>{const{setWincherOpenModal:t,setWincherDismissModal:s,setWincherNoKeyphrase:a}=e("yoast-seo/editor");return{onOpen:e=>{t(e)},onClose:()=>{s()},onNoKeyphraseSet:()=>{a()}}}))])(Yc),Vc=()=>(0,L.createElement)(L.Fragment,null,(0,L.createElement)("p",null,Fn((0,O.sprintf)(/* translators: 1: Opening a html tag, 2: Closing a html tag. 3: WordProof. 4. WordPress */
(0,O.__)("Something went wrong authenticating your %3$s account with the %4$s site. Please try again or contact %1$s%3$s support%2$s.","wordpress-seo"),"<a>","</a>","WordProof","WordPress"),"https://help.wordproof.com/")));var Gc,Zc,Qc,Jc,Xc,ed,td,sd,ad,rd,nd,od,id,ld,cd,dd,pd,ud,md,hd,gd,yd,fd,wd,bd,Ed,vd,_d,kd,xd,Td,Sd,Rd,Cd,Id,Ld,Pd,Ad,Md,Od,Fd,Dd,Nd,qd,$d,Ud,Bd,Wd;function zd(){return zd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e},zd.apply(this,arguments)}const Kd=e=>L.createElement("svg",zd({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 448 360"},e),Gc||(Gc=L.createElement("circle",{cx:226,cy:211,r:149,fill:"#f0ecf0"})),Zc||(Zc=L.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"})),Qc||(Qc=L.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"})),Jc||(Jc=L.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"})),Xc||(Xc=L.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"})),ed||(ed=L.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"})),td||(td=L.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"})),sd||(sd=L.createElement("path",{fill:"#efb17c",d:"M277.68 178.82Z"})),ad||(ad=L.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"})),rd||(rd=L.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"})),nd||(nd=L.createElement("path",{fill:"#fff",d:"M240.68 143.9c-11.49-5.53-11.65-8.17-24.64-11.69-8.6-2.32-5.53 1-5.69 4.42-.2 4.16-1.26 9.87 4.9 12.66 9 4.09 18.16-6.02 25.43-5.39ZM241.38 103c-.16 1.26-.06 4.9 5.46 8.25 11.43-4.73 16.36-2.56 17-3.33 1.48-1.76-2-8.87-7.88-9.85-5.58-.94-14.14 1.24-14.58 4.93Z"})),od||(od=L.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"})),id||(id=L.createElement("circle",{cx:254.13,cy:104.05,r:4.19,fill:"#000001"})),ld||(ld=L.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"})),cd||(cd=L.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"})),dd||(dd=L.createElement("circle",{cx:219.55,cy:95.28,r:4,fill:"#000001"})),pd||(pd=L.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"})),ud||(ud=L.createElement("path",{fill:"#a57c52",d:"M231.22 69.91c-.67-3.41-8.78-2.83-11.06-1.93-3.48 1.39-6.08 5.22-7.13 8.53 2.9-4.3 6.74-8.12 12.46-6 1.16.42 3.18 2.35 4.48 1.85s1.03-2.2 1.25-2.45ZM263.38 78.47c-2.75-1.66-12.24-5.08-12.18.82 2.56.24 5-.19 7.64.95 11.22 4.76 12.77 17.61 12.85 17.86.2-.53.1 1.26.23.7-.02.2.95-12.12-8.54-20.33Z"})),md||(md=L.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"})),hd||(hd=L.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"})),gd||(gd=L.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"})),yd||(yd=L.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"})),fd||(fd=L.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"})),wd||(wd=L.createElement("path",{fill:"#efb17c",d:"M39 74.4c4.83 1.1 12.52 6.44 15.89 10-3.22-1.34-14.73-6.15-15.89-10ZM39.62 72.9c6.71-.79 18 1.54 23.29 5.9-3.85-.2-5.42-1.48-9-2.94-4.08-1.69-8.83-2.03-14.29-2.96ZM86.05 87.48c-3.72-1.32-10.52-1.13-13.22 3.52 2-1.16 1.84-2.11 4.18-1.72-3.81-4.15 8.16-.74 11.6-.24M85.83 102.19c.56-3.29-8-7.81-10.58-9.17-6.25-3.29-12.16 1.36-19.33-4.53 5.94 6.1 14.23 2.5 19.55 5.76 3.06 1.88 8.65 6.09 9.35 9.38-.23-.4 1.29-1.44 1.01-1.44Z"})),bd||(bd=L.createElement("circle",{cx:38.13,cy:30.03,r:3.14,fill:"#b89ac8"})),Ed||(Ed=L.createElement("circle",{cx:60.26,cy:39.96,r:3.14,fill:"#e31e0c"})),vd||(vd=L.createElement("circle",{cx:50.29,cy:25.63,r:3.14,fill:"#3baa45"})),_d||(_d=L.createElement("circle",{cx:22.19,cy:19.21,r:3.14,fill:"#2ca9e1"})),kd||(kd=L.createElement("circle",{cx:22.19,cy:30.03,r:3.14,fill:"#e31e0c"})),xd||(xd=L.createElement("circle",{cx:26.86,cy:8.28,r:3.14,fill:"#3baa45"})),Td||(Td=L.createElement("circle",{cx:49.32,cy:39.99,r:3.14,fill:"#e31e0c"})),Sd||(Sd=L.createElement("circle",{cx:63.86,cy:59.52,r:3.14,fill:"#f8ad39"})),Rd||(Rd=L.createElement("circle",{cx:50.88,cy:50.72,r:3.14,fill:"#3baa45"})),Cd||(Cd=L.createElement("circle",{cx:63.47,cy:76.17,r:3.14,fill:"#e31e0c"})),Id||(Id=L.createElement("circle",{cx:38.34,cy:14.83,r:3.14,fill:"#2ca9e1"})),Ld||(Ld=L.createElement("circle",{cx:44.44,cy:5.92,r:3.14,fill:"#f8ad39"})),Pd||(Pd=L.createElement("circle",{cx:57.42,cy:10.24,r:3.14,fill:"#e31e0c"})),Ad||(Ad=L.createElement("circle",{cx:66.81,cy:12.4,r:3.14,fill:"#2ca9e1"})),Md||(Md=L.createElement("circle",{cx:77.95,cy:5.14,r:3.14,fill:"#b89ac8"})),Od||(Od=L.createElement("circle",{cx:77.95,cy:30.34,r:3.14,fill:"#e31e0c"})),Fd||(Fd=L.createElement("circle",{cx:80.97,cy:16.55,r:3.14,fill:"#f8ad39"})),Dd||(Dd=L.createElement("circle",{cx:62.96,cy:27.27,r:3.14,fill:"#3baa45"})),Nd||(Nd=L.createElement("circle",{cx:75.36,cy:48.67,r:3.14,fill:"#2ca9e1"})),qd||(qd=L.createElement("circle",{cx:76.11,cy:65.31,r:3.14,fill:"#3baa45"})),$d||($d=L.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"})),Ud||(Ud=L.createElement("path",{fill:"#074a67",d:"M67.75 251.08c0-4.65 10.13-72.65 10.13-72.65h2.8l-9.09 72.3Z"})),Bd||(Bd=L.createElement("ellipse",{cx:255.38,cy:103.18,fill:"#fff",rx:1.84,ry:1.77})),Wd||(Wd=L.createElement("ellipse",{cx:221.24,cy:94.75,fill:"#fff",rx:1.84,ry:1.77}))),Hd=e=>{const{closeModal:t}=e;return(0,L.createElement)(L.Fragment,null,(0,L.createElement)("div",{className:"yoast-wordproof-modal-image"},(0,L.createElement)(Kd,{class:"yoast-wordproof-modal-svg__success"})),(0,L.createElement)("p",null,(0,O.sprintf)(/* Translators: %s translates to the Post type in singular form */
(0,O.__)("Your %s is now protected via the blockchain!","wordpress-seo"),ss("current_post_type")),(0,L.createElement)("br",null),(0,M.createInterpolateElement)((0,O.sprintf)((0,O.__)(
/** translators:
   * %1$s and %2$s are replaced by opening and closing <b> tags.
   * %3$s translates to the Post type in singular form.
   */
"The %3$s will automatically be timestamped every time you %1$supdate%2$s or %1$spublish%2$s.","wordpress-seo"),"<b>","</b>",ss("current_post_type")),{b:(0,L.createElement)("b",null)})),(0,L.createElement)("div",{className:"yoast-wordproof-modal-action"},(0,L.createElement)(pa.NewButton,{variant:"primary",onClick:t},"Continue")))};Hd.propTypes={closeModal:E().func.isRequired};const Yd=Hd;var jd;function Vd(){return Vd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e},Vd.apply(this,arguments)}const Gd=e=>L.createElement("svg",Vd({xmlns:"http://www.w3.org/2000/svg",fill:"#fff",fillRule:"evenodd",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",viewBox:"0 0 752 247"},e),jd||(jd=L.createElement("g",{stroke:"none",className:"connection-assistant_svg__B"},L.createElement("path",{fill:"#f17523",d:"M307.671 13.343C314.3 6.76 322.367.552 332.022-.127c5.029-.88 10.204-.124 15.012 1.447 3.588 1.147 6.294 3.893 8.763 6.605 3.333-1.582 7.09-1.837 10.73-1.803 3.35-.13 6.796.842 9.52 2.803 4.045 3.932 7.322 8.847 8.678 14.367.711 3.808 1.084 7.888-.22 11.616.824 2.334 4.61 2.746 3.96 5.628-.706 2.373-2.616 4.209-4.356 5.898l-.61.543c-2.532.644-4.605 2.203-5.888 4.474-.322-1.92-2.644-1.864-3.955-2.842-5.977-3.813-10.734-9.52-13.356-16.119-1.266-3.435-2.768-6.938-2.475-10.684-2.983.661-6 1.86-8.068 4.198-2.977 2.887-4.452 6.831-6.819 10.164-1.746 2.334-1.825 5.453-3.56 7.786-1.118 1.7-3 2.599-4.587 3.774 1.378.305 2.898.373 4.073 1.243 1.113.944.673 2.898-.632 3.424-2.255.288-4.577-.26-6.803.305-2.825.898-4.994 3.023-7.011 5.09-.91 1.035-2.61-.22-2.441-1.418-.192-1.406.955-2.412 1.66-3.48-2.7.898-5.525 1.21-8.316 1.593-1.508 1.243-2.819 2.763-4.022 4.306-1.537-1.345-3.057-3.22-5.34-2.91 1.204 1.7 2.86 2.989 4.475 4.271.249 5.39 1.774 10.594 3.271 15.74.616 2.266 2.52 3.809 4.334 5.137 3.542 2.22 7.497 3.74 10.995 6.022 1.819 3.029 3.35 6.255 4.469 9.616.559 1.373 1.005 3.046 2.503 3.684 4.638 2.6 9.808 4 14.712 6.006 3.955-2.068 7.695-4.52 11.531-6.791.616-.463 1.503-.785 1.718-1.605 1.056-3.847 1.74-7.785 2.746-11.638.74-2.645 2.96-4.447 4.706-6.436 2.266-2.65 5.565-4.457 7-7.774.255-5.853.294-11.746-.621-17.554 1.294-1.633 2.508-3.328 3.797-4.96.05 3.101.536 6.163.983 9.226.26 3.66.35 7.339.712 10.988.067.746.242 1.498.683 2.114 2.334 3.045 7.08 3.785 10.311 1.762-1 3.289-3.932 5.362-6.226 7.707-.073.655.237 1.271.396 1.898 1.096 2.554 1.163 5.752-1.164 7.65.943 2.051 1.689 4.322 1.14 6.6-.208 1.463-1.536 2.287-2.604 3.118.175 2.079 1.04 4.26.181 6.294-1.113 1.842-3.266 2.599-5.175 3.328-.413 1.66-.769 3.457-2.04 4.706-1.034 1.18-2.723 1.153-4.13 1.492-1.13 2.248-2.537 4.655-4.96 5.678-2.125.548-4.25-.34-6.34-.673-1.525 1.6-3.101 3.385-5.373 3.86-2.39.796-4.712-.6-6.78-1.645-1.638 1.215-3.423 2.6-5.599 2.334-2.344.146-3.972-1.633-5.53-3.074-2.12 1.08-4.566 2-6.945 1.198-2.209-.537-3.356-2.656-4.604-4.35-2.825-.029-5.978-.029-8.226-2.006-1.695-1.322-2.362-3.424-3.034-5.368-1.916-.305-4.142-.367-5.526-1.932-1.35-1.605-2.31-3.554-2.83-5.588-.566-2.305.638-4.497 1.028-6.723-.95-1.085-2.43-1.565-3.582-2.418-3.136-1.577-3.548-5.6-2.424-8.571-1.565-1.107-2.836-2.548-4.22-3.853 3.463-.023 7.056-1.904 8.028-5.424.847-2.21.802-4.616.599-6.938-.43-4.531-1.509-8.967-2.435-13.413-.464-2.074-3.023-2.011-4.447-3.136-2.265-1.644-4.593-4.119-4.102-7.147 1.125-1.881 3.102-3.266 3.47-5.56-2.792-4.276-1.882-9.565-.927-14.26 1.44-5.215 3.83-10.328 7.768-14.13zm22.78 19.356c-2.655 2.78-4.39 6.238-6.282 9.543 2.271-.904 3.955-2.808 5.661-4.492 3.656-3.966 7.775-8.073 9.006-13.509-3.254 2.35-5.746 5.475-8.384 8.458zm3.74 8.317c-1.027 1.622-2.383 2.989-3.423 4.599 3.955-2.147 7.057-6.271 7.373-10.82-1.61 1.882-2.469 4.25-3.95 6.221zm18.42 7.673c4.3-2.515 10.073-3.125 14.322-.136 1.492.588 2.13 2.848.605 3.774-1.396 1.102-2.74-.424-4.074-.797-3.864-1.028-7.786.543-11.108 2.435-.853-.457-2.045-1.017-1.994-2.163-.215-1.498 1.232-2.34 2.249-3.113z"}),L.createElement("path",{fill:"#fccda3",d:"M349.757 26.004c2.068-2.339 5.085-3.537 8.068-4.198-.293 3.746 1.21 7.25 2.475 10.684 2.622 6.6 7.379 12.306 13.356 16.12 1.311.977 3.633.92 3.955 2.841-2.084 2.876-4.356 5.622-6.361 8.554-1.899.644-3.809 1.266-5.78 1.656-1.402-4.707-7.797-6.023-11.47-3.193-.966.87-1.593 2.034-2.18 3.176-1.424-1.3-3.006-2.86-5.108-2.667-2.994.21-5.362 2.44-7.057 4.74-.796-2.859-3.43-5.13-6.452-5.09-3.893-.435-7.384 2.79-8.045 6.503-1.842.079-3.701.316-5.537.107-3.012-1.808-5.684-4.147-8.322-6.446 1.203-1.543 2.514-3.063 4.022-4.306 2.791-.384 5.616-.695 8.317-1.593-.706 1.068-1.853 2.074-1.661 3.48-.17 1.198 1.53 2.452 2.44 1.418 2.018-2.067 4.187-4.192 7.012-5.09 2.226-.565 4.548-.017 6.803-.305 1.305-.526 1.745-2.48.632-3.424-1.175-.87-2.695-.938-4.073-1.243 1.587-1.175 3.469-2.073 4.588-3.774 1.734-2.333 1.813-5.452 3.559-7.786 2.367-3.333 3.842-7.277 6.82-10.164zm2.853 22.685c-1.017.774-2.463 1.615-2.248 3.113-.051 1.147 1.141 1.706 1.994 2.164 3.322-1.893 7.243-3.464 11.108-2.435 1.333.372 2.678 1.898 4.074.796 1.525-.926.887-3.186-.605-3.774-4.249-2.989-10.023-2.379-14.322.136zm-22.158-15.99c2.638-2.983 5.13-6.107 8.384-8.458-1.232 5.436-5.35 9.543-9.006 13.51-1.706 1.683-3.39 3.587-5.661 4.491 1.893-3.305 3.627-6.763 6.283-9.543zm3.74 8.317c1.48-1.972 2.339-4.34 3.95-6.22-.317 4.548-3.419 8.672-7.374 10.819 1.04-1.61 2.396-2.978 3.424-4.599zm49.307 5.96.61-.542c1.678-.53 3.339.921 4.09 2.34 2.656 4.208 3.39 9.44 2.367 14.271-1.04 3.509-2.638 7.503-6.508 8.616l-.085.266c-.44-.616-.616-1.368-.684-2.113-.361-3.65-.452-7.328-.711-10.99-.447-3.062-.933-6.124-.984-9.226a37.81 37.81 0 0 0 1.905-2.621zm-84.11 8.357c.542-.526 1.203-1.622 2.073-.893 1.424 1.125 3.983 1.062 4.447 3.136.926 4.446 2.005 8.882 2.435 13.413.203 2.322.248 4.729-.6 6.938-1.49-.243-3.044-.548-4.203-1.582-4.497-3.695-6.599-9.74-6.119-15.464.243-1.932.532-4.096 1.967-5.548zm74.019 5.085 4.39-5.86c.915 5.809.876 11.702.621 17.555-1.435 3.317-4.734 5.124-7 7.774-1.746 1.989-3.966 3.791-4.706 6.436-1.006 3.853-1.69 7.79-2.746 11.638-.215.82-1.102 1.142-1.718 1.605-3.836 2.271-7.576 4.723-11.531 6.791-4.904-2.006-10.074-3.407-14.712-6.006-1.498-.638-1.944-2.31-2.503-3.684-1.119-3.361-2.65-6.587-4.47-9.616-3.497-2.282-7.452-3.802-10.994-6.022-1.814-1.328-3.718-2.87-4.334-5.136-1.497-5.147-3.022-10.35-3.27-15.74 3.135 2.203 5.559 5.44 9.112 7.016 1.882.108 3.763-.056 5.645-.079.135 3.147 1.943 6.334 4.966 7.498 2.085.712 4.723.96 6.492-.627 2.322-1.786 3.164-4.78 3.435-7.577 1.768-2.05 3.3-4.723 6.147-5.367 2.35-.452 3.825 1.808 5.158 3.339-.17 2.4.678 4.774 2.187 6.627 2.83 3.656 9.644 2.729 11.283-1.633.841-1.74.66-3.717.683-5.593 2.181-.548 4.362-1.13 6.475-1.921.661-.215.96-.921 1.39-1.418zm-26.12 21.47c-2.717.372-5.231-1.865-7.96-1.244 2.011 1.955 4.678 3.424 7.401 4.029 3.158-.887 5.927-3 7.904-5.582-2.69.079-4.938 1.796-7.345 2.796zm13.577 1.423c-6.751 2.22-13.3 5.175-20.306 6.526.678.808 1.74.955 2.746.78 5.515-.78 10.65-3.029 15.876-4.831 1.69-.684 3.48-1.424 4.65-2.893-1.005.034-2.017.085-2.966.418zm43.905 73.37c2.842-.673 6.017-1.232 8.746.146 2.498 1.385 5.147 2.577 7.323 4.464 2.638 2.316 4.655 5.232 6.514 8.192 1.57 2.65 2.147 5.73 2.316 8.769.305 1.56.3 3.158.085 4.734-.503 3.752-.361 7.814-2.249 11.21-2.18 2.418-5.243 3.768-7.802 5.729-2.729 2.011-6.407 1.457-9.243-.023-2.497 2.56-7.198 3.983-10.046 1.226-2.09.3-4.096 1.407-6.248.96-1.718-.084-3.085-1.327-4.142-2.57-1.062-1.418-.232-3.181-.028-4.729 1.164-7.707 2.04-15.492 4.096-23.029-4.972.678-10.238 1.09-15.085-.458-1.746-.61-3.82-1.248-4.43-3.22-1.237-2.074-.395-5.136 2.09-5.752 3.905-.214 7.747 1.814 11.657 1.096 5.316-2.599 10.695-5.226 16.446-6.746zm-95.906 18.96c3.344-1.18 6.966-2.457 10.525-1.44 2.272 1.395 4.266 3.277 5.86 5.412 3.485 4.701 6.717 9.588 9.508 14.741.802 1.48 2.04 3.147 1.215 4.904-.746 2.068-3.147 2.356-5.029 2.622-1.938.339-3.345-1.322-4.446-2.656-3.627-4.887-6.232-10.672-10.921-14.684 2.463 4.226 4.7 8.594 6.616 13.102 1.005 2.385 1.231 4.99 2.067 7.419.673 1.542.385 3.598-1.27 4.372-2.357.61-4.837 1.097-7.278.78-1.215-.135-2.175-1.05-3.373-1.22-1.542.424-2.96 1.237-4.542 1.537-2.588.632-5.277-.13-7.87.497-2.882.678-5.877.101-8.594-.927-3.17-1.265-5.345-4.113-6.848-7.073a20.88 20.88 0 0 1-1.565-3.955 31.05 31.05 0 0 1-.367-8.916c.209-2.158 2.215-3.322 3.893-4.305 7.367-3.627 14.418-8.063 22.419-10.21z"}),L.createElement("path",{fill:"#847972",d:"M377.611 51.451c1.283-2.27 3.356-3.83 5.888-4.474l-1.904 2.621-3.797 4.96-4.39 5.86c-.43.497-.73 1.203-1.39 1.418-2.113.79-4.294 1.373-6.475 1.92l-.073-2.095c1.972-.39 3.881-1.012 5.78-1.656 2.005-2.932 4.277-5.678 6.361-8.554zm-71.652 4.43c2.283-.31 3.803 1.565 5.34 2.91 2.638 2.3 5.31 4.638 8.322 6.446 1.836.21 3.695-.028 5.537-.107l.034 1.96c-1.882.023-3.763.187-5.645.08-3.553-1.577-5.977-4.814-9.113-7.018-1.616-1.282-3.271-2.57-4.475-4.271zm33.696 7.836c1.695-2.3 4.063-4.53 7.057-4.74 2.102-.192 3.684 1.367 5.108 2.667l-.43 2.712c-1.333-1.531-2.808-3.791-5.158-3.34-2.848.645-4.379 3.317-6.147 5.368l-.43-2.667z"}),L.createElement("path",{d:"M354 58.469c3.673-2.831 10.069-1.515 11.47 3.192l.073 2.096c-.022 1.876.158 3.853-.683 5.593-1.639 4.362-8.453 5.289-11.283 1.633-1.509-1.853-2.356-4.226-2.187-6.627.096-.91.243-1.814.43-2.712.587-1.141 1.214-2.305 2.18-3.175zm5.181 5.887c-2.565 1.294-3.452 5.328-1.367 7.424 2.656 1.91 5.865-1.362 5.464-4.142.542-2.328-2.046-3.96-4.097-3.282zm-34.023.774c.66-3.712 4.152-6.938 8.045-6.503 3.023-.04 5.656 2.231 6.452 5.09.164.882.305 1.774.43 2.667-.272 2.797-1.113 5.791-3.435 7.577-1.769 1.587-4.407 1.338-6.492.627-3.023-1.164-4.83-4.35-4.966-7.498l-.034-1.96zm7.627 1.525c-3.034 1.486-2.842 7.368.955 7.644 3.424.006 4.977-4.508 3.345-7.141-1.074-1.141-2.984-1.401-4.3-.503zm27.77-.43c1.316-.615 1.779 2.153.316 1.848-.933.125-1.215-1.672-.317-1.847zm-25.889 2.26c.758-1.344 2.515.61 1.34 1.317-.82.95-1.712-.565-1.34-1.316z"}),L.createElement("path",{fill:"#3e2723",d:"M359.181 64.356c2.051-.678 4.639.955 4.097 3.282.4 2.78-2.808 6.051-5.464 4.142-2.085-2.096-1.198-6.13 1.367-7.424zm1.373 1.87c-.898.175-.615 1.972.317 1.847 1.463.305 1-2.463-.317-1.847zm-27.769.43c1.316-.9 3.226-.64 4.3.502 1.633 2.633.079 7.147-3.345 7.141-3.797-.276-3.989-6.158-.955-7.644zm1.881 1.83c-.372.751.52 2.265 1.34 1.316 1.175-.706-.582-2.661-1.34-1.316zm337.48 82.296 79.115-9.526v4.74l-58.228 7.097-81.867 9.379L505.74 175.94c-10.77 1.684-21.623 2.718-32.437 4.023l-21.203 1.723c-7.447.469-14.877 1.401-22.346 1.3.215-1.577.22-3.176-.085-4.735 6.26.005 12.492-.616 18.735-1.068 11.984-1.006 24.024-1.605 35.928-3.407 14.955-1.3 29.724-4.102 44.606-5.994 47.645-6.385 95.432-11.656 143.208-17.001zm-299.213 21.696 6.074-1.176c4.848 1.549 10.113 1.136 15.085.458-2.056 7.537-2.932 15.323-4.096 23.029-3.695.814-7.424 1.463-11.13 2.226-.441-1.667-.718-3.379-1.238-5.023-1.938-.293-3.994.769-6.011.803-1.271-.034-3.328.672-3.91-.899-.621-.875.26-1.887 1.017-2.3 2.463-1.293 5.311-1.446 7.893-2.417l-1.446-5.854c-3.074.39-6.08 1.543-9.204 1.305-1.373-.491-1.525-2.678-.232-3.327 2.582-1.294 5.52-1.605 8.238-2.56l-1.04-4.265zm-47.685 7.135 15.334-2.005c2.164 7.717 3.509 15.639 4.684 23.56-6.916 1.69-13.955 2.915-21.007 3.892-.836-2.429-1.062-5.034-2.067-7.418-1.916-4.508-4.153-8.876-6.616-13.102 4.689 4.012 7.294 9.797 10.92 14.684 1.102 1.334 2.51 2.995 4.447 2.656 1.882-.266 4.283-.554 5.029-2.622.824-1.757-.413-3.424-1.215-4.904-2.791-5.153-6.023-10.04-9.509-14.74zM249.545 200.7c7.695-.706 15.447-.413 23.142-1.153 3.402-.3 6.814-.53 10.232-.474.379 1.367.915 2.689 1.565 3.955-3.361.118-6.723.31-10.062.706-8.43 1.118-16.955 1.079-25.425 1.785-12.045.989-24.153.554-36.204 1.458l-1.023.424c-.723-.356-1.525-.39-2.31-.328-10.165.763-20.363.435-30.55.593l-75.685.011c-27.877-.101-55.754.266-83.624-.305-6.701-.712-13.464-1.135-20.1-2.339v-2.904l18.964.69 25.99.112 140.653-.062c8.809-.005 17.634-.079 26.425-.52 12.639-1.163 25.368-.548 38.012-1.65z"}),L.createElement("path",{fill:"#dba378",d:"M347.288 81.887c2.407-1 4.656-2.717 7.345-2.796-1.977 2.582-4.746 4.695-7.904 5.582-2.723-.605-5.39-2.074-7.401-4.029 2.729-.621 5.243 1.616 7.96 1.243zm13.577 1.424c.95-.333 1.96-.384 2.966-.418-1.17 1.469-2.96 2.21-4.65 2.893-5.226 1.802-10.362 4.05-15.876 4.83-1.005.175-2.068.029-2.746-.78 7.006-1.35 13.554-4.305 20.306-6.525z"}),L.createElement("path",{fill:"#bf360c",d:"M388.453 83.294c10.408.7 20.865 1.057 31.16 2.893 14.006 2.57 27.938 5.548 41.797 8.842 4.837 1.073 9.47 2.864 14.159 4.435 3.277 1.136 6.633 2.074 9.757 3.616 5.537 2.678 11.684 4.31 16.526 8.26 5.61 4.215 9.52 10.385 11.944 16.905 1.859 6.474 1.367 13.43-.265 19.893-.701 4.198-2.684 8.17-5.594 11.271-3.684 3.56-8.107 6.227-12.373 9.012-3.446 2.356-7.43 3.695-11.232 5.356-11.904 1.802-23.944 2.401-35.928 3.407-6.243.452-12.475 1.073-18.735 1.068-.17-3.04-.745-6.12-2.316-8.769-1.859-2.96-3.876-5.876-6.514-8.192-2.176-1.887-4.825-3.08-7.323-4.464-2.729-1.378-5.904-.819-8.746-.146-5.751 1.52-11.13 4.147-16.446 6.745-3.91.718-7.752-1.31-11.656-1.096-2.486.616-3.328 3.678-2.09 5.752.61 1.972 2.683 2.61 4.429 3.22-2.045.294-4.063.74-6.074 1.176.367 1.412.712 2.836 1.04 4.265-2.718.955-5.656 1.266-8.238 2.56-1.294.65-1.141 2.836.232 3.327 3.124.238 6.13-.915 9.204-1.305.525 1.938.988 3.893 1.446 5.854-2.582.971-5.43 1.124-7.893 2.418-.757.412-1.638 1.424-1.017 2.3.582 1.57 2.639.864 3.91.898 2.017-.034 4.073-1.096 6.011-.803.52 1.644.797 3.356 1.238 5.023l11.13-2.226c-.204 1.548-1.034 3.31.028 4.729 1.057 1.243 2.424 2.486 4.142 2.57 2.152.447 4.158-.66 6.248-.96 2.848 2.757 7.549 1.334 10.046-1.226 2.836 1.48 6.514 2.034 9.243.023 2.56-1.96 5.622-3.311 7.802-5.73 1.888-3.395 1.746-7.457 2.25-11.209 7.468.102 14.898-.83 22.344-1.3.35 7.77 1.153 15.504 1.554 23.262-.028 4.14.757 8.226.785 12.361.187 9.718-.073 19.436-.05 29.148-65.155-.028-130.31.006-195.464-.017l.95-16.633c.112-5.08.05-10.158.073-15.238-6.588 1.707-13.487 2.034-20.25 1.498-9.808-.605-19.616-3.35-27.927-8.667l1.023-.424c12.051-.904 24.159-.47 36.204-1.458 8.47-.706 16.995-.667 25.425-1.785 3.339-.396 6.7-.588 10.062-.706 1.503 2.96 3.678 5.808 6.848 7.073 2.717 1.028 5.712 1.605 8.593.927 2.594-.627 5.283.135 7.87-.497 1.583-.3 3-1.113 4.543-1.537 1.198.17 2.158 1.085 3.373 1.22 2.44.317 4.921-.17 7.277-.78 1.656-.774 1.944-2.83 1.271-4.372 7.052-.978 14.091-2.204 21.007-3.893-1.175-7.921-2.52-15.843-4.684-23.56l-15.334 2.005c-1.593-2.135-3.587-4.017-5.859-5.412-3.56-1.017-7.18.26-10.525 1.44-8 2.147-15.052 6.583-22.42 10.21-1.677.983-3.683 2.147-3.892 4.305a31.05 31.05 0 0 0 .367 8.916c-3.418-.057-6.83.175-10.232.474-7.695.74-15.447.447-23.142 1.153-12.644 1.102-25.373.486-38.012 1.65a63.323 63.323 0 0 0-5.48-.057c-4.289-4.35-7.035-10.006-8.283-15.95-.497-2.904.39-5.762 1.005-8.576 1.012-5.17 3.712-9.803 6.628-14.12 3.18-4.677 7.492-8.384 11.424-12.395 2.237-2.622 4.57-5.204 7.39-7.22 4.548-3.6 9.226-7.03 13.983-10.357 10.04-7.26 20.696-13.593 31.075-20.345 4.712-3.266 10.085-5.345 15.153-7.972 5.034-2.379 9.927-5.124 15.266-6.786a44.715 44.715 0 0 0 6.667-2.796c1.152.853 2.632 1.333 3.582 2.418-.39 2.226-1.594 4.418-1.029 6.723.52 2.034 1.48 3.983 2.83 5.588 1.385 1.565 3.611 1.627 5.527 1.932.672 1.944 1.339 4.046 3.034 5.368 2.248 1.977 5.4 1.977 8.226 2.005 1.248 1.695 2.395 3.814 4.604 4.35 2.379.803 4.825-.118 6.944-1.197 1.56 1.44 3.187 3.22 5.531 3.074 2.176.265 3.96-1.12 5.6-2.334 2.067 1.045 4.39 2.44 6.78 1.644 2.27-.474 3.847-2.26 5.372-3.859 2.09.334 4.215 1.22 6.34.673 2.423-1.023 3.83-3.43 4.96-5.678 1.407-.34 3.096-.311 4.13-1.492 1.271-1.249 1.627-3.045 2.04-4.706 1.91-.73 4.062-1.486 5.175-3.328.859-2.034-.006-4.215-.18-6.294 1.067-.83 2.395-1.656 2.604-3.119.548-2.277-.198-4.548-1.141-6.599 2.327-1.898 2.26-5.096 1.163-7.65z"})))),Zd=e=>{const{closeModal:t}=e,s=(0,M.useCallback)((e=>{t(),e.preventDefault(),ns()}));return(0,L.createElement)("div",null,(0,L.createElement)("div",{className:"yoast-wordproof-modal-image"},(0,L.createElement)(Gd,{className:"yoast-wordproof-modal-svg__webhook-failed"})),(0,L.createElement)("div",null,(0,O.__)("There was a connection problem. This could be because your third party connections are blocked.","wordpress-seo"),(0,L.createElement)("br",null),Fn((0,O.sprintf)(
// translators: %1$s and %2$s are replaced by opening and closing <a> tags.
(0,O.__)("Find possible solutions in this %1$sArticle%2$s.","wordpress-seo"),"<a>","</a>"),"https://help.wordproof.com/en/articles/4823201-how-do-i-whitelist-wordproof-in-cloudflare")),(0,L.createElement)("div",{className:"yoast-wordproof-modal-action"},(0,L.createElement)(pa.NewButton,{variant:"secondary",onClick:s},(0,O.__)("Try again","wordpress-seo"))),(0,L.createElement)("div",null,Fn((0,O.sprintf)(
// translators: %1$s and %2$s are replaced by opening and closing <a> tags. %3$s expands to WordProof.
(0,O.__)("Not working? %1$sContact %3$s support%2$s.","wordpress-seo"),"<a>","</a>","WordProof"),"https://help.wordproof.com")))};Zd.propTypes={closeModal:E().func.isRequired};const Qd=Zd,Jd=()=>{const[e,t]=(0,M.useState)(null),s=(0,M.useCallback)((()=>{t("oauth:failed")})),a=(0,M.useCallback)((()=>{t("webhook:failed")})),r=(0,M.useCallback)((()=>{t("oauth:success")})),n=(0,M.useCallback)((()=>{t(null)}));(0,M.useEffect)((()=>(window.addEventListener("wordproof:oauth:success",r,!1),window.addEventListener("wordproof:oauth:failed",s,!1),window.addEventListener("wordproof:webhook:failed",a,!1),()=>{window.removeEventListener("wordproof:oauth:success",r,!1),window.removeEventListener("wordproof:oauth:failed",s,!1),window.removeEventListener("wordproof:webhook:failed",a,!1)})),[]);const o=(0,M.useCallback)((()=>{switch(e){case"webhook:failed":return(0,O.__)("Connection failed","wordpress-seo");case"oauth:success":return(0,O.__)("Connected to WordProof","wordpress-seo");default:return(0,O.__)("WordProof authentication","wordpress-seo")}}));return(0,L.createElement)(L.Fragment,null,e&&(0,L.createElement)(Ia,{onRequestClose:n,additionalClassName:"yoast-wordproof-modal",title:o()},"oauth:success"===e&&(0,L.createElement)(Yd,{closeModal:n}),"oauth:failed"===e&&(0,L.createElement)(Vc,null),"webhook:failed"===e&&(0,L.createElement)(Qd,{closeModal:n})))},Xd=e=>(0,L.createElement)(xa,{title:(0,O.__)("Reach a wider audience","wordpress-seo"),description:(0,O.__)("Get help optimizing for up to 5 related keyphrases. This helps you reach a wider audience and get more traffic.","wordpress-seo"),benefitsTitle:/* translators: %s expands to 'Yoast SEO Premium'. */
(0,O.sprintf)("%s also gives you:","Yoast SEO Premium"),benefits:oa(),upsellButtonText:(0,O.sprintf)(/* translators: %s expands to 'Yoast SEO Premium'. */
(0,O.__)("Unlock with %s","wordpress-seo"),"Yoast SEO Premium"),upsellButton:{href:e.buyLink,className:"yoast-button-upsell",rel:null,"data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2","data-action":"load-nfd-ctb"},upsellButtonLabel:(0,O.__)("1 year free support and updates included!","wordpress-seo")});Xd.propTypes={buyLink:E().string.isRequired};const ep=Xd,tp=()=>{const[e,,,t,s]=(0,F.useToggleState)(!1),a=(0,M.useContext)(Zs.LocationContext),{locationContext:r}=(0,Zs.useRootContext)(),n=(0,F.useSvgAria)(),o=wpseoAdminL10n["sidebar"===a.toLowerCase()?"shortlinks.upsell.sidebar.additional_button":"shortlinks.upsell.metabox.additional_button"];return(0,L.createElement)(L.Fragment,null,e&&(0,L.createElement)(Ia,{title:(0,O.__)("Add related keyphrases","wordpress-seo"),onRequestClose:s,additionalClassName:"",id:"yoast-additional-keyphrases-modal",className:`${Ra} yoast-gutenberg-modal__box yoast-gutenberg-modal__no-padding`,shouldCloseOnClickOutside:!0},(0,L.createElement)(Sa,null,(0,L.createElement)(ep,{buyLink:(0,_e.addQueryArgs)(o,{context:r})}))),"sidebar"===a&&(0,L.createElement)(ma,{id:"yoast-additional-keyphrase-modal-open-button",title:(0,O.__)("Add related keyphrase","wordpress-seo"),prefixIcon:{icon:"plus",color:Gn.colors.$color_grey_medium_dark},onClick:t},(0,L.createElement)("div",{className:"yst-root"},(0,L.createElement)(F.Badge,{size:"small",variant:"upsell"},(0,L.createElement)(na,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...n})))),"metabox"===a&&(0,L.createElement)("div",{className:"yst-root"},(0,L.createElement)(da,{id:"yoast-additional-keyphrase-metabox-modal-open-button",onClick:t},(0,L.createElement)(pa.SvgIcon,{icon:"plus",color:Gn.colors.$color_grey_medium_dark}),(0,L.createElement)(da.Text,null,(0,O.__)("Add related keyphrase","wordpress-seo")),(0,L.createElement)(F.Badge,{size:"small",variant:"upsell"},(0,L.createElement)(na,{className:"yst-w-2.5 yst-h-2.5 yst-mr-1 yst-shrink-0",...n}),(0,L.createElement)("span",null,"Premium")))))};function sp({isLoading:e,onLoad:t,settings:s}){const a=(({webinarIntroUrl:e})=>{const{shouldShow:t}=Wa(),s=(e=>{for(const t of e)if(null!=t&&t.getIsEligible())return t;return null})([{getIsEligible:()=>t,component:Ka},{getIsEligible:zr,component:()=>(0,L.createElement)(Br,{hasIcon:!1,image:null,url:e})},{getIsEligible:Wr,component:()=>(0,L.createElement)($a,{hasIcon:!1})},{getIsEligible:()=>!0,component:()=>(0,L.createElement)(qa,{hasIcon:!1})}]);return(null==s?void 0:s.component)||null})({webinarIntroUrl:(0,Ee.get)(window,"wpseoScriptData.webinarIntroElementorUrl","https://yoa.st/webinar-intro-elementor")});return(0,M.useEffect)((()=>{setTimeout((()=>{e&&t()}))})),e?null:(0,L.createElement)(M.Fragment,null,as()&&(0,L.createElement)(Jd,null),(0,L.createElement)(A.Fill,{name:"YoastElementor"},(0,L.createElement)(In,{renderPriority:1},(0,L.createElement)(Rn,null),a&&(0,L.createElement)(a,null)),s.isKeywordAnalysisActive&&(0,L.createElement)(In,{renderPriority:8},(0,L.createElement)(Pa.KeywordInput,{isSEMrushIntegrationActive:s.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&(0,L.createElement)(A.Fill,{name:"YoastRelatedKeyphrases"},(0,L.createElement)(ol,null))),s.isKeywordAnalysisActive&&(0,L.createElement)(In,{renderPriority:10},(0,L.createElement)(M.Fragment,null,(0,L.createElement)(Pa.SeoAnalysis,{shouldUpsell:s.shouldUpsell,shouldUpsellWordFormRecognition:s.isWordFormRecognitionActive,shouldUpsellHighlighting:s.shouldUpsell}),s.shouldUpsell&&(0,L.createElement)(di,null))),s.isContentAnalysisActive&&(0,L.createElement)(In,{renderPriority:15},(0,L.createElement)(Pa.ReadabilityAnalysis,{shouldUpsell:s.shouldUpsell,shouldUpsellHighlighting:s.shouldUpsell})),s.isInclusiveLanguageAnalysisActive&&(0,L.createElement)(In,{renderPriority:19},(0,L.createElement)(Pa.InclusiveLanguageAnalysis,{shouldUpsellHighlighting:s.shouldUpsell})),s.isKeywordAnalysisActive&&(0,L.createElement)(In,{key:"additional-keywords-upsell",renderPriority:22},s.shouldUpsell&&(0,L.createElement)(tp,null)),s.isKeywordAnalysisActive&&s.isWincherIntegrationActive&&(0,L.createElement)(In,{key:"wincher-seo-performance",renderPriority:23},(0,L.createElement)(jc,{location:"sidebar",shouldCloseOnClickOutside:!1})),s.shouldUpsell&&(0,L.createElement)(In,{key:"internal-linking-suggestions-upsell",renderPriority:24},(0,L.createElement)(La,null)),(0,L.createElement)(In,{renderPriority:25},(0,L.createElement)(zn,null)),(s.useOpenGraphData||s.useTwitterData)&&(0,L.createElement)(In,{key:"social-appearance",renderPriority:26},(0,L.createElement)(ni,{useOpenGraphData:s.useOpenGraphData,useTwitterData:s.useTwitterData})),s.displaySchemaSettings&&(0,L.createElement)(In,{renderPriority:28},(0,L.createElement)(ui,{title:(0,O.__)("Schema","wordpress-seo")},(0,L.createElement)(Si,null))),s.displayAdvancedTab&&(0,L.createElement)(In,{renderPriority:29},(0,L.createElement)(ui,{title:(0,O.__)("Advanced","wordpress-seo"),buttonId:"yoast-seo-elementor-advanced-button"},(0,L.createElement)($i,{location:"sidebar"}))),s.isCornerstoneActive&&(0,L.createElement)(In,{renderPriority:30},(0,L.createElement)(Ma,null)),s.isInsightsEnabled&&(0,L.createElement)(In,{renderPriority:32},(0,L.createElement)(Tn,{location:"elementor"}))))}sp.propTypes={isLoading:E().bool.isRequired,onLoad:E().func.isRequired,settings:E().object.isRequired};const ap=(0,ra.compose)([(0,n.withSelect)((e=>{const{getPreferences:t,getSnippetEditorIsLoading:s}=e("yoast-seo/editor");return{settings:t(),isLoading:s()}})),(0,n.withDispatch)((e=>{const{loadSnippetEditorData:t}=e("yoast-seo/editor");return{onLoad:t}}))])(sp);let rp,np=!1;function op(e){e.oldValue=e.value}function ip(){rp.forEach((e=>op(e)))}const lp=(0,Ee.debounce)((function(){let e;np&&(
/* Translators: %1$s translates to the Post Label in singular form */
e=(0,O.sprintf)((0,O.__)("Unfortunately we cannot save changes to your SEO settings while you are working on a draft of an already-published %1$s. If you want to save your SEO changes, make sure to click 'Update', or wait to make your SEO changes until you are ready to update the %1$s.","wordpress-seo"),window.wpseoAdminL10n.postTypeNameSingular.toLowerCase())),"draft"===window.elementor.settings.page.model.get("post_status")&&(e=""),(0,n.dispatch)("yoast-seo/editor").setWarningMessage(e)}),500,{trailing:!0});function cp(e){var t;(function(e){return["yoast_wpseo_linkdex","yoast_wpseo_content_score","yoast_wpseo_inclusive_language_score","yoast_wpseo_words_for_linking","yoast_wpseo_estimated-reading-time-minutes"].includes(e.name)})(e)||(t=e.name,["yoast_wpseo_focuskeywords","hidden_wpseo_focuskeywords"].includes(t)&&function(e,t){if(t===e)return!0;if(""===t||""===e)return!1;const s=JSON.parse(t),a=JSON.parse(e);return s.length===a.length&&s.every(((e,t)=>e.keyword===a[t].keyword))}(e.oldValue,e.value)||e.value!==e.oldValue&&(np=!0,lp(),window.$e.internal("document/save/set-is-modified",{status:!0}),op(e)))}function dp(e){np=!1;const t=jQuery(e).serializeArray().reduce(((e,{name:t,value:s})=>(e[t]=s,e)),{});jQuery.post(e.getAttribute("action"),t,(({success:e,data:s},a,r)=>{e?((0,o.doAction)("yoast.elementor.save.success",r),s.slug&&s.slug!==t.slug&&(0,n.dispatch)("yoast-seo/editor").updateData({slug:s.slug}),ip(),lp()):np=!0}))}function pp(){const e={locationContext:"elementor-sidebar"};setTimeout((()=>{!function(e,t){const s=pt();ea=(0,M.createRef)();const a={isRtl:s.isRtl};(0,M.render)((0,L.createElement)(Js,{theme:a,location:"sidebar"},(0,L.createElement)(A.SlotFillProvider,null,(0,L.createElement)(M.Fragment,null,t,(0,L.createElement)(ta,{ref:ea})))),document.getElementById("elementor-panel-page-settings-controls")),Xs.forEach((e=>{ea.current.registerComponent(e.key,e.Component)}))}(0,(0,L.createElement)(Zs.Root,{context:e},(0,L.createElement)(Ks.StyleSheetManager,{target:document.getElementById("elementor-panel-inner")},(0,L.createElement)("div",{className:"yoast yoast-elementor-panel__fills"},(0,L.createElement)(aa,null),(0,L.createElement)(ap,null)))))}),200)}function up(){window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=sa,window.elementor.settings.page.model.on("change",(e=>{e.changed&&e.changed.post_status&&lp()}));const e=dp.bind(null,document.getElementById("yoast-form"));$e.hooks.registerDataAfter(new js("document/save/save","yoast-seo-save",(()=>{window.elementor.config.document.id===window.elementor.config.document.revisions.current_id&&e()}))),window.elementor.modules.layouts.panel.pages.menu.Menu.addItem({name:"yoast",icon:"yoast yoast-element-menu-icon",title:"Yoast SEO",type:"page",callback:()=>{try{window.$e.route("panel/page-settings/yoast-tab")}catch(e){window.$e.route("panel/page-settings/settings"),window.$e.route("panel/page-settings/yoast-tab")}pp()}},"more"),jQuery(document).on("click",'[data-tab="yoast-tab"]:not(.elementor-active)',pp).on("keyup",'[data-tab="yoast-tab"]:not(.elementor-active)',(e=>{13!==e.keyCode&&32!==e.keyCode||e.currentTarget.click()})),rp=document.querySelectorAll("input[name^='yoast']"),ip(),setInterval((()=>rp.forEach(cp)),500)}const mp=()=>{const{getContentLocale:e}=(0,n.select)("yoast-seo/editor"),t=((...e)=>()=>e.map((e=>e())))(e,Ws),s=(()=>{const{setEstimatedReadingTime:e,setFleschReadingEase:t,setTextLength:s}=(0,n.dispatch)("yoast-seo/editor"),a=(0,Ee.get)(window,"YoastSEO.analysis.worker.runResearch",Ee.noop);return()=>{const r=lt.Paper.parse(Ws());a("readingTime",r).then((t=>e(t.result))),a("getFleschReadingScore",r).then((e=>{e.result&&t(e.result)})),a("wordCountInText",r).then((e=>s(e.result)))}})();return setTimeout(s,1500),((e,t)=>{let s=e();return()=>{const a=e();(0,Ee.isEqual)(a,s)||(s=a,t((0,Ee.clone)(a)))}})(t,s)},hp={content:"",title:"",excerpt:"",slug:"",imageUrl:""},gp="yoastmark";function yp(e){const t=window.elementor.settings.page.model.get("post_featured_image"),s=(0,Ee.get)(t,"url","");return""===s?function(e){const t=lt.languageProcessing.imageInText(e);if(0===t.length)return"";const s=jQuery.parseHTML(t.join(""));for(const e of s)if(e.src)return e.src;return""}(e):s}function fp(){window.elementor.documents.getCurrent().$element.find(".elementor-widget-container").each(((e,t)=>{-1!==t.innerHTML.indexOf("<"+gp)&&(t.innerHTML=lt.markers.removeMarks(t.innerHTML))})),(0,n.dispatch)("yoast-seo/editor").setActiveMarker(null),(0,n.dispatch)("yoast-seo/editor").setMarkerPauseStatus(!1),window.YoastSEO.analysis.applyMarks(new lt.Paper("",{}),[])}const bp=(0,Ee.debounce)((function(){const e=window.elementor.documents.getCurrent();if(!["wp-post","wp-page"].includes(e.config.type))return;if((0,n.select)("yoast-seo/editor").getActiveMarker())return;const t=function(e){const t=function(e){const t=[];return e.$element.find(".elementor-widget-container").each(((e,s)=>{const a=s.innerHTML.replace(/[\n\t]/g,"").trim();t.push(a)})),t.join("")}(e);return{content:t,title:window.elementor.settings.page.model.get("post_title"),excerpt:window.elementor.settings.page.model.get("post_excerpt")||"",imageUrl:yp(t),status:window.elementor.settings.page.model.get("post_status")}}(e);t.content!==hp.content&&(hp.content=t.content,(0,n.dispatch)("yoast-seo/editor").setEditorDataContent(hp.content)),t.title!==hp.title&&(hp.title=t.title,(0,n.dispatch)("yoast-seo/editor").setEditorDataTitle(hp.title),"draft"!==t.status&&"auto-draft"!==t.status||(0,n.dispatch)("yoast-seo/editor").updateData({slug:(0,_e.cleanForSlug)(hp.title)})),t.excerpt!==hp.excerpt&&(hp.excerpt=t.excerpt,(0,n.dispatch)("yoast-seo/editor").setEditorDataExcerpt(hp.excerpt)),t.imageUrl!==hp.imageUrl&&(hp.imageUrl=t.imageUrl,(0,n.dispatch)("yoast-seo/editor").setEditorDataImageUrl(hp.imageUrl))}),os);function Ep(){new MutationObserver(bp).observe(window.document,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}function vp(){window.YoastSEO=window.YoastSEO||{},window.YoastSEO.store=function(){const s=(0,n.registerStore)("yoast-seo/editor",{reducer:(0,n.combineReducers)(be.reducers),selectors:{...be.selectors,...a},actions:(0,Ee.pickBy)({...be.actions,...t},(e=>"function"==typeof e)),controls:e});return(e=>{e.dispatch(be.actions.loadCornerstoneContent()),e.dispatch(be.actions.loadFocusKeyword()),e.dispatch(be.actions.setMarkerStatus(window.wpseoScriptData.metabox.elementorMarkerStatus)),e.dispatch(be.actions.setSettings({socialPreviews:{sitewideImage:window.wpseoScriptData.metabox.sitewide_social_image,siteName:window.wpseoScriptData.metabox.site_name,contentImage:window.wpseoScriptData.metabox.first_content_image,twitterCardType:window.wpseoScriptData.metabox.twitterCardType},snippetEditor:{baseUrl:window.wpseoScriptData.metabox.base_url,date:window.wpseoScriptData.metabox.metaDescriptionDate,recommendedReplacementVariables:window.wpseoScriptData.analysis.plugins.replaceVars.recommended_replace_vars,siteIconUrl:window.wpseoScriptData.metabox.siteIconUrl}}));const{facebook:t,twitter:s}=window.wpseoScriptData.metabox.showSocial;t&&e.dispatch(be.actions.loadFacebookPreviewData()),s&&e.dispatch(be.actions.loadTwitterPreviewData()),e.dispatch(be.actions.setSEMrushChangeCountry(window.wpseoScriptData.metabox.countryCode)),e.dispatch(be.actions.setSEMrushLoginStatus(window.wpseoScriptData.metabox.SEMrushLoginStatus)),e.dispatch(be.actions.setWincherLoginStatus(window.wpseoScriptData.metabox.wincherLoginStatus,!1)),e.dispatch(be.actions.setWincherWebsiteId(window.wpseoScriptData.metabox.wincherWebsiteId)),e.dispatch(be.actions.setWincherAutomaticKeyphaseTracking(window.wpseoScriptData.metabox.wincherAutoAddKeyphrases)),e.dispatch(be.actions.setDismissedAlerts((0,Ee.get)(window,"wpseoScriptData.dismissedAlerts",{}))),e.dispatch(be.actions.setCurrentPromotions((0,Ee.get)(window,"wpseoScriptData.currentPromotions",{}))),e.dispatch(be.actions.setIsPremium(Boolean((0,Ee.get)(window,"wpseoScriptData.metabox.isPremium",!1)))),e.dispatch(be.actions.setLinkParams((0,Ee.get)(window,"wpseoScriptData.linkParams",{}))),e.dispatch(be.actions.setPluginUrl((0,Ee.get)(window,"wpseoScriptData.pluginUrl",""))),e.dispatch(be.actions.setWistiaEmbedPermissionValue("1"===(0,Ee.get)(window,"wpseoScriptData.wistiaEmbedPermission",!1)))})(s),s}(),Gs("panel/editor/open","yoast-seo-reset-marks-edit",(0,Ee.debounce)(fp,os)),Gs("document/save/save","yoast-seo-reset-marks-save",fp),Vs("editor/documents/attach-preview","yoast-seo-content-scraper-initial",bp),Vs("editor/documents/attach-preview","yoast-seo-content-scraper",(0,Ee.debounce)(Ep,os)),Vs("document/save/set-is-modified","yoast-seo-content-scraper-on-modified",bp),window.YoastSEO.pluginReady=Ve,window.YoastSEO.pluginReloaded=Ge,window.YoastSEO.registerModification=Ze,window.YoastSEO.registerPlugin=Qe,window.YoastSEO.applyModifications=Je,window.YoastSEO.analysis=window.YoastSEO.analysis||{},window.YoastSEO.analysis.run=(0,n.dispatch)("yoast-seo/editor").runAnalysis,window.YoastSEO.analysis.worker=zs(),window.YoastSEO.analysis.collectData=Ws,Qe(Xt,{status:"ready"}),((e="")=>{switch(""===e&&(e=(0,Ee.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.scope","")),e){case"post":case"page":return["authorFirstName","authorLastName","category","categoryTitle","currentDate","currentDay","currentMonth","currentYear","date","excerpt","id","focusKeyphrase","modified","name","page","primaryCategory","pageNumber","pageTotal","permalink","postContent","postDay","postMonth","postYear","postTypeNamePlural","postTypeNameSingular","searchPhrase","separator","siteDescription","siteName","tag","title","userDescription"]}return[]})().forEach((e=>{const t=null==r?void 0:r[e];if(t){const e=(({getReplacement:e,regexp:t})=>s=>s.replace(t,e()))(t);es(e)}})),window.YoastSEO.wp=window.YoastSEO.wp||{},window.YoastSEO.wp.replaceVarsPlugin={addReplacement:ts,ReplaceVar:Jt},function(){const e=pt(),t=(0,Ee.get)(window,["wpseoScriptData","analysis","worker","keywords_assessment_url"],"used-keywords-assessment.js"),s=(0,Ee.get)(window,["wpseoScriptData","usedKeywordsNonce"],""),a=new mt("get_focus_keyword_usage_and_post_types",e,(0,n.dispatch)("yoast-seo/editor").runAnalysis,t,s);a.init();let r="";(0,n.subscribe)((()=>{const e=(0,n.select)("yoast-seo/editor").getFocusKeyphrase();e!==r&&(r=e,a.setKeyword(e))}))}(),(()=>{if((0,n.select)("yoast-seo/editor").getPreference("isInsightsEnabled",!1))(0,n.dispatch)("yoast-seo/editor").loadEstimatedReadingTime(),(0,n.subscribe)((0,Ee.debounce)(mp(),1500,{maxWait:3e3}))})(),function(e){const{getFocusKeyphrase:t}=(0,n.select)("yoast-seo/editor");let s=t();ct(e,s),(0,n.subscribe)((()=>{const a=t();s!==a&&(s=a,dt(e,a))}))}(window.YoastSEO.analysis.worker.runResearch),function(){if(!0===window.elementor.config.user.introduction["yoast-introduction"])return;const e=new window.elementorModules.editor.utils.Introduction({introductionKey:"yoast-introduction",dialogOptions:{id:"yoast-introduction",className:"elementor-right-click-introduction",headerMessage:(0,O.__)("New: Yoast SEO for Elementor","wordpress-seo"),message:(0,O.__)("Get started with Yoast SEO's content analysis for Elementor!","wordpress-seo"),position:{my:"left top",at:"right top",autoRefresh:!0},hide:{onOutsideClick:!1}},onDialogInitCallback:t=>{window.$e.routes.on("run:after",(function(e,s){"panel/menu"===s&&t.getElements("ok").trigger("click")})),t.addButton({name:"ok",text:(0,O.__)("Got it","wordpress-seo"),callback:()=>e.setViewed()}),t.getElements("ok").addClass("elementor-button elementor-button-success")}});setTimeout((function t(){try{e.show(window.elementor.getPanelView().header.currentView.ui.menuButton[0])}catch(e){setTimeout(t,100)}}),100)}(),up(),as()&&(function(){const{setIsAuthenticated:e,setSelectedPostTypes:t}=S("wordproof"),s=w("popup_redirect_authentication_url"),a=w("popup_redirect_settings_url");let r=null;const n=(e,t)=>{r=function(e,t,s="",a=800,r=680){const n=e.top.outerHeight/2+e.top.screenY-r/2,o=e.top.outerWidth/2+e.top.screenX-a/2;return e.open(t,s,`toolbar=no,\n\t\tlocation=no,\n\t\tdirectories=no,\n\t\tstatus=no,\n\t\tmenubar=no,\n\t\tresizable=no,\n\t\tcopyhistory=no,\n\t\twidth=${a},\n\t\theight=${r},\n\t\ttop=${n},\n\t\tleft=${o}`)}(window,e,t),r&&r.focus(),window.addEventListener("message",o,!1)},o=async e=>{const{data:t,source:s,origin:a}=e;if(a===w("origin")&&r===s)switch(t.type){case"wordproof:oauth:granted":!1===await d(t)&&await i("wordproof:oauth:failed",!1);break;case"wordproof:oauth:failed":await i("wordproof:oauth:failed",!1);break;case"wordproof:oauth:denied":await i("wordproof:oauth:denied",!1);break;case"wordproof:oauth:invalid_token":await i("wordproof:oauth:invalid_token",!1);break;case"wordproof:webhook:success":await i("wordproof:oauth:success",!0);break;case"wordproof:webhook:failed":await i("wordproof:webhook:failed",!1);break;case"wordproof:settings:updated":await i("wordproof:settings:updated"),await u(t);break;case"wordproof:oauth:destroy":await i("wordproof:oauth:destroy",!1);break;case"wordproof:oauth:retry":await i("wordproof:open_authentication",!1);break;case"wordproof:oauth:close":l()}},i=async(t,s=null)=>{l(),v(t),!1===s&&(await p(),e(!1)),!0===s&&e(!0)},l=()=>{window.removeEventListener("message",o,!1),r.close()},d=async e=>{await c((()=>m(e)),(async e=>{const t={type:"wordproof:sdk:access-token",source_id:e.source_id};return r.postMessage(t,w("origin")),!0}),(async()=>!1))},u=async e=>{await c((()=>h(e)),(async()=>{const s=e.settings;return s.selectedPostTypes&&t(s.selectedPostTypes),!0}),(async()=>!1))};window.addEventListener("wordproof:open_authentication",(e=>{e.preventDefault(),n(s,"WordProof_Authentication")}),!1),window.addEventListener("wordproof:open_settings",(e=>{e.preventDefault(),n(a,"WordProof_Settings")}),!1)}(),function(e,t,s){e(x((async()=>{if(T("wordproof.timestamp",!0)){const e=w("current_post_id"),a=await y(e);_({response:a,createSuccessNotice:t,createErrorNotice:s,postId:e})}}),500))}(I,C,C)),window.wpseoScriptData.postType&&!["attachment","product"].includes(window.wpseoScriptData.postType)&&(()=>{const e=(0,n.select)(we).getIsPremium(),t=(0,n.select)(we).getIsWooSeoUpsell(),s=(0,n.select)(we).getIsProduct()?!e||t:!e;(0,o.addFilter)("yoast.replacementVariableEditor.additionalButtons","yoast/yoast-seo-premium/AiGenerator",((e,{fieldId:t})=>(s&&e.push((0,L.createElement)(A.Fill,{name:`yoast.replacementVariableEditor.additionalButtons.${t}`},(0,L.createElement)(fe,{fieldId:t}))),e)))})(),(0,o.doAction)("yoast.elementor.loaded")}jQuery(window).on("elementor:init",(()=>{window.elementor.on("panel:init",(()=>{setTimeout(vp)}))}))})()})();

Youez - 2016 - github.com/yon3zu
LinuXploit