????JFIF??x?x????'
Server IP : 104.21.48.1 / Your IP : 216.73.216.191 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/././././tempvsty/././peekmysite.com/wp-content/plugins/wordpress-seo/js/dist/ |
Upload File : |
(()=>{var e={4184:(e,t)=>{var s;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var i=typeof s;if("string"===i||"number"===i)e.push(s);else if(Array.isArray(s)){if(s.length){var n=o.apply(null,s);n&&e.push(n)}}else if("object"===i){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var a in s)r.call(s,a)&&s[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(s=function(){return o}.apply(t,[]))||(e.exports=s)}()},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},o=a(s(9196)),i=a(s(9156)),n=a(s(6743));function a(e){return e&&e.__esModule?e:{default:e}}var l=void 0;function c(e,t){var s,n,a,d,p,u,h,m,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],a=u;break}g.push(t[p.value])}else g.push(p.value);return s&&(d=function(e,t){var s,r,o=t[e],i=0;for(r=e+1;r<t.length;r++)if((s=t[r]).value===o.value){if("componentOpen"===s.type){i++;continue}if("componentClose"===s.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+o.value+"`")}(a,e),h=c(e.slice(a+1,d),t),n=o.default.cloneElement(s,{},h),g.push(n),d<e.length-1&&(m=c(e.slice(d+1),t),g=g.concat(m))),1===g.length?g[0]:(g.forEach((function(e,t){e&&(y["interpolation-child-"+t]=e)})),(0,i.default)(y))}t.Z=function(e){var t=e.mixedString,s=e.components,o=e.throwErrors;if(l=t,!s)return t;if("object"!==(void 0===s?"undefined":r(s))){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var i=(0,n.default)(t);try{return c(i,s)}catch(e){if(o)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),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=s(7942),n=s(9179),a=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 h(e,t,s,r){var i,a=typeof e;if("undefined"!==a&&"boolean"!==a||(e=null),null===e||"string"===a||"number"===a||"object"===a&&e.$$typeof===o)return s(r,e,""===t?l+u(e,0):t),1;var m=0,g=""===t?l:t+c;if(Array.isArray(e))for(var y=0;y<e.length;y++)m+=h(i=e[y],g+u(i,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,x=f.call(e),b=0;!(w=x.next()).done;)m+=h(i=w.value,g+u(i,b++),s,r);else if("object"===a){var _=""+e;n(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===_?"object with keys {"+Object.keys(e).join(", ")+"}":_,"")}}return m}var m=/\/+/g;function g(e){return(""+e).replace(m,"$&/")}var y,f,w=x,x=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 b(e,t,s,r){this.result=e,this.keyPrefix=t,this.func=s,this.context=r,this.count=0}function _(e,t,s){var o,n,a=e.result,l=e.keyPrefix,c=e.func,d=e.context,p=c.call(d,t,e.count++);Array.isArray(p)?v(p,a,s,i.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(o=p,n=l+(!p.key||t&&t.key===p.key?"":g(p.key)+"/")+s,p=r.cloneElement(o,{key:n},void 0!==o.props?o.props.children:void 0)),a.push(p))}function v(e,t,s,r,o){var i="";null!=s&&(i=g(s)+"/");var n=b.getPooled(t,i,r,o);!function(e,t,s){null==e||h(e,"",t,s)}(e,_,n),b.release(n)}b.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 o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,s,r),i}return new o(e,t,s,r)},(f=b).instancePool=[],f.getPooled=y||w,f.poolSize||(f.poolSize=10),f.release=function(e){var t=this;n(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return a(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return a(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;n(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var s in e)v(e[s],t,s,i.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,o,i,n,a){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,o,i,n,a],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},9196:e=>{"use strict";e.exports=window.React}},t={};function s(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,s),i.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,{DISMISS_ALERT:()=>Dl,NEW_REQUEST:()=>ql,SNIPPET_EDITOR_FIND_CUSTOM_FIELDS:()=>Nl,wistiaEmbedPermission:()=>Ul});var t={};s.r(t),s.d(t,{loadSnippetEditorData:()=>zl,updateData:()=>Hl});var r={};s.r(r),s.d(r,{getSnippetEditorData:()=>ec,getSnippetEditorSlug:()=>Jl});var o={};s.r(o),s.d(o,{getAnalysisData:()=>lc});var i={};s.r(i),s.d(i,{getWincherPermalink:()=>Bc});var n={};s.r(n),s.d(n,{authorFirstName:()=>Hc,authorLastName:()=>zc,category:()=>Gc,categoryTitle:()=>Zc,currentDate:()=>Kc,currentDay:()=>Yc,currentMonth:()=>Vc,currentYear:()=>Qc,date:()=>Xc,excerpt:()=>Jc,focusKeyphrase:()=>ed,id:()=>td,modified:()=>sd,name:()=>rd,page:()=>od,pageNumber:()=>id,pageTotal:()=>nd,permalink:()=>ad,postContent:()=>ld,postDay:()=>cd,postMonth:()=>dd,postTypeNamePlural:()=>ud,postTypeNameSingular:()=>hd,postYear:()=>pd,primaryCategory:()=>md,searchPhrase:()=>gd,separator:()=>yd,siteDescription:()=>fd,siteName:()=>wd,tag:()=>xd,term404:()=>bd,termDescription:()=>_d,termHierarchy:()=>vd,termTitle:()=>kd,title:()=>Sd,userDescription:()=>Ed});const a=window.wp.data,l=window.wp.hooks,c=window.lodash,d=window.yoast.analysis;function p(){}const u=window.yoast.externals.redux;function h(e){return e.sort(((e,t)=>e._identifier.localeCompare(t._identifier)))}function m(){return(0,c.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}function g(){const e=m();return(0,c.get)(e,"contentLocale","en_US")}function y(){const e=m();return!0===(0,c.get)(e,"contentAnalysisActive",!1)}function f(){const e=m();return!0===(0,c.get)(e,"keywordAnalysisActive",!1)}function w(){const e=m();return!0===(0,c.get)(e,"inclusiveLanguageAnalysisActive",!1)}const x=window.yoast.featureFlag;class b{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,c.isString)(e)?(0,c.isUndefined)(t)||(0,c.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,c.isString)(e)?(0,c.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,c.isString)(e)?(0,c.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,c.isString)(e))return console.error("Failed to register modification for plugin "+s+". Expected parameter `modification` to be a string."),!1;if(!(0,c.isFunction)(t))return console.error("Failed to register modification for plugin "+s+". Expected parameter `callable` to be a function."),!1;if(!(0,c.isString)(s))return console.error("Failed to register modification for plugin "+s+". Expected parameter `pluginName` to be a string."),!1;if(!1===this._validateOrigin(s))return console.error("Failed to register modification for plugin "+s+". The integration has not finished loading yet."),!1;const o={callable:t,origin:s,priority:(0,c.isNumber)(r)?r:10};return(0,c.isUndefined)(this.modifications[e])&&(this.modifications[e]=[]),this.modifications[e].push(o),!0}_registerAssessment(e,t,s,r){return(0,c.isString)(t)?(0,c.isObject)(s)?(0,c.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,c.isArray)(r)||r.length<1||(r=this._stripIllegalModifications(r),r.sort(((e,t)=>e.priority-t.priority)),(0,c.forEach)(r,(function(r){const o=r.callable(t,s);typeof o==typeof t?t=o: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,c.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,c.reduce)(this.plugins,(function(e,t){return e&&"ready"===t.status}),!0)}_pollTimeExceeded(){(0,c.forEach)(this.plugins,(function(e,t){(0,c.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,c.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,c.isUndefined)(this.plugins[e])}}let _=null;const v=()=>{if(null===_){const e=(0,a.dispatch)("yoast-seo/editor").runAnalysis;_=window.YoastSEO.app&&window.YoastSEO.app.pluggable?window.YoastSEO.app.pluggable:new b(e)}return _},k=e=>v()._ready(e),S=e=>v()._reloaded(e),E=(e,t,s,r)=>v()._registerModification(e,t,s,r),j=(e,t)=>v()._registerPlugin(e,t),T=(e,t,s)=>v().loaded?v()._applyModifications(e,t,s):t,R="yoastmark";function C(e,t){return e._properties.position.startOffset>t.length||e._properties.position.endOffset>t.length}function I(e,t,s){const r=e.dom;let o=e.getContent();if(o=d.markers.removeMarks(o),(0,c.isEmpty)(s))return void e.setContent(o);o=s[0].hasPosition()?function(e,t){if(!t)return"";for(let s=(e=(0,c.orderBy)(e,(e=>e._properties.position.startOffset),["asc"])).length-1;s>=0;s--){const r=e[s];C(r,t)||(t=r.applyWithPosition(t))}return t}(s,o):function(e,t,s,r){const{fieldsToMark:o,selectedHTML:i}=d.languageProcessing.getFieldsToMark(s,r);return(0,c.forEach)(s,(function(t){"acf_content"!==e.id&&(t._properties.marked=d.languageProcessing.normalizeHTML(t._properties.marked),t._properties.original=d.languageProcessing.normalizeHTML(t._properties.original)),o.length>0?i.forEach((e=>{const s=t.applyWithReplace(e);r=r.replace(e,s)})):r=t.applyWithReplace(r)})),r}(e,0,s,o),e.setContent(o),function(e){let t=e.getContent();t=t.replace(new RegExp("<yoastmark.+?>","g"),"").replace(new RegExp("</yoastmark>","g"),""),e.setContent(t)}(e);const i=r.select(R);(0,c.forEach)(i,(function(e){e.setAttribute("data-mce-bogus","1")}))}function L(e){return window.test=e,I.bind(null,e)}c.noop,c.noop,c.noop;const P="content";function A(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 O=function(e){return(0,c.uniq)((0,c.flatten)(e.map((e=>{if(!(0,c.isUndefined)(e.getFieldsToMark()))return e.getFieldsToMark()}))))},F=window.wp.richText,M=/(<([a-z]|\/)[^<>]+>)/gi,{htmlEntitiesRegex:D}=d.helpers.htmlEntities,N=e=>{let t=0;return(0,c.forEachRight)(e,(e=>{const[s]=e;let r=s.length;/^<\/?br/.test(s)&&(r-=1),t+=r})),t},q="<yoastmark class='yoast-text-mark'>",U="</yoastmark>",W='<yoastmark class="yoast-text-mark">';function $(e,t,s,r,o){const i=r.clientId,n=(0,F.create)({html:e,multilineTag:s.multilineTag,multilineWrapperTag:s.multilineWrapperTag}).text;return(0,c.flatMap)(o,(s=>{let o;return o=s.hasBlockPosition&&s.hasBlockPosition()?function(e,t,s,r,o){if(t===e.getBlockClientId()){let t=e.getBlockPositionStart(),i=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,i,s);t=e.blockStartOffset,i=e.blockEndOffset}if(r.slice(t,i)===o.slice(t,i))return[{startOffset:t,endOffset:i}];const n=((e,t,s)=>{const r=s.slice(0,e),o=s.slice(0,t),i=((e,t,s,r)=>{const o=[...e.matchAll(M)];s-=N(o);const i=[...t.matchAll(M)];return{blockStartOffset:s,blockEndOffset:r-=N(i)}})(r,o,e,t),n=((e,t,s,r)=>{let o=[...e.matchAll(D)];return(0,c.forEachRight)(o,(e=>{const[,t]=e;s-=t.length})),o=[...t.matchAll(D)],(0,c.forEachRight)(o,(e=>{const[,t]=e;r-=t.length})),{blockStartOffset:s,blockEndOffset:r}})(r,o,e=i.blockStartOffset,t=i.blockEndOffset);return{blockStartOffset:e=n.blockStartOffset,blockEndOffset:t=n.blockEndOffset}})(t,i,r);return[{startOffset:n.blockStartOffset,endOffset:n.blockEndOffset}]}return[]}(s,i,r.name,e,n):function(e,t){const s=t.getOriginal().replace(/(<([^>]+)>)/gi,""),r=t.getMarked().replace(/(<(?!\/?yoastmark)[^>]+>)/gi,""),o=function(e,t,s=!0){const r=[];if(0===e.length)return r;let o,i=0;for(s||(t=t.toLowerCase(),e=e.toLowerCase());(o=e.indexOf(t,i))>-1;)r.push(o),i=o+t.length;return r}(e,s);if(0===o.length)return[];const i=function(e){let t=e.indexOf(q);const s=t>=0;s||(t=e.indexOf(W));let r=null;const o=[];for(;t>=0;){if(r=(e=s?e.replace(q,""):e.replace(W,"")).indexOf(U),r<t)return[];e=e.replace(U,""),o.push({startOffset:t,endOffset:r}),t=s?e.indexOf(q):e.indexOf(W),r=null}return o}(r),n=[];return i.forEach((e=>{o.forEach((r=>{const o=r+e.startOffset;let i=r+e.endOffset;0===e.startOffset&&e.endOffset===t.getOriginal().length&&(i=r+s.length),n.push({startOffset:o,endOffset:i})}))})),n}(n,s),o?o.map((e=>({...e,block:i,richTextIdentifier:t}))):[]}))}const B=e=>e[0].toUpperCase()+e.slice(1),H=(e,t,s,r,o)=>(e=e.map((e=>{const i=`${e.id}-${o[0]}`,n=`${e.id}-${o[1]}`,a=B(o[0]),l=B(o[1]),c=e[`json${a}`],d=e[`json${l}`],{marksForFirstSection:p,marksForSecondSection:u}=((e,t)=>({marksForFirstSection:e.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&e.isMarkForFirstBlockSection():e)),marksForSecondSection:e.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&!e.isMarkForFirstBlockSection():e))}))(t,e),h=$(c,i,s,r,p),m=$(d,n,s,r,u);return h.concat(m)})),(0,c.flattenDeep)(e)),z="yoast";let K=[];const Y={"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 V(){const e=K.shift();e&&((0,a.dispatch)("core/annotations").__experimentalAddAnnotation(e),G())}function G(){(0,c.isFunction)(window.requestIdleCallback)?window.requestIdleCallback(V,{timeout:1e3}):setTimeout(V,150)}const Z=(e,t)=>{return(0,c.flatMap)((s=e.name,Y.hasOwnProperty(s)?Y[s]:[]),(s=>"yoast/faq-block"===e.name?((e,t,s)=>{const r=t.attributes[e.key];return 0===r.length?[]:H(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 o=[];return"steps"===e.key&&o.push(H(r,s,e,t,["name","text"])),"jsonDescription"===e.key&&(s=s.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?!e.getBlockAttributeId():e)),o.push($(r,"description",e,t,s))),(0,c.flattenDeep)(o)})(s,e,t):function(e,t,s){const r=e.key,o=((e,t)=>{const s=e.attributes[t];return"string"==typeof s?s:(s||"").toString()})(t,r);return $(o,r,e,t,s)}(s,e,t)));var s};function Q(e,t){return(0,c.flatMap)(e,(e=>{const s=function(e){return e.innerBlocks.length>0}(e)?Q(e.innerBlocks,t):[];return Z(e,t).concat(s)}))}function X(e){K=[],(0,a.dispatch)("core/annotations").__experimentalRemoveAnnotationsBySource(z);const t=O(e);if(0===e.length)return;let s=(0,a.select)("core/block-editor").getBlocks();var r;t.length>0&&(s=s.filter((e=>t.some((t=>"core/"+t===e.name))))),r=Q(s,e),K=r.map((e=>({blockClientId:e.block,source:z,richTextIdentifier:e.richTextIdentifier,range:{start:e.startOffset,end:e.endOffset}}))),G()}function J(e,t){let s;A(P)&&((0,c.isUndefined)(s)&&(s=L(tinyMCE.get(P))),s(e,t)),(0,a.select)("core/block-editor")&&(0,c.isFunction)((0,a.select)("core/block-editor").getBlocks)&&(0,a.select)("core/annotations")&&(0,c.isFunction)((0,a.dispatch)("core/annotations").__experimentalAddAnnotation)&&(function(e,t){tinyMCE.editors.map((e=>L(e))).forEach((s=>s(e,t)))}(e,t),X(t)),(0,l.doAction)("yoast.analysis.applyMarks",t)}function ee(){const e=(0,a.select)("yoast-seo/editor").isMarkingAvailable(),t=(0,a.select)("yoast-seo/editor").getMarkerPauseStatus();return!e||t?c.noop:J}const te=(0,c.debounce)((async function(e,t){const{text:s,...r}=t,o=new d.Paper(s,r);try{const t=await e.analyze(o),{seo:s,readability:r,inclusiveLanguage:i}=t.result;if(s){const e=s[""];e.results.forEach((e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(o,e.marks)})),e.results=h(e.results),(0,a.dispatch)("yoast-seo/editor").setSeoResultsForKeyword(o.getKeyword(),e.results),(0,a.dispatch)("yoast-seo/editor").setOverallSeoScore(e.score,o.getKeyword())}r&&(r.results.forEach((e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(o,e.marks)})),r.results=h(r.results),(0,a.dispatch)("yoast-seo/editor").setReadabilityResults(r.results),(0,a.dispatch)("yoast-seo/editor").setOverallReadabilityScore(r.score)),i&&(i.results.forEach((e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(o,e.marks)})),i.results=h(i.results),(0,a.dispatch)("yoast-seo/editor").setInclusiveLanguageResults(i.results),(0,a.dispatch)("yoast-seo/editor").setOverallInclusiveLanguageScore(i.score)),(0,l.doAction)("yoast.analysis.run",t,{paper:o})}catch(e){}}),500);function se(){const{getAnalysisData:e,getEditorDataTitle:t,getIsFrontPage:s}=(0,a.select)("yoast-seo/editor");let r=e();r={...r,textTitle:t(),isFrontPage:s()};const o=function(e){return e.title=T("data_page_title",e.title),e.title=T("title",e.title),e.description=T("data_meta_desc",e.description),e.text=T("content",e.text),e}(r);return(0,l.applyFilters)("yoast.analysis.data",o)}const re=()=>{const{getContentLocale:e}=(0,a.select)("yoast-seo/editor"),t=((...e)=>()=>e.map((e=>e())))(e,se),s=(()=>{const{setEstimatedReadingTime:e,setFleschReadingEase:t,setTextLength:s}=(0,a.dispatch)("yoast-seo/editor"),r=(0,c.get)(window,"YoastSEO.analysis.worker.runResearch",c.noop);return()=>{const o=d.Paper.parse(se());r("readingTime",o).then((t=>e(t.result))),r("getFleschReadingScore",o).then((e=>{e.result&&t(e.result)})),r("wordCountInText",o).then((e=>s(e.result)))}})();return setTimeout(s,1500),((e,t)=>{let s=e();return()=>{const r=e();(0,c.isEqual)(r,s)||(s=r,t((0,c.clone)(r)))}})(t,s)},oe=window.wp.components,ie=window.wp.element,ne=window.yoast.propTypes;var ae=s.n(ne);const le=window.yoast.styledComponents;var ce=s.n(le);const de=window.yoast.externals.contexts,pe=window.ReactJSXRuntime,ue=({theme:e,location:t,children:s})=>(0,pe.jsx)(de.LocationProvider,{value:t,children:(0,pe.jsx)(le.ThemeProvider,{theme:e,children:s})});ue.propTypes={theme:ae().object.isRequired,location:ae().oneOf(["sidebar","metabox","modal"]).isRequired,children:ae().element.isRequired};const he=ue,me=[];let ge=null;class ye extends ie.Component{constructor(e){super(e),this.state={registeredComponents:[...me]}}registerComponent(e,t){this.setState((s=>({...s,registeredComponents:[...s.registeredComponents,{key:e,Component:t}]})))}render(){return this.state.registeredComponents.map((({Component:e,key:t})=>(0,pe.jsx)(e,{},t)))}}function fe(e,t){null===ge||null===ge.current?me.push({key:e,Component:t}):ge.current.registerComponent(e,t)}const we=()=>!0;class xe extends $e.modules.hookUI.Base{constructor(e,t,s,r=we){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 be extends $e.modules.hookData.Base{constructor(e,t,s,r=we){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 _e(e,t,s,r=we){return $e.hooks.registerUIAfter(new xe(e,t,s,r))}function ve(e,t,s,r=we){return $e.hooks.registerUIBefore(new xe(e,t,s,r))}function ke(e,t,s,r=we){return $e.hooks.registerDataAfter(new be(e,t,s,r))}const Se=e=>{return parseInt(null===(t=document.getElementById("post_ID"))||void 0===t?void 0:t.value,10)===e;var t},Ee=()=>{var e;return Se(null===(e=elementor.documents.getCurrent())||void 0===e?void 0:e.id)},je=["yoast_wpseo_linkdex","yoast_wpseo_content_score","yoast_wpseo_inclusive_language_score","yoast_wpseo_words_for_linking","yoast_wpseo_estimated-reading-time-minutes"],Te=["yoast_wpseo_focuskeywords","hidden_wpseo_focuskeywords"],Re=window.wp.i18n,Ce=e=>{let t="";e&&(t=(0,Re.sprintf)(/* translators: %1$s translates to the Post Label in singular form */ (0,Re.__)("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,a.select)("yoast-seo/editor").getWarningMessage()!==t&&(0,a.dispatch)("yoast-seo/editor").setWarningMessage(t)},Ie=(e,t,s)=>null===t?null:(0,ie.createPortal)(e,t,s),Le=({id:e,children:t})=>{const s=(0,ie.useRef)(document.getElementById(e)),[r,o]=(0,ie.useState)((()=>Ie(t,s.current,e))),i=(0,ie.useCallback)((()=>{const r=document.getElementById(e);r!==s.current&&(s.current=r,o(Ie(t,r,e)))}),[e,t]);return((e,t,s={childList:!0,subtree:!0})=>{(0,ie.useEffect)((()=>{const r=new MutationObserver(t);return r.observe(e,s),()=>r.disconnect()}),[e,t])})(document.body,i),r},Pe=window.yoast.uiLibrary,Ae=(e,t)=>{try{return(0,ie.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}};ae().string.isRequired;var Oe=s(9196),Fe=s.n(Oe);const Me=Oe.forwardRef((function(e,t){return Oe.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),Oe.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"}))})),De=Oe.forwardRef((function(e,t){return Oe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Oe.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"}))})),Ne=({learnMoreLink:e,thumbnail:t,wistiaEmbedPermission:s,upsellLink:r,upsellLabel:o,newToText:i,ctbId:n})=>{const{onClose:a,initialFocus:l}=(0,Pe.useModalContext)(),c={a:(0,pe.jsx)(st,{href:e,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,pe.jsx)(De,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),br:(0,pe.jsx)("br",{})};return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsxs)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center",children:[(0,pe.jsxs)("div",{className:"yst-relative yst-w-full",children:[(0,pe.jsx)($t,{videoId:"vun9z1dpfh",thumbnail:t,wistiaEmbedPermission:s}),(0,pe.jsx)(Pe.Badge,{className:"yst-absolute yst-end-4 yst-text-center yst-justify-center",variant:"info",style:{top:"-8px"},children:(0,Re.__)("Beta","wordpress-seo")})]}),(0,pe.jsx)("div",{className:"yst-mt-6 yst-text-xs yst-font-medium yst-flex yst-flex-col yst-items-center",children:(0,pe.jsxs)("span",{className:"yst-introduction-modal-uppercase yst-flex yst-gap-2 yst-items-center",children:[(0,pe.jsx)("span",{className:"yst-logo-icon"}),i]})})]}),(0,pe.jsxs)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center",children:[(0,pe.jsxs)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center",children:[(0,pe.jsx)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium",children:(0,Re.sprintf)(/* translators: %s: Expands to "Yoast AI" */ (0,Re.__)("Optimize your SEO content with %s","wordpress-seo"),"Yoast AI")}),(0,pe.jsx)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm",children:Ae((0,Re.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tags; %4$s is the arrow icon. */ (0,Re.__)("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>"),c)})]}),(0,pe.jsx)("div",{className:"yst-w-full yst-flex yst-mt-6",children:(0,pe.jsxs)(Pe.Button,{as:"a",className:"yst-grow",size:"extra-large",variant:"upsell",href:r,target:"_blank",ref:l,"data-action":"load-nfd-ctb","data-ctb-id":n,children:[(0,pe.jsx)(Me,{className:"yst--ms-1 yst-me-2 yst-h-5 yst-w-5"}),o,(0,pe.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ (0,Re.__)("(Opens in a new browser tab)","wordpress-seo")})]})}),(0,pe.jsx)(Pe.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:a,children:(0,Re.__)("Close","wordpress-seo")})]})]})};Ne.propTypes={learnMoreLink:ae().string.isRequired,upsellLink:ae().string.isRequired,thumbnail:ae().shape({src:ae().string.isRequired,width:ae().string,height:ae().string}).isRequired,wistiaEmbedPermission:ae().shape({value:ae().bool.isRequired,status:ae().string.isRequired,set:ae().func.isRequired}).isRequired,upsellLabel:ae().string,newToText:ae().string,ctbId:ae().string},Ne.defaultProps={upsellLabel:(0,Re.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */ (0,Re.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),newToText:"Yoast SEO Premium",ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"};const qe=({handleRefreshClick:e,supportLink:t})=>(0,pe.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,pe.jsx)(Pe.Button,{onClick:e,children:(0,Re.__)("Refresh this page","wordpress-seo")}),(0,pe.jsx)(Pe.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,Re.__)("Contact support","wordpress-seo")})]});qe.propTypes={handleRefreshClick:ae().func.isRequired,supportLink:ae().string.isRequired};const Ue=({handleRefreshClick:e,supportLink:t})=>(0,pe.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,pe.jsx)(Pe.Button,{className:"yst-order-last",onClick:e,children:(0,Re.__)("Refresh this page","wordpress-seo")}),(0,pe.jsx)(Pe.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,Re.__)("Contact support","wordpress-seo")})]});Ue.propTypes={handleRefreshClick:ae().func.isRequired,supportLink:ae().string.isRequired};const We=({error:e,children:t})=>(0,pe.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,pe.jsx)(Pe.Title,{children:(0,Re.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,pe.jsx)("p",{children:(0,Re.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,pe.jsx)(Pe.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,Re.__)("Undefined error message.","wordpress-seo")}),(0,pe.jsx)("p",{children:(0,Re.__)("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]});We.propTypes={error:ae().object.isRequired,children:ae().node},We.VerticalButtons=Ue,We.HorizontalButtons=qe;var Be;function He(){return He=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},He.apply(this,arguments)}ae().string,ae().node.isRequired,ae().node.isRequired,ae().node,ae().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 ze=e=>Oe.createElement("svg",He({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 1000 1000"},e),Be||(Be=Oe.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"}))),Ke=window.ReactDOM;var Ye,Ve,Ge;(Ve=Ye||(Ye={})).Pop="POP",Ve.Push="PUSH",Ve.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(Ge||(Ge={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const Ze=["post","put","patch","delete"],Qe=(new Set(Ze),["get",...Ze]);new Set(Qe),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),Oe.Component,Oe.startTransition,new Promise((()=>{})),Oe.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var Xe,Je,et,tt;new Map,Oe.startTransition,Ke.flushSync,Oe.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(tt=Xe||(Xe={})).UseScrollRestoration="useScrollRestoration",tt.UseSubmit="useSubmit",tt.UseSubmitFetcher="useSubmitFetcher",tt.UseFetcher="useFetcher",tt.useViewTransitionState="useViewTransitionState",(et=Je||(Je={})).UseFetcher="useFetcher",et.UseFetchers="useFetchers",et.UseScrollRestoration="useScrollRestoration",ae().string.isRequired,ae().string;const st=({href:e,children:t,...s})=>(0,pe.jsxs)(Pe.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e,children:[t,(0,pe.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ (0,Re.__)("(Opens in a new browser tab)","wordpress-seo")})]});st.propTypes={href:ae().string.isRequired,children:ae().node},st.defaultProps={children:null};const rt=Oe.forwardRef((function(e,t){return Oe.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),Oe.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),ot=[(0,Re.__)("AI tools included","wordpress-seo"),(0,Re.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */ (0,Re.__)("%1$s access","wordpress-seo"),"Yoast SEO academy"),(0,Re.__)("24/7 support","wordpress-seo")],it=[(0,Re.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,Re.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,Re.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,Re.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,Re.__)("Internal links and redirect management, easy","wordpress-seo"),(0,Re.__)("Access to friendly help when you need it, day or night","wordpress-seo")],nt=(e=!1)=>e?ot:it,at=(e=!1)=>{if(e)return ot;const t=[...it];return t[1]=(0,Re.__)("Boost visibility for your products, from 10 or 10,000+","wordpress-seo"),t};var lt,ct,dt;function pt(){return pt=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},pt.apply(this,arguments)}const ut=e=>Oe.createElement("svg",pt({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),lt||(lt=Oe.createElement("defs",null,Oe.createElement("style",null,".star-rating-half_svg__cls-1{fill:#fbbf24}"))),ct||(ct=Oe.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"})),dt||(dt=Oe.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"})),Oe.createElement("path",{d:"m500 181.64-172.75-25.11L250 0v394.3l154.51 81.23L375 303.48l125-121.84z",style:{fill:"#f3f4f6"}}));function ht(){return ht=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},ht.apply(this,arguments)}const mt=e=>Oe.createElement("svg",ht({xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 500 475.53"},e),Oe.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 gt,yt,ft;function wt(){return wt=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},wt.apply(this,arguments)}const xt=e=>Oe.createElement("svg",wt({xmlns:"http://www.w3.org/2000/svg",width:64,height:64,fill:"none"},e),gt||(gt=Oe.createElement("g",{clipPath:"url(#yoast-premium-logo-new_svg__a)"},Oe.createElement("path",{fill:"url(#yoast-premium-logo-new_svg__b)",d:"M64 64H10.24C4.586 64 0 59.414 0 53.76V10.24C0 4.586 4.586 0 10.24 0h43.52C59.414 0 64 4.586 64 10.24V64Z"}),Oe.createElement("path",{fill:"#6C2548",d:"m56.016.125-36.06 63.75H64v-53.76c0-4.88-3.414-8.96-7.984-9.987",opacity:.35}),Oe.createElement("path",{fill:"#fff",d:"M9.523 43.174v4.468c2.765-.116 4.928-1.024 6.759-2.88 1.83-1.856 3.507-4.864 5.107-9.332L33.242 3.686h-5.735L17.96 30.208l-4.736-14.874H7.975l6.963 17.895a7.352 7.352 0 0 1 0 5.35c-.704 1.818-1.971 3.955-5.415 4.595Z"}),Oe.createElement("path",{fill:"#9FDA4F",d:"M53.274 5.11c-5.99-3.382-13.59-1.27-16.976 4.72-3.386 5.99-1.27 13.59 4.72 16.976 5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),Oe.createElement("path",{fill:"#77B227",d:"M53.274 5.11 41.018 26.806c5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),Oe.createElement("path",{fill:"#FEC228",d:"M37.731 32.608s-.012-.006-.019-.013c-.006 0-.01-.006-.016-.01a8.134 8.134 0 0 0-11.091 3.085 8.145 8.145 0 0 0 3.104 11.108 8.139 8.139 0 0 0 11.075-3.095 8.14 8.14 0 0 0-3.05-11.072"}),Oe.createElement("path",{fill:"#F49A00",d:"m37.696 32.586-8.01 14.179a8.145 8.145 0 0 0 11.095-3.085 8.144 8.144 0 0 0-3.085-11.094Z"}),Oe.createElement("path",{fill:"#FF4E47",d:"M28.454 57.61a4.89 4.89 0 0 0-2.477-4.256 4.863 4.863 0 0 0-2.4-.634c-2.69 0-4.892 2.18-4.892 4.883a4.882 4.882 0 0 0 4.883 4.893 4.882 4.882 0 0 0 4.893-4.883"}),Oe.createElement("path",{fill:"#ED261F",d:"m25.971 53.35-4.806 8.51a4.882 4.882 0 0 0 6.656-1.854 4.882 4.882 0 0 0-1.853-6.656"}),Oe.createElement("path",{fill:"#CD82AB",d:"M57.402 58.086H43.888v1.197h13.514v-1.197ZM53.75 53.366l-3.103-5.76v.004l-.004-.004-3.104 5.76-4.777-3.42 1.126 7.702h13.514l1.126-7.702-4.777 3.42Z"}))),yt||(yt=Oe.createElement("path",{stroke:"#fff",d:"M10 .5h44a9.5 9.5 0 0 1 9.5 9.5v53.5H10A9.5 9.5 0 0 1 .5 54V10A9.5 9.5 0 0 1 10 .5Z"})),ft||(ft=Oe.createElement("defs",null,Oe.createElement("linearGradient",{id:"yoast-premium-logo-new_svg__b",x1:-2.912,x2:68.509,y1:25.843,y2:38.438,gradientUnits:"userSpaceOnUse"},Oe.createElement("stop",{stopColor:"#5D237A"}),Oe.createElement("stop",{offset:.08,stopColor:"#702175"}),Oe.createElement("stop",{offset:.22,stopColor:"#872070"}),Oe.createElement("stop",{offset:.36,stopColor:"#981E6C"}),Oe.createElement("stop",{offset:.51,stopColor:"#A21E69"}),Oe.createElement("stop",{offset:.7,stopColor:"#A61E69"})),Oe.createElement("clipPath",{id:"yoast-premium-logo-new_svg__a"},Oe.createElement("path",{fill:"#fff",d:"M0 10C0 4.477 4.477 0 10 0h44c5.523 0 10 4.477 10 10v54H10C4.477 64 0 59.523 0 54V10Z"})))));var bt,_t,vt;function kt(){return kt=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},kt.apply(this,arguments)}const St=e=>Oe.createElement("svg",kt({xmlns:"http://www.w3.org/2000/svg",width:64,height:64,fill:"none"},e),bt||(bt=Oe.createElement("g",{clipPath:"url(#woo-seo-logo-new_svg__a)"},Oe.createElement("path",{fill:"#0E1E65",d:"M64 64H10.24C4.586 64 0 59.414 0 53.76V10.24C0 4.586 4.586 0 10.24 0h43.52C59.414 0 64 4.586 64 10.24V64Z"}),Oe.createElement("path",{fill:"#0075B3",d:"M56.016.253 19.956 64H64V10.24c0-4.88-3.414-8.96-7.984-9.987Z"}),Oe.createElement("path",{fill:"#fff",d:"M9.523 43.174v4.468c2.765-.116 4.928-1.024 6.759-2.88 1.83-1.856 3.507-4.864 5.107-9.332L33.242 3.686h-5.735L17.96 30.208l-4.736-14.874H7.975l6.963 17.895a7.352 7.352 0 0 1 0 5.35c-.704 1.818-1.971 3.955-5.415 4.595Z"}),Oe.createElement("path",{fill:"#9FDA4F",d:"M53.274 5.11c-5.99-3.382-13.59-1.27-16.976 4.72-3.386 5.99-1.27 13.59 4.72 16.976 5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),Oe.createElement("path",{fill:"#FEC228",d:"M37.731 32.608s-.012-.006-.019-.013c-.006 0-.01-.006-.016-.01a8.134 8.134 0 0 0-11.091 3.085 8.145 8.145 0 0 0 3.104 11.108 8.139 8.139 0 0 0 11.075-3.095 8.14 8.14 0 0 0-3.05-11.072"}),Oe.createElement("path",{fill:"#FF4E47",d:"M28.454 57.61a4.89 4.89 0 0 0-2.477-4.256 4.863 4.863 0 0 0-2.4-.634c-2.69 0-4.892 2.18-4.892 4.883a4.882 4.882 0 0 0 4.883 4.893 4.882 4.882 0 0 0 4.893-4.883"}),Oe.createElement("path",{fill:"#77B227",d:"M53.274 5.11 41.018 26.806c5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),Oe.createElement("path",{fill:"#F49A00",d:"m37.696 32.586-8.01 14.179a8.145 8.145 0 0 0 11.095-3.085 8.144 8.144 0 0 0-3.085-11.094Z"}),Oe.createElement("path",{fill:"#ED261F",d:"m25.971 53.35-4.806 8.51a4.882 4.882 0 0 0 6.656-1.854 4.882 4.882 0 0 0-1.853-6.656"}),Oe.createElement("path",{fill:"#A1CCE3",d:"M58.102 46.806a1.26 1.26 0 0 0-1.219.938l-.157.582a40.97 40.97 0 0 0-10.857 1.261c-.013 0-.023.007-.035.01a.503.503 0 0 0-.317.64 40.344 40.344 0 0 0 1.99 4.86c.083.173.26.282.455.282h7.542c.64 0 1.213.403 1.427 1.008h-10a.507.507 0 0 0 0 1.011h10.592a.507.507 0 0 0 .506-.505c0-1.149-.775-2.15-1.888-2.442L57.862 48a.25.25 0 0 1 .243-.186h.932a.507.507 0 0 0 0-1.01h-.931l-.004.002ZM57.018 59.92a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Zm-8.573 0a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Z"}))),_t||(_t=Oe.createElement("path",{stroke:"#fff",d:"M10 .5h44a9.5 9.5 0 0 1 9.5 9.5v53.5H10A9.5 9.5 0 0 1 .5 54V10A9.5 9.5 0 0 1 10 .5Z"})),vt||(vt=Oe.createElement("defs",null,Oe.createElement("clipPath",{id:"woo-seo-logo-new_svg__a"},Oe.createElement("path",{fill:"#fff",d:"M0 10C0 4.477 4.477 0 10 0h44c5.523 0 10 4.477 10 10v54H10C4.477 64 0 59.523 0 54V10Z"}))))),Et=Oe.forwardRef((function(e,t){return Oe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Oe.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}));var jt=s(4184),Tt=s.n(jt);const Rt=({link:e,linkProps:t,isPromotionActive:s,isWooCommerceActive:r})=>{const o=r?at:nt,i=(0,ie.useMemo)((()=>r?(0,Re.__)("SEO that scales with your product catalog.","wordpress-seo"):(0,Re.__)("Now with Local, News & Video SEO + 1 Google Docs seat!","wordpress-seo")),[r]);let n=(0,Re.__)("Buy now","wordpress-seo");const a=Ae(r?(0,Re.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */ (0,Re.__)("%1$s%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast WooCommerce SEO"):(0,Re.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */ (0,Re.__)("%1$s%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast SEO Premium"),{nowrap:(0,pe.jsx)("span",{className:"yst-whitespace-nowrap"})}),l=s("black-friday-promotion");return l&&(n=(0,Re.__)("Buy now for 30% off","wordpress-seo")),(0,pe.jsxs)("div",{className:Tt()("yst-p-6 yst-rounded-lg yst-text-white yst-shadow",r?"yst-bg-woo-dark":"yst-bg-primary-500"),children:[(0,pe.jsx)("figure",{className:"yst-logo-square yst-w-16 yst-h-16 yst-mx-auto yst-overflow-hidden yst-relative yst-z-10 yst-mt-[-2.6rem]",children:r?(0,pe.jsx)(St,{}):(0,pe.jsx)(xt,{})}),l&&(0,pe.jsx)("div",{className:"sidebar__sale_banner_container",children:(0,pe.jsx)("div",{className:"sidebar__sale_banner",children:(0,pe.jsx)("span",{className:"banner_text",children:(0,Re.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})})}),(0,pe.jsx)(Pe.Title,{as:"h2",className:"yst-mt-6 yst-text-base yst-font-extrabold yst-text-white",children:a}),(0,pe.jsx)("p",{className:"yst-mt-2 yst-font-medium",children:i}),(0,pe.jsx)("ul",{className:"yst-ps-[1em] yst-list-outside yst-text-white yst-mt-2",children:o(!0).map(((e,t)=>(0,pe.jsxs)("li",{className:"yst-flex yst-items-center yst-gap-2",children:[(0,pe.jsx)(Et,{className:"yst-w-4 yst-h-4 yst-text-green-400"}),(0,pe.jsx)("span",{children:e})]},`upsell-benefit-${t}`)))}),(0,pe.jsxs)(Pe.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,children:[(0,pe.jsx)("span",{children:n}),(0,pe.jsx)(rt,{className:"yst-w-4 yst-h-4 yst-icon-rtl"})]}),(0,pe.jsx)("p",{className:"yst-text-center yst-text-xs yst-mx-2 yst-font-light yst-leading-5 yst-italic yst-mt-2",children:(0,Re.__)("30-day money back guarantee","wordpress-seo")}),(0,pe.jsx)("hr",{className:"yst-border-t yst-border-primary-300 yst-my-4"}),(0,pe.jsx)("a",{className:"yst-block yst-mt-4 yst-no-underline",href:"https://www.g2.com/products/yoast-yoast/reviews",target:"_blank",rel:"noopener noreferrer",children:(0,pe.jsxs)("span",{className:"yst-flex yst-gap-2 yst-mt-2 yst-items-center",children:[(0,pe.jsx)(ze,{className:"yst-w-5 yst-h-5"}),(0,pe.jsxs)("span",{className:"yst-flex yst-gap-1",children:[(0,pe.jsx)(mt,{className:"yst-w-5 yst-h-5"}),(0,pe.jsx)(mt,{className:"yst-w-5 yst-h-5"}),(0,pe.jsx)(mt,{className:"yst-w-5 yst-h-5"}),(0,pe.jsx)(mt,{className:"yst-w-5 yst-h-5"}),(0,pe.jsx)(ut,{className:"yst-w-5 yst-h-5"})]}),(0,pe.jsx)("span",{className:"yst-text-sm yst-font-semibold yst-text-white",children:"4.6 / 5"})]})})]})};var Ct;function It(){return It=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},It.apply(this,arguments)}Rt.propTypes={link:ae().string.isRequired,linkProps:ae().object,isPromotionActive:ae().func},Rt.defaultProps={linkProps:{},isPromotionActive:c.noop};const Lt=e=>Oe.createElement("svg",It({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},e),Ct||(Ct=Oe.createElement("path",{fill:"#CD82AB",d:"M10.989 6.74 7.885.98v.002L7.882.98 4.778 6.74 0 3.32l1.126 7.702H14.64l1.126-7.703L10.99 6.74Z"})));var Pt;function At(){return At=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},At.apply(this,arguments)}const Ot=e=>Oe.createElement("svg",At({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none"},e),Pt||(Pt=Oe.createElement("path",{fill:"#0075B3",d:"M12.613.445a1.26 1.26 0 0 0-1.22.937l-.156.583A40.97 40.97 0 0 0 .379 3.225c-.013 0-.022.007-.035.01a.503.503 0 0 0-.317.64 40.344 40.344 0 0 0 1.99 4.861c.084.173.26.282.455.282h7.542c.64 0 1.213.403 1.427 1.008h-10a.507.507 0 0 0 0 1.01h10.592a.507.507 0 0 0 .506-.505c0-1.149-.774-2.15-1.888-2.441l1.722-6.452a.25.25 0 0 1 .243-.185h.931a.507.507 0 0 0 0-1.011h-.931l-.003.003Zm-1.085 13.114a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Zm-8.573 0a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Z"}))),Ft=({premiumLink:e,premiumUpsellConfig:t,isPromotionActive:s,isWooCommerceActive:r})=>{const o=s("black-friday-promotion"),i=r?at:nt;let n=r?(0,Re.sprintf)(/* translators: %s expands to "Yoast WooCommerce SEO" */ (0,Re.__)("Explore %s now!","wordpress-seo"),"Yoast WooCommerce SEO"):(0,Re.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */ (0,Re.__)("Explore %s now!","wordpress-seo"),"Yoast SEO Premium");return o&&(n=(0,Re.__)("Get 30% off now!","wordpress-seo")),(0,pe.jsxs)(Pe.Paper,{as:"div",className:"xl:yst-max-w-3xl",children:[o&&(0,pe.jsxs)("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-medium",children:[(0,pe.jsx)("div",{children:(0,Re.__)("30% OFF","wordpress-seo")}),(0,pe.jsx)("div",{children:(0,Re.__)("BLACK FRIDAY","wordpress-seo")})]}),(0,pe.jsxs)("div",{className:"yst-p-6 yst-flex yst-flex-col",children:[(0,pe.jsx)("div",{className:"yst-flex yst-items-center",children:r?(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(Pe.Title,{as:"h2",size:"4",className:"yst-text-xl "+(r?"yst-text-woo-light":"yst-text-primary-500 "),children:(0,Re.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */ (0,Re.__)("Upgrade to %s","wordpress-seo"),"Yoast WooCommerce SEO")}),(0,pe.jsx)(Ot,{className:"yst-ml-2 yst-w-4 yst-h-3"})]}):(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(Pe.Title,{as:"h2",size:"4",className:"yst-text-xl "+(r?"yst-text-woo-light":"yst-text-primary-500 "),children:(0,Re.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */ (0,Re.__)("Upgrade to %s","wordpress-seo"),"Yoast SEO Premium")}),(0,pe.jsx)(Lt,{className:"yst-ml-2 yst-w-4 yst-h-3"})]})}),(0,pe.jsx)("span",{className:"yst-font-medium yst-text-slate-500 yst-text-xs yst-leading-5 yst-uppercase yst-mt-2",children:(0,Re.__)("Now includes Local, News & Video SEO + 1 Google Docs seat!","wordpress-seo")}),(0,pe.jsx)("ul",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 yst-gap-x-6 yst-list-none yst-list-outside yst-text-slate-600 yst-mt-6",children:i().map(((e,t)=>(0,pe.jsxs)("li",{children:[(0,pe.jsx)("span",{className:"yst-mx-2",children:"•"}),e]},`upsell-benefit-${t}`)))}),(0,pe.jsxs)(Pe.Button,{as:"a",variant:"upsell",size:"extra-large",href:e,className:"yst-gap-2 yst-mt-4",target:"_blank",rel:"noopener",...t,children:[n,(0,pe.jsx)(rt,{className:"yst-w-4 yst-h-4 yst-icon-rtl"})]})]})]})};Ft.propTypes={premiumLink:ae().string.isRequired,premiumUpsellConfig:ae().object,isPromotionActive:ae().func,isWooCommerceActive:ae().bool.isRequired},Ft.defaultProps={premiumUpsellConfig:{},isPromotionActive:c.noop},ae().string.isRequired,ae().object.isRequired,ae().string.isRequired,ae().func.isRequired,ae().bool.isRequired,Oe.forwardRef((function(e,t){return Oe.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),Oe.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"}))})),ae().bool.isRequired,ae().func,ae().func,ae().string.isRequired,ae().string.isRequired,ae().string.isRequired,ae().string.isRequired;const Mt=window.yoast.reactHelmet,Dt="idle",Nt="loading",qt="showPlay",Ut="askPermission",Wt="isPlaying",$t=({videoId:e,thumbnail:t,wistiaEmbedPermission:s})=>{const[r,o]=(0,ie.useState)(s.value?Wt:qt),i=(0,ie.useCallback)((()=>o(Wt)),[o]),n=(0,ie.useCallback)((()=>{s.value?i():o(Ut)}),[s.value,i,o]),a=(0,ie.useCallback)((()=>o(qt)),[o]),l=(0,ie.useCallback)((()=>{s.set(!0),i()}),[s.set,i]);return(0,pe.jsxs)(pe.Fragment,{children:[s.value&&(0,pe.jsx)(Mt.Helmet,{children:(0,pe.jsx)("script",{src:"https://fast.wistia.com/assets/external/E-v1.js",async:!0})}),(0,pe.jsxs)("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",children:[r===qt&&(0,pe.jsx)("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:n,children:(0,pe.jsx)("img",{className:"yst-w-full yst-h-auto",alt:"",loading:"lazy",decoding:"async",...t})}),r===Ut&&(0,pe.jsxs)("div",{className:"yst-absolute yst-inset-0 yst-flex yst-flex-col yst-items-center yst-justify-center yst-bg-white",children:[(0,pe.jsxs)("p",{className:"yst-max-w-xs yst-mx-auto yst-text-center",children:[s.status===Nt&&(0,pe.jsx)(Pe.Spinner,{}),s.status!==Nt&&(0,Re.sprintf)(/* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */ (0,Re.__)("To see this video, you need to allow %1$s to load embedded videos from %2$s.","wordpress-seo"),"Yoast SEO","Wistia")]}),(0,pe.jsxs)("div",{className:"yst-flex yst-mt-6 yst-gap-x-4",children:[(0,pe.jsx)(Pe.Button,{type:"button",variant:"secondary",onClick:a,disabled:s.status===Nt,children:(0,Re.__)("Deny","wordpress-seo")}),(0,pe.jsx)(Pe.Button,{type:"button",variant:"primary",onClick:l,disabled:s.status===Nt,children:(0,Re.__)("Allow","wordpress-seo")})]})]}),s.value&&r===Wt&&(0,pe.jsxs)("div",{className:"yst-absolute yst-w-full yst-h-full yst-top-0 yst-right-0",children:[null===e&&(0,pe.jsx)(Pe.Spinner,{className:"yst-h-full yst-mx-auto"}),null!==e&&(0,pe.jsx)("div",{className:`wistia_embed wistia_async_${e} videoFoam=true`})]})]})]})};$t.propTypes={videoId:ae().string.isRequired,thumbnail:ae().shape({src:ae().string.isRequired,width:ae().string,height:ae().string}).isRequired,wistiaEmbedPermission:ae().shape({value:ae().bool.isRequired,status:ae().string.isRequired,set:ae().func.isRequired}).isRequired},Oe.forwardRef((function(e,t){return Oe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Oe.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),ae().bool.isRequired,ae().func.isRequired,ae().func,ae().string,ae().func.isRequired,ae().string.isRequired,ae().string.isRequired,ae().string.isRequired,ae().string.isRequired;const Bt=({error:e})=>{const t=(0,ie.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),s=(0,a.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/elementor-error-support")),[]),r=(0,a.useSelect)((e=>e("yoast-seo/editor").getPreference("isRtl",!1)),[]);return(0,pe.jsx)(Pe.Root,{context:{isRtl:r},children:(0,pe.jsx)(We,{error:e,children:(0,pe.jsx)(We.VerticalButtons,{supportLink:s,handleRefreshClick:t})})})};function Ht(){return(0,pe.jsx)(Pe.ErrorBoundary,{FallbackComponent:Bt,children:(0,pe.jsx)(oe.Slot,{name:"YoastElementor",children:e=>{return void 0===(t=e).length?t:(0,c.flatten)(t).sort(((e,t)=>void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority));var t}})})}Bt.propTypes={error:ae().object.isRequired};const zt=window.wp.compose,Kt=Oe.forwardRef((function(e,t){return Oe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Oe.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"}))})),Yt=window.wp.url,Vt=({className:e,...t})=>(0,pe.jsx)("span",{className:Tt()("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});Vt.displayName="MetaboxButton.Text",Vt.propTypes={className:ae().string},Vt.defaultProps={className:""};const Gt=({className:e,...t})=>(0,pe.jsx)("button",{type:"button",className:Tt()("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});Gt.propTypes={className:ae().string},Gt.defaultProps={className:""},Gt.Text=Vt;const Zt=window.yoast.componentsNew,Qt=e=>(0,pe.jsx)("div",{className:"yoast components-panel__body",children:(0,pe.jsx)("h2",{className:"components-panel__body-title",children:(0,pe.jsxs)("button",{id:e.id,onClick:e.onClick,className:"components-button components-panel__body-toggle",type:"button",children:[e.prefixIcon&&(0,pe.jsx)("span",{className:"yoast-icon-span",style:{fill:`${e.prefixIcon&&e.prefixIcon.color||""}`},children:(0,pe.jsx)(Zt.SvgIcon,{size:e.prefixIcon.size,icon:e.prefixIcon.icon})}),(0,pe.jsxs)("span",{className:"yoast-title-container",children:[(0,pe.jsx)("div",{className:"yoast-title",children:e.title}),(0,pe.jsx)("div",{className:"yoast-subtitle",children:e.subTitle})]}),e.children,e.suffixIcon&&(0,pe.jsx)(Zt.SvgIcon,{size:e.suffixIcon.size,icon:e.suffixIcon.icon}),e.SuffixHeroIcon]})})}),Xt=Qt;var Jt,es;function ts(){return ts=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},ts.apply(this,arguments)}Qt.propTypes={onClick:ae().func.isRequired,title:ae().string.isRequired,id:ae().string,subTitle:ae().string,suffixIcon:ae().object,SuffixHeroIcon:ae().object,prefixIcon:ae().object,children:ae().node},Qt.defaultProps={id:"",suffixIcon:null,SuffixHeroIcon:null,prefixIcon:null,subTitle:"",children:null};const ss=e=>Oe.createElement("svg",ts({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),Jt||(Jt=Oe.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"})),es||(es=Oe.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"}))),rs=Oe.forwardRef((function(e,t){return Oe.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),Oe.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"}))})),os=Oe.forwardRef((function(e,t){return Oe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Oe.createElement("path",{d:"M3 1a1 1 0 000 2h1.22l.305 1.222a.997.997 0 00.01.042l1.358 5.43-.893.892C3.74 11.846 4.632 14 6.414 14H15a1 1 0 000-2H6.414l1-1H14a1 1 0 00.894-.553l3-6A1 1 0 0017 3H6.28l-.31-1.243A1 1 0 005 1H3zM16 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM6.5 18a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"}))})),is="yoast-seo/editor",ns=({isOpen:e,onClose:t,id:s,upsellLink:r,title:o="",description:i="",benefits:n=[],note:l="",ctbId:c="",modalTitle:d})=>{const p=(0,a.select)(is).isPromotionActive("black-friday-promotion"),u=(0,a.select)(is).getIsWooCommerceActive();return(0,pe.jsx)(Pe.Modal,{isOpen:e,onClose:t,id:s,children:(0,pe.jsx)(Pe.Modal.Panel,{className:"yst-max-w-[26.25rem] yst-p-0",hasCloseButton:!1,children:(0,pe.jsxs)(Pe.Modal.Container,{children:[(0,pe.jsxs)(Pe.Modal.Container.Header,{className:"yst-p-6 yst-border-b-slate-200 yst-border-b yst-flex yst-justify-start yst-gap-4 yst-items-center",children:[u?(0,pe.jsx)(os,{className:"yst-text-woo-light yst-w-6 yst-h-6 yst-scale-x-[-1]"}):(0,pe.jsx)(ss,{className:"yst-fill-primary-500 yst-w-5 yst-h-5"}),(0,pe.jsx)(Pe.Modal.Title,{as:"h3",className:Tt()(u?"yst-text-woo-light":"yst-text-primary-500","yst-text-xl"),children:d}),(0,pe.jsx)(Pe.Modal.CloseButton,{className:"yst-top-2",onClick:t,screenReaderText:(0,Re.__)("Close modal","wordpress-seo")})]}),(0,pe.jsxs)(Pe.Modal.Container.Content,{className:"yst-p-0",children:[p&&(0,pe.jsx)("div",{className:"yst-flex yst-font-semibold yst-items-center yst-text-lg yst-content-between yst-bg-black yst-text-amber-300 yst-h-9 yst-border-amber-300 yst-border-y yst-border-x-0 yst-border-solid yst-px-6",children:(0,pe.jsx)("div",{className:"yst-mx-auto",children:(0,Re.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})}),(0,pe.jsxs)("div",{className:"yst-py-6 yst-px-12",children:[(0,pe.jsx)(Pe.Title,{as:"h3",className:"yst-mb-1 yst-leading-5 yst-text-sm yst-font-normal",children:o}),(0,pe.jsx)("p",{className:"yst-mb-2",children:i}),n.length>0&&(0,pe.jsx)("ul",{className:"yst-my-2",children:n.map(((e,t)=>(0,pe.jsxs)("li",{className:"yst-flex yst-gap-1 yst-mb-2",children:[(0,pe.jsx)(rs,{className:"yst-w-5 yst-h-5 yst--ms-1 yst-shrink-0 yst-inline yst-text-green-600"}),(0,pe.jsx)("p",{className:"yst-text-slate-600",children:e})]},`${s}-upsell-benefit-${t}`)))}),(0,pe.jsxs)("div",{className:"yst-text-center",children:[(0,pe.jsxs)(Pe.Button,{as:"a",variant:"upsell",className:"yst-my-2 yst-gap-1.5",href:r,target:"_blank","data-action":"load-nfd-ctb","data-ctb-id":c,children:[(0,pe.jsx)(Me,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"}),(0,Re.sprintf)(/* translators: %s expands to 'Yoast SEO Premium' or 'Yoast Woocommerce SEO'. */ (0,Re.__)("Explore %s","wordpress-seo"),u?"Yoast WooCommerce SEO":"Yoast SEO Premium"),(0,pe.jsx)("span",{className:"yst-sr-only",children:(0,Re.__)("Opens in a new tab","wordpress-seo")})]}),(0,pe.jsx)("div",{children:l})]})]})]})]})})})},as=()=>{const[e,,,t,s]=(0,Pe.useToggleState)(!1),{locationContext:r}=(0,de.useRootContext)(),o=(0,Pe.useSvgAria)(),i=r.includes("sidebar"),n=r.includes("metabox"),a=i?"sidebar":"metabox",l=wpseoAdminL10n[i?"shortlinks.upsell.sidebar.internal_linking_suggestions":"shortlinks.upsell.metabox.internal_linking_suggestions"];return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(ns,{isOpen:e,onClose:s,id:`yoast-internal-linking-suggestions-upsell-${a}`,upsellLink:(0,Yt.addQueryArgs)(l,{context:r}),modalTitle:(0,Re.__)("Get internal linking suggestions","wordpress-seo"),title:(0,Re.__)("Connect related content without the guesswork","wordpress-seo"),description:Ae((0,Re.sprintf)(/* translators: %s expands to be tag. */ (0,Re.__)("Optimize for up to 5 keyphrases to shape your content around different themes, audiences, and angles. %sScans your content to:","wordpress-seo"),"<br />"),{br:(0,pe.jsx)("br",{})}),benefits:[(0,Re.__)("Suggest internal links based on your content’s main topics","wordpress-seo"),(0,Re.__)("Build relevant internal links faster","wordpress-seo"),(0,Re.__)("Strengthen your site’s structure","wordpress-seo"),(0,Re.__)("Keep visitors exploring longer","wordpress-seo")],note:(0,Re.__)("Upgrade to link your content with ease","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"}),i&&(0,pe.jsx)(Xt,{id:"yoast-internal-linking-suggestions-sidebar-modal-open-button",title:(0,Re.__)("Internal linking suggestions","wordpress-seo"),onClick:t,children:(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsx)(Pe.Badge,{size:"small",variant:"upsell",children:(0,pe.jsx)(Kt,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...o})})})}),n&&(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsxs)(Gt,{id:"yoast-internal-linking-suggestions-metabox-modal-open-button",onClick:t,children:[(0,pe.jsx)(Gt.Text,{children:(0,Re.__)("Internal linking suggestions","wordpress-seo")}),(0,pe.jsxs)(Pe.Badge,{size:"small",variant:"upsell",children:[(0,pe.jsx)(Kt,{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...o}),(0,pe.jsx)("span",{children:"Premium"})]})]})})]})},ls=window.yoast.externals.components;function cs(){return(0,zt.createHigherOrderComponent)((function(e){return(0,zt.pure)((function(t){const s=(0,ie.useContext)(de.LocationContext);return(0,ie.createElement)(e,{...t,location:s})}))}),"withLocation")}const ds=(0,zt.compose)([(0,a.withSelect)((e=>{const{isCornerstoneContent:t}=e("yoast-seo/editor");return{isCornerstone:t(),learnMoreUrl:wpseoAdminL10n["shortlinks.cornerstone_content_info"]}})),(0,a.withDispatch)((e=>{const{toggleCornerstoneContent:t}=e("yoast-seo/editor");return{onChange:t}})),cs()])(ls.CollapsibleCornerstone),ps=Oe.forwardRef((function(e,t){return Oe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Oe.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))})),us=({store:e="yoast-seo/editor",location:t="sidebar"})=>{const s="black-friday-promotion",r=(0,a.useSelect)((t=>t(e).getIsPremium()),[e]),o=(0,a.useSelect)((t=>t(e).selectLinkParams()),[e]),i=(0,a.useSelect)((t=>t(e).isPromotionActive(s)),[e]),n=(0,a.useSelect)((t=>t(e).getIsWooCommerceActive()),[e]),l=(0,a.useSelect)((t=>t(e).isAlertDismissed(s)),[e]),c=(0,a.useSelect)((t=>t(e).getIsElementorEditor()),[e]),d=(0,ie.useCallback)((()=>{(0,a.dispatch)(e).dismissAlert(s)}),[e,s]),p=(0,Yt.addQueryArgs)("https://yoa.st/black-friday-sale",o),u=(0,Pe.useSvgAria)();return r||!i||l?null:(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsxs)("div",{className:Tt()("sidebar"!==t||c?"yst-mx-4":"yst-mx-0","yst-border yst-rounded-lg yst-p-4 yst-max-w-md yst-mt-6 yst-relative yst-shadow-sm",n?"yst-border-woo-light":"yst-border-primary-200"),children:[(0,pe.jsxs)(Pe.Badge,{size:"small",className:"yst-text-[10px] yst-bg-black yst-text-amber-300 yst-absolute yst--top-2",children:[(0,Re.__)("BLACK FRIDAY","wordpress-seo")," "]}),(0,pe.jsxs)("button",{className:"yst-absolute yst-top-4 yst-end-4",onClick:d,children:[(0,pe.jsx)(ps,{className:"yst-w-4 yst-text-slate-400 yst-shrink-0 yst--mt-0.5"}),(0,pe.jsx)("div",{className:"yst-sr-only",children:(0,Re.__)("Dismiss","wordpress-seo")})]}),(0,pe.jsxs)("div",{className:Tt()("sidebar"===t?"":"yst-flex yst-justify-between yst-gap-3"),children:[(0,pe.jsxs)("div",{className:n?"yst-text-woo-light":"yst-text-primary-500",children:[(0,pe.jsx)("div",{className:"yst-text-2xl yst-font-bold",children:(0,Re.__)("30% OFF","wordpress-seo")}),(0,pe.jsx)("div",{className:"yst-flex yst-gap-2 yst-font-semibold yst-text-tiny",children:n?(0,pe.jsxs)(pe.Fragment,{children:["Yoast WooCommerce SEO ",(0,pe.jsx)(os,{className:"yst-w-4 yst-scale-x-[-1]",...u})]}):(0,pe.jsxs)(pe.Fragment,{children:[" Yoast SEO Premium ",(0,pe.jsx)(Lt,{className:"yst-w-4",...u})]})})]}),(0,pe.jsx)("div",{className:"yst-flex yst-items-end",children:(0,pe.jsxs)(Pe.Button,{as:"a",className:Tt()("sidebar"===t?"yst-w-full":"yst-w-[140px]","yst-flex yst-gap-1 yst-w-[140px] yst-h-7 yst-mt-4"),variant:"upsell",href:p,target:"_blank",rel:"noreferrer",children:[(0,Re.__)("Buy now!","wordpress-seo"),(0,pe.jsx)(De,{className:"yst-w-4 rtl:yst-rotate-180",...u})]})})]})]})})};us.propTypes={store:ae().string,location:ae().oneOf(["sidebar","metabox"])};const hs=window.yoast.helpers,ms=(0,zt.compose)([(0,a.withSelect)(((e,t)=>{const{isAlertDismissed:s}=e(t.store||"yoast-seo/editor");return{isAlertDismissed:s(t.alertKey)}})),(0,a.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:o=null,isAlertDismissed:i,onDismissed:n})=>i?null:(0,pe.jsxs)("div",{id:t,className:"notice-yoast yoast is-dismissible yoast-webinar-dashboard yoast-general-page-notices",children:[(0,pe.jsxs)("div",{className:"notice-yoast__container",children:[(0,pe.jsxs)("div",{children:[(0,pe.jsxs)("div",{className:"notice-yoast__header",children:[s&&(0,pe.jsx)("span",{className:"yoast-icon"}),(0,pe.jsx)("h2",{className:"notice-yoast__header-heading yoast-notice-migrated-header",children:r})]}),(0,pe.jsx)("div",{className:"notice-yoast-content",children:(0,pe.jsx)("p",{children:e})})]}),o&&(0,pe.jsx)(o,{height:"60"})]}),(0,pe.jsx)("button",{type:"button",className:"notice-dismiss",onClick:n,children:(0,pe.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */ (0,Re.__)("Dismiss this notice.","wordpress-seo")})})]});gs.propTypes={children:ae().node.isRequired,id:ae().string.isRequired,hasIcon:ae().bool,title:ae().any.isRequired,image:ae().elementType,isAlertDismissed:ae().bool.isRequired,onDismissed:ae().func.isRequired};const ys=ms(gs),fs="trustpilot-review-notification",ws="yoast-seo/editor";const xs=()=>{const e=(0,a.useSelect)((e=>e(ws).getIsPremium()),[]),t=(0,a.useSelect)((e=>e(ws).isAlertDismissed(fs)),[]),{overallScore:s}=(0,a.useSelect)((e=>e(ws).getResultsForFocusKeyword()),[]),{dismissAlert:r}=(0,a.useDispatch)(ws),o=(0,ie.useCallback)((()=>r(fs)),[r]),[i,n]=(0,ie.useState)(!1);return(0,ie.useEffect)((()=>{var e,t;"good"===(null===(t=s,(0,c.isNil)(t)||(t/=10),e=function(e){switch(e){case"feedback":return{className:"na",screenReaderText:(0,Re.__)("Not available","wordpress-seo"),screenReaderReadabilityText:(0,Re.__)("Not available","wordpress-seo"),screenReaderInclusiveLanguageText:(0,Re.__)("Not available","wordpress-seo")};case"bad":return{className:"bad",screenReaderText:(0,Re.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:(0,Re.__)("Needs improvement","wordpress-seo"),screenReaderInclusiveLanguageText:(0,Re.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:(0,Re.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:(0,Re.__)("OK","wordpress-seo"),screenReaderInclusiveLanguageText:(0,Re.__)("Potentially non-inclusive","wordpress-seo")};case"good":return{className:"good",screenReaderText:(0,Re.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:(0,Re.__)("Good","wordpress-seo"),screenReaderInclusiveLanguageText:(0,Re.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""}}}(d.interpreters.scoreToRating(t)))||void 0===e?void 0:e.className)&&n(!0)}),[s]),{shouldShow:!e&&!t&&i,dismiss:o}},bs=(0,hs.makeOutboundLink)(),_s=()=>{const{shouldShow:e,dismiss:t}=xs(),{locationContext:s}=(0,de.useRootContext)(),r=(0,a.useSelect)((e=>e(ws).selectLink("https://yoa.st/trustpilot-review",{context:s})),[s]);return(0,pe.jsxs)(gs,{alertKey:fs,store:ws,id:fs,title:(0,Re.__)("Show Yoast SEO some love!","wordpress-seo"),hasIcon:!1,isAlertDismissed:!e,onDismissed:t,children:[(0,Re.__)("Happy with the plugin?","wordpress-seo")," ",(0,pe.jsx)(bs,{href:r,rel:"noopener noreferrer",children:(0,Re.__)("Leave a quick review","wordpress-seo")}),"."]})};var vs,ks,Ss,Es,js,Ts,Rs,Cs,Is,Ls,Ps,As,Os,Fs,Ms,Ds,Ns,qs,Us,Ws,$s,Bs,Hs,zs,Ks,Ys,Vs,Gs,Zs,Qs,Xs,Js,er,tr,sr,rr,or,ir,nr,ar,lr,cr,dr,pr,ur,hr,mr;function gr(){return gr=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},gr.apply(this,arguments)}const yr=e=>Oe.createElement("svg",gr({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 448 360"},e),vs||(vs=Oe.createElement("circle",{cx:226,cy:211,r:149,fill:"#f0ecf0"})),ks||(ks=Oe.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"})),Ss||(Ss=Oe.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"})),Es||(Es=Oe.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"})),js||(js=Oe.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"})),Ts||(Ts=Oe.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"})),Rs||(Rs=Oe.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"})),Cs||(Cs=Oe.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"})),Is||(Is=Oe.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"})),Ls||(Ls=Oe.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"})),Ps||(Ps=Oe.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"})),As||(As=Oe.createElement("circle",{cx:254.13,cy:104.05,r:4.19,fill:"#000001"})),Os||(Os=Oe.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"})),Fs||(Fs=Oe.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"})),Ms||(Ms=Oe.createElement("circle",{cx:219.55,cy:95.28,r:4,fill:"#000001"})),Ds||(Ds=Oe.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"})),Ns||(Ns=Oe.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"})),qs||(qs=Oe.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"})),Us||(Us=Oe.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"})),Ws||(Ws=Oe.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"})),$s||($s=Oe.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"})),Bs||(Bs=Oe.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"})),Hs||(Hs=Oe.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"})),zs||(zs=Oe.createElement("circle",{cx:38.13,cy:30.03,r:3.14,fill:"#b89ac8"})),Ks||(Ks=Oe.createElement("circle",{cx:60.26,cy:39.96,r:3.14,fill:"#e31e0c"})),Ys||(Ys=Oe.createElement("circle",{cx:50.29,cy:25.63,r:3.14,fill:"#3baa45"})),Vs||(Vs=Oe.createElement("circle",{cx:22.19,cy:19.21,r:3.14,fill:"#2ca9e1"})),Gs||(Gs=Oe.createElement("circle",{cx:22.19,cy:30.03,r:3.14,fill:"#e31e0c"})),Zs||(Zs=Oe.createElement("circle",{cx:26.86,cy:8.28,r:3.14,fill:"#3baa45"})),Qs||(Qs=Oe.createElement("circle",{cx:49.32,cy:39.99,r:3.14,fill:"#e31e0c"})),Xs||(Xs=Oe.createElement("circle",{cx:63.86,cy:59.52,r:3.14,fill:"#f8ad39"})),Js||(Js=Oe.createElement("circle",{cx:50.88,cy:50.72,r:3.14,fill:"#3baa45"})),er||(er=Oe.createElement("circle",{cx:63.47,cy:76.17,r:3.14,fill:"#e31e0c"})),tr||(tr=Oe.createElement("circle",{cx:38.34,cy:14.83,r:3.14,fill:"#2ca9e1"})),sr||(sr=Oe.createElement("circle",{cx:44.44,cy:5.92,r:3.14,fill:"#f8ad39"})),rr||(rr=Oe.createElement("circle",{cx:57.42,cy:10.24,r:3.14,fill:"#e31e0c"})),or||(or=Oe.createElement("circle",{cx:66.81,cy:12.4,r:3.14,fill:"#2ca9e1"})),ir||(ir=Oe.createElement("circle",{cx:77.95,cy:5.14,r:3.14,fill:"#b89ac8"})),nr||(nr=Oe.createElement("circle",{cx:77.95,cy:30.34,r:3.14,fill:"#e31e0c"})),ar||(ar=Oe.createElement("circle",{cx:80.97,cy:16.55,r:3.14,fill:"#f8ad39"})),lr||(lr=Oe.createElement("circle",{cx:62.96,cy:27.27,r:3.14,fill:"#3baa45"})),cr||(cr=Oe.createElement("circle",{cx:75.36,cy:48.67,r:3.14,fill:"#2ca9e1"})),dr||(dr=Oe.createElement("circle",{cx:76.11,cy:65.31,r:3.14,fill:"#3baa45"})),pr||(pr=Oe.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"})),ur||(ur=Oe.createElement("path",{fill:"#074a67",d:"M67.75 251.08c0-4.65 10.13-72.65 10.13-72.65h2.8l-9.09 72.3z"})),hr||(hr=Oe.createElement("ellipse",{cx:255.38,cy:103.18,fill:"#fff",rx:1.84,ry:1.77})),mr||(mr=Oe.createElement("ellipse",{cx:221.24,cy:94.75,fill:"#fff",rx:1.84,ry:1.77}))),fr=({store:e="yoast-seo/editor",image:t=yr,url:s,...r})=>(0,a.useSelect)((t=>t(e).getIsPremium()))?null:(0,pe.jsxs)(ys,{alertKey:"webinar-promo-notification",store:e,id:"webinar-promo-notification",title:(0,Re.__)("Join our FREE webinar for SEO success","wordpress-seo"),image:t,url:s,...r,children:[(0,Re.__)("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,pe.jsx)("a",{href:s,target:"_blank",rel:"noreferrer",children:(0,Re.__)("Sign up today!","wordpress-seo")})]});fr.propTypes={store:ae().string,image:ae().elementType,url:ae().string.isRequired};const wr=fr,xr=(e="yoast-seo/editor")=>{const t=(0,a.select)(e).isPromotionActive("black-friday-promotion"),s=(0,a.select)(e).isAlertDismissed("black-friday-promotion");return t?s:((e="yoast-seo/editor")=>{const t=(0,a.select)(e).isPromotionActive("black-friday-2023-checklist"),s=(0,a.select)(e).isAlertDismissed("black-friday-2023-sidebar-checklist");return!t||s})(e)},br=Oe.forwardRef((function(e,t){return Oe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Oe.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"}))})),_r=(e=null)=>(0,Oe.useMemo)((()=>{const t={role:"img","aria-hidden":"true"};return null!==e&&(t.focusable=e?"true":"false"),t}),[e]),vr=e=>{const{title:t,className:s,showYoastIcon:r,additionalClassName:o,...i}=e,n=r?(0,pe.jsx)("span",{className:"yoast-icon"}):null;return(0,pe.jsx)(oe.Modal,{title:t,className:`${s} ${o}`,icon:n,...i,children:e.children})};vr.propTypes={title:ae().string,className:ae().string,showYoastIcon:ae().bool,children:ae().oneOfType([ae().node,ae().arrayOf(ae().node)]),additionalClassName:ae().string},vr.defaultProps={title:"Yoast SEO",className:"yoast yoast-gutenberg-modal",showYoastIcon:!0,children:null,additionalClassName:""};const kr=vr,Sr=({id:e,postTypeName:t,children:s,title:r,isOpen:o,close:i,open:n,shouldCloseOnClickOutside:a,showChangesWarning:l,SuffixHeroIcon:c})=>(0,pe.jsxs)(ie.Fragment,{children:[o&&(0,pe.jsx)(de.LocationProvider,{value:"modal",children:(0,pe.jsxs)(kr,{title:r,onRequestClose:i,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal",id:"id",shouldCloseOnClickOutside:a,children:[(0,pe.jsx)("div",{className:"yoast-content-container",children:(0,pe.jsx)("div",{className:"yoast-modal-content",children:s})}),(0,pe.jsxs)("div",{className:"yoast-notice-container",children:[(0,pe.jsx)("hr",{}),(0,pe.jsxs)("div",{className:"yoast-button-container",children:[l&&(0,pe.jsx)("p",{children:/* Translators: %s translates to the Post Label in singular form */ (0,Re.sprintf)((0,Re.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),t)}),(0,pe.jsx)("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:i,children:/* Translators: %s translates to the Post Label in singular form */ (0,Re.sprintf)((0,Re.__)("Return to your %s","wordpress-seo"),t)})]})]})]})}),(0,pe.jsx)(Xt,{id:e+"-open-button",title:r,SuffixHeroIcon:c,suffixIcon:c?null:{size:"20px",icon:"pencil-square"},onClick:n})]});Sr.propTypes={id:ae().string.isRequired,postTypeName:ae().string.isRequired,children:ae().oneOfType([ae().node,ae().arrayOf(ae().node)]).isRequired,title:ae().string.isRequired,isOpen:ae().bool.isRequired,open:ae().func.isRequired,close:ae().func.isRequired,shouldCloseOnClickOutside:ae().bool,showChangesWarning:ae().bool,SuffixHeroIcon:ae().object},Sr.defaultProps={shouldCloseOnClickOutside:!0,showChangesWarning:!0};const Er=Sr,jr=(0,zt.compose)([(0,a.withSelect)(((e,t)=>{const{getPostOrPageString:s,getIsModalOpen:r}=e("yoast-seo/editor");return{postTypeName:s(),isOpen:r(t.id)}})),(0,a.withDispatch)(((e,t)=>{const{openEditorModal:s,closeEditorModal:r}=e("yoast-seo/editor");return{open:()=>s(t.id),close:r}}))])(Er),Tr=()=>{const e=(0,a.useSelect)((e=>e("yoast-seo/editor").getEstimatedReadingTime()),[]),t=(0,ie.useMemo)((()=>(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-estimated_reading_time","")),[]);return(0,pe.jsx)(Zt.InsightsCard,{amount:e,unit:(0,Re._n)("minute","minutes",e,"wordpress-seo"),title:(0,Re.__)("Reading time","wordpress-seo"),linkTo:t /* translators: Hidden accessibility text. */,linkText:(0,Re.__)("Learn more about reading time","wordpress-seo")})},Rr=(0,hs.makeOutboundLink)();function Cr(e,t){return-1===e?(0,Re.__)("Your text should be slightly longer to calculate your Flesch reading ease score.","wordpress-seo"):(0,Re.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,Re.__)("The copy scores %1$s in the test, which is considered %2$s to read.","wordpress-seo"),e,function(e){switch(e){case d.DIFFICULTY.NO_DATA:return(0,Re.__)("no data","wordpress-seo");case d.DIFFICULTY.VERY_EASY:return(0,Re.__)("very easy","wordpress-seo");case d.DIFFICULTY.EASY:return(0,Re.__)("easy","wordpress-seo");case d.DIFFICULTY.FAIRLY_EASY:return(0,Re.__)("fairly easy","wordpress-seo");case d.DIFFICULTY.OKAY:return(0,Re.__)("okay","wordpress-seo");case d.DIFFICULTY.FAIRLY_DIFFICULT:return(0,Re.__)("fairly difficult","wordpress-seo");case d.DIFFICULTY.DIFFICULT:return(0,Re.__)("difficult","wordpress-seo");case d.DIFFICULTY.VERY_DIFFICULT:return(0,Re.__)("very difficult","wordpress-seo")}}(t))}const Ir=()=>{let e=(0,a.useSelect)((e=>e("yoast-seo/editor").getFleschReadingEaseScore()),[]);const t=(0,ie.useMemo)((()=>(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease","")),[]),s=(0,a.useSelect)((e=>e("yoast-seo/editor").getFleschReadingEaseDifficulty()),[e]),r=(0,ie.useMemo)((()=>{const t=(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease_article","");return function(e,t,s){const r=function(e){switch(e){case d.DIFFICULTY.FAIRLY_DIFFICULT:case d.DIFFICULTY.DIFFICULT:case d.DIFFICULTY.VERY_DIFFICULT:return(0,Re.__)("Try to make shorter sentences, using less difficult words to improve readability","wordpress-seo");case d.DIFFICULTY.NO_DATA:return(0,Re.__)("Continue writing to get insight into the readability of your text!","wordpress-seo");default:return(0,Re.__)("Good job!","wordpress-seo")}}(t);return(0,pe.jsxs)("span",{children:[Cr(e,t)," ",t>=d.DIFFICULTY.FAIRLY_DIFFICULT?(0,pe.jsx)(Rr,{href:s,children:r+"."}):r]})}(e,s,t)}),[e,s]);return-1===e&&(e="?"),(0,pe.jsx)(Zt.InsightsCard,{amount:e,unit:(0,Re.__)("out of 100","wordpress-seo"),title:(0,Re.__)("Flesch reading ease","wordpress-seo"),linkTo:t /* translators: Hidden accessibility text. */,linkText:(0,Re.__)("Learn more about Flesch reading ease","wordpress-seo"),description:r})},Lr=({data:e,itemScreenReaderText:t,className:s,...r})=>{const o=(0,ie.useMemo)((()=>{var t,s;return null!==(t=null===(s=(0,c.maxBy)(e,"number"))||void 0===s?void 0:s.number)&&void 0!==t?t:0}),[e]);return(0,pe.jsx)("ul",{className:Tt()("yoast-data-model",s),...r,children:e.map((({name:e,number:s})=>(0,pe.jsxs)("li",{style:{"--yoast-width":s/o*100+"%"},children:[e,(0,pe.jsx)("span",{children:s}),t&&(0,pe.jsx)("span",{className:"screen-reader-text",children:(0,Re.sprintf)(t,s)})]},`${e}_dataItem`)))})};Lr.propTypes={data:ae().arrayOf(ae().shape({name:ae().string.isRequired,number:ae().number.isRequired})),itemScreenReaderText:ae().string,className:ae().string},Lr.defaultProps={data:[],itemScreenReaderText:"",className:""};const Pr=Lr,Ar=(0,hs.makeOutboundLink)(),Or=({location:e})=>{const t=(0,a.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,a.useSelect)((e=>e("yoast-seo/editor").getPreference("shouldUpsell",!1)),[]),r=(0,ie.useMemo)((()=>(0,c.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${e}-prominent_words`,"")),[e]),o=(0,ie.useMemo)((()=>{const e=(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-keyword_research_link","");return Ae((0,Re.sprintf)( // translators: %1$s and %2$s are replaced by opening and closing <a> tags. (0,Re.__)("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,pe.jsx)(Ar,{href:e})})}),[]),i=(0,ie.useMemo)((()=>Ae((0,Re.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,Re.__)("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,pe.jsx)("b",{})})),[]),n=(0,a.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,ie.useMemo)((()=>{const e=(0,Re.sprintf)( // translators: %1$s expands to Yoast SEO Premium. (0,Re.__)("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,ie.useMemo)((()=>s?l:n.map((({word:e,occurrence:t})=>({name:e,number:t})))),[n,l]);if(!t)return null;const{locationContext:p}=(0,de.useRootContext)();return(0,pe.jsxs)("div",{className:"yoast-prominent-words",children:[(0,pe.jsx)("div",{className:"yoast-field-group__title",children:(0,pe.jsx)("b",{children:(0,Re.__)("Prominent words","wordpress-seo")})}),!s&&(0,pe.jsx)("p",{children:0===d.length?(0,Re.__)("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,Re.__)("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,pe.jsx)("p",{children:i}),s&&(0,pe.jsxs)(Ar,{href:(0,Yt.addQueryArgs)(r,{context:p}),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",className:"yoast-button yoast-button-upsell",children:[(0,Re.sprintf)( // translators: %s expands to `Premium` (part of add-on name). (0,Re.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,pe.jsx)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})]}),(0,pe.jsx)("p",{children:o}),(0,pe.jsx)(Pr,{data:d,itemScreenReaderText:/* translators: Hidden accessibility text; %d expands to the number of occurrences. */ (0,Re.__)("%d occurrences","wordpress-seo"),"aria-label":(0,Re.__)("Prominent words","wordpress-seo"),className:s?"yoast-data-model--upsell":null})]})};Or.propTypes={location:ae().string.isRequired};const Fr=Or,Mr=(0,hs.makeOutboundLink)(),Dr=({location:e})=>{const t=(0,ie.useMemo)((()=>(0,c.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${e}-text_formality`,"")),[e]),s=(0,ie.useMemo)((()=>Ae((0,Re.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,Re.__)("%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,pe.jsx)("b",{})})),[]);return(0,pe.jsx)(ie.Fragment,{children:(0,pe.jsxs)("div",{children:[(0,pe.jsx)("p",{children:s}),(0,pe.jsxs)(Mr,{href:t,className:"yoast-button yoast-button-upsell",children:[(0,Re.sprintf)( // Translators: %s expands to `Premium` (part of add-on name). (0,Re.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,pe.jsx)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})]})]})})};Dr.propTypes={location:ae().string.isRequired};const Nr=Dr,qr=({location:e,name:t})=>{const s=(0,a.useSelect)((e=>e("yoast-seo/editor").isFormalitySupported()),[]),r=m().isPremium,o=r?(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_premium",""):(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_free",""),i=(0,Re.__)("Read more about text formality.","wordpress-seo");return s?(0,pe.jsxs)("div",{className:"yoast-text-formality",children:[(0,pe.jsxs)("div",{className:"yoast-field-group__title",children:[(0,pe.jsx)("b",{children:(0,Re.__)("Text formality","wordpress-seo")}),(0,pe.jsx)(Zt.HelpIcon,{linkTo:o,linkText:i})]}),r?(0,pe.jsx)(oe.Slot,{name:t}):(0,pe.jsx)(Nr,{location:e})]}):null};qr.propTypes={location:ae().string.isRequired,name:ae().string.isRequired};const Ur=qr,Wr=()=>{const e=(0,a.useSelect)((e=>e("yoast-seo/editor").getTextLength()),[]),t=(0,ie.useMemo)((()=>(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-word_count","")),[]);let s=(0,Re._n)("word","words",e.count,"wordpress-seo"),r=(0,Re.__)("Word count","wordpress-seo"),o=(0,Re.__)("Learn more about word count","wordpress-seo");return"character"===e.unit&&(s=(0,Re._n)("character","characters",e.count,"wordpress-seo"),r=(0,Re.__)("Character count","wordpress-seo"), /* translators: Hidden accessibility text. */ o=(0,Re.__)("Learn more about character count","wordpress-seo")),(0,pe.jsx)(Zt.InsightsCard,{amount:e.count,unit:s,title:r,linkTo:t,linkText:o})},$r=ce()(br)` width: 18px; height: 18px; margin: 3px; `,Br=({location:e})=>{const t=(0,a.useSelect)((e=>e("yoast-seo/editor").getIsElementorEditor()),[]),s=(0,a.useSelect)((e=>e("yoast-seo/editor").isFleschReadingEaseAvailable()),[]),r=_r();return(0,pe.jsx)(jr,{title:(0,Re.__)("Insights","wordpress-seo"),id:`yoast-insights-modal-${e}`,shouldCloseOnClickOutside:!t,showChangesWarning:!1,SuffixHeroIcon:(0,pe.jsx)($r,{className:"yst-text-slate-500",...r}),children:(0,pe.jsxs)("div",{className:"yoast-insights yoast-modal-content--columns",children:[(0,pe.jsx)(Fr,{location:e}),(0,pe.jsxs)("div",{children:[s&&(0,pe.jsx)("div",{className:"yoast-insights-row",children:(0,pe.jsx)(Ir,{})}),(0,pe.jsxs)("div",{className:"yoast-insights-row yoast-insights-row--columns",children:[(0,pe.jsx)(Tr,{}),(0,pe.jsx)(Wr,{})]}),(0,x.isFeatureEnabled)("TEXT_FORMALITY")&&(0,pe.jsx)(Ur,{location:e,name:"YoastTextFormalityMetabox"})]})]})})};Br.propTypes={location:ae().string},Br.defaultProps={location:"sidebar"};const Hr=Br;function zr(e){return 0===e.message.length?null:(0,pe.jsx)(Zt.Alert,{type:e.type,children:e.message})}zr.propTypes={message:ae().oneOfType([ae().array,ae().string]).isRequired,type:ae().string.isRequired};const Kr=(0,a.withSelect)((e=>{const{getWarningMessage:t}=e("yoast-seo/editor");return{message:t(),type:"info"}}))(zr),Yr=({children:e})=>(0,pe.jsx)("div",{children:e});Yr.propTypes={renderPriority:ae().number.isRequired,children:ae().node.isRequired};const Vr=Yr,Gr=Oe.forwardRef((function(e,t){return Oe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Oe.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"}))})),Zr=window.yoast.searchMetadataPreviews,Qr=ce()(Zt.StyledSection)` &${Zt.StyledSectionBase} { padding: 0; & ${Zt.StyledHeading} { ${(0,hs.getDirectionalStyle)("padding-left","padding-right")}: 20px; margin-left: ${(0,hs.getDirectionalStyle)("0","20px")}; } } `,Xr=({children:e,title:t,icon:s,hasPaperStyle:r,shoppingData:o})=>(0,pe.jsx)(Qr,{headingLevel:3,headingText:t,headingIcon:s,headingIconColor:"#555",hasPaperStyle:r,shoppingData:o,children:e});Xr.propTypes={children:ae().element,title:ae().string,icon:ae().string,hasPaperStyle:ae().bool,shoppingData:ae().object},Xr.defaultProps={hasPaperStyle:!0,shoppingData:null};const Jr=Xr,eo=window.wp.sanitize,{stripHTMLTags:to}=hs.strings;function so(e,t=156){return(e=(e=(0,eo.stripTags)(e)).trim()).length<=t||(e=e.substring(0,t),/\s/.test(e)&&(e=e.substring(0,e.lastIndexOf(" ")))),e}const ro=(0,c.memoize)(((e,t)=>0===e?c.noop:(0,c.debounce)((s=>t(s,e)),500))),oo=({link:e,text:t})=>(0,pe.jsxs)(Pe.Root,{children:[(0,pe.jsx)("p",{children:t}),(0,pe.jsxs)(Pe.Button,{href:e,as:"a",className:"yst-gap-2 yst-mb-5 yst-mt-2",variant:"upsell",target:"_blank",rel:"noopener",children:[(0,pe.jsx)(Me,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"}),(0,Re.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */ (0,Re.__)("Unlock with %1$s","wordpress-seo"),"Yoast WooCommerce SEO")]})]});oo.propTypes={link:ae().string.isRequired,text:ae().string.isRequired};const io=oo,no=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,c.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!(0,c.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){const t=(0,c.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],c.identity);return{url:e.url,title:to(t(e.title)),description:to(t(e.description)),filteredSEOTitle:e.filteredSEOTitle?to(t(e.filteredSEOTitle)):""}}(e);const s=t._applyModifications.bind(t);return{url:e.url,title:to(s("data_page_title",e.title)),description:to(s("data_meta_desc",e.description)),filteredSEOTitle:e.filteredSEOTitle?to(s("data_page_title",e.filteredSEOTitle)):""}}(e)},ao=(0,zt.compose)([(0,a.withSelect)((function(e){const{getBaseUrlFromSettings:t,getDateFromSettings:s,getFocusKeyphrase:r,getRecommendedReplaceVars:o,getReplaceVars:i,getShoppingData:n,getSiteIconUrlFromSettings:a,getSnippetEditorData:l,getSnippetEditorMode:c,getSnippetEditorPreviewImageUrl:d,getSnippetEditorWordsToHighlight:p,isCornerstoneContent:u,getIsTerm:h,getContentLocale:m,getSiteName:g}=e("yoast-seo/editor"),y=i();return y.forEach((e=>{""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(e.value="%%"+e.name+"%%")})),{baseUrl:t(),data:l(),date:s(),faviconSrc:a(),keyword:r(),mobileImageSrc:d(),mode:c(),recommendedReplacementVariables:o(),replacementVariables:y,shoppingData:n(),wordsToHighlight:p(),isCornerstone:u(),isTaxonomy:h(),locale:m(),siteName:g()}})),(0,a.withDispatch)((function(e,t,{select:s}){const{updateData:r,switchMode:o,updateAnalysisData:i,findCustomFields:n}=e("yoast-seo/editor"),a=e("core/editor"),l=s("yoast-seo/editor").getPostId();return{onChange:(e,t)=>{switch(e){case"mode":o(t);break;case"slug":r({slug:t}),a&&a.editPost({slug:t});break;default:r({[e]:t})}},onChangeAnalysisData:i,onReplacementVariableSearchChange:ro(l,n)}}))])((e=>{const t=(0,a.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/product-google-preview-metabox")),[]),s=(0,a.useSelect)((e=>e("yoast-seo/editor").getIsWooSeoUpsell()),[]),r=(0,Re.__)("Want an enhanced Google preview of how your WooCommerce products look in the search results?","wordpress-seo");return(0,pe.jsx)(de.LocationConsumer,{children:o=>(0,pe.jsx)(Jr,{icon:"eye",hasPaperStyle:e.hasPaperStyle,children:(0,pe.jsxs)(pe.Fragment,{children:[s&&(0,pe.jsx)(io,{link:t,text:r}),(0,pe.jsx)(Zr.SnippetEditor,{...e,descriptionPlaceholder:(0,Re.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:no,showCloseButton:!1,idSuffix:o})]})})})})),{stripHTMLTags:lo}=hs.strings,co=(e,t)=>{const s=(0,a.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:lo(T("data_page_title",e.title)),description:lo(T("data_meta_desc",e.description)),filteredSEOTitle:lo(T("data_page_title",e.filteredSEOTitle))}},po=({isLoading:e,onLoad:t,location:s,...r})=>((0,ie.useEffect)((()=>{setTimeout((()=>{e&&t()}))})),e?null:(0,pe.jsx)(Jr,{icon:"eye",hasPaperStyle:r.hasPaperStyle,children:(0,pe.jsx)(Zr.SnippetEditor,{...r,descriptionPlaceholder:(0,Re.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:co,showCloseButton:!1,idSuffix:s})}));po.propTypes={isLoading:ae().bool.isRequired,onLoad:ae().func.isRequired,hasPaperStyle:ae().bool.isRequired,location:ae().string.isRequired};const uo=(0,zt.compose)([(0,a.withSelect)((e=>{const{getBaseUrlFromSettings:t,getDateFromSettings:s,getEditorDataImageUrl:r,getFocusKeyphrase:o,getRecommendedReplaceVars:i,getSiteIconUrlFromSettings:n,getSnippetEditorData:a,getSnippetEditorIsLoading:l,getSnippetEditorMode:c,getSnippetEditorWordsToHighlight:d,isCornerstoneContent:p,getContentLocale:u,getSiteName:h,getReplaceVars:m}=e("yoast-seo/editor");return{baseUrl:t(),data:a(),date:s(),faviconSrc:n(),isLoading:l(),keyword:o(),mobileImageSrc:r(),mode:c(),recommendedReplacementVariables:i(),replacementVariables:m(),wordsToHighlight:d(),isCornerstone:p(),locale:u(),siteName:h()}})),(0,a.withDispatch)((e=>{const{updateData:t,switchMode:s,updateAnalysisData:r,loadSnippetEditorData:o}=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:o}})),cs()])(po),ho=ce()(Gr)` width: 18px; height: 18px; margin: 3px; `,mo=()=>{const e=_r(),t=(0,a.useSelect)((e=>e("yoast-seo/editor").getIsElementorEditor()),[]);return(0,pe.jsxs)(jr,{title:(0,Re.__)("Search appearance","wordpress-seo"),id:"yoast-search-appearance-modal",shouldCloseOnClickOutside:!1,SuffixHeroIcon:(0,pe.jsx)(ho,{className:"yst-text-slate-500",...e}),children:[!0===t&&(0,pe.jsx)(uo,{showCloseButton:!1,hasPaperStyle:!1}),!1===t&&(0,pe.jsx)(ao,{showCloseButton:!1,hasPaperStyle:!1})]})},go=Oe.forwardRef((function(e,t){return Oe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Oe.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"}))})),yo=ce().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"}; `,fo=e=>{const{siteUrl:t}=e;return(0,pe.jsxs)(Oe.Fragment,{children:[(0,pe.jsx)("span",{className:"screen-reader-text",children:t}),(0,pe.jsx)(yo,{"aria-hidden":"true",children:(0,pe.jsx)("span",{children:t})})]})};fo.propTypes={siteUrl:ae().string.isRequired};const wo=fo,xo=window.yoast.socialMetadataForms,bo=window.yoast.styleGuide,_o=ce().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; } `,vo=ce().img` && { height: 100%; position: absolute; width: 100%; object-fit: cover; } `,ko=ce().div` padding-bottom: ${e=>e.aspectRatio}%; `,So=({imageProps:e,width:t,height:s,imageMode:r="landscape"})=>"landscape"===r?(0,pe.jsx)(ko,{aspectRatio:e.aspectRatio,children:(0,pe.jsx)(vo,{src:e.src,alt:e.alt})}):(0,pe.jsx)(_o,{src:e.src,alt:e.alt,width:t,height:s,imageProperties:e});function Eo(e,t,s){return"landscape"===s?{widthRatio:t.width/e.landscapeWidth,heightRatio:t.height/e.landscapeHeight}:"portrait"===s?{widthRatio:t.width/e.portraitWidth,heightRatio:t.height/e.portraitHeight}:{widthRatio:t.width/e.squareWidth,heightRatio:t.height/e.squareHeight}}function jo(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 To(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 o=s?"landscape":"square";"Facebook"===t&&(o=(0,xo.determineFacebookImageMode)(r));const i=function(e){return"Twitter"===e?xo.TWITTER_IMAGE_SIZES:xo.FACEBOOK_IMAGE_SIZES}(t),n=function(e,t,s){return"square"===s&&t.width===t.height?{width:e.squareWidth,height:e.squareHeight}:jo(t,Eo(e,t,s))}(i,r,o);return{mode:o,height:n.height,width:n.width}}async function Ro(e,t,s=!1){try{return{imageProperties:await To(e,t,s),status:"loaded"}}catch(e){return{imageProperties:null,status:"errored"}}}So.propTypes={imageProps:ae().shape({src:ae().string.isRequired,alt:ae().string.isRequired,aspectRatio:ae().number.isRequired}).isRequired,width:ae().number.isRequired,height:ae().number.isRequired,imageMode:ae().string};const Co=ce().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: ${bo.colors.$color_white}; `,Io=ce().div` box-sizing: border-box; max-width: ${xo.FACEBOOK_IMAGE_SIZES.landscapeWidth}px; height: ${xo.FACEBOOK_IMAGE_SIZES.landscapeHeight}px; background-color: ${bo.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 Lo extends Oe.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 Ro(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:xo.FACEBOOK_IMAGE_SIZES.squareHeight+"px",width:xo.FACEBOOK_IMAGE_SIZES.squareWidth+"px"};case"portrait":return{height:xo.FACEBOOK_IMAGE_SIZES.portraitHeight+"px",width:xo.FACEBOOK_IMAGE_SIZES.portraitWidth+"px"};case"landscape":return{height:xo.FACEBOOK_IMAGE_SIZES.landscapeHeight+"px",width:xo.FACEBOOK_IMAGE_SIZES.landscapeWidth+"px"}}}render(){const{imageProperties:e,status:t}=this.state;if("loading"===t||""===this.props.src||"errored"===t)return(0,pe.jsx)(Io,{onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,Re.__)("Select image","wordpress-seo")});const s=this.retrieveContainerDimensions(e.mode);return(0,pe.jsx)(Co,{mode:e.mode,dimensions:s,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onClick:this.props.onImageClick,children:(0,pe.jsx)(So,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:xo.FACEBOOK_IMAGE_SIZES.aspectRatio},width:e.width,height:e.height,imageMode:e.mode})})}}Lo.propTypes={src:ae().string,alt:ae().string,onImageLoaded:ae().func,onImageClick:ae().func,onMouseEnter:ae().func,onMouseLeave:ae().func},Lo.defaultProps={src:"",alt:"",onImageLoaded:c.noop,onImageClick:c.noop,onMouseEnter:c.noop,onMouseLeave:c.noop};const Po=Lo,Ao=ce().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; `,Oo=ce().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; } `,Fo=e=>{switch(e){case"landscape":return"527px";case"square":case"portrait":return"369px";default:return"476px"}},Mo=ce().div` box-sizing: border-box; display: flex; flex-direction: ${e=>"landscape"===e.mode?"column":"row"}; background-color: #f2f3f5; max-width: 527px; `,Do=ce().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 No extends Oe.Component{constructor(e){super(e),this.state={imageMode:null,maxLineCount:0,descriptionLineCount:0},this.facebookTitleRef=Fe().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 o=t-r;"portrait"===s&&(o=5===r?0:4),o!==e&&this.setState({descriptionLineCount:o})}componentDidUpdate(){this.maybeSetMaxLineCount(),this.maybeSetDescriptionLineCount()}render(){const{imageMode:e,maxLineCount:t,descriptionLineCount:s}=this.state;return(0,pe.jsxs)(Mo,{id:"facebookPreview",mode:e,children:[(0,pe.jsx)(Po,{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,pe.jsxs)(Do,{mode:e,children:[(0,pe.jsx)(wo,{siteUrl:this.props.siteUrl,mode:e}),(0,pe.jsx)(Ao,{ref:this.facebookTitleRef,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,lineCount:t,children:this.props.title}),s>0&&(0,pe.jsx)(Oo,{maxWidth:Fo(e),onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,lineCount:s,children:this.props.description})]})]})}}No.propTypes={siteUrl:ae().string.isRequired,title:ae().string.isRequired,description:ae().string,imageUrl:ae().string,imageFallbackUrl:ae().string,alt:ae().string,onSelect:ae().func,onImageClick:ae().func,onMouseHover:ae().func},No.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{}};const qo=No,Uo=ce().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; `,Wo=e=>(0,pe.jsx)(Uo,{children:(0,pe.jsx)("span",{children:e.siteUrl})});Wo.propTypes={siteUrl:ae().string.isRequired};const $o=Wo,Bo=(e,t=!0)=>e?`\n\t\t\tmax-width: ${xo.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: ${xo.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`,Ho=ce().div` position: relative; box-sizing: content-box; overflow: hidden; background-color: #e1e8ed; flex-shrink: 0; ${e=>Bo(e.isLarge)} `,zo=ce().div` display: flex; justify-content: center; align-items: center; box-sizing: border-box; max-width: 100%; margin: 0; padding: 1em; text-align: center; font-size: 1rem; ${e=>Bo(e.isLarge,!1)} `,Ko=ce()(zo)` ${e=>e.isLarge&&`height: ${xo.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 Yo extends Fe().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 Ro(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,pe.jsx)(Ko,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,Re.__)("Select image","wordpress-seo")}):(0,pe.jsx)(Ho,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,pe.jsx)(So,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:xo.TWITTER_IMAGE_SIZES.aspectRatio},width:t.width,height:t.height,imageMode:t.mode})})}}Yo.propTypes={isLarge:ae().bool.isRequired,src:ae().string,alt:ae().string,onImageClick:ae().func,onMouseEnter:ae().func,onMouseLeave:ae().func},Yo.defaultProps={src:"",alt:"",onMouseEnter:c.noop,onImageClick:c.noop,onMouseLeave:c.noop};const Vo=ce().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; } `,Go=e=>(0,pe.jsx)(Vo,{children:e.children});Go.propTypes={children:ae().array.isRequired};const Zo=Go,Qo=ce().p` white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; color: rgb(15, 20, 25); cursor: pointer; `,Xo=ce().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: ${xo.TWITTER_IMAGE_SIZES.landscapeWidth}px ) { display: none; } `,Jo=ce().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); } `,ei=ce()(Jo)` flex-direction: column; max-height: 370px; `,ti=ce()(Jo)` flex-direction: row; height: 125px; `;class si extends Oe.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:o,description:i,siteUrl:n}=this.props,a=e?ei:ti;return(0,pe.jsxs)(a,{id:"twitterPreview",children:[(0,pe.jsx)(Yo,{src:t||s,alt:r,isLarge:e,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,pe.jsxs)(Zo,{children:[(0,pe.jsx)($o,{siteUrl:n}),(0,pe.jsx)(Qo,{onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,children:o}),(0,pe.jsx)(Xo,{onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,children:i})]})]})}}si.propTypes={siteUrl:ae().string.isRequired,title:ae().string.isRequired,description:ae().string,isLarge:ae().bool,imageUrl:ae().string,imageFallbackUrl:ae().string,alt:ae().string,onSelect:ae().func,onImageClick:ae().func,onMouseHover:ae().func},si.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{},isLarge:!0};const ri=si,oi=window.yoast.replacementVariableEditor;class ii extends Oe.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.SocialPreview="Social"===e.socialMediumName?qo:ri,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:o,imageWarnings:i,siteUrl:n,description:a,descriptionInputPlaceholder:l,descriptionPreviewFallback:c,imageUrl:d,imageFallbackUrl:p,alt:u,title:h,titleInputPlaceholder:m,titlePreviewFallback:g,replacementVariables:y,recommendedReplacementVariables:f,applyReplacementVariables:w,onReplacementVariableSearchChange:x,isPremium:b,isLarge:_,socialPreviewLabel:v,idSuffix:k,activeMetaTabId:S}=this.props,E=w({title:h||g,description:a||c});return(0,pe.jsxs)(Fe().Fragment,{children:[v&&(0,pe.jsx)(Zt.SimulatedLabel,{children:v}),(0,pe.jsx)(this.SocialPreview,{onMouseHover:this.setHoveredField,onSelect:this.setActiveField,onImageClick:s,siteUrl:n,title:E.title,description:E.description,imageUrl:d,imageFallbackUrl:p,alt:u,isLarge:_,activeMetaTabId:S}),(0,pe.jsx)(xo.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:o,title:h,titleInputPlaceholder:m,onRemoveImageClick:r,imageSelected:!!d,imageUrl:d,imageFallbackUrl:p,onTitleChange:t,onSelectImageClick:s,description:a,descriptionInputPlaceholder:l,imageWarnings:i,replacementVariables:y,recommendedReplacementVariables:f,onReplacementVariableSearchChange:x,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:b,setEditorRef:this.setEditorRef,idSuffix:k})]})}}ii.propTypes={title:ae().string.isRequired,onTitleChange:ae().func.isRequired,description:ae().string.isRequired,onDescriptionChange:ae().func.isRequired,imageUrl:ae().string.isRequired,imageFallbackUrl:ae().string.isRequired,onSelectImageClick:ae().func.isRequired,onRemoveImageClick:ae().func.isRequired,socialMediumName:ae().string.isRequired,alt:ae().string,isPremium:ae().bool,imageWarnings:ae().array,isLarge:ae().bool,siteUrl:ae().string,descriptionInputPlaceholder:ae().string,titleInputPlaceholder:ae().string,descriptionPreviewFallback:ae().string,titlePreviewFallback:ae().string,replacementVariables:oi.replacementVariablesShape,recommendedReplacementVariables:oi.recommendedReplacementVariablesShape,applyReplacementVariables:ae().func,onReplacementVariableSearchChange:ae().func,socialPreviewLabel:ae().string,idSuffix:ae().string,activeMetaTabId:ae().string},ii.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,isLarge:!0,siteUrl:"",descriptionInputPlaceholder:"",titleInputPlaceholder:"",descriptionPreviewFallback:"",titlePreviewFallback:"",alt:"",applyReplacementVariables:e=>e,onReplacementVariableSearchChange:null,socialPreviewLabel:"",idSuffix:"",activeMetaTabId:""};const ni={},ai=(e,t,{log:s=console.warn}={})=>{ni[e]||(ni[e]=!0,s(t))},li=(e,t=c.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};li({squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},((e,t)=>ai(`@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.`))),li({squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}},((e,t)=>ai(`@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 ci=ce().div` max-width: calc(527px + 1.5rem); `,di=e=>{const t="X"===e.socialMediumName?(0,Re.__)("X share preview","wordpress-seo"):(0,Re.__)("Social share preview","wordpress-seo"),{locationContext:s}=(0,Pe.useRootContext)();return(0,pe.jsx)(Pe.Root,{children:(0,pe.jsx)(ci,{children:(0,pe.jsx)(Pe.FeatureUpsell,{shouldUpsell:!0,variant:"card",cardLink:(0,Yt.addQueryArgs)(wpseoAdminL10n["shortlinks.upsell.social_preview."+e.socialMediumName.toLowerCase()],{context:s}),cardText:(0,Re.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */ (0,Re.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",children:(0,pe.jsxs)("div",{className:"yst-grayscale yst-opacity-50",children:[(0,pe.jsx)(Pe.Label,{children:t}),(0,pe.jsx)(qo,{title:"",description:"",siteUrl:"",imageUrl:"",imageFallbackUrl:"",alt:"",onSelect:c.noop,onImageClick:c.noop,onMouseHover:c.noop})]})})})})};di.propTypes={socialMediumName:ae().oneOf(["Social","Twitter","X"]).isRequired};const pi=di;class ui extends ie.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:o,imageWarnings:i,description:n,descriptionInputPlaceholder:a,imageUrl:l,imageFallbackUrl:c,alt:d,title:p,titleInputPlaceholder:u,replacementVariables:h,recommendedReplacementVariables:m,onReplacementVariableSearchChange:g,isPremium:y,location:f}=this.props;return(0,pe.jsxs)(ie.Fragment,{children:[(0,pe.jsx)(pi,{socialMediumName:o}),(0,pe.jsx)(xo.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:o,title:p,titleInputPlaceholder:u,onRemoveImageClick:r,imageSelected:!!l,imageUrl:l,imageFallbackUrl:c,imageAltText:d,onTitleChange:t,onSelectImageClick:s,description:n,descriptionInputPlaceholder:a,imageWarnings:i,replacementVariables:h,recommendedReplacementVariables:m,onReplacementVariableSearchChange:g,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:y,setEditorRef:this.setEditorRef,idSuffix:f})]})}}ui.propTypes={title:ae().string.isRequired,onTitleChange:ae().func.isRequired,description:ae().string.isRequired,onDescriptionChange:ae().func.isRequired,imageUrl:ae().string.isRequired,imageFallbackUrl:ae().string,onSelectImageClick:ae().func.isRequired,onRemoveImageClick:ae().func.isRequired,socialMediumName:ae().string.isRequired,isPremium:ae().bool,imageWarnings:ae().array,descriptionInputPlaceholder:ae().string,titleInputPlaceholder:ae().string,replacementVariables:oi.replacementVariablesShape,recommendedReplacementVariables:oi.recommendedReplacementVariablesShape,onReplacementVariableSearchChange:ae().func,location:ae().string,alt:ae().string},ui.defaultProps={imageWarnings:[],imageFallbackUrl:"",recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",onReplacementVariableSearchChange:null,location:"",alt:""};const hi=ui,mi=(e,t,s)=>{const[r,o]=(0,ie.useState)(!1),i=(0,Re.sprintf)( /* Translators: %1$s expands to the jpg format, %2$s expands to the png format, %3$s expands to the webp format, %4$s expands to the gif format. */ (0,Re.__)("No image was found that we can automatically set as your social image. Please use %1$s, %2$s, %3$s or %4$s formats to ensure it displays correctly on social media.","wordpress-seo"),"JPG","PNG","WEBP","GIF");return(0,ie.useEffect)((()=>{o(""===t&&e.toLowerCase().endsWith(".avif"))}),[e,t]),r?[i]:s},gi=e=>{const[t,s]=(0,ie.useState)(""),r=mi(e.imageFallbackUrl,e.imageUrl,e.imageWarnings),o=(0,ie.useCallback)((e=>{s(e.detail.metaTabId)}),[s]);(0,ie.useEffect)((()=>(setTimeout(e.onLoad),window.addEventListener("YoastSEO:metaTabChange",o),()=>{window.removeEventListener("YoastSEO:metaTabChange",o)})),[]);const i={...e,activeMetaTabId:t,imageWarnings:r};return e.isPremium?(0,pe.jsx)(oe.Slot,{name:`YoastFacebookPremium${e.location.charAt(0).toUpperCase()+e.location.slice(1)}`,fillProps:i}):(0,pe.jsx)(hi,{...i})};gi.propTypes={isPremium:ae().bool.isRequired,onLoad:ae().func.isRequired,location:ae().string.isRequired,imageFallbackUrl:ae().string,imageUrl:ae().string,imageWarnings:ae().array},gi.defaultProps={imageFallbackUrl:"",imageUrl:"",imageWarnings:[]};const yi=gi;function fi(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 wi=()=>{fi((e=>(0,a.dispatch)("yoast-seo/editor").setFacebookPreviewImage((e=>{const{width:t,height:s}=e,r=(0,xo.determineFacebookImageMode)({width:t,height:s}),o=xo.FACEBOOK_IMAGE_SIZES[r+"Width"],i=xo.FACEBOOK_IMAGE_SIZES[r+"Height"],n=Object.values(e.sizes).find((e=>e.width>=o&&e.height>=i));return{url:n?n.url:e.url,id:e.id,warnings:(0,hs.validateFacebookImage)(e),alt:e.alt||""}})(e))))},xi=(0,zt.compose)([(0,a.withSelect)((e=>{const{getFacebookDescription:t,getDescription:s,getFacebookTitle:r,getSeoTitle:o,getFacebookImageUrl:i,getImageFallback:n,getFacebookWarnings:a,getRecommendedReplaceVars:l,getReplaceVars:c,getSiteUrl:d,getSeoTitleTemplate:p,getSeoTitleTemplateNoFallback:u,getSocialTitleTemplate:h,getSeoDescriptionTemplate:g,getSocialDescriptionTemplate:y,getReplacedExcerpt:f,getFacebookAltText:w}=e("yoast-seo/editor");return{imageUrl:i(),imageFallbackUrl:n(),recommendedReplacementVariables:l(),replacementVariables:c(),description:t(),descriptionPreviewFallback:y()||s()||g()||f()||"",title:r(),titlePreviewFallback:h()||o()||u()||p()||"",imageWarnings:a(),siteUrl:d(),isPremium:!!m().isPremium,titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Social",alt:w()}})),(0,a.withDispatch)(((e,t,{select:s})=>{const{setFacebookPreviewTitle:r,setFacebookPreviewDescription:o,clearFacebookPreviewImage:i,loadFacebookPreviewData:n,findCustomFields:a}=e("yoast-seo/editor"),l=s("yoast-seo/editor").getPostId();return{onSelectImageClick:wi,onRemoveImageClick:i,onDescriptionChange:o,onTitleChange:r,onLoad:n,onReplacementVariableSearchChange:ro(l,a)}})),cs()])(yi),bi=e=>{const t=mi(e.imageFallbackUrl,e.imageUrl,e.imageWarnings);(0,ie.useEffect)((()=>{setTimeout(e.onLoad)}),[]);const s={...e,imageWarnings:t};return e.isPremium?(0,pe.jsx)(oe.Slot,{name:`YoastTwitterPremium${e.location.charAt(0).toUpperCase()+e.location.slice(1)}`,fillProps:s}):(0,pe.jsx)(hi,{...s})};bi.propTypes={isPremium:ae().bool.isRequired,onLoad:ae().func.isRequired,location:ae().string.isRequired,imageFallbackUrl:ae().string,imageUrl:ae().string,imageWarnings:ae().array},bi.defaultProps={imageFallbackUrl:"",imageUrl:"",imageWarnings:[]};const _i=bi,vi=()=>{fi((e=>(0,a.dispatch)("yoast-seo/editor").setTwitterPreviewImage((e=>{const t="summary"!==(0,c.get)(window,"wpseoScriptData.metabox.twitterCardType")?"landscape":"square",s=xo.TWITTER_IMAGE_SIZES[t+"Width"],r=xo.TWITTER_IMAGE_SIZES[t+"Height"],o=Object.values(e.sizes).find((e=>e.width>=s&&e.height>=r));return{url:o?o.url:e.url,id:e.id,warnings:(0,hs.validateTwitterImage)(e),alt:e.alt||""}})(e))))},ki=(0,zt.compose)([(0,a.withSelect)((e=>{const{getTwitterDescription:t,getTwitterTitle:s,getTwitterImageUrl:r,getFacebookImageUrl:o,getFacebookTitle:i,getFacebookDescription:n,getDescription:a,getSeoTitle:l,getTwitterWarnings:c,getTwitterImageType:d,getImageFallback:p,getRecommendedReplaceVars:u,getReplaceVars:h,getSiteUrl:g,getSeoTitleTemplate:y,getSeoTitleTemplateNoFallback:f,getSocialTitleTemplate:w,getSeoDescriptionTemplate:x,getSocialDescriptionTemplate:b,getReplacedExcerpt:_,getTwitterAltText:v}=e("yoast-seo/editor");return{imageUrl:r(),imageFallbackUrl:o()||p(),recommendedReplacementVariables:u(),replacementVariables:h(),description:t(),descriptionPreviewFallback:b()||n()||a()||x()||_()||"",title:s(),titlePreviewFallback:w()||i()||l()||f()||y()||"",imageWarnings:c(),siteUrl:g(),isPremium:!!m().isPremium,isLarge:"summary"!==d(),titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"X",alt:v()}})),(0,a.withDispatch)(((e,t,{select:s})=>{const{setTwitterPreviewTitle:r,setTwitterPreviewDescription:o,clearTwitterPreviewImage:i,loadTwitterPreviewData:n,findCustomFields:a}=e("yoast-seo/editor"),l=s("yoast-seo/editor").getPostId();return{onSelectImageClick:vi,onRemoveImageClick:i,onDescriptionChange:o,onTitleChange:r,onLoad:n,onReplacementVariableSearchChange:ro(l,a)}})),cs()])(_i),Si=ce()(Zt.Collapsible)` h2 > button { padding-left: 0; padding-top: 16px; &:hover { background-color: #f0f0f0; } } div[class^="collapsible_content"] { padding: 24px 0; margin: 0 24px; border-top: 1px solid rgba(0,0,0,0.2); } `,Ei=e=>(0,pe.jsx)(Si,{hasPadding:!1,hasSeparator:!0,...e}),ji=ce().legend` margin: 16px 0; padding: 0; color: ${bo.colors.$color_headings}; font-size: 12px; font-weight: 300; `,Ti=ce().legend` margin: 0 0 16px; padding: 0; color: ${bo.colors.$color_headings}; font-size: 12px; font-weight: 300; `,Ri=ce()(go)` width: 18px; height: 18px; margin: 3px; `,Ci=e=>{const{useOpenGraphData:t,useTwitterData:s}=e;if(!t&&!s)return;const r=_r();return(0,pe.jsxs)(jr /* translators: Social media appearance refers to a preview of how a page will be represented on social media. */,{title:(0,Re.__)("Social media appearance","wordpress-seo"),id:"yoast-social-appearance-modal",shouldCloseOnClickOutside:!1,SuffixHeroIcon:(0,pe.jsx)(Ri,{className:"yst-text-slate-500",...r}),children:[t&&(0,pe.jsxs)(ie.Fragment,{children:[(0,pe.jsx)(Ti,{children:(0,Re.__)("Determine how your post should look on social media like Facebook, X, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")}),(0,pe.jsx)(xi,{}),s&&(0,pe.jsx)(ji,{children:(0,Re.__)("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,pe.jsx)(Ei,{title:(0,Re.__)("X appearance","wordpress-seo"),hasSeparator:!0,initialIsOpen:!1,children:(0,pe.jsx)(ki,{})}),!t&&s&&(0,pe.jsxs)(ie.Fragment,{children:[(0,pe.jsx)(Ti,{children:(0,Re.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below.","wordpress-seo")}),(0,pe.jsx)(ki,{})]})]})};Ci.propTypes={useOpenGraphData:ae().bool.isRequired,useTwitterData:ae().bool.isRequired};const Ii=Ci,Li=({isOpen:e,closeModal:t,id:s,upsellLink:r})=>{const{locationContext:o}=(0,de.useRootContext)(),i=(0,Yt.addQueryArgs)(wpseoAdminL10n[r],{context:o}),n=[Ae((0,Re.sprintf)(/* translators: %1$s and %2$s are opening and closing span tags. */ (0,Re.__)("%1$sKeyphrase distribution:%2$s See if your keywords are spread evenly so search engines understand your topic","wordpress-seo"),"<span>","</span>"),{span:(0,pe.jsx)("span",{className:"yst-font-semibold"})}),Ae((0,Re.sprintf)(/* translators: %1$s and %2$s are opening and closing span tags. */ (0,Re.__)("%1$sTitle check:%2$s Instantly spot missing titles and fix them for better click-through rates","wordpress-seo"),"<span>","</span>"),{span:(0,pe.jsx)("span",{className:"yst-font-semibold"})}),Ae((0,Re.sprintf)(/* translators: %1$s and %2$s are opening and closing span tags. */ (0,Re.__)("%1$sSynonyms:%2$s Include synonyms of your keyphrase for a more natural flow and smarter suggestions","wordpress-seo"),"<span>","</span>"),{span:(0,pe.jsx)("span",{className:"yst-font-semibold"})})];return(0,pe.jsx)(ns,{isOpen:e,onClose:t,id:s,title:(0,Re.__)("Get deeper keyphrase insights and stronger headlines","wordpress-seo"),upsellLink:i,benefits:n,note:(0,Re.__)("Upgrade to optimize with precision","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",modalTitle:(0,Re.sprintf)(/* translators: %1$s is for Premium SEO analysis. */ (0,Re.__)("Unlock %1$s","wordpress-seo"),"Premium SEO analysis")})};Li.propTypes={isOpen:ae().bool.isRequired,closeModal:ae().func.isRequired,id:ae().string.isRequired,upsellLink:ae().string.isRequired};const Pi=({location:e="sidebar"})=>{const t=(0,Pe.useSvgAria)(),[s,,,r,o]=(0,Pe.useToggleState)(!1),i=`shortlinks.upsell.${e}.premium_seo_analysis_button`;return(0,pe.jsxs)(ie.Fragment,{children:[(0,pe.jsx)(Li,{isOpen:s,closeModal:o,id:"yoast-premium-seo-analysis-modal",upsellLink:i}),"sidebar"===e&&(0,pe.jsx)(Xt,{id:"yoast-premium-seo-analysis-modal-open-button",title:(0,Re.__)("Premium SEO analysis","wordpress-seo"),prefixIcon:{icon:"seo-score-none",color:bo.colors.$color_grey},onClick:r,children:(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsx)(Pe.Badge,{size:"small",variant:"upsell",children:(0,pe.jsx)(Kt,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...t})})})}),"metabox"===e&&(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsxs)(Gt,{id:"yoast-premium-seo-analysis-metabox-modal-open-button",onClick:r,children:[(0,pe.jsx)(Zt.SvgIcon,{icon:"seo-score-none",color:bo.colors.$color_grey}),(0,pe.jsx)(Gt.Text,{children:(0,Re.__)("Premium SEO analysis","wordpress-seo")}),(0,pe.jsxs)(Pe.Badge,{size:"small",variant:"upsell",children:[(0,pe.jsx)(Kt,{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...t}),(0,pe.jsx)("span",{children:"Premium"})]})]})})]})};Pi.propTypes={location:ae().string};const Ai=Pi,Oi=e=>{const[t,s]=(0,ie.useState)(!1),{prefixIcon:r}=e;return(0,pe.jsxs)("div",{className:"yoast components-panel__body "+(t?"is-opened":""),children:[(0,pe.jsx)("h2",{className:"components-panel__body-title",children:(0,pe.jsxs)("button",{onClick:function(){s(!t)},className:"components-button components-panel__body-toggle",type:"button",id:e.buttonId,children:[(0,pe.jsx)("span",{className:"yoast-icon-span",style:{fill:`${r&&r.color||""}`},children:r&&(0,pe.jsx)(Zt.SvgIcon,{icon:r.icon,color:r.color,size:r.size})}),(0,pe.jsxs)("span",{className:"yoast-title-container",children:[(0,pe.jsx)("div",{className:"yoast-title",children:e.title}),(0,pe.jsx)("div",{className:"yoast-subtitle",children:e.subTitle})]}),e.hasBetaBadgeLabel&&(0,pe.jsx)(Zt.BetaBadge,{}),(0,pe.jsx)("span",{className:"yoast-chevron","aria-hidden":"true"})]})}),t&&e.children]})},Fi=Oi;Oi.propTypes={title:ae().string.isRequired,children:ae().oneOfType([ae().node,ae().arrayOf(ae().node)]).isRequired,prefixIcon:ae().object,subTitle:ae().string,hasBetaBadgeLabel:ae().bool,buttonId:ae().string},Oi.defaultProps={prefixIcon:null,subTitle:"",hasBetaBadgeLabel:!1,buttonId:null};var Mi=s(6746);const Di=(0,hs.makeOutboundLink)(),Ni=ce().div` padding: 16px; `,qi="yoast-seo/editor";function Ui({location:e,show:t}){return t?(0,pe.jsxs)(Zt.Alert,{type:"info",children:[(0,Re.sprintf)(/* translators: %s Expands to "Yoast News SEO" */ (0,Re.__)("Are you working on a news article? %s helps you optimize your site for Google News.","wordpress-seo"),"Yoast News SEO")+" ",(0,pe.jsx)(Di,{href:window.wpseoAdminL10n[`shortlinks.upsell.${e}.news`],children:(0,Re.sprintf)(/* translators: %s: Expands to "Yoast News SEO". */ (0,Re.__)("Buy %s now!","wordpress-seo"),"Yoast News SEO")})]}):null}Ui.propTypes={show:ae().bool.isRequired,location:ae().string.isRequired};const Wi=(e,t,s)=>{const r=(0,a.useSelect)((e=>e(qi).getIsProduct()),[]),o=(0,a.useSelect)((e=>e(qi).getIsWooSeoActive()),[]),i=r&&o?{name:(0,Re.__)("Item Page","wordpress-seo"),value:"ItemPage"}:e.find((e=>e.value===t));return[{name:(0,Re.sprintf)(/* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */ (0,Re.__)("Default for %1$s (%2$s)","wordpress-seo"),s,i?i.name:""),value:""},...e]},$i=e=>(0,Re.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,Re.__)("You can change the default type for %1$s under Content types in the %2$sSettings%3$s.","wordpress-seo"),e,"{{link}}","{{/link}}");ae().string.isRequired,ae().string.isRequired,ae().string.isRequired;const Bi=e=>{const t=Wi(e.pageTypeOptions,e.defaultPageType,e.postTypeName),s=Wi(e.articleTypeOptions,e.defaultArticleType,e.postTypeName),r=(0,a.useSelect)((e=>e(qi).selectLink("https://yoa.st/product-schema-metabox")),[]),o=(0,a.useSelect)((e=>e(qi).getIsWooSeoUpsell()),[]),[i,n]=(0,ie.useState)(e.schemaArticleTypeSelected),l=(0,Re.__)("Want your products stand out in search results with rich results like price, reviews and more?","wordpress-seo"),c=(0,a.useSelect)((e=>e(qi).getIsProduct()),[]),d=(0,a.useSelect)((e=>e(qi).getIsWooSeoActive()),[]),p=(0,a.useSelect)((e=>e(qi).selectAdminLink("?page=wpseo_page_settings")),[]),u=c&&d,h=(0,ie.useCallback)(((e,t)=>{n(t)}),[i]);return(0,ie.useEffect)((()=>{h(null,e.schemaArticleTypeSelected)}),[e.schemaArticleTypeSelected]),(0,pe.jsxs)(ie.Fragment,{children:[(0,pe.jsx)(Zt.FieldGroup,{label:(0,Re.__)("What type of page or content is this?","wordpress-seo"),linkTo:e.additionalHelpTextLink /* translators: Hidden accessibility text. */,linkText:(0,Re.__)("Learn more about page or content types","wordpress-seo")}),o&&(0,pe.jsx)(io,{link:r,text:l}),(0,pe.jsx)(Zt.Select,{id:(0,hs.join)(["yoast-schema-page-type",e.location]),options:t,label:(0,Re.__)("Page type","wordpress-seo"),onChange:e.schemaPageTypeChange,selected:u?"ItemPage":e.schemaPageTypeSelected,disabled:u}),e.showArticleTypeInput&&(0,pe.jsx)(Zt.Select,{id:(0,hs.join)(["yoast-schema-article-type",e.location]),options:s,label:(0,Re.__)("Article type","wordpress-seo"),onChange:e.schemaArticleTypeChange,selected:e.schemaArticleTypeSelected,onOptionFocus:h}),(0,pe.jsx)(Ui,{location:e.location,show:!e.isNewsEnabled&&(y=i,f=e.defaultArticleType,"NewsArticle"===y||""===y&&"NewsArticle"===f)}),e.displayFooter&&!u&&(0,pe.jsx)("p",{children:(m=e.postTypeName,g=p,(0,Mi.Z)({mixedString:$i(m),components:{link:(0,pe.jsx)("a",{href:g,target:"_blank",rel:"noreferrer"})}}))}),u&&(0,pe.jsx)("p",{children:(0,Re.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */ (0,Re.__)("You have %1$s activated on your site, automatically setting the Page type for your products to 'Item Page'. As a result, the Page type selection is disabled.","wordpress-seo"),"Yoast WooCommerce SEO")})]});var m,g,y,f},Hi=ae().arrayOf(ae().shape({name:ae().string,value:ae().string}));Bi.propTypes={schemaPageTypeChange:ae().func,schemaPageTypeSelected:ae().string,pageTypeOptions:Hi.isRequired,schemaArticleTypeChange:ae().func,schemaArticleTypeSelected:ae().string,articleTypeOptions:Hi.isRequired,showArticleTypeInput:ae().bool.isRequired,additionalHelpTextLink:ae().string.isRequired,helpTextLink:ae().string.isRequired,helpTextTitle:ae().string.isRequired,helpTextDescription:ae().string.isRequired,postTypeName:ae().string.isRequired,displayFooter:ae().bool,defaultPageType:ae().string.isRequired,defaultArticleType:ae().string.isRequired,location:ae().string.isRequired,isNewsEnabled:ae().bool},Bi.defaultProps={schemaPageTypeChange:()=>{},schemaPageTypeSelected:null,schemaArticleTypeChange:()=>{},schemaArticleTypeSelected:null,displayFooter:!1,isNewsEnabled:!1};const zi=e=>e.isMetabox?(0,ie.createPortal)((0,pe.jsx)(Ni,{children:(0,pe.jsx)(Bi,{...e})}),document.getElementById("wpseo-meta-section-schema")):(0,pe.jsx)(Bi,{...e});zi.propTypes={showArticleTypeInput:ae().bool,articleTypeLabel:ae().string,additionalHelpTextLink:ae().string,pageTypeLabel:ae().string.isRequired,helpTextLink:ae().string.isRequired,helpTextTitle:ae().string.isRequired,helpTextDescription:ae().string.isRequired,isMetabox:ae().bool.isRequired,postTypeName:ae().string.isRequired,displayFooter:ae().bool,loadSchemaArticleData:ae().func.isRequired,loadSchemaPageData:ae().func.isRequired,location:ae().string.isRequired},zi.defaultProps={showArticleTypeInput:!1,articleTypeLabel:"",additionalHelpTextLink:"",displayFooter:!1};const Ki=zi;class Yi{static get articleTypeInput(){return document.getElementById("yoast_wpseo_schema_article_type")}static get defaultArticleType(){return Yi.articleTypeInput.getAttribute("data-default")}static get articleType(){return Yi.articleTypeInput.value}static set articleType(e){Yi.articleTypeInput.value=e}static get pageTypeInput(){return document.getElementById("yoast_wpseo_schema_page_type")}static get defaultPageType(){return Yi.pageTypeInput.getAttribute("data-default")}static get pageType(){return Yi.pageTypeInput.value}static set pageType(e){Yi.pageTypeInput.value=e}}const Vi=e=>{const t=null!==Yi.articleTypeInput;(0,ie.useEffect)((()=>{e.loadSchemaPageData(),t&&e.loadSchemaArticleData()}),[]);const{pageTypeOptions:s,articleTypeOptions:r}=window.wpseoScriptData.metabox.schema,o={articleTypeLabel:(0,Re.__)("Article type","wordpress-seo"),pageTypeLabel:(0,Re.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:(0,Re.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:(0,Re.__)("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},i={...e,...o,...(n=e.location,"metabox"===n?{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 n;return(0,pe.jsx)(Ki,{...i})};Vi.propTypes={displayFooter:ae().bool.isRequired,schemaPageTypeSelected:ae().string.isRequired,schemaArticleTypeSelected:ae().string.isRequired,defaultArticleType:ae().string.isRequired,defaultPageType:ae().string.isRequired,loadSchemaPageData:ae().func.isRequired,loadSchemaArticleData:ae().func.isRequired,schemaPageTypeChange:ae().func.isRequired,schemaArticleTypeChange:ae().func.isRequired,location:ae().string.isRequired};const Gi=(0,zt.compose)([(0,a.withSelect)((e=>{const{getPreferences:t,getPageType:s,getDefaultPageType:r,getArticleType:o,getDefaultArticleType:i}=e("yoast-seo/editor"),{displaySchemaSettingsFooter:n,isNewsEnabled:a}=t();return{displayFooter:n,isNewsEnabled:a,schemaPageTypeSelected:s(),schemaArticleTypeSelected:o(),defaultArticleType:i(),defaultPageType:r()}})),(0,a.withDispatch)((e=>{const{setPageType:t,setArticleType:s,getSchemaPageData:r,getSchemaArticleData:o}=e("yoast-seo/editor");return{loadSchemaPageData:r,loadSchemaArticleData:o,schemaPageTypeChange:t,schemaArticleTypeChange:s}})),cs()])(Vi),Zi=({noIndex:e,onNoIndexChange:t,editorContext:s,isPrivateBlog:r})=>{const o=(e=>{const t=(0,Re.__)("No","wordpress-seo"),s=(0,Re.__)("Yes","wordpress-seo"),r=e.noIndex?t:s;return window.wpseoScriptData.isPost?[{name:(0,Re.sprintf)(/* translators: %1$s translates to "yes" or "no", %2$s translates to the content type label in plural form */ (0,Re.__)("%1$s (current default for %2$s)","wordpress-seo"),r,e.postTypeNamePlural),value:"0"},{name:t,value:"1"},{name:s,value:"2"}]:[{name:(0,Re.sprintf)(/* translators: %1$s translates to "yes" or "no", %2$s translates to the content type label in plural form */ (0,Re.__)("%1$s (current default for %2$s)","wordpress-seo"),r,e.postTypeNamePlural),value:"default"},{name:s,value:"index"},{name:t,value:"noindex"}]})(s);return(0,pe.jsx)(de.LocationConsumer,{children:s=>(0,pe.jsxs)(ie.Fragment,{children:[r&&(0,pe.jsx)(Zt.Alert,{type:"warning",children:(0,Re.__)("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,pe.jsx)(Zt.Select,{label:(0,Re.__)("Allow search engines to show this content in search results?","wordpress-seo"),onChange:t,id:(0,hs.join)(["yoast-meta-robots-noindex",s]),options:o,selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.allow_search_engines"] /* translators: Hidden accessibility text. */,linkText:(0,Re.__)("Learn more about the no-index setting on our help page.","wordpress-seo")})]})})};Zi.propTypes={noIndex:ae().string.isRequired,onNoIndexChange:ae().func.isRequired,editorContext:ae().object.isRequired,isPrivateBlog:ae().bool},Zi.defaultProps={isPrivateBlog:!1};const Qi=({noFollow:e,onNoFollowChange:t})=>(0,pe.jsx)(de.LocationConsumer,{children:s=>{const r=(0,hs.join)(["yoast-meta-robots-nofollow",s]);return(0,pe.jsx)(Zt.RadioButtonGroup,{id:r,options:[{value:"0",label:"Yes"},{value:"1",label:"No"}],label:(0,Re.__)("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,Re.__)("Learn more about the no-follow setting on our help page.","wordpress-seo")})}});Qi.propTypes={noFollow:ae().string.isRequired,onNoFollowChange:ae().func.isRequired};const Xi=({advanced:e,onAdvancedChange:t})=>(0,pe.jsx)(de.LocationConsumer,{children:s=>{const r=(0,hs.join)(["yoast-meta-robots-advanced",s]),o=`${r}-input`;return(0,pe.jsx)(Zt.MultiSelect,{label:(0,Re.__)("Meta robots advanced","wordpress-seo"),onChange:t,id:r,inputId:o,options:[{name:(0,Re.__)("No Image Index","wordpress-seo"),value:"noimageindex"},{name:(0,Re.__)("No Archive","wordpress-seo"),value:"noarchive"},{name:(0,Re.__)("No Snippet","wordpress-seo"),value:"nosnippet"}],selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.meta_robots"] /* translators: Hidden accessibility text. */,linkText:(0,Re.__)("Learn more about advanced meta robots settings on our help page.","wordpress-seo")})}});Xi.propTypes={advanced:ae().array.isRequired,onAdvancedChange:ae().func.isRequired};const Ji=({breadcrumbsTitle:e,onBreadcrumbsTitleChange:t})=>(0,pe.jsx)(de.LocationConsumer,{children:s=>(0,pe.jsx)(Zt.TextInput,{label:(0,Re.__)("Breadcrumbs Title","wordpress-seo"),id:(0,hs.join)(["yoast-breadcrumbs-title",s]),onChange:t,value:e,linkTo:wpseoAdminL10n["shortlinks.advanced.breadcrumbs_title"] /* translators: Hidden accessibility text. */,linkText:(0,Re.__)("Learn more about the breadcrumbs title setting on our help page.","wordpress-seo")})});Ji.propTypes={breadcrumbsTitle:ae().string.isRequired,onBreadcrumbsTitleChange:ae().func.isRequired};const en=({canonical:e,onCanonicalChange:t})=>(0,pe.jsx)(de.LocationConsumer,{children:s=>(0,pe.jsx)(Zt.TextInput,{label:(0,Re.__)("Canonical URL","wordpress-seo"),id:(0,hs.join)(["yoast-canonical",s]),onChange:t,value:e,linkTo:"https://yoa.st/canonical-url" /* translators: Hidden accessibility text. */,linkText:(0,Re.__)("Learn more about canonical URLs on our help page.","wordpress-seo")})});en.propTypes={canonical:ae().string.isRequired,onCanonicalChange:ae().func.isRequired};const tn=e=>{const{noIndex:t,noFollow:s,advanced:r,breadcrumbsTitle:o,canonical:i,onNoIndexChange:n,onNoFollowChange:a,onAdvancedChange:l,onBreadcrumbsTitleChange:c,onCanonicalChange:d,onLoad:p,isLoading:u,editorContext:h,isBreadcrumbsDisabled:m,isPrivateBlog:g}=e;(0,ie.useEffect)((()=>{setTimeout((()=>{u&&p()}))}));const y={noIndex:t,onNoIndexChange:n,editorContext:h,isPrivateBlog:g},f={noFollow:s,onNoFollowChange:a},w={advanced:r,onAdvancedChange:l},x={breadcrumbsTitle:o,onBreadcrumbsTitleChange:c},b={canonical:i,onCanonicalChange:d};return u?null:(0,pe.jsxs)(ie.Fragment,{children:[(0,pe.jsx)(Zi,{...y}),h.isPost&&(0,pe.jsx)(Qi,{...f}),h.isPost&&(0,pe.jsx)(Xi,{...w}),!m&&(0,pe.jsx)(Ji,{...x}),(0,pe.jsx)(en,{...b})]})};tn.propTypes={noIndex:ae().string.isRequired,canonical:ae().string.isRequired,onNoIndexChange:ae().func.isRequired,onCanonicalChange:ae().func.isRequired,onLoad:ae().func.isRequired,isLoading:ae().bool.isRequired,editorContext:ae().object.isRequired,isBreadcrumbsDisabled:ae().bool.isRequired,isPrivateBlog:ae().bool,advanced:ae().array,onAdvancedChange:ae().func,noFollow:ae().string,onNoFollowChange:ae().func,breadcrumbsTitle:ae().string,onBreadcrumbsTitleChange:ae().func},tn.defaultProps={advanced:[],onAdvancedChange:()=>{},noFollow:"",onNoFollowChange:()=>{},breadcrumbsTitle:"",onBreadcrumbsTitleChange:()=>{},isPrivateBlog:!1};const sn=tn,rn=(0,zt.compose)([(0,a.withSelect)((e=>{const{getNoIndex:t,getNoFollow:s,getAdvanced:r,getBreadcrumbsTitle:o,getCanonical:i,getIsLoading:n,getEditorContext:a,getPreferences:l}=e("yoast-seo/editor"),{isBreadcrumbsDisabled:c,isPrivateBlog:d}=l();return{noIndex:t(),noFollow:s(),advanced:r(),breadcrumbsTitle:o(),canonical:i(),isLoading:n(),editorContext:a(),isBreadcrumbsDisabled:c,isPrivateBlog:d}})),(0,a.withDispatch)((e=>{const{setNoIndex:t,setNoFollow:s,setAdvanced:r,setBreadcrumbsTitle:o,setCanonical:i,loadAdvancedSettingsData:n}=e("yoast-seo/editor");return{onNoIndexChange:t,onNoFollowChange:s,onAdvancedChange:r,onBreadcrumbsTitleChange:o,onCanonicalChange:i,onLoad:n}}))])(sn),on=window.yoast.relatedKeyphraseSuggestions;function nn(e){const{requestLimitReached:t,isSuccess:s,response:r,requestHasData:o,relatedKeyphrases:i}=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,c.isEmpty)(e)&&"error"in e}(r)?"requestFailed":o?function(e){return e&&e.length>=4}(i)?"maxRelatedKeyphrases":null:"requestEmpty"}function an(e){var t,s;const{keyphrase:r="",relatedKeyphrases:o=[],renderAction:i=null,requestLimitReached:n=!1,countryCode:a="us",setCountry:l,newRequest:c,response:d={},isRtl:p=!1,userLocale:u="en_US",isPending:h=!1,isPremium:m=!1,semrushUpsellLink:g="",premiumUpsellLink:y=""}=e,[f,w]=(0,ie.useState)(a),x=(0,ie.useCallback)((async()=>{c(a,r),w(a)}),[a,r,c]);return(0,pe.jsxs)(Pe.Root,{context:{isRtl:p},children:[!n&&!m&&(0,pe.jsx)(on.PremiumUpsell,{url:y,className:"yst-mb-4"}),!n&&(0,pe.jsx)(on.CountrySelector,{countryCode:a,activeCountryCode:f,onChange:l,onClick:x,className:"yst-mb-4",userLocale:u.split("_")[0]}),!h&&(0,pe.jsx)(on.UserMessage,{variant:nn(e),upsellLink:g}),(0,pe.jsx)(on.KeyphrasesTable,{relatedKeyphrases:o,columnNames:null==d||null===(t=d.results)||void 0===t?void 0:t.columnNames,data:null==d||null===(s=d.results)||void 0===s?void 0:s.rows,isPending:h,renderButton:i,className:"yst-mt-4"})]})}an.propTypes={keyphrase:ae().string,relatedKeyphrases:ae().array,renderAction:ae().func,requestLimitReached:ae().bool,countryCode:ae().string.isRequired,setCountry:ae().func.isRequired,newRequest:ae().func.isRequired,response:ae().object,isRtl:ae().bool,userLocale:ae().string,isPending:ae().bool,isPremium:ae().bool,semrushUpsellLink:ae().string,premiumUpsellLink:ae().string};const ln=(0,zt.compose)([(0,a.withSelect)((e=>{const{getFocusKeyphrase:t,getSEMrushSelectedCountry:s,getSEMrushRequestLimitReached:r,getSEMrushRequestResponse:o,getSEMrushRequestIsSuccess:i,getSEMrushIsRequestPending:n,getSEMrushRequestHasData:a,getSEMrushRequestKeyphrase:l,getPreference:c,getIsPremium:d,selectLinkParams:p}=e("yoast-seo/editor");return{keyphrase:t(),countryCode:s(),requestLimitReached:r(),response:o(),isSuccess:i(),isPending:n(),requestHasData:a(),lastRequestKeyphrase:l(),isRtl:c("isRtl",!1),userLocale:c("userLocale","en_US"),isPremium:d(),semrushUpsellLink:(0,Yt.addQueryArgs)("https://yoa.st/semrush-prices",p()),premiumUpsellLink:(0,Yt.addQueryArgs)("https://yoa.st/413",p())}})),(0,a.withDispatch)((e=>{const{setSEMrushChangeCountry:t,setSEMrushNewRequest:s}=e("yoast-seo/editor");return{setCountry:e=>{t(e)},newRequest:(e,t)=>{s(e,t)}}}))])(an),cn=Oe.forwardRef((function(e,t){return Oe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Oe.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"}))})),dn=ce().div` min-width: 600px; @media screen and ( max-width: 680px ) { min-width: 0; width: 86vw; } `,pn=(ce().div` @media screen and ( min-width: 600px ) { max-width: 420px; } `,ce()(Zt.Icon)` float: ${(0,hs.getDirectionalStyle)("right","left")}; margin: ${(0,hs.getDirectionalStyle)("0 0 16px 16px","0 16px 16px 0")}; && { width: 150px; height: 150px; @media screen and ( max-width: 680px ) { width: 80px; height: 80px; } } `,window.moment);var un=s.n(pn);const hn=(0,hs.makeOutboundLink)(),mn=e=>{const t=(0,Re.sprintf)(/* translators: %1$d expands to the amount of allowed keyphrases on a free account, %2$s expands to a link to Wincher plans. */ (0,Re.__)("You've reached the maximum amount of %1$d keyphrases you can add to your Wincher account. If you wish to add more keyphrases, please %2$s.","wordpress-seo"),e.limit,"{{updateWincherPlanLink/}}");return(0,pe.jsx)(Zt.Alert,{type:"error",children:(0,Mi.Z)({mixedString:t,components:{updateWincherPlanLink:(0,pe.jsx)(hn,{href:wpseoAdminGlobalL10n["links.wincher.pricing"],children:(0,Re.sprintf)(/* translators: %s : Expands to "Wincher". */ (0,Re.__)("upgrade your %s plan","wordpress-seo"),"Wincher")})}})})};mn.propTypes={limit:ae().number},mn.defaultProps={limit:10};const gn=mn,yn=()=>(0,pe.jsx)(Zt.Alert,{type:"error",children:(0,Re.__)("Something went wrong while tracking the ranking position(s) of your page. Please try again later.","wordpress-seo")}),fn=window.wp.apiFetch;var wn=s.n(fn);async function xn(e,t,s,r=200){try{const o=await e();return!!o&&(o.status===r?t(o):s(o))}catch(e){console.error(e.message)}}async function bn(e){try{return await wn()(e)}catch(e){return e.error&&e.status?e:e instanceof Response&&await e.json()}}async function vn(e){return(0,c.isArray)(e)||(e=[e]),await bn({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:e}})}const kn=ce().p` color: ${bo.colors.$color_pink_dark}; font-size: 14px; font-weight: 700; margin: 13px 0 10px; `,Sn=ce()(Zt.SvgIcon)` margin-right: 5px; vertical-align: middle; `,En=ce().button` position: absolute; top: 9px; right: 9px; border: none; background: none; cursor: pointer; `,jn=ce().p` font-size: 13px; font-weight: 500; margin: 10px 0 13px; `,Tn=ce().div` position: relative; background: ${e=>e.isTitleShortened?"#F5F7F7":"transparent"}; border: 1px solid #C7C7C7; border-left: 4px solid${bo.colors.$color_pink_dark}; padding: 0 16px; margin-bottom: 1.5em; `,Rn=e=>{const[t,s]=(0,ie.useState)(null);return(0,ie.useEffect)((()=>{e&&!t&&async function(){return await bn({path:"yoast/v1/wincher/account/limit",method:"GET"})}().then((e=>s(e)))}),[t]),t};Rn.propTypes={limit:ae().bool.isRequired};const Cn=({limit:e,usage:t,isTitleShortened:s,isFreeAccount:r})=>{const o=(0,Re.sprintf)( /* Translators: %1$s expands to the number of used keywords. * %2$s expands to the account keywords limit. */ (0,Re.__)("Your are tracking %1$s out of %2$s keyphrases included in your free account.","wordpress-seo"),t,e),i=(0,Re.sprintf)( /* Translators: %1$s expands to the number of used keywords. * %2$s expands to the account keywords limit. */ (0,Re.__)("Your are tracking %1$s out of %2$s keyphrases included in your account.","wordpress-seo"),t,e),n=r?o:i,a=(0,Re.sprintf)( /* Translators: %1$s expands to the number of used keywords. * %2$s expands to the account keywords limit. */ (0,Re.__)("Keyphrases tracked: %1$s/%2$s","wordpress-seo"),t,e),l=s?a:n;return(0,pe.jsxs)(kn,{children:[s&&(0,pe.jsx)(Sn,{icon:"exclamation-triangle",color:bo.colors.$color_pink_dark,size:"14px"}),l]})};Cn.propTypes={limit:ae().number.isRequired,usage:ae().number.isRequired,isTitleShortened:ae().bool,isFreeAccount:ae().bool};const In=(0,hs.makeOutboundLink)(),Ln=({discount:e,months:t})=>{const s=(0,pe.jsx)(In,{href:wpseoAdminGlobalL10n["links.wincher.upgrade"],style:{fontWeight:600},children:(0,Re.sprintf)(/* Translators: %s : Expands to "Wincher". */ (0,Re.__)("Click here to upgrade your %s plan","wordpress-seo"),"Wincher")});if(!e||!t)return(0,pe.jsx)(jn,{children:s});const r=100*e,o=(0,Re.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,Re.__)("%1$s and get an exclusive %2$s discount for %3$s month(s).","wordpress-seo"),"{{wincherAccountUpgradeLink/}}",r+"%",t);return(0,pe.jsx)(jn,{children:(0,Mi.Z)({mixedString:o,components:{wincherAccountUpgradeLink:s}})})};Ln.propTypes={discount:ae().number,months:ae().number};const Pn=({onClose:e,isTitleShortened:t,trackingInfo:s})=>{const r=(()=>{const[e,t]=(0,ie.useState)(null);return(0,ie.useEffect)((()=>{e||async function(){return await bn({path:"yoast/v1/wincher/account/upgrade-campaign",method:"GET"})}().then((e=>t(e)))}),[e]),e})();if(null===s)return null;const{limit:o,usage:i}=s;if(!(o&&i/o>=.8))return null;const n=Boolean(null==r?void 0:r.discount);return(0,pe.jsxs)(Tn,{isTitleShortened:t,children:[e&&(0,pe.jsx)(En,{type:"button","aria-label":(0,Re.__)("Close the upgrade callout","wordpress-seo"),onClick:e,children:(0,pe.jsx)(Zt.SvgIcon,{icon:"times-circle",color:bo.colors.$color_pink_dark,size:"14px"})}),(0,pe.jsx)(Cn,{...s,isTitleShortened:t,isFreeAccount:n}),(0,pe.jsx)(Ln,{discount:null==r?void 0:r.discount,months:null==r?void 0:r.months})]})};Pn.propTypes={onClose:ae().func,isTitleShortened:ae().bool,trackingInfo:ae().object};const An=Pn,On=()=>(0,pe.jsx)(Zt.Alert,{type:"success",children:(0,Re.sprintf)(/* translators: %s: Expands to "Wincher". */ (0,Re.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher")}),Fn=()=>(0,pe.jsx)(Zt.Alert,{type:"info",children:(0,Re.sprintf)(/* translators: %s: Expands to "Wincher". */ (0,Re.__)("%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")}),Mn=({data:e,mapChartDataToTableData:t,dataTableCaption:s,dataTableHeaderLabels:r,isDataTableVisuallyHidden:o})=>e.length!==r.length?(0,pe.jsx)("p",{children:(0,Re.__)("The number of headers and header labels don't match.","wordpress-seo")}):(0,pe.jsx)("div",{className:o?"screen-reader-text":null,children:(0,pe.jsxs)("table",{children:[(0,pe.jsx)("caption",{children:s}),(0,pe.jsx)("thead",{children:(0,pe.jsx)("tr",{children:r.map(((e,t)=>(0,pe.jsx)("th",{children:e},t)))})}),(0,pe.jsx)("tbody",{children:(0,pe.jsx)("tr",{children:e.map(((e,s)=>(0,pe.jsx)("td",{children:t(e.y)},s)))})})]})});Mn.propTypes={data:ae().arrayOf(ae().shape({x:ae().number,y:ae().number})).isRequired,mapChartDataToTableData:ae().func,dataTableCaption:ae().string.isRequired,dataTableHeaderLabels:ae().array.isRequired,isDataTableVisuallyHidden:ae().bool},Mn.defaultProps={mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};const Dn=Mn,Nn=({data:e,width:t,height:s,fillColor:r,strokeColor:o,strokeWidth:i,className:n,mapChartDataToTableData:a,dataTableCaption:l,dataTableHeaderLabels:c,isDataTableVisuallyHidden:d})=>{const p=Math.max(1,Math.max(...e.map((e=>e.x)))),u=Math.max(1,Math.max(...e.map((e=>e.y)))),h=s-i,m=e.map((e=>`${e.x/p*t},${h-e.y/u*h+i}`)).join(" "),g=`0,${h+i} `+m+` ${t},${h+i}`;return(0,pe.jsxs)(ie.Fragment,{children:[(0,pe.jsxs)("svg",{width:t,height:s,viewBox:`0 0 ${t} ${s}`,className:n,role:"img","aria-hidden":"true",focusable:"false",children:[(0,pe.jsx)("polygon",{fill:r,points:g}),(0,pe.jsx)("polyline",{fill:"none",stroke:o,strokeWidth:i,strokeLinejoin:"round",strokeLinecap:"round",points:m})]}),a&&(0,pe.jsx)(Dn,{data:e,mapChartDataToTableData:a,dataTableCaption:l,dataTableHeaderLabels:c,isDataTableVisuallyHidden:d})]})};Nn.propTypes={data:ae().arrayOf(ae().shape({x:ae().number,y:ae().number})).isRequired,width:ae().number.isRequired,height:ae().number.isRequired,fillColor:ae().string,strokeColor:ae().string,strokeWidth:ae().number,className:ae().string,mapChartDataToTableData:ae().func,dataTableCaption:ae().string.isRequired,dataTableHeaderLabels:ae().array.isRequired,isDataTableVisuallyHidden:ae().bool},Nn.defaultProps={fillColor:null,strokeColor:"#000000",strokeWidth:1,className:"",mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};const qn=Nn,Un=()=>(0,pe.jsxs)("p",{className:"yoast-wincher-seo-performance-modal__loading-message",children:[(0,Re.__)("Tracking the ranking position…","wordpress-seo")," ",(0,pe.jsx)(Zt.SvgIcon,{icon:"loading-spinner"})]}),Wn=ce()(Zt.SvgIcon)` margin-left: 2px; flex-shrink: 0; rotate: ${e=>e.isImproving?"-90deg":"90deg"}; `,$n=ce().span` color: ${e=>e.isImproving?"#69AB56":"#DC3332"}; font-size: 13px; font-weight: 600; line-height: 20px; margin-right: 2px; margin-left: 12px; `,Bn=ce().td` padding-right: 0 !important; & > div { margin: 0px; } `,Hn=ce().td` padding-left: 2px !important; `,zn=ce().td.attrs({className:"yoast-table--nopadding"})` & > div { justify-content: center; } `,Kn=ce().div` display: flex; align-items: center; & > a { box-sizing: border-box; } `,Yn=ce().button` background: none; color: inherit; border: none; padding: 0; font: inherit; cursor: pointer; outline: inherit; display: flex; align-items: center; `,Vn=ce().tr` background-color: ${e=>e.isEnabled?"#FFFFFF":"#F9F9F9"} !important; `;function Gn(e){return Math.round(100*e)}function Zn({chartData:e}){if((0,c.isEmpty)(e)||(0,c.isEmpty)(e.position))return"?";const t=function(e){return Array.from({length:e.position.history.length},((e,t)=>t+1)).map((e=>(0,Re.sprintf)((0,Re._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,pe.jsx)(qn,{width:66,height:24,data:s,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",mapChartDataToTableData:Gn,dataTableCaption:(0,Re.__)("Keyphrase position in the last 90 days on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:t})}function Qn({keyphrase:e,isEnabled:t,toggleAction:s,isLoading:r}){return r?(0,pe.jsx)(Zt.SvgIcon,{icon:"loading-spinner"}):(0,pe.jsx)(Zt.Toggle,{id:`toggle-keyphrase-tracking-${e}`,className:"wincher-toggle",isEnabled:t,onSetToggleState:s,showToggleStateLabel:!1})}function Xn(e){return!e||!e.position||e.position.value>100?"> 100":e.position.value}Zn.propTypes={chartData:ae().object},Zn.defaultProps={chartData:{}};const Jn=e=>un()(e).fromNow(),ea=({rowData:e})=>{var t;if(null==e||null===(t=e.position)||void 0===t||!t.change)return(0,pe.jsx)(Zn,{chartData:e});const s=e.position.change<0;return(0,pe.jsxs)(ie.Fragment,{children:[(0,pe.jsx)(Zn,{chartData:e}),(0,pe.jsx)($n,{isImproving:s,children:Math.abs(e.position.change)}),(0,pe.jsx)(Wn,{icon:"caret-right",color:s?"#69AB56":"#DC3332",size:"14px",isImproving:s})]})};function ta(e){const{rowData:t,websiteId:s,keyphrase:r,onSelectKeyphrases:o}=e,i=(0,ie.useCallback)((()=>{o([r])}),[o,r]),n=!(0,c.isEmpty)(t),a=t&&t.updated_at&&un()(t.updated_at)>=un()().subtract(7,"days"),l=t?`https://app.wincher.com/websites/${s}/keywords?serp=${t.id}&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast`:null;return n?a?(0,pe.jsxs)(ie.Fragment,{children:[(0,pe.jsx)("td",{children:(0,pe.jsxs)(Kn,{children:[Xn(t),(0,pe.jsx)(Zt.ButtonStyledLink,{variant:"secondary",href:l,style:{height:28,marginLeft:12},rel:"noopener",target:"_blank",children:(0,Re.__)("View","wordpress-seo")})]})}),(0,pe.jsx)("td",{className:"yoast-table--nopadding",children:(0,pe.jsx)(Yn,{type:"button",onClick:i,children:(0,pe.jsx)(ea,{rowData:t})})}),(0,pe.jsx)("td",{children:Jn(t.updated_at)})]}):(0,pe.jsx)("td",{className:"yoast-table--nopadding",colSpan:"3",children:(0,pe.jsx)(Un,{})}):(0,pe.jsx)("td",{className:"yoast-table--nopadding",colSpan:"3",children:(0,pe.jsx)("i",{children:(0,Re.__)("Activate tracking to show the ranking position","wordpress-seo")})})}function sa(e){var t;const{keyphrase:s,rowData:r,onTrackKeyphrase:o,onUntrackKeyphrase:i,isFocusKeyphrase:n,isDisabled:a,isLoading:l,isSelected:d,onSelectKeyphrases:p}=e,u=!(0,c.isEmpty)(r),h=!(0,c.isEmpty)(null==r||null===(t=r.position)||void 0===t?void 0:t.history),m=(0,ie.useCallback)((()=>{a||(u?i(s,r.id):o(s))}),[s,o,i,u,r,a]),g=(0,ie.useCallback)((()=>{p((e=>d?e.filter((e=>e!==s)):e.concat(s)))}),[p,d,s]);return(0,pe.jsxs)(Vn,{isEnabled:u,children:[(0,pe.jsx)(Bn,{children:h&&(0,pe.jsx)(Zt.Checkbox,{id:"select-"+s,onChange:g,checked:d,label:""})}),(0,pe.jsxs)(Hn,{children:[s,n&&(0,pe.jsx)("span",{children:"*"})]}),ta(e),(0,pe.jsx)(zn,{children:Qn({keyphrase:s,isEnabled:u,toggleAction:m,isLoading:l})})]})}ea.propTypes={rowData:ae().object},sa.propTypes={rowData:ae().object,keyphrase:ae().string.isRequired,onTrackKeyphrase:ae().func,onUntrackKeyphrase:ae().func,isFocusKeyphrase:ae().bool,isDisabled:ae().bool,isLoading:ae().bool,websiteId:ae().string,isSelected:ae().bool.isRequired,onSelectKeyphrases:ae().func.isRequired},sa.defaultProps={rowData:{},onTrackKeyphrase:()=>{},onUntrackKeyphrase:()=>{},isFocusKeyphrase:!1,isDisabled:!1,isLoading:!1,websiteId:""};const ra=(0,hs.makeOutboundLink)(),oa=ce().span` display: block; font-style: italic; @media (min-width: 782px) { display: inline; position: absolute; ${(0,hs.getDirectionalStyle)("right","left")}: 8px; } `,ia=ce().div` width: 100%; overflow-y: auto; `,na=ce().th` pointer-events: ${e=>e.isDisabled?"none":"initial"}; padding-right: 0 !important; & > div { margin: 0px; } `,aa=ce().th` padding-left: 2px !important; `,la=e=>{const t=(0,ie.useRef)();return(0,ie.useEffect)((()=>{t.current=e})),t.current},ca=(0,c.debounce)((async function(e=null,t=null,s=null,r){return await bn({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:e,permalink:s,startAt:t},signal:r})}),500,{leading:!0}),da=e=>{const{addTrackedKeyphrase:t,isLoggedIn:s,keyphrases:r,permalink:o,removeTrackedKeyphrase:i,setKeyphraseLimitReached:n,setRequestFailed:a,setRequestSucceeded:l,setTrackedKeyphrases:d,setHasTrackedAll:p,trackAll:u,trackedKeyphrases:h,isNewlyAuthenticated:m,websiteId:g,focusKeyphrase:y,newRequest:f,startAt:w,selectedKeyphrases:x,onSelectKeyphrases:b}=e,_=(0,ie.useRef)(),v=(0,ie.useRef)(),k=(0,ie.useRef)(!1),[S,E]=(0,ie.useState)([]),j=(0,ie.useCallback)((e=>{const t=e.toLowerCase();return h&&!(0,c.isEmpty)(h)&&h.hasOwnProperty(t)?h[t]:null}),[h]),T=(0,ie.useMemo)((()=>async()=>{await xn((()=>(v.current&&v.current.abort(),v.current="undefined"==typeof AbortController?null:new AbortController,ca(r,w,o,v.current.signal))),(e=>{l(e),d(e.results)}),(e=>{a(e)}))}),[l,a,d,r,o,w]),R=(0,ie.useCallback)((async e=>{const s=(Array.isArray(e)?e:[e]).map((e=>e.toLowerCase()));E((e=>[...e,...s])),await xn((()=>vn(s)),(e=>{l(e),t(e.results),T()}),(e=>{400===e.status&&e.limit&&n(e.limit),a(e)}),201),E((e=>(0,c.without)(e,...s)))}),[l,a,n,t,T]),C=(0,ie.useCallback)((async(e,t)=>{e=e.toLowerCase(),E((t=>[...t,e])),await xn((()=>async function(e){return await bn({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:e}})}(t)),(t=>{l(t),i(e)}),(e=>{a(e)})),E((t=>(0,c.without)(t,e)))}),[l,i,a]),I=(0,ie.useCallback)((async e=>{f(),await R(e)}),[f,R]),L=la(o),P=la(r),A=la(w),O=o&&w;(0,ie.useEffect)((()=>{s&&O&&(o!==L||(0,c.difference)(r,P).length||w!==A)&&T()}),[s,o,L,r,P,T,O,w,A]),(0,ie.useEffect)((()=>{if(s&&u&&null!==h){const e=r.filter((e=>!j(e)));e.length&&R(e),p()}}),[s,u,h,R,p,j,r]),(0,ie.useEffect)((()=>{m&&!k.current&&(T(),k.current=!0)}),[m,T]),(0,ie.useEffect)((()=>{if(s&&!(0,c.isEmpty)(h))return(0,c.filter)(h,(e=>(0,c.isEmpty)(e.updated_at))).length>0&&(_.current=setInterval((()=>{T()}),1e4)),()=>{clearInterval(_.current)}}),[s,h,T]);const F=s&&null===h,M=(0,ie.useMemo)((()=>(0,c.isEmpty)(h)?[]:Object.values(h).filter((e=>{var t;return!(0,c.isEmpty)(null==e||null===(t=e.position)||void 0===t?void 0:t.history)})).map((e=>e.keyword))),[h]),D=(0,ie.useMemo)((()=>x.length>0&&M.length>0&&M.every((e=>x.includes(e)))),[x,M]),N=(0,ie.useCallback)((()=>{b(D?[]:M)}),[b,D,M]),q=(0,ie.useMemo)((()=>(0,c.orderBy)(r,[e=>Object.values(h||{}).map((e=>e.keyword)).includes(e)],["desc"])),[r,h]);return r&&!(0,c.isEmpty)(r)&&(0,pe.jsxs)(ie.Fragment,{children:[(0,pe.jsx)(ia,{children:(0,pe.jsxs)("table",{className:"yoast yoast-table",children:[(0,pe.jsx)("thead",{children:(0,pe.jsxs)("tr",{children:[(0,pe.jsx)(na,{isDisabled:0===M.length,children:(0,pe.jsx)(Zt.Checkbox,{id:"select-all",onChange:N,checked:D,label:""})}),(0,pe.jsx)(aa,{scope:"col",abbr:(0,Re.__)("Keyphrase","wordpress-seo"),children:(0,Re.__)("Keyphrase","wordpress-seo")}),(0,pe.jsx)("th",{scope:"col",abbr:(0,Re.__)("Position","wordpress-seo"),children:(0,Re.__)("Position","wordpress-seo")}),(0,pe.jsx)("th",{scope:"col",abbr:(0,Re.__)("Position over time","wordpress-seo"),children:(0,Re.__)("Position over time","wordpress-seo")}),(0,pe.jsx)("th",{scope:"col",abbr:(0,Re.__)("Last updated","wordpress-seo"),children:(0,Re.__)("Last updated","wordpress-seo")}),(0,pe.jsx)("th",{scope:"col",abbr:(0,Re.__)("Tracking","wordpress-seo"),children:(0,Re.__)("Tracking","wordpress-seo")})]})}),(0,pe.jsx)("tbody",{children:q.map(((e,t)=>(0,pe.jsx)(sa,{keyphrase:e,onTrackKeyphrase:I,onUntrackKeyphrase:C,rowData:j(e),isFocusKeyphrase:e===y.trim().toLowerCase(),websiteId:g,isDisabled:!s,isLoading:F||S.indexOf(e.toLowerCase())>=0,isSelected:x.includes(e),onSelectKeyphrases:b},`trackable-keyphrase-${t}`)))})]})}),(0,pe.jsxs)("p",{style:{marginBottom:0,position:"relative"},children:[(0,pe.jsx)(ra,{href:wpseoAdminGlobalL10n["links.wincher.login"],children:(0,Re.sprintf)(/* translators: %s expands to Wincher */ (0,Re.__)("Get more insights over at %s","wordpress-seo"),"Wincher")}),(0,pe.jsx)(oa,{children:(0,Re.__)("* focus keyphrase","wordpress-seo")})]})]})};da.propTypes={addTrackedKeyphrase:ae().func.isRequired,isLoggedIn:ae().bool,isNewlyAuthenticated:ae().bool,keyphrases:ae().array,newRequest:ae().func.isRequired,removeTrackedKeyphrase:ae().func.isRequired,setRequestFailed:ae().func.isRequired,setKeyphraseLimitReached:ae().func.isRequired,setRequestSucceeded:ae().func.isRequired,setTrackedKeyphrases:ae().func.isRequired,setHasTrackedAll:ae().func.isRequired,trackAll:ae().bool,trackedKeyphrases:ae().object,websiteId:ae().string,permalink:ae().string.isRequired,focusKeyphrase:ae().string,startAt:ae().string,selectedKeyphrases:ae().arrayOf(ae().string).isRequired,onSelectKeyphrases:ae().func.isRequired},da.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],trackAll:!1,websiteId:"",focusKeyphrase:""};const pa=da,ua=(0,zt.compose)([(0,a.withSelect)((e=>{const{getWincherWebsiteId:t,getWincherTrackableKeyphrases:s,getWincherLoginStatus:r,getWincherPermalink:o,getFocusKeyphrase:i,isWincherNewlyAuthenticated:n,shouldWincherTrackAll:a}=e("yoast-seo/editor");return{focusKeyphrase:i(),keyphrases:s(),isLoggedIn:r(),trackAll:a(),websiteId:t(),isNewlyAuthenticated:n(),permalink:o()}})),(0,a.withDispatch)((e=>{const{setWincherNewRequest:t,setWincherRequestSucceeded:s,setWincherRequestFailed:r,setWincherSetKeyphraseLimitReached:o,setWincherTrackedKeyphrases:i,setWincherTrackingForKeyphrase:n,setWincherTrackAllKeyphrases:a,unsetWincherTrackingForKeyphrase:l}=e("yoast-seo/editor");return{newRequest:()=>{t()},setRequestSucceeded:e=>{s(e)},setRequestFailed:e=>{r(e)},setKeyphraseLimitReached:e=>{o(e)},addTrackedKeyphrase:e=>{n(e)},removeTrackedKeyphrase:e=>{l(e)},setTrackedKeyphrases:e=>{i(e)},setHasTrackedAll:()=>{a(!1)}}}))])(pa),ha=(0,hs.makeOutboundLink)(),ma=(0,hs.makeOutboundLink)(),ga=()=>{const e=(0,Re.sprintf)(/* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */ (0,Re.__)("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,pe.jsx)("p",{children:(0,Mi.Z)({mixedString:e,components:{wincherLink:(0,pe.jsx)(ha,{href:wpseoAdminGlobalL10n["links.wincher.website"],children:"Wincher"}),wincherReadMoreLink:(0,pe.jsx)(ma,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"],children:(0,Re.__)("Read more about keyphrase tracking with Wincher","wordpress-seo")})}})})},ya=()=>(0,pe.jsx)(Zt.Alert,{type:"error",children:(0,Re.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo")}),fa=()=>(0,pe.jsx)(Zt.Alert,{type:"info",children:(0,Re.sprintf)(/* translators: %s: Expands to "Wincher". */ (0,Re.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher")});class wa{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 xa=e=>{const t=(0,Re.sprintf)(/* translators: %s expands to a link to open the Wincher login popup. */ (0,Re.__)("It seems like something went wrong when retrieving your website's data. Please %s and try again.","wordpress-seo"),"{{reconnectToWincher/}}","Wincher");return(0,pe.jsx)(Zt.Alert,{type:"error",className:e.className,children:(0,Mi.Z)({mixedString:t,components:{reconnectToWincher:(0,pe.jsx)("a",{href:"#",onClick:t=>{t.preventDefault(),e.onReconnect()},children:(0,Re.sprintf)(/* translators: %s : Expands to "Wincher". */ (0,Re.__)("reconnect to %s","wordpress-seo"),"Wincher")})}})})};xa.propTypes={onReconnect:ae().func.isRequired,className:ae().string},xa.defaultProps={className:""};const ba=xa,_a=()=>(0,pe.jsx)(Zt.Alert,{type:"error",children:(0,Re.__)("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")}),va=window.yoast["chart.js"],ka="label";function Sa(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Ea(e,t){e.labels=t}function ja(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ka;const r=[];e.datasets=t.map((t=>{const o=e.datasets.find((e=>e[s]===t[s]));return o&&t.data&&!r.includes(o)?(r.push(o),Object.assign(o,t),o):{...t}}))}function Ta(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ka;const s={labels:[],datasets:[]};return Ea(s,e.labels),ja(s,e.datasets,t),s}function Ra(e,t){const{height:s=150,width:r=300,redraw:o=!1,datasetIdKey:i,type:n,data:a,options:l,plugins:c=[],fallbackContent:d,updateMode:p,...u}=e,h=(0,Oe.useRef)(null),m=(0,Oe.useRef)(),g=()=>{h.current&&(m.current=new va.Chart(h.current,{type:n,data:Ta(a,i),options:l&&{...l},plugins:c}),Sa(t,m.current))},y=()=>{Sa(t,null),m.current&&(m.current.destroy(),m.current=null)};return(0,Oe.useEffect)((()=>{!o&&m.current&&l&&function(e,t){const s=e.options;s&&t&&Object.assign(s,t)}(m.current,l)}),[o,l]),(0,Oe.useEffect)((()=>{!o&&m.current&&Ea(m.current.config.data,a.labels)}),[o,a.labels]),(0,Oe.useEffect)((()=>{!o&&m.current&&a.datasets&&ja(m.current.config.data,a.datasets,i)}),[o,a.datasets]),(0,Oe.useEffect)((()=>{m.current&&(o?(y(),setTimeout(g)):m.current.update(p))}),[o,l,a.labels,a.datasets,p]),(0,Oe.useEffect)((()=>{m.current&&(y(),setTimeout(g))}),[n]),(0,Oe.useEffect)((()=>(g(),()=>y())),[]),Oe.createElement("canvas",Object.assign({ref:h,role:"img",height:s,width:r},u),d)}const Ca=(0,Oe.forwardRef)(Ra);function Ia(e,t){return va.Chart.register(t),(0,Oe.forwardRef)(((t,s)=>Oe.createElement(Ca,Object.assign({},t,{ref:s,type:e}))))}const La=Ia("line",va.LineController),Pa={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"};va._adapters._date.override("function"==typeof un()?{_id:"moment",formats:function(){return Pa},parse:function(e,t){return"string"==typeof e&&"string"==typeof t?e=un()(e,t):e instanceof un()||(e=un()(e)),e.isValid()?e.valueOf():null},format:function(e,t){return un()(e).format(t)},add:function(e,t,s){return un()(e).add(t,s).valueOf()},diff:function(e,t,s){return un()(e).diff(un()(t),s)},startOf:function(e,t,s){return e=un()(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 un()(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 Aa=["top","right","bottom","left"];function Oa(e,t,s){const r={};s=s?"-"+s:"";for(let o=0;o<4;o++){const i=Aa[o];r[i]=parseFloat(e[t+"-"+i+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){}}(),va.Chart.register(va.CategoryScale,va.LineController,va.LineElement,va.PointElement,va.LinearScale,va.TimeScale,va.Legend,va.Tooltip);const Fa=["#ff983b","#ffa3f7","#3798ff","#ff3b3b","#acce81","#b51751","#3949ab","#26c6da","#ccb800","#de66ff","#4db6ac","#ffab91","#45f5f1","#77f210","#90a4ae","#ffd54f","#006b5e","#8ec7d2","#b1887c","#cc9300"];function Ma({datasets:e,isChartShown:t,keyphrases:s}){if(!t)return null;const r=(0,ie.useMemo)((()=>Object.fromEntries([...s].sort().map(((e,t)=>[e,Fa[t%Fa.length]])))),[s]),o=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,pe.jsx)(La,{height:100,data:{datasets:o},options:{plugins:{legend:{display:!0,position:"bottom",labels:{color:"black",usePointStyle:!0,boxHeight:7,boxWidth:7},onClick:c.noop},tooltip:{enabled:!0,callbacks:{title:e=>un()(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}}}})}va.Interaction.modes.xPoint=(e,t,s,r)=>{const o=function(e,t){if("native"in e)return e;const{canvas:s,currentDevicePixelRatio:r}=t,o=(h=s).ownerDocument.defaultView.getComputedStyle(h,null),i="border-box"===o.boxSizing,n=Oa(o,"padding"),a=Oa(o,"border","width"),{x:l,y:c,box:d}=function(e,t){const s=e.touches,r=s&&s.length?s[0]:e,{offsetX:o,offsetY:i}=r;let n,a,l=!1;if(((e,t,s)=>(e>0||t>0)&&(!s||!s.shadowRoot))(o,i,e.target))n=o,a=i;else{const e=t.getBoundingClientRect();n=r.clientX-e.left,a=r.clientY-e.top,l=!0}return{x:n,y:a,box:l}}(e,s),p=n.left+(d&&a.left),u=n.top+(d&&a.top);var h;let{width:m,height:g}=t;return i&&(m-=n.width+a.width,g-=n.height+a.height),{x:Math.round((l-p)/m*s.width/r),y:Math.round((c-u)/g*s.height/r)}}(t,e);let i=[];if(va.Interaction.evaluateInteractionItems(e,"x",o,((e,t,s)=>{e.inXRange(o.x,r)&&i.push({element:e,datasetIndex:t,index:s})})),0===i.length)return i;const n=i.reduce(((e,t)=>Math.abs(o.x-e.element.x)<Math.abs(o.x-t.element.x)?e:t)).element.x;return i=i.filter((e=>e.element.x===n)),i.some((e=>Math.abs(e.element.y-o.y)<10))?i:[]},Ma.propTypes={datasets:ae().arrayOf(ae().shape({label:ae().string.isRequired,data:ae().arrayOf(ae().shape({datetime:ae().string.isRequired,value:ae().number.isRequired})).isRequired,selected:ae().bool})).isRequired,isChartShown:ae().bool.isRequired,keyphrases:ae().array.isRequired};const Da=({response:e,onLogin:t})=>[401,403,404].includes(e.status)?(0,pe.jsx)(ba,{onReconnect:t}):(0,pe.jsx)(yn,{});Da.propTypes={response:ae().object.isRequired,onLogin:ae().func.isRequired};const Na=({isSuccess:e,response:t,allKeyphrasesMissRanking:s,onLogin:r,keyphraseLimitReached:o,limit:i})=>o?(0,pe.jsx)(gn,{limit:i}):(0,c.isEmpty)(t)||e?s?(0,pe.jsx)(Fn,{}):null:(0,pe.jsx)(Da,{response:t,onLogin:r});Na.propTypes={isSuccess:ae().bool.isRequired,allKeyphrasesMissRanking:ae().bool.isRequired,response:ae().object,onLogin:ae().func.isRequired,keyphraseLimitReached:ae().bool.isRequired,limit:ae().number.isRequired},Na.defaultProps={response:{}};let qa=null;const Ua=async e=>{if(qa&&!qa.isClosed())return void qa.focus();const{url:t}=await async function(){return await bn({path:"yoast/v1/wincher/authorization-url",method:"GET"})}();qa=new wa(t,{success:{type:"wincher:oauth:success",callback:t=>(async(e,t)=>{const{onAuthentication:s,setRequestSucceeded:r,setRequestFailed:o,keyphrases:i,addTrackedKeyphrase:n,setKeyphraseLimitReached:a}=e;await xn((()=>async function(e){const{code:t,websiteId:s}=e;return await bn({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(i)?i:[i]).map((e=>e.toLowerCase()));await xn((()=>vn(l)),(e=>{r(e),n(e.results)}),(e=>{400===e.status&&e.limit&&a(e.limit),o(e)}),201);const c=qa.getPopup();c&&c.close()}),(async e=>o(e)))})(e,t)},error:{type:"wincher:oauth:error",callback:()=>e.onAuthentication(!1,!1)}},{title:"Wincher_login",width:500,height:700}),qa.createPopup()},Wa=e=>e.isLoggedIn?null:(0,pe.jsx)("p",{children:(0,pe.jsx)(Zt.NewButton,{onClick:e.onLogin,variant:"primary",children:(0,Re.sprintf)(/* translators: %s expands to Wincher */ (0,Re.__)("Connect with %s","wordpress-seo"),"Wincher")})});Wa.propTypes={isLoggedIn:ae().bool.isRequired,onLogin:ae().func.isRequired};const $a=ce().div` p { margin: 1em 0; } `,Ba=ce().div` ${e=>e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"}; `,Ha=ce().div` font-weight: var(--yoast-font-weight-bold); color: var(--yoast-color-label); font-size: var(--yoast-font-size-default); `,za=ce().div.attrs({className:"yoast-field-group"})` display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; `,Ka=ce().div` margin: 8px 0; `,Ya=un().utc().startOf("day"),Va=[{name:(0,Re.__)("Last day","wordpress-seo"),value:un()(Ya).subtract(1,"days").format(),defaultIndex:1},{name:(0,Re.__)("Last week","wordpress-seo"),value:un()(Ya).subtract(1,"week").format(),defaultIndex:2},{name:(0,Re.__)("Last month","wordpress-seo"),value:un()(Ya).subtract(1,"month").format(),defaultIndex:3},{name:(0,Re.__)("Last year","wordpress-seo"),value:un()(Ya).subtract(1,"year").format(),defaultIndex:0}],Ga=e=>{const{onSelect:t,selected:s,options:r,isLoggedIn:o}=e;return o?r.length<1?null:(0,pe.jsx)("select",{className:"components-select-control__input",id:"wincher-period-picker",value:(null==s?void 0:s.value)||r[0].value,onChange:t,children:r.map((e=>(0,pe.jsx)("option",{value:e.value,children:e.name},e.name)))}):null};Ga.propTypes={onSelect:ae().func.isRequired,selected:ae().object,options:ae().array.isRequired,isLoggedIn:ae().bool.isRequired};const Za=e=>{const{trackedKeyphrases:t,isLoggedIn:s,keyphrases:r,shouldTrackAll:o,permalink:i,historyDaysLimit:n}=e;if(!i&&s)return(0,pe.jsx)(_a,{});if(0===r.length)return(0,pe.jsx)(ya,{});const a=un()(Ya).subtract(n,"days"),l=Va.filter((e=>un()(e.value).isSameOrAfter(a))),d=(0,c.orderBy)(l,(e=>e.defaultIndex),"desc")[0],[p,u]=(0,ie.useState)(d),[h,m]=(0,ie.useState)([]),g=h.length>0,y=(0,zt.usePrevious)(t);(0,ie.useEffect)((()=>{if(!(0,c.isEmpty)(t)&&(0,c.difference)(Object.keys(t),Object.keys(y||[])).length){const e=Object.values(t).map((e=>e.keyword));m(e)}}),[t,y]),(0,ie.useEffect)((()=>{u(d)}),[null==d?void 0:d.name]);const f=(0,ie.useCallback)((e=>{const t=Va.find((t=>t.value===e.target.value));t&&u(t)}),[u]),w=(0,ie.useMemo)((()=>(0,c.isEmpty)(h)||(0,c.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:h.includes(e.keyword)&&!(0,c.isEmpty)(null===(t=e.position)||void 0===t?void 0:t.history)}}))),[h,t]);return(0,pe.jsxs)(Ba,{isDisabled:!s,children:[(0,pe.jsx)("p",{children:(0,Re.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")}),s&&o&&(0,pe.jsx)(fa,{}),(0,pe.jsx)(za,{children:(0,pe.jsx)(Ga,{selected:p,onSelect:f,options:l,isLoggedIn:s})}),(0,pe.jsx)(Ka,{children:(0,pe.jsx)(Ma,{isChartShown:g,datasets:w,keyphrases:r})}),(0,pe.jsx)(ua,{startAt:null==p?void 0:p.value,selectedKeyphrases:h,onSelectKeyphrases:m,trackedKeyphrases:t})]})};function Qa(e){const{isNewlyAuthenticated:t,isLoggedIn:s}=e,r=(0,ie.useCallback)((()=>{Ua(e)}),[Ua,e]),o=Rn(s);return(0,pe.jsxs)($a,{children:[t&&(0,pe.jsx)(On,{}),s&&(0,pe.jsx)(An,{trackingInfo:o}),(0,pe.jsxs)(Ha,{children:[(0,Re.__)("SEO performance","wordpress-seo"),(0,pe.jsx)(Zt.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"] /* translators: Hidden accessibility text. */,linkText:(0,Re.__)("Learn more about the SEO performance feature.","wordpress-seo")})]}),(0,pe.jsx)(ga,{}),(0,pe.jsx)(Wa,{isLoggedIn:s,onLogin:r}),(0,pe.jsx)(Na,{...e,onLogin:r}),(0,pe.jsx)(Za,{...e,historyDaysLimit:(null==o?void 0:o.historyDays)||31})]})}Za.propTypes={trackedKeyphrases:ae().object,keyphrases:ae().array.isRequired,isLoggedIn:ae().bool.isRequired,shouldTrackAll:ae().bool.isRequired,permalink:ae().string.isRequired,historyDaysLimit:ae().number},Qa.propTypes={trackedKeyphrases:ae().object,addTrackedKeyphrase:ae().func.isRequired,isLoggedIn:ae().bool,isNewlyAuthenticated:ae().bool,keyphrases:ae().array,response:ae().object,shouldTrackAll:ae().bool,permalink:ae().string,historyDaysLimit:ae().number},Qa.defaultProps={trackedKeyphrases:null,isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],response:{},shouldTrackAll:!1,permalink:"",historyDaysLimit:0};const Xa=(0,zt.compose)([(0,a.withSelect)((e=>{const{isWincherNewlyAuthenticated:t,getWincherKeyphraseLimitReached:s,getWincherLimit:r,getWincherHistoryDaysLimit:o,getWincherLoginStatus:i,getWincherRequestIsSuccess:n,getWincherRequestResponse:a,getWincherTrackableKeyphrases:l,getWincherTrackedKeyphrases:c,getWincherAllKeyphrasesMissRanking:d,getWincherPermalink:p,shouldWincherAutomaticallyTrackAll:u}=e("yoast-seo/editor");return{keyphrases:l(),trackedKeyphrases:c(),allKeyphrasesMissRanking:d(),isLoggedIn:i(),isNewlyAuthenticated:t(),isSuccess:n(),keyphraseLimitReached:s(),limit:r(),response:a(),shouldTrackAll:u(),permalink:p(),historyDaysLimit:o()}})),(0,a.withDispatch)((e=>{const{setWincherWebsiteId:t,setWincherRequestSucceeded:s,setWincherRequestFailed:r,setWincherTrackingForKeyphrase:o,setWincherSetKeyphraseLimitReached:i,setWincherLoginStatus:n}=e("yoast-seo/editor");return{setRequestSucceeded:e=>{s(e)},setRequestFailed:e=>{r(e)},addTrackedKeyphrase:e=>{o(e)},setKeyphraseLimitReached:e=>{i(e)},onAuthentication:(e,s,r)=>{t(r),n(e,s)}}}))])(Qa),Ja=ce()(cn)` width: 18px; height: 18px; margin: 3px; `;function el(e){const{keyphrases:t,onNoKeyphraseSet:s,onOpen:r,location:o}=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(o)}function tl(e){const{location:t,whichModalOpen:s,shouldCloseOnClickOutside:r}=e,o=(0,ie.useCallback)((()=>{el(e)}),[el,e]),i=(0,Re.__)("Track SEO performance","wordpress-seo"),n=_r();return(0,pe.jsxs)(ie.Fragment,{children:[s===t&&(0,pe.jsx)(kr,{title:i,onRequestClose:e.onClose,icon:(0,pe.jsx)(ss,{}),additionalClassName:"yoast-wincher-seo-performance-modal yoast-gutenberg-modal__no-padding",shouldCloseOnClickOutside:r,children:(0,pe.jsx)(dn,{className:"yoast-gutenberg-modal__content yoast-wincher-seo-performance-modal__content",children:(0,pe.jsx)(Xa,{})})}),"sidebar"===t&&(0,pe.jsx)(Xt,{id:`wincher-open-button-${t}`,title:i,SuffixHeroIcon:(0,pe.jsx)(Ja,{className:"yst-text-slate-500",...n}),onClick:o}),"metabox"===t&&(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsxs)(Gt,{id:`wincher-open-button-${t}`,onClick:o,children:[(0,pe.jsx)(Gt.Text,{children:i}),(0,pe.jsx)(cn,{className:"yst-h-5 yst-w-5 yst-text-slate-500",...n})]})})]})}tl.propTypes={location:ae().string,whichModalOpen:ae().oneOf(["none","metabox","sidebar","postpublish"]),shouldCloseOnClickOutside:ae().bool,keyphrases:ae().array.isRequired,onNoKeyphraseSet:ae().func.isRequired,onOpen:ae().func.isRequired,onClose:ae().func.isRequired},tl.defaultProps={location:"",whichModalOpen:"none",shouldCloseOnClickOutside:!0};const sl=(0,zt.compose)([(0,a.withSelect)((e=>{const{getWincherModalOpen:t,getWincherTrackableKeyphrases:s}=e("yoast-seo/editor");return{keyphrases:s(),whichModalOpen:t()}})),(0,a.withDispatch)((e=>{const{setWincherOpenModal:t,setWincherDismissModal:s,setWincherNoKeyphrase:r}=e("yoast-seo/editor");return{onOpen:e=>{t(e)},onClose:()=>{s()},onNoKeyphraseSet:()=>{r()}}}))])(tl),rl=({isOpen:e,closeModal:t,id:s,upsellLink:r})=>(0,pe.jsx)(ns,{isOpen:e,onClose:t,id:s,upsellLink:r,title:(0,Re.__)("Cover more search intent with related keyphrases","wordpress-seo"),description:(0,Re.__)("Optimize for up to 5 keyphrases to shape your content around different themes, audiences, and angles - helping it get discovered by a wider audience.","wordpress-seo"),note:(0,Re.__)("Fine-tune your content for every audience","wordpress-seo"),modalTitle:(0,Re.__)("Target multiple keyphrases","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"}),ol=()=>{const[e,,,t,s]=(0,Pe.useToggleState)(!1),r=(0,ie.useContext)(de.LocationContext),{locationContext:o}=(0,de.useRootContext)(),i=(0,Pe.useSvgAria)(),n=wpseoAdminL10n["sidebar"===r.toLowerCase()?"shortlinks.upsell.sidebar.additional_button":"shortlinks.upsell.metabox.additional_button"];return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(rl,{isOpen:e,closeModal:s,upsellLink:(0,Yt.addQueryArgs)(n,{context:o}),id:`yoast-additional-keyphrases-modal-${r}`}),"sidebar"===r&&(0,pe.jsx)(Xt,{id:"yoast-additional-keyphrase-modal-open-button",title:(0,Re.__)("Add related keyphrase","wordpress-seo"),prefixIcon:{icon:"plus",color:bo.colors.$color_grey_medium_dark},onClick:t,children:(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsx)(Pe.Badge,{size:"small",variant:"upsell",children:(0,pe.jsx)(Kt,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...i})})})}),"metabox"===r&&(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsxs)(Gt,{id:"yoast-additional-keyphrase-metabox-modal-open-button",onClick:t,children:[(0,pe.jsx)(Zt.SvgIcon,{icon:"plus",color:bo.colors.$color_grey_medium_dark}),(0,pe.jsx)(Gt.Text,{children:(0,Re.__)("Add related keyphrase","wordpress-seo")}),(0,pe.jsxs)(Pe.Badge,{size:"small",variant:"upsell",children:[(0,pe.jsx)(Kt,{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...i}),(0,pe.jsx)("span",{children:"Premium"})]})]})})]})};function il({isLoading:e,onLoad:t,settings:s}){const r=(({webinarIntroUrl:e})=>{const{shouldShow:t}=xs(),s=(e=>{for(const t of e)if(null!=t&&t.getIsEligible())return t;return null})([{getIsEligible:()=>t,component:_s},{getIsEligible:xr,component:()=>(0,pe.jsx)(wr,{hasIcon:!1,image:null,url:e})},{getIsEligible:()=>!0,component:()=>(0,pe.jsx)(us,{})}]);return(null==s?void 0:s.component)||null})({webinarIntroUrl:(0,a.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/webinar-intro-elementor")),[])});return(0,ie.useEffect)((()=>{setTimeout((()=>{e&&t()}))})),e?null:(0,pe.jsx)(pe.Fragment,{children:(0,pe.jsxs)(oe.Fill,{name:"YoastElementor",children:[(0,pe.jsxs)(Vr,{renderPriority:1,children:[(0,pe.jsx)(Kr,{}),r&&(0,pe.jsx)("div",{className:"yst-inline-block yst-px-1.5",children:(0,pe.jsx)(r,{})})]}),s.isKeywordAnalysisActive&&(0,pe.jsxs)(Vr,{renderPriority:8,children:[(0,pe.jsx)(ls.KeywordInput,{isSEMrushIntegrationActive:s.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&(0,pe.jsx)(oe.Fill,{name:"YoastRelatedKeyphrases",children:(0,pe.jsx)(ln,{})})]}),s.isKeywordAnalysisActive&&(0,pe.jsx)(Vr,{renderPriority:10,children:(0,pe.jsxs)(ie.Fragment,{children:[(0,pe.jsx)(ls.SeoAnalysis,{shouldUpsell:s.shouldUpsell,shouldUpsellWordFormRecognition:s.isWordFormRecognitionActive,shouldUpsellHighlighting:s.shouldUpsell}),s.shouldUpsell&&(0,pe.jsx)(Ai,{})]})}),s.isContentAnalysisActive&&(0,pe.jsx)(Vr,{renderPriority:15,children:(0,pe.jsx)(ls.ReadabilityAnalysis,{shouldUpsell:s.shouldUpsell,shouldUpsellHighlighting:s.shouldUpsell})}),s.isInclusiveLanguageAnalysisActive&&(0,pe.jsx)(Vr,{renderPriority:19,children:(0,pe.jsx)(ls.InclusiveLanguageAnalysis,{shouldUpsellHighlighting:s.shouldUpsell})}),s.isKeywordAnalysisActive&&(0,pe.jsx)(Vr,{renderPriority:22,children:s.shouldUpsell&&(0,pe.jsx)(ol,{})},"additional-keywords-upsell"),s.isKeywordAnalysisActive&&s.isWincherIntegrationActive&&(0,pe.jsx)(Vr,{renderPriority:23,children:(0,pe.jsx)(sl,{location:"sidebar",shouldCloseOnClickOutside:!1})},"wincher-seo-performance"),s.shouldUpsell&&(0,pe.jsx)(Vr,{renderPriority:24,children:(0,pe.jsx)(as,{})},"internal-linking-suggestions-upsell"),(0,pe.jsx)(Vr,{renderPriority:25,children:(0,pe.jsx)(mo,{})}),(s.useOpenGraphData||s.useTwitterData)&&(0,pe.jsx)(Vr,{renderPriority:26,children:(0,pe.jsx)(Ii,{useOpenGraphData:s.useOpenGraphData,useTwitterData:s.useTwitterData})},"social-appearance"),s.displaySchemaSettings&&(0,pe.jsx)(Vr,{renderPriority:28,children:(0,pe.jsx)(Fi,{title:(0,Re.__)("Schema","wordpress-seo"),children:(0,pe.jsx)(Gi,{})})}),s.displayAdvancedTab&&(0,pe.jsx)(Vr,{renderPriority:29,children:(0,pe.jsx)(Fi,{title:(0,Re.__)("Advanced","wordpress-seo"),buttonId:"yoast-seo-elementor-advanced-button",children:(0,pe.jsx)(rn,{location:"sidebar"})})}),s.isCornerstoneActive&&(0,pe.jsx)(Vr,{renderPriority:30,children:(0,pe.jsx)(ds,{})}),s.isInsightsEnabled&&(0,pe.jsx)(Vr,{renderPriority:32,children:(0,pe.jsx)(Hr,{location:"elementor"})})]})})}il.propTypes={isLoading:ae().bool.isRequired,onLoad:ae().func.isRequired,settings:ae().object.isRequired};const nl=(0,zt.compose)([(0,a.withSelect)((e=>{const{getPreferences:t,getSnippetEditorIsLoading:s}=e("yoast-seo/editor");return{settings:t(),isLoading:s()}})),(0,a.withDispatch)((e=>{const{loadSnippetEditorData:t}=e("yoast-seo/editor");return{onLoad:t}}))])(il),al="yoast-elementor-react-tab",ll="yoast-seo-tab",cl="Yoast SEO",dl="panel/page-settings",pl=()=>{const{settings:e}=elementor.documents.getCurrent().config;e.tabs[ll]||(e.tabs=(0,c.reduce)(e.tabs,((e,t,s)=>(e[s]=t,"settings"===s&&(e[ll]=cl),e)),{})),$e.components.get(dl).hasTab(ll)||$e.components.get(dl).addTab(ll,{title:cl})};let ul=!1,hl=!1;const ml=(0,c.debounce)(Ce,500,{trailing:!0}),gl=()=>{const e=document.getElementById("yoast-form");if(!e)return void console.error("Yoast form not found!");window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=fe,(()=>{const e=document.createElement("div");e.id="yoast-elementor-react-root",document.body.appendChild(e),function(e,t){const s=m();ge=(0,ie.createRef)();const r={isRtl:s.isRtl};(0,ie.createRoot)(document.getElementById(e)).render((0,pe.jsx)(he,{theme:r,location:"sidebar",children:(0,pe.jsx)(oe.SlotFillProvider,{children:(0,pe.jsxs)(ie.Fragment,{children:[t,(0,pe.jsx)(ye,{ref:ge})]})})}))}(e.id,(0,pe.jsx)(de.Root,{context:{locationContext:"elementor-sidebar"},children:(0,pe.jsxs)(Le,{id:al,children:[(0,pe.jsx)(Ht,{}),(0,pe.jsx)(nl,{})]})}))})(),ke("editor/documents/load","yoast-seo/register-tab",pl,(({config:e})=>Se(e.id))),$e.routes.on("run:after",((e,t)=>{t===`${dl}/${ll}`&&(()=>{if(document.getElementById(al))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=al,s.className="yoast yoast-elementor-panel__fills",e.appendChild(s)})()})),pl(),elementor.getPanelView().getPages("menu").view.addItem({name:"yoast",icon:"yoast yoast-element-menu-icon",title:cl,type:"page",callback:()=>{try{$e.route(`${dl}/${ll}`)}catch(e){$e.route(`${dl}/settings`),$e.route(`${dl}/${ll}`)}}},"more"),((e,t=500)=>{const s=(0,c.debounce)(e,t,{trailing:!0});_e("document/elements/settings","yoast-seo/document/post-status",(({settings:e})=>s(e.post_status)),(({container:e,settings:t})=>{var s;return!!Se((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)}))})((()=>ml(ul)));const t=((e,t=500)=>{const s={},r=Array.from(e.querySelectorAll("input[name^='yoast']")),o=r.reduce(((e,{name:t,value:s})=>(e[t]=s,e)),{}),i={...o},n=new MutationObserver((0,c.debounce)((e=>{const t=[];e.forEach((e=>{"value"===e.attributeName&&e.target.name.startsWith("yoast")&&e.target.value!==o[e.target.name]&&(t.push({input:e.target,name:e.target.name,value:e.target.value,previousValue:o[e.target.name],snapshotValue:i[e.target.name]}),o[e.target.name]=e.target.value)})),t.length>0&&(0,c.forEach)(s,(e=>e(t)))}),t));return{start:()=>n.observe(e,{attributes:!0,subtree:!0}),stop:()=>n.disconnect(),subscribe:e=>{const t=(0,c.uniqueId)("yoast-form-listener");return s[t]=e,()=>delete s[t]},takeSnapshot:()=>{r.forEach((({name:e,value:t})=>{i[e]=t}))},restoreSnapshot:()=>{r.forEach((e=>{e.value=i[e.name],o[e.name]=i[e.name]}))}}})(e);t.subscribe((e=>{e.some((e=>{return t=e.name,s=e.value,r=e.previousValue,!(je.includes(t)||Te.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}))&&(ul=!0,ml(ul),$e.internal("document/save/set-is-modified",{status:!0}))})),t.start(),ve("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})=>Se(e))),_e("editor/documents/close","yoast-seo/document/close",(0,c.throttle)((({mode:e})=>{t.stop(),"discard"===e&&(YoastSEO.store._restoreSnapshot(),t.restoreSnapshot(),ul=!1,Ce(ul));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(hl)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})=>Se(e))),ke("document/save/save","yoast-seo/document/save",(async({document:s})=>{if(hl=!0,!Se(s.id))return;if(s.id!==elementor.config.document.revisions.current_id)return;ul=!1;const{success:r,formData:o,data:i,xhr:n}=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},o,i)=>t({success:e,formData:s,data:r,xhr:i}))).fail((e=>t({success:!1,formData:s,xhr:e})))})))(e);if(!r)return ul=!0,hl=!1,void(0,l.doAction)("yoast.elementor.save.failure");i.slug&&i.slug!==o.slug&&(0,a.dispatch)("yoast-seo/editor").updateData({slug:i.slug}),(0,a.dispatch)("yoast-seo/editor").setEditorDataSlug(i.slug),Ce(ul),(0,l.doAction)("yoast.elementor.save.success",n),YoastSEO.store._takeSnapshot(),t.takeSnapshot(),hl=!1}),(({document:e})=>Se((null==e?void 0:e.id)||elementor.documents.getCurrent().id))),setTimeout((()=>{YoastSEO.store._takeSnapshot(),t.takeSnapshot()}),2e3)},yl=window.yoast.reduxJsToolkit,fl="adminUrl",wl=(0,yl.createSlice)({name:fl,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),xl=(wl.getInitialState,{selectAdminUrl:e=>(0,c.get)(e,fl,"")});xl.selectAdminLink=(0,yl.createSelector)([xl.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}})),wl.actions,wl.reducer;const bl="hasConsent",_l=(0,yl.createSlice)({name:bl,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),vl=(_l.getInitialState,_l.actions,_l.reducer,"linkParams"),kl=(0,yl.createSlice)({name:vl,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),Sl=(kl.getInitialState,{selectLinkParam:(e,t,s={})=>(0,c.get)(e,`${vl}.${t}`,s),selectLinkParams:e=>(0,c.get)(e,vl,{})});Sl.selectLink=(0,yl.createSelector)([Sl.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,Yt.addQueryArgs)(t,{...e,...s}))),kl.actions,kl.reducer;const El=(0,yl.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:o})=>({payload:{id:e||(0,yl.nanoid)(),variant:t,size:s,title:r||"",description:o}})},removeNotification:(e,{payload:t})=>(0,c.omit)(e,t)}}),jl=(El.getInitialState,El.actions,El.reducer,"pluginUrl"),Tl=(0,yl.createSlice)({name:jl,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),Rl=(Tl.getInitialState,{selectPluginUrl:e=>(0,c.get)(e,jl,"")});Rl.selectImageLink=(0,yl.createSelector)([Rl.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,c.trimEnd)(e,"/"),(0,c.trim)(t,"/"),(0,c.trimStart)(s,"/")].join("/"))),Tl.actions,Tl.reducer;const Cl="wistiaEmbedPermission",Il=(0,yl.createSlice)({name:Cl,initialState:{value:!1,status:Dt,error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${Cl}/request`,(e=>{e.status=Nt})),e.addCase(`${Cl}/success`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${Cl}/error`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,c.get)(t,"error.code",500),message:(0,c.get)(t,"error.message","Unknown")}}))}}),Ll=(Il.getInitialState,{selectWistiaEmbedPermission:e=>(0,c.get)(e,Cl,{value:!1,status:Dt}),selectWistiaEmbedPermissionValue:e=>(0,c.get)(e,[Cl,"value"],!1),selectWistiaEmbedPermissionStatus:e=>(0,c.get)(e,[Cl,"status"],Dt),selectWistiaEmbedPermissionError:e=>(0,c.get)(e,[Cl,"error"],{})}),Pl=(Il.actions,{[Cl]:async({payload:e})=>wn()({path:"/yoast/v1/wistia_embed_permission",method:"POST",data:{value:Boolean(e)}})});var Al;Il.reducer;const Ol="documentTitle",Fl=(0,yl.createSlice)({name:Ol,initialState:(0,c.defaultTo)(null===(Al=document)||void 0===Al?void 0:Al.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}}),Ml=(Fl.getInitialState,{selectDocumentTitle:e=>(0,c.get)(e,Ol,""),selectDocumentFullTitle:(e,{prefix:t=""}={})=>{const s=(0,c.get)(e,Ol,"");return s.startsWith(t)?s:`${t} ‹ ${s}`}});function Dl({alertKey:e}){return new Promise((t=>wpseoApi.post("alerts/dismiss",{key:e},(()=>t()))))}function Nl({query:e,postId:t}){return new Promise((s=>{wpseoApi.get("meta/search",{query:e,post_id:t},(e=>{s(e.meta)}))}))}Fl.actions,Fl.reducer;const ql=async({countryCode:e,keyphrase:t})=>(wn()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}}),wn()({path:(0,Yt.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:t,country_code:e})})),Ul=Pl[Cl];class Wl{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 Wl.titleElement.value}static set title(e){Wl.titleElement.value=e}static get description(){return Wl.descriptionElement.value}static set description(e){Wl.descriptionElement.value=e}static get slug(){return Wl.slugElement.value}static set slug(e){Wl.slugElement.value=e}}const{UPDATE_DATA:$l,LOAD_SNIPPET_EDITOR_DATA:Bl}=u.actions;function Hl(e){if(e.hasOwnProperty("title")){let t=e.title;e.title===(0,c.get)(window,"wpseoScriptData.metabox.title_template","")&&(t=""),Wl.title=t}if(e.hasOwnProperty("description")){let t=e.description;e.description===(0,c.get)(window,"wpseoScriptData.metabox.metadesc_template","")&&(t=""),Wl.description=t}return e.hasOwnProperty("slug")&&(Wl.slug=e.slug),{type:$l,data:e}}const zl=()=>{const e=(0,c.get)(window,"wpseoScriptData.metabox.title_template",""),t=(0,c.get)(window,"wpseoScriptData.metabox.metadesc_template","");return{type:Bl,data:{title:Wl.title||e,description:Wl.description||t,slug:Wl.slug},templates:{title:e,description:t}}},Kl="yoast-measurement-element";function Yl(e){let t=document.getElementById(Kl);return t||(t=function(){const e=document.createElement("div");return e.id=Kl,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:Vl,getEditorDataTitle:Gl,getSnippetEditorDescription:Zl,getSnippetEditorSlug:Ql,getSnippetEditorTitle:Xl}=u.selectors,Jl=(0,yl.createSelector)([Vl,Ql,Gl,()=>(0,c.get)(window,"elementor.documents.currentDocument.id",0)],((e,t,s,r)=>t||e||(0,Yt.cleanForSlug)(s)||String(r))),ec=(0,yl.createSelector)([Xl,Zl,Jl],((e,t,s)=>({title:e,description:t,slug:s}))),{getBaseUrlFromSettings:tc,getContentLocale:sc,getEditorDataContent:rc,getFocusKeyphrase:oc,getSnippetEditorDescriptionWithTemplate:ic,getSnippetEditorTitleWithTemplate:nc,getDateFromSettings:ac}=u.selectors,lc=e=>{let t=nc(e),s=ic(e),r=Jl(e);const o=tc(e);return t=hs.strings.stripHTMLTags(T("data_page_title",t)),s=hs.strings.stripHTMLTags(T("data_meta_desc",s)),r=r.trim().replace(/\s+/g,"-"),{text:rc(e),title:t,keyword:oc(e),description:s,locale:sc(e),titleWidth:Yl(t),slug:r,permalink:o+r,date:ac(e)}};function cc(e){return(0,c.get)(e,"editorContext.postType")}const dc=(0,yl.createSelector)([cc],(e=>"product"===e)),pc=(0,yl.createSelector)([cc],(e=>["product_cat","product_tag"].includes(e))),uc=(0,yl.createSelector)([dc,pc],((e,t)=>e||t)),hc=e=>{let t=(0,c.get)(e,"editorData.excerpt","");if(""===t){const s="ja"===g()?80:156;t=so((0,c.get)(e,"editorData.content",""),s)}return t},mc=e=>(0,c.get)(e,"analysisData.snippet.title",""),gc=e=>(0,c.get)(e,"analysisData.snippet.description",""),yc=()=>(0,c.get)(window,"wpseoScriptData.metabox.title_template",""),fc=()=>(0,c.get)(window,"wpseoScriptData.metabox.title_template_no_fallback",""),wc=()=>(0,c.get)(window,"wpseoScriptData.metabox.social_title_template",""),xc=()=>(0,c.get)(window,"wpseoScriptData.metabox.metadesc_template",""),bc=()=>(0,c.get)(window,"wpseoScriptData.metabox.social_description_template",""),_c=e=>{let t="";return(0,c.get)(e,"snippetEditor.replacementVariables",[]).forEach((e=>{"excerpt"===e.name&&(t=e.value)})),t},vc=e=>(0,c.get)(e,"facebookEditor.title",""),kc=e=>(0,c.get)(e,"facebookEditor.description",""),Sc=(0,yl.createSelector)([wc,mc,fc,yc],((...e)=>e.find(Boolean)||"")),Ec=((0,yl.createSelector)([vc,Sc],((e,t)=>e||t)),(0,yl.createSelector)([bc,gc,xc,_c,hc],((...e)=>{var t;return null!==(t=e.find(Boolean))&&void 0!==t?t:""}))),jc=((0,yl.createSelector)([kc,Ec],((e,t)=>e||t)),(e,t,s=null)=>(0,c.get)(e,`preferences.${t}`,s)),Tc=e=>jc(e,"isWooCommerceActive",!1),Rc=e=>jc(e,"isWooCommerceSeoActive",!1);(0,yl.createSelector)([Rc,Tc,uc],((e,t,s)=>!e&&t&&s)),(0,yl.createSelector)([Rc,Tc,pc],((e,t,s)=>!e&&t&&s)),(0,yl.createSelector)([uc,Tc],((e,t)=>t&&e));const Cc=(0,yl.createSelector)([wc,vc,mc,fc,yc],((...e)=>e.find(Boolean)||"")),Ic=((0,yl.createSelector)([e=>(0,c.get)(e,"twitterEditor.title",""),Cc],((e,t)=>e||t)),(0,yl.createSelector)([bc,kc,gc,xc,_c,hc],((...e)=>{var t;return null!==(t=e.find(Boolean))&&void 0!==t?t:""})));(0,yl.createSelector)([e=>(0,c.get)(e,"twitterEditor.description",""),Ic],((e,t)=>e||t));const{selectAdminUrl:Lc,selectAdminLink:Pc}=xl,{selectLinkParams:Ac,selectLinkParam:Oc,selectLink:Fc}=Sl,{selectDocumentFullTitle:Mc}=Ml,{selectPluginUrl:Dc,selectImageLink:Nc}=Rl,{selectWistiaEmbedPermission:qc,selectWistiaEmbedPermissionValue:Uc,selectWistiaEmbedPermissionStatus:Wc,selectWistiaEmbedPermissionError:$c}=Ll,Bc=(0,yl.createSelector)([e=>(0,c.get)(e,"settings.snippetEditor.baseUrl",""),Jl],((e,t)=>e+t)),Hc={name:"author_first_name",label:"Author first name",placeholder:"%%author_first_name%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_first_name","")},regexp:new RegExp("%%author_first_name%%","g")},zc={name:"author_last_name",label:"Author last name",placeholder:"%%author_last_name%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_last_name","")},regexp:new RegExp("%%author_last_name%%","g")},Kc={name:"currentdate",label:"Current date",placeholder:"%%currentdate%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentdate","")},regexp:new RegExp("%%currentdate%%","g")},Yc={name:"currentday",label:"Current day",placeholder:"%%currentday%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentday","")},regexp:new RegExp("%%currentday%%","g")},Vc={name:"currentmonth",label:"Current month",placeholder:"%%currentmonth%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentmonth","")},regexp:new RegExp("%%currentmonth%%","g")},Gc={name:"category",label:"Category",placeholder:"%%category%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category","")},regexp:new RegExp("%%category%%","g")},Zc={name:"category_title",label:"Category Title",placeholder:"%%category_title%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category_title","")},regexp:new RegExp("%%category_title%%","g")},Qc={name:"currentyear",label:"Current year",placeholder:"%%currentyear%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentyear","")},regexp:new RegExp("%%currentyear%%","g")},Xc={name:"date",label:"Date",placeholder:"%%date%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.date","")},regexp:new RegExp("%%date%%","g")},Jc={name:"excerpt",label:"Excerpt",placeholder:"%%excerpt%%",aliases:[{name:"excerpt_only",label:"Excerpt only",placeholder:"%%excerpt_only%%"}],getReplacement:function(){return(0,a.select)("yoast-seo/editor").getEditorDataExcerptWithFallback()},regexp:new RegExp("%%excerpt%%|%%excerpt_only%%","g")},ed={name:"focuskw",label:"Focus keyphrase",placeholder:"%%focuskw%%",aliases:[],getReplacement:function(){return(0,a.select)("yoast-seo/editor").getFocusKeyphrase()},regexp:new RegExp("%%focuskw%%|%%keyword%%","g")},td={name:"id",label:"ID",placeholder:"%%id%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.id","")},regexp:new RegExp("%%id%%","g")},sd={name:"modified",label:"Modified",placeholder:"%%modified%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.modified","")},regexp:new RegExp("%%modified%%","g")},rd={name:"name",label:"Name",placeholder:"%%name%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.name","")},regexp:new RegExp("%%name%%","g")},od={name:"page",label:"Page",placeholder:"%%page%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.page","")},regexp:new RegExp("%%page%%","g")},id={name:"pagenumber",label:"Pagenumber",placeholder:"%%pagenumber%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagenumber","")},regexp:new RegExp("%%pagenumber%%","g")},nd={name:"pagetotal",label:"Pagetotal",placeholder:"%%pagetotal%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagetotal","")},regexp:new RegExp("%%pagetotal%%","g")},ad={name:"permalink",label:"Permalink",placeholder:"%%permalink%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.permalink","")},regexp:new RegExp("%%permalink%%","g")},ld={name:"post_content",label:"Post Content",placeholder:"%%post_content%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_content","")},regexp:new RegExp("%%post_content%%","g")},cd={name:"post_day",label:"Post Day",placeholder:"%%post_day%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_day","")},regexp:new RegExp("%%post_day%%","g")},dd={name:"post_month",label:"Post Month",placeholder:"%%post_month%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_month","")},regexp:new RegExp("%%post_month%%","g")},pd={name:"post_year",label:"Post Year",placeholder:"%%post_year%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_year","")},regexp:new RegExp("%%post_year%%","g")},ud={name:"pt_plural",label:"Post type (plural)",placeholder:"%%pt_plural%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_plural","")},regexp:new RegExp("%%pt_plural%%","g")},hd={name:"pt_single",label:"Post type (singular)",placeholder:"%%pt_single%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_single","")},regexp:new RegExp("%%pt_single%%","g")},md={name:"primary_category",label:"Primary category",placeholder:"%%primary_category%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.primary_category","")},regexp:new RegExp("%%primary_category%%","g")},gd={name:"searchphrase",label:"Search phrase",placeholder:"%%searchphrase%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.searchphrase","")},regexp:new RegExp("%%searchphrase%%","g")},yd={name:"sep",label:"Separator",placeholder:"%%sep%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sep","")},regexp:new RegExp("%%sep%%(\\s*%%sep%%)*","g")},fd={name:"sitedesc",label:"Tagline",placeholder:"%%sitedesc%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitedesc","")},regexp:new RegExp("%%sitedesc%%","g")},wd={name:"sitename",label:"Site title",placeholder:"%%sitename%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitename","")},regexp:new RegExp("%%sitename%%","g")},xd={name:"tag",label:"Tag",placeholder:"%%tag%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.tag","")},regexp:new RegExp("%%tag%%","g")},bd={name:"term404",label:"Term404",placeholder:"%%term404%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term404","")},regexp:new RegExp("%%term404%%","g")},_d={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,c.get)(window,"YoastSEO.app.rawData.text","")},regexp:new RegExp("%%term_description%%|%%tag_description%%|%%category_description%%","g")},vd={name:"term_hierarchy",label:"Term hierarchy",placeholder:"%%term_hierarchy%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_hierarchy","")},regexp:new RegExp("%%term_hierarchy%%","g")},kd={name:"term_title",label:"Term title",placeholder:"%%term_title%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_title","")},regexp:new RegExp("%%term_title%%","g")},Sd={name:"title",label:"Title",placeholder:"%%title%%",aliases:[],getReplacement:function(){return(0,a.select)("yoast-seo/editor").getEditorDataTitle()},regexp:new RegExp("%%title%%","g")},Ed={name:"user_description",label:"User description",placeholder:"%%user_description%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.user_description","")},regexp:new RegExp("%%user_description%%","g")};var jd={source:"wpseoScriptData.analysis.plugins.replaceVars",scope:[],aliases:[]},Td=function(e,t,s){this.placeholder=e,this.replacement=t,this.options=(0,c.defaults)(s,jd)};Td.prototype.getPlaceholder=function(e){return(e=e||!1)&&this.hasAlias()?this.placeholder+"|"+this.getAliases().join("|"):this.placeholder},Td.prototype.setSource=function(e){this.options.source=e},Td.prototype.hasScope=function(){return!(0,c.isEmpty)(this.options.scope)},Td.prototype.addScope=function(e){this.hasScope()||(this.options.scope=[]),this.options.scope.push(e)},Td.prototype.inScope=function(e){return!this.hasScope()||(0,c.indexOf)(this.options.scope,e)>-1},Td.prototype.hasAlias=function(){return!(0,c.isEmpty)(this.options.aliases)},Td.prototype.addAlias=function(e){this.hasAlias()||(this.options.aliases=[]),this.options.aliases.push(e)},Td.prototype.getAliases=function(){return this.options.aliases};const Rd=Td,Cd="replaceVariablePlugin";let Id=null,Ld=null;const Pd=e=>{["content","title","snippet_title","snippet_meta","primary_category","data_page_title","data_meta_desc","excerpt"].forEach((t=>{E(t,e,Cd,10)}))},Ad=(e="")=>{switch(""===e&&(e=(0,c.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[]},Od=e=>Pd((t=>t.replace(new RegExp(e.placeholder,"g"),e.replacement))),Fd=()=>{if(null===Ld){Ld=[];const e=(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.hidden_replace_vars",[]);(null===Id&&(Id=Ad().map((e=>null==n?void 0:n[e])).filter(Boolean)),Id).forEach((t=>{const s=e.includes(t.name);Ld.push({name:t.name,label:t.label,value:t.placeholder,hidden:s}),t.aliases.forEach((e=>{Ld.push({name:e.name,label:e.label,value:e.placeholder,hidden:s})}))}))}return Ld};const Md={content:"",title:"",excerpt:"",slug:"",imageUrl:"",featuredImage:"",contentImage:"",excerptOnly:""},Dd="yoastmark";function Nd(e=elementor.documents.getCurrent()){var t,s;let r=null===(t=e.$element)||void 0===t?void 0:t.find(".elementor-widget-container");var o;return null!==(s=r)&&void 0!==s&&s.length||(r=null===(o=e.$element)||void 0===o?void 0:o.find(".elementor-widget").children().not(".elementor-background-overlay, .elementor-element-overlay, .ui-resizable-handle")),r}function qd(e,t=!1){let s=elementor.settings.page.model.get("post_excerpt");return t?s||"":(s||(s=so(e,"ja"===g()?80:156)),s)}function Ud(){const e=elementor.documents.getCurrent();if(!Ee())return;if(!["wp-post","wp-page"].includes(e.config.type))return;if((0,a.select)("yoast-seo/editor").getActiveMarker())return;const t=function(e){const t=function(e){var t;const s=[];return null===(t=Nd(e))||void 0===t||t.each(((e,t)=>{const r=t.innerHTML.replace(/[\n\t]/g,"").trim();s.push(r)})),s.join("")}(e),s=(0,c.get)(elementor.settings.page.model.get("post_featured_image"),"url",""),r=function(e){const t=d.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""}(t);return{content:t,title:elementor.settings.page.model.get("post_title"),excerpt:qd(t),excerptOnly:qd(t,!0),imageUrl:s||r,featuredImage:s,contentImage:r,status:elementor.settings.page.model.get("post_status")}}(e);t.content!==Md.content&&(Md.content=t.content,(0,a.dispatch)("yoast-seo/editor").setEditorDataContent(Md.content)),t.title!==Md.title&&(Md.title=t.title,(0,a.dispatch)("yoast-seo/editor").setEditorDataTitle(Md.title)),t.excerpt!==Md.excerpt&&(Md.excerpt=t.excerpt,Md.excerptOnly=t.excerptOnly,(0,a.dispatch)("yoast-seo/editor").setEditorDataExcerpt(Md.excerpt),(0,a.dispatch)("yoast-seo/editor").updateReplacementVariable("excerpt",Md.excerpt),(0,a.dispatch)("yoast-seo/editor").updateReplacementVariable("excerpt_only",Md.excerptOnly)),t.imageUrl!==Md.imageUrl&&(Md.imageUrl=t.imageUrl,(0,a.dispatch)("yoast-seo/editor").setEditorDataImageUrl(Md.imageUrl)),t.contentImage!==Md.contentImage&&(Md.contentImage=t.contentImage,(0,a.dispatch)("yoast-seo/editor").setContentImage(Md.contentImage)),t.featuredImage!==Md.featuredImage&&(Md.featuredImage=t.featuredImage,(0,a.dispatch)("yoast-seo/editor").updateData({snippetPreviewImageURL:Md.featuredImage}))}function Wd(){Nd().each(((e,t)=>{-1!==t.innerHTML.indexOf("<"+Dd)&&(t.innerHTML=d.markers.removeMarks(t.innerHTML))})),(0,a.dispatch)("yoast-seo/editor").setActiveMarker(null),(0,a.dispatch)("yoast-seo/editor").setMarkerPauseStatus(!1),YoastSEO.analysis.applyMarks(new d.Paper("",{}),[])}const $d=(0,c.debounce)(Ud,500);function Bd(e,t){const{updateWordsToHighlight:s}=(0,a.dispatch)("yoast-seo/editor");e("morphology",new d.Paper("",{keyword:t})).then((({result:{keyphraseForms:e}})=>{s((0,c.uniq)((0,c.flatten)(e)))})).catch((()=>{s([])}))}const Hd=(0,c.debounce)(Bd,500);var zd=jQuery;function Kd(e,t,s,r,o){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=zd("#post_ID, [name=tag_ID]").val(),this._taxonomy=zd("[name=taxonomy]").val()||"",this._nonce=o,this._ajaxAction=e,this._refreshAnalysis=s,this._initialized=!1}function Yd(){window.YoastSEO=window.YoastSEO||{},window.YoastSEO.store=function(){const{snapshotReducer:s,takeSnapshot:n,restoreSnapshot:l}=((e,t)=>{let s,r=!1,o=!1;return{snapshotReducer:(o=t,i)=>r?(r=!1,s):e(o,i),takeSnapshot:(e,t)=>{t({type:"CREATE_SNAPSHOT"}),s=(0,c.cloneDeep)(e()),o=!0},restoreSnapshot:e=>{o&&(r=!0,e({type:"RESTORE_SNAPSHOT"}))}}})((0,a.combineReducers)(u.reducers)),{freezeReducer:d,toggleFreeze:p}=((e,t)=>{let s=!1,r=null;return{freezeReducer:(o=t,i)=>s?r:e(o,i),toggleFreeze:(e,t=!s)=>{r=t?(0,c.cloneDeep)(e()):null,s=Boolean(t)}}})(s),h=(0,a.registerStore)("yoast-seo/editor",{reducer:d,selectors:{...u.selectors,...o,...r,...i},actions:(0,c.pickBy)({...u.actions,...t},(e=>"function"==typeof e)),controls:e,initialState:{snippetEditor:{mode:"mobile",data:{title:"",description:"",slug:""},wordsToHighlight:[],replacementVariables:[{name:"date",label:(0,Re.__)("Date","wordpress-seo"),value:""},{name:"id",label:(0,Re.__)("ID","wordpress-seo"),value:""},{name:"page",label:(0,Re.__)("Page","wordpress-seo"),value:""},{name:"searchphrase",label:(0,Re.__)("Search phrase","wordpress-seo"),value:""},{name:"sitedesc",label:(0,Re.__)("Tagline","wordpress-seo"),value:""},{name:"sitename",label:(0,Re.__)("Site title","wordpress-seo"),value:""},{name:"category",label:(0,Re.__)("Category","wordpress-seo"),value:""},{name:"focuskw",label:(0,Re.__)("Focus keyphrase","wordpress-seo"),value:""},{name:"title",label:(0,Re.__)("Title","wordpress-seo"),value:""},{name:"parent_title",label:(0,Re.__)("Parent title","wordpress-seo"),value:""},{name:"excerpt",label:(0,Re.__)("Excerpt","wordpress-seo"),value:""},{name:"primary_category",label:(0,Re.__)("Primary category","wordpress-seo"),value:""},{name:"sep",label:(0,Re.__)("Separator","wordpress-seo"),value:""},{name:"excerpt_only",label:(0,Re.__)("Excerpt only","wordpress-seo"),value:""},{name:"category_description",label:(0,Re.__)("Category description","wordpress-seo"),value:""},{name:"tag_description",label:(0,Re.__)("Tag description","wordpress-seo"),value:""},{name:"term_description",label:(0,Re.__)("Term description","wordpress-seo"),value:""},{name:"currentyear",label:(0,Re.__)("Current year","wordpress-seo"),value:""}],uniqueRefreshValue:"",templates:{title:"",description:""},isLoading:!0,replacementVariables:Fd()}}});return(e=>{e.dispatch(u.actions.loadCornerstoneContent()),e.dispatch(u.actions.loadFocusKeyword()),e.dispatch(u.actions.setMarkerStatus(window.wpseoScriptData.metabox.elementorMarkerStatus)),e.dispatch(u.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(u.actions.loadFacebookPreviewData()),s&&e.dispatch(u.actions.loadTwitterPreviewData()),e.dispatch(u.actions.setSEMrushChangeCountry(window.wpseoScriptData.metabox.countryCode)),e.dispatch(u.actions.setSEMrushLoginStatus(window.wpseoScriptData.metabox.SEMrushLoginStatus)),e.dispatch(u.actions.setWincherLoginStatus(window.wpseoScriptData.metabox.wincherLoginStatus,!1)),e.dispatch(u.actions.setWincherWebsiteId(window.wpseoScriptData.metabox.wincherWebsiteId)),e.dispatch(u.actions.setWincherAutomaticKeyphaseTracking(window.wpseoScriptData.metabox.wincherAutoAddKeyphrases)),e.dispatch(u.actions.setDismissedAlerts((0,c.get)(window,"wpseoScriptData.dismissedAlerts",{}))),e.dispatch(u.actions.setCurrentPromotions((0,c.get)(window,"wpseoScriptData.currentPromotions",{}))),e.dispatch(u.actions.setIsPremium(Boolean((0,c.get)(window,"wpseoScriptData.metabox.isPremium",!1)))),e.dispatch(u.actions.setAdminUrl((0,c.get)(window,"wpseoScriptData.adminUrl",""))),e.dispatch(u.actions.setLinkParams((0,c.get)(window,"wpseoScriptData.linkParams",{}))),e.dispatch(u.actions.setPluginUrl((0,c.get)(window,"wpseoScriptData.pluginUrl",""))),e.dispatch(u.actions.setWistiaEmbedPermissionValue("1"===(0,c.get)(window,"wpseoScriptData.wistiaEmbedPermission",!1)));const r=document.getElementById("yoast_wpseo_slug");r&&e.dispatch(u.actions.setEditorDataSlug(r.value))})(h),h._freeze=p.bind(null,h.getState),h._takeSnapshot=n.bind(null,h.getState,h.dispatch),h._restoreSnapshot=l.bind(null,h.dispatch),h}(),function(){ve("panel/editor/open","yoast-seo/marks/reset-on-edit",(0,c.debounce)(Wd,500),Ee),ve("document/save/save","yoast-seo/marks/reset-on-save",Wd,(({document:e})=>Se((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())})($d);let t=c.noop;_e("editor/documents/close","yoast-seo/content-scraper/stop",(()=>{t(),t=c.noop,$d.cancel()}),(({id:e})=>Se(e))),_e("editor/documents/attach-preview","yoast-seo/content-scraper/start",(()=>{t=e()}),Ee),_e("document/save/set-is-modified","yoast-seo/content-scraper/on-modified",$d,(({document:e})=>Se((null==e?void 0:e.id)||elementor.documents.getCurrent().id))),Ud()}(),window.YoastSEO.pluginReady=k,window.YoastSEO.pluginReloaded=S,window.YoastSEO.registerModification=E,window.YoastSEO.registerPlugin=j,window.YoastSEO.applyModifications=T,window.YoastSEO.analysis=window.YoastSEO.analysis||{},window.YoastSEO.analysis.run=(0,a.dispatch)("yoast-seo/editor").runAnalysis,window.YoastSEO.analysis.worker=function(){const{getAnalysisTimestamp:e,isCornerstoneContent:t}=(0,a.select)("yoast-seo/editor"),s=function(){const e=(0,c.get)(window,["wpseoScriptData","analysis","worker","url"],"analysis-worker.js"),t=(0,d.createWorker)(e),s=(0,c.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 o=t.innerHTML.slice(214),i=o.indexOf(","),n=o.slice(0,i-1);try{const e=JSON.parse(o.slice(i+1,-4));r.push([n,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 d.AnalysisWorkerWrapper(t)}();s.initialize(function(e={}){const t={locale:g(),contentAnalysisActive:y(),keywordAnalysisActive:f(),inclusiveLanguageAnalysisActive:w(),defaultQueryParams:(0,c.get)(window,["wpseoAdminL10n","default_query_params"],{}),logLevel:(0,c.get)(window,["wpseoScriptData","analysis","worker","log_level"],"ERROR"),enabledFeatures:(0,x.enabledFeatures)()};return(0,c.merge)(t,e)}({useCornerstone:t(),marker:ee()})).catch(p),window.YoastSEO.analysis.applyMarks=(e,t)=>ee()(e,t);let r=se(),o=t(),i=e();return(0,a.subscribe)((()=>{const n=t(),a=se(),l=e();if(n!==o)return o=n,r=a,void s.initialize({useCornerstone:n}).then((()=>te(s,a))).catch(p);l===i&&!1!==(0,c.isEqual)(a,r)||(r=a,i=l,te(s,a))})),s}(),window.YoastSEO.analysis.collectData=se,j(Cd,{status:"ready"}),Ad().forEach((e=>{const t=null==n?void 0:n[e];if(t){const e=(({getReplacement:e,regexp:t})=>s=>s.replace(t,e()))(t);Pd(e)}})),window.YoastSEO.wp=window.YoastSEO.wp||{},window.YoastSEO.wp.replaceVarsPlugin={addReplacement:Od,ReplaceVar:Rd},function(){const e=m(),t=(0,c.get)(window,["wpseoScriptData","analysis","worker","keywords_assessment_url"],"used-keywords-assessment.js"),s=(0,c.get)(window,["wpseoScriptData","usedKeywordsNonce"],""),r=new Kd("get_focus_keyword_usage_and_post_types",e,(0,a.dispatch)("yoast-seo/editor").runAnalysis,t,s);r.init();let o="";(0,a.subscribe)((()=>{const e=(0,a.select)("yoast-seo/editor").getFocusKeyphrase();e!==o&&(o=e,r.setKeyword(e))}))}(),(()=>{if((0,a.select)("yoast-seo/editor").getPreference("isInsightsEnabled",!1))(0,a.dispatch)("yoast-seo/editor").loadEstimatedReadingTime(),(0,a.subscribe)((0,c.debounce)(re(),1500,{maxWait:3e3}))})(),function(e){const{getFocusKeyphrase:t}=(0,a.select)("yoast-seo/editor");let s=t();Bd(e,s),(0,a.subscribe)((()=>{const r=t();s!==r&&(s=r,Hd(e,r))}))}(window.YoastSEO.analysis.worker.runResearch),"1"===window.wpseoScriptData.isAlwaysIntroductionV2||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,Re.__)("Yoast SEO for Elementor","wordpress-seo"),message:(0,Re.__)("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,c.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,Re.__)("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,Re.__)("New: Yoast SEO for Elementor","wordpress-seo"),message:(0,Re.__)("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,Re.__)("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)}(),gl(),(0,l.doAction)("yoast.elementor.loaded")}Kd.prototype.init=function(){const{worker:e}=window.YoastSEO.analysis;this.requestKeywordUsage=(0,c.debounce)(this.requestKeywordUsage.bind(this),500),e.loadScript(this._scriptUrl).then((()=>{e.sendMessage("initialize",this._options,"used-keywords-assessment")})).then((()=>{this._initialized=!0,(0,c.isEqual)(this._options.usedKeywords,this._keywordUsage)?this._refreshAnalysis():e.sendMessage("updateKeywordUsage",this._keywordUsage,"used-keywords-assessment").then((()=>this._refreshAnalysis()))})).catch((e=>console.error(e)))},Kd.prototype.setKeyword=function(e){(0,c.has)(this._keywordUsage,e)||this.requestKeywordUsage(e)},Kd.prototype.requestKeywordUsage=function(e){zd.post(ajaxurl,{action:this._ajaxAction,post_id:this._postID,keyword:e,taxonomy:this._taxonomy,nonce:this._nonce},this.updateKeywordUsage.bind(this,e),"json")},Kd.prototype.updateKeywordUsage=function(e,t){const{worker:s}=window.YoastSEO.analysis,r=t.keyword_usage,o=t.post_types;r&&(0,c.isArray)(r)&&(this._keywordUsage[e]=r,this._usedKeywordsPostTypes[e]=o,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(Yd)}))}))})()})();