Current File : /dom405686/wp-content/plugins/wordpress-seo/js/dist/elementor.js
(()=>{var e={465(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),o.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"}))});e.exports=i},818(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),o.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"}))});e.exports=i},998(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),o.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"}))});e.exports=i},1609(e){"use strict";e.exports=window.React},2485(e,t){var s;!function(){"use strict";var o={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var r=typeof s;if("string"===r||"number"===r)e.push(s);else if(Array.isArray(s)){if(s.length){var n=i.apply(null,s);n&&e.push(n)}}else if("object"===r){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var a in s)o.call(s,a)&&s[a]&&e.push(a)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(s=function(){return i}.apply(t,[]))||(e.exports=s)}()},2514(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.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),o.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"}))});e.exports=i},3041(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),o.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"}))});e.exports=i},3473(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.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),o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))});e.exports=i},5074(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.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),o.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"}))});e.exports=i},5169(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),o.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"}))});e.exports=i},5547(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),o.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"}))});e.exports=i},5687(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),o.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"}))});e.exports=i},6702(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.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),o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))});e.exports=i},7656(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),o.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"}))});e.exports=i},8290(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),o.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"}))});e.exports=i},8738(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),o.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))});e.exports=i}},t={};function s(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,s),r.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},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:()=>ul,NEW_REQUEST:()=>gl,SNIPPET_EDITOR_FIND_CUSTOM_FIELDS:()=>hl,wistiaEmbedPermission:()=>ml});var t={};s.r(t),s.d(t,{loadSnippetEditorData:()=>xl,updateData:()=>bl});var o={};s.r(o),s.d(o,{getSnippetEditorData:()=>Cl,getSnippetEditorSlug:()=>jl});var i={};s.r(i),s.d(i,{getAnalysisData:()=>Ml});var r={};s.r(r),s.d(r,{getWincherPermalink:()=>fc});var n={};s.r(n),s.d(n,{authorFirstName:()=>bc,authorLastName:()=>xc,category:()=>Sc,categoryTitle:()=>Tc,currentDate:()=>_c,currentDay:()=>vc,currentMonth:()=>kc,currentYear:()=>Rc,date:()=>Ec,excerpt:()=>jc,focusKeyphrase:()=>Cc,id:()=>Ic,modified:()=>Lc,name:()=>Ac,page:()=>Pc,pageNumber:()=>Dc,pageTotal:()=>Oc,permalink:()=>Fc,postContent:()=>Mc,postDay:()=>qc,postMonth:()=>Nc,postTypeNamePlural:()=>$c,postTypeNameSingular:()=>Bc,postYear:()=>Uc,primaryCategory:()=>Wc,searchPhrase:()=>Kc,separator:()=>Hc,siteDescription:()=>Vc,siteName:()=>Yc,tag:()=>zc,term404:()=>Gc,termDescription:()=>Zc,termHierarchy:()=>Qc,termTitle:()=>Xc,title:()=>Jc,userDescription:()=>ed});const a=window.wp.data,l=window.wp.hooks,c=window.lodash,d=window.yoast.analysis,p="_yoast_wpseo_title",u="_yoast_wpseo_metadesc",h="_yoast_wpseo_focuskw",g="_yoast_wpseo_is_cornerstone",m="_yoast_wpseo_linkdex",y="_yoast_wpseo_content_score",w="_yoast_wpseo_inclusive_language_score",f="_yoast_wpseo_meta_description_score",b="_yoast_wpseo_seo_title_score",x="_yoast_wpseo_schema_article_type",_="_yoast_wpseo_schema_page_type",v="idle",k="loading",S=()=>Boolean((0,c.get)(window,"wpseoScriptData.disableMetaboxInBlockEditor",!1)),T=(e,t)=>{const s=(0,a.select)("core/editor").getEditedPostAttribute("meta");return!s||s[e]===String(t)},R=e=>{const t=(0,a.select)("core/editor").getEditedPostAttribute("meta");if(!t)return;const s=Object.fromEntries(Object.entries(e).filter(([e,s])=>t[e]!==String(s)));if(0===Object.keys(s).length)return;const o=(0,a.select)("core/editor").getCurrentPostType(),i=(0,a.select)("core/editor").getCurrentPostId();(0,a.dispatch)("core").editEntityRecord("postType",o,i,{meta:s},{undoIgnore:!0})},E=(e,t,s="")=>{var o;return S()?((e,t="")=>{var s,o;return null!==(s=null===(o=(0,a.select)("core/editor").getEditedPostAttribute("meta"))||void 0===o?void 0:o[e])&&void 0!==s?s:t})(e,s):null!==(o=null==t?void 0:t.value)&&void 0!==o?o:s},j=new Map;(0,l.addFilter)("editor.preSavePost","yoast/deferred-meta",(e,t)=>{var s;if(0===j.size||null!=t&&t.isAutosave)return e;const o=Object.fromEntries(j);return j.clear(),{...e,meta:{...null!==(s=e.meta)&&void 0!==s?s:{},...o}}});const C=(e,t,s,o=!1)=>{S()?o?R({[e]:s}):((e,t)=>{const s=String(t);j.delete(e),T(e,s)||(0,a.dispatch)("core/editor").editPost({meta:{[e]:s}})})(e,s):t&&(t.value=s)};function I(){return Boolean((0,a.select)("core/editor").getCurrentPostType())}const L=new Map;let A=null;function P(){if(0===L.size)return;const e={},t={};for(const[s,{value:o,undoIgnore:i}]of L)i?e[s]=o:t[s]=o;L.clear(),Object.keys(e).length>0&&R(e),Object.keys(t).length>0&&(0,a.dispatch)("core/editor").editPost({meta:t})}function D(e,t,s=!1){L.set(e,{value:String(t),undoIgnore:s}),I()?(A&&(A(),A=null),P()):A||(A=(0,a.subscribe)(()=>{I()&&(A(),A=null,P())},"core/editor"))}const O=new Map,F=new Set([m,y,w,b,f,"_yoast_wpseo_estimated-reading-time-minutes"]),M=(e,t,s)=>{if(S()){const t=(e=>{const t=parseInt(e,10);return Number.isInteger(t)&&t>=0?String(t):"0"})(s);return((e,t)=>{var s,o;const i=null!==(s=null===(o=(0,a.select)("core/editor").getEditedPostAttribute("meta"))||void 0===o?void 0:o[e])&&void 0!==s?s:"";return t===i||"0"===t&&""===i})(e,t)?void O.delete(e):void O.set(e,t)}t&&(t.value=s)};class q{static get keyphraseElement(){var e;return document.getElementById(null!==(e=window.wpseoScriptData)&&void 0!==e&&e.isPost?"yoast_wpseo_focuskw":"hidden_wpseo_focuskw")}static get isCornerstoneElement(){var e;return document.getElementById(null!==(e=window.wpseoScriptData)&&void 0!==e&&e.isPost?"yoast_wpseo_is_cornerstone":"hidden_wpseo_is_cornerstone")}static get seoScoreElement(){var e;return document.getElementById(null!==(e=window.wpseoScriptData)&&void 0!==e&&e.isPost?"yoast_wpseo_linkdex":"hidden_wpseo_linkdex")}static get readabilityScoreElement(){var e;return document.getElementById(null!==(e=window.wpseoScriptData)&&void 0!==e&&e.isPost?"yoast_wpseo_content_score":"hidden_wpseo_content_score")}static get inclusiveLanguageScoreElement(){var e;return document.getElementById(null!==(e=window.wpseoScriptData)&&void 0!==e&&e.isPost?"yoast_wpseo_inclusive_language_score":"hidden_wpseo_inclusive_language_score")}static get seoTitleScoreElement(){var e;return document.getElementById(null!==(e=window.wpseoScriptData)&&void 0!==e&&e.isPost?"yoast_wpseo_seo_title_score":"hidden_wpseo_seo_title_score")}static get metaDescriptionScoreElement(){var e;return document.getElementById(null!==(e=window.wpseoScriptData)&&void 0!==e&&e.isPost?"yoast_wpseo_meta_description_score":"hidden_wpseo_meta_description_score")}static set keyphrase(e){S()?T(h,e)||D(h,e):q.keyphraseElement&&(q.keyphraseElement.value=e)}static get keyphrase(){return E(h,q.keyphraseElement,"")}static set isCornerstone(e){if(S()){const t=e?"1":"0";return void(T(g,t)||D(g,t))}q.isCornerstoneElement&&(q.isCornerstoneElement.value=e?"1":"0")}static get isCornerstone(){return"1"===E(g,q.isCornerstoneElement,"0")}static set seoScore(e){M(m,q.seoScoreElement,e)}static get seoScore(){return E(m,q.seoScoreElement,"")}static set readabilityScore(e){M(y,q.readabilityScoreElement,e)}static get readabilityScore(){return E(y,q.readabilityScoreElement,"")}static set inclusiveLanguageScore(e){M(w,q.inclusiveLanguageScoreElement,e)}static get inclusiveLanguageScore(){return E(w,q.inclusiveLanguageScoreElement,"")}static set seoTitleScore(e){M(b,q.seoTitleScoreElement,e)}static get seoTitleScore(){return E(b,q.seoTitleScoreElement,"")}static set metaDescriptionScore(e){M(f,q.metaDescriptionScoreElement,e)}static get metaDescriptionScore(){return E(f,q.metaDescriptionScoreElement,"")}}function N(e){return F.has(e)||e.startsWith("_yoast_wpseo_primary_")}(0,l.addFilter)("editor.preSavePost","yoast/analysis-scores",(e,t)=>{var s;if(0===O.size||null!=t&&t.isAutosave)return e;const o=Object.fromEntries(O);return O.clear(),{...e,meta:{...null!==(s=e.meta)&&void 0!==s?s:{},...o}}});let U=!1,$=!1;(0,a.subscribe)(()=>{var e;if(!S())return;const t=(0,a.select)("core/editor"),s=t.isSavingPost(),o=Boolean(null===(e=t.isAutosavingPost)||void 0===e?void 0:e.call(t));!U||s||$||function(){var e,t,s;const o=(0,a.select)("core/editor"),i=function(e,t){const s={};for(const[o,i]of Object.entries(e))N(o)&&t[o]!==String(i)&&(s[o]=String(i));return s}(null!==(e=null===(t=o.getCurrentPost())||void 0===t?void 0:t.meta)&&void 0!==e?e:{},null!==(s=o.getEditedPostAttribute("meta"))&&void 0!==s?s:{});Object.keys(i).length>0&&R(i)}(),U=s,$=o},"core/editor");const B=["titleWidth","keyphraseInSEOTitle"],W=["metaDescriptionKeyword","metaDescriptionLength"],K=(e,t)=>{const s=(e||[]).filter(e=>{var s,o;return t.includes(null==e?void 0:e._identifier)&&(null===(s=e.hasScore)||void 0===s?void 0:s.call(e))&&(null===(o=e.hasText)||void 0===o?void 0:o.call(e))}),o=s.reduce((e,t)=>e+t.getScore(),0);return Math.round(o/(9*s.length)*100)||0};function H(){}const V=window.yoast.externals.redux;function Y(e){return e.sort((e,t)=>e._identifier.localeCompare(t._identifier))}function z(){return(0,c.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}function G(){const e=z();return(0,c.get)(e,"contentLocale","en_US")}function Z(){const e=z();return!0===(0,c.get)(e,"contentAnalysisActive",!1)}function Q(){const e=z();return!0===(0,c.get)(e,"keywordAnalysisActive",!1)}function X(){const e=z();return!0===(0,c.get)(e,"inclusiveLanguageAnalysisActive",!1)}const J=window.yoast.featureFlag;class ee{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,o){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 i={callable:t,origin:s,priority:(0,c.isNumber)(o)?o:10};return(0,c.isUndefined)(this.modifications[e])&&(this.modifications[e]=[]),this.modifications[e].push(i),!0}_registerAssessment(e,t,s,o){return(0,c.isString)(t)?(0,c.isObject)(s)?(0,c.isString)(o)?(t=o+"-"+t,e.addAssessment(t,s),!0):(console.error("Failed to register assessment for plugin "+o+". Expected parameter `pluginName` to be a string."),!1):(console.error("Failed to register assessment for plugin "+o+". Expected parameter `assessment` to be a function."),!1):(console.error("Failed to register test for plugin "+o+". Expected parameter `name` to be a string."),!1)}_applyModifications(e,t,s){let o=this.modifications[e];return!(0,c.isArray)(o)||o.length<1||(o=this._stripIllegalModifications(o),o.sort((e,t)=>e.priority-t.priority),(0,c.forEach)(o,function(o){const i=o.callable(t,s);typeof i==typeof t?t=i:console.error("Modification with name "+e+" performed by plugin with name "+o.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 te=null;const se=()=>{if(null===te){const e=(0,a.dispatch)("yoast-seo/editor").runAnalysis;te=window.YoastSEO.app&&window.YoastSEO.app.pluggable?window.YoastSEO.app.pluggable:new ee(e)}return te},oe=e=>se()._ready(e),ie=e=>se()._reloaded(e),re=(e,t,s,o)=>se()._registerModification(e,t,s,o),ne=(e,t)=>se()._registerPlugin(e,t),ae=(e,t,s)=>se().loaded?se()._applyModifications(e,t,s):t;function le(e,t){return e._properties.position.startOffset>t.length||e._properties.position.endOffset>t.length}function ce(e,t,s){const o=e.dom;let i=e.getContent();if(i=d.markers.removeMarks(i),(0,c.isEmpty)(s))return void e.setContent(i);i=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 o=e[s];le(o,t)||(t=o.applyWithPosition(t))}return t}(s,i):function(e,t,s,o){const{fieldsToMark:i,selectedHTML:r}=d.languageProcessing.getFieldsToMark(s,o);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)),i.length>0?r.forEach(e=>{const s=t.applyWithReplace(e);o=o.replace(e,s)}):o=t.applyWithReplace(o)}),o}(e,0,s,i),e.setContent(i),function(e){let t=e.getContent();t=t.replace(new RegExp("<yoastmark.+?>","g"),"").replace(new RegExp("</yoastmark>","g"),""),e.setContent(t)}(e);const r=o.select("yoastmark");(0,c.forEach)(r,function(e){e.setAttribute("data-mce-bogus","1")})}function de(e){return window.test=e,ce.bind(null,e)}c.noop,c.noop,c.noop;const pe="content";function ue(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 he=window.wp.richText,ge=/(<([a-z]|\/)[^<>]+>)/gi,{htmlEntitiesRegex:me}=d.helpers.htmlEntities,ye=e=>{let t=0;return(0,c.forEachRight)(e,e=>{const[s]=e;let o=s.length;/^<\/?br/.test(s)&&(o-=1),t+=o}),t},we="<yoastmark class='yoast-text-mark'>",fe="</yoastmark>",be='<yoastmark class="yoast-text-mark">';function xe(e,t,s,o,i){const r=o.clientId,n=(0,he.create)({html:e,multilineTag:s.multilineTag,multilineWrapperTag:s.multilineWrapperTag}).text;return(0,c.flatMap)(i,s=>{let i;return i=s.hasBlockPosition&&s.hasBlockPosition()?function(e,t,s,o,i){if(t===e.getBlockClientId()){let t=e.getBlockPositionStart(),r=e.getBlockPositionEnd();if(e.isMarkForFirstBlockSection()){const e=((e,t,s)=>{const o="yoast/faq-block"===s?'<strong class="schema-faq-question">':'<strong class="schema-how-to-step-name">';return{blockStartOffset:e-=o.length,blockEndOffset:t-=o.length}})(t,r,s);t=e.blockStartOffset,r=e.blockEndOffset}if(o.slice(t,r)===i.slice(t,r))return[{startOffset:t,endOffset:r}];const n=((e,t,s)=>{const o=s.slice(0,e),i=s.slice(0,t),r=((e,t,s,o)=>{const i=[...e.matchAll(ge)];s-=ye(i);const r=[...t.matchAll(ge)];return{blockStartOffset:s,blockEndOffset:o-=ye(r)}})(o,i,e,t),n=((e,t,s,o)=>{let i=[...e.matchAll(me)];return(0,c.forEachRight)(i,e=>{const[,t]=e;s-=t.length}),i=[...t.matchAll(me)],(0,c.forEachRight)(i,e=>{const[,t]=e;o-=t.length}),{blockStartOffset:s,blockEndOffset:o}})(o,i,e=r.blockStartOffset,t=r.blockEndOffset);return{blockStartOffset:e=n.blockStartOffset,blockEndOffset:t=n.blockEndOffset}})(t,r,o);return[{startOffset:n.blockStartOffset,endOffset:n.blockEndOffset}]}return[]}(s,r,o.name,e,n):function(e,t){const s=t.getOriginal().replace(/(<([^>]+)>)/gi,""),o=t.getMarked().replace(/(<(?!\/?yoastmark)[^>]+>)/gi,""),i=function(e,t,s=!0){const o=[];if(0===e.length)return o;let i,r=0;for(s||(t=t.toLowerCase(),e=e.toLowerCase());(i=e.indexOf(t,r))>-1;)o.push(i),r=i+t.length;return o}(e,s);if(0===i.length)return[];const r=function(e){let t=e.indexOf(we);const s=t>=0;s||(t=e.indexOf(be));let o=null;const i=[];for(;t>=0;){if(o=(e=s?e.replace(we,""):e.replace(be,"")).indexOf(fe),o<t)return[];e=e.replace(fe,""),i.push({startOffset:t,endOffset:o}),t=s?e.indexOf(we):e.indexOf(be),o=null}return i}(o),n=[];return r.forEach(e=>{i.forEach(o=>{const i=o+e.startOffset;let r=o+e.endOffset;0===e.startOffset&&e.endOffset===t.getOriginal().length&&(r=o+s.length),n.push({startOffset:i,endOffset:r})})}),n}(n,s),i?i.map(e=>({...e,block:r,richTextIdentifier:t})):[]})}const _e=e=>e[0].toUpperCase()+e.slice(1),ve=(e,t,s,o,i)=>(e=e.map(e=>{const r=`${e.id}-${i[0]}`,n=`${e.id}-${i[1]}`,a=_e(i[0]),l=_e(i[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=xe(c,r,s,o,p),g=xe(d,n,s,o,u);return h.concat(g)}),(0,c.flattenDeep)(e)),ke="yoast";let Se=[];const Te={"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 Re(){const e=Se.shift();e&&((0,a.dispatch)("core/annotations").__experimentalAddAnnotation(e),Ee())}function Ee(){(0,c.isFunction)(window.requestIdleCallback)?window.requestIdleCallback(Re,{timeout:1e3}):setTimeout(Re,150)}function je(e,t){return(0,c.flatMap)(e,e=>{const s=function(e){return e.innerBlocks.length>0}(e)?je(e.innerBlocks,t):[];return((e,t)=>{return(0,c.flatMap)((s=e.name,Te.hasOwnProperty(s)?Te[s]:[]),s=>"yoast/faq-block"===e.name?((e,t,s)=>{const o=t.attributes[e.key];return 0===o.length?[]:ve(o,s,e,t,["question","answer"])})(s,e,t):"yoast/how-to-block"===e.name?((e,t,s)=>{const o=t.attributes[e.key];if(o&&0===o.length)return[];const i=[];return"steps"===e.key&&i.push(ve(o,s,e,t,["name","text"])),"jsonDescription"===e.key&&(s=s.filter(e=>e.hasBlockPosition&&e.hasBlockPosition()?!e.getBlockAttributeId():e),i.push(xe(o,"description",e,t,s))),(0,c.flattenDeep)(i)})(s,e,t):function(e,t,s){const o=e.key,i=((e,t)=>{const s=e.attributes[t];return"string"==typeof s?s:(s||"").toString()})(t,o);return xe(i,o,e,t,s)}(s,e,t));var s})(e,t).concat(s)})}function Ce(e){Se=[],(0,a.dispatch)("core/annotations").__experimentalRemoveAnnotationsBySource(ke);const t=function(e){return(0,c.uniq)((0,c.flatten)(e.map(e=>{if(!(0,c.isUndefined)(e.getFieldsToMark()))return e.getFieldsToMark()})))}(e);if(0===e.length)return;const s=(0,a.select)("core/block-editor"),o="template-locked"===(0,a.select)("core/editor").getRenderingMode(),i=s.getBlocksByName("core/post-content");let r=o&&null!=i&&i.length?s.getBlocks(i[0]):s.getBlocks();var n;t.length>0&&(r=r.filter(e=>t.some(t=>"core/"+t===e.name))),n=je(r,e),Se=n.map(e=>({blockClientId:e.block,source:ke,richTextIdentifier:e.richTextIdentifier,range:{start:e.startOffset,end:e.endOffset}})),Ee()}function Ie(e,t){let s;ue(pe)&&((0,c.isUndefined)(s)&&(s=de(tinyMCE.get(pe))),s(e,t)),(0,a.select)("core/editor")&&(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=>de(e)).forEach(s=>s(e,t))}(e,t),Ce(t)),(0,l.doAction)("yoast.analysis.applyMarks",t)}function Le(){const e=(0,a.select)("yoast-seo/editor").isMarkingAvailable(),t=(0,a.select)("yoast-seo/editor").getMarkerPauseStatus();return!e||t?c.noop:Ie}const Ae=(0,c.debounce)(async function(e,t){const{text:s,...o}=t,i=new d.Paper(s,o);try{const t=await e.analyze(i),{seo:s,readability:o,inclusiveLanguage:r}=t.result;if(s){const e=s[""];e.results.forEach(e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(i,e.marks)}),e.results=Y(e.results),(0,a.dispatch)("yoast-seo/editor").setSeoResultsForKeyword(i.getKeyword(),e.results),(0,a.dispatch)("yoast-seo/editor").setOverallSeoScore(e.score,i.getKeyword()),(e=>{const t=(e=>K(e,B))(e);t>0&&(q.seoTitleScore=String(t));const s=(e=>K(e,W))(e);s>0&&(q.metaDescriptionScore=String(s))})(e.results)}o&&(o.results.forEach(e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(i,e.marks)}),o.results=Y(o.results),(0,a.dispatch)("yoast-seo/editor").setReadabilityResults(o.results),(0,a.dispatch)("yoast-seo/editor").setOverallReadabilityScore(o.score)),r&&(r.results.forEach(e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(i,e.marks)}),r.results=Y(r.results),(0,a.dispatch)("yoast-seo/editor").setInclusiveLanguageResults(r.results),(0,a.dispatch)("yoast-seo/editor").setOverallInclusiveLanguageScore(r.score)),(0,l.doAction)("yoast.analysis.run",t,{paper:i})}catch(e){}},500);function Pe(){var e;const{getAnalysisData:t,getEditorDataTitle:s,getIsFrontPage:o}=(0,a.select)("yoast-seo/editor");let i=t();i={...i,textTitle:s(),isFrontPage:o(),shortcodes:Array.isArray(null===(e=window.wpseoScriptData.analysis.plugins.shortcodes)||void 0===e?void 0:e.wpseo_shortcode_tags)?window.wpseoScriptData.analysis.plugins.shortcodes.wpseo_shortcode_tags:[]};const r=function(e){return e.title=ae("data_page_title",e.title),e.title=ae("title",e.title),e.description=ae("data_meta_desc",e.description),e.text=ae("content",e.text),e}(i);return(0,l.applyFilters)("yoast.analysis.data",r)}const De=()=>{const{getContentLocale:e}=(0,a.select)("yoast-seo/editor"),t=((...e)=>()=>e.map(e=>e()))(e,Pe),s=(()=>{const{setEstimatedReadingTime:e,setFleschReadingEase:t,setTextLength:s}=(0,a.dispatch)("yoast-seo/editor"),o=(0,c.get)(window,"YoastSEO.analysis.worker.runResearch",c.noop);return()=>{const i=d.Paper.parse(Pe());o("readingTime",i).then(t=>e(t.result)),o("getFleschReadingScore",i).then(e=>{e.result&&t(e.result)}),o("wordCountInText",i).then(e=>s(e.result))}})();return setTimeout(s,1500),((e,t)=>{let s=e();return()=>{const o=e();(0,c.isEqual)(o,s)||(s=o,t((0,c.clone)(o)))}})(t,s)},Oe=window.wp.components,Fe=window.wp.element,Me=window.yoast.externals.contexts,qe=window.yoast.propTypes;var Ne=s.n(qe);const Ue=window.yoast.styledComponents;var Be=s.n(Ue);const We=window.ReactJSXRuntime,Ke=({theme:e,location:t,children:s})=>(0,We.jsx)(Me.LocationProvider,{value:t,children:(0,We.jsx)(Ue.ThemeProvider,{theme:e,children:s})});Ke.propTypes={theme:Ne().object.isRequired,location:Ne().oneOf(["sidebar","metabox","modal"]).isRequired,children:Ne().node.isRequired};const He=Ke,Ve=[];let Ye=null;class ze extends Fe.Component{constructor(e){super(e),this.state={registeredComponents:[...Ve]}}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,We.jsx)(e,{},t))}}function Ge(e,t){null===Ye||null===Ye.current?Ve.push({key:e,Component:t}):Ye.current.registerComponent(e,t)}const Ze=()=>!0;class Qe extends $e.modules.hookUI.Base{constructor(e,t,s,o=Ze){super(),this.command=e,this.id=t,this.callback=s,this.conditions=o}getCommand(){return this.command}getId(){return this.id}getConditions(...e){return this.conditions(...e)}apply(...e){return this.callback(...e)}}class Xe extends $e.modules.hookData.Base{constructor(e,t,s,o=Ze){super(),this.command=e,this.id=t,this.callback=s,this.conditions=o.bind(this)}getCommand(){return this.command}getId(){return this.id}getConditions(...e){return this.conditions(...e)}apply(...e){return this.callback(...e)}}function Je(e,t,s,o=Ze){return $e.hooks.registerUIAfter(new Qe(e,t,s,o))}function et(e,t,s,o=Ze){return $e.hooks.registerUIBefore(new Qe(e,t,s,o))}function tt(e,t,s,o=Ze){return $e.hooks.registerDataAfter(new Xe(e,t,s,o))}const st=e=>{return parseInt(null===(t=document.getElementById("post_ID"))||void 0===t?void 0:t.value,10)===e;var t},ot=()=>{var e;return st(null===(e=elementor.documents.getCurrent())||void 0===e?void 0:e.id)},it=["yoast_wpseo_linkdex","yoast_wpseo_content_score","yoast_wpseo_inclusive_language_score","yoast_wpseo_seo_title_score","yoast_wpseo_meta_description_score","yoast_wpseo_words_for_linking","yoast_wpseo_estimated-reading-time-minutes"],rt=["yoast_wpseo_focuskeywords","hidden_wpseo_focuskeywords"],nt=window.wp.i18n,at=e=>{let t="";e&&(t=(0,nt.sprintf)(/* translators: %1$s translates to the Post Label in singular form */ /* translators: %1$s translates to the Post Label in singular form */
(0,nt.__)("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)},lt=(e,t,s)=>null===t?null:(0,Fe.createPortal)(e,t,s),ct=({id:e,children:t})=>{const s=(0,Fe.useRef)(document.getElementById(e)),[o,i]=(0,Fe.useState)(()=>lt(t,s.current,e)),r=(0,Fe.useCallback)(()=>{const o=document.getElementById(e);o!==s.current&&(s.current=o,i(lt(t,o,e)))},[e,t]);return((e,t,s={childList:!0,subtree:!0})=>{(0,Fe.useEffect)(()=>{const o=new MutationObserver(t);return o.observe(e,s),()=>o.disconnect()},[e,t])})(document.body,r),o},dt=window.yoast.uiLibrary;s(6702);const pt=(e,t)=>{try{return(0,Fe.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}};Ne().string.isRequired;var ut=s(2514),ht=s.n(ut),gt=s(818),mt=s.n(gt);Ne().string.isRequired,Ne().string.isRequired,Ne().shape({src:Ne().string.isRequired,width:Ne().string,height:Ne().string}).isRequired,Ne().shape({value:Ne().bool.isRequired,status:Ne().string.isRequired,set:Ne().func.isRequired}).isRequired,Ne().string,Ne().string,Ne().string;const yt=({handleRefreshClick:e,supportLink:t})=>(0,We.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,We.jsx)(dt.Button,{onClick:e,children:(0,nt.__)("Refresh this page","wordpress-seo")}),(0,We.jsx)(dt.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,nt.__)("Contact support","wordpress-seo")})]});yt.propTypes={handleRefreshClick:Ne().func.isRequired,supportLink:Ne().string.isRequired};const wt=({handleRefreshClick:e,supportLink:t})=>(0,We.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,We.jsx)(dt.Button,{className:"yst-order-last",onClick:e,children:(0,nt.__)("Refresh this page","wordpress-seo")}),(0,We.jsx)(dt.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,nt.__)("Contact support","wordpress-seo")})]});wt.propTypes={handleRefreshClick:Ne().func.isRequired,supportLink:Ne().string.isRequired};const ft=({error:e,children:t=null})=>(0,We.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,We.jsx)(dt.Title,{children:(0,nt.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,We.jsx)("p",{children:(0,nt.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,We.jsx)(dt.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,nt.__)("Undefined error message.","wordpress-seo")}),(0,We.jsx)("p",{children:(0,nt.__)("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]});ft.propTypes={error:Ne().object.isRequired,children:Ne().node},ft.VerticalButtons=wt,ft.HorizontalButtons=yt;Ne().string,Ne().node.isRequired,Ne().node.isRequired,Ne().node,Ne().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"}}));var bt=s(1609),xt=s.n(bt);const _t=window.ReactDOM;var vt,kt,St;(kt=vt||(vt={})).Pop="POP",kt.Push="PUSH",kt.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(St||(St={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const Tt=["post","put","patch","delete"],Rt=(new Set(Tt),["get",...Tt]);new Set(Rt),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),bt.Component,bt.startTransition,new Promise(()=>{}),bt.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var Et,jt,Ct,It;new Map,bt.startTransition,_t.flushSync,bt.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(It=Et||(Et={})).UseScrollRestoration="useScrollRestoration",It.UseSubmit="useSubmit",It.UseSubmitFetcher="useSubmitFetcher",It.UseFetcher="useFetcher",It.useViewTransitionState="useViewTransitionState",(Ct=jt||(jt={})).UseFetcher="useFetcher",Ct.UseFetchers="useFetchers",Ct.UseScrollRestoration="useScrollRestoration",Ne().string.isRequired,Ne().string;const Lt=({href:e,children:t=null,...s})=>(0,We.jsxs)(dt.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e,children:[t,(0,We.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,nt.__)("(Opens in a new browser tab)","wordpress-seo")})]});Lt.propTypes={href:Ne().string.isRequired,children:Ne().node};var At=s(8738),Pt=s.n(At);(0,nt.__)("Create optimized SEO titles & meta descriptions in seconds","wordpress-seo"),(0,nt.__)("Apply AI suggestions to improve content in 1 click","wordpress-seo"),(0,nt.__)("Manage redirects with ease and without extra plugins","wordpress-seo"),(0,nt.__)("Optimize pages for multiple keywords with guidance","wordpress-seo"),(0,nt.__)("Add product details to help your listings stand out","wordpress-seo"),(0,nt.__)("Make sure search engines show the right version of your product page","wordpress-seo"),(0,nt.__)("Create optimized SEO titles & meta descriptions with AI","wordpress-seo"),(0,nt.__)("Bulk AI-generated alt text for product images","wordpress-seo"),(0,nt.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,nt.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,nt.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,nt.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,nt.__)("Internal links and redirect management, easy","wordpress-seo"),(0,nt.__)("Access to friendly help when you need it, day or night","wordpress-seo");var Dt=s(2485),Ot=s.n(Dt);var Ft;function Mt(){return Mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)({}).hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},Mt.apply(null,arguments)}Ne().string.isRequired,Ne().object.isRequired,Ne().func.isRequired,Ne().bool.isRequired,s(3473);const qt=e=>bt.createElement("svg",Mt({xmlns:"http://www.w3.org/2000/svg",fill:"none","aria-hidden":"true",viewBox:"0 0 16 12"},e),Ft||(Ft=bt.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"})));Ne().string.isRequired,Ne().object,Ne().func.isRequired,Ne().bool.isRequired,Ne().string.isRequired,Ne().object.isRequired,Ne().string.isRequired,Ne().func.isRequired,Ne().bool.isRequired,s(5074),Ne().bool.isRequired,Ne().func,Ne().func,Ne().string.isRequired,Ne().string.isRequired,Ne().string.isRequired,Ne().string.isRequired;window.yoast.reactHelmet;Ne().string.isRequired,Ne().shape({src:Ne().string.isRequired,width:Ne().string,height:Ne().string}).isRequired,Ne().shape({value:Ne().bool.isRequired,status:Ne().string.isRequired,set:Ne().func.isRequired}).isRequired,Ne().bool,s(5687),Ne().bool.isRequired,Ne().func.isRequired,Ne().func,Ne().string;const Nt="yoast-seo/editor",Ut=((0,c.mapValues)({post:"title",term:"term_title"},e=>`%%${e}%%`),({children:e})=>(0,We.jsx)("p",{className:"yst-mt-2",children:e}));Ut.propTypes={children:Ne().node.isRequired};const $t=(0,nt.__)("Something went wrong","wordpress-seo"),Bt=({linkStoreName:e=Nt})=>{const t=(0,a.useSelect)(t=>t(e).selectLink("https://yoa.st/ai-common-errors"),[e]),s=(0,a.useSelect)(t=>t(e).selectAdminLink("?page=wpseo_page_support"),[e]);return(0,We.jsx)(Ut,{children:pt((0,nt.sprintf)(/* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */ /* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */
(0,nt.__)("Please try again later. If this issue persists, you can learn more about possible reasons for this error on our page about %1$scommon AI feature problems and errors%2$s. In case you need further help, please %3$scontact our support team%4$s.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,We.jsx)(Lt,{variant:"error",href:t}),a2:(0,We.jsx)(Lt,{variant:"error",href:s})})})};Bt.propTypes={linkStoreName:Ne().string};const Wt=({linkStoreName:e=Nt,className:t=""})=>(0,We.jsxs)(dt.Alert,{variant:"error",className:t,children:[(0,We.jsx)("span",{className:"yst-block yst-font-medium",children:$t}),(0,We.jsx)(Bt,{linkStoreName:e})]});Wt.propTypes={linkStoreName:Ne().string,className:Ne().string},(0,nt.__)("Not enough content","wordpress-seo"),(0,nt.__)("SEO analysis required","wordpress-seo"),(0,nt.__)("You've reached the Yoast AI rate limit","wordpress-seo");const Kt=window.wp.apiFetch;var Ht=s.n(Kt);(0,nt.__)("Subscription required","wordpress-seo");Ne().arrayOf(Ne().string),Ne().arrayOf(Ne().string),(0,nt.__)("Connection timeout","wordpress-seo"),(0,nt.__)("Usage policy violation","wordpress-seo"),(0,nt.__)("Something went wrong","wordpress-seo");Ne().string,Ne().string,(0,nt.__)("Something went wrong","wordpress-seo");Ne().bool,Ne().func.isRequired,Ne().func.isRequired,Ne().bool,Ne().bool,Ne().func,Ne().func,Ne().bool,Ne().bool,Ne().func,Ne().func,Ne().string,Ne().bool,Ne().bool,Ne().func,Ne().func,Ne().bool,Ne().func,Ne().bool,Ne().func,Ne().bool,Ne().func,Ne().bool,Ne().func,Ne().arrayOf(Ne().string),Ne().bool,Ne().func,Ne().bool,Ne().func,(0,nt.__)("Yoast AI cannot reach your site","wordpress-seo");Ne().string,Ne().bool,Ne().func;Ne().func.isRequired,Ne().string.isRequired,Ne().string.isRequired,Ne().string.isRequired,Ne().string.isRequired,Ne().string.isRequired,Ne().string.isRequired,Ne().func.isRequired,Ne().string.isRequired,Ne().shape({termsOfService:Ne().string,privacyPolicy:Ne().string,learnMore:Ne().string});const Vt=({error:e})=>{const t=(0,Fe.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"),[]),o=(0,a.useSelect)(e=>e("yoast-seo/editor").getPreference("isRtl",!1),[]);return(0,We.jsx)(dt.Root,{context:{isRtl:o},children:(0,We.jsx)(ft,{error:e,children:(0,We.jsx)(ft.VerticalButtons,{supportLink:s,handleRefreshClick:t})})})};function Yt(){return(0,We.jsx)(dt.ErrorBoundary,{FallbackComponent:Vt,children:(0,We.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}})})}Vt.propTypes={error:Ne().object.isRequired};const zt=window.wp.compose;var Gt=s(465),Zt=s.n(Gt);const Qt=window.wp.url,Xt=({className:e="",...t})=>(0,We.jsx)("span",{className:Ot()("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});Xt.displayName="MetaboxButton.Text",Xt.propTypes={className:Ne().string};const Jt=({className:e="",...t})=>(0,We.jsx)("button",{type:"button",className:Ot()("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});Jt.propTypes={className:Ne().string},Jt.Text=Xt;const es=window.yoast.componentsNew,ts=({onClick:e,title:t,id:s="",subTitle:o="",suffixIcon:i=null,SuffixHeroIcon:r=null,prefixIcon:n=null,children:a=null})=>(0,We.jsx)("div",{className:"yoast components-panel__body",children:(0,We.jsx)("h2",{className:"components-panel__body-title",children:(0,We.jsxs)("button",{id:s,onClick:e,className:"components-button components-panel__body-toggle",type:"button",children:[n&&(0,We.jsx)("span",{className:"yoast-icon-span",style:{fill:`${n&&n.color||""}`},children:(0,We.jsx)(es.SvgIcon,{size:n.size,icon:n.icon})}),(0,We.jsxs)("span",{className:"yoast-title-container",children:[(0,We.jsx)("div",{className:"yoast-title",children:t}),(0,We.jsx)("div",{className:"yoast-subtitle",children:o})]}),a,i&&(0,We.jsx)(es.SvgIcon,{size:i.size,icon:i.icon}),r]})})}),ss=ts;var os,is;function rs(){return rs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)({}).hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},rs.apply(null,arguments)}ts.propTypes={onClick:Ne().func.isRequired,title:Ne().string.isRequired,id:Ne().string,subTitle:Ne().string,suffixIcon:Ne().object,SuffixHeroIcon:Ne().element,prefixIcon:Ne().object,children:Ne().node};const ns=e=>bt.createElement("svg",rs({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),os||(os=bt.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"})),is||(is=bt.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"})));var as=s(7656),ls=s.n(as);const cs=({isOpen:e,onClose:t,id:s,upsellLink:o,title:i="",description:r="",benefits:n=[],note:l="",ctbId:c="",modalTitle:d})=>{const{isBlackFriday:p,isWooCommerceActive:u,isProductEntity:h,isWooSEOActive:g}=(0,a.useSelect)(e=>{const t=e("yoast-seo/editor");return{isProductEntity:t.getIsProductEntity(),isWooCommerceActive:t.getIsWooCommerceActive(),isBlackFriday:t.isPromotionActive("black-friday-promotion"),isWooSEOActive:t.getIsWooSeoActive()}},[]),m=(0,Fe.useMemo)(()=>u&&h,[u,h]),y=(0,Fe.useRef)(null);return(0,We.jsx)(dt.Modal,{isOpen:e,onClose:t,id:s,initialFocus:y,children:(0,We.jsx)(dt.Modal.Panel,{className:"yst-max-w-md yst-p-0",hasCloseButton:!1,children:(0,We.jsxs)(dt.Modal.Container,{children:[(0,We.jsxs)(dt.Modal.Container.Header,{className:"yst-p-6 yst-border-b-slate-200 yst-border-b yst-flex yst-justify-start yst-gap-3 yst-items-center",children:[m?(0,We.jsx)(ls(),{className:"yst-text-woo-light yst-w-6 yst-h-6 yst-scale-x-[-1]"}):(0,We.jsx)(ns,{className:"yst-fill-primary-500 yst-w-5 yst-h-5"}),(0,We.jsx)(dt.Modal.Title,{as:"h3",className:Ot()(m?"yst-text-woo-light":"yst-text-primary-500","yst-text-base yst-font-normal"),children:d}),(0,We.jsx)(dt.Modal.CloseButton,{className:"yst-top-2",onClick:t,screenReaderText:(0,nt.__)("Close modal","wordpress-seo")})]}),(0,We.jsxs)(dt.Modal.Container.Content,{className:"yst-p-0",children:[p&&(0,We.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,We.jsx)("div",{className:"yst-mx-auto",children:(0,nt.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})}),(0,We.jsxs)("div",{className:"yst-py-6 yst-px-12",children:[(0,We.jsx)(dt.Title,{as:"h3",className:"yst-mb-1 yst-leading-5 yst-text-sm yst-font-medium yst-text-slate-800",children:i}),(0,We.jsx)("p",{className:"yst-mb-2",children:r}),Array.isArray(n)&&n.length>0&&(0,We.jsx)("ul",{className:"yst-my-2",children:n.map((e,t)=>(0,We.jsxs)("li",{className:"yst-flex yst-gap-1 yst-mb-2",children:[(0,We.jsx)(Pt(),{className:"yst-mr-1 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),(0,We.jsx)("p",{className:"yst-text-slate-600",children:e})]},`${s}-upsell-benefit-${t}`))}),"function"==typeof n&&n(),(0,We.jsxs)("div",{className:"yst-text-center",children:[(0,We.jsxs)(dt.Button,{as:"a",variant:"upsell",className:"yst-my-2 yst-gap-1.5 yst-w-full",href:o,target:"_blank","data-action":"load-nfd-ctb","data-ctb-id":c,ref:y,children:[(0,We.jsx)(ht(),{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"}),(0,nt.sprintf)(/* translators: %s expands to 'Yoast SEO Premium' or 'Yoast Woocommerce SEO'. */ /* translators: %s expands to 'Yoast SEO Premium' or 'Yoast Woocommerce SEO'. */
(0,nt.__)("Explore %s","wordpress-seo"),m&&!g?"Yoast WooCommerce SEO":"Yoast SEO Premium"),(0,We.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,nt.__)("Opens in a new tab","wordpress-seo")})]}),(0,We.jsx)("div",{className:"yst-italic yst-text-slate-500 yst-mt-1",children:l})]})]})]})]})})})},ds=()=>{const[e,,,t,s]=(0,dt.useToggleState)(!1),{locationContext:o}=(0,Me.useRootContext)(),i=(0,dt.useSvgAria)(),r=o.includes("sidebar"),n=o.includes("metabox"),a=r?"sidebar":"metabox",l=wpseoAdminL10n[r?"shortlinks.upsell.sidebar.internal_linking_suggestions":"shortlinks.upsell.metabox.internal_linking_suggestions"];return(0,We.jsxs)(We.Fragment,{children:[(0,We.jsx)(cs,{isOpen:e,onClose:s,id:`yoast-internal-linking-suggestions-upsell-${a}`,upsellLink:(0,Qt.addQueryArgs)(l,{context:o}),modalTitle:(0,nt.__)("Add smarter internal links with Premium","wordpress-seo"),title:(0,nt.__)("Connect related content without the guesswork","wordpress-seo"),description:pt((0,nt.sprintf)(/* translators: %s expands to be tag. */ /* translators: %s expands to be tag. */
(0,nt.__)("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,We.jsx)("br",{})}),benefits:[(0,nt.__)("Suggest internal links based on your content’s main topics","wordpress-seo"),(0,nt.__)("Build relevant internal links faster","wordpress-seo"),(0,nt.__)("Strengthen your site’s structure","wordpress-seo"),(0,nt.__)("Keep visitors exploring longer","wordpress-seo")],note:(0,nt.__)("Upgrade to link your content with ease","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"}),r&&(0,We.jsx)(ss,{id:"yoast-internal-linking-suggestions-sidebar-modal-open-button",title:(0,nt.__)("Internal linking suggestions","wordpress-seo"),onClick:t,children:(0,We.jsx)("div",{className:"yst-root",children:(0,We.jsx)(dt.Badge,{size:"small",variant:"upsell",children:(0,We.jsx)(Zt(),{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...i})})})}),n&&(0,We.jsx)("div",{className:"yst-root",children:(0,We.jsxs)(Jt,{id:"yoast-internal-linking-suggestions-metabox-modal-open-button",onClick:t,children:[(0,We.jsx)(Jt.Text,{children:(0,nt.__)("Internal linking suggestions","wordpress-seo")}),(0,We.jsxs)(dt.Badge,{size:"small",variant:"upsell",children:[(0,We.jsx)(Zt(),{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...i}),(0,We.jsx)("span",{children:"Premium"})]})]})})]})},ps=window.yoast.externals.components;function us(){return(0,zt.createHigherOrderComponent)(function(e){return(0,zt.pure)(function(t){const s=(0,Fe.useContext)(Me.LocationContext);return(0,Fe.createElement)(e,{...t,location:s})})},"withLocation")}const hs=(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}}),us()])(ps.CollapsibleCornerstone);var gs=s(998),ms=s.n(gs);const ys=({store:e="yoast-seo/editor",location:t="sidebar"})=>{const s="black-friday-promotion",o=(0,a.useSelect)(t=>t(e).getIsPremium(),[e]),i=(0,a.useSelect)(t=>t(e).selectLinkParams(),[e]),r=(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,Fe.useCallback)(()=>{(0,a.dispatch)(e).dismissAlert(s)},[e,s]),d=(0,Qt.addQueryArgs)("https://yoa.st/black-friday-sale",i),p=(0,dt.useSvgAria)();return o||!r||l?null:(0,We.jsx)("div",{className:"yst-root",children:(0,We.jsxs)("div",{className:Ot()("yst-border yst-rounded-lg yst-p-4 yst-max-w-md yst-relative yst-shadow-sm yst-mt-2",n?"yst-border-woo-light":"yst-border-primary-200"),children:[(0,We.jsxs)(dt.Badge,{size:"small",className:"yst-text-[10px] yst-bg-black yst-text-amber-300 yst-absolute yst--top-2",children:[(0,nt.__)("BLACK FRIDAY","wordpress-seo")," "]}),(0,We.jsxs)("button",{className:"yst-absolute yst-top-4 yst-end-4",onClick:c,children:[(0,We.jsx)(ms(),{className:"yst-w-4 yst-text-slate-400 yst-shrink-0 yst--mt-0.5"}),(0,We.jsx)("div",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,nt.__)("Dismiss","wordpress-seo")})]}),(0,We.jsxs)("div",{className:Ot()("sidebar"===t?"":"yst-flex yst-justify-between yst-gap-3"),children:[(0,We.jsxs)("div",{className:n?"yst-text-woo-light":"yst-text-primary-500",children:[(0,We.jsx)("div",{className:"yst-text-2xl yst-font-bold",children:(0,nt.__)("30% OFF","wordpress-seo")}),(0,We.jsx)("div",{className:"yst-flex yst-gap-2 yst-font-semibold yst-text-tiny",children:n?(0,We.jsxs)(We.Fragment,{children:["Yoast WooCommerce SEO ",(0,We.jsx)(ls(),{className:"yst-w-4 yst-scale-x-[-1]",...p})]}):(0,We.jsxs)(We.Fragment,{children:[" Yoast SEO Premium ",(0,We.jsx)(qt,{className:"yst-w-4",...p})]})})]}),(0,We.jsx)("div",{className:"yst-flex yst-items-end",children:(0,We.jsxs)(dt.Button,{as:"a",className:Ot()("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:d,target:"_blank",rel:"noreferrer",children:[(0,nt.__)("Buy now!","wordpress-seo"),(0,We.jsx)(mt(),{className:"yst-w-4 rtl:yst-rotate-180",...p})]})})]})]})})};ys.propTypes={store:Ne().string,location:Ne().oneOf(["sidebar","metabox"]),inEditorIntro:Ne().bool};const ws=window.yoast.helpers,fs=(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)}})]),bs=({children:e,id:t,hasIcon:s=!0,title:o,image:i=null,isAlertDismissed:r,onDismissed:n,className:a=""})=>r?null:(0,We.jsxs)("div",{id:t,className:Ot()("notice-yoast yoast is-dismissible",a),children:[(0,We.jsxs)("div",{className:"notice-yoast__container",children:[(0,We.jsxs)("div",{children:[(0,We.jsxs)("div",{className:"notice-yoast__header",children:[s&&(0,We.jsx)("span",{className:"yoast-icon"}),(0,We.jsx)("h2",{className:"notice-yoast__header-heading yoast-notice-migrated-header",children:o})]}),(0,We.jsx)("div",{className:"notice-yoast-content",children:(0,We.jsx)("p",{children:e})})]}),i&&(0,We.jsx)(i,{height:"60"})]}),(0,We.jsx)("button",{type:"button",className:"notice-dismiss",onClick:n,children:(0,We.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,nt.__)("Dismiss this notice.","wordpress-seo")})})]});bs.propTypes={children:Ne().node.isRequired,id:Ne().string.isRequired,hasIcon:Ne().bool,title:Ne().any.isRequired,image:Ne().elementType,isAlertDismissed:Ne().bool.isRequired,onDismissed:Ne().func.isRequired,className:Ne().string};const xs=fs(bs),_s="trustpilot-review-notification",vs="yoast-seo/editor";const ks=()=>{const e=(0,a.useSelect)(e=>e(vs).getIsPremium(),[]),t=(0,a.useSelect)(e=>e(vs).isAlertDismissed(_s),[]),{overallScore:s}=(0,a.useSelect)(e=>e(vs).getResultsForFocusKeyword(),[]),{dismissAlert:o}=(0,a.useDispatch)(vs),i=(0,Fe.useCallback)(()=>o(_s),[o]),[r,n]=(0,Fe.useState)(!1);return(0,Fe.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,nt.__)("Not available","wordpress-seo"),screenReaderReadabilityText:(0,nt.__)("Not available","wordpress-seo"),screenReaderInclusiveLanguageText:(0,nt.__)("Not available","wordpress-seo")};case"bad":return{className:"bad",screenReaderText:(0,nt.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:(0,nt.__)("Needs improvement","wordpress-seo"),screenReaderInclusiveLanguageText:(0,nt.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:(0,nt.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:(0,nt.__)("OK","wordpress-seo"),screenReaderInclusiveLanguageText:(0,nt.__)("Potentially non-inclusive","wordpress-seo")};case"good":return{className:"good",screenReaderText:(0,nt.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:(0,nt.__)("Good","wordpress-seo"),screenReaderInclusiveLanguageText:(0,nt.__)("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&&r,dismiss:i}},Ss=(0,ws.makeOutboundLink)(),Ts=e=>{const{shouldShow:t,dismiss:s}=ks(),{locationContext:o}=(0,Me.useRootContext)(),i=(0,a.useSelect)(e=>e(vs).selectLink("https://yoa.st/trustpilot-review",{context:o}),[o]);return(0,We.jsxs)(bs,{alertKey:_s,store:vs,id:_s,title:(0,nt.__)("Show Yoast SEO some love!","wordpress-seo"),hasIcon:!1,isAlertDismissed:!t,onDismissed:s,className:"yst-m-0",...e,children:[(0,nt.__)("Happy with the plugin?","wordpress-seo")," ",(0,We.jsx)(Ss,{href:i,rel:"noopener noreferrer",children:(0,nt.__)("Leave a quick review","wordpress-seo")}),"."]})},Rs=({store:e="yoast-seo/editor",image:t=null,url:s,...o})=>(0,a.useSelect)(t=>t(e).getIsPremium())?null:(0,We.jsxs)(xs,{alertKey:"webinar-promo-notification",store:e,id:"webinar-promo-notification",title:(0,nt.__)("Ready to boost your online visibility?","wordpress-seo"),image:t,url:s,...o,children:[pt((0,nt.sprintf)(/* translators: 1: bold open tag; 2: "FREE"; 3: bold close tag; 4: "Yoast SEO". */ /* translators: 1: bold open tag; 2: "FREE"; 3: bold close tag; 4: "Yoast SEO". */
(0,nt.__)("Access our %1$s%2$s%3$s webinars and podcasts to get started with %4$s and build the foundational skills and confidence needed for sustainable success.","wordpress-seo"),"<strong>","FREE","</strong>","Yoast SEO"),{strong:(0,We.jsx)("strong",{})})," ",(0,We.jsx)("a",{href:s,target:"_blank",rel:"noreferrer",children:(0,nt.__)("Sign up today!","wordpress-seo")})]});Rs.propTypes={store:Ne().string,image:Ne().elementType,url:Ne().string.isRequired};const Es=Rs,js=(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};var Cs=s(5169),Is=s.n(Cs);const Ls=(e=null)=>(0,bt.useMemo)(()=>{const t={role:"img","aria-hidden":"true"};return null!==e&&(t.focusable=e?"true":"false"),t},[e]),As=({title:e="Yoast SEO",className:t="yoast yoast-gutenberg-modal",showYoastIcon:s=!0,children:o=null,additionalClassName:i="",...r})=>{const n=s?(0,We.jsx)("span",{className:"yoast-icon"}):null;return(0,We.jsx)(Oe.Modal,{title:e,className:`${t} ${i}`,icon:n,...r,children:o})};As.propTypes={title:Ne().node,className:Ne().string,showYoastIcon:Ne().bool,children:Ne().oneOfType([Ne().node,Ne().arrayOf(Ne().node)]),additionalClassName:Ne().string};const Ps=As,Ds=({id:e,postTypeName:t,children:s,title:o,isOpen:i,open:r,close:n,shouldCloseOnClickOutside:a=!0,showChangesWarning:l=!0,SuffixHeroIcon:c=null,titleHelpLink:d=null})=>(0,We.jsxs)(Fe.Fragment,{children:[i&&(0,We.jsx)(Me.LocationProvider,{value:"modal",children:(0,We.jsxs)(Ps,{title:d?(0,We.jsxs)(We.Fragment,{children:[o,d]}):o,contentLabel:d?o:null,onRequestClose:n,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal",id:"id",shouldCloseOnClickOutside:a,children:[(0,We.jsx)("div",{className:"yoast-content-container",children:(0,We.jsx)("div",{className:"yoast-modal-content",children:s})}),(0,We.jsxs)("div",{className:"yoast-notice-container",children:[(0,We.jsx)("hr",{}),(0,We.jsxs)("div",{className:"yoast-button-container",children:[l&&(0,We.jsx)("p",{children:/* Translators: %s translates to the Post Label in singular form */ /* Translators: %s translates to the Post Label in singular form */
(0,nt.sprintf)((0,nt.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),t)}),(0,We.jsx)("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:n,children:/* Translators: %s translates to the Post Label in singular form */ /* Translators: %s translates to the Post Label in singular form */
(0,nt.sprintf)((0,nt.__)("Return to your %s","wordpress-seo"),t)})]})]})]})}),(0,We.jsx)(ss,{id:e+"-open-button",title:o,SuffixHeroIcon:c,suffixIcon:c?null:{size:"20px",icon:"pencil-square"},onClick:r})]});Ds.propTypes={id:Ne().string.isRequired,postTypeName:Ne().string.isRequired,children:Ne().oneOfType([Ne().node,Ne().arrayOf(Ne().node)]).isRequired,title:Ne().string.isRequired,isOpen:Ne().bool.isRequired,open:Ne().func.isRequired,close:Ne().func.isRequired,shouldCloseOnClickOutside:Ne().bool,showChangesWarning:Ne().bool,SuffixHeroIcon:Ne().element,titleHelpLink:Ne().element};const Os=Ds,Fs=(0,zt.compose)([(0,a.withSelect)((e,t)=>{const{getPostOrPageString:s,getIsModalOpen:o}=e("yoast-seo/editor");return{postTypeName:s(),isOpen:o(t.id)}}),(0,a.withDispatch)((e,t)=>{const{openEditorModal:s,closeEditorModal:o}=e("yoast-seo/editor");return{open:()=>s(t.id),close:o}})])(Os),Ms=()=>{const e=(0,a.useSelect)(e=>e("yoast-seo/editor").getEstimatedReadingTime(),[]),t=(0,Fe.useMemo)(()=>(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-estimated_reading_time",""),[]);return(0,We.jsx)(es.InsightsCard,{amount:e,unit:(0,nt._n)("minute","minutes",e,"wordpress-seo"),title:(0,nt.__)("Reading time","wordpress-seo"),linkTo:t
/* translators: Hidden accessibility text. */,linkText:(0,nt.__)("Learn more about reading time","wordpress-seo")})},qs=(0,ws.makeOutboundLink)();function Ns(e,t){return-1===e?(0,nt.__)("Your text should be slightly longer to calculate your Flesch reading ease score.","wordpress-seo"):(0,nt.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') */
/* 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,nt.__)("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,nt.__)("no data","wordpress-seo");case d.DIFFICULTY.VERY_EASY:return(0,nt.__)("very easy","wordpress-seo");case d.DIFFICULTY.EASY:return(0,nt.__)("easy","wordpress-seo");case d.DIFFICULTY.FAIRLY_EASY:return(0,nt.__)("fairly easy","wordpress-seo");case d.DIFFICULTY.OKAY:return(0,nt.__)("okay","wordpress-seo");case d.DIFFICULTY.FAIRLY_DIFFICULT:return(0,nt.__)("fairly difficult","wordpress-seo");case d.DIFFICULTY.DIFFICULT:return(0,nt.__)("difficult","wordpress-seo");case d.DIFFICULTY.VERY_DIFFICULT:return(0,nt.__)("very difficult","wordpress-seo")}}(t))}const Us=()=>{let e=(0,a.useSelect)(e=>e("yoast-seo/editor").getFleschReadingEaseScore(),[]);const t=(0,Fe.useMemo)(()=>(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease",""),[]),s=(0,a.useSelect)(e=>e("yoast-seo/editor").getFleschReadingEaseDifficulty(),[e]),o=(0,Fe.useMemo)(()=>{const t=(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease_article","");return function(e,t,s){const o=function(e){switch(e){case d.DIFFICULTY.FAIRLY_DIFFICULT:case d.DIFFICULTY.DIFFICULT:case d.DIFFICULTY.VERY_DIFFICULT:return(0,nt.__)("Try to make shorter sentences, using less difficult words to improve readability","wordpress-seo");case d.DIFFICULTY.NO_DATA:return(0,nt.__)("Continue writing to get insight into the readability of your text!","wordpress-seo");default:return(0,nt.__)("Good job!","wordpress-seo")}}(t);return(0,We.jsxs)("span",{children:[Ns(e,t)," ",t>=d.DIFFICULTY.FAIRLY_DIFFICULT?(0,We.jsx)(qs,{href:s,children:o+"."}):o]})}(e,s,t)},[e,s]);return-1===e&&(e="?"),(0,We.jsx)(es.InsightsCard,{amount:e,unit:(0,nt.__)("out of 100","wordpress-seo"),title:(0,nt.__)("Flesch reading ease","wordpress-seo"),linkTo:t
/* translators: Hidden accessibility text. */,linkText:(0,nt.__)("Learn more about Flesch reading ease","wordpress-seo"),description:o})},$s=({data:e=[],itemScreenReaderText:t="",className:s="",...o})=>{const i=(0,Fe.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,We.jsx)("ul",{className:Ot()("yoast-data-model",s),...o,children:e.map(({name:e,number:s})=>(0,We.jsxs)("li",{style:{"--yoast-width":s/i*100+"%"},children:[e,(0,We.jsx)("span",{children:s}),t&&(0,We.jsx)("span",{className:"screen-reader-text",children:(0,nt.sprintf)(t,s)})]},`${e}_dataItem`))})};$s.propTypes={data:Ne().arrayOf(Ne().shape({name:Ne().string.isRequired,number:Ne().number.isRequired})),itemScreenReaderText:Ne().string,className:Ne().string};const Bs=$s,Ws=(0,ws.makeOutboundLink)(),Ks=({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),[]),o=(0,Fe.useMemo)(()=>(0,c.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${e}-prominent_words`,""),[e]),i=(0,Fe.useMemo)(()=>{const e=(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-keyword_research_link","");return pt((0,nt.sprintf)(
// translators: %1$s and %2$s are replaced by opening and closing <a> tags.
// translators: %1$s and %2$s are replaced by opening and closing <a> tags.
(0,nt.__)("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,We.jsx)(Ws,{href:e})})},[]),r=(0,Fe.useMemo)(()=>pt((0,nt.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`.
// 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,nt.__)("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,We.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,Fe.useMemo)(()=>{const e=(0,nt.sprintf)(
// translators: %1$s expands to Yoast SEO Premium.
// translators: %1$s expands to Yoast SEO Premium.
(0,nt.__)("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,Fe.useMemo)(()=>s?l:n.map(({word:e,occurrence:t})=>({name:e,number:t})),[n,l]);if(!t)return null;const{locationContext:p}=(0,Me.useRootContext)();return(0,We.jsxs)("div",{className:"yoast-prominent-words",children:[(0,We.jsx)("div",{className:"yoast-field-group__title",children:(0,We.jsx)("b",{children:(0,nt.__)("Prominent words","wordpress-seo")})}),!s&&(0,We.jsx)("p",{children:0===d.length?(0,nt.__)("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,nt.__)("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,We.jsx)("p",{children:r}),s&&(0,We.jsxs)(Ws,{href:(0,Qt.addQueryArgs)(o,{context:p}),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",className:"yoast-button yoast-button-upsell",children:[(0,nt.sprintf)(
// translators: %s expands to `Premium` (part of add-on name).
// translators: %s expands to `Premium` (part of add-on name).
(0,nt.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,We.jsx)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})]}),(0,We.jsx)("p",{children:i}),(0,We.jsx)(Bs,{data:d,itemScreenReaderText:/* translators: Hidden accessibility text; %d expands to the number of occurrences. */ /* translators: Hidden accessibility text; %d expands to the number of occurrences. */
(0,nt.__)("%d occurrences","wordpress-seo"),"aria-label":/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,nt.__)("Prominent words","wordpress-seo"),className:s?"yoast-data-model--upsell":null})]})};Ks.propTypes={location:Ne().string.isRequired};const Hs=Ks,Vs=(0,ws.makeOutboundLink)(),Ys=({location:e})=>{const t=(0,Fe.useMemo)(()=>(0,c.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${e}-text_formality`,""),[e]),s=(0,Fe.useMemo)(()=>pt((0,nt.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`.
// 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,nt.__)("%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,We.jsx)("b",{})}),[]);return(0,We.jsx)(Fe.Fragment,{children:(0,We.jsxs)("div",{children:[(0,We.jsx)("p",{children:s}),(0,We.jsxs)(Vs,{href:t,className:"yoast-button yoast-button-upsell",children:[(0,nt.sprintf)(
// Translators: %s expands to `Premium` (part of add-on name).
// Translators: %s expands to `Premium` (part of add-on name).
(0,nt.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,We.jsx)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})]})]})})};Ys.propTypes={location:Ne().string.isRequired};const zs=Ys,Gs=({location:e,name:t})=>{const s=(0,a.useSelect)(e=>e("yoast-seo/editor").isFormalitySupported(),[]),o=z().isPremium,i=o?(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_premium",""):(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_free",""),r=(0,nt.__)("Read more about text formality.","wordpress-seo");return s?(0,We.jsxs)("div",{className:"yoast-text-formality",children:[(0,We.jsxs)("div",{className:"yoast-field-group__title",children:[(0,We.jsx)("b",{children:(0,nt.__)("Text formality","wordpress-seo")}),(0,We.jsx)(es.HelpIcon,{linkTo:i,linkText:r})]}),o?(0,We.jsx)(Oe.Slot,{name:t}):(0,We.jsx)(zs,{location:e})]}):null};Gs.propTypes={location:Ne().string.isRequired,name:Ne().string.isRequired};const Zs=Gs,Qs=()=>{const e=(0,a.useSelect)(e=>e("yoast-seo/editor").getTextLength(),[]),t=(0,Fe.useMemo)(()=>(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-word_count",""),[]);let s=(0,nt._n)("word","words",e.count,"wordpress-seo"),o=(0,nt.__)("Word count","wordpress-seo"),i=(0,nt.__)("Learn more about word count","wordpress-seo");return"character"===e.unit&&(s=(0,nt._n)("character","characters",e.count,"wordpress-seo"),o=(0,nt.__)("Character count","wordpress-seo"),
/* translators: Hidden accessibility text. */
i=(0,nt.__)("Learn more about character count","wordpress-seo")),(0,We.jsx)(es.InsightsCard,{amount:e.count,unit:s,title:o,linkTo:t,linkText:i})},Xs=Be()(Is())`
width: 18px;
height: 18px;
margin: 3px;
`,Js=({location:e="sidebar"})=>{const t=(0,a.useSelect)(e=>e("yoast-seo/editor").getIsElementorEditor(),[]),s=(0,a.useSelect)(e=>e("yoast-seo/editor").isFleschReadingEaseAvailable(),[]),o=Ls();return(0,We.jsx)(Fs,{title:(0,nt.__)("Insights","wordpress-seo"),id:`yoast-insights-modal-${e}`,shouldCloseOnClickOutside:!t,showChangesWarning:!1,SuffixHeroIcon:(0,We.jsx)(Xs,{className:"yst-text-slate-500",...o}),children:(0,We.jsxs)("div",{className:"yoast-insights yoast-modal-content--columns",children:[(0,We.jsx)(Hs,{location:e}),(0,We.jsxs)("div",{children:[s&&(0,We.jsx)("div",{className:"yoast-insights-row",children:(0,We.jsx)(Us,{})}),(0,We.jsxs)("div",{className:"yoast-insights-row yoast-insights-row--columns",children:[(0,We.jsx)(Ms,{}),(0,We.jsx)(Qs,{})]}),(0,J.isFeatureEnabled)("TEXT_FORMALITY")&&(0,We.jsx)(Zs,{location:e,name:"YoastTextFormalityMetabox"})]})]})})};Js.propTypes={location:Ne().string};const eo=Js;function to(e){return 0===e.message.length?null:(0,We.jsx)(es.Alert,{type:e.type,children:e.message})}to.propTypes={message:Ne().oneOfType([Ne().array,Ne().string]).isRequired,type:Ne().string.isRequired};const so=(0,a.withSelect)(e=>{const{getWarningMessage:t}=e("yoast-seo/editor");return{message:t(),type:"info"}})(to),oo=({children:e})=>(0,We.jsx)("div",{children:e});oo.propTypes={renderPriority:Ne().number.isRequired,children:Ne().node.isRequired};const io=oo;var ro=s(8290),no=s.n(ro);const ao=window.yoast.searchMetadataPreviews,lo=Be()(es.StyledSection)`
&${es.StyledSectionBase} {
padding: 0;
& ${es.StyledHeading} {
${(0,ws.getDirectionalStyle)("padding-left","padding-right")}: 20px;
margin-left: ${(0,ws.getDirectionalStyle)("0","20px")};
}
}
`,co=({children:e=null,title:t="",icon:s="",hasPaperStyle:o=!0,shoppingData:i=null})=>(0,We.jsx)(lo,{headingLevel:3,headingText:t,headingIcon:s,headingIconColor:"#555",hasPaperStyle:o,shoppingData:i,children:e});co.propTypes={children:Ne().element,title:Ne().string,icon:Ne().string,hasPaperStyle:Ne().bool,shoppingData:Ne().object};const po=co,uo=window.wp.sanitize,{stripHTMLTags:ho}=ws.strings;function go(e,t=156){return(e=(e=(0,uo.stripTags)(e)).trim()).length<=t||(e=e.substring(0,t),/\s/.test(e)&&(e=e.substring(0,e.lastIndexOf(" ")))),e}const mo=(0,c.memoize)((e,t)=>0===e?c.noop:(0,c.debounce)(s=>t(s,e),500)),yo=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:ho(t(e.title)),description:ho(t(e.description)),filteredSEOTitle:e.filteredSEOTitle?ho(t(e.filteredSEOTitle)):""}}(e);const s=t._applyModifications.bind(t);return{url:e.url,title:ho(s("data_page_title",e.title)),description:ho(s("data_meta_desc",e.description)),filteredSEOTitle:e.filteredSEOTitle?ho(s("data_page_title",e.filteredSEOTitle)):""}}(e)},wo=(0,zt.compose)([(0,a.withSelect)(function(e){const{getBaseUrlFromSettings:t,getDateFromSettings:s,getFocusKeyphrase:o,getRecommendedReplaceVars:i,getReplaceVars:r,getShoppingData:n,getSiteIconUrlFromSettings:a,getSnippetEditorData:l,getSnippetEditorMode:c,getSnippetEditorPreviewImageUrl:d,getSnippetEditorWordsToHighlight:p,isCornerstoneContent:u,getIsTerm:h,getContentLocale:g,getSiteName:m}=e("yoast-seo/editor"),y=r();return y.forEach(e=>{""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(e.value="%%"+e.name+"%%")}),{baseUrl:t(),data:l(),date:s(),faviconSrc:a(),keyword:o(),mobileImageSrc:d(),mode:c(),recommendedReplacementVariables:i(),replacementVariables:y,shoppingData:n(),wordsToHighlight:p(),isCornerstone:u(),isTaxonomy:h(),locale:g(),siteName:m()}}),(0,a.withDispatch)(function(e,t,{select:s}){const{updateData:o,switchMode:i,updateAnalysisData:r,findCustomFields:n}=e("yoast-seo/editor"),a=e("core/editor"),l=s("yoast-seo/editor").getPostId();return{onChange:(e,t)=>{switch(e){case"mode":i(t);break;case"slug":o({slug:t}),a&&a.editPost({slug:t});break;default:o({[e]:t})}},onChangeAnalysisData:r,onReplacementVariableSearchChange:mo(l,n)}})])(e=>(0,We.jsx)(Me.LocationConsumer,{children:t=>(0,We.jsx)(po,{icon:"eye",hasPaperStyle:e.hasPaperStyle,children:(0,We.jsx)(We.Fragment,{children:(0,We.jsx)(ao.SnippetEditor,{...e,descriptionPlaceholder:(0,nt.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:yo,showCloseButton:!1,idSuffix:t})})})})),{stripHTMLTags:fo}=ws.strings,bo=(e,t)=>{const s=(0,a.select)("yoast-seo/editor").getSnippetEditorTemplates();""===e.title&&(e.title=s.title),""===e.description&&(e.description=s.description);let o=0;return t.shortenedBaseUrl&&"string"==typeof t.shortenedBaseUrl&&(o=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[o]&&(e.url=e.url.slice(0,o)+e.url.slice(o+1)),{url:e.url,title:fo(ae("data_page_title",e.title)),description:fo(ae("data_meta_desc",e.description)),filteredSEOTitle:fo(ae("data_page_title",e.filteredSEOTitle))}},xo=({isLoading:e,onLoad:t,location:s,...o})=>((0,Fe.useEffect)(()=>{setTimeout(()=>{e&&t()})}),e?null:(0,We.jsx)(po,{icon:"eye",hasPaperStyle:o.hasPaperStyle,children:(0,We.jsx)(ao.SnippetEditor,{...o,descriptionPlaceholder:(0,nt.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:bo,showCloseButton:!1,idSuffix:s})}));xo.propTypes={isLoading:Ne().bool.isRequired,onLoad:Ne().func.isRequired,hasPaperStyle:Ne().bool.isRequired,location:Ne().string.isRequired};const _o=(0,zt.compose)([(0,a.withSelect)(e=>{const{getBaseUrlFromSettings:t,getDateFromSettings:s,getEditorDataImageUrl:o,getFocusKeyphrase:i,getRecommendedReplaceVars:r,getSiteIconUrlFromSettings:n,getSnippetEditorData:a,getSnippetEditorIsLoading:l,getSnippetEditorMode:c,getSnippetEditorWordsToHighlight:d,isCornerstoneContent:p,getContentLocale:u,getSiteName:h,getReplaceVars:g}=e("yoast-seo/editor");return{baseUrl:t(),data:a(),date:s(),faviconSrc:n(),isLoading:l(),keyword:i(),mobileImageSrc:o(),mode:c(),recommendedReplacementVariables:r(),replacementVariables:g(),wordsToHighlight:d(),isCornerstone:p(),locale:u(),siteName:h()}}),(0,a.withDispatch)(e=>{const{updateData:t,switchMode:s,updateAnalysisData:o,loadSnippetEditorData:i}=e("yoast-seo/editor");return{onChange:(e,o)=>{switch(e){case"mode":s(o);break;case"slug":t({slug:o});break;default:t({[e]:o})}},onChangeAnalysisData:o,onLoad:i}}),us()])(xo),vo=Be()(no())`
width: 18px;
height: 18px;
margin: 3px;
`,ko=()=>{const e=Ls(),t=(0,a.useSelect)(e=>e("yoast-seo/editor").getIsElementorEditor(),[]);return(0,We.jsxs)(Fs,{title:(0,nt.__)("Search appearance","wordpress-seo"),id:"yoast-search-appearance-modal",shouldCloseOnClickOutside:!1,SuffixHeroIcon:(0,We.jsx)(vo,{className:"yst-text-slate-500",...e}),children:[!0===t&&(0,We.jsx)(_o,{showCloseButton:!1,hasPaperStyle:!1}),!1===t&&(0,We.jsx)(wo,{showCloseButton:!1,hasPaperStyle:!1})]})};var So=s(3041),To=s.n(So);const Ro=Be().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"};
`,Eo=e=>{const{siteUrl:t}=e;return(0,We.jsxs)(bt.Fragment,{children:[(0,We.jsx)("span",{className:"screen-reader-text",children:t}),(0,We.jsx)(Ro,{"aria-hidden":"true",children:(0,We.jsx)("span",{children:t})})]})},jo=window.yoast.socialMetadataForms,Co=window.yoast.styleGuide,Io=Be().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;
}
`,Lo=Be().img`
&& {
height: 100%;
position: absolute;
width: 100%;
object-fit: cover;
}
`,Ao=Be().div`
padding-bottom: ${e=>e.aspectRatio}%;
`,Po=({imageProps:e,width:t,height:s,imageMode:o="landscape"})=>"landscape"===o?(0,We.jsx)(Ao,{aspectRatio:e.aspectRatio,children:(0,We.jsx)(Lo,{src:e.src,alt:e.alt})}):(0,We.jsx)(Io,{src:e.src,alt:e.alt,width:t,height:s,imageProperties:e});function Do(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 Oo(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 Fo(e,t,s=!1){const o=await function(e){return new Promise((t,s)=>{const o=new Image;o.onload=()=>{t({width:o.width,height:o.height})},o.onerror=s,o.src=e})}(e);let i=s?"landscape":"square";"Facebook"===t&&(i=(0,jo.determineFacebookImageMode)(o));const r=function(e){return"Twitter"===e?jo.TWITTER_IMAGE_SIZES:jo.FACEBOOK_IMAGE_SIZES}(t),n=function(e,t,s){return"square"===s&&t.width===t.height?{width:e.squareWidth,height:e.squareHeight}:Oo(t,Do(e,t,s))}(r,o,i);return{mode:i,height:n.height,width:n.width}}async function Mo(e,t,s=!1){try{return{imageProperties:await Fo(e,t,s),status:"loaded"}}catch(e){return{imageProperties:null,status:"errored"}}}const qo=Be().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: ${Co.colors.$color_white};
`,No=Be().div`
box-sizing: border-box;
max-width: ${jo.FACEBOOK_IMAGE_SIZES.landscapeWidth}px;
height: ${jo.FACEBOOK_IMAGE_SIZES.landscapeHeight}px;
background-color: ${Co.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 Uo extends bt.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 Mo(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:jo.FACEBOOK_IMAGE_SIZES.squareHeight+"px",width:jo.FACEBOOK_IMAGE_SIZES.squareWidth+"px"};case"portrait":return{height:jo.FACEBOOK_IMAGE_SIZES.portraitHeight+"px",width:jo.FACEBOOK_IMAGE_SIZES.portraitWidth+"px"};case"landscape":return{height:jo.FACEBOOK_IMAGE_SIZES.landscapeHeight+"px",width:jo.FACEBOOK_IMAGE_SIZES.landscapeWidth+"px"}}}render(){const{imageProperties:e,status:t}=this.state;if("loading"===t||""===this.props.src||"errored"===t)return(0,We.jsx)(No,{onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,nt.__)("Select image","wordpress-seo")});const s=this.retrieveContainerDimensions(e.mode);return(0,We.jsx)(qo,{mode:e.mode,dimensions:s,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onClick:this.props.onImageClick,children:(0,We.jsx)(Po,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:jo.FACEBOOK_IMAGE_SIZES.aspectRatio},width:e.width,height:e.height,imageMode:e.mode})})}}Uo.propTypes={src:Ne().string,alt:Ne().string,onImageLoaded:Ne().func,onImageClick:Ne().func,onMouseEnter:Ne().func,onMouseLeave:Ne().func},Uo.defaultProps={src:"",alt:"",onImageLoaded:c.noop,onImageClick:c.noop,onMouseEnter:c.noop,onMouseLeave:c.noop};const $o=Uo,Bo=Be().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;
`,Wo=Be().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;
}
`,Ko=e=>{switch(e){case"landscape":return"527px";case"square":case"portrait":return"369px";default:return"476px"}},Ho=Be().div`
box-sizing: border-box;
display: flex;
flex-direction: ${e=>"landscape"===e.mode?"column":"row"};
background-color: #f2f3f5;
max-width: 527px;
`,Vo=Be().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 Yo extends bt.Component{constructor(e){super(e),this.state={imageMode:null,maxLineCount:0,descriptionLineCount:0},this.facebookTitleRef=xt().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,o=this.getTitleLineCount();let i=t-o;"portrait"===s&&(i=5===o?0:4),i!==e&&this.setState({descriptionLineCount:i})}componentDidUpdate(){this.maybeSetMaxLineCount(),this.maybeSetDescriptionLineCount()}render(){const{imageMode:e,maxLineCount:t,descriptionLineCount:s}=this.state;return(0,We.jsxs)(Ho,{id:"facebookPreview",mode:e,children:[(0,We.jsx)($o,{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,We.jsxs)(Vo,{mode:e,children:[(0,We.jsx)(Eo,{siteUrl:this.props.siteUrl,mode:e}),(0,We.jsx)(Bo,{ref:this.facebookTitleRef,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,lineCount:t,children:this.props.title}),s>0&&(0,We.jsx)(Wo,{maxWidth:Ko(e),onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,lineCount:s,children:this.props.description})]})]})}}Yo.propTypes={siteUrl:Ne().string.isRequired,title:Ne().string.isRequired,description:Ne().string,imageUrl:Ne().string,imageFallbackUrl:Ne().string,alt:Ne().string,onSelect:Ne().func,onImageClick:Ne().func,onMouseHover:Ne().func},Yo.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{}};const zo=Yo,Go=Be().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;
`,Zo=e=>(0,We.jsx)(Go,{children:(0,We.jsx)("span",{children:e.siteUrl})}),Qo=(e,t=!0)=>e?`\n\t\t\tmax-width: ${jo.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: ${jo.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`,Xo=Be().div`
position: relative;
box-sizing: content-box;
overflow: hidden;
background-color: #e1e8ed;
flex-shrink: 0;
${e=>Qo(e.isLarge)}
`,Jo=Be().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=>Qo(e.isLarge,!1)}
`,ei=Be()(Jo)`
${e=>e.isLarge&&`height: ${jo.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 ti extends xt().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 Mo(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,We.jsx)(ei,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,nt.__)("Select image","wordpress-seo")}):(0,We.jsx)(Xo,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,We.jsx)(Po,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:jo.TWITTER_IMAGE_SIZES.aspectRatio},width:t.width,height:t.height,imageMode:t.mode})})}}ti.propTypes={isLarge:Ne().bool.isRequired,src:Ne().string,alt:Ne().string,onImageClick:Ne().func,onMouseEnter:Ne().func,onMouseLeave:Ne().func},ti.defaultProps={src:"",alt:"",onMouseEnter:c.noop,onImageClick:c.noop,onMouseLeave:c.noop};const si=Be().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;
}
`,oi=e=>(0,We.jsx)(si,{children:e.children}),ii=Be().p`
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin: 0;
color: rgb(15, 20, 25);
cursor: pointer;
`,ri=Be().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: ${jo.TWITTER_IMAGE_SIZES.landscapeWidth}px ) {
display: none;
}
`,ni=Be().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);
}
`,ai=Be()(ni)`
flex-direction: column;
max-height: 370px;
`,li=Be()(ni)`
flex-direction: row;
height: 125px;
`;class ci extends bt.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:o,title:i,description:r,siteUrl:n}=this.props,a=e?ai:li;return(0,We.jsxs)(a,{id:"twitterPreview",children:[(0,We.jsx)(ti,{src:t||s,alt:o,isLarge:e,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,We.jsxs)(oi,{children:[(0,We.jsx)(Zo,{siteUrl:n}),(0,We.jsx)(ii,{onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,children:i}),(0,We.jsx)(ri,{onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,children:r})]})]})}}ci.propTypes={siteUrl:Ne().string.isRequired,title:Ne().string.isRequired,description:Ne().string,isLarge:Ne().bool,imageUrl:Ne().string,imageFallbackUrl:Ne().string,alt:Ne().string,onSelect:Ne().func,onImageClick:Ne().func,onMouseHover:Ne().func},ci.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{},isLarge:!0};const di=ci,pi=window.yoast.replacementVariableEditor;class ui extends bt.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.SocialPreview="Social"===e.socialMediumName?zo:di,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:o,socialMediumName:i,imageWarnings:r,siteUrl:n,description:a,descriptionInputPlaceholder:l,descriptionPreviewFallback:c,imageUrl:d,imageFallbackUrl:p,alt:u,title:h,titleInputPlaceholder:g,titlePreviewFallback:m,replacementVariables:y,recommendedReplacementVariables:w,applyReplacementVariables:f,onReplacementVariableSearchChange:b,isPremium:x,isLarge:_,socialPreviewLabel:v,idSuffix:k,activeMetaTabId:S}=this.props,T=f({title:h||m,description:a||c});return(0,We.jsxs)(xt().Fragment,{children:[v&&(0,We.jsx)(es.SimulatedLabel,{children:v}),(0,We.jsx)(this.SocialPreview,{onMouseHover:this.setHoveredField,onSelect:this.setActiveField,onImageClick:s,siteUrl:n,title:T.title,description:T.description,imageUrl:d,imageFallbackUrl:p,alt:u,isLarge:_,activeMetaTabId:S}),(0,We.jsx)(jo.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:i,title:h,titleInputPlaceholder:g,onRemoveImageClick:o,imageSelected:!!d,imageUrl:d,imageFallbackUrl:p,onTitleChange:t,onSelectImageClick:s,description:a,descriptionInputPlaceholder:l,imageWarnings:r,replacementVariables:y,recommendedReplacementVariables:w,onReplacementVariableSearchChange:b,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:x,setEditorRef:this.setEditorRef,idSuffix:k})]})}}ui.propTypes={title:Ne().string.isRequired,onTitleChange:Ne().func.isRequired,description:Ne().string.isRequired,onDescriptionChange:Ne().func.isRequired,imageUrl:Ne().string.isRequired,imageFallbackUrl:Ne().string.isRequired,onSelectImageClick:Ne().func.isRequired,onRemoveImageClick:Ne().func.isRequired,socialMediumName:Ne().string.isRequired,alt:Ne().string,isPremium:Ne().bool,imageWarnings:Ne().array,isLarge:Ne().bool,siteUrl:Ne().string,descriptionInputPlaceholder:Ne().string,titleInputPlaceholder:Ne().string,descriptionPreviewFallback:Ne().string,titlePreviewFallback:Ne().string,replacementVariables:pi.replacementVariablesShape,recommendedReplacementVariables:pi.recommendedReplacementVariablesShape,applyReplacementVariables:Ne().func,onReplacementVariableSearchChange:Ne().func,socialPreviewLabel:Ne().string,idSuffix:Ne().string,activeMetaTabId:Ne().string},ui.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,isLarge:!0,siteUrl:"",descriptionInputPlaceholder:"",titleInputPlaceholder:"",descriptionPreviewFallback:"",titlePreviewFallback:"",alt:"",applyReplacementVariables:e=>e,onReplacementVariableSearchChange:null,socialPreviewLabel:"",idSuffix:"",activeMetaTabId:""};const hi={},gi=(e,t,{log:s=console.warn}={})=>{hi[e]||(hi[e]=!0,s(t))},mi=(e,t=c.noop)=>{const s={};for(const o in e)Object.hasOwn(e,o)&&Object.defineProperty(s,o,{set:s=>{e[o]=s,t("set",o,s)},get:()=>(t("get",o),e[o])});return s};mi({squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},(e,t)=>gi(`@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.`)),mi({squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}},(e,t)=>gi(`@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 yi=Be().div`
max-width: calc(527px + 1.5rem);
`,wi=e=>{const t="X"===e.socialMediumName?(0,nt.__)("X share preview","wordpress-seo"):(0,nt.__)("Social share preview","wordpress-seo"),{locationContext:s}=(0,dt.useRootContext)();return(0,We.jsx)(dt.Root,{children:(0,We.jsx)(yi,{children:(0,We.jsx)(dt.FeatureUpsell,{shouldUpsell:!0,variant:"card",cardLink:(0,Qt.addQueryArgs)(wpseoAdminL10n["shortlinks.upsell.social_preview."+e.socialMediumName.toLowerCase()],{context:s}),cardText:(0,nt.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */ /* translators: %1$s expands to Yoast SEO Premium. */
(0,nt.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",children:(0,We.jsxs)("div",{className:"yst-grayscale yst-opacity-50",children:[(0,We.jsx)(dt.Label,{children:t}),(0,We.jsx)(zo,{title:"",description:"",siteUrl:"",imageUrl:"",imageFallbackUrl:"",alt:"",onSelect:c.noop,onImageClick:c.noop,onMouseHover:c.noop})]})})})})};wi.propTypes={socialMediumName:Ne().oneOf(["Social","Twitter","X"]).isRequired};const fi=wi;class bi extends Fe.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:o,socialMediumName:i,imageWarnings:r,description:n,descriptionInputPlaceholder:a,imageUrl:l,imageFallbackUrl:c,alt:d,title:p,titleInputPlaceholder:u,replacementVariables:h,recommendedReplacementVariables:g,onReplacementVariableSearchChange:m,isPremium:y,location:w}=this.props;return(0,We.jsxs)(Fe.Fragment,{children:[(0,We.jsx)(fi,{socialMediumName:i}),(0,We.jsx)(jo.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:i,title:p,titleInputPlaceholder:u,onRemoveImageClick:o,imageSelected:!!l,imageUrl:l,imageFallbackUrl:c,imageAltText:d,onTitleChange:t,onSelectImageClick:s,description:n,descriptionInputPlaceholder:a,imageWarnings:r,replacementVariables:h,recommendedReplacementVariables:g,onReplacementVariableSearchChange:m,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:y,setEditorRef:this.setEditorRef,idSuffix:w})]})}}bi.propTypes={title:Ne().string.isRequired,onTitleChange:Ne().func.isRequired,description:Ne().string.isRequired,onDescriptionChange:Ne().func.isRequired,imageUrl:Ne().string.isRequired,imageFallbackUrl:Ne().string,onSelectImageClick:Ne().func.isRequired,onRemoveImageClick:Ne().func.isRequired,socialMediumName:Ne().string.isRequired,isPremium:Ne().bool,imageWarnings:Ne().array,descriptionInputPlaceholder:Ne().string,titleInputPlaceholder:Ne().string,replacementVariables:pi.replacementVariablesShape,recommendedReplacementVariables:pi.recommendedReplacementVariablesShape,onReplacementVariableSearchChange:Ne().func,location:Ne().string,alt:Ne().string},bi.defaultProps={imageWarnings:[],imageFallbackUrl:"",recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",onReplacementVariableSearchChange:null,location:"",alt:""};const xi=bi,_i=(e,t,s)=>{const[o,i]=(0,Fe.useState)(!1),r=(0,nt.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. */
/* 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,nt.__)("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,Fe.useEffect)(()=>{i(""===t&&e.toLowerCase().endsWith(".avif"))},[e,t]),o?[r]:s},vi=({isPremium:e,onLoad:t,location:s,imageFallbackUrl:o="",imageUrl:i="",imageWarnings:r=[],...n})=>{const[a,l]=(0,Fe.useState)(""),c=_i(o,i,r),d=(0,Fe.useCallback)(e=>{l(e.detail.metaTabId)},[l]);(0,Fe.useEffect)(()=>(setTimeout(t),window.addEventListener("YoastSEO:metaTabChange",d),()=>{window.removeEventListener("YoastSEO:metaTabChange",d)}),[]);const p={isPremium:e,onLoad:t,location:s,imageFallbackUrl:o,imageUrl:i,imageWarnings:c,activeMetaTabId:a,...n};return e?(0,We.jsx)(Oe.Slot,{name:`YoastFacebookPremium${s.charAt(0).toUpperCase()+s.slice(1)}`,fillProps:p}):(0,We.jsx)(xi,{...p})};vi.propTypes={isPremium:Ne().bool.isRequired,onLoad:Ne().func.isRequired,location:Ne().string.isRequired,imageFallbackUrl:Ne().string,imageUrl:Ne().string,imageWarnings:Ne().array};const ki=vi;function Si(e){(function(e){const t=window.wp.media();return t.on("select",()=>{const s=t.state().get("selection").first();var o;e({type:(o=s.attributes).subtype,width:o.width,height:o.height,url:o.url,id:o.id,sizes:o.sizes,alt:o.alt||o.title||o.name})}),t})(e).open()}const Ti=()=>{Si(e=>(0,a.dispatch)("yoast-seo/editor").setFacebookPreviewImage((e=>{const{width:t,height:s}=e,o=(0,jo.determineFacebookImageMode)({width:t,height:s}),i=jo.FACEBOOK_IMAGE_SIZES[o+"Width"],r=jo.FACEBOOK_IMAGE_SIZES[o+"Height"],n=Object.values(e.sizes).find(e=>e.width>=i&&e.height>=r);return{url:n?n.url:e.url,id:e.id,warnings:(0,ws.validateFacebookImage)(e),alt:e.alt||""}})(e)))},Ri=(0,zt.compose)([(0,a.withSelect)(e=>{const{getFacebookDescription:t,getDescription:s,getFacebookTitle:o,getSeoTitle:i,getFacebookImageUrl:r,getImageFallback:n,getFacebookWarnings:a,getRecommendedReplaceVars:l,getReplaceVars:c,getSiteUrl:d,getSeoTitleTemplate:p,getSeoTitleTemplateNoFallback:u,getSocialTitleTemplate:h,getSeoDescriptionTemplate:g,getSocialDescriptionTemplate:m,getReplacedExcerpt:y,getFacebookAltText:w}=e("yoast-seo/editor");return{imageUrl:r(),imageFallbackUrl:n(),recommendedReplacementVariables:l(),replacementVariables:c(),description:t(),descriptionPreviewFallback:m()||s()||g()||y()||"",title:o(),titlePreviewFallback:h()||i()||u()||p()||"",imageWarnings:a(),siteUrl:d(),isPremium:!!z().isPremium,titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Social",alt:w()}}),(0,a.withDispatch)((e,t,{select:s})=>{const{setFacebookPreviewTitle:o,setFacebookPreviewDescription:i,clearFacebookPreviewImage:r,loadFacebookPreviewData:n,findCustomFields:a}=e("yoast-seo/editor"),l=s("yoast-seo/editor").getPostId();return{onSelectImageClick:Ti,onRemoveImageClick:r,onDescriptionChange:i,onTitleChange:o,onLoad:n,onReplacementVariableSearchChange:mo(l,a)}}),us()])(ki),Ei=({isPremium:e,onLoad:t,location:s,imageFallbackUrl:o="",imageUrl:i="",imageWarnings:r=[],...n})=>{const a=_i(o,i,r);(0,Fe.useEffect)(()=>{setTimeout(t)},[]);const l={isPremium:e,onLoad:t,location:s,imageFallbackUrl:o,imageUrl:i,imageWarnings:a,...n};return e?(0,We.jsx)(Oe.Slot,{name:`YoastTwitterPremium${s.charAt(0).toUpperCase()+s.slice(1)}`,fillProps:l}):(0,We.jsx)(xi,{...l})};Ei.propTypes={isPremium:Ne().bool.isRequired,onLoad:Ne().func.isRequired,location:Ne().string.isRequired,imageFallbackUrl:Ne().string,imageUrl:Ne().string,imageWarnings:Ne().array};const ji=Ei,Ci=()=>{Si(e=>(0,a.dispatch)("yoast-seo/editor").setTwitterPreviewImage((e=>{const t="summary"!==(0,c.get)(window,"wpseoScriptData.metabox.twitterCardType")?"landscape":"square",s=jo.TWITTER_IMAGE_SIZES[t+"Width"],o=jo.TWITTER_IMAGE_SIZES[t+"Height"],i=Object.values(e.sizes).find(e=>e.width>=s&&e.height>=o);return{url:i?i.url:e.url,id:e.id,warnings:(0,ws.validateTwitterImage)(e),alt:e.alt||""}})(e)))},Ii=(0,zt.compose)([(0,a.withSelect)(e=>{const{getTwitterDescription:t,getTwitterTitle:s,getTwitterImageUrl:o,getFacebookImageUrl:i,getFacebookTitle:r,getFacebookDescription:n,getDescription:a,getSeoTitle:l,getTwitterWarnings:c,getTwitterImageType:d,getImageFallback:p,getRecommendedReplaceVars:u,getReplaceVars:h,getSiteUrl:g,getSeoTitleTemplate:m,getSeoTitleTemplateNoFallback:y,getSocialTitleTemplate:w,getSeoDescriptionTemplate:f,getSocialDescriptionTemplate:b,getReplacedExcerpt:x,getTwitterAltText:_}=e("yoast-seo/editor");return{imageUrl:o(),imageFallbackUrl:i()||p(),recommendedReplacementVariables:u(),replacementVariables:h(),description:t(),descriptionPreviewFallback:b()||n()||a()||f()||x()||"",title:s(),titlePreviewFallback:w()||r()||l()||y()||m()||"",imageWarnings:c(),siteUrl:g(),isPremium:!!z().isPremium,isLarge:"summary"!==d(),titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"X",alt:_()}}),(0,a.withDispatch)((e,t,{select:s})=>{const{setTwitterPreviewTitle:o,setTwitterPreviewDescription:i,clearTwitterPreviewImage:r,loadTwitterPreviewData:n,findCustomFields:a}=e("yoast-seo/editor"),l=s("yoast-seo/editor").getPostId();return{onSelectImageClick:Ci,onRemoveImageClick:r,onDescriptionChange:i,onTitleChange:o,onLoad:n,onReplacementVariableSearchChange:mo(l,a)}}),us()])(ji),Li=Be()(es.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);
}
`,Ai=e=>(0,We.jsx)(Li,{hasPadding:!1,hasSeparator:!0,...e}),Pi=(0,ws.makeOutboundLink)(Be().a`
display: inline-block;
position: relative;
outline: none;
text-decoration: none;
border-radius: 100%;
width: 24px;
height: 24px;
margin: -4px 0;
vertical-align: middle;
color: ${Co.colors.$color_help_text};
&:hover,
&:focus {
color: ${Co.colors.$color_snippet_focus};
}
// Overwrite the default blue active color for links.
&:active {
color: ${Co.colors.$color_help_text};
}
&::before {
position: absolute;
top: 0;
left: 0;
padding: 2px;
content: "\f223";
}
`),Di=Be()(Pi)`
margin-block: 0;
margin-inline: 8px 0;
`,Oi=()=>(0,We.jsx)(Di,{href:wpseoAdminL10n["shortlinks.social_previews_info"],className:"dashicons",children:(0,We.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,nt.__)("Learn more about social previews","wordpress-seo")})}),Fi=Be().legend`
margin: 16px 0;
padding: 0;
color: ${Co.colors.$color_headings};
font-size: 12px;
font-weight: 300;
`,Mi=Be().legend`
margin: 0 0 16px;
padding: 0;
color: ${Co.colors.$color_headings};
font-size: 12px;
font-weight: 300;
`,qi=Be()(To())`
width: 18px;
height: 18px;
margin: 3px;
`,Ni=e=>{const{useOpenGraphData:t,useTwitterData:s}=e;if(!t&&!s)return;const o=Ls();return(0
/* translators: Social media appearance refers to a preview of how a page will be represented on social media. */,We.jsxs)(Fs,{title:(0,nt.__)("Social media appearance","wordpress-seo"),id:"yoast-social-appearance-modal",shouldCloseOnClickOutside:!1,SuffixHeroIcon:(0,We.jsx)(qi,{className:"yst-text-slate-500",...o}),titleHelpLink:t?(0,We.jsx)(Oi,{}):null,children:[t&&(0,We.jsxs)(Fe.Fragment,{children:[(0,We.jsx)(Mi,{children:(0,nt.__)("Determine how your post should look on social media like Facebook, X, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")}),(0,We.jsx)(Ri,{}),s&&(0,We.jsx)(Fi,{children:(0,nt.__)("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,We.jsx)(Ai,{title:(0,nt.__)("X appearance","wordpress-seo"),hasSeparator:!0,initialIsOpen:!1,children:(0,We.jsx)(Ii,{})}),!t&&s&&(0,We.jsxs)(Fe.Fragment,{children:[(0,We.jsx)(Mi,{children:(0,nt.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below.","wordpress-seo")}),(0,We.jsx)(Ii,{})]})]})};Ni.propTypes={useOpenGraphData:Ne().bool.isRequired,useTwitterData:Ne().bool.isRequired};const Ui=Ni,$i=({title:e,children:t,id:s=null,prefixIcon:o=null,subTitle:i="",hasBetaBadgeLabel:r=!1,hasNewBadgeLabel:n=!1,buttonId:a=null,renderNewBadgeLabel:l=()=>{},initialIsOpen:c=!1})=>{const[d,p]=(0,Fe.useState)(c),u=(0,Fe.useRef)(null);(0,Fe.useEffect)(()=>{c&&u.current&&u.current.focus()},[]);const h=(0,Fe.useCallback)(()=>{p(e=>!e)},[p]);return(0,We.jsxs)("div",{id:s,className:"yoast components-panel__body "+(d?"is-opened":""),children:[(0,We.jsx)("h2",{className:"components-panel__body-title",children:(0,We.jsxs)("button",{ref:u,onClick:h,className:"components-button components-panel__body-toggle",type:"button",id:a,children:[(0,We.jsx)("span",{className:"yoast-icon-span",style:{fill:`${o&&o.color||""}`},children:o&&(0,We.jsx)(es.SvgIcon,{icon:o.icon,color:o.color,size:o.size})}),!n&&(0,We.jsxs)(We.Fragment,{children:[(0,We.jsxs)("span",{className:"yoast-title-container",children:[(0,We.jsx)("div",{className:"yoast-title",children:e}),i&&(0,We.jsx)("div",{className:"yoast-subtitle",children:i})]}),r&&(0,We.jsx)(es.BetaBadge,{})]}),n&&(0,We.jsxs)("div",{className:"yst-flex-grow yst-flex yst-items-center yst-gap-2",children:[(0,We.jsxs)("span",{className:"yst-overflow-x-hidden yst-leading-normal",children:[(0,We.jsx)("div",{className:"yoast-title",children:e}),i&&(0,We.jsx)("div",{className:"yoast-subtitle",children:i})]}),l()]}),(0,We.jsx)("span",{className:"yoast-chevron","aria-hidden":"true"})]})}),d&&t]})},Bi=$i;$i.propTypes={title:Ne().string.isRequired,children:Ne().oneOfType([Ne().node,Ne().arrayOf(Ne().node)]).isRequired,id:Ne().string,prefixIcon:Ne().object,subTitle:Ne().string,hasBetaBadgeLabel:Ne().bool,hasNewBadgeLabel:Ne().bool,buttonId:Ne().string,renderNewBadgeLabel:Ne().func,initialIsOpen:Ne().bool};const Wi=({link:e,text:t})=>(0,We.jsxs)(dt.Root,{children:[(0,We.jsx)("p",{children:t}),(0,We.jsxs)(dt.Button,{href:e,as:"a",className:"yst-gap-2 yst-mb-5 yst-mt-2",variant:"upsell",target:"_blank",rel:"noopener",children:[(0,We.jsx)(ht(),{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"}),(0,nt.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */ /* translators: %1$s expands to Yoast WooCommerce SEO. */
(0,nt.__)("Unlock with %1$s","wordpress-seo"),"Yoast WooCommerce SEO")]})]});Wi.propTypes={link:Ne().string.isRequired,text:Ne().string.isRequired};const Ki=Wi,Hi=(0,ws.makeOutboundLink)(),Vi=Be().div`
padding: 16px;
`,Yi="yoast-seo/editor";function zi({location:e,show:t}){return t?(0,We.jsxs)(es.Alert,{type:"info",children:[(0,nt.sprintf)(/* translators: %s Expands to "Yoast News SEO" */ /* translators: %s Expands to "Yoast News SEO" */
(0,nt.__)("Are you working on a news article? %s helps you optimize your site for Google News.","wordpress-seo"),"Yoast News SEO")+" ",(0,We.jsx)(Hi,{href:window.wpseoAdminL10n[`shortlinks.upsell.${e}.news`],children:(0,nt.sprintf)(/* translators: %s: Expands to "Yoast News SEO". */ /* translators: %s: Expands to "Yoast News SEO". */
(0,nt.__)("Buy %s now!","wordpress-seo"),"Yoast News SEO")})]}):null}zi.propTypes={show:Ne().bool.isRequired,location:Ne().string.isRequired};const Gi=(e,t,s)=>{const o=(0,a.useSelect)(e=>e(Yi).getIsProduct(),[]),i=(0,a.useSelect)(e=>e(Yi).getIsWooSeoActive(),[]),r=o&&i?{name:(0,nt.__)("Item Page","wordpress-seo"),value:"ItemPage"}:e.find(e=>e.value===t);return[{name:(0,nt.sprintf)(/* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */ /* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */
(0,nt.__)("Default for %1$s (%2$s)","wordpress-seo"),s,r?r.name:""),value:""},...e]},Zi=(e,t)=>pt((e=>(0,nt.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 */ /* 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,nt.__)("You can change the default type for %1$s under Content types in the %2$sSettings%3$s.","wordpress-seo"),e,"<link>","</link>"))(e),{link:(0,We.jsx)("a",{href:t,target:"_blank",rel:"noreferrer"})}),Qi=({helpTextTitle:e,helpTextLink:t,helpTextDescription:s})=>(0,We.jsx)(es.FieldGroup,{label:e,linkTo:t,linkText:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,nt.__)("Learn more about structured data with Schema.org","wordpress-seo"),description:s});Qi.propTypes={helpTextTitle:Ne().string.isRequired,helpTextLink:Ne().string.isRequired,helpTextDescription:Ne().string.isRequired};const Xi=({schemaPageTypeChange:e=c.noop,schemaPageTypeSelected:t=null,pageTypeOptions:s,schemaArticleTypeChange:o=c.noop,schemaArticleTypeSelected:i=null,articleTypeOptions:r,showArticleTypeInput:n,additionalHelpTextLink:l,helpTextLink:d,helpTextTitle:p,helpTextDescription:u,postTypeName:h,displayFooter:g=!1,defaultPageType:m,defaultArticleType:y,location:w,isNewsEnabled:f=!1})=>{const b=Gi(s,m,h),x=Gi(r,y,h),_=(0,a.useSelect)(e=>e(Yi).selectLink("https://yoa.st/product-schema-metabox"),[]),v=(0,a.useSelect)(e=>e(Yi).getIsWooSeoUpsell(),[]),[k,S]=(0,Fe.useState)(i),T=(0,nt.__)("Want your products stand out in search results with rich results like price, reviews and more?","wordpress-seo"),R=(0,a.useSelect)(e=>e(Yi).getIsProduct(),[]),E=(0,a.useSelect)(e=>e(Yi).getIsWooSeoActive(),[]),j=(0,a.useSelect)(e=>e(Yi).selectAdminLink("?page=wpseo_page_settings"),[]),C=R&&E,I=(0,Fe.useCallback)((e,t)=>{S(t)},[]);return(0,Fe.useEffect)(()=>{I(null,i)},[i]),(0,We.jsxs)(Fe.Fragment,{children:[(0,We.jsx)(Qi,{helpTextLink:d,helpTextTitle:p,helpTextDescription:u}),(0,We.jsx)(es.FieldGroup,{label:(0,nt.__)("What type of page or content is this?","wordpress-seo"),linkTo:l,linkText:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,nt.__)("Learn more about page or content types","wordpress-seo")}),v&&(0,We.jsx)(Ki,{link:_,text:T}),(0,We.jsx)(es.Select,{id:(0,ws.join)(["yoast-schema-page-type",w]),options:b,label:(0,nt.__)("Page type","wordpress-seo"),onChange:e,selected:C?"ItemPage":t,disabled:C}),n&&(0,We.jsx)(es.Select,{id:(0,ws.join)(["yoast-schema-article-type",w]),options:x,label:(0,nt.__)("Article type","wordpress-seo"),onChange:o,selected:i,onOptionFocus:I}),(0,We.jsx)(zi,{location:w,show:!f&&(L=k,A=y,"NewsArticle"===L||""===L&&"NewsArticle"===A)}),g&&!C&&(0,We.jsx)("p",{children:Zi(h,j)}),C&&(0,We.jsx)("p",{children:(0,nt.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */ /* translators: %1$s expands to Yoast WooCommerce SEO. */
(0,nt.__)("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 L,A},Ji=Ne().arrayOf(Ne().shape({name:Ne().string,value:Ne().string}));Xi.propTypes={schemaPageTypeChange:Ne().func,schemaPageTypeSelected:Ne().string,pageTypeOptions:Ji.isRequired,schemaArticleTypeChange:Ne().func,schemaArticleTypeSelected:Ne().string,articleTypeOptions:Ji.isRequired,showArticleTypeInput:Ne().bool.isRequired,additionalHelpTextLink:Ne().string.isRequired,helpTextLink:Ne().string.isRequired,helpTextTitle:Ne().string.isRequired,helpTextDescription:Ne().string.isRequired,postTypeName:Ne().string.isRequired,displayFooter:Ne().bool,defaultPageType:Ne().string.isRequired,defaultArticleType:Ne().string.isRequired,location:Ne().string.isRequired,isNewsEnabled:Ne().bool};const er=({isMetabox:e,showArticleTypeInput:t=!1,articleTypeLabel:s="",additionalHelpTextLink:o="",pageTypeLabel:i,helpTextLink:r,helpTextTitle:n,helpTextDescription:a,postTypeName:l,displayFooter:c=!1,loadSchemaArticleData:d,loadSchemaPageData:p,location:u,...h})=>{const g=(0,We.jsx)(Xi,{showArticleTypeInput:t,articleTypeLabel:s,additionalHelpTextLink:o,pageTypeLabel:i,helpTextLink:r,helpTextTitle:n,helpTextDescription:a,postTypeName:l,displayFooter:c,loadSchemaArticleData:d,loadSchemaPageData:p,location:u,...h});return e?(0,Fe.createPortal)((0,We.jsx)(Vi,{children:g}),document.getElementById("wpseo-meta-section-schema")):g};er.propTypes={isMetabox:Ne().bool.isRequired,showArticleTypeInput:Ne().bool,articleTypeLabel:Ne().string,additionalHelpTextLink:Ne().string,pageTypeLabel:Ne().string.isRequired,helpTextLink:Ne().string.isRequired,helpTextTitle:Ne().string.isRequired,helpTextDescription:Ne().string.isRequired,postTypeName:Ne().string.isRequired,displayFooter:Ne().bool,loadSchemaArticleData:Ne().func.isRequired,loadSchemaPageData:Ne().func.isRequired,location:Ne().string.isRequired};const tr=er;class sr{static get articleTypeInput(){return document.getElementById("yoast_wpseo_schema_article_type")}static get defaultArticleType(){return(0,c.get)(window,"wpseoScriptData.metabox.schema.defaultArticleType","")}static get articleType(){return E(x,sr.articleTypeInput,"")}static set articleType(e){C(x,sr.articleTypeInput,e)}static get pageTypeInput(){return document.getElementById("yoast_wpseo_schema_page_type")}static get defaultPageType(){return(0,c.get)(window,"wpseoScriptData.metabox.schema.defaultPageType","")}static get pageType(){return E(_,sr.pageTypeInput,"")}static set pageType(e){C(_,sr.pageTypeInput,e)}static get showArticleInput(){return Boolean((0,c.get)(window,"wpseoScriptData.metabox.schema.showArticleInput",!1))}}const or=e=>{(0,Fe.useEffect)(()=>{e.loadSchemaPageData(),sr.showArticleInput&&e.loadSchemaArticleData()},[]);const{pageTypeOptions:t,articleTypeOptions:s}=window.wpseoScriptData.metabox.schema,o={articleTypeLabel:(0,nt.__)("Article type","wordpress-seo"),pageTypeLabel:(0,nt.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:(0,nt.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:(0,nt.__)("This helps search engines understand your website and your content. You can change some of your settings for this page below.","wordpress-seo"),showArticleTypeInput:sr.showArticleInput,pageTypeOptions:t,articleTypeOptions:s},i={...e,...o,...(r=e.location,"metabox"===r?{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 r;return(0,We.jsx)(tr,{...i})};or.propTypes={displayFooter:Ne().bool.isRequired,schemaPageTypeSelected:Ne().string.isRequired,schemaArticleTypeSelected:Ne().string.isRequired,defaultArticleType:Ne().string.isRequired,defaultPageType:Ne().string.isRequired,loadSchemaPageData:Ne().func.isRequired,loadSchemaArticleData:Ne().func.isRequired,schemaPageTypeChange:Ne().func.isRequired,schemaArticleTypeChange:Ne().func.isRequired,location:Ne().string.isRequired};const ir=(0,zt.compose)([(0,a.withSelect)(e=>{const{getPreferences:t,getPageType:s,getDefaultPageType:o,getArticleType:i,getDefaultArticleType:r}=e("yoast-seo/editor"),{displaySchemaSettingsFooter:n,isNewsEnabled:a}=t();return{displayFooter:n,isNewsEnabled:a,schemaPageTypeSelected:s(),schemaArticleTypeSelected:i(),defaultArticleType:r(),defaultPageType:o()}}),(0,a.withDispatch)(e=>{const{setPageType:t,setArticleType:s,getSchemaPageData:o,getSchemaArticleData:i}=e("yoast-seo/editor");return{loadSchemaPageData:o,loadSchemaArticleData:i,schemaPageTypeChange:t,schemaArticleTypeChange:s}}),us()])(or),rr=({noIndex:e,onNoIndexChange:t,editorContext:s,isPrivateBlog:o=!1})=>{const i=(e=>{const t=(0,nt.__)("No","wordpress-seo"),s=(0,nt.__)("Yes","wordpress-seo"),o=e.noIndex?t:s;return window.wpseoScriptData.isPost?[{name:(0,nt.sprintf)(/* translators: %1$s translates to "yes" or "no", %2$s translates to the content type label in plural form */ /* translators: %1$s translates to "yes" or "no", %2$s translates to the content type label in plural form */
(0,nt.__)("%1$s (current default for %2$s)","wordpress-seo"),o,e.postTypeNamePlural),value:"0"},{name:t,value:"1"},{name:s,value:"2"}]:[{name:(0,nt.sprintf)(/* translators: %1$s translates to "yes" or "no", %2$s translates to the content type label in plural form */ /* translators: %1$s translates to "yes" or "no", %2$s translates to the content type label in plural form */
(0,nt.__)("%1$s (current default for %2$s)","wordpress-seo"),o,e.postTypeNamePlural),value:"default"},{name:s,value:"index"},{name:t,value:"noindex"}]})(s);return(0,We.jsx)(Me.LocationConsumer,{children:s=>{const r=(0,ws.join)(["yoast-meta-robots-noindex",s]),n=`${r}-input`;return(0,We.jsxs)(Fe.Fragment,{children:[o&&(0,We.jsx)(es.Alert,{type:"warning",children:(0,nt.__)("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,We.jsx)(es.SingleSelect,{label:(0,nt.__)("Allow search engines to show this content in search results?","wordpress-seo"),onChange:t,id:r,inputId:n,options:i,selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.allow_search_engines"],linkText:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,nt.__)("Learn more about the no-index setting on our help page.","wordpress-seo")})]})}})};rr.propTypes={noIndex:Ne().string.isRequired,onNoIndexChange:Ne().func.isRequired,editorContext:Ne().object.isRequired,isPrivateBlog:Ne().bool};const nr=({noFollow:e,onNoFollowChange:t})=>(0,We.jsx)(Me.LocationConsumer,{children:s=>{const o=(0,ws.join)(["yoast-meta-robots-nofollow",s]);return(0,We.jsx)(es.RadioButtonGroup,{id:o,options:[{value:"0",label:"Yes"},{value:"1",label:"No"}],label:(0,nt.__)("Should search engines follow links on this content?","wordpress-seo"),groupName:o,onChange:t,selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.follow_links"],linkText:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,nt.__)("Learn more about the no-follow setting on our help page.","wordpress-seo")})}});nr.propTypes={noFollow:Ne().string.isRequired,onNoFollowChange:Ne().func.isRequired};const ar=({advanced:e,onAdvancedChange:t})=>(0,We.jsx)(Me.LocationConsumer,{children:s=>{const o=(0,ws.join)(["yoast-meta-robots-advanced",s]),i=`${o}-input`;return(0,We.jsx)(es.MultiSelect,{label:(0,nt.__)("Meta robots advanced","wordpress-seo"),onChange:t,id:o,inputId:i,options:[{name:(0,nt.__)("No Image Index","wordpress-seo"),value:"noimageindex"},{name:(0,nt.__)("No Archive","wordpress-seo"),value:"noarchive"},{name:(0,nt.__)("No Snippet","wordpress-seo"),value:"nosnippet"}],selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.meta_robots"],linkText:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,nt.__)("Learn more about advanced meta robots settings on our help page.","wordpress-seo")})}});ar.propTypes={advanced:Ne().array.isRequired,onAdvancedChange:Ne().func.isRequired};const lr=({breadcrumbsTitle:e,onBreadcrumbsTitleChange:t})=>(0,We.jsx)(Me.LocationConsumer,{children:s=>(0,We.jsx)(es.TextInput,{label:(0,nt.__)("Breadcrumbs Title","wordpress-seo"),id:(0,ws.join)(["yoast-breadcrumbs-title",s]),onChange:t,value:e,linkTo:wpseoAdminL10n["shortlinks.advanced.breadcrumbs_title"],linkText:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,nt.__)("Learn more about the breadcrumbs title setting on our help page.","wordpress-seo")})});lr.propTypes={breadcrumbsTitle:Ne().string.isRequired,onBreadcrumbsTitleChange:Ne().func.isRequired};const cr=({canonical:e,onCanonicalChange:t})=>(0,We.jsx)(Me.LocationConsumer,{children:s=>(0,We.jsx)(es.TextInput,{label:(0,nt.__)("Canonical URL","wordpress-seo"),id:(0,ws.join)(["yoast-canonical",s]),onChange:t,value:e,linkTo:"https://yoa.st/canonical-url",linkText:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,nt.__)("Learn more about canonical URLs on our help page.","wordpress-seo")})});cr.propTypes={canonical:Ne().string.isRequired,onCanonicalChange:Ne().func.isRequired};const dr=({noIndex:e,canonical:t,onNoIndexChange:s,onCanonicalChange:o,onLoad:i,isLoading:r,editorContext:n,isBreadcrumbsDisabled:a,advanced:l=[],onAdvancedChange:d=c.noop,noFollow:p="",onNoFollowChange:u=c.noop,breadcrumbsTitle:h="",onBreadcrumbsTitleChange:g=c.noop,isPrivateBlog:m=!1})=>{(0,Fe.useEffect)(()=>{setTimeout(()=>{r&&i()})});const y={noIndex:e,onNoIndexChange:s,editorContext:n,isPrivateBlog:m},w={noFollow:p,onNoFollowChange:u},f={advanced:l,onAdvancedChange:d},b={breadcrumbsTitle:h,onBreadcrumbsTitleChange:g},x={canonical:t,onCanonicalChange:o};return r?null:(0,We.jsxs)(Fe.Fragment,{children:[(0,We.jsx)(rr,{...y}),n.isPost&&(0,We.jsx)(nr,{...w}),n.isPost&&(0,We.jsx)(ar,{...f}),!a&&(0,We.jsx)(lr,{...b}),(0,We.jsx)(cr,{...x})]})};dr.propTypes={noIndex:Ne().string.isRequired,canonical:Ne().string.isRequired,onNoIndexChange:Ne().func.isRequired,onCanonicalChange:Ne().func.isRequired,onLoad:Ne().func.isRequired,isLoading:Ne().bool.isRequired,editorContext:Ne().object.isRequired,isBreadcrumbsDisabled:Ne().bool.isRequired,isPrivateBlog:Ne().bool,advanced:Ne().array,onAdvancedChange:Ne().func,noFollow:Ne().string,onNoFollowChange:Ne().func,breadcrumbsTitle:Ne().string,onBreadcrumbsTitleChange:Ne().func};const pr=dr,ur=(0,zt.compose)([(0,a.withSelect)(e=>{const{getNoIndex:t,getNoFollow:s,getAdvanced:o,getBreadcrumbsTitle:i,getCanonical:r,getIsLoading:n,getEditorContext:a,getPreferences:l}=e("yoast-seo/editor"),{isBreadcrumbsDisabled:c,isPrivateBlog:d}=l();return{noIndex:t(),noFollow:s(),advanced:o(),breadcrumbsTitle:i(),canonical:r(),isLoading:n(),editorContext:a(),isBreadcrumbsDisabled:c,isPrivateBlog:d}}),(0,a.withDispatch)(e=>{const{setNoIndex:t,setNoFollow:s,setAdvanced:o,setBreadcrumbsTitle:i,setCanonical:r,loadAdvancedSettingsData:n}=e("yoast-seo/editor");return{onNoIndexChange:t,onNoFollowChange:s,onAdvancedChange:o,onBreadcrumbsTitleChange:i,onCanonicalChange:r,onLoad:n}})])(pr),hr=window.yoast.relatedKeyphraseSuggestions;function gr({requestLimitReached:e,isSuccess:t,response:s,requestHasData:o,relatedKeyphrases:i}){return e?"requestLimitReached":!t&&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}(s)?"requestFailed":o?function(e){return e&&e.length>=4}(i)?"maxRelatedKeyphrases":null:"requestEmpty"}function mr({keyphrase:e="",relatedKeyphrases:t=[],renderAction:s=null,requestLimitReached:o=!1,countryCode:i,setCountry:r,newRequest:n,response:a={},isRtl:l=!1,userLocale:c="en_US",isPending:d=!1,isSuccess:p=!1,requestHasData:u=!0,isPremium:h=!1,semrushUpsellLink:g="",premiumUpsellLink:m=""}){var y,w;const[f,b]=(0,Fe.useState)(i),x=(0,Fe.useCallback)(async()=>{n(i,e),b(i)},[i,e,n]);return(0,We.jsxs)(dt.Root,{context:{isRtl:l},children:[!o&&!h&&(0,We.jsx)(hr.PremiumUpsell,{url:m,className:"yst-mb-4"}),!o&&(0,We.jsx)(hr.CountrySelector,{countryCode:i,activeCountryCode:f,onChange:r,onClick:x,className:"yst-mb-4",userLocale:c.split("_")[0]}),!d&&(0,We.jsx)(hr.UserMessage,{variant:gr({requestLimitReached:o,isSuccess:p,response:a,requestHasData:u,relatedKeyphrases:t}),upsellLink:g}),(0,We.jsx)(hr.KeyphrasesTable,{relatedKeyphrases:t,columnNames:null==a||null===(y=a.results)||void 0===y?void 0:y.columnNames,data:null==a||null===(w=a.results)||void 0===w?void 0:w.rows,isPending:d,renderButton:s,className:"yst-mt-4"})]})}mr.propTypes={keyphrase:Ne().string,relatedKeyphrases:Ne().array,renderAction:Ne().func,requestLimitReached:Ne().bool,countryCode:Ne().string.isRequired,setCountry:Ne().func.isRequired,newRequest:Ne().func.isRequired,response:Ne().object,isRtl:Ne().bool,userLocale:Ne().string,isPending:Ne().bool,isSuccess:Ne().bool,requestHasData:Ne().bool,isPremium:Ne().bool,semrushUpsellLink:Ne().string,premiumUpsellLink:Ne().string};const yr=(0,zt.compose)([(0,a.withSelect)(e=>{const{getFocusKeyphrase:t,getSEMrushSelectedCountry:s,getSEMrushRequestLimitReached:o,getSEMrushRequestResponse:i,getSEMrushRequestIsSuccess:r,getSEMrushIsRequestPending:n,getSEMrushRequestHasData:a,getPreference:l,getIsPremium:c,selectLinkParams:d}=e("yoast-seo/editor");return{keyphrase:t(),countryCode:s(),requestLimitReached:o(),response:i(),isSuccess:r(),isPending:n(),requestHasData:a(),isRtl:l("isRtl",!1),userLocale:l("userLocale","en_US"),isPremium:c(),semrushUpsellLink:(0,Qt.addQueryArgs)("https://yoa.st/semrush-prices",d()),premiumUpsellLink:(0,Qt.addQueryArgs)("https://yoa.st/413",d())}}),(0,a.withDispatch)(e=>{const{setSEMrushChangeCountry:t,setSEMrushNewRequest:s}=e("yoast-seo/editor");return{setCountry:e=>{t(e)},newRequest:(e,t)=>{s(e,t)}}})])(mr);var wr=s(5547),fr=s.n(wr);const br=Be().div`
min-width: 600px;
@media screen and ( max-width: 680px ) {
min-width: 0;
width: 86vw;
}
`,xr=(Be().div`
@media screen and ( min-width: 600px ) {
max-width: 420px;
}
`,Be()(es.Icon)`
float: ${(0,ws.getDirectionalStyle)("right","left")};
margin: ${(0,ws.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 _r=s.n(xr);async function vr(e,t,s,o=200){try{const i=await e();return!!i&&(i.status===o?t(i):s(i))}catch(e){console.error(e.message)}}async function kr(e){try{return await Ht()(e)}catch(e){return e.error&&e.status?e:e instanceof Response&&await e.json()}}async function Sr(e){return(0,c.isArray)(e)||(e=[e]),await kr({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:e}})}const Tr=({data:e,mapChartDataToTableData:t=null,dataTableCaption:s,dataTableHeaderLabels:o,isDataTableVisuallyHidden:i=!0})=>e.length!==o.length?(0,We.jsx)("p",{children:(0,nt.__)("The number of headers and header labels don't match.","wordpress-seo")}):(0,We.jsx)("div",{className:i?"screen-reader-text":null,children:(0,We.jsxs)("table",{children:[(0,We.jsx)("caption",{children:s}),(0,We.jsx)("thead",{children:(0,We.jsx)("tr",{children:o.map((e,t)=>(0,We.jsx)("th",{children:e},t))})}),(0,We.jsx)("tbody",{children:(0,We.jsx)("tr",{children:e.map((e,s)=>(0,We.jsx)("td",{children:t(e.y)},s))})})]})});Tr.propTypes={data:Ne().arrayOf(Ne().shape({x:Ne().number,y:Ne().number})).isRequired,mapChartDataToTableData:Ne().func,dataTableCaption:Ne().string.isRequired,dataTableHeaderLabels:Ne().array.isRequired,isDataTableVisuallyHidden:Ne().bool};const Rr=Tr,Er=({data:e,width:t,height:s,fillColor:o=null,strokeColor:i="#000000",strokeWidth:r=1,className:n="",mapChartDataToTableData:a=null,dataTableCaption:l,dataTableHeaderLabels:c,isDataTableVisuallyHidden:d=!0})=>{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-r,g=e.map(e=>`${e.x/p*t},${h-e.y/u*h+r}`).join(" "),m=`0,${h+r} `+g+` ${t},${h+r}`;return(0,We.jsxs)(Fe.Fragment,{children:[(0,We.jsxs)("svg",{width:t,height:s,viewBox:`0 0 ${t} ${s}`,className:n,role:"img","aria-hidden":"true",focusable:"false",children:[(0,We.jsx)("polygon",{fill:o,points:m}),(0,We.jsx)("polyline",{fill:"none",stroke:i,strokeWidth:r,strokeLinejoin:"round",strokeLinecap:"round",points:g})]}),a&&(0,We.jsx)(Rr,{data:e,mapChartDataToTableData:a,dataTableCaption:l,dataTableHeaderLabels:c,isDataTableVisuallyHidden:d})]})};Er.propTypes={data:Ne().arrayOf(Ne().shape({x:Ne().number,y:Ne().number})).isRequired,width:Ne().number.isRequired,height:Ne().number.isRequired,fillColor:Ne().string,strokeColor:Ne().string,strokeWidth:Ne().number,className:Ne().string,mapChartDataToTableData:Ne().func,dataTableCaption:Ne().string.isRequired,dataTableHeaderLabels:Ne().array.isRequired,isDataTableVisuallyHidden:Ne().bool};const jr=Er,Cr=()=>(0,We.jsxs)("p",{className:"yoast-wincher-seo-performance-modal__loading-message",children:[(0,nt.__)("Tracking the ranking position…","wordpress-seo")," ",(0,We.jsx)(es.SvgIcon,{icon:"loading-spinner"})]}),Ir=Be()(es.SvgIcon)`
margin-left: 2px;
flex-shrink: 0;
rotate: ${e=>e.isImproving?"-90deg":"90deg"};
`,Lr=Be().span`
color: ${e=>e.isImproving?"#69AB56":"#DC3332"};
font-size: 13px;
font-weight: 600;
line-height: 20px;
margin-right: 2px;
margin-left: 12px;
`,Ar=Be().td`
padding-right: 0 !important;
& > div {
margin: 0px;
}
`,Pr=Be().td`
padding-left: 2px !important;
`,Dr=Be().td.attrs({className:"yoast-table--nopadding"})`
& > div {
justify-content: center;
}
`,Or=Be().div`
display: flex;
align-items: center;
& > a {
box-sizing: border-box;
}
`,Fr=Be().button`
background: none;
color: inherit;
border: none;
padding: 0;
font: inherit;
cursor: pointer;
outline: inherit;
display: flex;
align-items: center;
`,Mr=Be().tr`
background-color: ${e=>e.isEnabled?"#FFFFFF":"#F9F9F9"} !important;
`;function qr(e){return Math.round(100*e)}function Nr({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,nt.sprintf)((0,nt._n)("%d day","%d days",e,"wordpress-seo"),e))}(e),s=e.position.history.map((e,t)=>({x:t,y:31-e.value}));return(0,We.jsx)(jr,{width:66,height:24,data:s,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",mapChartDataToTableData:qr,dataTableCaption:(0,nt.__)("Keyphrase position in the last 90 days on a scale from 0 to 30.","wordpress-seo"),dataTableHeaderLabels:t})}function Ur({keyphrase:e,isEnabled:t,toggleAction:s,isLoading:o}){return o?(0,We.jsx)(es.SvgIcon,{icon:"loading-spinner"}):(0,We.jsx)(es.Toggle,{id:`toggle-keyphrase-tracking-${e}`,className:"wincher-toggle",isEnabled:t,onSetToggleState:s,showToggleStateLabel:!1})}function $r(e){return!e||!e.position||e.position.value>30?"> 30":e.position.value}Nr.propTypes={chartData:Ne().object};const Br=({rowData:e={}})=>{var t;if(null==e||null===(t=e.position)||void 0===t||!t.change)return(0,We.jsx)(Nr,{chartData:e});const s=e.position.change<0;return(0,We.jsxs)(Fe.Fragment,{children:[(0,We.jsx)(Nr,{chartData:e}),(0,We.jsx)(Lr,{isImproving:s,children:Math.abs(e.position.change)}),(0,We.jsx)(Ir,{icon:"caret-right",color:s?"#69AB56":"#DC3332",size:"14px",isImproving:s})]})};function Wr({rowData:e,websiteId:t,keyphrase:s,onSelectKeyphrases:o}){const i=(0,Fe.useCallback)(()=>{o([s])},[o,s]),r=!(0,c.isEmpty)(e),n=e&&e.updated_at&&_r()(e.updated_at)>=_r()().subtract(7,"days"),a=e?`https://app.wincher.com/websites/${t}/keywords?serp=${e.id}&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast`:null;return r?n?(0,We.jsxs)(Fe.Fragment,{children:[(0,We.jsx)("td",{children:(0,We.jsxs)(Or,{children:[$r(e),(0,We.jsx)(es.ButtonStyledLink,{variant:"secondary",href:a,style:{height:28,marginLeft:12},rel:"noopener",target:"_blank",children:(0,nt.__)("View","wordpress-seo")})]})}),(0,We.jsx)("td",{className:"yoast-table--nopadding",children:(0,We.jsx)(Fr,{type:"button",onClick:i,children:(0,We.jsx)(Br,{rowData:e})})}),(0,We.jsx)("td",{children:(l=e.updated_at,_r()(l).fromNow())})]}):(0,We.jsx)("td",{className:"yoast-table--nopadding",colSpan:"3",children:(0,We.jsx)(Cr,{})}):(0,We.jsx)("td",{className:"yoast-table--nopadding",colSpan:"3",children:(0,We.jsx)("i",{children:(0,nt.__)("Activate tracking to show the ranking position","wordpress-seo")})});var l}function Kr({keyphrase:e,rowData:t={},onTrackKeyphrase:s=c.noop,onUntrackKeyphrase:o=c.noop,isFocusKeyphrase:i=!1,isDisabled:r=!1,isLoading:n=!1,websiteId:a="",isSelected:l,onSelectKeyphrases:d}){var p;const u=!(0,c.isEmpty)(t),h=!(0,c.isEmpty)(null==t||null===(p=t.position)||void 0===p?void 0:p.history),g=(0,Fe.useCallback)(()=>{r||(u?o(e,t.id):s(e))},[e,s,o,u,t,r]),m=(0,Fe.useCallback)(()=>{d(t=>l?t.filter(t=>t!==e):t.concat(e))},[d,l,e]);return(0,We.jsxs)(Mr,{isEnabled:u,children:[(0,We.jsx)(Ar,{children:h&&(0,We.jsx)(es.Checkbox,{id:"select-"+e,onChange:m,checked:l,label:""})}),(0,We.jsxs)(Pr,{children:[e,i&&(0,We.jsx)("span",{children:"*"})]}),Wr({rowData:t,websiteId:a,keyphrase:e,onSelectKeyphrases:d}),(0,We.jsx)(Dr,{children:Ur({keyphrase:e,isEnabled:u,toggleAction:g,isLoading:n})})]})}Br.propTypes={rowData:Ne().object},Kr.propTypes={rowData:Ne().object,keyphrase:Ne().string.isRequired,onTrackKeyphrase:Ne().func,onUntrackKeyphrase:Ne().func,isFocusKeyphrase:Ne().bool,isDisabled:Ne().bool,isLoading:Ne().bool,websiteId:Ne().string,isSelected:Ne().bool.isRequired,onSelectKeyphrases:Ne().func.isRequired};const Hr=(0,ws.makeOutboundLink)(),Vr=Be().span`
display: block;
font-style: italic;
@media (min-width: 782px) {
display: inline;
position: absolute;
${(0,ws.getDirectionalStyle)("right","left")}: 8px;
}
`,Yr=Be().div`
width: 100%;
overflow-y: auto;
`,zr=Be().th`
pointer-events: ${e=>e.isDisabled?"none":"initial"};
padding-right: 0 !important;
& > div {
margin: 0px;
}
`,Gr=Be().th`
padding-left: 2px !important;
`,Zr=e=>{const t=(0,Fe.useRef)();return(0,Fe.useEffect)(()=>{t.current=e}),t.current},Qr=({addTrackedKeyphrase:e,isLoggedIn:t=!1,isNewlyAuthenticated:s=!1,keyphrases:o=[],newRequest:i,removeTrackedKeyphrase:r,setRequestFailed:n,setKeyphraseLimitReached:a,setRequestSucceeded:l,setTrackedKeyphrases:d,setHasTrackedAll:p,trackAll:u=!1,trackedKeyphrases:h=null,websiteId:g="",permalink:m,focusKeyphrase:y="",startAt:w=null,selectedKeyphrases:f,onSelectKeyphrases:b})=>{const x=(0,Fe.useRef)(),_=(0,Fe.useRef)(),v=(0,Fe.useRef)(!1),[k,S]=(0,Fe.useState)([]),T=(0,Fe.useCallback)(e=>{const t=e.toLowerCase();return h&&!(0,c.isEmpty)(h)&&Object.prototype.hasOwnProperty.call(h,t)?h[t]:null},[h]),R=(0,Fe.useMemo)(()=>async()=>{await vr(()=>{var e;return _.current&&_.current.abort(),_.current="undefined"==typeof AbortController?null:new AbortController,async function(e=null,t=null,s=null,o){return await kr({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:e,permalink:s,startAt:t},signal:o})}(o,w,m,null===(e=_.current)||void 0===e?void 0:e.signal)},e=>{l(e),d(e.results)},e=>{n(e)})},[l,n,d,o,m,w]),E=(0,Fe.useCallback)(async t=>{const s=(Array.isArray(t)?t:[t]).map(e=>e.toLowerCase());S(e=>[...e,...s]),await vr(()=>Sr(s),t=>{l(t),e(t.results),R()},e=>{400===e.status&&e.limit&&a(e.limit),n(e)},201),S(e=>(0,c.without)(e,...s))},[l,n,a,e,R]),j=(0,Fe.useCallback)(async(e,t)=>{e=e.toLowerCase(),S(t=>[...t,e]),await vr(()=>async function(e){return await kr({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:e}})}(t),t=>{l(t),r(e)},e=>{n(e)}),S(t=>(0,c.without)(t,e))},[l,r,n]),C=(0,Fe.useCallback)(async e=>{i(),await E(e)},[i,E]),I=Zr(m),L=Zr(o),A=Zr(w),P=m&&w;(0,Fe.useEffect)(()=>{t&&P&&(m!==I||(0,c.difference)(o,L).length||w!==A)&&R()},[t,m,I,o,L,R,P,w,A]),(0,Fe.useEffect)(()=>{if(t&&u&&null!==h){const e=o.filter(e=>!T(e));e.length&&E(e),p()}},[t,u,h,E,p,T,o]),(0,Fe.useEffect)(()=>{s&&!v.current&&(R(),v.current=!0)},[s,R]),(0,Fe.useEffect)(()=>{if(t&&!(0,c.isEmpty)(h))return(0,c.filter)(h,e=>(0,c.isEmpty)(e.updated_at)).length>0&&(x.current=setInterval(()=>{R()},1e4)),()=>{clearInterval(x.current)}},[t,h,R]);const D=t&&null===h,O=(0,Fe.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]),F=(0,Fe.useMemo)(()=>f.length>0&&O.length>0&&O.every(e=>f.includes(e)),[f,O]),M=(0,Fe.useCallback)(()=>{b(F?[]:O)},[b,F,O]),q=(0,Fe.useMemo)(()=>(0,c.orderBy)(o,[e=>Object.values(h||{}).map(e=>e.keyword).includes(e)],["desc"]),[o,h]);return o&&!(0,c.isEmpty)(o)&&(0,We.jsxs)(Fe.Fragment,{children:[(0,We.jsx)(Yr,{children:(0,We.jsxs)("table",{className:"yoast yoast-table",children:[(0,We.jsx)("thead",{children:(0,We.jsxs)("tr",{children:[(0,We.jsx)(zr,{isDisabled:0===O.length,children:(0,We.jsx)(es.Checkbox,{id:"select-all",onChange:M,checked:F,label:""})}),(0,We.jsx)(Gr,{scope:"col",abbr:(0,nt.__)("Keyphrase","wordpress-seo"),children:(0,nt.__)("Keyphrase","wordpress-seo")}),(0,We.jsx)("th",{scope:"col",abbr:(0,nt.__)("Position","wordpress-seo"),children:(0,nt.__)("Position","wordpress-seo")}),(0,We.jsx)("th",{scope:"col",abbr:(0,nt.__)("Position over time","wordpress-seo"),children:(0,nt.__)("Position over time","wordpress-seo")}),(0,We.jsx)("th",{scope:"col",abbr:(0,nt.__)("Last updated","wordpress-seo"),children:(0,nt.__)("Last updated","wordpress-seo")}),(0,We.jsx)("th",{scope:"col",abbr:(0,nt.__)("Tracking","wordpress-seo"),children:(0,nt.__)("Tracking","wordpress-seo")})]})}),(0,We.jsx)("tbody",{children:q.map((e,s)=>(0,We.jsx)(Kr,{keyphrase:e,onTrackKeyphrase:C,onUntrackKeyphrase:j,rowData:T(e),isFocusKeyphrase:e===y.trim().toLowerCase(),websiteId:g,isDisabled:!t,isLoading:D||k.indexOf(e.toLowerCase())>=0,isSelected:f.includes(e),onSelectKeyphrases:b},`trackable-keyphrase-${s}`))})]})}),(0,We.jsxs)("p",{style:{marginBottom:0,position:"relative"},children:[(0,We.jsx)(Hr,{href:wpseoAdminGlobalL10n["links.wincher.login"],children:(0,nt.sprintf)(/* translators: %s expands to Wincher */ /* translators: %s expands to Wincher */
(0,nt.__)("Get more insights over at %s","wordpress-seo"),"Wincher")}),(0,We.jsx)(Vr,{children:(0,nt.__)("* focus keyphrase","wordpress-seo")})]})]})};Qr.propTypes={addTrackedKeyphrase:Ne().func.isRequired,isLoggedIn:Ne().bool,isNewlyAuthenticated:Ne().bool,keyphrases:Ne().array,newRequest:Ne().func.isRequired,removeTrackedKeyphrase:Ne().func.isRequired,setRequestFailed:Ne().func.isRequired,setKeyphraseLimitReached:Ne().func.isRequired,setRequestSucceeded:Ne().func.isRequired,setTrackedKeyphrases:Ne().func.isRequired,setHasTrackedAll:Ne().func.isRequired,trackAll:Ne().bool,trackedKeyphrases:Ne().object,websiteId:Ne().string,permalink:Ne().string.isRequired,focusKeyphrase:Ne().string,startAt:Ne().string,selectedKeyphrases:Ne().arrayOf(Ne().string).isRequired,onSelectKeyphrases:Ne().func.isRequired};const Xr=Qr,Jr=(0,zt.compose)([(0,a.withSelect)(e=>{const{getWincherWebsiteId:t,getWincherTrackableKeyphrases:s,getWincherLoginStatus:o,getWincherPermalink:i,getFocusKeyphrase:r,isWincherNewlyAuthenticated:n,shouldWincherTrackAll:a}=e("yoast-seo/editor");return{focusKeyphrase:r(),keyphrases:s(),isLoggedIn:o(),trackAll:a(),websiteId:t(),isNewlyAuthenticated:n(),permalink:i()}}),(0,a.withDispatch)(e=>{const{setWincherNewRequest:t,setWincherRequestSucceeded:s,setWincherRequestFailed:o,setWincherSetKeyphraseLimitReached:i,setWincherTrackedKeyphrases:r,setWincherTrackingForKeyphrase:n,setWincherTrackAllKeyphrases:a,unsetWincherTrackingForKeyphrase:l}=e("yoast-seo/editor");return{newRequest:()=>{t()},setRequestSucceeded:e=>{s(e)},setRequestFailed:e=>{o(e)},setKeyphraseLimitReached:e=>{i(e)},addTrackedKeyphrase:e=>{n(e)},removeTrackedKeyphrase:e=>{l(e)},setTrackedKeyphrases:e=>{r(e)},setHasTrackedAll:()=>{a(!1)}}})])(Xr);class en{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,o=["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,o.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}async messageHandler(e){const{data:t,source:s,origin:o}=e;o===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 tn=()=>(0,We.jsx)(es.Alert,{type:"info",children:(0,nt.sprintf)(/* translators: %s: Expands to "Wincher". */ /* translators: %s: Expands to "Wincher". */
(0,nt.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher")}),sn=()=>(0,We.jsx)(es.Alert,{type:"success",children:(0,nt.sprintf)(/* translators: %s: Expands to "Wincher". */ /* translators: %s: Expands to "Wincher". */
(0,nt.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher")}),on=()=>(0,We.jsx)(es.Alert,{type:"info",children:(0,nt.sprintf)(/* translators: %s: Expands to "Wincher". */ /* translators: %s: Expands to "Wincher". */
(0,nt.__)("%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")}),rn=(0,ws.makeOutboundLink)(),nn=(0,ws.makeOutboundLink)(),an=()=>{const e=(0,nt.sprintf)(/* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */ /* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */
(0,nt.__)("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,We.jsx)("p",{children:pt(e,{wincherLink:(0,We.jsx)(rn,{href:wpseoAdminGlobalL10n["links.wincher.website"],children:"Wincher"}),wincherReadMoreLink:(0,We.jsx)(nn,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"],children:(0,nt.__)("Read more about keyphrase tracking with Wincher","wordpress-seo")})})})},ln=(0,ws.makeOutboundLink)(),cn=({limit:e=10})=>{const t=(0,nt.sprintf)(/* translators: %1$d expands to the amount of allowed keyphrases on a free account, %2$s expands to a link to Wincher plans. */ /* translators: %1$d expands to the amount of allowed keyphrases on a free account, %2$s expands to a link to Wincher plans. */
(0,nt.__)("You've reached the maximum amount of %1$d keyphrases you can add to your Wincher account. If you wish to add more keyphrases, please %2$s.","wordpress-seo"),e,"<UpdateWincherPlanLink/>");return(0,We.jsx)(es.Alert,{type:"error",children:pt(t,{UpdateWincherPlanLink:(0,We.jsx)(ln,{href:wpseoAdminGlobalL10n["links.wincher.pricing"],children:(0,nt.sprintf)(/* translators: %s : Expands to "Wincher". */ /* translators: %s : Expands to "Wincher". */
(0,nt.__)("upgrade your %s plan","wordpress-seo"),"Wincher")})})})};cn.propTypes={limit:Ne().number};const dn=cn,pn=()=>(0,We.jsx)(es.Alert,{type:"error",children:(0,nt.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo")}),un=()=>(0,We.jsx)(es.Alert,{type:"error",children:(0,nt.__)("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")}),hn=({onReconnect:e,className:t=""})=>{const s=(0,nt.sprintf)(/* translators: %s expands to a link to open the Wincher login popup. */ /* translators: %s expands to a link to open the Wincher login popup. */
(0,nt.__)("It seems like something went wrong when retrieving your website's data. Please %s and try again.","wordpress-seo"),"<reconnectToWincher/>","Wincher");return(0,We.jsx)(es.Alert,{type:"error",className:t,children:pt(s,{reconnectToWincher:(0,We.jsx)("a",{href:"#",onClick:t=>{t.preventDefault(),e()},children:(0,nt.sprintf)(/* translators: %s : Expands to "Wincher". */ /* translators: %s : Expands to "Wincher". */
(0,nt.__)("reconnect to %s","wordpress-seo"),"Wincher")})})})};hn.propTypes={onReconnect:Ne().func.isRequired,className:Ne().string};const gn=hn,mn=()=>(0,We.jsx)(es.Alert,{type:"error",children:(0,nt.__)("Something went wrong while tracking the ranking position(s) of your page. Please try again later.","wordpress-seo")}),yn=Be().p`
color: ${Co.colors.$color_pink_dark};
font-size: 14px;
font-weight: 700;
margin: 13px 0 10px;
`,wn=Be()(es.SvgIcon)`
margin-right: 5px;
vertical-align: middle;
`,fn=Be().button`
position: absolute;
top: 9px;
right: 9px;
border: none;
background: none;
cursor: pointer;
`,bn=Be().p`
font-size: 13px;
font-weight: 500;
margin: 10px 0 13px;
`,xn=Be().div`
position: relative;
background: ${e=>e.isTitleShortened?"#f5f7f7":"transparent"};
border: 1px solid #c7c7c7;
border-left: 4px solid${Co.colors.$color_pink_dark};
padding: 0 16px;
margin-bottom: 1.5em;
`,vn=({limit:e,usage:t,isTitleShortened:s=!1,isFreeAccount:o=!1})=>{const i=(0,nt.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
* %2$s expands to the account keywords limit.
*/
/* Translators: %1$s expands to the number of used keywords.
* %2$s expands to the account keywords limit.
*/
(0,nt.__)("Your are tracking %1$s out of %2$s keyphrases included in your free account.","wordpress-seo"),t,e),r=(0,nt.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
* %2$s expands to the account keywords limit.
*/
/* Translators: %1$s expands to the number of used keywords.
* %2$s expands to the account keywords limit.
*/
(0,nt.__)("Your are tracking %1$s out of %2$s keyphrases included in your account.","wordpress-seo"),t,e),n=o?i:r,a=(0,nt.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
* %2$s expands to the account keywords limit.
*/
/* Translators: %1$s expands to the number of used keywords.
* %2$s expands to the account keywords limit.
*/
(0,nt.__)("Keyphrases tracked: %1$s/%2$s","wordpress-seo"),t,e),l=s?a:n;return(0,We.jsxs)(yn,{children:[s&&(0,We.jsx)(wn,{icon:"exclamation-triangle",color:Co.colors.$color_pink_dark,size:"14px"}),l]})};vn.propTypes={limit:Ne().number.isRequired,usage:Ne().number.isRequired,isTitleShortened:Ne().bool,isFreeAccount:Ne().bool};const kn=(0,ws.makeOutboundLink)(),Sn=({discount:e,months:t})=>{const s=(0,We.jsx)(kn,{href:wpseoAdminGlobalL10n["links.wincher.upgrade"],style:{fontWeight:600},children:(0,nt.sprintf)(/* Translators: %s : Expands to "Wincher". */ /* Translators: %s : Expands to "Wincher". */
(0,nt.__)("Click here to upgrade your %s plan","wordpress-seo"),"Wincher")});if(!e||!t)return(0,We.jsx)(bn,{children:s});const o=100*e,i=(0,nt.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.
*/
/* 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,nt.__)("%1$s and get an exclusive %2$s discount for %3$s month(s).","wordpress-seo"),"<wincherAccountUpgradeLink/>",o+"%",t);return(0,We.jsx)(bn,{children:pt(i,{wincherAccountUpgradeLink:s})})};Sn.propTypes={discount:Ne().number,months:Ne().number};const Tn=({onClose:e=null,isTitleShortened:t=!1,trackingInfo:s=null})=>{const o=(()=>{const[e,t]=(0,Fe.useState)(null);return(0,Fe.useEffect)(()=>{e||async function(){return await kr({path:"yoast/v1/wincher/account/upgrade-campaign",method:"GET"})}().then(e=>t(e))},[e]),e})();if(null===s)return null;const{limit:i,usage:r}=s;if(!(i&&r/i>=.8))return null;const n=Boolean(null==o?void 0:o.discount);return(0,We.jsxs)(xn,{isTitleShortened:t,children:[e&&(0,We.jsx)(fn,{type:"button","aria-label":/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,nt.__)("Close the upgrade callout","wordpress-seo"),onClick:e,children:(0,We.jsx)(es.SvgIcon,{icon:"times-circle",color:Co.colors.$color_pink_dark,size:"14px"})}),(0,We.jsx)(vn,{...s,isTitleShortened:t,isFreeAccount:n}),(0,We.jsx)(Sn,{discount:null==o?void 0:o.discount,months:null==o?void 0:o.months})]})};Tn.propTypes={onClose:Ne().func,isTitleShortened:Ne().bool,trackingInfo:Ne().object};const Rn=Tn,En=window.yoast["chart.js"],jn="label";function Cn(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function In(e,t){e.labels=t}function Ln(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:jn;const o=[];e.datasets=t.map(t=>{const i=e.datasets.find(e=>e[s]===t[s]);return i&&t.data&&!o.includes(i)?(o.push(i),Object.assign(i,t),i):{...t}})}function An(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jn;const s={labels:[],datasets:[]};return In(s,e.labels),Ln(s,e.datasets,t),s}function Pn(e,t){const{height:s=150,width:o=300,redraw:i=!1,datasetIdKey:r,type:n,data:a,options:l,plugins:c=[],fallbackContent:d,updateMode:p,...u}=e,h=(0,bt.useRef)(null),g=(0,bt.useRef)(),m=()=>{h.current&&(g.current=new En.Chart(h.current,{type:n,data:An(a,r),options:l&&{...l},plugins:c}),Cn(t,g.current))},y=()=>{Cn(t,null),g.current&&(g.current.destroy(),g.current=null)};return(0,bt.useEffect)(()=>{!i&&g.current&&l&&function(e,t){const s=e.options;s&&t&&Object.assign(s,t)}(g.current,l)},[i,l]),(0,bt.useEffect)(()=>{!i&&g.current&&In(g.current.config.data,a.labels)},[i,a.labels]),(0,bt.useEffect)(()=>{!i&&g.current&&a.datasets&&Ln(g.current.config.data,a.datasets,r)},[i,a.datasets]),(0,bt.useEffect)(()=>{g.current&&(i?(y(),setTimeout(m)):g.current.update(p))},[i,l,a.labels,a.datasets,p]),(0,bt.useEffect)(()=>{g.current&&(y(),setTimeout(m))},[n]),(0,bt.useEffect)(()=>(m(),()=>y()),[]),bt.createElement("canvas",Object.assign({ref:h,role:"img",height:s,width:o},u),d)}const Dn=(0,bt.forwardRef)(Pn);function On(e,t){return En.Chart.register(t),(0,bt.forwardRef)((t,s)=>bt.createElement(Dn,Object.assign({},t,{ref:s,type:e})))}const Fn=On("line",En.LineController),Mn={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"};En._adapters._date.override("function"==typeof _r()?{_id:"moment",formats:function(){return Mn},parse:function(e,t){return"string"==typeof e&&"string"==typeof t?e=_r()(e,t):e instanceof _r()||(e=_r()(e)),e.isValid()?e.valueOf():null},format:function(e,t){return _r()(e).format(t)},add:function(e,t,s){return _r()(e).add(t,s).valueOf()},diff:function(e,t,s){return _r()(e).diff(_r()(t),s)},startOf:function(e,t,s){return e=_r()(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 _r()(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 qn=["top","right","bottom","left"];function Nn(e,t,s){const o={};s=s?"-"+s:"";for(let i=0;i<4;i++){const r=qn[i];o[r]=parseFloat(e[t+"-"+r+s])||0}return o.width=o.left+o.right,o.height=o.top+o.bottom,o}!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){}}(),En.Chart.register(En.CategoryScale,En.LineController,En.LineElement,En.PointElement,En.LinearScale,En.TimeScale,En.Legend,En.Tooltip);const Un=["#ff983b","#ffa3f7","#3798ff","#ff3b3b","#acce81","#b51751","#3949ab","#26c6da","#ccb800","#de66ff","#4db6ac","#ffab91","#45f5f1","#77f210","#90a4ae","#ffd54f","#006b5e","#8ec7d2","#b1887c","#cc9300"];function $n({datasets:e,isChartShown:t,keyphrases:s}){if(!t)return null;const o=(0,Fe.useMemo)(()=>Object.fromEntries([...s].sort().map((e,t)=>[e,Un[t%Un.length]])),[s]),i=e.map(e=>{const t=o[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,We.jsx)(Fn,{height:100,data:{datasets:i},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=>_r()(e[0].raw.x).utc().format("YYYY-MM-DD")},titleAlign:"center",mode:"xPoint",position:"nearest",usePointStyle:!0,boxHeight:7,boxWidth:7,boxPadding:2}},scales:{x:{bounds:"ticks",type:"time",time:{unit:"day",minUnit:"day"},grid:{display:!1},ticks:{autoSkipPadding:50,maxRotation:0,color:"black"}},y:{bounds:"ticks",offset:!0,reverse:!0,ticks:{precision:0,color:"black"},max:31}}}})}En.Interaction.modes.xPoint=(e,t,s,o)=>{const i=function(e,t){if("native"in e)return e;const{canvas:s,currentDevicePixelRatio:o}=t,i=(h=s).ownerDocument.defaultView.getComputedStyle(h,null),r="border-box"===i.boxSizing,n=Nn(i,"padding"),a=Nn(i,"border","width"),{x:l,y:c,box:d}=function(e,t){const s=e.touches,o=s&&s.length?s[0]:e,{offsetX:i,offsetY:r}=o;let n,a,l=!1;if(((e,t,s)=>(e>0||t>0)&&(!s||!s.shadowRoot))(i,r,e.target))n=i,a=r;else{const e=t.getBoundingClientRect();n=o.clientX-e.left,a=o.clientY-e.top,l=!0}return{x:n,y:a,box:l}}(e,s),p=n.left+(d&&a.left),u=n.top+(d&&a.top);var h;let{width:g,height:m}=t;return r&&(g-=n.width+a.width,m-=n.height+a.height),{x:Math.round((l-p)/g*s.width/o),y:Math.round((c-u)/m*s.height/o)}}(t,e);let r=[];if(En.Interaction.evaluateInteractionItems(e,"x",i,(e,t,s)=>{e.inXRange(i.x,o)&&r.push({element:e,datasetIndex:t,index:s})}),0===r.length)return r;const n=r.reduce((e,t)=>Math.abs(i.x-e.element.x)<Math.abs(i.x-t.element.x)?e:t).element.x;return r=r.filter(e=>e.element.x===n),r.some(e=>Math.abs(e.element.y-i.y)<10)?r:[]},$n.propTypes={datasets:Ne().arrayOf(Ne().shape({label:Ne().string.isRequired,data:Ne().arrayOf(Ne().shape({datetime:Ne().string.isRequired,value:Ne().number.isRequired})).isRequired,selected:Ne().bool})).isRequired,isChartShown:Ne().bool.isRequired,keyphrases:Ne().array.isRequired};const Bn=({response:e,onLogin:t})=>[401,403,404].includes(e.status)?(0,We.jsx)(gn,{onReconnect:t}):(0,We.jsx)(mn,{});Bn.propTypes={response:Ne().object.isRequired,onLogin:Ne().func.isRequired};const Wn=({isSuccess:e,response:t={},allKeyphrasesMissRanking:s,onLogin:o,keyphraseLimitReached:i,limit:r})=>i?(0,We.jsx)(dn,{limit:r}):(0,c.isEmpty)(t)||e?s?(0,We.jsx)(on,{}):null:(0,We.jsx)(Bn,{response:t,onLogin:o});Wn.propTypes={isSuccess:Ne().bool.isRequired,allKeyphrasesMissRanking:Ne().bool.isRequired,response:Ne().object,onLogin:Ne().func.isRequired,keyphraseLimitReached:Ne().bool.isRequired,limit:Ne().number.isRequired};let Kn=null;const Hn=async({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:o,addTrackedKeyphrase:i,setKeyphraseLimitReached:r})=>{if(Kn&&!Kn.isClosed())return void Kn.focus();const{url:n}=await async function(){return await kr({path:"yoast/v1/wincher/authorization-url",method:"GET"})}();Kn=new en(n,{success:{type:"wincher:oauth:success",callback:n=>(async({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:o,addTrackedKeyphrase:i,setKeyphraseLimitReached:r},n)=>{await vr(()=>async function(e){const{code:t,websiteId:s}=e;return await kr({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:t,websiteId:s}})}(n),async a=>{e(!0,!0,n.websiteId.toString()),t(a);const l=(Array.isArray(o)?o:[o]).map(e=>e.toLowerCase());await vr(()=>Sr(l),e=>{t(e),i(e.results)},e=>{400===e.status&&e.limit&&r(e.limit),s(e)},201);const c=Kn.getPopup();c&&c.close()},async e=>s(e))})({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:o,addTrackedKeyphrase:i,setKeyphraseLimitReached:r},n)},error:{type:"wincher:oauth:error",callback:()=>e(!1,!1)}},{title:"Wincher_login",width:500,height:700}),Kn.createPopup()},Vn=e=>e.isLoggedIn?null:(0,We.jsx)("p",{children:(0,We.jsx)(es.NewButton,{onClick:e.onLogin,variant:"primary",children:(0,nt.sprintf)(/* translators: %s expands to Wincher */ /* translators: %s expands to Wincher */
(0,nt.__)("Connect with %s","wordpress-seo"),"Wincher")})});Vn.propTypes={isLoggedIn:Ne().bool.isRequired,onLogin:Ne().func.isRequired};const Yn=Be().div`
p {
margin: 1em 0;
}
`,zn=Be().div`
${e=>e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"};
`,Gn=Be().div`
font-weight: var(--yoast-font-weight-bold);
color: var(--yoast-color-label);
font-size: var(--yoast-font-size-default);
`,Zn=Be().div.attrs({className:"yoast-field-group"})`
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 14px;
`,Qn=Be().div`
margin: 8px 0;
`,Xn=_r().utc().startOf("day"),Jn=[{name:(0,nt.__)("Last day","wordpress-seo"),value:_r()(Xn).subtract(1,"days").format(),defaultIndex:1},{name:(0,nt.__)("Last week","wordpress-seo"),value:_r()(Xn).subtract(1,"week").format(),defaultIndex:2},{name:(0,nt.__)("Last month","wordpress-seo"),value:_r()(Xn).subtract(1,"month").format(),defaultIndex:3},{name:(0,nt.__)("Last year","wordpress-seo"),value:_r()(Xn).subtract(1,"year").format(),defaultIndex:0}],ea=({onSelect:e,selected:t=null,options:s,isLoggedIn:o})=>o?s.length<1?null:(0,We.jsx)("select",{className:"components-select-control__input",id:"wincher-period-picker",value:(null==t?void 0:t.value)||s[0].value,onChange:e,children:s.map(e=>(0,We.jsx)("option",{value:e.value,children:e.name},e.name))}):null;ea.propTypes={onSelect:Ne().func.isRequired,selected:Ne().object,options:Ne().array.isRequired,isLoggedIn:Ne().bool.isRequired};const ta=({trackedKeyphrases:e=null,isLoggedIn:t,keyphrases:s,shouldTrackAll:o,permalink:i,historyDaysLimit:r=0})=>{if(!i&&t)return(0,We.jsx)(un,{});if(0===s.length)return(0,We.jsx)(pn,{});const n=_r()(Xn).subtract(r,"days"),a=Jn.filter(e=>_r()(e.value).isSameOrAfter(n)),l=(0,c.orderBy)(a,e=>e.defaultIndex,"desc")[0],[d,p]=(0,Fe.useState)(l),[u,h]=(0,Fe.useState)([]),g=u.length>0,m=(0,zt.usePrevious)(e);(0,Fe.useEffect)(()=>{if(!(0,c.isEmpty)(e)&&(0,c.difference)(Object.keys(e),Object.keys(m||[])).length){const t=Object.values(e).map(e=>e.keyword);h(t)}},[e,m]),(0,Fe.useEffect)(()=>{p(l)},[null==l?void 0:l.name]);const y=(0,Fe.useCallback)(e=>{const t=Jn.find(t=>t.value===e.target.value);t&&p(t)},[p]),w=(0,Fe.useMemo)(()=>(0,c.isEmpty)(u)||(0,c.isEmpty)(e)?[]:Object.values(e).filter(e=>{var t;return!(null==e||null===(t=e.position)||void 0===t||!t.history)}).map(e=>{var t;return{label:e.keyword,data:e.position.history,selected:u.includes(e.keyword)&&!(0,c.isEmpty)(null===(t=e.position)||void 0===t?void 0:t.history)}}),[u,e]);return(0,We.jsxs)(zn,{isDisabled:!t,children:[(0,We.jsx)("p",{children:(0,nt.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")}),t&&o&&(0,We.jsx)(tn,{}),(0,We.jsx)(Zn,{children:(0,We.jsx)(ea,{selected:d,onSelect:y,options:a,isLoggedIn:t})}),(0,We.jsx)(Qn,{children:(0,We.jsx)($n,{isChartShown:g,datasets:w,keyphrases:s})}),(0,We.jsx)(Jr,{startAt:null==d?void 0:d.value,selectedKeyphrases:u,onSelectKeyphrases:h,trackedKeyphrases:e})]})};function sa({trackedKeyphrases:e=null,addTrackedKeyphrase:t,isLoggedIn:s=!1,isNewlyAuthenticated:o=!1,keyphrases:i=[],response:r={},shouldTrackAll:n=!1,permalink:a="",allKeyphrasesMissRanking:l,isSuccess:c,keyphraseLimitReached:d,limit:p,setRequestSucceeded:u,setRequestFailed:h,setKeyphraseLimitReached:g,onAuthentication:m}){const y=(0,Fe.useCallback)(()=>{Hn({onAuthentication:m,setRequestSucceeded:u,setRequestFailed:h,keyphrases:i,addTrackedKeyphrase:t,setKeyphraseLimitReached:g})},[Hn,m,u,h,i,t,g]),w=(e=>{const[t,s]=(0,Fe.useState)(null);return(0,Fe.useEffect)(()=>{e&&!t&&async function(){return await kr({path:"yoast/v1/wincher/account/limit",method:"GET"})}().then(e=>s(e))},[t]),t})(s);return(0,We.jsxs)(Yn,{children:[o&&(0,We.jsx)(sn,{}),s&&(0,We.jsx)(Rn,{trackingInfo:w}),(0,We.jsxs)(Gn,{children:[(0,nt.__)("SEO performance","wordpress-seo"),(0,We.jsx)(es.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"],linkText:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,nt.__)("Learn more about the SEO performance feature.","wordpress-seo")})]}),(0,We.jsx)(an,{}),(0,We.jsx)(Vn,{isLoggedIn:s,onLogin:y}),(0,We.jsx)(Wn,{isSuccess:c,response:r,allKeyphrasesMissRanking:l,keyphraseLimitReached:d,limit:p,onLogin:y}),(0,We.jsx)(ta,{trackedKeyphrases:e,isLoggedIn:s,keyphrases:i,shouldTrackAll:n,permalink:a,historyDaysLimit:(null==w?void 0:w.historyDays)||31})]})}ta.propTypes={trackedKeyphrases:Ne().object,keyphrases:Ne().array.isRequired,isLoggedIn:Ne().bool.isRequired,shouldTrackAll:Ne().bool.isRequired,permalink:Ne().string.isRequired,historyDaysLimit:Ne().number},sa.propTypes={trackedKeyphrases:Ne().object,addTrackedKeyphrase:Ne().func.isRequired,isLoggedIn:Ne().bool,isNewlyAuthenticated:Ne().bool,keyphrases:Ne().array,response:Ne().object,shouldTrackAll:Ne().bool,permalink:Ne().string,allKeyphrasesMissRanking:Ne().bool.isRequired,isSuccess:Ne().bool.isRequired,keyphraseLimitReached:Ne().bool.isRequired,limit:Ne().number.isRequired,setRequestSucceeded:Ne().func.isRequired,setRequestFailed:Ne().func.isRequired,setKeyphraseLimitReached:Ne().func.isRequired,onAuthentication:Ne().func.isRequired};const oa=(0,zt.compose)([(0,a.withSelect)(e=>{const{isWincherNewlyAuthenticated:t,getWincherKeyphraseLimitReached:s,getWincherLimit:o,getWincherLoginStatus:i,getWincherRequestIsSuccess:r,getWincherRequestResponse:n,getWincherTrackableKeyphrases:a,getWincherTrackedKeyphrases:l,getWincherAllKeyphrasesMissRanking:c,getWincherPermalink:d,shouldWincherAutomaticallyTrackAll:p}=e("yoast-seo/editor");return{keyphrases:a(),trackedKeyphrases:l(),allKeyphrasesMissRanking:c(),isLoggedIn:i(),isNewlyAuthenticated:t(),isSuccess:r(),keyphraseLimitReached:s(),limit:o(),response:n(),shouldTrackAll:p(),permalink:d()}}),(0,a.withDispatch)(e=>{const{setWincherWebsiteId:t,setWincherRequestSucceeded:s,setWincherRequestFailed:o,setWincherTrackingForKeyphrase:i,setWincherSetKeyphraseLimitReached:r,setWincherLoginStatus:n}=e("yoast-seo/editor");return{setRequestSucceeded:e=>{s(e)},setRequestFailed:e=>{o(e)},addTrackedKeyphrase:e=>{i(e)},setKeyphraseLimitReached:e=>{r(e)},onAuthentication:(e,s,o)=>{t(o),n(e,s)}}})])(sa),ia=Be()(fr())`
width: 18px;
height: 18px;
margin: 3px;
`;function ra({keyphrases:e,onNoKeyphraseSet:t,onOpen:s,location:o}){if(!e.length){let e=document.querySelector("#focus-keyword-input-metabox");return e||(e=document.querySelector("#focus-keyword-input-sidebar")),e.focus(),void t()}s(o)}function na({location:e="",whichModalOpen:t="none",shouldCloseOnClickOutside:s=!0,keyphrases:o,onNoKeyphraseSet:i,onOpen:r,onClose:n}){const a=(0,Fe.useCallback)(()=>{ra({keyphrases:o,onNoKeyphraseSet:i,onOpen:r,location:e})},[ra,o,i,r,e]),l=(0,nt.__)("Track SEO performance","wordpress-seo"),c=Ls();return(0,We.jsxs)(Fe.Fragment,{children:[t===e&&(0,We.jsx)(Ps,{title:l,onRequestClose:n,icon:(0,We.jsx)(ns,{}),additionalClassName:"yoast-wincher-seo-performance-modal yoast-gutenberg-modal__no-padding",shouldCloseOnClickOutside:s,children:(0,We.jsx)(br,{className:"yoast-gutenberg-modal__content yoast-wincher-seo-performance-modal__content",children:(0,We.jsx)(oa,{})})}),"sidebar"===e&&(0,We.jsx)(ss,{id:`wincher-open-button-${e}`,title:l,SuffixHeroIcon:(0,We.jsx)(ia,{className:"yst-text-slate-500",...c}),onClick:a}),"metabox"===e&&(0,We.jsx)("div",{className:"yst-root",children:(0,We.jsxs)(Jt,{id:`wincher-open-button-${e}`,onClick:a,children:[(0,We.jsx)(Jt.Text,{children:l}),(0,We.jsx)(fr(),{className:"yst-h-5 yst-w-5 yst-text-slate-500",...c})]})})]})}na.propTypes={location:Ne().string,whichModalOpen:Ne().oneOf(["none","metabox","sidebar","postpublish"]),shouldCloseOnClickOutside:Ne().bool,keyphrases:Ne().array.isRequired,onNoKeyphraseSet:Ne().func.isRequired,onOpen:Ne().func.isRequired,onClose:Ne().func.isRequired};const aa=(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:o}=e("yoast-seo/editor");return{onOpen:e=>{t(e)},onClose:()=>{s()},onNoKeyphraseSet:()=>{o()}}})])(na),la=({isOpen:e,closeModal:t,id:s,upsellLink:o})=>(0,We.jsx)(cs,{isOpen:e,onClose:t,id:s,upsellLink:o,title:(0,nt.__)("Cover more search intent with related keyphrases","wordpress-seo"),description:(0,nt.__)("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,nt.__)("Fine-tune your content for every audience","wordpress-seo"),modalTitle:(0,nt.__)("Add more keyphrases with Premium","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"}),ca=()=>{const[e,,,t,s]=(0,dt.useToggleState)(!1),o=(0,Fe.useContext)(Me.LocationContext),{locationContext:i}=(0,Me.useRootContext)(),r=(0,dt.useSvgAria)(),n=wpseoAdminL10n["sidebar"===o.toLowerCase()?"shortlinks.upsell.sidebar.additional_button":"shortlinks.upsell.metabox.additional_button"];return(0,We.jsxs)(We.Fragment,{children:[(0,We.jsx)(la,{isOpen:e,closeModal:s,upsellLink:(0,Qt.addQueryArgs)(n,{context:i}),id:`yoast-additional-keyphrases-modal-${o}`}),"sidebar"===o&&(0,We.jsx)(ss,{id:"yoast-additional-keyphrase-modal-open-button",title:(0,nt.__)("Add related keyphrase","wordpress-seo"),prefixIcon:{icon:"plus",color:Co.colors.$color_grey_medium_dark},onClick:t,children:(0,We.jsx)("div",{className:"yst-root",children:(0,We.jsx)(dt.Badge,{size:"small",variant:"upsell",children:(0,We.jsx)(Zt(),{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...r})})})}),"metabox"===o&&(0,We.jsx)("div",{className:"yst-root",children:(0,We.jsxs)(Jt,{id:"yoast-additional-keyphrase-metabox-modal-open-button",onClick:t,children:[(0,We.jsx)(es.SvgIcon,{icon:"plus",color:Co.colors.$color_grey_medium_dark}),(0,We.jsx)(Jt.Text,{children:(0,nt.__)("Add related keyphrase","wordpress-seo")}),(0,We.jsxs)(dt.Badge,{size:"small",variant:"upsell",children:[(0,We.jsx)(Zt(),{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...r}),(0,We.jsx)("span",{children:"Premium"})]})]})})]})};var da;function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)({}).hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},pa.apply(null,arguments)}const ua=e=>bt.createElement("svg",pa({xmlns:"http://www.w3.org/2000/svg",fill:"none","aria-hidden":"true",viewBox:"0 0 54 24"},e),da||(da=bt.createElement("path",{fill:"currentColor",d:"M17.854 5.72c-4.173 0-5.842 2.798-5.842 5.913 0 3.116 1.645 6.036 5.842 6.036 4.196 0 5.831-2.93 5.824-5.846-.01-3.551-1.809-6.104-5.824-6.104v.001zm-2.528 6.09c.101-4.169 3.306-4.165 4.377-2.672.976 1.36 1.176 6.013-1.85 5.98-1.392-.016-2.486-.956-2.527-3.309zm36.371 2.968V8.74h2.161V6.117h-2.16V2.951H48.36v3.166h-1.694V8.74h1.694v5.696c0 3.239 2.26 5.162 4.643 5.56l.997-2.68c-1.39-.176-2.29-1.214-2.303-2.537zm-16.84-.957v-4.54c0-.165-.01-.32-.026-.472-.29-3.668-5.503-3.66-9.54-2.252l1.166 2.346c2.63-1.248 4.203-.926 4.753-.311.014.016.028.031.04.048l.005.007c.28.379.213.975.213 1.445-3.436 0-7.093.455-7.093 4.22 0 2.862 3.59 4.703 7.34 1.976l.556 1.341h3.215c-.286-1.575-.63-2.925-.63-3.808h.002zm-3.362-.025c-2.643 2.955-5.064.174-2.585-1.04.73-.248 1.72-.26 2.585-.26v1.3zm8.492-4.759c0-1.118 1.792-1.64 4.619-.351l.977-2.371c-3.804-1.15-8.998-1.252-9.033 2.722-.016 1.905 1.208 2.93 2.969 3.585 1.22.453 2.98.687 2.975 1.657-.006 1.268-2.736 1.463-5.221-.243l-1.004 2.572c3.39 1.686 9.692 1.733 9.66-2.49-.034-4.176-5.94-3.46-5.94-5.08h-.002zM10.638 0 5.783 13.471 3.46 6.196H0l3.872 9.935c.33.846.33 1.784 0 2.63-.433 1.11-1.153 2.057-2.908 2.294V24c3.418 0 5.265-2.1 6.913-6.699L14.337 0h-3.7z"}))),ha=({children:e})=>(0,We.jsxs)("div",{className:"yst-p-4 yst-flex yst-flex-col yst-gap-3",children:[(0,We.jsx)(ua,{className:"yst-w-14 yst-text-primary-500"}),e]}),ga=({withPromptForContentSuggestions:e,className:t})=>(0,We.jsx)("p",{className:Ot()("yst-text-slate-600 yst-my-0",t),children:e?(0,nt.__)("Optimize your content for discovery or get new content suggestions.","wordpress-seo"):(0,nt.__)("Optimize your content for discovery.","wordpress-seo")});function ma({isLoading:e,onLoad:t,settings:s}){const o=(({webinarIntroUrl:e})=>{const{shouldShow:t}=ks(),s=(e=>{for(const t of e)if(null!=t&&t.getIsEligible())return t;return null})([{getIsEligible:()=>t,component:Ts},{getIsEligible:js,component:t=>(0,We.jsx)(Es,{hasIcon:!1,image:null,url:e,className:"yst-m-0",...t})},{getIsEligible:()=>!0,component:e=>(0,We.jsx)(ys,{...e})}]);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,Fe.useEffect)(()=>{setTimeout(()=>{e&&t()})}),e?null:(0,We.jsx)(We.Fragment,{children:(0,We.jsxs)(Oe.Fill,{name:"YoastElementor",children:[(0,We.jsx)(io,{renderPriority:0,children:(0,We.jsxs)(ha,{children:[o&&(0,We.jsx)(o,{}),(0,We.jsx)(ga,{withPromptForContentSuggestions:!1})]})},"editor-intro"),(0,We.jsx)(io,{renderPriority:1,children:(0,We.jsx)(so,{})}),s.isKeywordAnalysisActive&&(0,We.jsxs)(io,{renderPriority:8,children:[(0,We.jsx)(ps.TopicInputs,{isSEMrushIntegrationActive:s.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&(0,We.jsx)(Oe.Fill,{name:"YoastRelatedKeyphrases",children:(0,We.jsx)(yr,{})})]}),s.isKeywordAnalysisActive&&(0,We.jsx)(io,{renderPriority:10,children:(0,We.jsx)(Fe.Fragment,{children:(0,We.jsx)(ps.SeoAnalysis,{shouldUpsell:s.shouldUpsell,shouldUpsellHighlighting:s.shouldUpsell})})}),s.isContentAnalysisActive&&(0,We.jsx)(io,{renderPriority:15,children:(0,We.jsx)(ps.ReadabilityAnalysis,{shouldUpsell:s.shouldUpsell,shouldUpsellHighlighting:s.shouldUpsell})}),s.isInclusiveLanguageAnalysisActive&&(0,We.jsx)(io,{renderPriority:19,children:(0,We.jsx)(ps.InclusiveLanguageAnalysis,{shouldUpsellHighlighting:s.shouldUpsell})}),s.isKeywordAnalysisActive&&(0,We.jsx)(io,{renderPriority:22,children:s.shouldUpsell&&(0,We.jsx)(ca,{})},"additional-keywords-upsell"),s.isKeywordAnalysisActive&&s.isWincherIntegrationActive&&(0,We.jsx)(io,{renderPriority:23,children:(0,We.jsx)(aa,{location:"sidebar",shouldCloseOnClickOutside:!1})},"wincher-seo-performance"),s.shouldUpsell&&(0,We.jsx)(io,{renderPriority:24,children:(0,We.jsx)(ds,{})},"internal-linking-suggestions-upsell"),(0,We.jsx)(io,{renderPriority:25,children:(0,We.jsx)(ko,{})}),(s.useOpenGraphData||s.useTwitterData)&&(0,We.jsx)(io,{renderPriority:26,children:(0,We.jsx)(Ui,{useOpenGraphData:s.useOpenGraphData,useTwitterData:s.useTwitterData})},"social-appearance"),s.displaySchemaSettings&&(0,We.jsx)(io,{renderPriority:28,children:(0,We.jsx)(Bi,{title:(0,nt.__)("Schema","wordpress-seo"),children:(0,We.jsx)(ir,{})})}),s.displayAdvancedTab&&(0,We.jsx)(io,{renderPriority:29,children:(0,We.jsx)(Bi,{title:(0,nt.__)("Advanced","wordpress-seo"),buttonId:"yoast-seo-elementor-advanced-button",children:(0,We.jsx)(ur,{location:"sidebar"})})}),s.isCornerstoneActive&&(0,We.jsx)(io,{renderPriority:30,children:(0,We.jsx)(hs,{})}),s.isInsightsEnabled&&(0,We.jsx)(io,{renderPriority:32,children:(0,We.jsx)(eo,{location:"elementor"})})]})})}ma.propTypes={isLoading:Ne().bool.isRequired,onLoad:Ne().func.isRequired,settings:Ne().object.isRequired};const ya=(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}})])(ma),wa=window.jQuery;var fa=s.n(wa);const ba=window.Marionette,xa="#elementor-panel-elements-search-area",_a=s.n(ba)().ItemView.extend({template:!1,id:"yoast-elementor-react-panel",className:"yoast yoast-elementor-panel__fills",initialize(){fa()(xa).hide()},onShow(){Ta()},onDestroy(){fa()(xa).show()}}),va="yoast-seo-tab",ka="panel/elements",Sa="yoast-elementor-react-panel",Ta=()=>{let e=document.getElementById(Sa);if(!e){const t=document.getElementById("elementor-panel-elements-navigation");if(!t)return;e=document.createElement("div"),e.id=Sa,e.className="yoast yoast-elementor-panel__content",t.parentNode.insertBefore(e,t.nextSibling)}e.style.display="block";const t=document.getElementById("elementor-panel-elements-search-area");t&&(t.style.display="none")},Ra=()=>{const e=window.$e.components.get(ka);e.hasTab(va)||e.addTab(va,{title:"Yoast SEO"})},Ea=e=>(e[va]={region:e.global.region,view:_a,options:{}},e),ja="yoast-elementor-react-tab",Ca="yoast-seo-tab",Ia="Yoast SEO",La="panel/page-settings",Aa=()=>{const{settings:e}=elementor.documents.getCurrent().config;e.tabs[Ca]||(e.tabs=(0,c.reduce)(e.tabs,(e,t,s)=>(e[s]=t,"settings"===s&&(e[Ca]=Ia),e),{})),$e.components.get(La).hasTab(Ca)||$e.components.get(La).addTab(Ca,{title:Ia})};let Pa=!1,Da=!1;const Oa=(0,c.debounce)(at,500,{trailing:!0}),Fa=()=>{const e=document.getElementById("yoast-form");if(!e)return void console.error("Yoast form not found!");window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=Ge,(()=>{const e=document.createElement("div");e.id="yoast-elementor-react-root",document.body.appendChild(e),function(e,t){const s=z();Ye=(0,Fe.createRef)();const o={isRtl:s.isRtl};(0,Fe.createRoot)(document.getElementById(e)).render((0,We.jsx)(He,{theme:o,location:"sidebar",children:(0,We.jsx)(Oe.SlotFillProvider,{children:(0,We.jsxs)(Fe.Fragment,{children:[t,(0,We.jsx)(ze,{ref:Ye})]})})}))}(e.id,(0,We.jsxs)(Me.Root,{context:{locationContext:"elementor-sidebar"},children:[(0,We.jsxs)(ct,{id:ja,children:[(0,We.jsx)(Yt,{}),(0,We.jsx)(ya,{})]}),(0,We.jsxs)(ct,{id:Sa,children:[(0,We.jsx)(Yt,{}),(0,We.jsx)(ya,{})]})]}))})(),tt("editor/documents/load","yoast-seo/register-tab",Aa,({config:e})=>st(e.id)),$e.routes.on("run:after",(e,t)=>{t===`${La}/${Ca}`&&(()=>{if(document.getElementById(ja))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=ja,s.className="yoast yoast-elementor-panel__fills",e.appendChild(s)})()}),Aa(),elementor.getPanelView().getPages("menu").view.addItem({name:"yoast",icon:"yoast yoast-element-menu-icon",title:Ia,type:"page",callback:()=>{try{$e.route(`${La}/${Ca}`)}catch(e){$e.route(`${La}/settings`),$e.route(`${La}/${Ca}`)}}},"more"),((e,t=500)=>{const s=(0,c.debounce)(e,t,{trailing:!0});Je("document/elements/settings","yoast-seo/document/post-status",({settings:e})=>s(e.post_status),({container:e,settings:t})=>{var s;return!!st((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)})})(()=>Oa(Pa));const t=((e,t=500)=>{const s={},o=Array.from(e.querySelectorAll("input[name^='yoast']")),i=o.reduce((e,{name:t,value:s})=>(e[t]=s,e),{}),r={...i},n=new MutationObserver((0,c.debounce)(e=>{const t=[];e.forEach(e=>{"value"===e.attributeName&&e.target.name.startsWith("yoast")&&e.target.value!==i[e.target.name]&&(t.push({input:e.target,name:e.target.name,value:e.target.value,previousValue:i[e.target.name],snapshotValue:r[e.target.name]}),i[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:()=>{o.forEach(({name:e,value:t})=>{r[e]=t})},restoreSnapshot:()=>{o.forEach(e=>{e.value=r[e.name],i[e.name]=r[e.name]})}}})(e);t.subscribe(e=>{e.some(e=>{return t=e.name,s=e.value,o=e.previousValue,!(it.includes(t)||rt.includes(t)&&((e,t)=>{if(t===e)return!0;if(""===t||""===e)return!1;let s,o;try{s=JSON.parse(t),o=JSON.parse(e)}catch(e){return!0}return s.length===o.length&&s.every((e,t)=>e.keyword===o[t].keyword)})(o,s)||s===o);var t,s,o})&&(Pa=!0,Oa(Pa),$e.internal("document/save/set-is-modified",{status:!0}))}),t.start(),et("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})=>st(e)),Je("editor/documents/close","yoast-seo/document/close",(0,c.throttle)(({mode:e})=>{t.stop(),"discard"===e&&(YoastSEO.store._restoreSnapshot(),t.restoreSnapshot(),Pa=!1,at(Pa));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(Da)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})=>st(e)),tt("document/save/save","yoast-seo/document/save",async({document:s})=>{if(Da=!0,!st(s.id))return;if(s.id!==elementor.config.document.revisions.current_id)return;Pa=!1;const{success:o,formData:i,data:r,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:o},i,r)=>t({success:e,formData:s,data:o,xhr:r})).fail(e=>t({success:!1,formData:s,xhr:e}))}))(e);if(!o)return Pa=!0,Da=!1,void(0,l.doAction)("yoast.elementor.save.failure");r.slug&&r.slug!==i.slug&&(0,a.dispatch)("yoast-seo/editor").updateData({slug:r.slug}),(0,a.dispatch)("yoast-seo/editor").setEditorDataSlug(r.slug),at(Pa),(0,l.doAction)("yoast.elementor.save.success",n),YoastSEO.store._takeSnapshot(),t.takeSnapshot(),Da=!1},({document:e})=>st((null==e?void 0:e.id)||elementor.documents.getCurrent().id)),setTimeout(()=>{YoastSEO.store._takeSnapshot(),t.takeSnapshot()},2e3)},Ma=window.yoast.reduxJsToolkit,qa="adminUrl",Na=(0,Ma.createSlice)({name:qa,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),Ua=(Na.getInitialState,{selectAdminUrl:e=>(0,c.get)(e,qa,"")});Ua.selectAdminLink=(0,Ma.createSelector)([Ua.selectAdminUrl,(e,t)=>t],(e,t="")=>{try{return new URL(t,e).href}catch(t){return e}}),Na.actions,Na.reducer;const $a="replacementVariables",Ba=(0,Ma.createSlice)({name:$a,initialState:(Wa={},{recommended:(0,c.get)(Wa,"recommended",{}),shared:(0,c.get)(Wa,"shared",[]),specific:(0,c.get)(Wa,"specific",{}),variables:(0,c.get)(Wa,"variables",[])}),reducers:{}});var Wa;const Ka=(0,Ma.createSelector)([e=>(0,c.get)(e,[$a,"shared"],[]),e=>(0,c.get)(e,[$a,"specific"],{}),(e,t)=>t,(e,t,s)=>s],(e,t,s,o)=>[...e,...(0,c.get)(t,s,(0,c.get)(t,o,[]))]),Ha=((0,Ma.createSelector)([e=>(0,c.get)(e,[$a,"variables"],[]),Ka],(e,t)=>(0,c.filter)(e,({name:e})=>(0,c.includes)(t,e))),(0,Ma.createSelector)([e=>(0,c.get)(e,[$a,"recommended"],{}),(e,t)=>t,(e,t,s)=>s],(e,t,s)=>(0,c.get)(e,t,(0,c.get)(e,s,[]))),Ba.actions,Ba.reducer,"hasConsent"),Va=(0,Ma.createSlice)({name:Ha,initialState:{hasConsent:!1,endpoint:""},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),Ya=(Va.getInitialState,Va.actions,Va.reducer,"linkParams"),za=(0,Ma.createSlice)({name:Ya,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),Ga=(za.getInitialState,{selectLinkParam:(e,t,s={})=>(0,c.get)(e,`${Ya}.${t}`,s),selectLinkParams:e=>(0,c.get)(e,Ya,{})});Ga.selectLink=(0,Ma.createSelector)([Ga.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],(e,t,s)=>(0,Qt.addQueryArgs)(t,{...e,...s})),za.actions,za.reducer;const Za=(0,Ma.createSlice)({name:"myyoastConnection",initialState:{isAvailable:!1,canConnect:!1,connectUrl:null,learnMoreUrl:""},reducers:{}}),Qa=(Za.getInitialState,Za.actions,Za.reducer,"notifications"),Xa=(0,Ma.createSlice)({name:Qa,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:o,description:i})=>({payload:{id:e||(0,Ma.nanoid)(),variant:t,size:s,title:o||"",description:i}})},removeNotification:(e,{payload:t})=>(0,c.omit)(e,t)}}),Ja=(Xa.getInitialState,Xa.actions,Xa.reducer,"optInNotification"),el=(0,Ma.createSlice)({name:Ja,initialState:{seen:{}},reducers:{hideOptInNotification(e,t){const s=t.payload;e.seen[s]=!0}}}),tl=(el.getInitialState,el.actions,el.reducer,"pluginUrl"),sl=(0,Ma.createSlice)({name:tl,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),ol=(sl.getInitialState,{selectPluginUrl:e=>(0,c.get)(e,tl,"")});ol.selectImageLink=(0,Ma.createSelector)([ol.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("/")),sl.actions,sl.reducer;const il="wistiaEmbedPermission",rl=(0,Ma.createSlice)({name:il,initialState:{value:!1,status:v,error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${il}/request`,e=>{e.status=k}),e.addCase(`${il}/success`,(e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)}),e.addCase(`${il}/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")}})}}),nl=(rl.getInitialState,{selectWistiaEmbedPermission:e=>(0,c.get)(e,il,{value:!1,status:v}),selectWistiaEmbedPermissionValue:e=>(0,c.get)(e,[il,"value"],!1),selectWistiaEmbedPermissionStatus:e=>(0,c.get)(e,[il,"status"],v),selectWistiaEmbedPermissionError:e=>(0,c.get)(e,[il,"error"],{})}),al=(rl.actions,{[il]:async({payload:e})=>Ht()({path:"/yoast/v1/wistia_embed_permission",method:"POST",data:{value:Boolean(e)}})});var ll;rl.reducer;const cl="documentTitle",dl=(0,Ma.createSlice)({name:cl,initialState:(0,c.defaultTo)(null===(ll=document)||void 0===ll?void 0:ll.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}}),pl=(dl.getInitialState,{selectDocumentTitle:e=>(0,c.get)(e,cl,""),selectDocumentFullTitle:(e,{prefix:t=""}={})=>{const s=(0,c.get)(e,cl,"");return s.startsWith(t)?s:`${t} ‹ ${s}`}});function ul({alertKey:e}){return new Promise(t=>wpseoApi.post("alerts/dismiss",{key:e},()=>t()))}function hl({query:e,postId:t}){return new Promise(s=>{wpseoApi.get("meta/search",{query:e,post_id:t},e=>{s(e.meta)})})}dl.actions,dl.reducer;const gl=async({countryCode:e,keyphrase:t})=>(Ht()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}}),Ht()({path:(0,Qt.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:t,country_code:e})})),ml=al[il];class yl{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 E(p,yl.titleElement,"")}static set title(e){C(p,yl.titleElement,e)}static get description(){return E(u,yl.descriptionElement,"")}static set description(e){C(u,yl.descriptionElement,e)}static get slug(){return yl.slugElement.value}static set slug(e){yl.slugElement.value=e}}const{UPDATE_DATA:wl,LOAD_SNIPPET_EDITOR_DATA:fl}=V.actions;function bl(e){if(e.hasOwnProperty("title")){let t=e.title;e.title===(0,c.get)(window,"wpseoScriptData.metabox.title_template","")&&(t=""),yl.title=t}if(e.hasOwnProperty("description")){let t=e.description;e.description===(0,c.get)(window,"wpseoScriptData.metabox.metadesc_template","")&&(t=""),yl.description=t}return e.hasOwnProperty("slug")&&(yl.slug=e.slug),{type:wl,data:e}}const xl=()=>{const e=(0,c.get)(window,"wpseoScriptData.metabox.title_template",""),t=(0,c.get)(window,"wpseoScriptData.metabox.metadesc_template","");return{type:fl,data:{title:yl.title||e,description:yl.description||t,slug:yl.slug},templates:{title:e,description:t}}},_l="yoast-measurement-element";function vl(e){let t=document.getElementById(_l);return t||(t=function(){const e=document.createElement("div");return e.id=_l,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:kl,getEditorDataTitle:Sl,getSnippetEditorDescription:Tl,getSnippetEditorSlug:Rl,getSnippetEditorTitle:El}=V.selectors,jl=(0,Ma.createSelector)([kl,Rl,Sl,()=>(0,c.get)(window,"elementor.documents.currentDocument.id",0)],(e,t,s,o)=>t||e||(0,Qt.cleanForSlug)(s)||String(o)),Cl=(0,Ma.createSelector)([El,Tl,jl],(e,t,s)=>({title:e,description:t,slug:s})),{getBaseUrlFromSettings:Il,getContentLocale:Ll,getEditorDataContent:Al,getFocusKeyphrase:Pl,getSnippetEditorDescriptionWithTemplate:Dl,getSnippetEditorTitleWithTemplate:Ol,getDateFromSettings:Fl}=V.selectors,Ml=e=>{let t=Ol(e),s=Dl(e),o=jl(e);const i=Il(e);return t=ws.strings.stripHTMLTags(ae("data_page_title",t)),s=ws.strings.stripHTMLTags(ae("data_meta_desc",s)),o=o.trim().replace(/\s+/g,"-"),{text:Al(e),title:t,keyword:Pl(e),description:s,locale:Ll(e),titleWidth:vl(t),slug:o,permalink:i+o,date:Fl(e)}};function ql(e){return(0,c.get)(e,"editorContext.postType")}const Nl=(0,Ma.createSelector)([ql],e=>"product"===e),Ul=(0,Ma.createSelector)([ql],e=>["product_cat","product_tag"].includes(e)),$l=(0,Ma.createSelector)([Nl,Ul],(e,t)=>e||t),Bl=e=>{let t=(0,c.get)(e,"editorData.excerpt","");if(""===t){const s="ja"===G()?80:156;t=go((0,c.get)(e,"editorData.content",""),s)}return t},Wl=e=>(0,c.get)(e,"analysisData.snippet.title",""),Kl=e=>(0,c.get)(e,"analysisData.snippet.description",""),Hl=()=>(0,c.get)(window,"wpseoScriptData.metabox.title_template",""),Vl=()=>(0,c.get)(window,"wpseoScriptData.metabox.title_template_no_fallback",""),Yl=()=>(0,c.get)(window,"wpseoScriptData.metabox.social_title_template",""),zl=()=>(0,c.get)(window,"wpseoScriptData.metabox.metadesc_template",""),Gl=()=>(0,c.get)(window,"wpseoScriptData.metabox.social_description_template",""),Zl=e=>{let t="";return(0,c.get)(e,"snippetEditor.replacementVariables",[]).forEach(e=>{"excerpt"===e.name&&(t=e.value)}),t},Ql=e=>(0,c.get)(e,"facebookEditor.title",""),Xl=e=>(0,c.get)(e,"facebookEditor.description",""),Jl=(0,Ma.createSelector)([Yl,Wl,Vl,Hl],(...e)=>e.find(Boolean)||""),ec=((0,Ma.createSelector)([Ql,Jl],(e,t)=>e||t),(0,Ma.createSelector)([Gl,Kl,zl,Zl,Bl],(...e)=>{var t;return null!==(t=e.find(Boolean))&&void 0!==t?t:""})),tc=((0,Ma.createSelector)([Xl,ec],(e,t)=>e||t),(e,t,s=null)=>(0,c.get)(e,`preferences.${t}`,s)),sc=e=>tc(e,"isWooCommerceActive",!1),oc=e=>tc(e,"isWooCommerceSeoActive",!1);(0,Ma.createSelector)([oc,sc,$l],(e,t,s)=>!e&&t&&s),(0,Ma.createSelector)([oc,sc,Ul],(e,t,s)=>!e&&t&&s),(0,Ma.createSelector)([$l,sc],(e,t)=>t&&e);const ic=(0,Ma.createSelector)([Yl,Ql,Wl,Vl,Hl],(...e)=>e.find(Boolean)||""),rc=((0,Ma.createSelector)([e=>(0,c.get)(e,"twitterEditor.title",""),ic],(e,t)=>e||t),(0,Ma.createSelector)([Gl,Xl,Kl,zl,Zl,Bl],(...e)=>{var t;return null!==(t=e.find(Boolean))&&void 0!==t?t:""}));(0,Ma.createSelector)([e=>(0,c.get)(e,"twitterEditor.description",""),rc],(e,t)=>e||t);const{selectAdminUrl:nc,selectAdminLink:ac}=Ua,{selectLinkParams:lc,selectLinkParam:cc,selectLink:dc}=Ga,{selectDocumentFullTitle:pc}=pl,{selectPluginUrl:uc,selectImageLink:hc}=ol,{selectWistiaEmbedPermission:gc,selectWistiaEmbedPermissionValue:mc,selectWistiaEmbedPermissionStatus:yc,selectWistiaEmbedPermissionError:wc}=nl,fc=(0,Ma.createSelector)([e=>(0,c.get)(e,"settings.snippetEditor.baseUrl",""),jl],(e,t)=>e+t),bc={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")},xc={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")},_c={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")},vc={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")},kc={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")},Sc={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")},Tc={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")},Rc={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")},Ec={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")},Cc={name:"focuskw",label:"Focus keyphrase",placeholder:"%%focuskw%%",aliases:[],getReplacement:function(){return(0,a.select)("yoast-seo/editor").getFocusKeyphrase()},regexp:new RegExp("%%focuskw%%|%%keyword%%","g")},Ic={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")},Lc={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")},Ac={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")},Pc={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")},Dc={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")},Oc={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")},Fc={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")},Mc={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")},qc={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")},Nc={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")},Uc={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")},$c={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")},Bc={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")},Wc={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")},Kc={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")},Hc={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")},Vc={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")},Yc={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")},zc={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")},Gc={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")},Zc={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")},Qc={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")},Xc={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")},Jc={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 td={source:"wpseoScriptData.analysis.plugins.replaceVars",scope:[],aliases:[]},sd=function(e,t,s){this.placeholder=e,this.replacement=t,this.options=(0,c.defaults)(s,td)};sd.prototype.getPlaceholder=function(e){return(e=e||!1)&&this.hasAlias()?this.placeholder+"|"+this.getAliases().join("|"):this.placeholder},sd.prototype.setSource=function(e){this.options.source=e},sd.prototype.hasScope=function(){return!(0,c.isEmpty)(this.options.scope)},sd.prototype.addScope=function(e){this.hasScope()||(this.options.scope=[]),this.options.scope.push(e)},sd.prototype.inScope=function(e){return!this.hasScope()||(0,c.indexOf)(this.options.scope,e)>-1},sd.prototype.hasAlias=function(){return!(0,c.isEmpty)(this.options.aliases)},sd.prototype.addAlias=function(e){this.hasAlias()||(this.options.aliases=[]),this.options.aliases.push(e)},sd.prototype.getAliases=function(){return this.options.aliases};const od=sd,id="replaceVariablePlugin";let rd=null,nd=null;const ad=e=>{["content","title","snippet_title","snippet_meta","primary_category","data_page_title","data_meta_desc","excerpt"].forEach(t=>{re(t,e,id,10)})},ld=(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[]},cd=e=>ad(t=>t.replace(new RegExp(e.placeholder,"g"),e.replacement)),dd=()=>{if(null===nd){nd=[];const e=(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.hidden_replace_vars",[]);(null===rd&&(rd=ld().map(e=>null==n?void 0:n[e]).filter(Boolean)),rd).forEach(t=>{const s=e.includes(t.name);nd.push({name:t.name,label:t.label,value:t.placeholder,hidden:s}),t.aliases.forEach(e=>{nd.push({name:e.name,label:e.label,value:e.placeholder,hidden:s})})})}return nd};const pd={content:"",title:"",excerpt:"",slug:"",imageUrl:"",featuredImage:"",contentImage:"",excerptOnly:""};function ud(e=elementor.documents.getCurrent()){var t,s;let o=null===(t=e.$element)||void 0===t?void 0:t.find(".elementor-widget-container");var i;return null!==(s=o)&&void 0!==s&&s.length||(o=null===(i=e.$element)||void 0===i?void 0:i.find(".elementor-widget").children().not(".elementor-background-overlay, .elementor-element-overlay, .ui-resizable-handle")),o}function hd(e,t=!1){let s=elementor.settings.page.model.get("post_excerpt");return t?s||"":(s||(s=go(e,"ja"===G()?80:156)),s)}function gd(){const e=elementor.documents.getCurrent();if(!ot())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=ud(e))||void 0===t||t.each((e,t)=>{const o=t.innerHTML.replace(/[\n\t]/g,"").trim();s.push(o)}),s.join("")}(e),s=(0,c.get)(elementor.settings.page.model.get("post_featured_image"),"url",""),o=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:hd(t),excerptOnly:hd(t,!0),imageUrl:s||o,featuredImage:s,contentImage:o,status:elementor.settings.page.model.get("post_status")}}(e);t.content!==pd.content&&(pd.content=t.content,(0,a.dispatch)("yoast-seo/editor").setEditorDataContent(pd.content)),t.title!==pd.title&&(pd.title=t.title,(0,a.dispatch)("yoast-seo/editor").setEditorDataTitle(pd.title)),t.excerpt!==pd.excerpt&&(pd.excerpt=t.excerpt,pd.excerptOnly=t.excerptOnly,(0,a.dispatch)("yoast-seo/editor").setEditorDataExcerpt(pd.excerpt),(0,a.dispatch)("yoast-seo/editor").updateReplacementVariable("excerpt",pd.excerpt),(0,a.dispatch)("yoast-seo/editor").updateReplacementVariable("excerpt_only",pd.excerptOnly)),t.imageUrl!==pd.imageUrl&&(pd.imageUrl=t.imageUrl,(0,a.dispatch)("yoast-seo/editor").setEditorDataImageUrl(pd.imageUrl)),t.contentImage!==pd.contentImage&&(pd.contentImage=t.contentImage,(0,a.dispatch)("yoast-seo/editor").setContentImage(pd.contentImage)),t.featuredImage!==pd.featuredImage&&(pd.featuredImage=t.featuredImage,(0,a.dispatch)("yoast-seo/editor").updateData({snippetPreviewImageURL:pd.featuredImage}))}function md(){ud().each((e,t)=>{-1!==t.innerHTML.indexOf("<yoastmark")&&(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 yd=(0,c.debounce)(gd,500);function wd(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 fd=(0,c.debounce)(wd,500);var bd=jQuery;function xd(e,t,s,o,i){this._scriptUrl=o,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=bd("#post_ID, [name=tag_ID]").val(),this._taxonomy=bd("[name=taxonomy]").val()||"",this._nonce=i,this._ajaxAction=e,this._refreshAnalysis=s,this._initialized=!1}function _d(){window.YoastSEO=window.YoastSEO||{},window.YoastSEO.store=function(){const{snapshotReducer:s,takeSnapshot:n,restoreSnapshot:l}=(e=>{let t,s=!1,o=!1;return{snapshotReducer:(o=void 0,i)=>s?(s=!1,t):e(o,i),takeSnapshot:(e,s)=>{s({type:"CREATE_SNAPSHOT"}),t=(0,c.cloneDeep)(e()),o=!0},restoreSnapshot:e=>{o&&(s=!0,e({type:"RESTORE_SNAPSHOT"}))}}})((0,a.combineReducers)(V.reducers)),{freezeReducer:d,toggleFreeze:p}=(e=>{let t=!1,s=null;return{freezeReducer:(o=void 0,i)=>t?s:e(o,i),toggleFreeze:(e,o=!t)=>{s=o?(0,c.cloneDeep)(e()):null,t=Boolean(o)}}})(s),u=(0,a.registerStore)("yoast-seo/editor",{reducer:d,selectors:{...V.selectors,...i,...o,...r},actions:(0,c.pickBy)({...V.actions,...t},e=>"function"==typeof e),controls:e,initialState:{snippetEditor:{mode:"mobile",data:{title:"",description:"",slug:""},wordsToHighlight:[],replacementVariables:[{name:"date",label:(0,nt.__)("Date","wordpress-seo"),value:""},{name:"id",label:(0,nt.__)("ID","wordpress-seo"),value:""},{name:"page",label:(0,nt.__)("Page","wordpress-seo"),value:""},{name:"searchphrase",label:(0,nt.__)("Search phrase","wordpress-seo"),value:""},{name:"sitedesc",label:(0,nt.__)("Tagline","wordpress-seo"),value:""},{name:"sitename",label:(0,nt.__)("Site title","wordpress-seo"),value:""},{name:"category",label:(0,nt.__)("Category","wordpress-seo"),value:""},{name:"focuskw",label:(0,nt.__)("Focus keyphrase","wordpress-seo"),value:""},{name:"title",label:(0,nt.__)("Title","wordpress-seo"),value:""},{name:"parent_title",label:(0,nt.__)("Parent title","wordpress-seo"),value:""},{name:"excerpt",label:(0,nt.__)("Excerpt","wordpress-seo"),value:""},{name:"primary_category",label:(0,nt.__)("Primary category","wordpress-seo"),value:""},{name:"sep",label:(0,nt.__)("Separator","wordpress-seo"),value:""},{name:"excerpt_only",label:(0,nt.__)("Excerpt only","wordpress-seo"),value:""},{name:"category_description",label:(0,nt.__)("Category description","wordpress-seo"),value:""},{name:"tag_description",label:(0,nt.__)("Tag description","wordpress-seo"),value:""},{name:"term_description",label:(0,nt.__)("Term description","wordpress-seo"),value:""},{name:"currentyear",label:(0,nt.__)("Current year","wordpress-seo"),value:""}],uniqueRefreshValue:"",templates:{title:"",description:""},isLoading:!0,replacementVariables:dd()}}});return(e=>{e.dispatch(V.actions.loadCornerstoneContent()),e.dispatch(V.actions.loadFocusKeyword()),e.dispatch(V.actions.setMarkerStatus(window.wpseoScriptData.metabox.elementorMarkerStatus)),e.dispatch(V.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(V.actions.loadFacebookPreviewData()),s&&e.dispatch(V.actions.loadTwitterPreviewData()),e.dispatch(V.actions.setSEMrushChangeCountry(window.wpseoScriptData.metabox.countryCode)),e.dispatch(V.actions.setSEMrushLoginStatus(window.wpseoScriptData.metabox.SEMrushLoginStatus)),e.dispatch(V.actions.setWincherLoginStatus(window.wpseoScriptData.metabox.wincherLoginStatus,!1)),e.dispatch(V.actions.setWincherWebsiteId(window.wpseoScriptData.metabox.wincherWebsiteId)),e.dispatch(V.actions.setWincherAutomaticKeyphaseTracking(window.wpseoScriptData.metabox.wincherAutoAddKeyphrases)),e.dispatch(V.actions.setDismissedAlerts((0,c.get)(window,"wpseoScriptData.dismissedAlerts",{}))),e.dispatch(V.actions.setCurrentPromotions((0,c.get)(window,"wpseoScriptData.currentPromotions",{}))),e.dispatch(V.actions.setIsPremium(Boolean((0,c.get)(window,"wpseoScriptData.metabox.isPremium",!1)))),e.dispatch(V.actions.setAdminUrl((0,c.get)(window,"wpseoScriptData.adminUrl",""))),e.dispatch(V.actions.setLinkParams((0,c.get)(window,"wpseoScriptData.linkParams",{}))),e.dispatch(V.actions.setPluginUrl((0,c.get)(window,"wpseoScriptData.pluginUrl",""))),e.dispatch(V.actions.setWistiaEmbedPermissionValue("1"===(0,c.get)(window,"wpseoScriptData.wistiaEmbedPermission",!1)));const o=document.getElementById("yoast_wpseo_slug");o&&e.dispatch(V.actions.setEditorDataSlug(o.value))})(u),u._freeze=p.bind(null,u.getState),u._takeSnapshot=n.bind(null,u.getState,u.dispatch),u._restoreSnapshot=l.bind(null,u.dispatch),u}(),function(){var e;const t=null===(e=window.wpseoScriptData)||void 0===e?void 0:e.isElementorV4Atomic;return!0===t||"1"===t}()||function(){et("panel/editor/open","yoast-seo/marks/reset-on-edit",(0,c.debounce)(md,500),ot),et("document/save/save","yoast-seo/marks/reset-on-save",md,({document:e})=>st((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())})(yd);let t=c.noop;Je("editor/documents/close","yoast-seo/content-scraper/stop",()=>{t(),t=c.noop,yd.cancel()},({id:e})=>st(e)),Je("editor/documents/attach-preview","yoast-seo/content-scraper/start",()=>{t=e()},ot),Je("document/save/set-is-modified","yoast-seo/content-scraper/on-modified",yd,({document:e})=>st((null==e?void 0:e.id)||elementor.documents.getCurrent().id)),gd()}(),window.YoastSEO.pluginReady=oe,window.YoastSEO.pluginReloaded=ie,window.YoastSEO.registerModification=re,window.YoastSEO.registerPlugin=ne,window.YoastSEO.applyModifications=ae,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"],[]),o=[];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 i=t.innerHTML.slice(214),r=i.indexOf(","),n=i.slice(0,r-1);try{const e=/}}\s*\);/.exec(i).index+2,t=JSON.parse(i.slice(r+1,e));o.push([n,t])}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:o}),new d.AnalysisWorkerWrapper(t)}();s.initialize(function(e={}){const t={locale:G(),contentAnalysisActive:Z(),keywordAnalysisActive:Q(),inclusiveLanguageAnalysisActive:X(),defaultQueryParams:(0,c.get)(window,["wpseoAdminL10n","default_query_params"],{}),logLevel:(0,c.get)(window,["wpseoScriptData","analysis","worker","log_level"],"ERROR"),enabledFeatures:(0,J.enabledFeatures)()};return(0,c.merge)(t,e)}({useCornerstone:t(),marker:Le()})).catch(H),window.YoastSEO.analysis.applyMarks=(e,t)=>Le()(e,t);let o=Pe(),i=t(),r=e();return(0,a.subscribe)(()=>{const n=t(),a=Pe(),l=e();if(n!==i)return i=n,o=a,void s.initialize({useCornerstone:n}).then(()=>Ae(s,a)).catch(H);l===r&&!1!==(0,c.isEqual)(a,o)||(o=a,r=l,Ae(s,a))}),s}(),window.YoastSEO.analysis.collectData=Pe,ne(id,{status:"ready"}),ld().forEach(e=>{const t=null==n?void 0:n[e];if(t){const e=(({getReplacement:e,regexp:t})=>s=>s.replace(t,e()))(t);ad(e)}}),window.YoastSEO.wp=window.YoastSEO.wp||{},window.YoastSEO.wp.replaceVarsPlugin={addReplacement:cd,ReplaceVar:od},function(){const e=z(),t=(0,c.get)(window,["wpseoScriptData","analysis","worker","keywords_assessment_url"],"used-keywords-assessment.js"),s=(0,c.get)(window,["wpseoScriptData","usedKeywordsNonce"],""),o=new xd("get_focus_keyword_usage_and_post_types",e,(0,a.dispatch)("yoast-seo/editor").runAnalysis,t,s);o.init();let i="";(0,a.subscribe)(()=>{const e=(0,a.select)("yoast-seo/editor").getFocusKeyphrase();e!==i&&(i=e,o.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)(De(),1500,{maxWait:3e3}))})(),function(e){const{getFocusKeyphrase:t}=(0,a.select)("yoast-seo/editor");let s=t();wd(e,s),(0,a.subscribe)(()=>{const o=t();s!==o&&(s=o,fd(e,o))})}(window.YoastSEO.analysis.worker.runResearch),"1"===window.wpseoScriptData.isAlwaysIntroductionV2||window.elementorFrontend.config.experimentalFeatures.editor_v2?function(){var e,t,s,o;const i="yoast-introduction-editor-v2";if(null!==(e=window.elementor)&&void 0!==e&&null!==(t=e.config)&&void 0!==t&&null!==(s=t.user)&&void 0!==s&&null!==(o=s.introduction)&&void 0!==o&&o[i])return;const r=new window.elementorModules.editor.utils.Introduction({introductionKey:i,dialogType:"buttons",dialogOptions:{id:i,className:"elementor-right-click-introduction yoast-elementor-introduction",headerMessage:(0,nt.__)("Yoast SEO for Elementor","wordpress-seo"),message:(0,nt.__)("Get started with Yoast SEO's content analysis for Elementor!","wordpress-seo"),position:{my:"center top",at:"center bottom+12",autoRefresh:!0,using(e,t){const s=t.target.left-t.element.left+t.target.width/2-8;this.style.setProperty("--yoast-elementor-introduction-arrow",s+"px");const o=t.target.element.closest("#elementor-panel-inner header"),i=o?o.offsetHeight:0;i&&i>e.top-12?this.style.top=i+20+"px":this.style.top=e.top+"px",this.style.left=e.left+"px"}},hide:{onOutsideClick:!1}},onDialogInitCallback(e){window.$e.routes.on("run:after",(t,s)=>{r.introductionViewed||"panel/elements/yoast-seo-tab"!==s&&s.startsWith("panel/elements")||(e.hide(),r.setViewed())}),window.elementor.channels.dataEditMode.on("switch",t=>{"preview"!==t||r.introductionViewed||(e.hide(),r.setViewed())}),e.addButton({name:"ok",text:(0,nt.__)("Got it","wordpress-seo"),classes:"elementor-button elementor-button-success",callback:()=>{e.hide(),r.setViewed()}})}});setTimeout(function e(){if(r.introductionViewed)return;const t=document.querySelector("button[data-tab='yoast-seo-tab']");t?(r.getDialog().setSettings("position",{...r.getDialog().getSettings("position"),of:t}),r.show(t)):setTimeout(e,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,nt.__)("New: Yoast SEO for Elementor","wordpress-seo"),message:(0,nt.__)("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,nt.__)("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)}(),Fa(),tt("editor/documents/load","yoast-seo/add-elements-tab",Ra,({config:e})=>st(e.id)),window.elementor.hooks.addFilter("panel/elements/regionViews",Ea),window.$e&&window.$e.routes&&window.$e.routes.on("run:after",(e,t)=>{t===`${ka}/${va}`&&Ta()}),Ra(),(0,l.doAction)("yoast.elementor.loaded")}xd.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))},xd.prototype.setKeyword=function(e){(0,c.has)(this._keywordUsage,e)||this.requestKeywordUsage(e)},xd.prototype.requestKeywordUsage=function(e){bd.post(ajaxurl,{action:this._ajaxAction,post_id:this._postID,keyword:e,taxonomy:this._taxonomy,nonce:this._nonce},this.updateKeywordUsage.bind(this,e),"json")},xd.prototype.updateKeywordUsage=function(e,t){const{worker:s}=window.YoastSEO.analysis,o=t.keyword_usage,i=t.post_types;o&&(0,c.isArray)(o)&&(this._keywordUsage[e]=o,this._usedKeywordsPostTypes[e]=i,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(_d)})})})()})();
Distinguish Your Business From The Rest With The People That Make Up Your Team
We go Beyond a Resume to find high value, committed people
ready, willing, and able to add true value toward your organization's mission.
The right people make or break your business
We focus on resolving two types of challenges surrounding staffing and recruiting at Beyond a Resume: The first challenge comes when a business continues to grow, but does not have the full-time, internal, talent acquisition resources to hire the right people or talent necessary to keep up with their rate of progression as a company.
The second is a business that has a dedicated internal Human Resources Team, but requires outsourced assistance when the volume of people and talent needed exceeds short term internal capacity, OR the position(s) they seek to fill demand a specific skill set that is difficult to find, requiring added bandwidth.
In nearly any line of business, growth is a challenge in and of itself. Yet, the real problems arise in managing growth to ensure your progress remains profitable, sustainable, and repeatable. The biggest factor in this equation is usually found in your people. When you have the right people, success is unlimited. On the other hand, when you don’t have the right people in place or are having trouble finding enough of the right people, failure or stagnation is imminent.
The frustration that comes with the process of “hiring” can bring you to new levels of stress as the time cost involved eats away at your production elsewhere. If you have experienced this in the past, or are currently struggling with this issue, you’re certainly not alone. You may simply need the right partner to take the worst parts of this process off your plate so you can concentrate on your responsibilities, while we work diligently to reduce the noise and deliver only the ideal candidates worth your time and attention.
People can make or break your business and we go Beyond a Resume to find high value, committed people ready, willing, and able to add true value.