AnonSec Shell
Server IP : 172.67.157.199  /  Your IP : 18.116.63.5   [ Reverse IP ]
Web Server : Apache
System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64
User : root ( 0)
PHP Version : 8.0.30.2
Disable Function : NONE
Domains : 0 Domains
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/wp-content/plugins/wordpress-seo/js/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/wp-content/plugins/wordpress-seo/js/dist//elementor.js
(()=>{var e={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(7942),o=s(9179),i=s(397),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}},7942: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},9179: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}}},397:(e,t,s)=>{"use strict";var a=s(7942);e.exports=a},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,{authorFirstName:()=>or,authorLastName:()=>ir,category:()=>pr,categoryTitle:()=>ur,currentDate:()=>lr,currentDay:()=>cr,currentMonth:()=>dr,currentYear:()=>mr,date:()=>hr,excerpt:()=>gr,focusKeyphrase:()=>yr,id:()=>fr,modified:()=>wr,name:()=>br,page:()=>Er,pageNumber:()=>vr,pageTotal:()=>_r,permalink:()=>kr,postContent:()=>xr,postDay:()=>Sr,postMonth:()=>Tr,postTypeNamePlural:()=>Cr,postTypeNameSingular:()=>Ir,postYear:()=>Rr,primaryCategory:()=>Lr,searchPhrase:()=>Pr,separator:()=>Ar,siteDescription:()=>Or,siteName:()=>Dr,tag:()=>Mr,term404:()=>Fr,termDescription:()=>Nr,termHierarchy:()=>qr,termTitle:()=>Ur,title:()=>Br,userDescription:()=>$r});var t={};s.r(t),s.d(t,{DISMISS_ALERT:()=>Dc,SNIPPET_EDITOR_FIND_CUSTOM_FIELDS:()=>Mc,wistiaEmbedPermission:()=>Fc});var a={};s.r(a),s.d(a,{loadSnippetEditorData:()=>$c,updateData:()=>Bc});var r={};s.r(r),s.d(r,{getAnalysisData:()=>Xc});const n=window.wp.data,o=window.wp.hooks;var i=s(9196),l=s.n(i);const c=window.wp.components,d=window.wp.element,p=window.wp.i18n,u=window.yoast.uiLibrary,m=window.yoast.propTypes;var h=s.n(m);h().string.isRequired;const g=i.forwardRef((function(e,t){return i.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),i.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"}))})),y=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.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"}))})),f=({learnMoreLink:e,thumbnail:t,wistiaEmbedPermission:s,upsellLink:a,isProductCopy:r,title:n,upsellLabel:o,newToText:l,bundleNote:c})=>{const{onClose:m,initialFocus:h}=(0,u.useModalContext)(),f={a:(0,i.createElement)(v,{href:e,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,i.createElement)(y,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"})};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center"},(0,i.createElement)("div",{className:"yst-relative yst-w-full"},(0,i.createElement)(j,{videoId:"vmrahpfjxp",thumbnail:t,wistiaEmbedPermission:s}),(0,i.createElement)(u.Badge,{className:"yst-absolute yst-top-0 yst-right-2 yst-mt-2 yst-ml-2",variant:"info"},"Beta")),(0,i.createElement)("div",{className:"yst-mt-6 yst-text-xs yst-font-medium yst-flex yst-flex-col yst-items-center"},(0,i.createElement)("span",{className:"yst-introduction-modal-uppercase yst-flex yst-gap-2 yst-items-center"},(0,i.createElement)("span",{className:"yst-logo-icon"}),l))),(0,i.createElement)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center"},(0,i.createElement)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center"},(0,i.createElement)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium"},n),(0,i.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},r?(0,d.createInterpolateElement)((0,p.sprintf)(/* translators: %1$s and %2$s are anchor tags; %3$s is the arrow icon. */
(0,p.__)("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>"),f):(0,d.createInterpolateElement)((0,p.sprintf)(/* translators: %1$s and %2$s are anchor tags; %3$s is the arrow icon. */
(0,p.__)("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>"),f))),(0,i.createElement)("div",{className:"yst-w-full yst-flex yst-mt-10"},(0,i.createElement)(u.Button,{as:"a",className:"yst-grow",size:"extra-large",variant:"upsell",href:a,target:"_blank",ref:h},(0,i.createElement)(g,{className:"yst--ml-1 yst-mr-2 yst-h-5 yst-w-5"}),o,(0,i.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
(0,p.__)("(Opens in a new browser tab)","wordpress-seo")))),c,(0,i.createElement)(u.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:m},(0,p.__)("Close","wordpress-seo"))))};f.propTypes={learnMoreLink:h().string.isRequired,upsellLink:h().string.isRequired,thumbnail:h().shape({src:h().string.isRequired,width:h().string,height:h().string}).isRequired,wistiaEmbedPermission:h().shape({value:h().bool.isRequired,status:h().string.isRequired,set:h().func.isRequired}).isRequired,title:h().string,upsellLabel:h().string,newToText:h().string,isProductCopy:h().bool,bundleNote:h().oneOfType([h().string,h().element])},f.defaultProps={title:(0,p.__)("Use AI to write your titles & meta descriptions!","wordpress-seo"),upsellLabel:(0,p.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,p.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),newToText:"Yoast SEO Premium",isProductCopy:!1,bundleNote:""};var w;function b(){return b=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},b.apply(this,arguments)}h().string,h().node.isRequired,h().node.isRequired,h().node,h().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}));const E=e=>i.createElement("svg",b({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 1000 1000"},e),w||(w=i.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"}))),v=({href:e,children:t,...s})=>(0,i.createElement)(u.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e},t,(0,i.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
(0,p.__)("(Opens in a new browser tab)","wordpress-seo")));v.propTypes={href:h().string.isRequired,children:h().node},v.defaultProps={children:null};const _=i.forwardRef((function(e,t){return i.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),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))}));var k,x,S;function T(){return T=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},T.apply(this,arguments)}const R=e=>i.createElement("svg",T({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=i.createElement("defs",null,i.createElement("style",null,".star-rating-half_svg__cls-1{fill:#fbbf24}"))),x||(x=i.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"})),S||(S=i.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"})),i.createElement("path",{d:"m500 181.64-172.75-25.11L250 0v394.3l154.51 81.23L375 303.48l125-121.84z",style:{fill:"#f3f4f6"}}));function C(){return C=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},C.apply(this,arguments)}const I=e=>i.createElement("svg",C({xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 500 475.53"},e),i.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 L,P,A,O,D,M,F,N,q;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)}const B=e=>i.createElement("svg",U({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 500 500"},e),L||(L=i.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"})),P||(P=i.createElement("path",{fill:"#6c2548",d:"M437.61 2 155.89 500H500V80a80 80 0 0 0-62.39-78z"})),A||(A=i.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"})),O||(O=i.createElement("circle",{cx:368.33,cy:124.68,r:97.34,fill:"#9fda4f",transform:"rotate(-45 368.335 124.68)"})),D||(D=i.createElement("path",{fill:"#77b227",d:"m416.2 39.93-95.74 169.51A97.34 97.34 0 1 0 416.2 39.93z"})),M||(M=i.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"})),F||(F=i.createElement("path",{fill:"#f49a00",d:"m294.5 254.59-62.56 110.76a63.6 63.6 0 1 0 62.56-110.76z"})),N||(N=i.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"})),q||(q=i.createElement("path",{fill:"#ed261f",d:"m202.9 416.8-37.54 66.48a38.17 38.17 0 0 0 37.54-66.48z"}))),$=({link:e,linkProps:t,promotions:s})=>{const a=(0,d.useMemo)((()=>(0,p.__)("Use AI to generate titles and meta descriptions, automatically redirect deleted pages, get 24/7 support, and much, much more!","wordpress-seo")),[]),r=(0,d.createInterpolateElement)((0,p.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */
(0,p.__)("%1$sGet%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast SEO Premium"),{nowrap:(0,i.createElement)("span",{className:"yst-whitespace-nowrap"})}),n=s.includes("black-friday-2023-promotion"),o=(0,d.createInterpolateElement)((0,p.sprintf)(/* translators: %1$s and %2$s expand to strong tags. */
(0,p.__)("%1$sSAVE 30%%%2$s on your 12 month subscription","wordpress-seo"),"<strong>","</strong>"),{strong:(0,i.createElement)("strong",null)});return(0,i.createElement)("div",{className:"yst-p-6 yst-rounded-lg yst-text-white yst-bg-primary-500 yst-shadow"},(0,i.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,i.createElement)(B,null)),n&&(0,i.createElement)("div",{className:"sidebar__sale_banner_container"},(0,i.createElement)("div",{className:"sidebar__sale_banner"},(0,i.createElement)("span",{className:"banner_text"},(0,p.__)("BLACK FRIDAY - 30% OFF","wordpress-seo")))),(0,i.createElement)(u.Title,{as:"h2",className:"yst-mt-6 yst-text-base yst-font-extrabold yst-text-white"},r),(0,i.createElement)("p",{className:"yst-mt-2"},a),n&&(0,i.createElement)("div",{className:"yst-text-center yst-border-t-[1px] yst-border-white yst-italic yst-mt-3"},(0,i.createElement)("p",{className:"yst-text-[10px] yst-my-3 yst-mx-0"},o)),(0,i.createElement)(u.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,i.createElement)("span",null,n?(0,p.__)("Claim your 30% off now!","wordpress-seo"):r),(0,i.createElement)(_,{className:"yst-w-4 yst-h-4 yst-icon-rtl"})),(0,i.createElement)("p",{className:"yst-text-center yst-text-xs yst-mx-2 yst-font-light yst-leading-5 yst-mt-2"},(0,p.__)("Only $/€/£99 per year (ex VAT)","wordpress-seo"),(0,i.createElement)("br",null),(0,p.__)("30-day money back guarantee.","wordpress-seo")),(0,i.createElement)("hr",{className:"yst-border-t yst-border-primary-300 yst-my-4"}),(0,i.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,i.createElement)("span",{className:"yst-font-medium yst-text-white hover:yst-underline"},(0,p.__)("Read reviews from real users","wordpress-seo")),(0,i.createElement)("span",{className:"yst-flex yst-gap-2 yst-mt-2 yst-items-center"},(0,i.createElement)(E,{className:"yst-w-5 yst-h-5"}),(0,i.createElement)("span",{className:"yst-flex yst-gap-1"},(0,i.createElement)(I,{className:"yst-w-5 yst-h-5"}),(0,i.createElement)(I,{className:"yst-w-5 yst-h-5"}),(0,i.createElement)(I,{className:"yst-w-5 yst-h-5"}),(0,i.createElement)(I,{className:"yst-w-5 yst-h-5"}),(0,i.createElement)(R,{className:"yst-w-5 yst-h-5"})),(0,i.createElement)("span",{className:"yst-text-sm yst-font-semibold yst-text-white"},"4.6 / 5"))))};$.propTypes={link:h().string.isRequired,linkProps:h().object,promotions:h().array},$.defaultProps={linkProps:{},promotions:[]},h().node.isRequired;const W=window.yoast.reactHelmet,K="loading",H="showPlay",Y="askPermission",z="isPlaying",j=({videoId:e,thumbnail:t,wistiaEmbedPermission:s})=>{const[a,r]=(0,d.useState)(s.value?z:H),n=(0,d.useCallback)((()=>r(z)),[r]),o=(0,d.useCallback)((()=>{s.value?n():r(Y)}),[s.value,n,r]),l=(0,d.useCallback)((()=>r(H)),[r]),c=(0,d.useCallback)((()=>{s.set(!0),n()}),[s.set,n]);return(0,i.createElement)(i.Fragment,null,s.value&&(0,i.createElement)(W.Helmet,null,(0,i.createElement)("script",{src:"https://fast.wistia.com/assets/external/E-v1.js",async:!0})),(0,i.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===H&&(0,i.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,i.createElement)("img",{className:"yst-w-full yst-h-auto",alt:"",loading:"lazy",decoding:"async",...t})),a===Y&&(0,i.createElement)("div",{className:"yst-absolute yst-inset-0 yst-flex yst-flex-col yst-items-center yst-justify-center yst-bg-white"},(0,i.createElement)("p",{className:"yst-max-w-xs yst-mx-auto yst-text-center"},s.status===K&&(0,i.createElement)(u.Spinner,null),s.status!==K&&(0,p.sprintf)(/* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */
(0,p.__)("To see this video, you need to allow %1$s to load embedded videos from %2$s.","wordpress-seo"),"Yoast SEO","Wistia")),(0,i.createElement)("div",{className:"yst-flex yst-mt-6 yst-gap-x-4"},(0,i.createElement)(u.Button,{type:"button",variant:"secondary",onClick:l,disabled:s.status===K},(0,p.__)("Deny","wordpress-seo")),(0,i.createElement)(u.Button,{type:"button",variant:"primary",onClick:c,disabled:s.status===K},(0,p.__)("Allow","wordpress-seo")))),s.value&&a===z&&(0,i.createElement)("div",{className:"yst-absolute yst-w-full yst-h-full yst-top-0 yst-left-0"},null===e&&(0,i.createElement)(u.Spinner,{className:"yst-h-full yst-mx-auto"}),null!==e&&(0,i.createElement)("div",{className:`wistia_embed wistia_async_${e} videoFoam=true`}))))};j.propTypes={videoId:h().string.isRequired,thumbnail:h().shape({src:h().string.isRequired,width:h().string,height:h().string}).isRequired,wistiaEmbedPermission:h().shape({value:h().bool.isRequired,status:h().string.isRequired,set:h().func.isRequired}).isRequired};const V=({learnMoreLink:e,thumbnail:t,wistiaEmbedPermission:s,upsellLink:a,upsellLabel:r})=>{const{onClose:n,initialFocus:o}=(0,u.useModalContext)(),l={a:(0,i.createElement)(v,{href:e,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,i.createElement)(y,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),br:(0,i.createElement)("br",null)};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center"},(0,i.createElement)("div",{className:"yst-relative yst-w-full"},(0,i.createElement)(j,{videoId:"vun9z1dpfh",thumbnail:t,wistiaEmbedPermission:s}),(0,i.createElement)(u.Badge,{className:"yst-absolute yst-right-0 yst-mr-4 yst-text-center yst-justify-center",variant:"info",style:{top:"-8px"}},(0,p.__)("Beta","wordpress-seo-premium"))),(0,i.createElement)("div",{className:"yst-mt-6 yst-text-xs yst-font-medium yst-flex yst-flex-col yst-items-center"},(0,i.createElement)("span",{className:"yst-introduction-modal-uppercase yst-flex yst-gap-2 yst-items-center"},(0,i.createElement)("span",{className:"yst-logo-icon"}),"Yoast SEO Premium"))),(0,i.createElement)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center"},(0,i.createElement)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center"},(0,i.createElement)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium"},(0,p.sprintf)(/* translators: %s: Expands to "Yoast AI" */
(0,p.__)("Optimize your SEO content with %s","wordpress-seo"),"Yoast AI")),(0,i.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},(0,d.createInterpolateElement)((0,p.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tags; %4$s is the arrow icon. */
(0,p.__)("Make content editing a breeze! Optimize your SEO content with quick, actionable suggestions at the click of a button.%1$s%2$sLearn more%3$s%4$s","wordpress-seo"),"<br/>","<a>","<ArrowNarrowRightIcon />","</a>"),l))),(0,i.createElement)("div",{className:"yst-w-full yst-flex yst-mt-6"},(0,i.createElement)(u.Button,{as:"a",className:"yst-grow",size:"extra-large",variant:"upsell",href:a,target:"_blank",ref:o},(0,i.createElement)(g,{className:"yst--ml-1 yst-mr-2 yst-h-5 yst-w-5"}),r,(0,i.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
(0,p.__)("(Opens in a new browser tab)","wordpress-seo")))),(0,i.createElement)(u.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:n},(0,p.__)("Close","wordpress-seo"))))};V.propTypes={learnMoreLink:h().string.isRequired,upsellLink:h().string.isRequired,thumbnail:h().shape({src:h().string.isRequired,width:h().string,height:h().string}).isRequired,wistiaEmbedPermission:h().shape({value:h().bool.isRequired,status:h().string.isRequired,set:h().func.isRequired}).isRequired,upsellLabel:h().string},V.defaultProps={upsellLabel:(0,p.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,p.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium")};const G="yoast-seo/editor",Z=()=>{const e=(0,n.useSelect)((e=>e(G).selectLink("https://yoa.st/ai-generator-learn-more")),[]),t=(0,n.useSelect)((e=>e(G).selectLink("https://yoa.st/ai-generator-upsell")),[]),s=(0,n.useSelect)((e=>e(G).selectLink("https://yoa.st/ai-generator-upsell-woo-seo-premium-bundle")),[]),a=(0,n.useSelect)((e=>e(G).selectLink("https://yoa.st/ai-generator-upsell-woo-seo")),[]),r=(0,n.useSelect)((e=>e(G).getIsPremium()),[]),o=(0,n.useSelect)((e=>e(G).getIsWooSeoUpsell()),[]),l=(0,n.useSelect)((e=>e(G).getIsProduct()),[]),c=!(!o&&(!l||o||r)),u={isProductCopy:c,upsellLink:t};if(c){const e=(0,p.sprintf)(/* translators: %1$s expands to Yoast SEO Premium, %2$s expands to Yoast WooCommerce SEO. */
(0,p.__)("%1$s + %2$s","wordpress-seo"),"Yoast SEO Premium","Yoast WooCommerce SEO");u.newToText=(0,p.sprintf)(/* translators: %1$s expands to Yoast SEO Premium and Yoast WooCommerce SEO. */
(0,p.__)("New in %1$s","wordpress-seo"),e),u.title=(0,p.__)("Generate product titles & descriptions with AI!","wordpress-seo"),!r&&o&&(u.upsellLabel=`${(0,p.sprintf)(/* translators: %1$s expands to Woo Premium bundle. */
(0,p.__)("Unlock with the %1$s","wordpress-seo"),"Woo Premium bundle")}*`,u.bundleNote=(0,i.createElement)("div",{className:"yst-text-xs yst-text-slate-500 yst-mt-2"},`*${e}`),u.upsellLink=s),r&&(u.upsellLabel=(0,p.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */
(0,p.__)("Unlock with %1$s","wordpress-seo"),"Yoast WooCommerce SEO"),u.upsellLink=a)}const m=(0,n.useSelect)((e=>e(G).selectImageLink("ai-generator-preview.png")),[]),h=(0,d.useMemo)((()=>({src:m,width:"432",height:"244"})),[m]),g=(0,n.useSelect)((e=>e(G).selectWistiaEmbedPermissionValue()),[]),y=(0,n.useSelect)((e=>e(G).selectWistiaEmbedPermissionStatus()),[]),{setWistiaEmbedPermission:w}=(0,n.useDispatch)(G),b=(0,d.useMemo)((()=>({value:g,status:y,set:w})),[g,y,w]);return(0,i.createElement)(f,{learnMoreLink:e,thumbnail:h,wistiaEmbedPermission:b,...u})},Q=({fieldId:e})=>{const[t,,,s,a]=(0,u.useToggleState)(!1),r=(0,d.useCallback)((()=>{s()}),[s]),n=(0,d.useRef)(null);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("button",{type:"button",id:`yst-replacevar__use-ai-button__${e}`,className:"yst-replacevar__use-ai-button-upsell",onClick:r},(0,p.__)("Use AI","wordpress-seo")),(0,i.createElement)(u.Modal,{className:"yst-introduction-modal",isOpen:t,onClose:a,initialFocus:n},(0,i.createElement)(u.Modal.Panel,{className:"yst-max-w-lg yst-p-0 yst-rounded-3xl"},(0,i.createElement)(Z,{onClose:a,focusElementRef:n}))))};Q.propTypes={fieldId:h().string.isRequired};const X="yoast-seo/editor",J=window.lodash,ee=window.yoast.analysis,te=500;function se(){}const ae=window.yoast.externals.redux;function re(e){return e.sort(((e,t)=>e._identifier.localeCompare(t._identifier)))}function ne(){return(0,J.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}function oe(){const e=ne();return(0,J.get)(e,"contentLocale","en_US")}function ie(){const e=ne();return!0===(0,J.get)(e,"contentAnalysisActive",!1)}function le(){const e=ne();return!0===(0,J.get)(e,"keywordAnalysisActive",!1)}function ce(){const e=ne();return!0===(0,J.get)(e,"inclusiveLanguageAnalysisActive",!1)}const de=window.yoast.featureFlag;class pe{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,J.isString)(e)?(0,J.isUndefined)(t)||(0,J.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,J.isString)(e)?(0,J.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,J.isString)(e)?(0,J.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,J.isString)(e))return console.error("Failed to register modification for plugin "+s+". Expected parameter `modification` to be a string."),!1;if(!(0,J.isFunction)(t))return console.error("Failed to register modification for plugin "+s+". Expected parameter `callable` to be a function."),!1;if(!(0,J.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,J.isNumber)(a)?a:10};return(0,J.isUndefined)(this.modifications[e])&&(this.modifications[e]=[]),this.modifications[e].push(r),!0}_registerAssessment(e,t,s,a){return(0,J.isString)(t)?(0,J.isObject)(s)?(0,J.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,J.isArray)(a)||a.length<1||(a=this._stripIllegalModifications(a),a.sort(((e,t)=>e.priority-t.priority)),(0,J.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,J.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,J.reduce)(this.plugins,(function(e,t){return e&&"ready"===t.status}),!0)}_pollTimeExceeded(){(0,J.forEach)(this.plugins,(function(e,t){(0,J.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,J.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,J.isUndefined)(this.plugins[e])}}let ue=null;const me=()=>{if(null===ue){const e=(0,n.dispatch)("yoast-seo/editor").runAnalysis;ue=window.YoastSEO.app&&window.YoastSEO.app.pluggable?window.YoastSEO.app.pluggable:new pe(e)}return ue},he=e=>me()._ready(e),ge=e=>me()._reloaded(e),ye=(e,t,s,a)=>me()._registerModification(e,t,s,a),fe=(e,t)=>me()._registerPlugin(e,t),we=(e,t,s)=>me().loaded?me()._applyModifications(e,t,s):t,be="yoastmark";function Ee(e,t){return e._properties.position.startOffset>t.length||e._properties.position.endOffset>t.length}function ve(e,t,s){const a=e.dom;let r=e.getContent();if(r=ee.markers.removeMarks(r),(0,J.isEmpty)(s))return void e.setContent(r);r=s[0].hasPosition()?function(e,t){if(!t)return"";for(let s=(e=(0,J.orderBy)(e,(e=>e._properties.position.startOffset),["asc"])).length-1;s>=0;s--){const a=e[s];Ee(a,t)||(t=a.applyWithPosition(t))}return t}(s,r):function(e,t,s,a){const{fieldsToMark:r,selectedHTML:n}=ee.languageProcessing.getFieldsToMark(s,a);return(0,J.forEach)(s,(function(t){"acf_content"!==e.id&&(t._properties.marked=ee.languageProcessing.normalizeHTML(t._properties.marked),t._properties.original=ee.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(be);(0,J.forEach)(n,(function(e){e.setAttribute("data-mce-bogus","1")}))}function _e(e){return window.test=e,ve.bind(null,e)}J.noop,J.noop,J.noop;const ke="content";function xe(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 Se=function(e){return(0,J.uniq)((0,J.flatten)(e.map((e=>{if(!(0,J.isUndefined)(e.getFieldsToMark()))return e.getFieldsToMark()}))))},Te=window.wp.richText,Re=/(<([a-z]|\/)[^<>]+>)/gi,{htmlEntitiesRegex:Ce}=ee.helpers.htmlEntities,Ie=e=>{let t=0;return(0,J.forEachRight)(e,(e=>{const[s]=e;let a=s.length;/^<\/?br/.test(s)&&(a-=1),t+=a})),t},Le="<yoastmark class='yoast-text-mark'>",Pe="</yoastmark>",Ae='<yoastmark class="yoast-text-mark">';function Oe(e,t,s,a,r){const n=a.clientId,o=(0,Te.create)({html:e,multilineTag:s.multilineTag,multilineWrapperTag:s.multilineWrapperTag}).text;return(0,J.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(Re)];s-=Ie(r);const n=[...t.matchAll(Re)];return{blockStartOffset:s,blockEndOffset:a-=Ie(n)}})(a,r,e,t),o=((e,t,s,a)=>{let r=[...e.matchAll(Ce)];return(0,J.forEachRight)(r,(e=>{const[,t]=e;s-=t.length})),r=[...t.matchAll(Ce)],(0,J.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(Le);const s=t>=0;s||(t=e.indexOf(Ae));let a=null;const r=[];for(;t>=0;){if(a=(e=s?e.replace(Le,""):e.replace(Ae,"")).indexOf(Pe),a<t)return[];e=e.replace(Pe,""),r.push({startOffset:t,endOffset:a}),t=s?e.indexOf(Le):e.indexOf(Ae),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 De=e=>e[0].toUpperCase()+e.slice(1),Me=(e,t,s,a,r)=>(e=e.map((e=>{const n=`${e.id}-${r[0]}`,o=`${e.id}-${r[1]}`,i=De(r[0]),l=De(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=Oe(c,n,s,a,p),h=Oe(d,o,s,a,u);return m.concat(h)})),(0,J.flattenDeep)(e)),Fe="yoast";let Ne=[];const qe={"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 Ue(){const e=Ne.shift();e&&((0,n.dispatch)("core/annotations").__experimentalAddAnnotation(e),Be())}function Be(){(0,J.isFunction)(window.requestIdleCallback)?window.requestIdleCallback(Ue,{timeout:1e3}):setTimeout(Ue,150)}const We=(e,t)=>{return(0,J.flatMap)((s=e.name,qe.hasOwnProperty(s)?qe[s]:[]),(s=>"yoast/faq-block"===e.name?((e,t,s)=>{const a=t.attributes[e.key];return 0===a.length?[]:Me(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(Me(a,s,e,t,["name","text"])),"jsonDescription"===e.key&&(s=s.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?!e.getBlockAttributeId():e)),r.push(Oe(a,"description",e,t,s))),(0,J.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 Oe(r,a,e,t,s)}(s,e,t)));var s};function Ke(e,t){return(0,J.flatMap)(e,(e=>{const s=function(e){return e.innerBlocks.length>0}(e)?Ke(e.innerBlocks,t):[];return We(e,t).concat(s)}))}function He(e){Ne=[],(0,n.dispatch)("core/annotations").__experimentalRemoveAnnotationsBySource(Fe);const t=Se(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=Ke(s,e),Ne=a.map((e=>({blockClientId:e.block,source:Fe,richTextIdentifier:e.richTextIdentifier,range:{start:e.startOffset,end:e.endOffset}}))),Be()}function Ye(e,t){let s;xe(ke)&&((0,J.isUndefined)(s)&&(s=_e(tinyMCE.get(ke))),s(e,t)),(0,n.select)("core/block-editor")&&(0,J.isFunction)((0,n.select)("core/block-editor").getBlocks)&&(0,n.select)("core/annotations")&&(0,J.isFunction)((0,n.dispatch)("core/annotations").__experimentalAddAnnotation)&&(function(e,t){tinyMCE.editors.map((e=>_e(e))).forEach((s=>s(e,t)))}(e,t),He(t)),(0,o.doAction)("yoast.analysis.applyMarks",t)}function ze(){const e=(0,n.select)("yoast-seo/editor").isMarkingAvailable(),t=(0,n.select)("yoast-seo/editor").getMarkerPauseStatus();return!e||t?J.noop:Ye}const je=(0,J.debounce)((async function(e,t){const{text:s,...a}=t,r=new ee.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=re(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=re(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=re(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){}}),te);function Ve(){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=we("data_page_title",e.title),e.title=we("title",e.title),e.description=we("data_meta_desc",e.description),e.text=we("content",e.text),e}(s);return(0,o.applyFilters)("yoast.analysis.data",a)}function Ge(){const{getAnalysisTimestamp:e,isCornerstoneContent:t}=(0,n.select)("yoast-seo/editor"),s=function(){const e=(0,J.get)(window,["wpseoScriptData","analysis","worker","url"],"analysis-worker.js"),t=(0,ee.createWorker)(e),s=(0,J.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 ee.AnalysisWorkerWrapper(t)}();s.initialize(function(e={}){let t={locale:oe(),contentAnalysisActive:ie(),keywordAnalysisActive:le(),inclusiveLanguageAnalysisActive:ce(),defaultQueryParams:(0,J.get)(window,["wpseoAdminL10n","default_query_params"],{}),logLevel:(0,J.get)(window,["wpseoScriptData","analysis","worker","log_level"],"ERROR"),enabledFeatures:(0,de.enabledFeatures)()};t=(0,J.merge)(t,e);const s=function(){const e=ne();return(0,J.get)(e,"translations",{domain:"wordpress-seo",locale_data:{"wordpress-seo":{"":{}}}})}();return(0,J.isUndefined)(s)||(0,J.isUndefined)(s.domain)||(t.translations=s),t}({useCornerstone:t(),marker:ze()})).catch(se),window.YoastSEO.analysis.applyMarks=(e,t)=>ze()(e,t);let a=Ve(),r=t(),o=e();return(0,n.subscribe)((()=>{const n=t(),i=Ve(),l=e();if(n!==r)return r=n,a=i,void s.initialize({useCornerstone:n}).then((()=>je(s,i))).catch(se);l===o&&!1!==(0,J.isEqual)(i,a)||(a=i,o=l,je(s,i))})),s}const Ze=()=>{const{getContentLocale:e}=(0,n.select)("yoast-seo/editor"),t=((...e)=>()=>e.map((e=>e())))(e,Ve),s=(()=>{const{setEstimatedReadingTime:e,setFleschReadingEase:t,setTextLength:s}=(0,n.dispatch)("yoast-seo/editor"),a=(0,J.get)(window,"YoastSEO.analysis.worker.runResearch",J.noop);return()=>{const r=ee.Paper.parse(Ve());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,J.isEqual)(a,s)||(s=a,t((0,J.clone)(a)))}})(t,s)},Qe=window.yoast.styledComponents;var Xe=s.n(Qe);const Je=window.yoast.externals.contexts,et=({theme:e,location:t,children:s})=>(0,i.createElement)(Je.LocationProvider,{value:t},(0,i.createElement)(Qe.ThemeProvider,{theme:e},s));et.propTypes={theme:h().object.isRequired,location:h().oneOf(["sidebar","metabox","modal"]).isRequired,children:h().element.isRequired};const tt=et,st=[];let at=null;class rt extends d.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,i.createElement)(e,{key:t})))}}function nt(e,t){null===at||null===at.current?st.push({key:e,Component:t}):at.current.registerComponent(e,t)}const ot=()=>!0;class it extends $e.modules.hookUI.Base{constructor(e,t,s,a=ot){super(),this.command=e,this.id=t,this.callback=s,this.conditions=a}getCommand(){return this.command}getId(){return this.id}getConditions(...e){return this.conditions(...e)}apply(...e){return this.callback(...e)}}class lt extends $e.modules.hookData.Base{constructor(e,t,s,a=ot){super(),this.command=e,this.id=t,this.callback=s,this.conditions=a.bind(this)}getCommand(){return this.command}getId(){return this.id}getConditions(...e){return this.conditions(...e)}apply(...e){return this.callback(...e)}}function ct(e,t,s,a=ot){return $e.hooks.registerUIAfter(new it(e,t,s,a))}function dt(e,t,s,a=ot){return $e.hooks.registerUIBefore(new it(e,t,s,a))}function pt(e,t,s,a=ot){return $e.hooks.registerDataAfter(new lt(e,t,s,a))}const ut=e=>{return parseInt(null===(t=document.getElementById("post_ID"))||void 0===t?void 0:t.value,10)===e;var t},mt=()=>{var e;return ut(null===(e=elementor.documents.getCurrent())||void 0===e?void 0:e.id)},ht=["yoast_wpseo_linkdex","yoast_wpseo_content_score","yoast_wpseo_inclusive_language_score","yoast_wpseo_words_for_linking","yoast_wpseo_estimated-reading-time-minutes"],gt=["yoast_wpseo_focuskeywords","hidden_wpseo_focuskeywords"],yt=e=>{let t="";e&&(t=(0,p.sprintf)(/* translators: %1$s translates to the Post Label in singular form */
(0,p.__)("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"),wpseoAdminL10n.postTypeNameSingular.toLowerCase())),"draft"===elementor.settings.page.model.get("post_status")&&(t=""),(0,n.select)("yoast-seo/editor").getWarningMessage()!==t&&(0,n.dispatch)("yoast-seo/editor").setWarningMessage(t)},ft=(e,t,s)=>null===t?null:(0,d.createPortal)(e,t,s),wt=({id:e,children:t})=>{const s=(0,d.useRef)(document.getElementById(e)),[a,r]=(0,d.useState)((()=>ft(t,s.current,e))),n=(0,d.useCallback)((()=>{const a=document.getElementById(e);a!==s.current&&(s.current=a,r(ft(t,a,e)))}),[e,t]);return((e,t,s={childList:!0,subtree:!0})=>{(0,d.useEffect)((()=>{const a=new MutationObserver(t);return a.observe(e,s),()=>a.disconnect()}),[e,t])})(document.body,n),a},bt=({handleRefreshClick:e,supportLink:t})=>(0,i.createElement)("div",{className:"yst-flex yst-gap-2"},(0,i.createElement)(u.Button,{onClick:e},(0,p.__)("Refresh this page","wordpress-seo")),(0,i.createElement)(u.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener"},(0,p.__)("Contact support","wordpress-seo")));bt.propTypes={handleRefreshClick:h().func.isRequired,supportLink:h().string.isRequired};const Et=({handleRefreshClick:e,supportLink:t})=>(0,i.createElement)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2"},(0,i.createElement)(u.Button,{className:"yst-order-last",onClick:e},(0,p.__)("Refresh this page","wordpress-seo")),(0,i.createElement)(u.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener"},(0,p.__)("Contact support","wordpress-seo")));Et.propTypes={handleRefreshClick:h().func.isRequired,supportLink:h().string.isRequired};const vt=({error:e,children:t})=>(0,i.createElement)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4"},(0,i.createElement)(u.Title,null,(0,p.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")),(0,i.createElement)("p",null,(0,p.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")),(0,i.createElement)(u.Alert,{variant:"error"},(null==e?void 0:e.message)||(0,p.__)("Undefined error message.","wordpress-seo")),(0,i.createElement)("p",null,(0,p.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")),t);vt.propTypes={error:h().object.isRequired,children:h().node},vt.VerticalButtons=Et,vt.HorizontalButtons=bt;const _t=({error:e})=>{const t=(0,d.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),s=(0,n.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/elementor-error-support")),[]),a=(0,n.useSelect)((e=>e("yoast-seo/editor").getPreference("isRtl",!1)),[]);return(0,i.createElement)(u.Root,{context:{isRtl:a}},(0,i.createElement)(vt,{error:e},(0,i.createElement)(vt.VerticalButtons,{supportLink:s,handleRefreshClick:t})))};function kt(){return(0,i.createElement)(u.ErrorBoundary,{FallbackComponent:_t},(0,i.createElement)(c.Slot,{name:"YoastElementor"},(e=>{return void 0===(t=e).length?t:(0,J.flatten)(t).sort(((e,t)=>void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority));var t})))}_t.propTypes={error:h().object.isRequired};const xt=window.wp.compose,St=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.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"}))})),Tt=window.wp.url,Rt=()=>[(0,p.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,p.__)("%1$sAI%2$s: Better SEO titles and meta descriptions, faster.","wordpress-seo"),"<strong>","</strong>"),(0,p.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,p.__)("%1$sMultiple keywords%2$s: Rank higher for more searches.","wordpress-seo"),"<strong>","</strong>"),(0,p.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,p.__)("%1$sSuper fast%2$s internal linking suggestions.","wordpress-seo"),"<strong>","</strong>"),(0,p.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,p.__)("%1$sNo more broken links%2$s: Automatic redirect manager.","wordpress-seo"),"<strong>","</strong>"),(0,p.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,p.__)("%1$sAppealing social previews%2$s people actually want to click on.","wordpress-seo"),"<strong>","</strong>"),(0,p.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,p.__)("%1$s24/7 support%2$s: Also on evenings and weekends.","wordpress-seo"),"<strong>","</strong>")];var Ct=s(4530),It=s.n(Ct);const Lt=({className:e,...t})=>(0,i.createElement)("span",{className:It()("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});Lt.displayName="MetaboxButton.Text",Lt.propTypes={className:h().string},Lt.defaultProps={className:""};const Pt=({className:e,...t})=>(0,i.createElement)("button",{type:"button",className:It()("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});Pt.propTypes={className:h().string},Pt.defaultProps={className:""},Pt.Text=Lt;const At=window.yoast.componentsNew,Ot=e=>(0,i.createElement)("div",{className:"yoast components-panel__body"},(0,i.createElement)("h2",{className:"components-panel__body-title"},(0,i.createElement)("button",{id:e.id,onClick:e.onClick,className:"components-button components-panel__body-toggle",type:"button"},e.prefixIcon&&(0,i.createElement)("span",{className:"yoast-icon-span",style:{fill:`${e.prefixIcon&&e.prefixIcon.color||""}`}},(0,i.createElement)(At.SvgIcon,{size:e.prefixIcon.size,icon:e.prefixIcon.icon})),(0,i.createElement)("span",{className:"yoast-title-container"},(0,i.createElement)("div",{className:"yoast-title"},e.title),(0,i.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),e.children,e.suffixIcon&&(0,i.createElement)(At.SvgIcon,{size:e.suffixIcon.size,icon:e.suffixIcon.icon}),e.SuffixHeroIcon))),Dt=Ot;Ot.propTypes={onClick:h().func.isRequired,title:h().string.isRequired,id:h().string,subTitle:h().string,suffixIcon:h().object,SuffixHeroIcon:h().object,prefixIcon:h().object,children:h().node},Ot.defaultProps={id:"",suffixIcon:null,SuffixHeroIcon:null,prefixIcon:null,subTitle:"",children:null};const Mt=window.yoast.helpers,Ft=Xe().div`
  padding: 25px 32px 32px;
  color: #303030;
`,Nt=Xe().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;
    }
  }
`,qt=Xe().span`
  display: block;
  margin-top: 4px;
`,Ut=Xe().h2`
  margin-top: 0;
  margin-bottom: 0.25rem;
  color: #303030;
  font-size: 0.8125rem;
  font-weight: 600;
`,Bt=Xe().p`
  display: block;
  margin: 0.25rem 0 1rem 0 !important;
  max-width: 420px;
`,$t=Xe().hr`
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  border-top: 0;
  border-bottom: 1px solid #E2E8F0;
`,Wt=Xe().div`
  text-align: center;
`,Kt=Xe().a`
  width: 100%;
`,Ht=(0,Mt.makeOutboundLink)(Kt);class Yt extends d.Component{constructor(e){super(e),this.state={defaultPrice:"99"}}createBenefitsList(e){return e.length>0&&(0,i.createElement)(Nt,{role:"list"},e.map(((e,t)=>(0,i.createElement)("li",{key:`upsell-benefit-${t}`},(0,d.createInterpolateElement)(e,{strong:(0,i.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,i.createElement)(d.Fragment,null,e&&(0,i.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,i.createElement)("div",null,(0,p.__)("BLACK FRIDAY","wordpress-seo")),(0,i.createElement)("div",null,(0,p.__)("30% OFF","wordpress-seo"))),(0,i.createElement)(Ft,null,(0,i.createElement)(Ut,null,this.props.title),(0,i.createElement)(Bt,null,this.props.description),(0,i.createElement)(Wt,null,(0,i.createElement)(Ht,{...this.props.upsellButton},this.props.upsellButtonText,this.props.upsellButtonHasCaret&&(0,i.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})),(0,i.createElement)("div",{className:"yst-text-slate-600 yst-my-4"},s&&(0,i.createElement)(d.Fragment,null,(0,i.createElement)("span",{className:"yst-text-slate-500 yst-line-through"},t)," "),(0,i.createElement)("span",{className:"yst-text-slate-900 yst-text-2xl yst-font-bold"},a)," ",(0,p.__)("$ USD / € EUR / £ GBP per year (ex. VAT)","wordpress-seo")),(0,i.createElement)(qt,{id:this.props.upsellButton["aria-describedby"]},this.props.upsellButtonLabel)),(0,i.createElement)($t,null),(0,i.createElement)(Ut,null,this.props.benefitsTitle),this.createBenefitsList(this.props.benefits)))}}Yt.propTypes={title:h().node,benefits:h().array,benefitsTitle:h().node,description:h().node,upsellButton:h().object,upsellButtonText:h().string.isRequired,upsellButtonLabel:h().string,upsellButtonHasCaret:h().bool},Yt.defaultProps={title:null,description:null,benefits:[],benefitsTitle:null,upsellButton:{href:"",className:"button button-primary"},upsellButtonLabel:"",upsellButtonHasCaret:!0};const zt=Yt,jt=Xe().div`
	min-width: 600px;

	@media screen and ( max-width: 680px ) {
		min-width: 0;
		width: 86vw;
	}
`,Vt=Xe().div`
	@media screen and ( min-width: 600px ) {
		max-width: 420px;
	}
`,Gt=(Xe()(At.Icon)`
	float: ${(0,Mt.getDirectionalStyle)("right","left")};
	margin: ${(0,Mt.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"),Zt=e=>{const{title:t,className:s,showYoastIcon:a,additionalClassName:r,...n}=e,o=a?(0,i.createElement)("span",{className:"yoast-icon"}):null;return(0,i.createElement)(c.Modal,{title:t,className:`${s} ${r}`,icon:o,...n},e.children)};Zt.propTypes={title:h().string,className:h().string,showYoastIcon:h().bool,children:h().oneOfType([h().node,h().arrayOf(h().node)]),additionalClassName:h().string},Zt.defaultProps={title:"Yoast SEO",className:Gt,showYoastIcon:!0,children:null,additionalClassName:""};const Qt=Zt,Xt=()=>{const[e,,,t,s]=(0,u.useToggleState)(!1),{locationContext:a}=(0,Je.useRootContext)(),r=(0,u.useSvgAria)(),n=a.includes("sidebar"),o=a.includes("metabox"),l=wpseoAdminL10n[n?"shortlinks.upsell.sidebar.internal_linking_suggestions":"shortlinks.upsell.metabox.internal_linking_suggestions"];return(0,i.createElement)(i.Fragment,null,e&&(0,i.createElement)(Qt,{title:(0,p.__)("Get internal linking suggestions","wordpress-seo"),onRequestClose:s,additionalClassName:"",id:"yoast-internal-linking-suggestions-upsell",className:`${Gt} yoast-gutenberg-modal__box yoast-gutenberg-modal__no-padding`,shouldCloseOnClickOutside:!0},(0,i.createElement)(Vt,null,(0,i.createElement)(zt,{title:(0,p.__)("Rank higher by connecting your content","wordpress-seo"),description:(0,p.sprintf)(/* translators: %s expands to Yoast SEO Premium. */
(0,p.__)("%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,p.sprintf)("%s also gives you:","Yoast SEO Premium"),benefits:Rt(),upsellButtonText:(0,p.sprintf)(/* translators: %s expands to 'Yoast SEO Premium'. */
(0,p.__)("Unlock with %s","wordpress-seo"),"Yoast SEO Premium"),upsellButton:{href:(0,Tt.addQueryArgs)(l,{context:a}),className:"yoast-button-upsell",rel:null,"data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2","data-action":"load-nfd-ctb"},upsellButtonLabel:(0,p.__)("1 year free support and updates included!","wordpress-seo")}))),n&&(0,i.createElement)(Dt,{id:"yoast-internal-linking-suggestions-sidebar-modal-open-button",title:(0,p.__)("Internal linking suggestions","wordpress-seo"),onClick:t},(0,i.createElement)("div",{className:"yst-root"},(0,i.createElement)(u.Badge,{size:"small",variant:"upsell"},(0,i.createElement)(St,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...r})))),o&&(0,i.createElement)("div",{className:"yst-root"},(0,i.createElement)(Pt,{id:"yoast-internal-linking-suggestions-metabox-modal-open-button",onClick:t},(0,i.createElement)(Pt.Text,null,(0,p.__)("Internal linking suggestions","wordpress-seo")),(0,i.createElement)(u.Badge,{size:"small",variant:"upsell"},(0,i.createElement)(St,{className:"yst-w-2.5 yst-h-2.5 yst-mr-1 yst-shrink-0",...r}),(0,i.createElement)("span",null,"Premium")))))},Jt=window.yoast.externals.components;function es(){return(0,xt.createHigherOrderComponent)((function(e){return(0,xt.pure)((function(t){const s=(0,d.useContext)(Je.LocationContext);return(0,d.createElement)(e,{...t,location:s})}))}),"withLocation")}const ts=(0,xt.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}})),es()])(Jt.CollapsibleCornerstone),ss=(0,xt.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)}}))]),as=({children:e,id:t,hasIcon:s=!0,title:a,image:r=null,isAlertDismissed:n,onDismissed:o})=>n?null:(0,i.createElement)("div",{id:t,className:"notice-yoast yoast is-dismissible"},(0,i.createElement)("div",{className:"notice-yoast__container"},(0,i.createElement)("div",null,(0,i.createElement)("div",{className:"notice-yoast__header"},s&&(0,i.createElement)("span",{className:"yoast-icon"}),(0,i.createElement)("h2",{className:"notice-yoast__header-heading"},a)),(0,i.createElement)("p",null,e)),r&&(0,i.createElement)(r,{height:"60"})),(0,i.createElement)("button",{type:"button",className:"notice-dismiss",onClick:o},(0,i.createElement)("span",{className:"screen-reader-text"},/* translators: Hidden accessibility text. */
(0,p.__)("Dismiss this notice.","wordpress-seo"))));as.propTypes={children:h().node.isRequired,id:h().string.isRequired,hasIcon:h().bool,title:h().any.isRequired,image:h().elementType,isAlertDismissed:h().bool.isRequired,onDismissed:h().func.isRequired};const rs=ss(as),ns=({store:e="yoast-seo/editor",image:t=null,title:s,promoId:a,alertKey:r,children:o,...l})=>(0,n.select)(e).isPromotionActive(a)&&(0,i.createElement)(rs,{alertKey:r,store:e,id:r,title:s,image:t,...l},o);ns.propTypes={store:h().string,image:h().elementType,title:h().any.isRequired,promoId:h().string.isRequired,alertKey:h().string.isRequired,children:h().node};const os=({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,p.sprintf)(/* translators: %1$s expands to YOAST SEO PREMIUM */
(0,p.__)("BLACK FRIDAY SALE: %1$s","wordpress-seo"),"YOAST SEO PREMIUM"):(0,d.createInterpolateElement)((0,p.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,p.__)("BLACK FRIDAY SALE: %1$s %2$sBuy now!%3$s","wordpress-seo"),"YOAST SEO PREMIUM","<a>","</a>"),{a:(0,i.createElement)("a",{href:(0,Tt.addQueryArgs)("https://yoa.st/black-friday-sale",r),target:"_blank",rel:"noreferrer"})});return a?null:(0,i.createElement)(ns,{id:`black-friday-2023-promotion-${t}`,promoId:"black-friday-2023-promotion",alertKey:"black-friday-2023-promotion",store:e,title:o,image:Image,...s},(0,i.createElement)("span",{className:"yoast-bf-sale-badge"},(0,p.__)("30% OFF!","wordpress-seo")," "),"sidebar"===t&&(0,i.createElement)("a",{className:"yst-block yst--mb-[1em]",href:(0,Tt.addQueryArgs)("https://yoa.st/black-friday-sale",r),target:"_blank",rel:"noreferrer"},(0,p.__)("Buy now!","wordpress-seo")))};os.propTypes={store:h().string,location:h().oneOf(["sidebar","metabox"])};const is=({store:e="yoast-seo/editor",...t})=>{const s=(0,n.useSelect)((t=>t(e).selectLinkParams()),[e]),a=(0,d.createInterpolateElement)((0,p.sprintf)(/* translators:  %1$s expands to Yoast, %2$s expands to a 'strong' start tag, %2$s to a 'strong' end tag. */
(0,p.__)("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,i.createElement)("strong",null)});return(0,i.createElement)(ns,{id:"black-friday-2023-sidebar-checklist",promoId:"black-friday-2023-checklist",alertKey:"black-friday-2023-sidebar-checklist",store:e,title:(0,p.__)("Is your WooCommerce store ready for Black Friday?","wordpress-seo"),...t},a," ",(0,i.createElement)("a",{href:(0,Tt.addQueryArgs)("https://yoa.st/black-friday-checklist",s),target:"_blank",rel:"noreferrer"},(0,p.__)("Get the checklist and start optimizing now!","wordpress-seo")))};is.propTypes={store:h().string};const ls="trustpilot-review-notification",cs="yoast-seo/editor";const ds=()=>{const e=(0,n.useSelect)((e=>e(cs).getIsPremium()),[]),t=(0,n.useSelect)((e=>e(cs).isAlertDismissed(ls)),[]),{overallScore:s}=(0,n.useSelect)((e=>e(cs).getResultsForFocusKeyword()),[]),{dismissAlert:a}=(0,n.useDispatch)(cs),r=(0,d.useCallback)((()=>a(ls)),[a]),[o,i]=(0,d.useState)(!1);return(0,d.useEffect)((()=>{var e,t;"good"===(null===(t=s,(0,J.isNil)(t)||(t/=10),e=function(e){switch(e){case"feedback":return{className:"na",screenReaderText:(0,p.__)("Feedback","wordpress-seo"),screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""};case"bad":return{className:"bad",screenReaderText:(0,p.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:(0,p.__)("Needs improvement","wordpress-seo"),screenReaderInclusiveLanguageText:(0,p.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:(0,p.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:(0,p.__)("OK","wordpress-seo"),screenReaderInclusiveLanguageText:(0,p.__)("Potentially non-inclusive","wordpress-seo")};case"good":return{className:"good",screenReaderText:(0,p.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:(0,p.__)("Good","wordpress-seo"),screenReaderInclusiveLanguageText:(0,p.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""}}}(ee.interpreters.scoreToRating(t)))||void 0===e?void 0:e.className)&&i(!0)}),[s]),{shouldShow:!e&&!t&&o,dismiss:r}},ps=(0,Mt.makeOutboundLink)(),us=()=>{const{shouldShow:e,dismiss:t}=ds(),{locationContext:s}=(0,Je.useRootContext)(),a=(0,n.useSelect)((e=>e(cs).selectLink("https://yoa.st/trustpilot-review",{context:s})),[s]);return(0,i.createElement)(as,{alertKey:ls,store:cs,id:ls,title:(0,p.__)("Show Yoast SEO some love!","wordpress-seo"),hasIcon:!1,isAlertDismissed:!e,onDismissed:t},(0,p.__)("Happy with the plugin?","wordpress-seo")," ",(0,i.createElement)(ps,{href:a,rel:"noopener noreferrer"},(0,p.__)("Leave a quick review","wordpress-seo")),".")};var ms,hs,gs,ys,fs,ws,bs,Es,vs,_s,ks,xs,Ss,Ts,Rs,Cs,Is,Ls,Ps,As,Os,Ds,Ms,Fs,Ns,qs,Us,Bs,$s,Ws,Ks,Hs,Ys,zs,js,Vs,Gs,Zs,Qs,Xs,Js,ea,ta,sa,aa,ra,na;function oa(){return oa=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},oa.apply(this,arguments)}const ia=e=>i.createElement("svg",oa({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 448 360"},e),ms||(ms=i.createElement("circle",{cx:226,cy:211,r:149,fill:"#f0ecf0"})),hs||(hs=i.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"})),gs||(gs=i.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"})),ys||(ys=i.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"})),fs||(fs=i.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"})),ws||(ws=i.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"})),bs||(bs=i.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"})),Es||(Es=i.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"})),vs||(vs=i.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"})),_s||(_s=i.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"})),ks||(ks=i.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"})),xs||(xs=i.createElement("circle",{cx:254.13,cy:104.05,r:4.19,fill:"#000001"})),Ss||(Ss=i.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"})),Ts||(Ts=i.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"})),Rs||(Rs=i.createElement("circle",{cx:219.55,cy:95.28,r:4,fill:"#000001"})),Cs||(Cs=i.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"})),Is||(Is=i.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"})),Ls||(Ls=i.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"})),Ps||(Ps=i.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"})),As||(As=i.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"})),Os||(Os=i.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"})),Ds||(Ds=i.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"})),Ms||(Ms=i.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"})),Fs||(Fs=i.createElement("circle",{cx:38.13,cy:30.03,r:3.14,fill:"#b89ac8"})),Ns||(Ns=i.createElement("circle",{cx:60.26,cy:39.96,r:3.14,fill:"#e31e0c"})),qs||(qs=i.createElement("circle",{cx:50.29,cy:25.63,r:3.14,fill:"#3baa45"})),Us||(Us=i.createElement("circle",{cx:22.19,cy:19.21,r:3.14,fill:"#2ca9e1"})),Bs||(Bs=i.createElement("circle",{cx:22.19,cy:30.03,r:3.14,fill:"#e31e0c"})),$s||($s=i.createElement("circle",{cx:26.86,cy:8.28,r:3.14,fill:"#3baa45"})),Ws||(Ws=i.createElement("circle",{cx:49.32,cy:39.99,r:3.14,fill:"#e31e0c"})),Ks||(Ks=i.createElement("circle",{cx:63.86,cy:59.52,r:3.14,fill:"#f8ad39"})),Hs||(Hs=i.createElement("circle",{cx:50.88,cy:50.72,r:3.14,fill:"#3baa45"})),Ys||(Ys=i.createElement("circle",{cx:63.47,cy:76.17,r:3.14,fill:"#e31e0c"})),zs||(zs=i.createElement("circle",{cx:38.34,cy:14.83,r:3.14,fill:"#2ca9e1"})),js||(js=i.createElement("circle",{cx:44.44,cy:5.92,r:3.14,fill:"#f8ad39"})),Vs||(Vs=i.createElement("circle",{cx:57.42,cy:10.24,r:3.14,fill:"#e31e0c"})),Gs||(Gs=i.createElement("circle",{cx:66.81,cy:12.4,r:3.14,fill:"#2ca9e1"})),Zs||(Zs=i.createElement("circle",{cx:77.95,cy:5.14,r:3.14,fill:"#b89ac8"})),Qs||(Qs=i.createElement("circle",{cx:77.95,cy:30.34,r:3.14,fill:"#e31e0c"})),Xs||(Xs=i.createElement("circle",{cx:80.97,cy:16.55,r:3.14,fill:"#f8ad39"})),Js||(Js=i.createElement("circle",{cx:62.96,cy:27.27,r:3.14,fill:"#3baa45"})),ea||(ea=i.createElement("circle",{cx:75.36,cy:48.67,r:3.14,fill:"#2ca9e1"})),ta||(ta=i.createElement("circle",{cx:76.11,cy:65.31,r:3.14,fill:"#3baa45"})),sa||(sa=i.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"})),aa||(aa=i.createElement("path",{fill:"#074a67",d:"M67.75 251.08c0-4.65 10.13-72.65 10.13-72.65h2.8l-9.09 72.3z"})),ra||(ra=i.createElement("ellipse",{cx:255.38,cy:103.18,fill:"#fff",rx:1.84,ry:1.77})),na||(na=i.createElement("ellipse",{cx:221.24,cy:94.75,fill:"#fff",rx:1.84,ry:1.77}))),la=({store:e="yoast-seo/editor",image:t=ia,url:s,...a})=>(0,n.useSelect)((t=>t(e).getIsPremium()))?null:(0,i.createElement)(rs,{alertKey:"webinar-promo-notification",store:e,id:"webinar-promo-notification",title:(0,p.__)("Join our FREE webinar for SEO success","wordpress-seo"),image:t,url:s,...a},(0,p.__)("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,i.createElement)("a",{href:s,target:"_blank",rel:"noreferrer"},(0,p.__)("Sign up today!","wordpress-seo")));la.propTypes={store:h().string,image:h().elementType,url:h().string.isRequired};const ca=la,da=()=>window.wpseoScriptData&&"1"===window.wpseoScriptData.isWooCommerceActive,pa=(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)},ua=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.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"}))})),ma=(e=null)=>(0,i.useMemo)((()=>{const t={role:"img","aria-hidden":"true"};return null!==e&&(t.focusable=e?"true":"false"),t}),[e]),ha=({id:e,postTypeName:t,children:s,title:a,isOpen:r,close:n,open:o,shouldCloseOnClickOutside:l,showChangesWarning:c,SuffixHeroIcon:u})=>(0,i.createElement)(d.Fragment,null,r&&(0,i.createElement)(Je.LocationProvider,{value:"modal"},(0,i.createElement)(Qt,{title:a,onRequestClose:n,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal",id:"id",shouldCloseOnClickOutside:l},(0,i.createElement)("div",{className:"yoast-content-container"},(0,i.createElement)("div",{className:"yoast-modal-content"},s)),(0,i.createElement)("div",{className:"yoast-notice-container"},(0,i.createElement)("hr",null),(0,i.createElement)("div",{className:"yoast-button-container"},c&&(0,i.createElement)("p",null,/* Translators: %s translates to the Post Label in singular form */
(0,p.sprintf)((0,p.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),t)),(0,i.createElement)("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:n},/* Translators: %s translates to the Post Label in singular form */
(0,p.sprintf)((0,p.__)("Return to your %s","wordpress-seo"),t)))))),(0,i.createElement)(Dt,{id:e+"-open-button",title:a,SuffixHeroIcon:u,suffixIcon:u?null:{size:"20px",icon:"pencil-square"},onClick:o}));ha.propTypes={id:h().string.isRequired,postTypeName:h().string.isRequired,children:h().oneOfType([h().node,h().arrayOf(h().node)]).isRequired,title:h().string.isRequired,isOpen:h().bool.isRequired,open:h().func.isRequired,close:h().func.isRequired,shouldCloseOnClickOutside:h().bool,showChangesWarning:h().bool,SuffixHeroIcon:h().object},ha.defaultProps={shouldCloseOnClickOutside:!0,showChangesWarning:!0};const ga=ha,ya=(0,xt.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}}))])(ga),fa=()=>{const e=(0,n.useSelect)((e=>e("yoast-seo/editor").getEstimatedReadingTime()),[]),t=(0,d.useMemo)((()=>(0,J.get)(window,"wpseoAdminL10n.shortlinks-insights-estimated_reading_time","")),[]);return(0,i.createElement)(At.InsightsCard,{amount:e,unit:(0,p._n)("minute","minutes",e,"wordpress-seo"),title:(0,p.__)("Reading time","wordpress-seo"),linkTo:t
/* translators: Hidden accessibility text. */,linkText:(0,p.__)("Learn more about reading time","wordpress-seo")})},wa=(0,Mt.makeOutboundLink)();function ba(e,t,s){const a=function(e){switch(e){case ee.DIFFICULTY.FAIRLY_DIFFICULT:case ee.DIFFICULTY.DIFFICULT:case ee.DIFFICULTY.VERY_DIFFICULT:return(0,p.__)("Try to make shorter sentences, using less difficult words to improve readability","wordpress-seo");case ee.DIFFICULTY.NO_DATA:return(0,p.__)("Continue writing to get insight into the readability of your text!","wordpress-seo");default:return(0,p.__)("Good job!","wordpress-seo")}}(t);return(0,i.createElement)("span",null,function(e,t){return-1===e?(0,p.sprintf)((0,p.__)("Your text should be slightly longer to calculate your Flesch reading ease score.","wordpress-seo")):(0,p.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,p.__)("The copy scores %1$s in the test, which is considered %2$s to read.","wordpress-seo"),e,function(e){switch(e){case ee.DIFFICULTY.NO_DATA:return(0,p.__)("no data","wordpress-seo");case ee.DIFFICULTY.VERY_EASY:return(0,p.__)("very easy","wordpress-seo");case ee.DIFFICULTY.EASY:return(0,p.__)("easy","wordpress-seo");case ee.DIFFICULTY.FAIRLY_EASY:return(0,p.__)("fairly easy","wordpress-seo");case ee.DIFFICULTY.OKAY:return(0,p.__)("okay","wordpress-seo");case ee.DIFFICULTY.FAIRLY_DIFFICULT:return(0,p.__)("fairly difficult","wordpress-seo");case ee.DIFFICULTY.DIFFICULT:return(0,p.__)("difficult","wordpress-seo");case ee.DIFFICULTY.VERY_DIFFICULT:return(0,p.__)("very difficult","wordpress-seo")}}(t))}(e,t)," ",t>=ee.DIFFICULTY.FAIRLY_DIFFICULT?(0,i.createElement)(wa,{href:s},a+"."):a)}const Ea=()=>{let e=(0,n.useSelect)((e=>e("yoast-seo/editor").getFleschReadingEaseScore()),[]);const t=(0,d.useMemo)((()=>(0,J.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease","")),[]),s=(0,n.useSelect)((e=>e("yoast-seo/editor").getFleschReadingEaseDifficulty()),[e]),a=(0,d.useMemo)((()=>{const t=(0,J.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease_article","");return ba(e,s,t)}),[e,s]);return-1===e&&(e="?"),(0,i.createElement)(At.InsightsCard,{amount:e,unit:(0,p.__)("out of 100","wordpress-seo"),title:(0,p.__)("Flesch reading ease","wordpress-seo"),linkTo:t
/* translators: Hidden accessibility text. */,linkText:(0,p.__)("Learn more about Flesch reading ease","wordpress-seo"),description:a})};let va,_a,ka,xa;const Sa=/<(\/)?(\w+)\s*(\/)?>/g;function Ta(e,t,s,a,r){return{element:e,tokenStart:t,tokenLength:s,prevOffset:a,leadingTextStart:r,children:[]}}function Ra(){const e=va.length-_a;0!==e&&ka.push(va.substring(_a,_a+e))}function Ca(e){const{element:t,tokenStart:s,tokenLength:a,prevOffset:r,children:n}=e,o=xa[xa.length-1],i=va.substring(o.prevOffset,s);i&&o.children.push(i),o.children.push((0,d.cloneElement)(t,null,...n)),o.prevOffset=r||s+a}function Ia(e){const t=function(){const e=Sa.exec(va);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=xa.length,i=r>_a?_a:null;if(!e[a])return Ra(),!1;switch(s){case"no-more-tokens":if(0!==o){const{leadingTextStart:e,tokenStart:t}=xa.pop();ka.push(va.substring(e,e+t))}return Ra(),!1;case"self-closed":return 0===o?(null!==i&&ka.push(va.substring(i,r)),ka.push(e[a]),_a=r+n,!0):(Ca(Ta(e[a],r,n)),_a=r+n,!0);case"opener":return xa.push(Ta(e[a],r,n,r+n,i)),_a=r+n,!0;case"closer":if(1===o)return function(e){const{element:t,leadingTextStart:s,prevOffset:a,tokenStart:r,children:n}=xa.pop(),o=e?va.substring(a,e):va.substring(a);o&&n.push(o),null!==s&&ka.push(va.substring(s,r)),ka.push((0,d.cloneElement)(t,null,...n))}(r),_a=r+n,!0;const t=xa.pop(),s=va.substring(t.prevOffset,r);t.children.push(s),t.prevOffset=r+n;const l=Ta(t.element,t.tokenStart,t.tokenLength,r+n);return l.children=t.children,Ca(l),_a=r+n,!0;default:return Ra(),!1}}const La=(e,t)=>{if(va=e,_a=0,ka=[],xa=[],Sa.lastIndex=0,!(e=>{const t="object"==typeof e,s=t&&Object.values(e);return t&&s.length&&s.every((e=>(0,d.isValidElement)(e)))})(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(Ia(t));return(0,d.createElement)(d.Fragment,null,...ka)},Pa=({data:e,itemScreenReaderText:t,className:s,...a})=>{const r=(0,d.useMemo)((()=>{var t,s;return null!==(t=null===(s=(0,J.maxBy)(e,"number"))||void 0===s?void 0:s.number)&&void 0!==t?t:0}),[e]);return(0,i.createElement)("ul",{className:It()("yoast-data-model",s),...a},e.map((({name:e,number:s})=>(0,i.createElement)("li",{key:`${e}_dataItem`,style:{"--yoast-width":s/r*100+"%"}},e,(0,i.createElement)("span",null,s),t&&(0,i.createElement)("span",{className:"screen-reader-text"},(0,p.sprintf)(t,s))))))};Pa.propTypes={data:h().arrayOf(h().shape({name:h().string.isRequired,number:h().number.isRequired})),itemScreenReaderText:h().string,className:h().string},Pa.defaultProps={data:[],itemScreenReaderText:"",className:""};const Aa=Pa,Oa=(0,Mt.makeOutboundLink)(),Da=({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,d.useMemo)((()=>(0,J.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${e}-prominent_words`,"")),[e]),r=(0,d.useMemo)((()=>{const e=(0,J.get)(window,"wpseoAdminL10n.shortlinks-insights-keyword_research_link","");return La((0,p.sprintf)(
// translators: %1$s and %2$s are replaced by opening and closing <a> tags.
(0,p.__)("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,i.createElement)(Oa,{href:e})})}),[]),o=(0,d.useMemo)((()=>La((0,p.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,p.__)("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,i.createElement)("b",null)})),[]),l=(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:[]}),[]),c=(0,d.useMemo)((()=>{const e=(0,p.sprintf)(
// translators: %1$s expands to Yoast SEO Premium.
(0,p.__)("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})))}),[]),u=(0,d.useMemo)((()=>s?c:l.map((({word:e,occurrence:t})=>({name:e,number:t})))),[l,c]);if(!t)return null;const{locationContext:m}=(0,Je.useRootContext)();return(0,i.createElement)("div",{className:"yoast-prominent-words"},(0,i.createElement)("div",{className:"yoast-field-group__title"},(0,i.createElement)("b",null,(0,p.__)("Prominent words","wordpress-seo"))),!s&&(0,i.createElement)("p",null,0===u.length?(0,p.__)("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,p.__)("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,i.createElement)("p",null,o),s&&(0,i.createElement)(Oa,{href:(0,Tt.addQueryArgs)(a,{context:m}),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",className:"yoast-button yoast-button-upsell"},(0,p.sprintf)(
// translators: %s expands to `Premium` (part of add-on name).
(0,p.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,i.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})),(0,i.createElement)("p",null,r),(0,i.createElement)(Aa,{data:u,itemScreenReaderText:/* translators: Hidden accessibility text; %d expands to the number of occurrences. */
(0,p.__)("%d occurrences","wordpress-seo"),"aria-label":(0,p.__)("Prominent words","wordpress-seo"),className:s?"yoast-data-model--upsell":null}))};Da.propTypes={location:h().string.isRequired};const Ma=Da,Fa=(0,Mt.makeOutboundLink)(),Na=({location:e})=>{const t=(0,d.useMemo)((()=>(0,J.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${e}-text_formality`,"")),[e]),s=(0,d.useMemo)((()=>La((0,p.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,p.__)("%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,i.createElement)("b",null)})),[]);return(0,i.createElement)(d.Fragment,null,(0,i.createElement)("div",null,(0,i.createElement)("p",null,s),(0,i.createElement)(Fa,{href:t,className:"yoast-button yoast-button-upsell"},(0,p.sprintf)(
// Translators: %s expands to `Premium` (part of add-on name).
(0,p.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,i.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"}))))};Na.propTypes={location:h().string.isRequired};const qa=Na,Ua=({location:e,name:t})=>{const s=(0,n.useSelect)((e=>e("yoast-seo/editor").isFormalitySupported()),[]),a=ne().isPremium,r=a?(0,J.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_premium",""):(0,J.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_free",""),o=(0,p.__)("Read more about text formality.","wordpress-seo");return s?(0,i.createElement)("div",{className:"yoast-text-formality"},(0,i.createElement)("div",{className:"yoast-field-group__title"},(0,i.createElement)("b",null,(0,p.__)("Text formality","wordpress-seo")),(0,i.createElement)(At.HelpIcon,{linkTo:r,linkText:o})),a?(0,i.createElement)(c.Slot,{name:t}):(0,i.createElement)(qa,{location:e})):null};Ua.propTypes={location:h().string.isRequired,name:h().string.isRequired};const Ba=Ua,$a=()=>{const e=(0,n.useSelect)((e=>e("yoast-seo/editor").getTextLength()),[]),t=(0,d.useMemo)((()=>(0,J.get)(window,"wpseoAdminL10n.shortlinks-insights-word_count","")),[]);let s=(0,p._n)("word","words",e.count,"wordpress-seo"),a=(0,p.__)("Word count","wordpress-seo"),r=(0,p.__)("Learn more about word count","wordpress-seo");return"character"===e.unit&&(s=(0,p._n)("character","characters",e.count,"wordpress-seo"),a=(0,p.__)("Character count","wordpress-seo"),
/* translators: Hidden accessibility text. */
r=(0,p.__)("Learn more about character count","wordpress-seo")),(0,i.createElement)(At.InsightsCard,{amount:e.count,unit:s,title:a,linkTo:t,linkText:r})},Wa=Xe()(ua)`
	width: 18px;
	height: 18px;
	margin: 3px;
`,Ka=({location:e})=>{const t=(0,n.useSelect)((e=>e("yoast-seo/editor").getIsElementorEditor()),[]),s=(0,n.useSelect)((e=>e("yoast-seo/editor").isFleschReadingEaseAvailable()),[]),a=ma();return(0,i.createElement)(ya,{title:(0,p.__)("Insights","wordpress-seo"),id:`yoast-insights-modal-${e}`,shouldCloseOnClickOutside:!t,showChangesWarning:!1,SuffixHeroIcon:(0,i.createElement)(Wa,{className:"yst-text-slate-500",...a})},(0,i.createElement)("div",{className:"yoast-insights yoast-modal-content--columns"},(0,i.createElement)(Ma,{location:e}),(0,i.createElement)("div",null,s&&(0,i.createElement)("div",{className:"yoast-insights-row"},(0,i.createElement)(Ea,null)),(0,i.createElement)("div",{className:"yoast-insights-row yoast-insights-row--columns"},(0,i.createElement)(fa,null),(0,i.createElement)($a,null)),(0,de.isFeatureEnabled)("TEXT_FORMALITY")&&(0,i.createElement)(Ba,{location:e,name:"YoastTextFormalityMetabox"}))))};Ka.propTypes={location:h().string},Ka.defaultProps={location:"sidebar"};const Ha=Ka;function Ya(e){return 0===e.message.length?null:(0,i.createElement)(At.Alert,{type:e.type},e.message)}Ya.propTypes={message:h().oneOfType([h().array,h().string]).isRequired,type:h().string.isRequired};const za=(0,n.withSelect)((e=>{const{getWarningMessage:t}=e("yoast-seo/editor");return{message:t(),type:"info"}}))(Ya),ja=({children:e})=>(0,i.createElement)("div",null,e);ja.propTypes={renderPriority:h().number.isRequired,children:h().node.isRequired};const Va=ja,Ga=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.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"}))})),Za=window.yoast.searchMetadataPreviews,Qa=Xe()(At.StyledSection)`
	&${At.StyledSectionBase} {
		padding: 0;

		& ${At.StyledHeading} {
			${(0,Mt.getDirectionalStyle)("padding-left","padding-right")}: 20px;
			margin-left: ${(0,Mt.getDirectionalStyle)("0","20px")};
		}
	}
`,Xa=({children:e,title:t,icon:s,hasPaperStyle:a,shoppingData:r})=>(0,i.createElement)(Qa,{headingLevel:3,headingText:t,headingIcon:s,headingIconColor:"#555",hasPaperStyle:a,shoppingData:r},e);Xa.propTypes={children:h().element,title:h().string,icon:h().string,hasPaperStyle:h().bool,shoppingData:h().object},Xa.defaultProps={hasPaperStyle:!0,shoppingData:null};const Ja=Xa;window.wp.sanitize;const{stripHTMLTags:er}=Mt.strings,tr=(0,J.memoize)(((e,t)=>0===e?J.noop:(0,J.debounce)((s=>t(s,e)),500))),sr=({link:e,text:t})=>(0,i.createElement)(u.Root,null,(0,i.createElement)("p",null,t),(0,i.createElement)(u.Button,{href:e,as:"a",className:"yst-gap-2 yst-mb-5 yst-mt-2",variant:"upsell",target:"_blank",rel:"noopener"},(0,i.createElement)(g,{className:"yst-w-4 yst-h-4 yst--ml-1 yst-shrink-0"}),(0,p.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */
(0,p.__)("Unlock with %1$s","wordpress-seo"),"Yoast WooCommerce SEO")));sr.propTypes={link:h().string.isRequired,text:h().string.isRequired};const ar=sr,rr=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,J.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!(0,J.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){const t=(0,J.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],J.identity);return{url:e.url,title:er(t(e.title)),description:er(t(e.description)),filteredSEOTitle:e.filteredSEOTitle?er(t(e.filteredSEOTitle)):""}}(e);const s=t._applyModifications.bind(t);return{url:e.url,title:er(s("data_page_title",e.title)),description:er(s("data_meta_desc",e.description)),filteredSEOTitle:e.filteredSEOTitle?er(s("data_page_title",e.filteredSEOTitle)):""}}(e)},nr=(0,xt.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:tr(l,o)}}))])((e=>{const t=(0,J.get)(window,"wpseoScriptData.metabox.woocommerceUpsellGooglePreviewLink",""),s=(0,J.get)(window,"wpseoScriptData.woocommerceUpsell",""),a=(0,p.__)("Want an enhanced Google preview of how your WooCommerce products look in the search results?","wordpress-seo");return(0,i.createElement)(Je.LocationConsumer,null,(r=>(0,i.createElement)(Ja,{icon:"eye",hasPaperStyle:e.hasPaperStyle},(0,i.createElement)(i.Fragment,null,s&&(0,i.createElement)(ar,{link:t,text:a}),(0,i.createElement)(Za.SnippetEditor,{...e,descriptionPlaceholder:(0,p.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:rr,showCloseButton:!1,idSuffix:r})))))})),or={name:"author_first_name",label:"Author first name",placeholder:"%%author_first_name%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_first_name","")},regexp:new RegExp("%%author_first_name%%","g")},ir={name:"author_last_name",label:"Author last name",placeholder:"%%author_last_name%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_last_name","")},regexp:new RegExp("%%author_last_name%%","g")},lr={name:"currentdate",label:"Current date",placeholder:"%%currentdate%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentdate","")},regexp:new RegExp("%%currentdate%%","g")},cr={name:"currentday",label:"Current day",placeholder:"%%currentday%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentday","")},regexp:new RegExp("%%currentday%%","g")},dr={name:"currentmonth",label:"Current month",placeholder:"%%currentmonth%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentmonth","")},regexp:new RegExp("%%currentmonth%%","g")},pr={name:"category",label:"Category",placeholder:"%%category%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category","")},regexp:new RegExp("%%category%%","g")},ur={name:"category_title",label:"Category Title",placeholder:"%%category_title%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category_title","")},regexp:new RegExp("%%category_title%%","g")},mr={name:"currentyear",label:"Current year",placeholder:"%%currentyear%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentyear","")},regexp:new RegExp("%%currentyear%%","g")},hr={name:"date",label:"Date",placeholder:"%%date%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.date","")},regexp:new RegExp("%%date%%","g")},gr={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")},yr={name:"focuskw",label:"Focus keyphrase",placeholder:"%%focuskw%%",aliases:[],getReplacement:function(){return(0,n.select)("yoast-seo/editor").getFocusKeyphrase()},regexp:new RegExp("%%focuskw%%|%%keyword%%","g")},fr={name:"id",label:"ID",placeholder:"%%id%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.id","")},regexp:new RegExp("%%id%%","g")},wr={name:"modified",label:"Modified",placeholder:"%%modified%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.modified","")},regexp:new RegExp("%%modified%%","g")},br={name:"name",label:"Name",placeholder:"%%name%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.name","")},regexp:new RegExp("%%name%%","g")},Er={name:"page",label:"Page",placeholder:"%%page%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.page","")},regexp:new RegExp("%%page%%","g")},vr={name:"pagenumber",label:"Pagenumber",placeholder:"%%pagenumber%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagenumber","")},regexp:new RegExp("%%pagenumber%%","g")},_r={name:"pagetotal",label:"Pagetotal",placeholder:"%%pagetotal%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagetotal","")},regexp:new RegExp("%%pagetotal%%","g")},kr={name:"permalink",label:"Permalink",placeholder:"%%permalink%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.permalink","")},regexp:new RegExp("%%permalink%%","g")},xr={name:"post_content",label:"Post Content",placeholder:"%%post_content%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_content","")},regexp:new RegExp("%%post_content%%","g")},Sr={name:"post_day",label:"Post Day",placeholder:"%%post_day%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_day","")},regexp:new RegExp("%%post_day%%","g")},Tr={name:"post_month",label:"Post Month",placeholder:"%%post_month%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_month","")},regexp:new RegExp("%%post_month%%","g")},Rr={name:"post_year",label:"Post Year",placeholder:"%%post_year%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_year","")},regexp:new RegExp("%%post_year%%","g")},Cr={name:"pt_plural",label:"Post type (plural)",placeholder:"%%pt_plural%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_plural","")},regexp:new RegExp("%%pt_plural%%","g")},Ir={name:"pt_single",label:"Post type (singular)",placeholder:"%%pt_single%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_single","")},regexp:new RegExp("%%pt_single%%","g")},Lr={name:"primary_category",label:"Primary category",placeholder:"%%primary_category%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.primary_category","")},regexp:new RegExp("%%primary_category%%","g")},Pr={name:"searchphrase",label:"Search phrase",placeholder:"%%searchphrase%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.searchphrase","")},regexp:new RegExp("%%searchphrase%%","g")},Ar={name:"sep",label:"Separator",placeholder:"%%sep%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sep","")},regexp:new RegExp("%%sep%%(\\s*%%sep%%)*","g")},Or={name:"sitedesc",label:"Tagline",placeholder:"%%sitedesc%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitedesc","")},regexp:new RegExp("%%sitedesc%%","g")},Dr={name:"sitename",label:"Site title",placeholder:"%%sitename%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitename","")},regexp:new RegExp("%%sitename%%","g")},Mr={name:"tag",label:"Tag",placeholder:"%%tag%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.tag","")},regexp:new RegExp("%%tag%%","g")},Fr={name:"term404",label:"Term404",placeholder:"%%term404%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term404","")},regexp:new RegExp("%%term404%%","g")},Nr={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,J.get)(window,"YoastSEO.app.rawData.text","")},regexp:new RegExp("%%term_description%%|%%tag_description%%|%%category_description%%","g")},qr={name:"term_hierarchy",label:"Term hierarchy",placeholder:"%%term_hierarchy%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_hierarchy","")},regexp:new RegExp("%%term_hierarchy%%","g")},Ur={name:"term_title",label:"Term title",placeholder:"%%term_title%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_title","")},regexp:new RegExp("%%term_title%%","g")},Br={name:"title",label:"Title",placeholder:"%%title%%",aliases:[],getReplacement:function(){return(0,n.select)("yoast-seo/editor").getEditorDataTitle()},regexp:new RegExp("%%title%%","g")},$r={name:"user_description",label:"User description",placeholder:"%%user_description%%",aliases:[],getReplacement:function(){return(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.user_description","")},regexp:new RegExp("%%user_description%%","g")};var Wr={source:"wpseoScriptData.analysis.plugins.replaceVars",scope:[],aliases:[]},Kr=function(e,t,s){this.placeholder=e,this.replacement=t,this.options=(0,J.defaults)(s,Wr)};Kr.prototype.getPlaceholder=function(e){return(e=e||!1)&&this.hasAlias()?this.placeholder+"|"+this.getAliases().join("|"):this.placeholder},Kr.prototype.setSource=function(e){this.options.source=e},Kr.prototype.hasScope=function(){return!(0,J.isEmpty)(this.options.scope)},Kr.prototype.addScope=function(e){this.hasScope()||(this.options.scope=[]),this.options.scope.push(e)},Kr.prototype.inScope=function(e){return!this.hasScope()||(0,J.indexOf)(this.options.scope,e)>-1},Kr.prototype.hasAlias=function(){return!(0,J.isEmpty)(this.options.aliases)},Kr.prototype.addAlias=function(e){this.hasAlias()||(this.options.aliases=[]),this.options.aliases.push(e)},Kr.prototype.getAliases=function(){return this.options.aliases};const Hr=Kr,Yr="replaceVariablePlugin";let zr=null,jr=null;const Vr=e=>{["content","title","snippet_title","snippet_meta","primary_category","data_page_title","data_meta_desc","excerpt"].forEach((t=>{ye(t,e,Yr,10)}))},Gr=(e="")=>{switch(""===e&&(e=(0,J.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[]},Zr=e=>Vr((t=>t.replace(new RegExp(e.placeholder,"g"),e.replacement))),Qr=()=>{if(null===jr){jr=[];const t=(0,J.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.hidden_replace_vars",[]);(null===zr&&(zr=Gr().map((t=>null==e?void 0:e[t])).filter(Boolean)),zr).forEach((e=>{const s=t.includes(e.name);jr.push({name:e.name,label:e.label,value:e.placeholder,hidden:s}),e.aliases.forEach((e=>{jr.push({name:e.name,label:e.label,value:e.placeholder,hidden:s})}))}))}return jr},{stripHTMLTags:Xr}=Mt.strings,Jr=(e,t)=>{const s=(0,n.select)("yoast-seo/editor").getSnippetEditorTemplates();""===e.title&&(e.title=s.title),""===e.description&&(e.description=s.description);let a=0;return t.shortenedBaseUrl&&"string"==typeof t.shortenedBaseUrl&&(a=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[a]&&(e.url=e.url.slice(0,a)+e.url.slice(a+1)),{url:e.url,title:Xr(we("data_page_title",e.title)),description:Xr(we("data_meta_desc",e.description)),filteredSEOTitle:Xr(we("data_page_title",e.filteredSEOTitle))}},en=({isLoading:e,onLoad:t,location:s,...a})=>((0,d.useEffect)((()=>{setTimeout((()=>{e&&t()}))})),e?null:(0,i.createElement)(Ja,{icon:"eye",hasPaperStyle:a.hasPaperStyle},(0,i.createElement)(Za.SnippetEditor,{...a,descriptionPlaceholder:(0,p.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:Jr,showCloseButton:!1,idSuffix:s})));en.propTypes={isLoading:h().bool.isRequired,onLoad:h().func.isRequired,hasPaperStyle:h().bool.isRequired,location:h().string.isRequired};const tn=(0,xt.compose)([(0,n.withSelect)((e=>{const{getBaseUrlFromSettings:t,getDateFromSettings:s,getEditorDataImageUrl:a,getFocusKeyphrase:r,getRecommendedReplaceVars:n,getSiteIconUrlFromSettings:o,getSnippetEditorData:i,getSnippetEditorIsLoading:l,getSnippetEditorMode:c,getSnippetEditorWordsToHighlight:d,isCornerstoneContent:p,getContentLocale:u,getSiteName:m}=e("yoast-seo/editor");return{baseUrl:t(),data:i(),date:s(),faviconSrc:o(),isLoading:l(),keyword:r(),mobileImageSrc:a(),mode:c(),recommendedReplacementVariables:n(),replacementVariables:Qr(),wordsToHighlight:d(),isCornerstone:p(),locale:u(),siteName:m()}})),(0,n.withDispatch)((e=>{const{updateData:t,switchMode:s,updateAnalysisData:a,loadSnippetEditorData:r}=e("yoast-seo/editor");return{onChange:(e,a)=>{switch(e){case"mode":s(a);break;case"slug":t({slug:a});break;default:t({[e]:a})}},onChangeAnalysisData:a,onLoad:r}})),es()])(en),sn=Xe()(Ga)`
	width: 18px;
	height: 18px;
	margin: 3px;
`,an=()=>{const e=ma(),t=(0,n.useSelect)((e=>e("yoast-seo/editor").getIsElementorEditor()),[]);return(0,i.createElement)(ya,{title:(0,p.__)("Search appearance","wordpress-seo"),id:"yoast-search-appearance-modal",shouldCloseOnClickOutside:!1,SuffixHeroIcon:(0,i.createElement)(sn,{className:"yst-text-slate-500",...e})},!0===t&&(0,i.createElement)(tn,{showCloseButton:!1,hasPaperStyle:!1}),!1===t&&(0,i.createElement)(nr,{showCloseButton:!1,hasPaperStyle:!1}))},rn=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.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"}))})),nn=Xe().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"};
`,on=e=>{const{siteUrl:t}=e;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("span",{className:"screen-reader-text"},t),(0,i.createElement)(nn,{"aria-hidden":"true"},(0,i.createElement)("span",null,t)))};on.propTypes={siteUrl:h().string.isRequired};const ln=on,cn=window.yoast.socialMetadataForms,dn=window.yoast.styleGuide,pn=Xe().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;
	}
`,un=Xe().img`
	&&{
		height: 100%;
		position: absolute;
		width: 100%;
		object-fit: cover;
	}
`,mn=Xe().div`
	padding-bottom: ${e=>e.aspectRatio}%;
`,hn=e=>{const{imageProps:t,width:s,height:a,imageMode:r}=e;return"landscape"===r?(0,i.createElement)(mn,{aspectRatio:t.aspectRatio},(0,i.createElement)(un,{src:t.src,alt:t.alt})):(0,i.createElement)(pn,{src:t.src,alt:t.alt,width:s,height:a,imageProperties:t})};function gn(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 yn(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 fn(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,cn.determineFacebookImageMode)(a));const n=function(e){return"Twitter"===e?cn.TWITTER_IMAGE_SIZES:cn.FACEBOOK_IMAGE_SIZES}(t),o=function(e,t,s){return"square"===s&&t.width===t.height?{width:e.squareWidth,height:e.squareHeight}:yn(t,gn(e,t,s))}(n,a,r);return{mode:r,height:o.height,width:o.width}}async function wn(e,t,s=!1){try{return{imageProperties:await fn(e,t,s),status:"loaded"}}catch(e){return{imageProperties:null,status:"errored"}}}hn.propTypes={imageProps:h().shape({src:h().string.isRequired,alt:h().string.isRequired,aspectRatio:h().number.isRequired}).isRequired,width:h().number.isRequired,height:h().number.isRequired,imageMode:h().string},hn.defaultProps={imageMode:"landscape"};const bn=Xe().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: ${dn.colors.$color_white};
`,En=Xe().div`
	box-sizing: border-box;
	max-width: ${cn.FACEBOOK_IMAGE_SIZES.landscapeWidth}px;
	height: ${cn.FACEBOOK_IMAGE_SIZES.landscapeHeight}px;
	background-color: ${dn.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 vn extends i.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 wn(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:cn.FACEBOOK_IMAGE_SIZES.squareHeight+"px",width:cn.FACEBOOK_IMAGE_SIZES.squareWidth+"px"};case"portrait":return{height:cn.FACEBOOK_IMAGE_SIZES.portraitHeight+"px",width:cn.FACEBOOK_IMAGE_SIZES.portraitWidth+"px"};case"landscape":return{height:cn.FACEBOOK_IMAGE_SIZES.landscapeHeight+"px",width:cn.FACEBOOK_IMAGE_SIZES.landscapeWidth+"px"}}}render(){const{imageProperties:e,status:t}=this.state;if("loading"===t||""===this.props.src||"errored"===t)return(0,i.createElement)(En,{onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},(0,p.__)("Select image","wordpress-seo"));const s=this.retrieveContainerDimensions(e.mode);return(0,i.createElement)(bn,{mode:e.mode,dimensions:s,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onClick:this.props.onImageClick},(0,i.createElement)(hn,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:cn.FACEBOOK_IMAGE_SIZES.aspectRatio},width:e.width,height:e.height,imageMode:e.mode}))}}vn.propTypes={src:h().string,alt:h().string,onImageLoaded:h().func,onImageClick:h().func,onMouseEnter:h().func,onMouseLeave:h().func},vn.defaultProps={src:"",alt:"",onImageLoaded:J.noop,onImageClick:J.noop,onMouseEnter:J.noop,onMouseLeave:J.noop};const kn=vn,xn=Xe().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;
`,Sn=Xe().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;
	}
`,Tn=e=>{switch(e){case"landscape":return"527px";case"square":case"portrait":return"369px";default:return"476px"}},Rn=Xe().div`
	box-sizing: border-box;
	display: flex;
	flex-direction: ${e=>"landscape"===e.mode?"column":"row"};
	background-color: #f2f3f5;
	max-width: 527px;
`,Cn=Xe().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 In extends i.Component{constructor(e){super(e),this.state={imageMode:null,maxLineCount:0,descriptionLineCount:0},this.facebookTitleRef=l().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,i.createElement)(Rn,{id:"facebookPreview",mode:e},(0,i.createElement)(kn,{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,i.createElement)(Cn,{mode:e},(0,i.createElement)(ln,{siteUrl:this.props.siteUrl,mode:e}),(0,i.createElement)(xn,{ref:this.facebookTitleRef,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,lineCount:t},this.props.title),s>0&&(0,i.createElement)(Sn,{maxWidth:Tn(e),onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,lineCount:s},this.props.description)))}}In.propTypes={siteUrl:h().string.isRequired,title:h().string.isRequired,description:h().string,imageUrl:h().string,imageFallbackUrl:h().string,alt:h().string,onSelect:h().func,onImageClick:h().func,onMouseHover:h().func},In.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{}};const Ln=In,Pn=Xe().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;
`,An=e=>(0,i.createElement)(Pn,null,(0,i.createElement)("span",null,e.siteUrl));An.propTypes={siteUrl:h().string.isRequired};const On=An,Dn=(e,t=!0)=>e?`\n\t\t\tmax-width: ${cn.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: ${cn.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`,Mn=Xe().div`
	position: relative;
	box-sizing: content-box;
	overflow: hidden;
	background-color: #e1e8ed;
	flex-shrink: 0;
	${e=>Dn(e.isLarge)}
`,Fn=Xe().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=>Dn(e.isLarge,!1)}
`,Nn=Xe()(Fn)`
	${e=>e.isLarge&&`height: ${cn.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 qn extends l().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 wn(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,i.createElement)(Nn,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},(0,p.__)("Select image","wordpress-seo")):(0,i.createElement)(Mn,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},(0,i.createElement)(hn,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:cn.TWITTER_IMAGE_SIZES.aspectRatio},width:t.width,height:t.height,imageMode:t.mode}))}}qn.propTypes={isLarge:h().bool.isRequired,src:h().string,alt:h().string,onImageClick:h().func,onMouseEnter:h().func,onMouseLeave:h().func},qn.defaultProps={src:"",alt:"",onMouseEnter:J.noop,onImageClick:J.noop,onMouseLeave:J.noop};const Un=Xe().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;
    }
`,Bn=e=>(0,i.createElement)(Un,null,e.children);Bn.propTypes={children:h().array.isRequired};const $n=Bn,Wn=Xe().p`
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	color: rgb(15, 20, 25);
	cursor: pointer;
`,Kn=Xe().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: ${cn.TWITTER_IMAGE_SIZES.landscapeWidth}px ) {
		display: none;
	}
`,Hn=Xe().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);
	}
`,Yn=Xe()(Hn)`
	flex-direction: column;
	max-height: 370px;
`,zn=Xe()(Hn)`
	flex-direction: row;
	height: 125px;
`;class jn extends i.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,l=e?Yn:zn;return(0,i.createElement)(l,{id:"twitterPreview"},(0,i.createElement)(qn,{src:t||s,alt:a,isLarge:e,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,i.createElement)($n,null,(0,i.createElement)(On,{siteUrl:o}),(0,i.createElement)(Wn,{onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle},r),(0,i.createElement)(Kn,{onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription},n)))}}jn.propTypes={siteUrl:h().string.isRequired,title:h().string.isRequired,description:h().string,isLarge:h().bool,imageUrl:h().string,imageFallbackUrl:h().string,alt:h().string,onSelect:h().func,onImageClick:h().func,onMouseHover:h().func},jn.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{},isLarge:!0};const Vn=jn,Gn=window.yoast.replacementVariableEditor;class Zn extends i.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.SocialPreview="Social"===e.socialMediumName?Ln:Vn,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:c,descriptionInputPlaceholder:d,descriptionPreviewFallback:p,imageUrl:u,imageFallbackUrl:m,alt:h,title:g,titleInputPlaceholder:y,titlePreviewFallback:f,replacementVariables:w,recommendedReplacementVariables:b,applyReplacementVariables:E,onReplacementVariableSearchChange:v,isPremium:_,isLarge:k,socialPreviewLabel:x,idSuffix:S,activeMetaTabId:T}=this.props,R=E({title:g||f,description:c||p});return(0,i.createElement)(l().Fragment,null,x&&(0,i.createElement)(At.SimulatedLabel,null,x),(0,i.createElement)(this.SocialPreview,{onMouseHover:this.setHoveredField,onSelect:this.setActiveField,onImageClick:s,siteUrl:o,title:R.title,description:R.description,imageUrl:u,imageFallbackUrl:m,alt:h,isLarge:k,activeMetaTabId:T}),(0,i.createElement)(cn.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:r,title:g,titleInputPlaceholder:y,onRemoveImageClick:a,imageSelected:!!u,imageUrl:u,onTitleChange:t,onSelectImageClick:s,description:c,descriptionInputPlaceholder:d,imageWarnings:n,replacementVariables:w,recommendedReplacementVariables:b,onReplacementVariableSearchChange:v,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:_,setEditorRef:this.setEditorRef,idSuffix:S}))}}Zn.propTypes={title:h().string.isRequired,onTitleChange:h().func.isRequired,description:h().string.isRequired,onDescriptionChange:h().func.isRequired,imageUrl:h().string.isRequired,imageFallbackUrl:h().string.isRequired,onSelectImageClick:h().func.isRequired,onRemoveImageClick:h().func.isRequired,socialMediumName:h().string.isRequired,alt:h().string,isPremium:h().bool,imageWarnings:h().array,isLarge:h().bool,siteUrl:h().string,descriptionInputPlaceholder:h().string,titleInputPlaceholder:h().string,descriptionPreviewFallback:h().string,titlePreviewFallback:h().string,replacementVariables:Gn.replacementVariablesShape,recommendedReplacementVariables:Gn.recommendedReplacementVariablesShape,applyReplacementVariables:h().func,onReplacementVariableSearchChange:h().func,socialPreviewLabel:h().string,idSuffix:h().string,activeMetaTabId:h().string},Zn.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,isLarge:!0,siteUrl:"",descriptionInputPlaceholder:"",titleInputPlaceholder:"",descriptionPreviewFallback:"",titlePreviewFallback:"",alt:"",applyReplacementVariables:e=>e,onReplacementVariableSearchChange:null,socialPreviewLabel:"",idSuffix:"",activeMetaTabId:""};const Qn={},Xn=(e,t,{log:s=console.warn}={})=>{Qn[e]||(Qn[e]=!0,s(t))},Jn=(e,t=J.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};Jn({squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},((e,t)=>Xn(`@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.`))),Jn({squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}},((e,t)=>Xn(`@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 eo=Xe().div`
	max-width: calc(527px + 1.5rem);
`,to=e=>{const t="X"===e.socialMediumName?(0,p.__)("X share preview","wordpress-seo"):(0,p.__)("Social share preview","wordpress-seo"),{locationContext:s}=(0,u.useRootContext)();return(0,i.createElement)(u.Root,null,(0,i.createElement)(eo,null,(0,i.createElement)(u.FeatureUpsell,{shouldUpsell:!0,variant:"card",cardLink:(0,Tt.addQueryArgs)(wpseoAdminL10n["shortlinks.upsell.social_preview."+e.socialMediumName.toLowerCase()],{context:s}),cardText:(0,p.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,p.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"},(0,i.createElement)("div",{className:"yst-grayscale yst-opacity-50"},(0,i.createElement)(u.Label,null,t),(0,i.createElement)(Ln,{title:"",description:"",siteUrl:"",imageUrl:"",imageFallbackUrl:"",alt:"",onSelect:J.noop,onImageClick:J.noop,onMouseHover:J.noop})))))};to.propTypes={socialMediumName:h().oneOf(["Social","Twitter","X"]).isRequired};const so=to;class ao extends d.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:l,imageUrl:c,alt:p,title:u,titleInputPlaceholder:m,replacementVariables:h,recommendedReplacementVariables:g,onReplacementVariableSearchChange:y,isPremium:f,location:w}=this.props;return(0,i.createElement)(d.Fragment,null,(0,i.createElement)(so,{socialMediumName:r}),(0,i.createElement)(cn.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:r,title:u,titleInputPlaceholder:m,onRemoveImageClick:a,imageSelected:!!c,imageUrl:c,imageAltText:p,onTitleChange:t,onSelectImageClick:s,description:o,descriptionInputPlaceholder:l,imageWarnings:n,replacementVariables:h,recommendedReplacementVariables:g,onReplacementVariableSearchChange:y,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:f,setEditorRef:this.setEditorRef,idSuffix:w}))}}ao.propTypes={title:h().string.isRequired,onTitleChange:h().func.isRequired,description:h().string.isRequired,onDescriptionChange:h().func.isRequired,imageUrl:h().string.isRequired,onSelectImageClick:h().func.isRequired,onRemoveImageClick:h().func.isRequired,socialMediumName:h().string.isRequired,isPremium:h().bool,imageWarnings:h().array,descriptionInputPlaceholder:h().string,titleInputPlaceholder:h().string,replacementVariables:Gn.replacementVariablesShape,recommendedReplacementVariables:Gn.recommendedReplacementVariablesShape,onReplacementVariableSearchChange:h().func,location:h().string,alt:h().string},ao.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",onReplacementVariableSearchChange:null,location:"",alt:""};const ro=ao,no=e=>{const[t,s]=(0,d.useState)(""),a=(0,d.useCallback)((e=>{s(e.detail.metaTabId)}),[s]);(0,d.useEffect)((()=>(setTimeout(e.onLoad),window.addEventListener("YoastSEO:metaTabChange",a),()=>{window.removeEventListener("YoastSEO:metaTabChange",a)})),[]);const r=(0,d.useMemo)((()=>({...e,activeMetaTabId:t})),[e,t]);return e.isPremium?(0,i.createElement)(c.Slot,{name:`YoastFacebookPremium${e.location.charAt(0).toUpperCase()+e.location.slice(1)}`,fillProps:r}):(0,i.createElement)(ro,{...r})};no.propTypes={isPremium:h().bool.isRequired,onLoad:h().func.isRequired,location:h().string.isRequired};const oo=no;function io(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 lo=()=>{io((e=>(0,n.dispatch)("yoast-seo/editor").setFacebookPreviewImage((e=>{const{width:t,height:s}=e,a=(0,cn.determineFacebookImageMode)({width:t,height:s}),r=cn.FACEBOOK_IMAGE_SIZES[a+"Width"],n=cn.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,Mt.validateFacebookImage)(e),alt:e.alt||""}})(e))))},co=(0,xt.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:!!ne().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:lo,onRemoveImageClick:n,onDescriptionChange:r,onTitleChange:a,onLoad:o,onReplacementVariableSearchChange:tr(l,i)}})),es()])(oo),po=e=>((0,d.useEffect)((()=>{setTimeout(e.onLoad)}),[]),e.isPremium?(0,i.createElement)(c.Slot,{name:`YoastTwitterPremium${e.location.charAt(0).toUpperCase()+e.location.slice(1)}`,fillProps:e}):(0,i.createElement)(ro,{...e}));po.propTypes={isPremium:h().bool.isRequired,onLoad:h().func.isRequired,location:h().string.isRequired};const uo=po,mo=()=>{io((e=>(0,n.dispatch)("yoast-seo/editor").setTwitterPreviewImage((e=>{const t="summary"!==(0,J.get)(window,"wpseoScriptData.metabox.twitterCardType")?"landscape":"square",s=cn.TWITTER_IMAGE_SIZES[t+"Width"],a=cn.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,Mt.validateTwitterImage)(e),alt:e.alt||""}})(e))))},ho=(0,xt.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:!!ne().isPremium,isLarge:"summary"!==d(),titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"X",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:mo,onRemoveImageClick:n,onDescriptionChange:r,onTitleChange:a,onLoad:o,onReplacementVariableSearchChange:tr(l,i)}})),es()])(uo),go=Xe()(At.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);
	}

`,yo=e=>(0,i.createElement)(go,{hasPadding:!1,hasSeparator:!0,...e}),fo=Xe().legend`
	margin: 16px 0;
	padding: 0;
	color: ${dn.colors.$color_headings};
	font-size: 12px;
	font-weight: 300;
`,wo=Xe().legend`
	margin: 0 0 16px;
	padding: 0;
	color: ${dn.colors.$color_headings};
	font-size: 12px;
	font-weight: 300;
`,bo=Xe()(rn)`
	width: 18px;
	height: 18px;
	margin: 3px;
`,Eo=e=>{const{useOpenGraphData:t,useTwitterData:s}=e;if(!t&&!s)return;const a=ma();return(0,i.createElement)(ya
/* translators: Social media appearance refers to a preview of how a page will be represented on social media. */,{title:(0,p.__)("Social media appearance","wordpress-seo"),id:"yoast-social-appearance-modal",shouldCloseOnClickOutside:!1,SuffixHeroIcon:(0,i.createElement)(bo,{className:"yst-text-slate-500",...a})},t&&(0,i.createElement)(d.Fragment,null,(0,i.createElement)(wo,null,(0,p.__)("Determine how your post should look on social media like Facebook, X, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")),(0,i.createElement)(co,null),s&&(0,i.createElement)(fo,null,(0,p.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below. If you leave these settings untouched, the 'Social media appearance' settings mentioned above will also be applied for sharing on X.","wordpress-seo"))),t&&s&&(0,i.createElement)(yo,{title:(0,p.__)("X appearance","wordpress-seo"),hasSeparator:!0,initialIsOpen:!1},(0,i.createElement)(ho,null)),!t&&s&&(0,i.createElement)(d.Fragment,null,(0,i.createElement)(wo,null,(0,p.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below.","wordpress-seo")),(0,i.createElement)(ho,null)))};Eo.propTypes={useOpenGraphData:h().bool.isRequired,useTwitterData:h().bool.isRequired};const vo=Eo,_o=(0,p.__)("Check your text on even more SEO criteria and get an enhanced keyphrase analysis, making it easier to optimize your content.","wordpress-seo"),ko=e=>{const{locationContext:t}=(0,Je.useRootContext)(),s=(0,Tt.addQueryArgs)(wpseoAdminL10n[e.buyLink],{context:t});return(0,i.createElement)(zt,{title:(0,p.__)("Get more help with writing content that ranks","wordpress-seo"),description:e.description,benefitsTitle:/* translators: %s expands to 'Yoast SEO Premium'. */
(0,p.sprintf)("%s also gives you:","Yoast SEO Premium"),benefits:Rt(),upsellButtonText:(0,p.sprintf)(/* translators: %s expands to 'Yoast SEO Premium'. */
(0,p.__)("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,p.__)("1 year of premium support and updates included!","wordpress-seo")})};ko.propTypes={buyLink:h().string.isRequired,description:h().string},ko.defaultProps={description:_o};const xo=ko,So=({location:e})=>{const[t,s]=(0,d.useState)(!1),a=(0,d.useCallback)((()=>s(!1)),[]),r=(0,d.useCallback)((()=>s(!0)),[]),n=(0,u.useSvgAria)();return(0,i.createElement)(d.Fragment,null,t&&(0,i.createElement)(Qt,{title:(0,p.__)("Unlock Premium SEO analysis","wordpress-seo"),onRequestClose:a,additionalClassName:"",className:`${Gt} yoast-gutenberg-modal__box yoast-gutenberg-modal__no-padding`,id:"yoast-premium-seo-analysis-modal",shouldCloseOnClickOutside:!0},(0,i.createElement)(Vt,null,(0,i.createElement)(xo,{buyLink:`shortlinks.upsell.${e}.premium_seo_analysis_button`}))),"sidebar"===e&&(0,i.createElement)(Dt,{id:"yoast-premium-seo-analysis-modal-open-button",title:(0,p.__)("Premium SEO analysis","wordpress-seo"),prefixIcon:{icon:"seo-score-none",color:dn.colors.$color_grey},onClick:r},(0,i.createElement)("div",{className:"yst-root"},(0,i.createElement)(u.Badge,{size:"small",variant:"upsell"},(0,i.createElement)(St,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...n})))),"metabox"===e&&(0,i.createElement)("div",{className:"yst-root"},(0,i.createElement)(Pt,{id:"yoast-premium-seo-analysis-metabox-modal-open-button",onClick:r},(0,i.createElement)(At.SvgIcon,{icon:"seo-score-none",color:dn.colors.$color_grey}),(0,i.createElement)(Pt.Text,null,(0,p.__)("Premium SEO analysis","wordpress-seo")),(0,i.createElement)(u.Badge,{size:"small",variant:"upsell"},(0,i.createElement)(St,{className:"yst-w-2.5 yst-h-2.5 yst-mr-1 yst-shrink-0",...n}),(0,i.createElement)("span",null,"Premium")))))};So.propTypes={location:h().string},So.defaultProps={location:"sidebar"};const To=So,Ro=e=>{const[t,s]=(0,d.useState)(!1),{prefixIcon:a}=e;return(0,i.createElement)("div",{className:"yoast components-panel__body "+(t?"is-opened":"")},(0,i.createElement)("h2",{className:"components-panel__body-title"},(0,i.createElement)("button",{onClick:function(){s(!t)},className:"components-button components-panel__body-toggle",type:"button",id:e.buttonId},(0,i.createElement)("span",{className:"yoast-icon-span",style:{fill:`${a&&a.color||""}`}},a&&(0,i.createElement)(At.SvgIcon,{icon:a.icon,color:a.color,size:a.size})),(0,i.createElement)("span",{className:"yoast-title-container"},(0,i.createElement)("div",{className:"yoast-title"},e.title),(0,i.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),e.hasBetaBadgeLabel&&(0,i.createElement)(At.BetaBadge,null),(0,i.createElement)("span",{className:"yoast-chevron","aria-hidden":"true"}))),t&&e.children)},Co=Ro;Ro.propTypes={title:h().string.isRequired,children:h().oneOfType([h().node,h().arrayOf(h().node)]).isRequired,prefixIcon:h().object,subTitle:h().string,hasBetaBadgeLabel:h().bool,buttonId:h().string},Ro.defaultProps={prefixIcon:null,subTitle:"",hasBetaBadgeLabel:!1,buttonId:null};var Io=s(6746);const Lo=(0,Mt.makeOutboundLink)(),Po=Xe().div`
	padding: 16px;
`,Ao="yoast-seo/editor";function Oo({location:e,show:t}){return t?(0,i.createElement)(At.Alert,{type:"info"},(0,p.sprintf)(/* translators: %s Expands to "Yoast News SEO" */
(0,p.__)("Are you working on a news article? %s helps you optimize your site for Google News.","wordpress-seo"),"Yoast News SEO")+" ",(0,i.createElement)(Lo,{href:window.wpseoAdminL10n[`shortlinks.upsell.${e}.news`]},(0,p.sprintf)(/* translators: %s: Expands to "Yoast News SEO". */
(0,p.__)("Buy %s now!","wordpress-seo"),"Yoast News SEO"))):null}Oo.propTypes={show:h().bool.isRequired,location:h().string.isRequired};const Do=(e,t,s)=>{const a=(0,n.useSelect)((e=>e(Ao).getIsProduct()),[]),r=(0,n.useSelect)((e=>e(Ao).getIsWooSeoActive()),[]),o=a&&r?{name:(0,p.__)("Item Page","wordpress-seo"),value:"ItemPage"}:e.find((e=>e.value===t));return[{name:(0,p.sprintf)(/* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */
(0,p.__)("Default for %1$s (%2$s)","wordpress-seo"),s,o?o.name:""),value:""},...e]},Mo=e=>(0,p.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,p.__)("You can change the default type for %1$s under Content types in the %2$sSettings%3$s.","wordpress-seo"),e,"{{link}}","{{/link}}");h().string.isRequired,h().string.isRequired,h().string.isRequired;const Fo=e=>{const t=Do(e.pageTypeOptions,e.defaultPageType,e.postTypeName),s=Do(e.articleTypeOptions,e.defaultArticleType,e.postTypeName),a=(0,J.get)(window,"wpseoScriptData.metabox.woocommerceUpsellSchemaLink",""),r=(0,J.get)(window,"wpseoScriptData.woocommerceUpsell",""),[o,l]=(0,d.useState)(e.schemaArticleTypeSelected),c=(0,p.__)("Want your products stand out in search results with rich results like price, reviews and more?","wordpress-seo"),u=(0,n.useSelect)((e=>e(Ao).getIsProduct()),[]),m=(0,n.useSelect)((e=>e(Ao).getIsWooSeoActive()),[]),h=(0,n.useSelect)((e=>e(Ao).selectAdminLink("?page=wpseo_page_settings")),[]),g=u&&m,y=(0,d.useCallback)(((e,t)=>{l(t)}),[o]);return(0,d.useEffect)((()=>{y(null,e.schemaArticleTypeSelected)}),[e.schemaArticleTypeSelected]),(0,i.createElement)(d.Fragment,null,(0,i.createElement)(At.FieldGroup,{label:(0,p.__)("What type of page or content is this?","wordpress-seo"),linkTo:e.additionalHelpTextLink
/* translators: Hidden accessibility text. */,linkText:(0,p.__)("Learn more about page or content types","wordpress-seo")}),r&&(0,i.createElement)(ar,{link:a,text:c}),(0,i.createElement)(At.Select,{id:(0,Mt.join)(["yoast-schema-page-type",e.location]),options:t,label:(0,p.__)("Page type","wordpress-seo"),onChange:e.schemaPageTypeChange,selected:g?"ItemPage":e.schemaPageTypeSelected,disabled:g}),e.showArticleTypeInput&&(0,i.createElement)(At.Select,{id:(0,Mt.join)(["yoast-schema-article-type",e.location]),options:s,label:(0,p.__)("Article type","wordpress-seo"),onChange:e.schemaArticleTypeChange,selected:e.schemaArticleTypeSelected,onOptionFocus:y}),(0,i.createElement)(Oo,{location:e.location,show:!e.isNewsEnabled&&(b=o,E=e.defaultArticleType,"NewsArticle"===b||""===b&&"NewsArticle"===E)}),e.displayFooter&&!g&&(0,i.createElement)("p",null,(f=e.postTypeName,w=h,(0,Io.Z)({mixedString:Mo(f),components:{link:(0,i.createElement)("a",{href:w,target:"_blank",rel:"noreferrer"})}}))),g&&(0,i.createElement)("p",null,(0,p.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */
(0,p.__)("You have %1$s activated on your site, automatically setting the Page type for your products to 'Item Page'. As a result, the Page type selection is disabled.","wordpress-seo"),"Yoast WooCommerce SEO")));var f,w,b,E},No=h().arrayOf(h().shape({name:h().string,value:h().string}));Fo.propTypes={schemaPageTypeChange:h().func,schemaPageTypeSelected:h().string,pageTypeOptions:No.isRequired,schemaArticleTypeChange:h().func,schemaArticleTypeSelected:h().string,articleTypeOptions:No.isRequired,showArticleTypeInput:h().bool.isRequired,additionalHelpTextLink:h().string.isRequired,helpTextLink:h().string.isRequired,helpTextTitle:h().string.isRequired,helpTextDescription:h().string.isRequired,postTypeName:h().string.isRequired,displayFooter:h().bool,defaultPageType:h().string.isRequired,defaultArticleType:h().string.isRequired,location:h().string.isRequired,isNewsEnabled:h().bool},Fo.defaultProps={schemaPageTypeChange:()=>{},schemaPageTypeSelected:null,schemaArticleTypeChange:()=>{},schemaArticleTypeSelected:null,displayFooter:!1,isNewsEnabled:!1};const qo=e=>e.isMetabox?(0,d.createPortal)((0,i.createElement)(Po,null,(0,i.createElement)(Fo,{...e})),document.getElementById("wpseo-meta-section-schema")):(0,i.createElement)(Fo,{...e});qo.propTypes={showArticleTypeInput:h().bool,articleTypeLabel:h().string,additionalHelpTextLink:h().string,pageTypeLabel:h().string.isRequired,helpTextLink:h().string.isRequired,helpTextTitle:h().string.isRequired,helpTextDescription:h().string.isRequired,isMetabox:h().bool.isRequired,postTypeName:h().string.isRequired,displayFooter:h().bool,loadSchemaArticleData:h().func.isRequired,loadSchemaPageData:h().func.isRequired,location:h().string.isRequired},qo.defaultProps={showArticleTypeInput:!1,articleTypeLabel:"",additionalHelpTextLink:"",displayFooter:!1};const Uo=qo;class Bo{static get articleTypeInput(){return document.getElementById("yoast_wpseo_schema_article_type")}static get defaultArticleType(){return Bo.articleTypeInput.getAttribute("data-default")}static get articleType(){return Bo.articleTypeInput.value}static set articleType(e){Bo.articleTypeInput.value=e}static get pageTypeInput(){return document.getElementById("yoast_wpseo_schema_page_type")}static get defaultPageType(){return Bo.pageTypeInput.getAttribute("data-default")}static get pageType(){return Bo.pageTypeInput.value}static set pageType(e){Bo.pageTypeInput.value=e}}const $o=e=>{const t=null!==Bo.articleTypeInput;(0,d.useEffect)((()=>{e.loadSchemaPageData(),t&&e.loadSchemaArticleData()}),[]);const{pageTypeOptions:s,articleTypeOptions:a}=window.wpseoScriptData.metabox.schema,r={articleTypeLabel:(0,p.__)("Article type","wordpress-seo"),pageTypeLabel:(0,p.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:(0,p.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:(0,p.__)("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,i.createElement)(Uo,{...n})};$o.propTypes={displayFooter:h().bool.isRequired,schemaPageTypeSelected:h().string.isRequired,schemaArticleTypeSelected:h().string.isRequired,defaultArticleType:h().string.isRequired,defaultPageType:h().string.isRequired,loadSchemaPageData:h().func.isRequired,loadSchemaArticleData:h().func.isRequired,schemaPageTypeChange:h().func.isRequired,schemaArticleTypeChange:h().func.isRequired,location:h().string.isRequired};const Wo=(0,xt.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}})),es()])($o),Ko=({noIndex:e,onNoIndexChange:t,editorContext:s,isPrivateBlog:a})=>{const r=(e=>{const t=(0,p.__)("No","wordpress-seo"),s=(0,p.__)("Yes","wordpress-seo"),a=e.noIndex?t:s;return window.wpseoScriptData.isPost?[{name:(0,p.sprintf)(/* translators: the first %s translates to "yes" or "no", the second %s translates to the content type label in plural form */
(0,p.__)("%s (current default for %s)","wordpress-seo"),a,e.postTypeNamePlural),value:"0"},{name:t,value:"1"},{name:s,value:"2"}]:[{name:(0,p.sprintf)(/* translators: the first %s translates to "yes" or "no", the second %s translates to the content type label in plural form */
(0,p.__)("%s (current default for %s)","wordpress-seo"),a,e.postTypeNamePlural),value:"default"},{name:s,value:"index"},{name:t,value:"noindex"}]})(s);return(0,i.createElement)(Je.LocationConsumer,null,(s=>(0,i.createElement)(d.Fragment,null,a&&(0,i.createElement)(At.Alert,{type:"warning"},(0,p.__)("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,i.createElement)(At.Select,{label:(0,p.__)("Allow search engines to show this content in search results?","wordpress-seo"),onChange:t,id:(0,Mt.join)(["yoast-meta-robots-noindex",s]),options:r,selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.allow_search_engines"]
/* translators: Hidden accessibility text. */,linkText:(0,p.__)("Learn more about the no-index setting on our help page.","wordpress-seo")}))))};Ko.propTypes={noIndex:h().string.isRequired,onNoIndexChange:h().func.isRequired,editorContext:h().object.isRequired,isPrivateBlog:h().bool},Ko.defaultProps={isPrivateBlog:!1};const Ho=({noFollow:e,onNoFollowChange:t})=>(0,i.createElement)(Je.LocationConsumer,null,(s=>{const a=(0,Mt.join)(["yoast-meta-robots-nofollow",s]);return(0,i.createElement)(At.RadioButtonGroup,{id:a,options:[{value:"0",label:"Yes"},{value:"1",label:"No"}],label:(0,p.__)("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,p.__)("Learn more about the no-follow setting on our help page.","wordpress-seo")})}));Ho.propTypes={noFollow:h().string.isRequired,onNoFollowChange:h().func.isRequired};const Yo=({advanced:e,onAdvancedChange:t})=>(0,i.createElement)(Je.LocationConsumer,null,(s=>{const a=(0,Mt.join)(["yoast-meta-robots-advanced",s]),r=`${a}-input`;return(0,i.createElement)(At.MultiSelect,{label:(0,p.__)("Meta robots advanced","wordpress-seo"),onChange:t,id:a,inputId:r,options:[{name:(0,p.__)("No Image Index","wordpress-seo"),value:"noimageindex"},{name:(0,p.__)("No Archive","wordpress-seo"),value:"noarchive"},{name:(0,p.__)("No Snippet","wordpress-seo"),value:"nosnippet"}],selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.meta_robots"]
/* translators: Hidden accessibility text. */,linkText:(0,p.__)("Learn more about advanced meta robots settings on our help page.","wordpress-seo")})}));Yo.propTypes={advanced:h().array.isRequired,onAdvancedChange:h().func.isRequired};const zo=({breadcrumbsTitle:e,onBreadcrumbsTitleChange:t})=>(0,i.createElement)(Je.LocationConsumer,null,(s=>(0,i.createElement)(At.TextInput,{label:(0,p.__)("Breadcrumbs Title","wordpress-seo"),id:(0,Mt.join)(["yoast-breadcrumbs-title",s]),onChange:t,value:e,linkTo:wpseoAdminL10n["shortlinks.advanced.breadcrumbs_title"]
/* translators: Hidden accessibility text. */,linkText:(0,p.__)("Learn more about the breadcrumbs title setting on our help page.","wordpress-seo")})));zo.propTypes={breadcrumbsTitle:h().string.isRequired,onBreadcrumbsTitleChange:h().func.isRequired};const jo=({canonical:e,onCanonicalChange:t})=>(0,i.createElement)(Je.LocationConsumer,null,(s=>(0,i.createElement)(At.TextInput,{label:(0,p.__)("Canonical URL","wordpress-seo"),id:(0,Mt.join)(["yoast-canonical",s]),onChange:t,value:e,linkTo:"https://yoa.st/canonical-url"
/* translators: Hidden accessibility text. */,linkText:(0,p.__)("Learn more about canonical URLs on our help page.","wordpress-seo")})));jo.propTypes={canonical:h().string.isRequired,onCanonicalChange:h().func.isRequired};const Vo=e=>{const{noIndex:t,noFollow:s,advanced:a,breadcrumbsTitle:r,canonical:n,onNoIndexChange:o,onNoFollowChange:l,onAdvancedChange:c,onBreadcrumbsTitleChange:p,onCanonicalChange:u,onLoad:m,isLoading:h,editorContext:g,isBreadcrumbsDisabled:y,isPrivateBlog:f}=e;(0,d.useEffect)((()=>{setTimeout((()=>{h&&m()}))}));const w={noIndex:t,onNoIndexChange:o,editorContext:g,isPrivateBlog:f},b={noFollow:s,onNoFollowChange:l},E={advanced:a,onAdvancedChange:c},v={breadcrumbsTitle:r,onBreadcrumbsTitleChange:p},_={canonical:n,onCanonicalChange:u};return h?null:(0,i.createElement)(d.Fragment,null,(0,i.createElement)(Ko,{...w}),g.isPost&&(0,i.createElement)(Ho,{...b}),g.isPost&&(0,i.createElement)(Yo,{...E}),!y&&(0,i.createElement)(zo,{...v}),(0,i.createElement)(jo,{..._}))};Vo.propTypes={noIndex:h().string.isRequired,canonical:h().string.isRequired,onNoIndexChange:h().func.isRequired,onCanonicalChange:h().func.isRequired,onLoad:h().func.isRequired,isLoading:h().bool.isRequired,editorContext:h().object.isRequired,isBreadcrumbsDisabled:h().bool.isRequired,isPrivateBlog:h().bool,advanced:h().array,onAdvancedChange:h().func,noFollow:h().string,onNoFollowChange:h().func,breadcrumbsTitle:h().string,onBreadcrumbsTitleChange:h().func},Vo.defaultProps={advanced:[],onAdvancedChange:()=>{},noFollow:"",onNoFollowChange:()=>{},breadcrumbsTitle:"",onBreadcrumbsTitleChange:()=>{},isPrivateBlog:!1};const Go=Vo,Zo=(0,xt.compose)([(0,n.withSelect)((e=>{const{getNoIndex:t,getNoFollow:s,getAdvanced:a,getBreadcrumbsTitle:r,getCanonical:n,getIsLoading:o,getEditorContext:i,getPreferences:l}=e("yoast-seo/editor"),{isBreadcrumbsDisabled:c,isPrivateBlog:d}=l();return{noIndex:t(),noFollow:s(),advanced:a(),breadcrumbsTitle:r(),canonical:n(),isLoading:o(),editorContext:i(),isBreadcrumbsDisabled:c,isPrivateBlog:d}})),(0,n.withDispatch)((e=>{const{setNoIndex:t,setNoFollow:s,setAdvanced:a,setBreadcrumbsTitle:r,setCanonical:n,loadAdvancedSettingsData:o}=e("yoast-seo/editor");return{onNoIndexChange:t,onNoFollowChange:s,onAdvancedChange:a,onBreadcrumbsTitleChange:r,onCanonicalChange:n,onLoad:o}}))])(Go),Qo=()=>(0,i.createElement)("p",{className:"yoast-related-keyphrases-modal__loading-message"},(0,p.sprintf)(/* translators: %1$s expands to "Yoast SEO", %2$s expands to "Semrush". */
(0,p.__)("Please wait while %1$s connects to %2$s to get related keyphrases...","wordpress-seo"),"Yoast SEO","Semrush")," ",(0,i.createElement)(At.SvgIcon,{icon:"loading-spinner"})),Xo=(0,Mt.makeOutboundLink)(),Jo=()=>(0,i.createElement)(d.Fragment,null,(0,i.createElement)("p",null,(0,p.sprintf)(/* translators: %s : Expands to "Semrush". */
(0,p.__)("You've reached your request limit for today. Check back tomorrow or upgrade your plan over at %s.","wordpress-seo"),"Semrush")),(0,i.createElement)(Xo,{href:window.wpseoAdminL10n["shortlinks.semrush.prices"],className:"yoast-button-upsell"},(0,p.sprintf)(/* translators: %s : Expands to "Semrush". */
(0,p.__)("Upgrade your %s plan","wordpress-seo"),"Semrush"),(0,i.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"}))),ei=window.wp.apiFetch;var ti=s.n(ei);const si="yoast-semrush-country-selector",ai=[{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 ri extends d.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){ti()({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 ti()({path:(0,Tt.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:e,country_code:t})})}onChangeHandler(e){this.props.setCountry(e)}render(){return(0,i.createElement)("div",{id:si},(0,i.createElement)(At.SingleSelect,{id:si+"-select",label:(0,p.__)("Show results for:","wordpress-seo"),name:"semrush-country-code",options:ai,selected:this.props.countryCode,onChange:this.onChangeHandler,wrapperClassName:"yoast-field-group yoast-field-group--inline"}),(0,i.createElement)(At.NewButton,{id:si+"-button",variant:"secondary",onClick:this.relatedKeyphrasesRequest},(0,p.__)("Select country","wordpress-seo")))}}ri.propTypes={keyphrase:h().string,countryCode:h().string,response:h().object,lastRequestKeyphrase:h().string,setCountry:h().func.isRequired,newRequest:h().func.isRequired,setNoResultsFound:h().func.isRequired,setRequestSucceeded:h().func.isRequired,setRequestLimitReached:h().func.isRequired,setRequestFailed:h().func.isRequired},ri.defaultProps={keyphrase:"",countryCode:"us",response:{},lastRequestKeyphrase:""};const ni=ri,oi=({data:e,mapChartDataToTableData:t,dataTableCaption:s,dataTableHeaderLabels:a,isDataTableVisuallyHidden:r})=>e.length!==a.length?(0,i.createElement)("p",null,(0,p.__)("The number of headers and header labels don't match.","wordpress-seo")):(0,i.createElement)("div",{className:r?"screen-reader-text":null},(0,i.createElement)("table",null,(0,i.createElement)("caption",null,s),(0,i.createElement)("thead",null,(0,i.createElement)("tr",null,a.map(((e,t)=>(0,i.createElement)("th",{key:t},e))))),(0,i.createElement)("tbody",null,(0,i.createElement)("tr",null,e.map(((e,s)=>(0,i.createElement)("td",{key:s},t(e.y))))))));oi.propTypes={data:h().arrayOf(h().shape({x:h().number,y:h().number})).isRequired,mapChartDataToTableData:h().func,dataTableCaption:h().string.isRequired,dataTableHeaderLabels:h().array.isRequired,isDataTableVisuallyHidden:h().bool},oi.defaultProps={mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};const ii=oi,li=({data:e,width:t,height:s,fillColor:a,strokeColor:r,strokeWidth:n,className:o,mapChartDataToTableData:l,dataTableCaption:c,dataTableHeaderLabels:p,isDataTableVisuallyHidden:u})=>{const m=Math.max(1,Math.max(...e.map((e=>e.x)))),h=Math.max(1,Math.max(...e.map((e=>e.y)))),g=s-n,y=e.map((e=>`${e.x/m*t},${g-e.y/h*g+n}`)).join(" "),f=`0,${g+n} `+y+` ${t},${g+n}`;return(0,i.createElement)(d.Fragment,null,(0,i.createElement)("svg",{width:t,height:s,viewBox:`0 0 ${t} ${s}`,className:o,role:"img","aria-hidden":"true",focusable:"false"},(0,i.createElement)("polygon",{fill:a,points:f}),(0,i.createElement)("polyline",{fill:"none",stroke:r,strokeWidth:n,strokeLinejoin:"round",strokeLinecap:"round",points:y})),l&&(0,i.createElement)(ii,{data:e,mapChartDataToTableData:l,dataTableCaption:c,dataTableHeaderLabels:p,isDataTableVisuallyHidden:u}))};li.propTypes={data:h().arrayOf(h().shape({x:h().number,y:h().number})).isRequired,width:h().number.isRequired,height:h().number.isRequired,fillColor:h().string,strokeColor:h().string,strokeWidth:h().number,className:h().string,mapChartDataToTableData:h().func,dataTableCaption:h().string.isRequired,dataTableHeaderLabels:h().array.isRequired,isDataTableVisuallyHidden:h().bool},li.defaultProps={fillColor:null,strokeColor:"#000000",strokeWidth:1,className:"",mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};const ci=li,di=(0,Mt.makeOutboundLink)(Xe().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: ${dn.colors.$color_help_text};
	
	&:hover,
	&:focus {
		color: ${dn.colors.$color_snippet_focus};	
	}
	
	// Overwrite the default blue active color for links.
	&:active {
		color: ${dn.colors.$color_help_text};	
	}

	&::before {
		position: absolute;
		top: 0;
		left: 0;
		padding: 2px;
		content: "\f223";
	}
`),pi=(0,Mt.makeOutboundLink)();class ui extends d.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,p.__)("Twelve months ago","wordpress-seo"),(0,p.__)("Eleven months ago","wordpress-seo"),(0,p.__)("Ten months ago","wordpress-seo"),(0,p.__)("Nine months ago","wordpress-seo"),(0,p.__)("Eight months ago","wordpress-seo"),(0,p.__)("Seven months ago","wordpress-seo"),(0,p.__)("Six months ago","wordpress-seo"),(0,p.__)("Five months ago","wordpress-seo"),(0,p.__)("Four months ago","wordpress-seo"),(0,p.__)("Three months ago","wordpress-seo"),(0,p.__)("Two months ago","wordpress-seo"),(0,p.__)("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,J.isEmpty)(a.results)&&(0,i.createElement)(d.Fragment,null,(0,i.createElement)("table",{className:"yoast yoast-table"},(0,i.createElement)("thead",null,(0,i.createElement)("tr",null,(0,i.createElement)("th",{scope:"col",className:"yoast-table--primary"},(0,p.__)("Related keyphrase","wordpress-seo")),(0,i.createElement)("th",{scope:"col",abbr:(0,p.__)("Volume","wordpress-seo")},(0,p.__)("Volume","wordpress-seo"),(0,i.createElement)(di,{href:window.wpseoAdminL10n["shortlinks.semrush.volume_help"],className:"dashicons"},(0,i.createElement)("span",{className:"screen-reader-text"},/* translators: Hidden accessibility text. */
(0,p.__)("Learn more about the related keyphrases volume","wordpress-seo")))),(0,i.createElement)("th",{scope:"col",abbr:(0,p.__)("Trend","wordpress-seo")},(0,p.__)("Trend","wordpress-seo"),(0,i.createElement)(di,{href:window.wpseoAdminL10n["shortlinks.semrush.trend_help"],className:"dashicons"},(0,i.createElement)("span",{className:"screen-reader-text"},/* translators: Hidden accessibility text. */
(0,p.__)("Learn more about the related keyphrases trend","wordpress-seo")))),r&&(0,i.createElement)("td",{className:"yoast-table--nobreak"}))),(0,i.createElement)("tbody",null,a.results.rows.map(((e,s)=>{const a=e[0],n=this.transformTrendDataToChartPoints(e[2]),o=this.getAreaChartDataTableHeaderLabels();return(0,i.createElement)("tr",{key:s},(0,i.createElement)("td",null,a),(0,i.createElement)("td",null,e[1]),(0,i.createElement)("td",{className:"yoast-table--nopadding"},(0,i.createElement)(ci,{width:66,height:24,data:n,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:this.mapAreaChartDataToTableData,dataTableCaption:(0,p.__)("Keyphrase volume in the last 12 months on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:o})),r&&(0,i.createElement)("td",{className:"yoast-table--nobreak"},r(a,t)))})))),(0,i.createElement)("p",{style:{marginBottom:0}},(0,i.createElement)(pi,{href:n},(0,p.sprintf)(/* translators: %s expands to Semrush */
(0,p.__)("Get more insights at %s","wordpress-seo"),"Semrush"))))}}ui.propTypes={data:h().object,keyphrase:h().string,relatedKeyphrases:h().array,countryCode:h().string,renderAction:h().func},ui.defaultProps={data:{},keyphrase:"",relatedKeyphrases:[],countryCode:"us",renderAction:null};const mi=ui,hi=(0,Mt.makeOutboundLink)(),gi=()=>(0,i.createElement)(At.Alert,{type:"info"},(0,p.sprintf)(/* translators: %s: Expands to "Yoast SEO". */
(0,p.__)("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,i.createElement)(hi,{href:window.wpseoAdminL10n["shortlinks.semrush.premium_landing_page"]},(0,p.sprintf)(/* translators: %s: Expands to "Yoast SEO Premium". */
(0,p.__)("Explore %s!","wordpress-seo"),"Yoast SEO Premium"))),yi=()=>(0,i.createElement)(At.Alert,{type:"error"},(0,p.__)("We've encountered a problem trying to get related keyphrases. Please try again later.","wordpress-seo")),fi=()=>(0,i.createElement)(At.Alert,{type:"warning"},(0,p.sprintf)(/* translators: %s: Expands to "Yoast SEO". */
(0,p.__)("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 wi(e){const{response:t,lastRequestKeyphrase:s,keyphrase:a,newRequest:r,setCountry:n,renderAction:o,countryCode:l,requestLimitReached:c,setRequestFailed:u,setNoResultsFound:m,relatedKeyphrases:h,setRequestSucceeded:g,setRequestLimitReached:y}=e,f=ne().isPremium;return(0,i.createElement)(d.Fragment,null,!c&&(0,i.createElement)(d.Fragment,null,!f&&(0,i.createElement)(gi,null),f&&function(e){return e&&e.length>=4}(h)&&(0,i.createElement)(fi,null),(0,i.createElement)(ni,{countryCode:l,setCountry:n,newRequest:r,keyphrase:a,setRequestFailed:u,setNoResultsFound:m,setRequestSucceeded:g,setRequestLimitReached:y,response:t,lastRequestKeyphrase:s})),function(e){const{isPending:t,requestLimitReached:s,isSuccess:a,response:r,requestHasData:n}=e;return t?(0,i.createElement)(Qo,null):s?(0,i.createElement)(Jo,null):!a&&function(e){return!(0,J.isEmpty)(e)&&"error"in e}(r)?(0,i.createElement)(yi,null):n?void 0:(0,i.createElement)("p",null,(0,p.__)("Sorry, there's no data available for that keyphrase/country combination.","wordpress-seo"))}(e),(0,i.createElement)(mi,{keyphrase:a,relatedKeyphrases:h,countryCode:l,renderAction:o,data:t}))}wi.propTypes={keyphrase:h().string,relatedKeyphrases:h().array,renderAction:h().func,requestLimitReached:h().bool,countryCode:h().string.isRequired,setCountry:h().func.isRequired,newRequest:h().func.isRequired,setRequestSucceeded:h().func.isRequired,setRequestLimitReached:h().func.isRequired,setRequestFailed:h().func.isRequired,setNoResultsFound:h().func.isRequired,response:h().object,lastRequestKeyphrase:h().string},wi.defaultProps={keyphrase:"",relatedKeyphrases:[],renderAction:null,requestLimitReached:!1,response:{},lastRequestKeyphrase:""};const bi=(0,xt.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()}}}))])(wi),Ei=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.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 vi,_i;function ki(){return ki=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},ki.apply(this,arguments)}const xi=e=>i.createElement("svg",ki({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),vi||(vi=i.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"})),_i||(_i=i.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"}))),Si=window.moment;var Ti=s.n(Si);const Ri=(0,Mt.makeOutboundLink)(),Ci=e=>{const t=(0,p.sprintf)(/* translators: %d expands to the amount of allowed keyphrases on a free account, %s expands to a link to Wincher plans. */
(0,p.__)("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,i.createElement)(At.Alert,{type:"error"},(0,Io.Z)({mixedString:t,components:{updateWincherPlanLink:(0,i.createElement)(Ri,{href:wpseoAdminGlobalL10n["links.wincher.pricing"]},(0,p.sprintf)(/* translators: %s : Expands to "Wincher". */
(0,p.__)("upgrade your %s plan","wordpress-seo"),"Wincher"))}}))};Ci.propTypes={limit:h().number},Ci.defaultProps={limit:10};const Ii=Ci,Li=()=>(0,i.createElement)(At.Alert,{type:"error"},(0,p.__)("Something went wrong while tracking the ranking position(s) of your page. Please try again later.","wordpress-seo"));async function Pi(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 Ai(e){try{return await ti()(e)}catch(e){return e.error&&e.status?e:e instanceof Response&&await e.json()}}async function Oi(e){return(0,J.isArray)(e)||(e=[e]),await Ai({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:e}})}const Di=Xe().p`
	color: ${dn.colors.$color_pink_dark};
	font-size: 14px;
	font-weight: 700;
	margin: 13px 0 10px;
`,Mi=Xe()(At.SvgIcon)`
	margin-right: 5px;
	vertical-align: middle;
`,Fi=Xe().button`
	position: absolute;
	top: 9px;
	right: 9px;
	border: none;
    background: none;
    cursor: pointer;
`,Ni=Xe().p`
	font-size: 13px;
	font-weight: 500;
	margin: 10px 0 13px;
`,qi=Xe().div`
	position: relative;
	background: ${e=>e.isTitleShortened?"#F5F7F7":"transparent"};
	border: 1px solid #C7C7C7;
	border-left: 4px solid${dn.colors.$color_pink_dark};
	padding: 0 16px;
	margin-bottom: 1.5em;
`,Ui=e=>{const[t,s]=(0,d.useState)(null);return(0,d.useEffect)((()=>{e&&!t&&async function(){return await Ai({path:"yoast/v1/wincher/account/limit",method:"GET"})}().then((e=>s(e)))}),[t]),t};Ui.propTypes={limit:h().bool.isRequired};const Bi=({limit:e,usage:t,isTitleShortened:s,isFreeAccount:a})=>{const r=(0,p.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
   * %2$s expands to the account keywords limit.
   */
(0,p.__)("Your are tracking %1$s out of %2$s keyphrases included in your free account.","wordpress-seo"),t,e),n=(0,p.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
   * %2$s expands to the account keywords limit.
   */
(0,p.__)("Your are tracking %1$s out of %2$s keyphrases included in your account.","wordpress-seo"),t,e),o=a?r:n,l=(0,p.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
   * %2$s expands to the account keywords limit.
   */
(0,p.__)("Keyphrases tracked: %1$s/%2$s","wordpress-seo"),t,e),c=s?l:o;return(0,i.createElement)(Di,null,s&&(0,i.createElement)(Mi,{icon:"exclamation-triangle",color:dn.colors.$color_pink_dark,size:"14px"}),c)};Bi.propTypes={limit:h().number.isRequired,usage:h().number.isRequired,isTitleShortened:h().bool,isFreeAccount:h().bool};const $i=(0,Mt.makeOutboundLink)(),Wi=({discount:e,months:t})=>{const s=(0,i.createElement)($i,{href:wpseoAdminGlobalL10n["links.wincher.upgrade"],style:{fontWeight:600}},(0,p.sprintf)(/* Translators: %s : Expands to "Wincher". */
(0,p.__)("Click here to upgrade your %s plan","wordpress-seo"),"Wincher"));if(!e||!t)return(0,i.createElement)(Ni,null,s);const a=100*e,r=(0,p.sprintf)(
/* Translators: %1$s expands to upgrade account link.
   * %2$s expands to the upgrade discount value.
   * %3$s expands to the upgrade discount duration e.g. 2 months.
   */
(0,p.__)("%1$s and get an exclusive %2$s discount for %3$s month(s).","wordpress-seo"),"{{wincherAccountUpgradeLink/}}",a+"%",t);return(0,i.createElement)(Ni,null,(0,Io.Z)({mixedString:r,components:{wincherAccountUpgradeLink:s}}))};Wi.propTypes={discount:h().number,months:h().number};const Ki=({onClose:e,isTitleShortened:t,trackingInfo:s})=>{const a=(()=>{const[e,t]=(0,d.useState)(null);return(0,d.useEffect)((()=>{e||async function(){return await Ai({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,i.createElement)(qi,{isTitleShortened:t},e&&(0,i.createElement)(Fi,{type:"button","aria-label":(0,p.__)("Close the upgrade callout","wordpress-seo"),onClick:e},(0,i.createElement)(At.SvgIcon,{icon:"times-circle",color:dn.colors.$color_pink_dark,size:"14px"})),(0,i.createElement)(Bi,{...s,isTitleShortened:t,isFreeAccount:o}),(0,i.createElement)(Wi,{discount:null==a?void 0:a.discount,months:null==a?void 0:a.months}))};Ki.propTypes={onClose:h().func,isTitleShortened:h().bool,trackingInfo:h().object};const Hi=Ki,Yi=()=>(0,i.createElement)(At.Alert,{type:"success"},(0,p.sprintf)(/* translators: %s: Expands to "Wincher". */
(0,p.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher")),zi=()=>(0,i.createElement)(At.Alert,{type:"info"},(0,p.sprintf)(/* translators: %s: Expands to "Wincher". */
(0,p.__)("%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")),ji=()=>(0,i.createElement)("p",{className:"yoast-wincher-seo-performance-modal__loading-message"},(0,p.__)("Tracking the ranking position...","wordpress-seo")," ",(0,i.createElement)(At.SvgIcon,{icon:"loading-spinner"})),Vi=Xe()(At.SvgIcon)`
	margin-left: 2px;
	flex-shrink: 0;
	rotate: ${e=>e.isImproving?"-90deg":"90deg"};
`,Gi=Xe().span`
	color: ${e=>e.isImproving?"#69AB56":"#DC3332"};
	font-size: 13px;
	font-weight: 600;
	line-height: 20px;
	margin-right: 2px;
	margin-left: 12px;
`,Zi=Xe().td`
	padding-right: 0 !important;

	& > div {
		margin: 0px;
	}
`,Qi=Xe().td`
	padding-left: 2px !important;
`,Xi=Xe().td.attrs({className:"yoast-table--nopadding"})`
	& > div {
		justify-content: center;
	}
`,Ji=Xe().div`
	display: flex;
	align-items: center;
	& > a {
		box-sizing: border-box;
	}
`,el=Xe().button`
	background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
    display: flex;
    align-items: center;
`,tl=Xe().tr`
	background-color: ${e=>e.isEnabled?"#FFFFFF":"#F9F9F9"} !important;
`;function sl(e){return Math.round(100*e)}function al({chartData:e}){if((0,J.isEmpty)(e)||(0,J.isEmpty)(e.position))return"?";const t=function(e){return Array.from({length:e.position.history.length},((e,t)=>t+1)).map((e=>(0,p.sprintf)((0,p._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,i.createElement)(ci,{width:66,height:24,data:s,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",mapChartDataToTableData:sl,dataTableCaption:(0,p.__)("Keyphrase position in the last 90 days on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:t})}al.propTypes={chartData:h().object},al.defaultProps={chartData:{}};const rl=({rowData:e})=>{var t;if(null==e||null===(t=e.position)||void 0===t||!t.change)return(0,i.createElement)(al,{chartData:e});const s=e.position.change<0;return(0,i.createElement)(d.Fragment,null,(0,i.createElement)(al,{chartData:e}),(0,i.createElement)(Gi,{isImproving:s},Math.abs(e.position.change)),(0,i.createElement)(Vi,{icon:"caret-right",color:s?"#69AB56":"#DC3332",size:"14px",isImproving:s}))};function nl(e){var t;const{keyphrase:s,rowData:a,onTrackKeyphrase:r,onUntrackKeyphrase:n,isFocusKeyphrase:o,isDisabled:l,isLoading:c,isSelected:u,onSelectKeyphrases:m}=e,h=!(0,J.isEmpty)(a),g=!(0,J.isEmpty)(null==a||null===(t=a.position)||void 0===t?void 0:t.history),y=(0,d.useCallback)((()=>{l||(h?n(s,a.id):r(s))}),[s,r,n,h,a,l]),f=(0,d.useCallback)((()=>{m((e=>u?e.filter((e=>e!==s)):e.concat(s)))}),[m,u,s]);return(0,i.createElement)(tl,{isEnabled:h},(0,i.createElement)(Zi,null,g&&(0,i.createElement)(At.Checkbox,{id:"select-"+s,onChange:f,checked:u,label:""})),(0,i.createElement)(Qi,null,s,o&&(0,i.createElement)("span",null,"*")),function(e){const{rowData:t,websiteId:s,keyphrase:a,onSelectKeyphrases:r}=e,n=(0,d.useCallback)((()=>{r([a])}),[r,a]),o=!(0,J.isEmpty)(t),l=t&&t.updated_at&&Ti()(t.updated_at)>=Ti()().subtract(7,"days"),c=t?(0,p.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?l?(0,i.createElement)(d.Fragment,null,(0,i.createElement)("td",null,(0,i.createElement)(Ji,null,function(e){return!e||!e.position||e.position.value>100?"> 100":e.position.value}(t),(0,i.createElement)(At.ButtonStyledLink,{variant:"secondary",href:c,style:{height:28,marginLeft:12},rel:"noopener",target:"_blank"},(0,p.__)("View","wordpress-seo")))),(0,i.createElement)("td",{className:"yoast-table--nopadding"},(0,i.createElement)(el,{type:"button",onClick:n},(0,i.createElement)(rl,{rowData:t}))),(0,i.createElement)("td",null,(u=t.updated_at,Ti()(u).fromNow()))):(0,i.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},(0,i.createElement)(ji,null)):(0,i.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},(0,i.createElement)("i",null,(0,p.__)("Activate tracking to show the ranking position","wordpress-seo")));var u}(e),(0,i.createElement)(Xi,null,function({keyphrase:e,isEnabled:t,toggleAction:s,isLoading:a}){return a?(0,i.createElement)(At.SvgIcon,{icon:"loading-spinner"}):(0,i.createElement)(At.Toggle,{id:`toggle-keyphrase-tracking-${e}`,className:"wincher-toggle",isEnabled:t,onSetToggleState:s,showToggleStateLabel:!1})}({keyphrase:s,isEnabled:h,toggleAction:y,isLoading:c})))}rl.propTypes={rowData:h().object},nl.propTypes={rowData:h().object,keyphrase:h().string.isRequired,onTrackKeyphrase:h().func,onUntrackKeyphrase:h().func,isFocusKeyphrase:h().bool,isDisabled:h().bool,isLoading:h().bool,websiteId:h().string,isSelected:h().bool.isRequired,onSelectKeyphrases:h().func.isRequired},nl.defaultProps={rowData:{},onTrackKeyphrase:()=>{},onUntrackKeyphrase:()=>{},isFocusKeyphrase:!1,isDisabled:!1,isLoading:!1,websiteId:""};const ol=(0,Mt.makeOutboundLink)(),il=Xe().span`
	display: block;
	font-style: italic;

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

	& > div {
		margin: 0px;
	}
`,dl=Xe().th`
	padding-left: 2px !important;
`,pl=e=>{const t=(0,d.useRef)();return(0,d.useEffect)((()=>{t.current=e})),t.current},ul=(0,J.debounce)((async function(e=null,t=null,s=null,a){return await Ai({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:e,permalink:s,startAt:t},signal:a})}),500,{leading:!0}),ml=e=>{const{addTrackedKeyphrase:t,isLoggedIn:s,keyphrases:a,permalink:r,removeTrackedKeyphrase:n,setKeyphraseLimitReached:o,setRequestFailed:l,setRequestSucceeded:c,setTrackedKeyphrases:u,setHasTrackedAll:m,trackAll:h,trackedKeyphrases:g,isNewlyAuthenticated:y,websiteId:f,focusKeyphrase:w,newRequest:b,startAt:E,selectedKeyphrases:v,onSelectKeyphrases:_}=e,k=(0,d.useRef)(),x=(0,d.useRef)(),S=(0,d.useRef)(!1),[T,R]=(0,d.useState)([]),C=(0,d.useCallback)((e=>{const t=e.toLowerCase();return g&&!(0,J.isEmpty)(g)&&g.hasOwnProperty(t)?g[t]:null}),[g]),I=(0,d.useMemo)((()=>async()=>{await Pi((()=>(x.current&&x.current.abort(),x.current="undefined"==typeof AbortController?null:new AbortController,ul(a,E,r,x.current.signal))),(e=>{c(e),u(e.results)}),(e=>{l(e)}))}),[c,l,u,a,r,E]),L=(0,d.useCallback)((async e=>{const s=(Array.isArray(e)?e:[e]).map((e=>e.toLowerCase()));R((e=>[...e,...s])),await Pi((()=>Oi(s)),(e=>{c(e),t(e.results),I()}),(e=>{400===e.status&&e.limit&&o(e.limit),l(e)}),201),R((e=>(0,J.without)(e,...s)))}),[c,l,o,t,I]),P=(0,d.useCallback)((async(e,t)=>{e=e.toLowerCase(),R((t=>[...t,e])),await Pi((()=>async function(e){return await Ai({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:e}})}(t)),(t=>{c(t),n(e)}),(e=>{l(e)})),R((t=>(0,J.without)(t,e)))}),[c,n,l]),A=(0,d.useCallback)((async e=>{b(),await L(e)}),[b,L]),O=pl(r),D=pl(a),M=pl(E),F=r&&E;(0,d.useEffect)((()=>{s&&F&&(r!==O||(0,J.difference)(a,D).length||E!==M)&&I()}),[s,r,O,a,D,I,F,E,M]),(0,d.useEffect)((()=>{if(s&&h&&null!==g){const e=a.filter((e=>!C(e)));e.length&&L(e),m()}}),[s,h,g,L,m,C,a]),(0,d.useEffect)((()=>{y&&!S.current&&(I(),S.current=!0)}),[y,I]),(0,d.useEffect)((()=>{if(s&&!(0,J.isEmpty)(g))return(0,J.filter)(g,(e=>(0,J.isEmpty)(e.updated_at))).length>0&&(k.current=setInterval((()=>{I()}),1e4)),()=>{clearInterval(k.current)}}),[s,g,I]);const N=s&&null===g,q=(0,d.useMemo)((()=>(0,J.isEmpty)(g)?[]:Object.values(g).filter((e=>{var t;return!(0,J.isEmpty)(null==e||null===(t=e.position)||void 0===t?void 0:t.history)})).map((e=>e.keyword))),[g]),U=(0,d.useMemo)((()=>v.length>0&&q.length>0&&q.every((e=>v.includes(e)))),[v,q]),B=(0,d.useCallback)((()=>{_(U?[]:q)}),[_,U,q]),$=(0,d.useMemo)((()=>(0,J.orderBy)(a,[e=>Object.values(g||{}).map((e=>e.keyword)).includes(e)],["desc"])),[a,g]);return a&&!(0,J.isEmpty)(a)&&(0,i.createElement)(d.Fragment,null,(0,i.createElement)(ll,null,(0,i.createElement)("table",{className:"yoast yoast-table"},(0,i.createElement)("thead",null,(0,i.createElement)("tr",null,(0,i.createElement)(cl,{isDisabled:0===q.length},(0,i.createElement)(At.Checkbox,{id:"select-all",onChange:B,checked:U,label:""})),(0,i.createElement)(dl,{scope:"col",abbr:(0,p.__)("Keyphrase","wordpress-seo")},(0,p.__)("Keyphrase","wordpress-seo")),(0,i.createElement)("th",{scope:"col",abbr:(0,p.__)("Position","wordpress-seo")},(0,p.__)("Position","wordpress-seo")),(0,i.createElement)("th",{scope:"col",abbr:(0,p.__)("Position over time","wordpress-seo")},(0,p.__)("Position over time","wordpress-seo")),(0,i.createElement)("th",{scope:"col",abbr:(0,p.__)("Last updated","wordpress-seo")},(0,p.__)("Last updated","wordpress-seo")),(0,i.createElement)("th",{scope:"col",abbr:(0,p.__)("Tracking","wordpress-seo")},(0,p.__)("Tracking","wordpress-seo")))),(0,i.createElement)("tbody",null,$.map(((e,t)=>(0,i.createElement)(nl,{key:`trackable-keyphrase-${t}`,keyphrase:e,onTrackKeyphrase:A,onUntrackKeyphrase:P,rowData:C(e),isFocusKeyphrase:e===w.trim().toLowerCase(),websiteId:f,isDisabled:!s,isLoading:N||T.indexOf(e.toLowerCase())>=0,isSelected:v.includes(e),onSelectKeyphrases:_})))))),(0,i.createElement)("p",{style:{marginBottom:0,position:"relative"}},(0,i.createElement)(ol,{href:wpseoAdminGlobalL10n["links.wincher.login"]},(0,p.sprintf)(/* translators: %s expands to Wincher */
(0,p.__)("Get more insights over at %s","wordpress-seo"),"Wincher")),(0,i.createElement)(il,null,(0,p.__)("* focus keyphrase","wordpress-seo"))))};ml.propTypes={addTrackedKeyphrase:h().func.isRequired,isLoggedIn:h().bool,isNewlyAuthenticated:h().bool,keyphrases:h().array,newRequest:h().func.isRequired,removeTrackedKeyphrase:h().func.isRequired,setRequestFailed:h().func.isRequired,setKeyphraseLimitReached:h().func.isRequired,setRequestSucceeded:h().func.isRequired,setTrackedKeyphrases:h().func.isRequired,setHasTrackedAll:h().func.isRequired,trackAll:h().bool,trackedKeyphrases:h().object,websiteId:h().string,permalink:h().string.isRequired,focusKeyphrase:h().string,startAt:h().string,selectedKeyphrases:h().arrayOf(h().string).isRequired,onSelectKeyphrases:h().func.isRequired},ml.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],trackAll:!1,websiteId:"",focusKeyphrase:""};const hl=ml,gl=(0,xt.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)}}}))])(hl),yl=(0,Mt.makeOutboundLink)(),fl=(0,Mt.makeOutboundLink)(),wl=()=>{const e=(0,p.sprintf)((0,p.__)(/* 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,i.createElement)("p",null,(0,Io.Z)({mixedString:e,components:{wincherLink:(0,i.createElement)(yl,{href:wpseoAdminGlobalL10n["links.wincher.website"]},"Wincher"),wincherReadMoreLink:(0,i.createElement)(fl,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"]},(0,p.__)("Read more about keyphrase tracking with Wincher","wordpress-seo"))}}))},bl=()=>(0,i.createElement)(At.Alert,{type:"error"},(0,p.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo")),El=()=>(0,i.createElement)(At.Alert,{type:"info"},(0,p.sprintf)(/* translators: %s: Expands to "Wincher". */
(0,p.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher"));class vl{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 _l=e=>{const t=(0,p.sprintf)(/* translators: %s expands to a link to open the Wincher login popup. */
(0,p.__)("It seems like something went wrong when retrieving your website's data. Please %s and try again.","wordpress-seo"),"{{reconnectToWincher/}}","Wincher");return(0,i.createElement)(At.Alert,{type:"error",className:e.className},(0,Io.Z)({mixedString:t,components:{reconnectToWincher:(0,i.createElement)("a",{href:"#",onClick:t=>{t.preventDefault(),e.onReconnect()}},(0,p.sprintf)(/* translators: %s : Expands to "Wincher". */
(0,p.__)("reconnect to %s","wordpress-seo"),"Wincher"))}}))};_l.propTypes={onReconnect:h().func.isRequired,className:h().string},_l.defaultProps={className:""};const kl=_l,xl=()=>(0,i.createElement)(At.Alert,{type:"error"},(0,p.__)("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")),Sl=window.yoast["chart.js"],Tl="label";function Rl(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Cl(e,t){e.labels=t}function Il(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Tl;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 Ll(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tl;const s={labels:[],datasets:[]};return Cl(s,e.labels),Il(s,e.datasets,t),s}function Pl(e,t){const{height:s=150,width:a=300,redraw:r=!1,datasetIdKey:n,type:o,data:l,options:c,plugins:d=[],fallbackContent:p,updateMode:u,...m}=e,h=(0,i.useRef)(null),g=(0,i.useRef)(),y=()=>{h.current&&(g.current=new Sl.Chart(h.current,{type:o,data:Ll(l,n),options:c&&{...c},plugins:d}),Rl(t,g.current))},f=()=>{Rl(t,null),g.current&&(g.current.destroy(),g.current=null)};return(0,i.useEffect)((()=>{!r&&g.current&&c&&function(e,t){const s=e.options;s&&t&&Object.assign(s,t)}(g.current,c)}),[r,c]),(0,i.useEffect)((()=>{!r&&g.current&&Cl(g.current.config.data,l.labels)}),[r,l.labels]),(0,i.useEffect)((()=>{!r&&g.current&&l.datasets&&Il(g.current.config.data,l.datasets,n)}),[r,l.datasets]),(0,i.useEffect)((()=>{g.current&&(r?(f(),setTimeout(y)):g.current.update(u))}),[r,c,l.labels,l.datasets,u]),(0,i.useEffect)((()=>{g.current&&(f(),setTimeout(y))}),[o]),(0,i.useEffect)((()=>(y(),()=>f())),[]),i.createElement("canvas",Object.assign({ref:h,role:"img",height:s,width:a},m),p)}const Al=(0,i.forwardRef)(Pl);function Ol(e,t){return Sl.Chart.register(t),(0,i.forwardRef)(((t,s)=>i.createElement(Al,Object.assign({},t,{ref:s,type:e}))))}const Dl=Ol("line",Sl.LineController),Ml={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"};Sl._adapters._date.override("function"==typeof Ti()?{_id:"moment",formats:function(){return Ml},parse:function(e,t){return"string"==typeof e&&"string"==typeof t?e=Ti()(e,t):e instanceof Ti()||(e=Ti()(e)),e.isValid()?e.valueOf():null},format:function(e,t){return Ti()(e).format(t)},add:function(e,t,s){return Ti()(e).add(t,s).valueOf()},diff:function(e,t,s){return Ti()(e).diff(Ti()(t),s)},startOf:function(e,t,s){return e=Ti()(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 Ti()(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 Fl=["top","right","bottom","left"];function Nl(e,t,s){const a={};s=s?"-"+s:"";for(let r=0;r<4;r++){const n=Fl[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){}}(),Sl.Chart.register(Sl.CategoryScale,Sl.LineController,Sl.LineElement,Sl.PointElement,Sl.LinearScale,Sl.TimeScale,Sl.Legend,Sl.Tooltip);const ql=["#ff983b","#ffa3f7","#3798ff","#ff3b3b","#acce81","#b51751","#3949ab","#26c6da","#ccb800","#de66ff","#4db6ac","#ffab91","#45f5f1","#77f210","#90a4ae","#ffd54f","#006b5e","#8ec7d2","#b1887c","#cc9300"];function Ul({datasets:e,isChartShown:t,keyphrases:s}){if(!t)return null;const a=(0,d.useMemo)((()=>Object.fromEntries([...s].sort().map(((e,t)=>[e,ql[t%ql.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,i.createElement)(Dl,{height:100,data:{datasets:r},options:{plugins:{legend:{display:!0,position:"bottom",labels:{color:"black",usePointStyle:!0,boxHeight:7,boxWidth:7},onClick:J.noop},tooltip:{enabled:!0,callbacks:{title:e=>Ti()(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}}}})}Sl.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=Nl(r,"padding"),i=Nl(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(Sl.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:[]},Ul.propTypes={datasets:h().arrayOf(h().shape({label:h().string.isRequired,data:h().arrayOf(h().shape({datetime:h().string.isRequired,value:h().number.isRequired})).isRequired,selected:h().bool})).isRequired,isChartShown:h().bool.isRequired,keyphrases:h().array.isRequired};const Bl=({response:e,onLogin:t})=>[401,403,404].includes(e.status)?(0,i.createElement)(kl,{onReconnect:t}):(0,i.createElement)(Li,null);Bl.propTypes={response:h().object.isRequired,onLogin:h().func.isRequired};const $l=({isSuccess:e,response:t,allKeyphrasesMissRanking:s,onLogin:a,keyphraseLimitReached:r,limit:n})=>r?(0,i.createElement)(Ii,{limit:n}):(0,J.isEmpty)(t)||e?s?(0,i.createElement)(zi,null):null:(0,i.createElement)(Bl,{response:t,onLogin:a});$l.propTypes={isSuccess:h().bool.isRequired,allKeyphrasesMissRanking:h().bool.isRequired,response:h().object,onLogin:h().func.isRequired,keyphraseLimitReached:h().bool.isRequired,limit:h().number.isRequired},$l.defaultProps={response:{}};let Wl=null;const Kl=async e=>{if(Wl&&!Wl.isClosed())return void Wl.focus();const{url:t}=await async function(){return await Ai({path:"yoast/v1/wincher/authorization-url",method:"GET"})}();Wl=new vl(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 Pi((()=>async function(e){const{code:t,websiteId:s}=e;return await Ai({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 Pi((()=>Oi(l)),(e=>{a(e),o(e.results)}),(e=>{400===e.status&&e.limit&&i(e.limit),r(e)}),201);const c=Wl.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}),Wl.createPopup()},Hl=e=>e.isLoggedIn?null:(0,i.createElement)("p",null,(0,i.createElement)(At.NewButton,{onClick:e.onLogin,variant:"primary"},(0,p.sprintf)(/* translators: %s expands to Wincher */
(0,p.__)("Connect with %s","wordpress-seo"),"Wincher")));Hl.propTypes={isLoggedIn:h().bool.isRequired,onLogin:h().func.isRequired};const Yl=Xe().div`
	p {
		margin: 1em 0;
	}
`,zl=Xe().div`
	${e=>e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"};
`,jl=Xe().div`
	font-weight: var(--yoast-font-weight-bold);
	color: var(--yoast-color-label);
	font-size: var(--yoast-font-size-default);
`,Vl=Xe().div.attrs({className:"yoast-field-group"})`
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
`,Gl=Xe().div`
	margin: 8px 0;
`,Zl=Ti().utc().startOf("day"),Ql=[{name:(0,p.__)("Last day","wordpress-seo"),value:Ti()(Zl).subtract(1,"days").format(),defaultIndex:1},{name:(0,p.__)("Last week","wordpress-seo"),value:Ti()(Zl).subtract(1,"week").format(),defaultIndex:2},{name:(0,p.__)("Last month","wordpress-seo"),value:Ti()(Zl).subtract(1,"month").format(),defaultIndex:3},{name:(0,p.__)("Last year","wordpress-seo"),value:Ti()(Zl).subtract(1,"year").format(),defaultIndex:0}],Xl=e=>{const{onSelect:t,selected:s,options:a,isLoggedIn:r}=e;return r?a.length<1?null:(0,i.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,i.createElement)("option",{key:e.name,value:e.value},e.name)))):null};Xl.propTypes={onSelect:h().func.isRequired,selected:h().object,options:h().array.isRequired,isLoggedIn:h().bool.isRequired};const Jl=e=>{const{trackedKeyphrases:t,isLoggedIn:s,keyphrases:a,shouldTrackAll:r,permalink:n,historyDaysLimit:o}=e;if(!n&&s)return(0,i.createElement)(xl,null);if(0===a.length)return(0,i.createElement)(bl,null);const l=Ti()(Zl).subtract(o,"days"),c=Ql.filter((e=>Ti()(e.value).isSameOrAfter(l))),u=(0,J.orderBy)(c,(e=>e.defaultIndex),"desc")[0],[m,h]=(0,d.useState)(u),[g,y]=(0,d.useState)([]),f=g.length>0,w=(0,xt.usePrevious)(t);(0,d.useEffect)((()=>{if(!(0,J.isEmpty)(t)&&(0,J.difference)(Object.keys(t),Object.keys(w||[])).length){const e=Object.values(t).map((e=>e.keyword));y(e)}}),[t,w]),(0,d.useEffect)((()=>{h(u)}),[null==u?void 0:u.name]);const b=(0,d.useCallback)((e=>{const t=Ql.find((t=>t.value===e.target.value));t&&h(t)}),[h]),E=(0,d.useMemo)((()=>(0,J.isEmpty)(g)||(0,J.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:g.includes(e.keyword)&&!(0,J.isEmpty)(null===(t=e.position)||void 0===t?void 0:t.history)}}))),[g,t]);return(0,i.createElement)(zl,{isDisabled:!s},(0,i.createElement)("p",null,(0,p.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")),s&&r&&(0,i.createElement)(El,null),(0,i.createElement)(Vl,null,(0,i.createElement)(Xl,{selected:m,onSelect:b,options:c,isLoggedIn:s})),(0,i.createElement)(Gl,null,(0,i.createElement)(Ul,{isChartShown:f,datasets:E,keyphrases:a})),(0,i.createElement)(gl,{startAt:null==m?void 0:m.value,selectedKeyphrases:g,onSelectKeyphrases:y,trackedKeyphrases:t}))};function ec(e){const{isNewlyAuthenticated:t,isLoggedIn:s}=e,a=(0,d.useCallback)((()=>{Kl(e)}),[Kl,e]),r=Ui(s);return(0,i.createElement)(Yl,null,t&&(0,i.createElement)(Yi,null),s&&(0,i.createElement)(Hi,{trackingInfo:r}),(0,i.createElement)(jl,null,(0,p.__)("SEO performance","wordpress-seo"),(0,i.createElement)(At.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"]
/* translators: Hidden accessibility text. */,linkText:(0,p.__)("Learn more about the SEO performance feature.","wordpress-seo")})),(0,i.createElement)(wl,null),(0,i.createElement)(Hl,{isLoggedIn:s,onLogin:a}),(0,i.createElement)($l,{...e,onLogin:a}),(0,i.createElement)(Jl,{...e,historyDaysLimit:(null==r?void 0:r.historyDays)||31}))}Jl.propTypes={trackedKeyphrases:h().object,keyphrases:h().array.isRequired,isLoggedIn:h().bool.isRequired,shouldTrackAll:h().bool.isRequired,permalink:h().string.isRequired,historyDaysLimit:h().number},ec.propTypes={trackedKeyphrases:h().object,addTrackedKeyphrase:h().func.isRequired,isLoggedIn:h().bool,isNewlyAuthenticated:h().bool,keyphrases:h().array,response:h().object,shouldTrackAll:h().bool,permalink:h().string,historyDaysLimit:h().number},ec.defaultProps={trackedKeyphrases:null,isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],response:{},shouldTrackAll:!1,permalink:"",historyDaysLimit:0};const tc=(0,xt.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)}}}))])(ec),sc=Xe()(Ei)`
	width: 18px;
	height: 18px;
	margin: 3px;
`;function ac(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 rc(e){const{location:t,whichModalOpen:s,shouldCloseOnClickOutside:a}=e,r=(0,d.useCallback)((()=>{ac(e)}),[ac,e]),n=(0,p.__)("Track SEO performance","wordpress-seo"),o=ma();return(0,i.createElement)(d.Fragment,null,s===t&&(0,i.createElement)(Qt,{title:n,onRequestClose:e.onClose,icon:(0,i.createElement)(xi,null),additionalClassName:"yoast-wincher-seo-performance-modal yoast-gutenberg-modal__no-padding",shouldCloseOnClickOutside:a},(0,i.createElement)(jt,{className:"yoast-gutenberg-modal__content yoast-wincher-seo-performance-modal__content"},(0,i.createElement)(tc,null))),"sidebar"===t&&(0,i.createElement)(Dt,{id:`wincher-open-button-${t}`,title:n,SuffixHeroIcon:(0,i.createElement)(sc,{className:"yst-text-slate-500",...o}),onClick:r}),"metabox"===t&&(0,i.createElement)("div",{className:"yst-root"},(0,i.createElement)(Pt,{id:`wincher-open-button-${t}`,onClick:r},(0,i.createElement)(Pt.Text,null,n),(0,i.createElement)(Ei,{className:"yst-h-5 yst-w-5 yst-text-slate-500",...o}))))}rc.propTypes={location:h().string,whichModalOpen:h().oneOf(["none","metabox","sidebar","postpublish"]),shouldCloseOnClickOutside:h().bool,keyphrases:h().array.isRequired,onNoKeyphraseSet:h().func.isRequired,onOpen:h().func.isRequired,onClose:h().func.isRequired},rc.defaultProps={location:"",whichModalOpen:"none",shouldCloseOnClickOutside:!0};const nc=(0,xt.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()}}}))])(rc),oc=e=>(0,i.createElement)(zt,{title:(0,p.__)("Reach a wider audience","wordpress-seo"),description:(0,p.__)("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,p.sprintf)("%s also gives you:","Yoast SEO Premium"),benefits:Rt(),upsellButtonText:(0,p.sprintf)(/* translators: %s expands to 'Yoast SEO Premium'. */
(0,p.__)("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,p.__)("1 year free support and updates included!","wordpress-seo")});oc.propTypes={buyLink:h().string.isRequired};const ic=oc,lc=()=>{const[e,,,t,s]=(0,u.useToggleState)(!1),a=(0,d.useContext)(Je.LocationContext),{locationContext:r}=(0,Je.useRootContext)(),n=(0,u.useSvgAria)(),o=wpseoAdminL10n["sidebar"===a.toLowerCase()?"shortlinks.upsell.sidebar.additional_button":"shortlinks.upsell.metabox.additional_button"];return(0,i.createElement)(i.Fragment,null,e&&(0,i.createElement)(Qt,{title:(0,p.__)("Add related keyphrases","wordpress-seo"),onRequestClose:s,additionalClassName:"",id:"yoast-additional-keyphrases-modal",className:`${Gt} yoast-gutenberg-modal__box yoast-gutenberg-modal__no-padding`,shouldCloseOnClickOutside:!0},(0,i.createElement)(Vt,null,(0,i.createElement)(ic,{buyLink:(0,Tt.addQueryArgs)(o,{context:r})}))),"sidebar"===a&&(0,i.createElement)(Dt,{id:"yoast-additional-keyphrase-modal-open-button",title:(0,p.__)("Add related keyphrase","wordpress-seo"),prefixIcon:{icon:"plus",color:dn.colors.$color_grey_medium_dark},onClick:t},(0,i.createElement)("div",{className:"yst-root"},(0,i.createElement)(u.Badge,{size:"small",variant:"upsell"},(0,i.createElement)(St,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...n})))),"metabox"===a&&(0,i.createElement)("div",{className:"yst-root"},(0,i.createElement)(Pt,{id:"yoast-additional-keyphrase-metabox-modal-open-button",onClick:t},(0,i.createElement)(At.SvgIcon,{icon:"plus",color:dn.colors.$color_grey_medium_dark}),(0,i.createElement)(Pt.Text,null,(0,p.__)("Add related keyphrase","wordpress-seo")),(0,i.createElement)(u.Badge,{size:"small",variant:"upsell"},(0,i.createElement)(St,{className:"yst-w-2.5 yst-h-2.5 yst-mr-1 yst-shrink-0",...n}),(0,i.createElement)("span",null,"Premium")))))};function cc({isLoading:e,onLoad:t,settings:s}){const a=(({webinarIntroUrl:e})=>{const{shouldShow:t}=ds(),s=(e=>{for(const t of e)if(null!=t&&t.getIsEligible())return t;return null})([{getIsEligible:()=>t,component:us},{getIsEligible:pa,component:()=>(0,i.createElement)(ca,{hasIcon:!1,image:null,url:e})},{getIsEligible:da,component:()=>(0,i.createElement)(is,{hasIcon:!1})},{getIsEligible:()=>!0,component:()=>(0,i.createElement)(os,{hasIcon:!1})}]);return(null==s?void 0:s.component)||null})({webinarIntroUrl:(0,J.get)(window,"wpseoScriptData.webinarIntroElementorUrl","https://yoa.st/webinar-intro-elementor")});return(0,d.useEffect)((()=>{setTimeout((()=>{e&&t()}))})),e?null:(0,i.createElement)(d.Fragment,null,(0,i.createElement)(c.Fill,{name:"YoastElementor"},(0,i.createElement)(Va,{renderPriority:1},(0,i.createElement)(za,null),a&&(0,i.createElement)(a,null)),s.isKeywordAnalysisActive&&(0,i.createElement)(Va,{renderPriority:8},(0,i.createElement)(Jt.KeywordInput,{isSEMrushIntegrationActive:s.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&(0,i.createElement)(c.Fill,{name:"YoastRelatedKeyphrases"},(0,i.createElement)(bi,null))),s.isKeywordAnalysisActive&&(0,i.createElement)(Va,{renderPriority:10},(0,i.createElement)(d.Fragment,null,(0,i.createElement)(Jt.SeoAnalysis,{shouldUpsell:s.shouldUpsell,shouldUpsellWordFormRecognition:s.isWordFormRecognitionActive,shouldUpsellHighlighting:s.shouldUpsell}),s.shouldUpsell&&(0,i.createElement)(To,null))),s.isContentAnalysisActive&&(0,i.createElement)(Va,{renderPriority:15},(0,i.createElement)(Jt.ReadabilityAnalysis,{shouldUpsell:s.shouldUpsell,shouldUpsellHighlighting:s.shouldUpsell})),s.isInclusiveLanguageAnalysisActive&&(0,i.createElement)(Va,{renderPriority:19},(0,i.createElement)(Jt.InclusiveLanguageAnalysis,{shouldUpsellHighlighting:s.shouldUpsell})),s.isKeywordAnalysisActive&&(0,i.createElement)(Va,{key:"additional-keywords-upsell",renderPriority:22},s.shouldUpsell&&(0,i.createElement)(lc,null)),s.isKeywordAnalysisActive&&s.isWincherIntegrationActive&&(0,i.createElement)(Va,{key:"wincher-seo-performance",renderPriority:23},(0,i.createElement)(nc,{location:"sidebar",shouldCloseOnClickOutside:!1})),s.shouldUpsell&&(0,i.createElement)(Va,{key:"internal-linking-suggestions-upsell",renderPriority:24},(0,i.createElement)(Xt,null)),(0,i.createElement)(Va,{renderPriority:25},(0,i.createElement)(an,null)),(s.useOpenGraphData||s.useTwitterData)&&(0,i.createElement)(Va,{key:"social-appearance",renderPriority:26},(0,i.createElement)(vo,{useOpenGraphData:s.useOpenGraphData,useTwitterData:s.useTwitterData})),s.displaySchemaSettings&&(0,i.createElement)(Va,{renderPriority:28},(0,i.createElement)(Co,{title:(0,p.__)("Schema","wordpress-seo")},(0,i.createElement)(Wo,null))),s.displayAdvancedTab&&(0,i.createElement)(Va,{renderPriority:29},(0,i.createElement)(Co,{title:(0,p.__)("Advanced","wordpress-seo"),buttonId:"yoast-seo-elementor-advanced-button"},(0,i.createElement)(Zo,{location:"sidebar"}))),s.isCornerstoneActive&&(0,i.createElement)(Va,{renderPriority:30},(0,i.createElement)(ts,null)),s.isInsightsEnabled&&(0,i.createElement)(Va,{renderPriority:32},(0,i.createElement)(Ha,{location:"elementor"}))))}cc.propTypes={isLoading:h().bool.isRequired,onLoad:h().func.isRequired,settings:h().object.isRequired};const dc=(0,xt.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}}))])(cc),pc="yoast-elementor-react-tab",uc="yoast-seo-tab",mc="Yoast SEO",hc="panel/page-settings",gc=()=>{const{settings:e}=elementor.documents.getCurrent().config;e.tabs[uc]||(e.tabs=(0,J.reduce)(e.tabs,((e,t,s)=>(e[s]=t,"settings"===s&&(e[uc]=mc),e)),{})),$e.components.get(hc).hasTab(uc)||$e.components.get(hc).addTab(uc,{title:mc})};let yc=!1,fc=!1;const wc=(0,J.debounce)(yt,500,{trailing:!0}),bc=()=>{const e=document.getElementById("yoast-form");if(!e)return void console.error("Yoast form not found!");window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=nt,(()=>{const e=document.createElement("div");e.id="yoast-elementor-react-root",document.body.appendChild(e),function(e,t){const s=ne();at=(0,d.createRef)();const a={isRtl:s.isRtl};(0,d.render)((0,i.createElement)(tt,{theme:a,location:"sidebar"},(0,i.createElement)(c.SlotFillProvider,null,(0,i.createElement)(d.Fragment,null,t,(0,i.createElement)(rt,{ref:at})))),document.getElementById(e)),st.forEach((e=>{at.current.registerComponent(e.key,e.Component)}))}(e.id,(0,i.createElement)(Je.Root,{context:{locationContext:"elementor-sidebar"}},(0,i.createElement)(wt,{id:pc},(0,i.createElement)(kt,null),(0,i.createElement)(dc,null))))})(),pt("editor/documents/load","yoast-seo/register-tab",gc,(({config:e})=>ut(e.id))),$e.routes.on("run:after",((e,t)=>{t===`${hc}/${uc}`&&(()=>{if(document.getElementById(pc))return;const e=document.getElementById("elementor-panel-page-settings-controls");if(!e)return;const t=e.querySelector(".elementor-control-yoast-seo-section");t&&(t.style.display="none");const s=document.createElement("div");s.id=pc,s.className="yoast yoast-elementor-panel__fills",e.appendChild(s)})()})),gc(),elementor.getPanelView().getPages("menu").view.addItem({name:"yoast",icon:"yoast yoast-element-menu-icon",title:mc,type:"page",callback:()=>{try{$e.route(`${hc}/${uc}`)}catch(e){$e.route(`${hc}/settings`),$e.route(`${hc}/${uc}`)}}},"more"),((e,t=500)=>{const s=(0,J.debounce)(e,t,{trailing:!0});ct("document/elements/settings","yoast-seo/document/post-status",(({settings:e})=>s(e.post_status)),(({container:e,settings:t})=>{var s;return!!ut((null==e||null===(s=e.document)||void 0===s?void 0:s.id)||elementor.documents.getCurrent().id)&&Boolean(null==t?void 0:t.post_status)}))})((()=>wc(yc)));const t=((e,t=500)=>{const s={},a=Array.from(e.querySelectorAll("input[name^='yoast']")),r=a.reduce(((e,{name:t,value:s})=>(e[t]=s,e)),{}),n={...r},o=new MutationObserver((0,J.debounce)((e=>{const t=[];e.forEach((e=>{"value"===e.attributeName&&e.target.name.startsWith("yoast")&&e.target.value!==r[e.target.name]&&(t.push({input:e.target,name:e.target.name,value:e.target.value,previousValue:r[e.target.name],snapshotValue:n[e.target.name]}),r[e.target.name]=e.target.value)})),t.length>0&&(0,J.forEach)(s,(e=>e(t)))}),t));return{start:()=>o.observe(e,{attributes:!0,subtree:!0}),stop:()=>o.disconnect(),subscribe:e=>{const t=(0,J.uniqueId)("yoast-form-listener");return s[t]=e,()=>delete s[t]},takeSnapshot:()=>{a.forEach((({name:e,value:t})=>{n[e]=t}))},restoreSnapshot:()=>{a.forEach((e=>{e.value=n[e.name],r[e.name]=n[e.name]}))}}})(e);t.subscribe((e=>{e.some((e=>{return t=e.name,s=e.value,a=e.previousValue,!(ht.includes(t)||gt.includes(t)&&((e,t)=>{if(t===e)return!0;if(""===t||""===e)return!1;let s,a;try{s=JSON.parse(t),a=JSON.parse(e)}catch(e){return!0}return s.length===a.length&&s.every(((e,t)=>e.keyword===a[t].keyword))})(a,s)||s===a);var t,s,a}))&&(yc=!0,wc(yc),$e.internal("document/save/set-is-modified",{status:!0}))})),t.start(),dt("editor/documents/open","yoast-seo/document/open",(()=>{YoastSEO.store._freeze(!1),t.start(),(0,o.doAction)("yoast.elementor.toggleFreeze",{isFreeze:!1,isDiscard:!1})}),(({id:e})=>ut(e))),ct("editor/documents/close","yoast-seo/document/close",(0,J.throttle)((({mode:e})=>{t.stop(),"discard"===e&&(YoastSEO.store._restoreSnapshot(),t.restoreSnapshot(),yc=!1,yt(yc));const s=()=>{YoastSEO.store._freeze(!0),(0,o.doAction)("yoast.elementor.toggleFreeze",{isFreeze:!0,isDiscard:"discard"===e}),(0,o.removeAction)("yoast.elementor.save.success","yoast/yoast-seo/finishClosingDocument"),(0,o.removeAction)("yoast.elementor.save.failure","yoast/yoast-seo/finishClosingDocument")};if(fc)return(0,o.addAction)("yoast.elementor.save.success","yoast/yoast-seo/finishClosingDocument",s),void(0,o.addAction)("yoast.elementor.save.failure","yoast/yoast-seo/finishClosingDocument",s);s()}),500,{leading:!0,trailing:!1}),(({id:e})=>ut(e))),pt("document/save/save","yoast-seo/document/save",(async({document:s})=>{if(fc=!0,!ut(s.id))return;if(s.id!==elementor.config.document.revisions.current_id)return;yc=!1;const{success:a,formData:r,data:i,xhr:l}=await(e=>new Promise((t=>{const s=jQuery(e).serializeArray().reduce(((e,{name:t,value:s})=>(e[t]=s,e)),{});jQuery.post(e.getAttribute("action"),s).done((({success:e,data:a},r,n)=>t({success:e,formData:s,data:a,xhr:n}))).fail((e=>t({success:!1,formData:s,xhr:e})))})))(e);if(!a)return yc=!0,fc=!1,void(0,o.doAction)("yoast.elementor.save.failure");i.slug&&i.slug!==r.slug&&(0,n.dispatch)("yoast-seo/editor").updateData({slug:i.slug}),yt(yc),(0,o.doAction)("yoast.elementor.save.success",l),YoastSEO.store._takeSnapshot(),t.takeSnapshot(),fc=!1}),(({document:e})=>ut((null==e?void 0:e.id)||elementor.documents.getCurrent().id))),setTimeout((()=>{YoastSEO.store._takeSnapshot(),t.takeSnapshot()}),2e3)},Ec=window.yoast.reduxJsToolkit,vc="adminUrl",_c=(0,Ec.createSlice)({name:vc,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),kc=(_c.getInitialState,{selectAdminUrl:e=>(0,J.get)(e,vc,"")});kc.selectAdminLink=(0,Ec.createSelector)([kc.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}})),_c.actions,_c.reducer;const xc="linkParams",Sc=(0,Ec.createSlice)({name:xc,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),Tc=(Sc.getInitialState,{selectLinkParam:(e,t,s={})=>(0,J.get)(e,`${xc}.${t}`,s),selectLinkParams:e=>(0,J.get)(e,xc,{})});Tc.selectLink=(0,Ec.createSelector)([Tc.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,Tt.addQueryArgs)(t,{...e,...s}))),Sc.actions,Sc.reducer;const Rc=(0,Ec.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,Ec.nanoid)(),variant:t,size:s,title:a||"",description:r}})},removeNotification:(e,{payload:t})=>(0,J.omit)(e,t)}}),Cc=(Rc.getInitialState,Rc.actions,Rc.reducer,"pluginUrl"),Ic=(0,Ec.createSlice)({name:Cc,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),Lc=(Ic.getInitialState,{selectPluginUrl:e=>(0,J.get)(e,Cc,"")});Lc.selectImageLink=(0,Ec.createSelector)([Lc.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,J.trimEnd)(e,"/"),(0,J.trim)(t,"/"),(0,J.trimStart)(s,"/")].join("/"))),Ic.actions,Ic.reducer;const Pc="wistiaEmbedPermission",Ac=(0,Ec.createSlice)({name:Pc,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${Pc}/request`,(e=>{e.status=K})),e.addCase(`${Pc}/success`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${Pc}/error`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,J.get)(t,"error.code",500),message:(0,J.get)(t,"error.message","Unknown")}}))}}),Oc=(Ac.getInitialState,Ac.actions,{[Pc]:async({payload:e})=>ti()({path:"/yoast/v1/wistia_embed_permission",method:"POST",data:{value:Boolean(e)}})});function Dc({alertKey:e}){return new Promise((t=>wpseoApi.post("alerts/dismiss",{key:e},(()=>t()))))}function Mc({query:e,postId:t}){return new Promise((s=>{wpseoApi.get("meta/search",{query:e,post_id:t},(e=>{s(e.meta)}))}))}Ac.reducer;const Fc=Oc[Pc];class Nc{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 Nc.titleElement.value}static set title(e){Nc.titleElement.value=e}static get description(){return Nc.descriptionElement.value}static set description(e){Nc.descriptionElement.value=e}static get slug(){return Nc.slugElement.value}static set slug(e){Nc.slugElement.value=e}}const{UPDATE_DATA:qc,LOAD_SNIPPET_EDITOR_DATA:Uc}=ae.actions;function Bc(e){if(e.hasOwnProperty("title")){let t=e.title;e.title===(0,J.get)(window,"wpseoScriptData.metabox.title_template","")&&(t=""),Nc.title=t}if(e.hasOwnProperty("description")){let t=e.description;e.description===(0,J.get)(window,"wpseoScriptData.metabox.metadesc_template","")&&(t=""),Nc.description=t}return e.hasOwnProperty("slug")&&(Nc.slug=e.slug),{type:qc,data:e}}const $c=()=>{const e=(0,J.get)(window,"wpseoScriptData.metabox.title_template",""),t=(0,J.get)(window,"wpseoScriptData.metabox.metadesc_template","");return{type:Uc,data:{title:Nc.title||e,description:Nc.description||t,slug:Nc.slug},templates:{title:e,description:t}}},Wc="yoast-measurement-element";function Kc(e){let t=document.getElementById(Wc);return t||(t=function(){const e=document.createElement("div");return e.id=Wc,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}const{getBaseUrlFromSettings:Hc,getContentLocale:Yc,getEditorDataContent:zc,getFocusKeyphrase:jc,getSnippetEditorDescriptionWithTemplate:Vc,getSnippetEditorSlug:Gc,getSnippetEditorTitleWithTemplate:Zc,getDateFromSettings:Qc}=ae.selectors,Xc=e=>{let t=Zc(e),s=Vc(e),a=Gc(e);const r=Hc(e);return t=Mt.strings.stripHTMLTags(we("data_page_title",t)),s=Mt.strings.stripHTMLTags(we("data_meta_desc",s)),a=a.trim().replace(/\s+/g,"-"),{text:zc(e),title:t,keyword:jc(e),description:s,locale:Yc(e),titleWidth:Kc(t),slug:a,permalink:r+a,date:Qc(e)}},Jc={content:"",title:"",excerpt:"",slug:"",imageUrl:""},ed="yoastmark";function td(e){const t=elementor.settings.page.model.get("post_featured_image"),s=(0,J.get)(t,"url","");return""===s?function(e){const t=ee.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 sd(){elementor.documents.getCurrent().$element.find(".elementor-widget-container").each(((e,t)=>{-1!==t.innerHTML.indexOf("<"+ed)&&(t.innerHTML=ee.markers.removeMarks(t.innerHTML))})),(0,n.dispatch)("yoast-seo/editor").setActiveMarker(null),(0,n.dispatch)("yoast-seo/editor").setMarkerPauseStatus(!1),YoastSEO.analysis.applyMarks(new ee.Paper("",{}),[])}const ad=(0,J.debounce)((function(){const e=elementor.documents.getCurrent();if(!e.$element)return;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:elementor.settings.page.model.get("post_title"),excerpt:elementor.settings.page.model.get("post_excerpt")||"",imageUrl:td(t),status:elementor.settings.page.model.get("post_status")}}(e);t.content!==Jc.content&&(Jc.content=t.content,(0,n.dispatch)("yoast-seo/editor").setEditorDataContent(Jc.content)),t.title!==Jc.title&&(Jc.title=t.title,(0,n.dispatch)("yoast-seo/editor").setEditorDataTitle(Jc.title),"draft"!==t.status&&"auto-draft"!==t.status||(0,n.dispatch)("yoast-seo/editor").updateData({slug:(0,Tt.cleanForSlug)(Jc.title)})),t.excerpt!==Jc.excerpt&&(Jc.excerpt=t.excerpt,(0,n.dispatch)("yoast-seo/editor").setEditorDataExcerpt(Jc.excerpt)),t.imageUrl!==Jc.imageUrl&&(Jc.imageUrl=t.imageUrl,(0,n.dispatch)("yoast-seo/editor").setEditorDataImageUrl(Jc.imageUrl))}),te);function rd(){new MutationObserver((()=>{mt()&&ad()})).observe(document,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}function nd(e,t){const{updateWordsToHighlight:s}=(0,n.dispatch)("yoast-seo/editor");e("morphology",new ee.Paper("",{keyword:t})).then((({result:{keyphraseForms:e}})=>{s((0,J.uniq)((0,J.flatten)(e)))})).catch((()=>{s([])}))}const od=(0,J.debounce)(nd,500);var id=jQuery;function ld(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=id("#post_ID, [name=tag_ID]").val(),this._taxonomy=id("[name=taxonomy]").val()||"",this._nonce=r,this._ajaxAction=e,this._refreshAnalysis=s,this._initialized=!1}function cd(){window.YoastSEO=window.YoastSEO||{},window.YoastSEO.store=function(){const{snapshotReducer:e,takeSnapshot:s,restoreSnapshot:o}=((e,t)=>{let s,a=!1,r=!1;return{snapshotReducer:(r=t,n)=>a?(a=!1,s):e(r,n),takeSnapshot:(e,t)=>{t({type:"CREATE_SNAPSHOT"}),s=(0,J.cloneDeep)(e()),r=!0},restoreSnapshot:e=>{r&&(a=!0,e({type:"RESTORE_SNAPSHOT"}))}}})((0,n.combineReducers)(ae.reducers)),{freezeReducer:i,toggleFreeze:l}=((e,t)=>{let s=!1,a=null;return{freezeReducer:(r=t,n)=>s?a:e(r,n),toggleFreeze:(e,t=!s)=>{a=t?(0,J.cloneDeep)(e()):null,s=Boolean(t)}}})(e),c=(0,n.registerStore)("yoast-seo/editor",{reducer:i,selectors:{...ae.selectors,...r},actions:(0,J.pickBy)({...ae.actions,...a},(e=>"function"==typeof e)),controls:t});return(e=>{e.dispatch(ae.actions.loadCornerstoneContent()),e.dispatch(ae.actions.loadFocusKeyword()),e.dispatch(ae.actions.setMarkerStatus(window.wpseoScriptData.metabox.elementorMarkerStatus)),e.dispatch(ae.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(ae.actions.loadFacebookPreviewData()),s&&e.dispatch(ae.actions.loadTwitterPreviewData()),e.dispatch(ae.actions.setSEMrushChangeCountry(window.wpseoScriptData.metabox.countryCode)),e.dispatch(ae.actions.setSEMrushLoginStatus(window.wpseoScriptData.metabox.SEMrushLoginStatus)),e.dispatch(ae.actions.setWincherLoginStatus(window.wpseoScriptData.metabox.wincherLoginStatus,!1)),e.dispatch(ae.actions.setWincherWebsiteId(window.wpseoScriptData.metabox.wincherWebsiteId)),e.dispatch(ae.actions.setWincherAutomaticKeyphaseTracking(window.wpseoScriptData.metabox.wincherAutoAddKeyphrases)),e.dispatch(ae.actions.setDismissedAlerts((0,J.get)(window,"wpseoScriptData.dismissedAlerts",{}))),e.dispatch(ae.actions.setCurrentPromotions((0,J.get)(window,"wpseoScriptData.currentPromotions",{}))),e.dispatch(ae.actions.setIsPremium(Boolean((0,J.get)(window,"wpseoScriptData.metabox.isPremium",!1)))),e.dispatch(ae.actions.setAdminUrl((0,J.get)(window,"wpseoScriptData.adminUrl",""))),e.dispatch(ae.actions.setLinkParams((0,J.get)(window,"wpseoScriptData.linkParams",{}))),e.dispatch(ae.actions.setPluginUrl((0,J.get)(window,"wpseoScriptData.pluginUrl",""))),e.dispatch(ae.actions.setWistiaEmbedPermissionValue("1"===(0,J.get)(window,"wpseoScriptData.wistiaEmbedPermission",!1)))})(c),c._freeze=l.bind(null,c.getState),c._takeSnapshot=s.bind(null,c.getState,c.dispatch),c._restoreSnapshot=o.bind(null,c.dispatch),c}(),dt("panel/editor/open","yoast-seo/marks/reset-on-edit",(0,J.debounce)(sd,te),mt),dt("document/save/save","yoast-seo/marks/reset-on-save",sd,(({document:e})=>ut((null==e?void 0:e.id)||elementor.documents.getCurrent().id))),ct("editor/documents/attach-preview","yoast-seo/content-scraper/initial",ad,mt),ct("editor/documents/attach-preview","yoast-seo/content-scraper",(0,J.debounce)(rd,te),mt),ct("document/save/set-is-modified","yoast-seo/content-scraper/on-modified",ad,(({document:e})=>ut((null==e?void 0:e.id)||elementor.documents.getCurrent().id))),window.YoastSEO.pluginReady=he,window.YoastSEO.pluginReloaded=ge,window.YoastSEO.registerModification=ye,window.YoastSEO.registerPlugin=fe,window.YoastSEO.applyModifications=we,window.YoastSEO.analysis=window.YoastSEO.analysis||{},window.YoastSEO.analysis.run=(0,n.dispatch)("yoast-seo/editor").runAnalysis,window.YoastSEO.analysis.worker=Ge(),window.YoastSEO.analysis.collectData=Ve,fe(Yr,{status:"ready"}),Gr().forEach((t=>{const s=null==e?void 0:e[t];if(s){const e=(({getReplacement:e,regexp:t})=>s=>s.replace(t,e()))(s);Vr(e)}})),window.YoastSEO.wp=window.YoastSEO.wp||{},window.YoastSEO.wp.replaceVarsPlugin={addReplacement:Zr,ReplaceVar:Hr},function(){const e=ne(),t=(0,J.get)(window,["wpseoScriptData","analysis","worker","keywords_assessment_url"],"used-keywords-assessment.js"),s=(0,J.get)(window,["wpseoScriptData","usedKeywordsNonce"],""),a=new ld("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,J.debounce)(Ze(),1500,{maxWait:3e3}))})(),function(e){const{getFocusKeyphrase:t}=(0,n.select)("yoast-seo/editor");let s=t();nd(e,s),(0,n.subscribe)((()=>{const a=t();s!==a&&(s=a,od(e,a))}))}(window.YoastSEO.analysis.worker.runResearch),window.elementorFrontend.config.experimentalFeatures.editor_v2?function(){if(!0===window.elementor.config.user.introduction["yoast-introduction-editor-v2"])return;const e=new window.elementorModules.editor.utils.Introduction({introductionKey:"yoast-introduction-editor-v2",dialogOptions:{id:"yoast-introduction-editor-v2",className:"elementor-right-click-introduction yoast-elementor-introduction",headerMessage:(0,p.__)("Yoast SEO for Elementor","wordpress-seo"),message:(0,p.__)("Get started with Yoast SEO's content analysis for Elementor!","wordpress-seo"),position:{my:"center top",at:"center bottom+20",of:document.querySelector("button[value='document-settings']"),using:function(e,t){this.style.setProperty("--yoast-elementor-introduction-arrow",t.target.left-t.element.left+8+"px");const s=t.target.element.closest("#elementor-editor-wrapper-v2 header");s&&s.offsetHeight>e.top-12?this.style.top=s.offsetHeight+20+"px":(0,J.isObject)(s)&&s[0].offsetHeight>e.top-12?this.style.top=s[0].offsetHeight+12+"px":this.style.top=e.top+"px",this.style.left=e.left+"px"},autoRefresh:!0},hide:{onOutsideClick:!1}},onDialogInitCallback:t=>{window.$e.routes.on("run:after",(function(e,s){"panel/page-settings/settings"===s&&t.getElements("ok").trigger("click")})),t.addButton({name:"ok",text:(0,p.__)("Got it","wordpress-seo"),callback:()=>e.setViewed()}),t.getElements("ok").addClass("elementor-button elementor-button-success")}});setTimeout((function t(){try{e.show()}catch(e){setTimeout(t,100)}}),100)}():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 yoast-elementor-introduction",headerMessage:(0,p.__)("New: Yoast SEO for Elementor","wordpress-seo"),message:(0,p.__)("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,p.__)("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)}(),bc(),window.wpseoScriptData.postType&&!["attachment","product"].includes(window.wpseoScriptData.postType)&&(()=>{const e=(0,n.select)(X).getIsPremium(),t=(0,n.select)(X).getIsWooSeoUpsell(),s=(0,n.select)(X).getIsProduct()?!e||t:!e;(0,o.addFilter)("yoast.replacementVariableEditor.additionalButtons","yoast/yoast-seo-premium/AiGenerator",((e,{fieldId:t})=>(s&&e.push((0,i.createElement)(c.Fill,{name:`yoast.replacementVariableEditor.additionalButtons.${t}`},(0,i.createElement)(Q,{fieldId:t}))),e)))})(),(0,o.doAction)("yoast.elementor.loaded")}ld.prototype.init=function(){const{worker:e}=window.YoastSEO.analysis;this.requestKeywordUsage=(0,J.debounce)(this.requestKeywordUsage.bind(this),500),e.loadScript(this._scriptUrl).then((()=>{e.sendMessage("initialize",this._options,"used-keywords-assessment")})).then((()=>{this._initialized=!0,(0,J.isEqual)(this._options.usedKeywords,this._keywordUsage)?this._refreshAnalysis():e.sendMessage("updateKeywordUsage",this._keywordUsage,"used-keywords-assessment").then((()=>this._refreshAnalysis()))})).catch((e=>console.error(e)))},ld.prototype.setKeyword=function(e){(0,J.has)(this._keywordUsage,e)||this.requestKeywordUsage(e)},ld.prototype.requestKeywordUsage=function(e){id.post(ajaxurl,{action:this._ajaxAction,post_id:this._postID,keyword:e,taxonomy:this._taxonomy,nonce:this._nonce},this.updateKeywordUsage.bind(this,e),"json")},ld.prototype.updateKeywordUsage=function(e,t){const{worker:s}=window.YoastSEO.analysis,a=t.keyword_usage,r=t.post_types;a&&(0,J.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())))},jQuery(window).on("elementor:init",(()=>{window.elementor.on("panel:init",(()=>{setTimeout(cd)}))}))})()})();

Anon7 - 2022
AnonSec Team