index of
/
home
/
thefkyzp
/
public_html
/
wp-content
/
plugins
/
wordpress-seo
/
js
/
dist
/
File: /home/thefkyzp/public_html/wp-content/plugins/wordpress-seo/js/dist/editor-modules.js
!function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=306)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.yoast.propTypes},function(e,t){e.exports=window.React},function(e,t){e.exports=window.lodash},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.yoast.uiLibrary},,function(e,t){e.exports=window.yoast.styledComponents},function(e,t){e.exports=window.yoast.componentsNew},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=window.yoast.helpers},,function(e,t){e.exports=window.wp.url},function(e,t){e.exports=window.yoast.analysis},,function(e,t){e.exports=window.yoast.externals.redux},function(e,t){e.exports=window.yoast.styleGuide},function(e,t){e.exports=window.wp.compose},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(4);function r(){return Object(a.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=window.yoast.externals.contexts},,function(e,t){e.exports=window.yoast.socialMetadataForms},function(e,t){e.exports=window.moment},function(e,t){e.exports=window.yoast["chart.js"]},,,function(e,t){e.exports=window.wp.apiFetch},,function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return s}));var a=n(0);function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return Object(a.createInterpolateElement)(e,{a:Object(a.createElement)("a",{id:n,href:t,target:"_blank",rel:"noopener noreferrer"})})}},function(e,t,n){"use strict";n.d(t,"b",(function(){return l}));var a=n(10),r=n.n(a),s=n(0),o=n(2),i=n.n(o),c=n(20);const l="yoast yoast-gutenberg-modal",u=e=>{const{title:t,className:n,showYoastIcon:a,additionalClassName:o,...i}=e,l=a?Object(s.createElement)("span",{className:"yoast-icon"}):null;return Object(s.createElement)(c.Modal,r()({title:t,className:`${n} ${o}`,icon:l},i),e.children)};u.propTypes={title:i.a.string,className:i.a.string,showYoastIcon:i.a.bool,children:i.a.oneOfType([i.a.node,i.a.arrayOf(i.a.node)]),additionalClassName:i.a.string},u.defaultProps={title:"Yoast SEO",className:l,showYoastIcon:!0,children:null,additionalClassName:""},t.a=u},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return o}));var a=n(28),r=n.n(a);async function s(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:200;try{const r=await e();return!!r&&(r.status===a?t(r):n(r))}catch(e){console.error(e.message)}}async function o(e){try{return await r()(e)}catch(e){return e.error&&e.status?e:e instanceof Response&&await e.json()}}},,,function(e,t,n){"use strict";var a=n(0),r=n(2),s=n.n(r);const o=e=>{let{children:t}=e;return Object(a.createElement)("div",null,t)};o.propTypes={renderPriority:s.a.number.isRequired,children:s.a.node.isRequired},t.a=o},function(e,t){e.exports=window.wp.hooks},,function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return o})),n.d(t,"e",(function(){return i})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return d}));var a=n(4),r=n(32);async function s(){return await Object(r.a)({path:"yoast/v1/wincher/authorization-url",method:"GET"})}async function o(){return await Object(r.a)({path:"yoast/v1/wincher/account/limit",method:"GET"})}async function i(){return await Object(r.a)({path:"yoast/v1/wincher/account/upgrade-campaign",method:"GET"})}async function c(e){const{code:t,websiteId:n}=e;return await Object(r.a)({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:t,websiteId:n}})}async function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3?arguments[3]:void 0;return await Object(r.a)({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:e,permalink:n,startAt:t},signal:a})}async function u(e){return Object(a.isArray)(e)||(e=[e]),await Object(r.a)({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:e}})}async function d(e){return await Object(r.a)({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:e}})}},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=i(n(3)),s=i(n(163)),o=i(n(166));function i(e){return e&&e.__esModule?e:{default:e}}var c=void 0;t.default=function(e){var t=e.mixedString,n=e.components,i=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":a(n))){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var l=(0,o.default)(t);try{return function e(t,n){var o,i,l,u,d,p,m,h,b=[],f={};for(p=0;p<t.length;p++)if("string"!==(d=t[p]).type){if(!n.hasOwnProperty(d.value)||void 0===n[d.value])throw new Error("Invalid interpolation, missing component node: `"+d.value+"`");if("object"!==a(n[d.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+d.value+"`","\n> "+c);if("componentClose"===d.type)throw new Error("Missing opening component token: `"+d.value+"`");if("componentOpen"===d.type){o=n[d.value],l=p;break}b.push(n[d.value])}else b.push(d.value);return o&&(u=function(e,t){var n,a,r=t[e],s=0;for(a=e+1;a<t.length;a++)if((n=t[a]).value===r.value){if("componentOpen"===n.type){s++;continue}if("componentClose"===n.type){if(0===s)return a;s--}}throw new Error("Missing closing component token `"+r.value+"`")}(l,t),m=e(t.slice(l+1,u),n),i=r.default.cloneElement(o,{},m),b.push(i),u<t.length-1&&(h=e(t.slice(u+1),n),b=b.concat(h))),1===b.length?b[0]:(b.forEach((function(e,t){e&&(f["interpolation-child-"+t]=e)})),(0,s.default)(f))}(l,n)}catch(e){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(1),r=n(14),s=n(4);function o(e){return Object(s.isNil)(e)||(e/=10),function(e){switch(e){case"feedback":return{className:"na",screenReaderText:Object(a.__)("Feedback","wordpress-seo"),screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""};case"bad":return{className:"bad",screenReaderText:Object(a.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:Object(a.__)("Needs improvement","wordpress-seo"),screenReaderInclusiveLanguageText:Object(a.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:Object(a.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:Object(a.__)("OK","wordpress-seo"),screenReaderInclusiveLanguageText:Object(a.__)("Potentially non-inclusive","wordpress-seo")};case"good":return{className:"good",screenReaderText:Object(a.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:Object(a.__)("Good","wordpress-seo"),screenReaderInclusiveLanguageText:Object(a.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""}}}(r.interpreters.scoreToRating(e))}},,,,,,function(e,t,n){"use strict";var a=n(0),r=n(9),s=n(2),o=n.n(s);const i=e=>Object(a.createElement)("div",{className:"yoast components-panel__body"},Object(a.createElement)("h2",{className:"components-panel__body-title"},Object(a.createElement)("button",{id:e.id,onClick:e.onClick,className:"components-button components-panel__body-toggle",type:"button"},e.prefixIcon&&Object(a.createElement)("span",{className:"yoast-icon-span",style:{fill:""+(e.prefixIcon&&e.prefixIcon.color||"")}},Object(a.createElement)(r.SvgIcon,{size:e.prefixIcon.size,icon:e.prefixIcon.icon})),Object(a.createElement)("span",{className:"yoast-title-container"},Object(a.createElement)("div",{className:"yoast-title"},e.title),Object(a.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),e.children,e.suffixIcon&&Object(a.createElement)(r.SvgIcon,{size:e.suffixIcon.size,icon:e.suffixIcon.icon}),e.SuffixHeroIcon)));t.a=i,i.propTypes={onClick:o.a.func.isRequired,title:o.a.string.isRequired,id:o.a.string,subTitle:o.a.string,suffixIcon:o.a.object,SuffixHeroIcon:o.a.object,prefixIcon:o.a.object,children:o.a.node},i.defaultProps={id:"",suffixIcon:null,SuffixHeroIcon:null,prefixIcon:null,subTitle:"",children:null}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c}));var a=n(8),r=n.n(a),s=n(9),o=n(11);const i=r.a.div` min-width: 600px; @media screen and ( max-width: 680px ) { min-width: 0; width: 86vw; } `,c=r.a.div` @media screen and ( min-width: 600px ) { max-width: 420px; } `;r()(s.Icon)` float: ${Object(o.getDirectionalStyle)("right","left")}; margin: ${Object(o.getDirectionalStyle)("0 0 16px 16px","0 16px 16px 0")}; && { width: 150px; height: 150px; @media screen and ( max-width: 680px ) { width: 80px; height: 80px; } } `},function(e,t,n){"use strict";n.d(t,"g",(function(){return r})),n.d(t,"h",(function(){return s})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"i",(function(){return c})),n.d(t,"j",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"k",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"p",(function(){return b})),n.d(t,"q",(function(){return f})),n.d(t,"l",(function(){return g})),n.d(t,"r",(function(){return y})),n.d(t,"s",(function(){return O})),n.d(t,"t",(function(){return j})),n.d(t,"o",(function(){return w})),n.d(t,"n",(function(){return v})),n.d(t,"m",(function(){return k}));var a=n(11);const r="SNIPPET_EDITOR_SWITCH_MODE",s="SNIPPET_EDITOR_UPDATE_DATA",o="SNIPPET_EDITOR_FIND_CUSTOM_FIELDS",i="SNIPPET_EDITOR_CUSTOM_FIELD_RESULTS",c="SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLE",l="SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLES_BATCH",u="SNIPPET_EDITOR_HIDE_REPLACEMENT_VARIABLES",d="SNIPPET_EDITOR_REMOVE_REPLACEMENT_VARIABLE",p="SNIPPET_EDITOR_REFRESH",m="SNIPPET_EDITOR_UPDATE_WORDS_TO_HIGHLIGHT",h="LOAD_SNIPPET_EDITOR_DATA";function b(e){return{type:r,mode:e}}function f(e){return{type:s,data:e}}function*g(e,t){const n=yield{type:o,query:e,postId:t};return{type:i,results:n}}function y(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const s="string"==typeof t?Object(a.decodeHTML)(t):t;return{type:c,name:e,value:s,label:n,hidden:r}}function O(e){return{type:l,updatedVariables:e}}function j(e){return{type:m,wordsToHighlight:e}}function w(e){return{type:d,name:e}}function v(){return{type:p,time:(new Date).getMilliseconds()}}function k(e){return{type:u,data:e}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(1);const r=()=>[Object(a.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */ Object(a.__)("%1$sAI%2$s: Better SEO titles and meta descriptions, faster.","wordpress-seo"),"<strong>","</strong>"),Object(a.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */ Object(a.__)("%1$sMultiple keywords%2$s: Rank higher for more searches.","wordpress-seo"),"<strong>","</strong>"),Object(a.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */ Object(a.__)("%1$sSuper fast%2$s internal linking suggestions.","wordpress-seo"),"<strong>","</strong>"),Object(a.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */ Object(a.__)("%1$sNo more broken links%2$s: Automatic redirect manager.","wordpress-seo"),"<strong>","</strong>"),Object(a.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */ Object(a.__)("%1$sAppealing social previews%2$s people actually want to click on.","wordpress-seo"),"<strong>","</strong>"),Object(a.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */ Object(a.__)("%1$s24/7 support%2$s: Also on evenings and weekends.","wordpress-seo"),"<strong>","</strong>")]},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return u}));var a=n(4),r=n(11),s=n(23);const o=e=>({type:e.subtype,width:e.width,height:e.height,url:e.url,id:e.id,sizes:e.sizes,alt:e.alt||e.title||e.name});function i(e){return new Promise((t,n)=>{window.wp.media.attachment||n(),window.wp.media.attachment(e).fetch().then(e=>{t(o(e))}).catch(()=>n())})}function c(e){(function(e){const t=window.wp.media();return t.on("select",()=>{const n=t.state().get("selection").first();e(o(n.attributes))}),t})(e).open()}const l=e=>{const{width:t,height:n}=e,a=Object(s.determineFacebookImageMode)({width:t,height:n}),o=s.FACEBOOK_IMAGE_SIZES[a+"Width"],i=s.FACEBOOK_IMAGE_SIZES[a+"Height"],c=Object.values(e.sizes).find(e=>e.width>=o&&e.height>=i);return{url:c?c.url:e.url,id:e.id,warnings:Object(r.validateFacebookImage)(e),alt:e.alt||""}},u=e=>{const t="summary"!==Object(a.get)(window,"wpseoScriptData.metabox.twitterCardType")?"landscape":"square",n=s.TWITTER_IMAGE_SIZES[t+"Width"],o=s.TWITTER_IMAGE_SIZES[t+"Height"],i=Object.values(e.sizes).find(e=>e.width>=n&&e.height>=o);return{url:i?i.url:e.url,id:e.id,warnings:Object(r.validateTwitterImage)(e),alt:e.alt||""}}},,,function(e,t,n){"use strict";var a=n(0),r=n(5),s=n(11),o=n(2),i=n.n(o),c=n(8),l=n.n(c),u=n(1);const d=l.a.div` padding: 25px 32px 32px; color: #303030; `,p=l.a.ul` margin: 0; padding: 0; li { list-style-image: var(--yoast-svg-icon-check); margin: 0.5rem 0 0 1.5rem; line-height: 1.4em; &::marker { font-size: 1.5rem; } } `,m=l.a.span` display: block; margin-top: 4px; `,h=l.a.h2` margin-top: 0; margin-bottom: 0.25rem; color: #303030; font-size: 0.8125rem; font-weight: 600; `,b=l.a.p` display: block; margin: 0.25rem 0 1rem 0 !important; max-width: 420px; `,f=l.a.hr` margin-top: 1.5rem; margin-bottom: 1rem; border-top: 0; border-bottom: 1px solid #E2E8F0; `,g=l.a.div` text-align: center; `,y=l.a.a` width: 100%; `,O=Object(s.makeOutboundLink)(y);class j extends a.Component{constructor(e){super(e),this.state={defaultPrice:"99"}}createBenefitsList(e){return e.length>0&&Object(a.createElement)(p,{role:"list"},e.map((e,t)=>Object(a.createElement)("li",{key:"upsell-benefit-"+t},Object(a.createInterpolateElement)(e,{strong:Object(a.createElement)("strong",null)}))))}render(){const e=Object(r.select)("yoast-seo/editor").isPromotionActive("black-friday-2023-promotion"),{defaultPrice:t}=this.state,n=e?"69.30":null,s=n||t;return Object(a.createElement)(a.Fragment,null,e&&Object(a.createElement)("div",{className:"yst-flex yst-justify-between yst-items-center yst-text-lg yst-content-between yst-bg-black yst-text-amber-300 yst-h-9 yst-border-amber-300 yst-border-y yst-border-x-0 yst-border-solid yst-px-6"},Object(a.createElement)("div",null,Object(u.__)("BLACK FRIDAY","wordpress-seo")),Object(a.createElement)("div",null,Object(u.__)("30% OFF","wordpress-seo"))),Object(a.createElement)(d,null,Object(a.createElement)(h,null,this.props.title),Object(a.createElement)(b,null,this.props.description),Object(a.createElement)(g,null,Object(a.createElement)(O,this.props.upsellButton,this.props.upsellButtonText,this.props.upsellButtonHasCaret&&Object(a.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})),Object(a.createElement)("div",{className:"yst-text-slate-600 yst-my-4"},n&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)("span",{className:"yst-text-slate-500 yst-line-through"},t)," "),Object(a.createElement)("span",{className:"yst-text-slate-900 yst-text-2xl yst-font-bold"},s)," ",Object(u.__)("$ USD / € EUR / £ GBP per year (ex. VAT)","wordpress-seo")),Object(a.createElement)(m,{id:this.props.upsellButton["aria-describedby"]},this.props.upsellButtonLabel)),Object(a.createElement)(f,null),Object(a.createElement)(h,null,this.props.benefitsTitle),this.createBenefitsList(this.props.benefits)))}}j.propTypes={title:i.a.node,benefits:i.a.array,benefitsTitle:i.a.node,description:i.a.node,upsellButton:i.a.object,upsellButtonText:i.a.string.isRequired,upsellButtonLabel:i.a.string,upsellButtonHasCaret:i.a.bool},j.defaultProps={title:null,description:null,benefits:[],benefitsTitle:null,upsellButton:{href:"",className:"button button-primary"},upsellButtonLabel:"",upsellButtonHasCaret:!0},t.a=j},,function(e,t,n){"use strict";function a(){}n.d(t,"a",(function(){return a}))},,,function(e,t,n){"use strict";n.r(t),n.d(t,"getIconForScore",(function(){return i})),n.d(t,"default",(function(){return c}));var a=n(17),r=n(14);function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.getIdentifier(),a={score:e.score,rating:r.interpreters.scoreToRating(e.score),hasMarks:e.hasMarks(),marker:e.getMarker(),id:n,text:e.text,markerId:t.length>0?`${t}:${n}`:n,hasBetaBadge:e.hasBetaBadge(),hasJumps:e.hasJumps(),editFieldName:e.editFieldName};return"ok"===a.rating&&(a.rating="OK"),a}function o(e,t){switch(e.rating){case"error":t.errorsResults.push(e);break;case"feedback":t.considerationsResults.push(e);break;case"bad":t.problemsResults.push(e);break;case"OK":t.improvementsResults.push(e);break;case"good":t.goodResults.push(e)}return t}function i(e){switch(e){case"loading":return{icon:"loading-spinner",color:a.colors.$color_green_medium_light};case"not-set":return{icon:"seo-score-none",color:a.colors.$color_score_icon};case"noindex":return{icon:"seo-score-none",color:a.colors.$color_noindex};case"good":return{icon:"seo-score-good",color:a.colors.$color_green_medium};case"ok":return{icon:"seo-score-ok",color:a.colors.$color_ok};default:return{icon:"seo-score-bad",color:a.colors.$color_red}}}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n={errorsResults:[],problemsResults:[],improvementsResults:[],goodResults:[],considerationsResults:[]};if(!e)return n;for(let a=0;a<e.length;a++){const r=e[a];r.text&&(n=o(s(r,t),n))}return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"nonReplaceVars",(function(){return l})),n.d(t,"fillReplacementVariables",(function(){return u})),n.d(t,"handlePrefixes",(function(){return d})),n.d(t,"createLabelFromName",(function(){return p})),n.d(t,"pushNewReplaceVar",(function(){return m})),n.d(t,"replaceSpaces",(function(){return h})),n.d(t,"prepareCustomFieldForDispatch",(function(){return b})),n.d(t,"prepareCustomTaxonomyForDispatch",(function(){return f})),n.d(t,"mapCustomTaxonomies",(function(){return g})),n.d(t,"mapCustomFields",(function(){return y})),n.d(t,"excerptFromContent",(function(){return O})),n.d(t,"applyReplaceUsingPlugin",(function(){return j}));var a=n(4),r=n(119),s=n(53),o=n(30),i=n(11);const{stripHTMLTags:c}=i.strings,l=["slug","content","contentImage","snippetPreviewImageURL"];function u(e,t){Object(a.forEach)(e,(e,n)=>{l.includes(n)||t.dispatch(Object(s.r)(n,e))})}function d(e){if(!["ct_","cf_","pt_"].includes(e.substr(0,3)))return e.replace(/_/g," ");const t=e.slice(0,3);switch(-1!==(e=e.slice(3)).indexOf("desc_")&&(e=e.slice(5)+" description"),t){case"ct_":e+=" (custom taxonomy)";break;case"cf_":e+=" (custom field)";break;case"pt_":e="Post type ("+(e=e.replace("single","singular"))+")"}return e}function p(e){return e=d(e),Object(o.b)(e)}function m(e,t){return e.push({name:t.name,label:t.label||p(t.name),value:t.value}),e}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e.replace(/\s/g,t)}function b(e){return{name:"cf_"+h(e),label:Object(o.b)(e+" (custom field)")}}function f(e){const t=h(e);return{name:"ct_"+t,label:Object(o.b)(e+" (custom taxonomy)"),descriptionName:"ct_desc_"+t,descriptionLabel:Object(o.b)(e+" description (custom taxonomy)")}}function g(e,t){if(!e.custom_taxonomies)return e;const n={};return Object(a.forEach)(e.custom_taxonomies,(e,t)=>{const{name:a,label:r,descriptionName:s,descriptionLabel:o}=f(t),c="string"==typeof e.name?Object(i.decodeHTML)(e.name):e.name,l="string"==typeof e.description?Object(i.decodeHTML)(e.description):e.description;n[a]={value:c,label:r},n[s]={value:l,label:o}}),t.dispatch(Object(s.s)(n)),Object(a.omit)({...e},"custom_taxonomies")}function y(e,t){return e.custom_fields?(Object(a.forEach)(e.custom_fields,(e,n)=>{const{name:a,label:r}=b(n);t.dispatch(Object(s.r)(a,e,r))}),Object(a.omit)({...e},"custom_fields")):e}function O(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:156;return(e=(e=Object(r.stripTags)(e)).trim()).length<=t||(e=e.substring(0,t),/\s/.test(e)&&(e=e.substring(0,e.lastIndexOf(" ")))),e}const j=function(e){const t=Object(a.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!Object(a.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){const t=Object(a.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],a.identity);return{url:e.url,title:c(t(e.title)),description:c(t(e.description)),filteredSEOTitle:e.filteredSEOTitle?c(t(e.filteredSEOTitle)):""}}(e);const n=t._applyModifications.bind(t);return{url:e.url,title:c(n("data_page_title",e.title)),description:c(n("data_meta_desc",e.description)),filteredSEOTitle:e.filteredSEOTitle?c(n("data_page_title",e.filteredSEOTitle)):""}}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(4),r=n(19);function s(){const e=Object(r.a)();return Object(a.get)(e,"contentLocale","en_US")}},,function(e,t,n){"use strict";var a=n(17),r=n(11),s=n(8),o=n.n(s);const i=Object(r.makeOutboundLink)(o.a.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: ${a.colors.$color_help_text}; &:hover, &:focus { color: ${a.colors.$color_snippet_focus}; } // Overwrite the default blue active color for links. &:active { color: ${a.colors.$color_help_text}; } &::before { position: absolute; top: 0; left: 0; padding: 2px; content: "\f223"; } `);t.a=i},function(e,t,n){"use strict";var a=n(10),r=n.n(a),s=n(0),o=n(9),i=n(8);const c=n.n(i)()(o.Collapsible)` h2 > button { padding-left: 24px; 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); } `;t.a=e=>Object(s.createElement)(c,r()({hasPadding:!0,hasSeparator:!0},e))},,function(e,t,n){"use strict";n.r(t),n.d(t,"sortResultsByIdentifier",(function(){return c})),n.d(t,"default",(function(){return l})),n.d(t,"initializationDone",(function(){return u}));var a=n(36),r=n(16),s=n(14),o=n(63);let i=!1;function c(e){return e.sort((e,t)=>e._identifier.localeCompare(t._identifier))}function l(e,t,n,l,u){if(!i)return;const d=s.Paper.parse(t());e.analyze(d).then(s=>{const{result:{seo:o,readability:i,inclusiveLanguage:p}}=s;if(o){const e=o[""];e.results.forEach(e=>{e.getMarker=()=>()=>n(d,e.marks)}),e.results=c(e.results),l.dispatch(r.actions.setSeoResultsForKeyword(d.getKeyword(),e.results)),l.dispatch(r.actions.setOverallSeoScore(e.score,d.getKeyword())),l.dispatch(r.actions.refreshSnippetEditor()),u.saveScores(e.score,d.getKeyword())}i&&(i.results.forEach(e=>{e.getMarker=()=>()=>n(d,e.marks)}),i.results=c(i.results),l.dispatch(r.actions.setReadabilityResults(i.results)),l.dispatch(r.actions.setOverallReadabilityScore(i.score)),l.dispatch(r.actions.refreshSnippetEditor()),u.saveContentScore(i.score)),p&&(p.results.forEach(e=>{e.getMarker=()=>()=>n(d,e.marks)}),p.results=c(p.results),l.dispatch(r.actions.setInclusiveLanguageResults(p.results)),l.dispatch(r.actions.setOverallInclusiveLanguageScore(p.score)),l.dispatch(r.actions.refreshSnippetEditor()),u.saveInclusiveLanguageScore(p.score)),Object(a.doAction)("yoast.analysis.refresh",s,{paper:d,worker:e,collectData:t,applyMarks:n,store:l,dataCollector:u})}).catch(o.a)}function u(){i=!0}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(0),r=n(2),s=n.n(r);function o(e){let{target:t,children:n}=e,r=t;return"string"==typeof t&&(r=document.getElementById(t)),r?Object(a.createPortal)(n,r):null}o.propTypes={target:s.a.oneOfType([s.a.string,s.a.object]).isRequired,children:s.a.node.isRequired}},function(e,t,n){"use strict";var a=n(0);let r,s,o,i;const c=/<(\/)?(\w+)\s*(\/)?>/g;function l(e,t,n,a,r){return{element:e,tokenStart:t,tokenLength:n,prevOffset:a,leadingTextStart:r,children:[]}}function u(){const e=r.length-s;0!==e&&o.push(r.substr(s,e))}function d(e){const{element:t,tokenStart:n,tokenLength:s,prevOffset:o,children:c}=e,l=i[i.length-1],u=r.substr(l.prevOffset,n-l.prevOffset);u&&l.children.push(u),l.children.push(Object(a.cloneElement)(t,null,...c)),l.prevOffset=o||n+s}function p(e){const t=function(){const e=c.exec(r);if(null===e)return["no-more-tokens"];const t=e.index,[n,a,s,o]=e,i=n.length;return o?["self-closed",s,t,i]:a?["closer",s,t,i]:["opener",s,t,i]}(),[n,p,m,h]=t,b=i.length,f=m>s?s:null;if(!e[p])return u(),!1;switch(n){case"no-more-tokens":if(0!==b){const{leadingTextStart:e,tokenStart:t}=i.pop();o.push(r.substr(e,t))}return u(),!1;case"self-closed":return 0===b?(null!==f&&o.push(r.substr(f,m-f)),o.push(e[p]),s=m+h,!0):(d(l(e[p],m,h)),s=m+h,!0);case"opener":return i.push(l(e[p],m,h,m+h,f)),s=m+h,!0;case"closer":if(1===b)return function(e){const{element:t,leadingTextStart:n,prevOffset:s,tokenStart:c,children:l}=i.pop(),u=e?r.substr(s,e-s):r.substr(s);u&&l.push(u),null!==n&&o.push(r.substr(n,c-n)),o.push(Object(a.cloneElement)(t,null,...l))}(m),s=m+h,!0;const t=i.pop(),n=r.substr(t.prevOffset,m-t.prevOffset);t.children.push(n),t.prevOffset=m+h;const c=l(t.element,t.tokenStart,t.tokenLength,m+h);return c.children=t.children,d(c),s=m+h,!0;default:return u(),!1}}t.a=(e,t)=>{if(r=e,s=0,o=[],i=[],c.lastIndex=0,!(e=>{const t="object"==typeof e,n=t&&Object.values(e);return t&&n.length&&n.every(e=>Object(a.isValidElement)(e))})(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(p(t));return Object(a.createElement)(a.Fragment,null,...o)}},,function(e,t,n){"use strict";var a=n(0),r=n(2),s=n.n(r),o=n(8),i=n(21);const c=e=>{let{theme:t,location:n,children:r}=e;return Object(a.createElement)(i.LocationProvider,{value:n},Object(a.createElement)(o.ThemeProvider,{theme:t},r))};c.propTypes={theme:s.a.object.isRequired,location:s.a.oneOf(["sidebar","metabox","modal"]).isRequired,children:s.a.element.isRequired},t.a=c},function(e,t,n){"use strict";var a=n(0),r=n(2),s=n.n(r),o=n(1);const i=e=>{let{data:t,mapChartDataToTableData:n,dataTableCaption:r,dataTableHeaderLabels:s,isDataTableVisuallyHidden:i}=e;return t.length!==s.length?Object(a.createElement)("p",null,Object(o.__)("The number of headers and header labels don't match.","wordpress-seo")):Object(a.createElement)("div",{className:i?"screen-reader-text":null},Object(a.createElement)("table",null,Object(a.createElement)("caption",null,r),Object(a.createElement)("thead",null,Object(a.createElement)("tr",null,s.map((e,t)=>Object(a.createElement)("th",{key:t},e)))),Object(a.createElement)("tbody",null,Object(a.createElement)("tr",null,t.map((e,t)=>Object(a.createElement)("td",{key:t},n(e.y)))))))};i.propTypes={data:s.a.arrayOf(s.a.shape({x:s.a.number,y:s.a.number})).isRequired,mapChartDataToTableData:s.a.func,dataTableCaption:s.a.string.isRequired,dataTableHeaderLabels:s.a.array.isRequired,isDataTableVisuallyHidden:s.a.bool},i.defaultProps={mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};var c=i;const l=e=>{let{data:t,width:n,height:r,fillColor:s,strokeColor:o,strokeWidth:i,className:l,mapChartDataToTableData:u,dataTableCaption:d,dataTableHeaderLabels:p,isDataTableVisuallyHidden:m}=e;const h=Math.max(1,Math.max(...t.map(e=>e.x))),b=Math.max(1,Math.max(...t.map(e=>e.y))),f=r-i,g=t.map(e=>`${e.x/h*n},${f-e.y/b*f+i}`).join(" "),y=`0,${f+i} `+g+` ${n},${f+i}`;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("svg",{width:n,height:r,viewBox:`0 0 ${n} ${r}`,className:l,role:"img","aria-hidden":"true",focusable:"false"},Object(a.createElement)("polygon",{fill:s,points:y}),Object(a.createElement)("polyline",{fill:"none",stroke:o,strokeWidth:i,strokeLinejoin:"round",strokeLinecap:"round",points:g})),u&&Object(a.createElement)(c,{data:t,mapChartDataToTableData:u,dataTableCaption:d,dataTableHeaderLabels:p,isDataTableVisuallyHidden:m}))};l.propTypes={data:s.a.arrayOf(s.a.shape({x:s.a.number,y:s.a.number})).isRequired,width:s.a.number.isRequired,height:s.a.number.isRequired,fillColor:s.a.string,strokeColor:s.a.string,strokeWidth:s.a.number,className:s.a.string,mapChartDataToTableData:s.a.func,dataTableCaption:s.a.string.isRequired,dataTableHeaderLabels:s.a.array.isRequired,isDataTableVisuallyHidden:s.a.bool},l.defaultProps={fillColor:null,strokeColor:"#000000",strokeWidth:1,className:"",mapChartDataToTableData:null,isDataTableVisuallyHidden:!0},t.a=l},,function(e,t,n){"use strict";var a=n(3);const r=a.forwardRef((function(e,t){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),a.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"}))}));t.a=r},,function(e,t,n){"use strict";n.r(t),n.d(t,"refreshDelay",(function(){return a}));const a=500},,,function(e,t,n){"use strict";function a(e){jQuery("#wp-admin-bar-wpseo-menu .wpseo-score-icon").attr("title",e.screenReaderText).attr("class","wpseo-score-icon "+e.className).find(".wpseo-score-text").text(e.screenReaderText)}n.d(t,"a",(function(){return a}))},,,function(e,t,n){"use strict";var a=n(0),r=n(9),s=n(2),o=n.n(s);const i=e=>{const[t,n]=Object(a.useState)(!1),{prefixIcon:s}=e;return Object(a.createElement)("div",{className:"yoast components-panel__body "+(t?"is-opened":"")},Object(a.createElement)("h2",{className:"components-panel__body-title"},Object(a.createElement)("button",{onClick:function(){n(!t)},className:"components-button components-panel__body-toggle",type:"button"},Object(a.createElement)("span",{className:"yoast-icon-span",style:{fill:""+(s&&s.color||"")}},s&&Object(a.createElement)(r.SvgIcon,{icon:s.icon,color:s.color,size:s.size})),Object(a.createElement)("span",{className:"yoast-title-container"},Object(a.createElement)("div",{className:"yoast-title"},e.title),Object(a.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),e.hasBetaBadgeLabel&&Object(a.createElement)(r.BetaBadge,null),Object(a.createElement)("span",{className:"yoast-chevron","aria-hidden":"true"}))),t&&e.children)};t.a=i,i.propTypes={title:o.a.string.isRequired,children:o.a.oneOfType([o.a.node,o.a.arrayOf(o.a.node)]).isRequired,prefixIcon:o.a.object,subTitle:o.a.string,hasBetaBadgeLabel:o.a.bool},i.defaultProps={prefixIcon:null,subTitle:"",hasBetaBadgeLabel:!1}},function(e,t,n){"use strict";n.d(t,"b",(function(){return v}));var a=n(10),r=n.n(a),s=n(0),o=n(8),i=n.n(o),c=n(42),l=n.n(c),u=n(2),d=n.n(u),p=n(1),m=n(9),h=n(17),b=n(11),f=n(38);const g=i.a.p` color: ${h.colors.$color_pink_dark}; font-size: 14px; font-weight: 700; margin: 13px 0 10px; `,y=i()(m.SvgIcon)` margin-right: 5px; vertical-align: middle; `,O=i.a.button` position: absolute; top: 9px; right: 9px; border: none; background: none; cursor: pointer; `,j=i.a.p` font-size: 13px; font-weight: 500; margin: 10px 0 13px; `,w=i.a.div` position: relative; background: ${e=>e.isTitleShortened?"#F5F7F7":"transparent"}; border: 1px solid #C7C7C7; border-left: 4px solid${h.colors.$color_pink_dark}; padding: 0 16px; margin-bottom: 1.5em; `,v=e=>{const[t,n]=Object(s.useState)(null);return Object(s.useEffect)(()=>{e&&!t&&Object(f.b)().then(e=>n(e))},[t]),t};v.propTypes={limit:d.a.bool.isRequired};const k=e=>{let{limit:t,usage:n,isTitleShortened:a,isFreeAccount:r}=e;const o=Object(p.sprintf)( /* Translators: %1$s expands to the number of used keywords. * %2$s expands to the account keywords limit. */ Object(p.__)("Your are tracking %1$s out of %2$s keyphrases included in your free account.","wordpress-seo"),n,t),i=Object(p.sprintf)( /* Translators: %1$s expands to the number of used keywords. * %2$s expands to the account keywords limit. */ Object(p.__)("Your are tracking %1$s out of %2$s keyphrases included in your account.","wordpress-seo"),n,t),c=r?o:i,l=Object(p.sprintf)( /* Translators: %1$s expands to the number of used keywords. * %2$s expands to the account keywords limit. */ Object(p.__)("Keyphrases tracked: %1$s/%2$s","wordpress-seo"),n,t),u=a?l:c;return Object(s.createElement)(g,null,a&&Object(s.createElement)(y,{icon:"exclamation-triangle",color:h.colors.$color_pink_dark,size:"14px"}),u)};k.propTypes={limit:d.a.number.isRequired,usage:d.a.number.isRequired,isTitleShortened:d.a.bool,isFreeAccount:d.a.bool};const E=Object(b.makeOutboundLink)(),_=e=>{let{discount:t,months:n}=e;const a=Object(s.createElement)(E,{href:wpseoAdminGlobalL10n["links.wincher.upgrade"],style:{fontWeight:600}},Object(p.sprintf)(/* Translators: %s : Expands to "Wincher". */ Object(p.__)("Click here to upgrade your %s plan","wordpress-seo"),"Wincher"));if(!t||!n)return Object(s.createElement)(j,null,a);const r=100*t,o=Object(p.sprintf)( /* Translators: %1$s expands to upgrade account link. * %2$s expands to the upgrade discount value. * %3$s expands to the upgrade discount duration e.g. 2 months. */ Object(p.__)("%1$s and get an exclusive %2$s discount for %3$s month(s).","wordpress-seo"),"{{wincherAccountUpgradeLink/}}",r+"%",n);return Object(s.createElement)(j,null,l()({mixedString:o,components:{wincherAccountUpgradeLink:a}}))};_.propTypes={discount:d.a.number,months:d.a.number};const R=e=>{let{onClose:t,isTitleShortened:n,trackingInfo:a}=e;const o=(()=>{const[e,t]=Object(s.useState)(null);return Object(s.useEffect)(()=>{e||Object(f.e)().then(e=>t(e))},[e]),e})();if(null===a)return null;const{limit:i,usage:c}=a;if(!(i&&c/i>=.8))return null;const l=Boolean(null==o?void 0:o.discount);return Object(s.createElement)(w,{isTitleShortened:n},t&&Object(s.createElement)(O,{type:"button","aria-label":Object(p.__)("Close the upgrade callout","wordpress-seo"),onClick:t},Object(s.createElement)(m.SvgIcon,{icon:"times-circle",color:h.colors.$color_pink_dark,size:"14px"})),Object(s.createElement)(k,r()({},a,{isTitleShortened:n,isFreeAccount:l})),Object(s.createElement)(_,{discount:null==o?void 0:o.discount,months:null==o?void 0:o.months}))};R.propTypes={onClose:d.a.func,isTitleShortened:d.a.bool,trackingInfo:d.a.object},t.a=R},,function(e,t,n){"use strict";n.d(t,"b",(function(){return d}));var a=n(0),r=n(1),s=n(31),o=n(2),i=n.n(o),c=n(4),l=n(49),u=n(21);const d=e=>{let t=!0;if("blur"===(null==e?void 0:e.type)){const{relatedTarget:n}=e;if(n){const e=["media-modal","wp-core-ui"];t=Object(c.intersection)(e,Array.from(n.classList)).length!==e.length}}return t},p=e=>{let{id:t,postTypeName:n,children:o,title:i,isOpen:c,close:p,open:m,shouldCloseOnClickOutside:h,showChangesWarning:b,SuffixHeroIcon:f}=e;const g=Object(a.useCallback)(e=>{d(e)&&p()},[p]);return Object(a.createElement)(a.Fragment,null,c&&Object(a.createElement)(u.LocationProvider,{value:"modal"},Object(a.createElement)(s.a,{title:i,onRequestClose:g,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal",id:"id",shouldCloseOnClickOutside:h},Object(a.createElement)("div",{className:"yoast-content-container"},Object(a.createElement)("div",{className:"yoast-modal-content"},o)),Object(a.createElement)("div",{className:"yoast-notice-container"},Object(a.createElement)("hr",null),Object(a.createElement)("div",{className:"yoast-button-container"},b&&Object(a.createElement)("p",null,/* Translators: %s translates to the Post Label in singular form */ Object(r.sprintf)(Object(r.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),n)),Object(a.createElement)("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:g},/* Translators: %s translates to the Post Label in singular form */ Object(r.sprintf)(Object(r.__)("Return to your %s","wordpress-seo"),n)))))),Object(a.createElement)(l.a,{id:t+"-open-button",title:i,SuffixHeroIcon:f,suffixIcon:f?null:{size:"20px",icon:"pencil-square"},onClick:m}))};p.propTypes={id:i.a.string.isRequired,postTypeName:i.a.string.isRequired,children:i.a.oneOfType([i.a.node,i.a.arrayOf(i.a.node)]).isRequired,title:i.a.string.isRequired,isOpen:i.a.bool.isRequired,open:i.a.func.isRequired,close:i.a.func.isRequired,shouldCloseOnClickOutside:i.a.bool,showChangesWarning:i.a.bool,SuffixHeroIcon:i.a.object},p.defaultProps={shouldCloseOnClickOutside:!0,showChangesWarning:!0},t.a=p},,function(e,t,n){"use strict";function a(){return window.wpseoScriptData&&"1"===window.wpseoScriptData.isBlockEditor}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";function a(e){var t=jQuery(".yst-traffic-light"),n=t.closest(".wpseo-meta-section-link"),a=jQuery("#wpseo-traffic-light-desc"),r=e.className||"na";t.attr("class","yst-traffic-light "+r),n.attr("aria-describedby","wpseo-traffic-light-desc"),a.length>0?a.text(e.screenReaderText):n.closest("li").append("<span id='wpseo-traffic-light-desc' class='screen-reader-text'>"+e.screenReaderText+"</span>")}n.d(t,"a",(function(){return a}))},,,,,,function(e,t,n){"use strict";var a=n(18),r=n(5),s=n(96);t.a=Object(a.compose)([Object(r.withSelect)((e,t)=>{const{getPostOrPageString:n,getIsModalOpen:a}=e("yoast-seo/editor");return{postTypeName:n(),isOpen:a(t.id)}}),Object(r.withDispatch)((e,t)=>{const{openEditorModal:n,closeEditorModal:a}=e("yoast-seo/editor");return{open:()=>n(t.id),close:a}})])(s.a)},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"c",(function(){return _})),n.d(t,"b",(function(){return x}));var a=n(0),r=n(2),s=n.n(r),o=n(1),i=n(4),c=n(24),l=n.n(c),u=n(9),d=n(83),p=()=>Object(a.createElement)("p",{className:"yoast-wincher-seo-performance-modal__loading-message"},Object(o.__)("Tracking the ranking position...","wordpress-seo")," ",Object(a.createElement)(u.SvgIcon,{icon:"loading-spinner"})),m=n(8),h=n.n(m);const b=h()(u.SvgIcon)` margin-left: 2px; flex-shrink: 0; rotate: ${e=>e.isImproving?"-90deg":"90deg"}; `,f=h.a.span` color: ${e=>e.isImproving?"#69AB56":"#DC3332"}; font-size: 13px; font-weight: 600; line-height: 20px; margin-right: 2px; margin-left: 12px; `,g=h.a.td` padding-right: 0 !important; & > div { margin: 0px; } `,y=h.a.td` padding-left: 2px !important; `,O=h.a.td.attrs({className:"yoast-table--nopadding"})` & > div { justify-content: center; } `,j=h.a.div` display: flex; align-items: center; & > a { box-sizing: border-box; } `,w=h.a.button` background: none; color: inherit; border: none; padding: 0; font: inherit; cursor: pointer; outline: inherit; display: flex; align-items: center; `,v=h.a.tr` background-color: ${e=>e.isEnabled?"#FFFFFF":"#F9F9F9"} !important; `;function k(e){return Math.round(100*e)}function E(e){let{chartData:t}=e;if(Object(i.isEmpty)(t)||Object(i.isEmpty)(t.position))return"?";const n=function(e){return Array.from({length:e.position.history.length},(e,t)=>t+1).map(e=>Object(o.sprintf)(Object(o._n)("%d day","%d days",e,"wordpress-seo"),e))}(t),r=t.position.history.map((e,t)=>({x:t,y:101-e.value}));return Object(a.createElement)(d.a,{width:66,height:24,data:r,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",mapChartDataToTableData:k,dataTableCaption:Object(o.__)("Keyphrase position in the last 90 days on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:n})}function _(e){return!e||!e.position||e.position.value>100?"> 100":e.position.value}E.propTypes={chartData:s.a.object},E.defaultProps={chartData:{}};const R=e=>{var t;let{rowData:n}=e;if(null==n||null===(t=n.position)||void 0===t||!t.change)return Object(a.createElement)(E,{chartData:n});const r=n.position.change<0;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(E,{chartData:n}),Object(a.createElement)(f,{isImproving:r},Math.abs(n.position.change)),Object(a.createElement)(b,{icon:"caret-right",color:r?"#69AB56":"#DC3332",size:"14px",isImproving:r}))};function x(e){var t;const{keyphrase:n,rowData:r,onTrackKeyphrase:s,onUntrackKeyphrase:c,isFocusKeyphrase:d,isDisabled:m,isLoading:h,isSelected:b,onSelectKeyphrases:f}=e,k=!Object(i.isEmpty)(r),E=!Object(i.isEmpty)(null==r||null===(t=r.position)||void 0===t?void 0:t.history),x=Object(a.useCallback)(()=>{m||(k?c(n,r.id):s(n))},[n,s,c,k,r,m]),T=Object(a.useCallback)(()=>{f(e=>b?e.filter(e=>e!==n):e.concat(n))},[f,b,n]);return Object(a.createElement)(v,{isEnabled:k},Object(a.createElement)(g,null,E&&Object(a.createElement)(u.Checkbox,{id:"select-"+n,onChange:T,checked:b,label:""})),Object(a.createElement)(y,null,n,d&&Object(a.createElement)("span",null,"*")),function(e){const{rowData:t,websiteId:n,keyphrase:r,onSelectKeyphrases:s}=e,c=Object(a.useCallback)(()=>{s([r])},[s,r]),d=!Object(i.isEmpty)(t),m=t&&t.updated_at&&l()(t.updated_at)>=l()().subtract(7,"days"),h=t?Object(o.sprintf)("https://app.wincher.com/websites/%s/keywords?serp=%s&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast",n,t.id):null;return d?m?Object(a.createElement)(a.Fragment,null,Object(a.createElement)("td",null,Object(a.createElement)(j,null,_(t),Object(a.createElement)(u.ButtonStyledLink,{variant:"secondary",href:h,style:{height:28,marginLeft:12},rel:"noopener",target:"_blank"},Object(o.__)("View","wordpress-seo")))),Object(a.createElement)("td",{className:"yoast-table--nopadding"},Object(a.createElement)(w,{type:"button",onClick:c},Object(a.createElement)(R,{rowData:t}))),Object(a.createElement)("td",null,(b=t.updated_at,l()(b).fromNow()))):Object(a.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},Object(a.createElement)(p,null)):Object(a.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},Object(a.createElement)("i",null,Object(o.__)("Activate tracking to show the ranking position","wordpress-seo")));var b}(e),Object(a.createElement)(O,null,function(e){let{keyphrase:t,isEnabled:n,toggleAction:r,isLoading:s}=e;return s?Object(a.createElement)(u.SvgIcon,{icon:"loading-spinner"}):Object(a.createElement)(u.Toggle,{id:"toggle-keyphrase-tracking-"+t,className:"wincher-toggle",isEnabled:n,onSetToggleState:r,showToggleStateLabel:!1})}({keyphrase:n,isEnabled:k,toggleAction:x,isLoading:h})))}R.propTypes={rowData:s.a.object},x.propTypes={rowData:s.a.object,keyphrase:s.a.string.isRequired,onTrackKeyphrase:s.a.func,onUntrackKeyphrase:s.a.func,isFocusKeyphrase:s.a.bool,isDisabled:s.a.bool,isLoading:s.a.bool,websiteId:s.a.string,isSelected:s.a.bool.isRequired,onSelectKeyphrases:s.a.func.isRequired},x.defaultProps={rowData:{},onTrackKeyphrase:()=>{},onUntrackKeyphrase:()=>{},isFocusKeyphrase:!1,isDisabled:!1,isLoading:!1,websiteId:""}},,function(e,t,n){"use strict";n.r(t),n.d(t,"updateScore",(function(){return o})),n.d(t,"createScoresInPublishBox",(function(){return i})),n.d(t,"scrollToCollapsible",(function(){return c})),n.d(t,"initialize",(function(){return l}));var a=n(4),r=jQuery;function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return null!==n?Object(a.get)(n,t,""):Object(a.get)(wpseoScriptData,`metabox.publish_box.labels.${e}.${t}`,"")}function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;var a=r("#"+e+"-score"),o="image yoast-logo svg "+t;a.children(".image").attr("class",o);var i=s(e,t,n);a.children(".score-text").html(i)}function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const a=r("<div />",{class:"misc-pub-section yoast yoast-seo-score "+e+"-score",id:e+"-score"}),o=r("<span />",{class:"score-text",html:s(e,t,n)}),i=r("<span>").attr("class","image yoast-logo svg na");a.append(i).append(o),r("#yoast-seo-publishbox-section").append(a)}function c(e){const t=r("#wpadminbar"),n=r(e);if(!t||!n)return;const a="fixed"===t.css("position")?t.height():0;r([document.documentElement,document.body]).animate({scrollTop:n.offset().top-a},1e3),n.trigger("focus"),0===n.parent().siblings().length&&n.trigger("click")}function l(){wpseoScriptData.metabox.keywordAnalysisActive&&i("keyword","na"),wpseoScriptData.metabox.contentAnalysisActive&&i("content","na"),wpseoScriptData.metabox.inclusiveLanguageAnalysisActive&&i("inclusive-language","na"),r("#content-score").on("click","[href='#yoast-readability-analysis-collapsible-metabox']",(function(e){e.preventDefault(),document.querySelector("#wpseo-meta-tab-readability").click(),c("#wpseo-meta-section-readability")})),r("#keyword-score").on("click","[href='#yoast-seo-analysis-collapsible-metabox']",(function(e){e.preventDefault(),document.querySelector("#wpseo-meta-tab-content").click(),c("#yoast-seo-analysis-collapsible-metabox")})),r("#inclusive-language-score").on("click","[href='#yoast-inclusive-language-analysis-collapsible-metabox']",(function(e){e.preventDefault(),document.querySelector("#wpseo-meta-tab-inclusive-language").click(),c("#wpseo-meta-section-inclusive-language")}))}},,function(e,t,n){"use strict";function a(e){return function(){return e}}var r=function(){};r.thatReturns=a,r.thatReturnsFalse=a(!1),r.thatReturnsTrue=a(!0),r.thatReturnsNull=a(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));class a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};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:""},n),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:n}=this.options,a=["top="+(window.top.outerHeight/2+window.top.screenY-e/2),"left="+(window.top.outerWidth/2+window.top.screenX-t/2),"width="+t,"height="+e,"resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(this.url,n,a.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}async messageHandler(e){const{data:t,source:n,origin:a}=e;a===this.origin&&this.popup===n&&(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()}}},function(e,t,n){"use strict";var a=n(0),r=n(2),s=n.n(r),o=n(1),i=n(42),c=n.n(i),l=n(9);const u=e=>{const t=Object(o.sprintf)(/* translators: %s expands to a link to open the Wincher login popup. */ Object(o.__)("It seems like something went wrong when retrieving your website's data. Please %s and try again.","wordpress-seo"),"{{reconnectToWincher/}}","Wincher");return Object(a.createElement)(l.Alert,{type:"error",className:e.className},c()({mixedString:t,components:{reconnectToWincher:Object(a.createElement)("a",{href:"#",onClick:t=>{t.preventDefault(),e.onReconnect()}},Object(o.sprintf)(/* translators: %s : Expands to "Wincher". */ Object(o.__)("reconnect to %s","wordpress-seo"),"Wincher"))}}))};u.propTypes={onReconnect:s.a.func.isRequired,className:s.a.string},u.defaultProps={className:""},t.a=u},function(e,t){e.exports=window.wp.sanitize},function(e,t,n){"use strict";var a=n(0),r=n(1),s=n(13),o=n(21),i=n(2),c=n.n(i),l=n(55),u=n(61);const d=Object(r.__)("Check your text on even more SEO criteria and get an enhanced keyphrase analysis, making it easier to optimize your content.","wordpress-seo"),p=e=>{const{locationContext:t}=Object(o.useRootContext)(),n=Object(s.addQueryArgs)(wpseoAdminL10n[e.buyLink],{context:t});return Object(a.createElement)(u.a,{title:Object(r.__)("Get more help with writing content that ranks","wordpress-seo"),description:e.description,benefitsTitle:/* translators: %s expands to 'Yoast SEO Premium'. */ Object(r.sprintf)("%s also gives you:","Yoast SEO Premium"),benefits:Object(l.a)(),upsellButtonText:Object(r.sprintf)(/* translators: %s expands to 'Yoast SEO Premium'. */ Object(r.__)("Unlock with %s","wordpress-seo"),"Yoast SEO Premium"),upsellButton:{href:n,className:"yoast-button-upsell",rel:null,"data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2","data-action":"load-nfd-ctb"},upsellButtonLabel:Object(r.__)("1 year of premium support and updates included!","wordpress-seo")})};p.propTypes={buyLink:c.a.string.isRequired,description:c.a.string},p.defaultProps={description:d},t.a=p},function(e,t,n){"use strict";var a=n(18),r=n(5);const s=Object(a.compose)([Object(r.withSelect)((e,t)=>{const{isAlertDismissed:n}=e(t.store||"yoast-seo/editor");return{isAlertDismissed:n(t.alertKey)}}),Object(r.withDispatch)((e,t)=>{const{dismissAlert:n}=e(t.store||"yoast-seo/editor");return{onDismissed:()=>n(t.alertKey)}})]);t.a=s},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(4);const r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return()=>t.map(e=>e())};t.b=(e,t)=>{let n=e();return()=>{const r=e();Object(a.isEqual)(r,n)||(n=r,t(Object(a.clone)(r)))}}},,,,function(e,t,n){"use strict";var a=n(0),r=n(1),s=n(42),o=n.n(s),i=n(11);const c=Object(i.makeOutboundLink)(),l=Object(i.makeOutboundLink)();t.a=()=>{const e=Object(r.sprintf)(Object(r.__)(/* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */ "With %1$s you can track the ranking position of your page in the search results based on your keyphrase(s). %2$s","wordpress-seo"),"{{wincherLink/}}","{{wincherReadMoreLink/}}");return Object(a.createElement)("p",null,o()({mixedString:e,components:{wincherLink:Object(a.createElement)(c,{href:wpseoAdminGlobalL10n["links.wincher.website"]},"Wincher"),wincherReadMoreLink:Object(a.createElement)(l,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"]},Object(r.__)("Read more about keyphrase tracking with Wincher","wordpress-seo"))}}))}},,,,,,,,,,,,,,function(e,t,n){"use strict";var a=n(5),r=n(18),s=n(10),o=n.n(s),i=n(0),c=n(1),l=n(2),u=n.n(l),d=n(4),p=n(8),m=n.n(p),h=n(24),b=n.n(h),f=n(9),g=n(11),y=n(42),O=n.n(y);const j=Object(g.makeOutboundLink)(),w=e=>{const t=Object(c.sprintf)(/* translators: %d expands to the amount of allowed keyphrases on a free account, %s expands to a link to Wincher plans. */ Object(c.__)("You've reached the maximum amount of %d keyphrases you can add to your Wincher account. If you wish to add more keyphrases, please %s.","wordpress-seo"),e.limit,"{{updateWincherPlanLink/}}");return Object(i.createElement)(f.Alert,{type:"error"},O()({mixedString:t,components:{updateWincherPlanLink:Object(i.createElement)(j,{href:wpseoAdminGlobalL10n["links.wincher.pricing"]},Object(c.sprintf)(/* translators: %s : Expands to "Wincher". */ Object(c.__)("upgrade your %s plan","wordpress-seo"),"Wincher"))}}))};w.propTypes={limit:u.a.number},w.defaultProps={limit:10};var v=w,k=()=>Object(i.createElement)(f.Alert,{type:"error"},Object(c.__)("Something went wrong while tracking the ranking position(s) of your page. Please try again later.","wordpress-seo")),E=n(94),_=()=>Object(i.createElement)(f.Alert,{type:"success"},Object(c.sprintf)(/* translators: %s: Expands to "Wincher". */ Object(c.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher")),R=()=>Object(i.createElement)(f.Alert,{type:"info"},Object(c.sprintf)(/* translators: %s: Expands to "Wincher". */ Object(c.__)("%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")),x=n(112),T=n(38),S=n(32);const I=Object(g.makeOutboundLink)(),C=m.a.span` display: block; font-style: italic; @media (min-width: 782px) { display: inline; position: absolute; ${Object(g.getDirectionalStyle)("right","left")}: 8px; } `,L=m.a.div` width: 100%; overflow-y: auto; `,P=m.a.th` pointer-events: ${e=>e.isDisabled?"none":"initial"}; padding-right: 0 !important; & > div { margin: 0px; } `,A=m.a.th` padding-left: 2px !important; `,q=e=>{const t=Object(i.useRef)();return Object(i.useEffect)(()=>{t.current=e}),t.current},N=Object(d.debounce)(T.d,500,{leading:!0}),M=e=>{const{addTrackedKeyphrase:t,isLoggedIn:n,keyphrases:a,permalink:r,removeTrackedKeyphrase:s,setKeyphraseLimitReached:o,setRequestFailed:l,setRequestSucceeded:u,setTrackedKeyphrases:p,setHasTrackedAll:m,trackAll:h,trackedKeyphrases:b,isNewlyAuthenticated:g,websiteId:y,focusKeyphrase:O,newRequest:j,startAt:w,selectedKeyphrases:v,onSelectKeyphrases:k}=e,E=Object(i.useRef)(),_=Object(i.useRef)(),R=Object(i.useRef)(!1),[M,D]=Object(i.useState)([]),B=Object(i.useCallback)(e=>{const t=e.toLowerCase();return b&&!Object(d.isEmpty)(b)&&b.hasOwnProperty(t)?b[t]:null},[b]),F=Object(i.useMemo)(()=>async()=>{await Object(S.b)(()=>(_.current&&_.current.abort(),_.current="undefined"==typeof AbortController?null:new AbortController,N(a,w,r,_.current.signal)),e=>{u(e),p(e.results)},e=>{l(e)})},[u,l,p,a,r,w]),K=Object(i.useCallback)(async e=>{const n=(Array.isArray(e)?e:[e]).map(e=>e.toLowerCase());D(e=>[...e,...n]),await Object(S.b)(()=>Object(T.f)(n),e=>{u(e),t(e.results),F()},e=>{400===e.status&&e.limit&&o(e.limit),l(e)},201),D(e=>Object(d.without)(e,...n))},[u,l,o,t,F]),H=Object(i.useCallback)(async(e,t)=>{e=e.toLowerCase(),D(t=>[...t,e]),await Object(S.b)(()=>Object(T.g)(t),t=>{u(t),s(e)},e=>{l(e)}),D(t=>Object(d.without)(t,e))},[u,s,l]),$=Object(i.useCallback)(async e=>{j(),await K(e)},[j,K]),W=q(r),z=q(a),Y=q(w),U=r&&w;Object(i.useEffect)(()=>{n&&U&&(r!==W||Object(d.difference)(a,z).length||w!==Y)&&F()},[n,r,W,a,z,F,U,w,Y]),Object(i.useEffect)(()=>{if(n&&h&&null!==b){const e=a.filter(e=>!B(e));e.length&&K(e),m()}},[n,h,b,K,m,B,a]),Object(i.useEffect)(()=>{g&&!R.current&&(F(),R.current=!0)},[g,F]),Object(i.useEffect)(()=>{if(n&&!Object(d.isEmpty)(b))return Object(d.filter)(b,e=>Object(d.isEmpty)(e.updated_at)).length>0&&(E.current=setInterval(()=>{F()},1e4)),()=>{clearInterval(E.current)}},[n,b,F]);const V=n&&null===b,G=Object(i.useMemo)(()=>Object(d.isEmpty)(b)?[]:Object.values(b).filter(e=>{var t;return!Object(d.isEmpty)(null==e||null===(t=e.position)||void 0===t?void 0:t.history)}).map(e=>e.keyword),[b]),Z=Object(i.useMemo)(()=>v.length>0&&G.length>0&&G.every(e=>v.includes(e)),[v,G]),J=Object(i.useCallback)(()=>{k(Z?[]:G)},[k,Z,G]),Q=Object(i.useMemo)(()=>Object(d.orderBy)(a,[e=>Object.values(b||{}).map(e=>e.keyword).includes(e)],["desc"]),[a,b]);return a&&!Object(d.isEmpty)(a)&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(L,null,Object(i.createElement)("table",{className:"yoast yoast-table"},Object(i.createElement)("thead",null,Object(i.createElement)("tr",null,Object(i.createElement)(P,{isDisabled:0===G.length},Object(i.createElement)(f.Checkbox,{id:"select-all",onChange:J,checked:Z,label:""})),Object(i.createElement)(A,{scope:"col",abbr:Object(c.__)("Keyphrase","wordpress-seo")},Object(c.__)("Keyphrase","wordpress-seo")),Object(i.createElement)("th",{scope:"col",abbr:Object(c.__)("Position","wordpress-seo")},Object(c.__)("Position","wordpress-seo")),Object(i.createElement)("th",{scope:"col",abbr:Object(c.__)("Position over time","wordpress-seo")},Object(c.__)("Position over time","wordpress-seo")),Object(i.createElement)("th",{scope:"col",abbr:Object(c.__)("Last updated","wordpress-seo")},Object(c.__)("Last updated","wordpress-seo")),Object(i.createElement)("th",{scope:"col",abbr:Object(c.__)("Tracking","wordpress-seo")},Object(c.__)("Tracking","wordpress-seo")))),Object(i.createElement)("tbody",null,Q.map((e,t)=>Object(i.createElement)(x.b,{key:"trackable-keyphrase-"+t,keyphrase:e,onTrackKeyphrase:$,onUntrackKeyphrase:H,rowData:B(e),isFocusKeyphrase:e===O.trim().toLowerCase(),websiteId:y,isDisabled:!n,isLoading:V||M.indexOf(e.toLowerCase())>=0,isSelected:v.includes(e),onSelectKeyphrases:k}))))),Object(i.createElement)("p",{style:{marginBottom:0,position:"relative"}},Object(i.createElement)(I,{href:wpseoAdminGlobalL10n["links.wincher.login"]},Object(c.sprintf)(/* translators: %s expands to Wincher */ Object(c.__)("Get more insights over at %s","wordpress-seo"),"Wincher")),Object(i.createElement)(C,null,Object(c.__)("* focus keyphrase","wordpress-seo"))))};M.propTypes={addTrackedKeyphrase:u.a.func.isRequired,isLoggedIn:u.a.bool,isNewlyAuthenticated:u.a.bool,keyphrases:u.a.array,newRequest:u.a.func.isRequired,removeTrackedKeyphrase:u.a.func.isRequired,setRequestFailed:u.a.func.isRequired,setKeyphraseLimitReached:u.a.func.isRequired,setRequestSucceeded:u.a.func.isRequired,setTrackedKeyphrases:u.a.func.isRequired,setHasTrackedAll:u.a.func.isRequired,trackAll:u.a.bool,trackedKeyphrases:u.a.object,websiteId:u.a.string,permalink:u.a.string.isRequired,focusKeyphrase:u.a.string,startAt:u.a.string,selectedKeyphrases:u.a.arrayOf(u.a.string).isRequired,onSelectKeyphrases:u.a.func.isRequired},M.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],trackAll:!1,websiteId:"",focusKeyphrase:""};var D=M,B=Object(r.compose)([Object(a.withSelect)(e=>{const{getWincherWebsiteId:t,getWincherTrackableKeyphrases:n,getWincherLoginStatus:a,getWincherPermalink:r,getFocusKeyphrase:s,isWincherNewlyAuthenticated:o,shouldWincherTrackAll:i}=e("yoast-seo/editor");return{focusKeyphrase:s(),keyphrases:n(),isLoggedIn:a(),trackAll:i(),websiteId:t(),isNewlyAuthenticated:o(),permalink:r()}}),Object(a.withDispatch)(e=>{const{setWincherNewRequest:t,setWincherRequestSucceeded:n,setWincherRequestFailed:a,setWincherSetKeyphraseLimitReached:r,setWincherTrackedKeyphrases:s,setWincherTrackingForKeyphrase:o,setWincherTrackAllKeyphrases:i,unsetWincherTrackingForKeyphrase:c}=e("yoast-seo/editor");return{newRequest:()=>{t()},setRequestSucceeded:e=>{n(e)},setRequestFailed:e=>{a(e)},setKeyphraseLimitReached:e=>{r(e)},addTrackedKeyphrase:e=>{o(e)},removeTrackedKeyphrase:e=>{c(e)},setTrackedKeyphrases:e=>{s(e)},setHasTrackedAll:()=>{i(!1)}}})])(D),F=n(129),K=()=>Object(i.createElement)(f.Alert,{type:"error"},Object(c.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo")),H=()=>Object(i.createElement)(f.Alert,{type:"info"},Object(c.sprintf)(/* translators: %s: Expands to "Wincher". */ Object(c.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher")),$=n(117),W=n(118),z=()=>Object(i.createElement)(f.Alert,{type:"error"},Object(c.__)("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")),Y=n(3),U=n.n(Y),V=n(25);function G(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Z(e,t){e.labels=t}function J(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"label";const a=[];e.datasets=t.map(t=>{const r=e.datasets.find(e=>e[n]===t[n]);return r&&t.data&&!a.includes(r)?(a.push(r),Object.assign(r,t),r):{...t}})}function Q(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"label";const n={labels:[],datasets:[]};return Z(n,e.labels),J(n,e.datasets,t),n}function X(e,t){const{height:n=150,width:a=300,redraw:r=!1,datasetIdKey:s,type:o,data:i,options:c,plugins:l=[],fallbackContent:u,updateMode:d,...p}=e,m=Object(Y.useRef)(null),h=Object(Y.useRef)(),b=()=>{m.current&&(h.current=new V.Chart(m.current,{type:o,data:Q(i,s),options:c&&{...c},plugins:l}),G(t,h.current))},f=()=>{G(t,null),h.current&&(h.current.destroy(),h.current=null)};return Object(Y.useEffect)(()=>{!r&&h.current&&c&&function(e,t){const n=e.options;n&&t&&Object.assign(n,t)}(h.current,c)},[r,c]),Object(Y.useEffect)(()=>{!r&&h.current&&Z(h.current.config.data,i.labels)},[r,i.labels]),Object(Y.useEffect)(()=>{!r&&h.current&&i.datasets&&J(h.current.config.data,i.datasets,s)},[r,i.datasets]),Object(Y.useEffect)(()=>{h.current&&(r?(f(),setTimeout(b)):h.current.update(d))},[r,c,i.labels,i.datasets,d]),Object(Y.useEffect)(()=>{h.current&&(f(),setTimeout(b))},[o]),Object(Y.useEffect)(()=>(b(),()=>f()),[]),U.a.createElement("canvas",Object.assign({ref:m,role:"img",height:n,width:a},p),u)}const ee=Object(Y.forwardRef)(X);function te(e,t){return V.Chart.register(t),Object(Y.forwardRef)((t,n)=>U.a.createElement(ee,Object.assign({},t,{ref:n,type:e})))}const ne=te("line",V.LineController),ae=(V.BarController,V.RadarController,V.DoughnutController,V.PolarAreaController,V.BubbleController,V.PieController,V.ScatterController,{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"});V._adapters._date.override("function"==typeof b.a?{_id:"moment",formats:function(){return ae},parse:function(e,t){return"string"==typeof e&&"string"==typeof t?e=b()(e,t):e instanceof b.a||(e=b()(e)),e.isValid()?e.valueOf():null},format:function(e,t){return b()(e).format(t)},add:function(e,t,n){return b()(e).add(t,n).valueOf()},diff:function(e,t,n){return b()(e).diff(b()(t),n)},startOf:function(e,t,n){return e=b()(e),"isoWeek"===t?(n=Math.trunc(Math.min(Math.max(0,n),6)),e.isoWeekday(n).startOf("day").valueOf()):e.startOf(t).valueOf()},endOf:function(e,t){return b()(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 re=["top","right","bottom","left"];function se(e,t,n){const a={};n=n?"-"+n:"";for(let r=0;r<4;r++){const s=re[r];a[s]=parseFloat(e[t+"-"+s+n])||0}return a.width=a.left+a.right,a.height=a.top+a.bottom,a}!function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}}(),V.Chart.register(V.CategoryScale,V.LineController,V.LineElement,V.PointElement,V.LinearScale,V.TimeScale,V.Legend,V.Tooltip);const oe=["#ff983b","#ffa3f7","#3798ff","#ff3b3b","#acce81","#b51751","#3949ab","#26c6da","#ccb800","#de66ff","#4db6ac","#ffab91","#45f5f1","#77f210","#90a4ae","#ffd54f","#006b5e","#8ec7d2","#b1887c","#cc9300"];function ie(e){let{datasets:t,isChartShown:n,keyphrases:a}=e;if(!n)return null;const r=Object(i.useMemo)(()=>Object.fromEntries([...a].sort().map((e,t)=>[e,oe[t%oe.length]])),[a]),s=t.map(e=>{const t=r[e.label];return{...e,data:e.data.map(e=>{let{datetime:t,value:n}=e;return{x:t,y:n}}),lineTension:0,pointRadius:1,pointHoverRadius:4,borderWidth:2,pointHitRadius:6,backgroundColor:t,borderColor:t}}).filter(e=>!1!==e.selected);return Object(i.createElement)(ne,{height:100,data:{datasets:s},options:{plugins:{legend:{display:!0,position:"bottom",labels:{color:"black",usePointStyle:!0,boxHeight:7,boxWidth:7},onClick:d.noop},tooltip:{enabled:!0,callbacks:{title:e=>b()(e[0].raw.x).utc().format("YYYY-MM-DD")},titleAlign:"center",mode:"xPoint",position:"nearest",usePointStyle:!0,boxHeight:7,boxWidth:7,boxPadding:2}},scales:{x:{bounds:"ticks",type:"time",time:{unit:"day",minUnit:"day"},grid:{display:!1},ticks:{autoSkipPadding:50,maxRotation:0,color:"black"}},y:{bounds:"ticks",offset:!0,reverse:!0,ticks:{precision:0,color:"black"},max:101}}}})}V.Interaction.modes.xPoint=(e,t,n,a)=>{const r=function(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:a}=t,r=(m=n).ownerDocument.defaultView.getComputedStyle(m,null),s="border-box"===r.boxSizing,o=se(r,"padding"),i=se(r,"border","width"),{x:c,y:l,box:u}=function(e,t){const n=e.touches,a=n&&n.length?n[0]:e,{offsetX:r,offsetY:s}=a;let o,i,c=!1;if(((e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot))(r,s,e.target))o=r,i=s;else{const e=t.getBoundingClientRect();o=a.clientX-e.left,i=a.clientY-e.top,c=!0}return{x:o,y:i,box:c}}(e,n),d=o.left+(u&&i.left),p=o.top+(u&&i.top);var m;let{width:h,height:b}=t;return s&&(h-=o.width+i.width,b-=o.height+i.height),{x:Math.round((c-d)/h*n.width/a),y:Math.round((l-p)/b*n.height/a)}}(t,e);let s=[];if(V.Interaction.evaluateInteractionItems(e,"x",r,(e,t,n)=>{e.inXRange(r.x,a)&&s.push({element:e,datasetIndex:t,index:n})}),0===s.length)return s;const o=s.reduce((e,t)=>Math.abs(r.x-e.element.x)<Math.abs(r.x-t.element.x)?e:t).element.x;return s=s.filter(e=>e.element.x===o),s.some(e=>Math.abs(e.element.y-r.y)<10)?s:[]},ie.propTypes={datasets:u.a.arrayOf(u.a.shape({label:u.a.string.isRequired,data:u.a.arrayOf(u.a.shape({datetime:u.a.string.isRequired,value:u.a.number.isRequired})).isRequired,selected:u.a.bool})).isRequired,isChartShown:u.a.bool.isRequired,keyphrases:u.a.array.isRequired};const ce=e=>{let{response:t,onLogin:n}=e;return[401,403,404].includes(t.status)?Object(i.createElement)(W.a,{onReconnect:n}):Object(i.createElement)(k,null)};ce.propTypes={response:u.a.object.isRequired,onLogin:u.a.func.isRequired};const le=e=>{let{isSuccess:t,response:n,allKeyphrasesMissRanking:a,onLogin:r,keyphraseLimitReached:s,limit:o}=e;return s?Object(i.createElement)(v,{limit:o}):Object(d.isEmpty)(n)||t?a?Object(i.createElement)(R,null):null:Object(i.createElement)(ce,{response:n,onLogin:r})};le.propTypes={isSuccess:u.a.bool.isRequired,allKeyphrasesMissRanking:u.a.bool.isRequired,response:u.a.object,onLogin:u.a.func.isRequired,keyphraseLimitReached:u.a.bool.isRequired,limit:u.a.number.isRequired},le.defaultProps={response:{}};let ue=null;const de=async e=>{if(ue&&!ue.isClosed())return void ue.focus();const{url:t}=await Object(T.c)();ue=new $.a(t,{success:{type:"wincher:oauth:success",callback:t=>(async(e,t)=>{const{onAuthentication:n,setRequestSucceeded:a,setRequestFailed:r,keyphrases:s,addTrackedKeyphrase:o,setKeyphraseLimitReached:i}=e;await Object(S.b)(()=>Object(T.a)(t),async e=>{n(!0,!0,t.websiteId.toString()),a(e);const c=(Array.isArray(s)?s:[s]).map(e=>e.toLowerCase());await Object(S.b)(()=>Object(T.f)(c),e=>{a(e),o(e.results)},e=>{400===e.status&&e.limit&&i(e.limit),r(e)},201);const l=ue.getPopup();l&&l.close()},async e=>r(e))})(e,t)},error:{type:"wincher:oauth:error",callback:()=>e.onAuthentication(!1,!1)}},{title:"Wincher_login",width:500,height:700}),ue.createPopup()},pe=e=>e.isLoggedIn?null:Object(i.createElement)("p",null,Object(i.createElement)(f.NewButton,{onClick:e.onLogin,variant:"primary"},Object(c.sprintf)(/* translators: %s expands to Wincher */ Object(c.__)("Connect with %s","wordpress-seo"),"Wincher")));pe.propTypes={isLoggedIn:u.a.bool.isRequired,onLogin:u.a.func.isRequired};const me=m.a.div` p { margin: 1em 0; } `,he=m.a.div` ${e=>e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"}; `,be=m.a.div` font-weight: var(--yoast-font-weight-bold); color: var(--yoast-color-label); font-size: var(--yoast-font-size-default); `,fe=m.a.div.attrs({className:"yoast-field-group"})` display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; `,ge=m.a.div` margin: 8px 0; `,ye=b.a.utc().startOf("day"),Oe=[{name:Object(c.__)("Last day","wordpress-seo"),value:b()(ye).subtract(1,"days").format(),defaultIndex:1},{name:Object(c.__)("Last week","wordpress-seo"),value:b()(ye).subtract(1,"week").format(),defaultIndex:2},{name:Object(c.__)("Last month","wordpress-seo"),value:b()(ye).subtract(1,"month").format(),defaultIndex:3},{name:Object(c.__)("Last year","wordpress-seo"),value:b()(ye).subtract(1,"year").format(),defaultIndex:0}],je=e=>{const{onSelect:t,selected:n,options:a,isLoggedIn:r}=e;return r?a.length<1?null:Object(i.createElement)("select",{className:"components-select-control__input",id:"wincher-period-picker",value:(null==n?void 0:n.value)||a[0].value,onChange:t},a.map(e=>Object(i.createElement)("option",{key:e.name,value:e.value},e.name))):null};je.propTypes={onSelect:u.a.func.isRequired,selected:u.a.object,options:u.a.array.isRequired,isLoggedIn:u.a.bool.isRequired};const we=e=>{const{trackedKeyphrases:t,isLoggedIn:n,keyphrases:a,shouldTrackAll:s,permalink:o,historyDaysLimit:l}=e;if(!o&&n)return Object(i.createElement)(z,null);if(0===a.length)return Object(i.createElement)(K,null);const u=b()(ye).subtract(l,"days"),p=Oe.filter(e=>b()(e.value).isSameOrAfter(u)),m=Object(d.orderBy)(p,e=>e.defaultIndex,"desc")[0],[h,f]=Object(i.useState)(m),[g,y]=Object(i.useState)([]),O=g.length>0,j=Object(r.usePrevious)(t);Object(i.useEffect)(()=>{if(!Object(d.isEmpty)(t)&&Object(d.difference)(Object.keys(t),Object.keys(j||[])).length){const e=Object.values(t).map(e=>e.keyword);y(e)}},[t,j]),Object(i.useEffect)(()=>{f(m)},[null==m?void 0:m.name]);const w=Object(i.useCallback)(e=>{const t=Oe.find(t=>t.value===e.target.value);t&&f(t)},[f]),v=Object(i.useMemo)(()=>Object(d.isEmpty)(g)||Object(d.isEmpty)(t)?[]:Object.values(t).filter(e=>{var t;return!(null==e||null===(t=e.position)||void 0===t||!t.history)}).map(e=>{var t;return{label:e.keyword,data:e.position.history,selected:g.includes(e.keyword)&&!Object(d.isEmpty)(null===(t=e.position)||void 0===t?void 0:t.history)}}),[g,t]);return Object(i.createElement)(he,{isDisabled:!n},Object(i.createElement)("p",null,Object(c.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")),n&&s&&Object(i.createElement)(H,null),Object(i.createElement)(fe,null,Object(i.createElement)(je,{selected:h,onSelect:w,options:p,isLoggedIn:n})),Object(i.createElement)(ge,null,Object(i.createElement)(ie,{isChartShown:O,datasets:v,keyphrases:a})),Object(i.createElement)(B,{startAt:null==h?void 0:h.value,selectedKeyphrases:g,onSelectKeyphrases:y,trackedKeyphrases:t}))};function ve(e){const{isNewlyAuthenticated:t,isLoggedIn:n}=e,a=Object(i.useCallback)(()=>{de(e)},[de,e]),r=Object(E.b)(n);return Object(i.createElement)(me,null,t&&Object(i.createElement)(_,null),n&&Object(i.createElement)(E.a,{trackingInfo:r}),Object(i.createElement)(be,null,Object(c.__)("SEO performance","wordpress-seo"),Object(i.createElement)(f.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"] /* translators: Hidden accessibility text. */,linkText:Object(c.__)("Learn more about the SEO performance feature.","wordpress-seo")})),Object(i.createElement)(F.a,null),Object(i.createElement)(pe,{isLoggedIn:n,onLogin:a}),Object(i.createElement)(le,o()({},e,{onLogin:a})),Object(i.createElement)(we,o()({},e,{historyDaysLimit:(null==r?void 0:r.historyDays)||31})))}we.propTypes={trackedKeyphrases:u.a.object,keyphrases:u.a.array.isRequired,isLoggedIn:u.a.bool.isRequired,shouldTrackAll:u.a.bool.isRequired,permalink:u.a.string.isRequired,historyDaysLimit:u.a.number},ve.propTypes={trackedKeyphrases:u.a.object,addTrackedKeyphrase:u.a.func.isRequired,isLoggedIn:u.a.bool,isNewlyAuthenticated:u.a.bool,keyphrases:u.a.array,response:u.a.object,shouldTrackAll:u.a.bool,permalink:u.a.string,historyDaysLimit:u.a.number},ve.defaultProps={trackedKeyphrases:null,isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],response:{},shouldTrackAll:!1,permalink:"",historyDaysLimit:0},t.a=Object(r.compose)([Object(a.withSelect)(e=>{const{isWincherNewlyAuthenticated:t,getWincherKeyphraseLimitReached:n,getWincherLimit:a,getWincherHistoryDaysLimit:r,getWincherLoginStatus:s,getWincherRequestIsSuccess:o,getWincherRequestResponse:i,getWincherTrackableKeyphrases:c,getWincherTrackedKeyphrases:l,getWincherAllKeyphrasesMissRanking:u,getWincherPermalink:d,shouldWincherAutomaticallyTrackAll:p}=e("yoast-seo/editor");return{keyphrases:c(),trackedKeyphrases:l(),allKeyphrasesMissRanking:u(),isLoggedIn:s(),isNewlyAuthenticated:t(),isSuccess:o(),keyphraseLimitReached:n(),limit:a(),response:i(),shouldTrackAll:p(),permalink:d(),historyDaysLimit:r()}}),Object(a.withDispatch)(e=>{const{setWincherWebsiteId:t,setWincherRequestSucceeded:n,setWincherRequestFailed:a,setWincherTrackingForKeyphrase:r,setWincherSetKeyphraseLimitReached:s,setWincherLoginStatus:o}=e("yoast-seo/editor");return{setRequestSucceeded:e=>{n(e)},setRequestFailed:e=>{a(e)},addTrackedKeyphrase:e=>{r(e)},setKeyphraseLimitReached:e=>{s(e)},onAuthentication:(e,n,a)=>{t(a),o(e,n)}}})])(ve)},function(e,t,n){"use strict";var a=n(5),r=n(18),s=n(0),o=n(1),i=n(2),c=n.n(i),l=n(4),u=n(9),d=()=>Object(s.createElement)("p",{className:"yoast-related-keyphrases-modal__loading-message"},Object(o.sprintf)(/* translators: %1$s expands to "Yoast SEO", %2$s expands to "Semrush". */ Object(o.__)("Please wait while %1$s connects to %2$s to get related keyphrases...","wordpress-seo"),"Yoast SEO","Semrush")," ",Object(s.createElement)(u.SvgIcon,{icon:"loading-spinner"})),p=n(11);const m=Object(p.makeOutboundLink)();var h=()=>Object(s.createElement)(s.Fragment,null,Object(s.createElement)("p",null,Object(o.sprintf)(/* translators: %s : Expands to "Semrush". */ Object(o.__)("You've reached your request limit for today. Check back tomorrow or upgrade your plan over at %s.","wordpress-seo"),"Semrush")),Object(s.createElement)(m,{href:window.wpseoAdminL10n["shortlinks.semrush.prices"],className:"yoast-button-upsell"},Object(o.sprintf)(/* translators: %s : Expands to "Semrush". */ Object(o.__)("Upgrade your %s plan","wordpress-seo"),"Semrush"),Object(s.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"}))),b=n(28),f=n.n(b),g=n(13);const y="yoast-semrush-country-selector",O=[{value:"us",name:"United States - US"},{value:"uk",name:"United Kingdom - UK"},{value:"ca",name:"Canada - CA"},{value:"ru",name:"Russia - RU"},{value:"de",name:"Germany - DE"},{value:"fr",name:"France - FR"},{value:"es",name:"Spain - ES"},{value:"it",name:"Italy - IT"},{value:"br",name:"Brazil - BR"},{value:"au",name:"Australia - AU"},{value:"ar",name:"Argentina - AR"},{value:"be",name:"Belgium - BE"},{value:"ch",name:"Switzerland - CH"},{value:"dk",name:"Denmark - DK"},{value:"fi",name:"Finland - FI"},{value:"hk",name:"Hong Kong - HK"},{value:"ie",name:"Ireland - IE"},{value:"il",name:"Israel - IL"},{value:"mx",name:"Mexico - MX"},{value:"nl",name:"Netherlands - NL"},{value:"no",name:"Norway - NO"},{value:"pl",name:"Poland - PL"},{value:"se",name:"Sweden - SE"},{value:"sg",name:"Singapore - SG"},{value:"tr",name:"Turkey - TR"},{value:"jp",name:"Japan - JP"},{value:"in",name:"India - IN"},{value:"hu",name:"Hungary - HU"},{value:"af",name:"Afghanistan - AF"},{value:"al",name:"Albania - AL"},{value:"dz",name:"Algeria - DZ"},{value:"ao",name:"Angola - AO"},{value:"am",name:"Armenia - AM"},{value:"at",name:"Austria - AT"},{value:"az",name:"Azerbaijan - AZ"},{value:"bh",name:"Bahrain - BH"},{value:"bd",name:"Bangladesh - BD"},{value:"by",name:"Belarus - BY"},{value:"bz",name:"Belize - BZ"},{value:"bo",name:"Bolivia - BO"},{value:"ba",name:"Bosnia and Herzegovina - BA"},{value:"bw",name:"Botswana - BW"},{value:"bn",name:"Brunei - BN"},{value:"bg",name:"Bulgaria - BG"},{value:"cv",name:"Cabo Verde - CV"},{value:"kh",name:"Cambodia - KH"},{value:"cm",name:"Cameroon - CM"},{value:"cl",name:"Chile - CL"},{value:"co",name:"Colombia - CO"},{value:"cr",name:"Costa Rica - CR"},{value:"hr",name:"Croatia - HR"},{value:"cy",name:"Cyprus - CY"},{value:"cz",name:"Czech Republic - CZ"},{value:"cd",name:"Congo - CD"},{value:"do",name:"Dominican Republic - DO"},{value:"ec",name:"Ecuador - EC"},{value:"eg",name:"Egypt - EG"},{value:"sv",name:"El Salvador - SV"},{value:"ee",name:"Estonia - EE"},{value:"et",name:"Ethiopia - ET"},{value:"ge",name:"Georgia - GE"},{value:"gh",name:"Ghana - GH"},{value:"gr",name:"Greece - GR"},{value:"gt",name:"Guatemala - GT"},{value:"gy",name:"Guyana - GY"},{value:"ht",name:"Haiti - HT"},{value:"hn",name:"Honduras - HN"},{value:"is",name:"Iceland - IS"},{value:"id",name:"Indonesia - ID"},{value:"jm",name:"Jamaica - JM"},{value:"jo",name:"Jordan - JO"},{value:"kz",name:"Kazakhstan - KZ"},{value:"kw",name:"Kuwait - KW"},{value:"lv",name:"Latvia - LV"},{value:"lb",name:"Lebanon - LB"},{value:"lt",name:"Lithuania - LT"},{value:"lu",name:"Luxembourg - LU"},{value:"mg",name:"Madagascar - MG"},{value:"my",name:"Malaysia - MY"},{value:"mt",name:"Malta - MT"},{value:"mu",name:"Mauritius - MU"},{value:"md",name:"Moldova - MD"},{value:"mn",name:"Mongolia - MN"},{value:"me",name:"Montenegro - ME"},{value:"ma",name:"Morocco - MA"},{value:"mz",name:"Mozambique - MZ"},{value:"na",name:"Namibia - NA"},{value:"np",name:"Nepal - NP"},{value:"nz",name:"New Zealand - NZ"},{value:"ni",name:"Nicaragua - NI"},{value:"ng",name:"Nigeria - NG"},{value:"om",name:"Oman - OM"},{value:"py",name:"Paraguay - PY"},{value:"pe",name:"Peru - PE"},{value:"ph",name:"Philippines - PH"},{value:"pt",name:"Portugal - PT"},{value:"ro",name:"Romania - RO"},{value:"sa",name:"Saudi Arabia - SA"},{value:"sn",name:"Senegal - SN"},{value:"rs",name:"Serbia - RS"},{value:"sk",name:"Slovakia - SK"},{value:"si",name:"Slovenia - SI"},{value:"za",name:"South Africa - ZA"},{value:"kr",name:"South Korea - KR"},{value:"lk",name:"Sri Lanka - LK"},{value:"th",name:"Thailand - TH"},{value:"bs",name:"Bahamas - BS"},{value:"tt",name:"Trinidad and Tobago - TT"},{value:"tn",name:"Tunisia - TN"},{value:"ua",name:"Ukraine - UA"},{value:"ae",name:"United Arab Emirates - AE"},{value:"uy",name:"Uruguay - UY"},{value:"ve",name:"Venezuela - VE"},{value:"vn",name:"Vietnam - VN"},{value:"zm",name:"Zambia - ZM"},{value:"zw",name:"Zimbabwe - ZW"},{value:"ly",name:"Libya - LY"}];class j extends s.Component{constructor(e){super(e),this.relatedKeyphrasesRequest=this.relatedKeyphrasesRequest.bind(this),this.onChangeHandler=this.onChangeHandler.bind(this)}componentDidMount(){this.props.response&&this.props.keyphrase===this.props.lastRequestKeyphrase||this.relatedKeyphrasesRequest()}storeCountryCode(e){f()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}})}async relatedKeyphrasesRequest(){const{keyphrase:e,countryCode:t,newRequest:n}=this.props;n(t,e),this.storeCountryCode(t);const a=await this.doRequest(e,t);200!==a.status?this.handleFailedResponse(a):this.handleSuccessResponse(a)}handleSuccessResponse(e){const{setNoResultsFound:t,setRequestSucceeded:n}=this.props;0!==e.results.rows.length?n(e):t()}handleFailedResponse(e){const{setRequestLimitReached:t,setRequestFailed:n}=this.props;"error"in e&&(e.error.includes("TOTAL LIMIT EXCEEDED")?t():n(e))}async doRequest(e,t){return await f()({path:Object(g.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:e,country_code:t})})}onChangeHandler(e){this.props.setCountry(e)}render(){return Object(s.createElement)("div",{id:y},Object(s.createElement)(u.SingleSelect,{id:y+"-select",label:Object(o.__)("Show results for:","wordpress-seo"),name:"semrush-country-code",options:O,selected:this.props.countryCode,onChange:this.onChangeHandler,wrapperClassName:"yoast-field-group yoast-field-group--inline"}),Object(s.createElement)(u.NewButton,{id:y+"-button",variant:"secondary",onClick:this.relatedKeyphrasesRequest},Object(o.__)("Select country","wordpress-seo")))}}j.propTypes={keyphrase:c.a.string,countryCode:c.a.string,response:c.a.object,lastRequestKeyphrase:c.a.string,setCountry:c.a.func.isRequired,newRequest:c.a.func.isRequired,setNoResultsFound:c.a.func.isRequired,setRequestSucceeded:c.a.func.isRequired,setRequestLimitReached:c.a.func.isRequired,setRequestFailed:c.a.func.isRequired},j.defaultProps={keyphrase:"",countryCode:"us",response:{},lastRequestKeyphrase:""};var w=j,v=n(83),k=n(73);const E=Object(p.makeOutboundLink)();class _ extends s.Component{constructor(e){super(e),this.transformTrendDataToChartPoints=this.transformTrendDataToChartPoints.bind(this),this.getAreaChartDataTableHeaderLabels=this.getAreaChartDataTableHeaderLabels.bind(this),this.mapAreaChartDataToTableData=this.mapAreaChartDataToTableData.bind(this)}transformTrendDataToChartPoints(e){return e.split(",").map((e,t)=>({x:t,y:parseFloat(e)}))}getAreaChartDataTableHeaderLabels(){return[Object(o.__)("Twelve months ago","wordpress-seo"),Object(o.__)("Eleven months ago","wordpress-seo"),Object(o.__)("Ten months ago","wordpress-seo"),Object(o.__)("Nine months ago","wordpress-seo"),Object(o.__)("Eight months ago","wordpress-seo"),Object(o.__)("Seven months ago","wordpress-seo"),Object(o.__)("Six months ago","wordpress-seo"),Object(o.__)("Five months ago","wordpress-seo"),Object(o.__)("Four months ago","wordpress-seo"),Object(o.__)("Three months ago","wordpress-seo"),Object(o.__)("Two months ago","wordpress-seo"),Object(o.__)("Last month","wordpress-seo")]}mapAreaChartDataToTableData(e){return Math.round(100*e)}render(){const{keyphrase:e,relatedKeyphrases:t,countryCode:n,data:a,renderAction:r}=this.props,i="https://www.semrush.com/analytics/keywordoverview/?q="+encodeURIComponent(e)+"&db="+encodeURIComponent(n);return a&&!Object(l.isEmpty)(a.results)&&Object(s.createElement)(s.Fragment,null,Object(s.createElement)("table",{className:"yoast yoast-table"},Object(s.createElement)("thead",null,Object(s.createElement)("tr",null,Object(s.createElement)("th",{scope:"col",className:"yoast-table--primary"},Object(o.__)("Related keyphrase","wordpress-seo")),Object(s.createElement)("th",{scope:"col",abbr:Object(o.__)("Volume","wordpress-seo")},Object(o.__)("Volume","wordpress-seo"),Object(s.createElement)(k.a,{href:window.wpseoAdminL10n["shortlinks.semrush.volume_help"],className:"dashicons"},Object(s.createElement)("span",{className:"screen-reader-text"},/* translators: Hidden accessibility text. */ Object(o.__)("Learn more about the related keyphrases volume","wordpress-seo")))),Object(s.createElement)("th",{scope:"col",abbr:Object(o.__)("Trend","wordpress-seo")},Object(o.__)("Trend","wordpress-seo"),Object(s.createElement)(k.a,{href:window.wpseoAdminL10n["shortlinks.semrush.trend_help"],className:"dashicons"},Object(s.createElement)("span",{className:"screen-reader-text"},/* translators: Hidden accessibility text. */ Object(o.__)("Learn more about the related keyphrases trend","wordpress-seo")))),r&&Object(s.createElement)("td",{className:"yoast-table--nobreak"}))),Object(s.createElement)("tbody",null,a.results.rows.map((e,n)=>{const a=e[0],i=this.transformTrendDataToChartPoints(e[2]),c=this.getAreaChartDataTableHeaderLabels();return Object(s.createElement)("tr",{key:n},Object(s.createElement)("td",null,a),Object(s.createElement)("td",null,e[1]),Object(s.createElement)("td",{className:"yoast-table--nopadding"},Object(s.createElement)(v.a,{width:66,height:24,data:i,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:this.mapAreaChartDataToTableData,dataTableCaption:Object(o.__)("Keyphrase volume in the last 12 months on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:c})),r&&Object(s.createElement)("td",{className:"yoast-table--nobreak"},r(a,t)))}))),Object(s.createElement)("p",{style:{marginBottom:0}},Object(s.createElement)(E,{href:i},Object(o.sprintf)(/* translators: %s expands to Semrush */ Object(o.__)("Get more insights at %s","wordpress-seo"),"Semrush"))))}}_.propTypes={data:c.a.object,keyphrase:c.a.string,relatedKeyphrases:c.a.array,countryCode:c.a.string,renderAction:c.a.func},_.defaultProps={data:{},keyphrase:"",relatedKeyphrases:[],countryCode:"us",renderAction:null};var R=_;const x=Object(p.makeOutboundLink)();var T=()=>Object(s.createElement)(u.Alert,{type:"info"},Object(o.sprintf)(/* translators: %s: Expands to "Yoast SEO". */ Object(o.__)("You’ll reach more people with multiple keyphrases! Want to quickly add these related keyphrases to the %s analyses for even better content optimization?","wordpress-seo"),"Yoast SEO")+" ",Object(s.createElement)(x,{href:window.wpseoAdminL10n["shortlinks.semrush.premium_landing_page"]},Object(o.sprintf)(/* translators: %s: Expands to "Yoast SEO Premium". */ Object(o.__)("Explore %s!","wordpress-seo"),"Yoast SEO Premium"))),S=()=>Object(s.createElement)(u.Alert,{type:"error"},Object(o.__)("We've encountered a problem trying to get related keyphrases. Please try again later.","wordpress-seo")),I=()=>Object(s.createElement)(u.Alert,{type:"warning"},Object(o.sprintf)(/* translators: %s: Expands to "Yoast SEO". */ Object(o.__)("You've reached the maximum amount of 4 related keyphrases. You can change or remove related keyphrases in the %s metabox or sidebar.","wordpress-seo"),"Yoast SEO")),C=n(19);function L(e){const{response:t,lastRequestKeyphrase:n,keyphrase:a,newRequest:r,setCountry:i,renderAction:c,countryCode:u,requestLimitReached:p,setRequestFailed:m,setNoResultsFound:b,relatedKeyphrases:f,setRequestSucceeded:g,setRequestLimitReached:y}=e,O=Object(C.a)().isPremium;return Object(s.createElement)(s.Fragment,null,!p&&Object(s.createElement)(s.Fragment,null,!O&&Object(s.createElement)(T,null),O&&function(e){return e&&e.length>=4}(f)&&Object(s.createElement)(I,null),Object(s.createElement)(w,{countryCode:u,setCountry:i,newRequest:r,keyphrase:a,setRequestFailed:m,setNoResultsFound:b,setRequestSucceeded:g,setRequestLimitReached:y,response:t,lastRequestKeyphrase:n})),function(e){const{isPending:t,requestLimitReached:n,isSuccess:a,response:r,requestHasData:i}=e;return t?Object(s.createElement)(d,null):n?Object(s.createElement)(h,null):!a&&function(e){return!Object(l.isEmpty)(e)&&"error"in e}(r)?Object(s.createElement)(S,null):i?void 0:Object(s.createElement)("p",null,Object(o.__)("Sorry, there's no data available for that keyphrase/country combination.","wordpress-seo"))}(e),Object(s.createElement)(R,{keyphrase:a,relatedKeyphrases:f,countryCode:u,renderAction:c,data:t}))}L.propTypes={keyphrase:c.a.string,relatedKeyphrases:c.a.array,renderAction:c.a.func,requestLimitReached:c.a.bool,countryCode:c.a.string.isRequired,setCountry:c.a.func.isRequired,newRequest:c.a.func.isRequired,setRequestSucceeded:c.a.func.isRequired,setRequestLimitReached:c.a.func.isRequired,setRequestFailed:c.a.func.isRequired,setNoResultsFound:c.a.func.isRequired,response:c.a.object,lastRequestKeyphrase:c.a.string},L.defaultProps={keyphrase:"",relatedKeyphrases:[],renderAction:null,requestLimitReached:!1,response:{},lastRequestKeyphrase:""},t.a=Object(r.compose)([Object(a.withSelect)(e=>{const{getFocusKeyphrase:t,getSEMrushSelectedCountry:n,getSEMrushRequestLimitReached:a,getSEMrushRequestResponse:r,getSEMrushRequestIsSuccess:s,getSEMrushIsRequestPending:o,getSEMrushRequestHasData:i,getSEMrushRequestKeyphrase:c}=e("yoast-seo/editor");return{keyphrase:t(),countryCode:n(),requestLimitReached:a(),response:r(),isSuccess:s(),isPending:o(),requestHasData:i(),lastRequestKeyphrase:c()}}),Object(a.withDispatch)(e=>{const{setSEMrushChangeCountry:t,setSEMrushNewRequest:n,setSEMrushRequestSucceeded:a,setSEMrushRequestFailed:r,setSEMrushSetRequestLimitReached:s,setSEMrushNoResultsFound:o}=e("yoast-seo/editor");return{setCountry:e=>{t(e)},newRequest:(e,t)=>{n(e,t)},setRequestSucceeded:e=>{a(e)},setRequestFailed:e=>{r(e)},setRequestLimitReached:()=>{s()},setNoResultsFound:()=>{o()}}})])(L)},,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var a=n(3),r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,s=n(116),o=n(164),i=n(165),c="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,a={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return a[e]}))):t.toString(36);var n,a}var u=/\/+/g;function d(e){return(""+e).replace(u,"$&/")}var p,m,h=b,b=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)};function f(e,t,n,a){this.result=e,this.keyPrefix=t,this.func=n,this.context=a,this.count=0}function g(e,t,n){var r,o,i=e.result,c=e.keyPrefix,l=e.func,u=e.context,p=l.call(u,t,e.count++);Array.isArray(p)?y(p,i,n,s.thatReturnsArgument):null!=p&&(a.isValidElement(p)&&(r=p,o=c+(!p.key||t&&t.key===p.key?"":d(p.key)+"/")+n,p=a.cloneElement(r,{key:o},void 0!==r.props?r.props.children:void 0)),i.push(p))}function y(e,t,n,a,s){var i="";null!=n&&(i=d(n)+"/");var u=f.getPooled(t,i,a,s);!function(e,t,n){null==e||function e(t,n,a,s){var i,u=typeof t;if("undefined"!==u&&"boolean"!==u||(t=null),null===t||"string"===u||"number"===u||"object"===u&&t.$$typeof===r)return a(s,t,""===n?"."+l(t,0):n),1;var d=0,p=""===n?".":n+":";if(Array.isArray(t))for(var m=0;m<t.length;m++)d+=e(i=t[m],p+l(i,m),a,s);else{var h=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(h)for(var b,f=h.call(t),g=0;!(b=f.next()).done;)d+=e(i=b.value,p+l(i,g++),a,s);else if("object"===u){var y=""+t;o(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===y?"object with keys {"+Object.keys(t).join(", ")+"}":y,"")}}return d}(e,"",t,n)}(e,g,u),f.release(u)}f.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},p=function(e,t,n,a){if(this.instancePool.length){var r=this.instancePool.pop();return this.call(r,e,t,n,a),r}return new this(e,t,n,a)},(m=f).instancePool=[],m.getPooled=p||h,m.poolSize||(m.poolSize=10),m.release=function(e){o(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)},e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return i(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(a.isValidElement(e))return i(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;o(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)y(e[n],t,n,s.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,a,r,s,o,i){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,a,r,s,o,i],u=0;(c=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var a=n(116);e.exports=a},function(e,t,n){"use strict";function a(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(a)}},,function(e,t,n){"use strict";var a=n(0),r=n(9),s=n(2),o=n.n(s),i=n(66),c=n(79);const l=e=>{let{target:t,scoreIndicator:n}=e;return Object(a.createElement)(c.a,{target:t},Object(a.createElement)(r.SvgIcon,Object(i.getIconForScore)(n)))};l.propTypes={target:o.a.string.isRequired,scoreIndicator:o.a.string.isRequired},t.a=l},,,function(e,t,n){"use strict";var a=n(5),r=n(18),s=n(0),o=n(179),i=n(9),c=n(6),l=n(85),u=n(1),d=n(36),p=n(4),m=n(2),h=n.n(m),b=n(14),f=n(66),g=n(52),y=n(31),O=n(120);class j extends s.Component{constructor(e){super(e);const t=this.props.results;this.state={mappedResults:{}},null!==t&&(this.state={mappedResults:Object(f.default)(t,this.props.keywordKey)}),this.handleMarkButtonClick=this.handleMarkButtonClick.bind(this),this.handleEditButtonClick=this.handleEditButtonClick.bind(this),this.handleResultsChange=this.handleResultsChange.bind(this),this.renderHighlightingUpsell=this.renderHighlightingUpsell.bind(this),this.createMarkButton=this.createMarkButton.bind(this)}componentDidUpdate(e){null!==this.props.results&&this.props.results!==e.results&&this.setState({mappedResults:Object(f.default)(this.props.results,this.props.keywordKey)})}createMarkButton(e){let{ariaLabel:t,id:n,className:a,status:r,onClick:o,isPressed:u}=e;return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(i.IconButtonToggle,{marksButtonStatus:r,className:a,onClick:o,id:n,icon:"eye",pressed:u,ariaLabel:t}),this.props.shouldUpsellHighlighting&&Object(s.createElement)("div",{className:"yst-root"},Object(s.createElement)(c.Badge,{className:"yst-absolute yst-px-[3px] yst-py-[3px] yst--right-[6.5px] yst--top-[6.5px]",size:"small",variant:"upsell"},Object(s.createElement)(l.a,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",role:"img","aria-hidden":!0,focusable:!1}))))}deactivateMarker(){this.props.setActiveMarker(null),this.props.setMarkerPauseStatus(!1),this.removeMarkers()}activateMarker(e,t){this.props.setActiveMarker(e),t()}handleMarkButtonClick(e,t){const n=this.props.keywordKey.length>0?`${this.props.keywordKey}:${e}`:e;n===this.props.activeMarker?this.deactivateMarker():this.activateMarker(n,t)}handleResultsChange(e,t,n){const a=this.props.keywordKey.length>0?`${this.props.keywordKey}:${e}`:e;a===this.props.activeMarker&&(n?Object(p.isUndefined)(t)||this.activateMarker(a,t):this.deactivateMarker())}focusOnKeyphraseField(e){const t=this.props.keywordKey,n=""===t?"focus-keyword-input-"+e:"yoast-keyword-input-"+t+"-"+e,a=document.getElementById(n);a.focus(),a.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}focusOnGooglePreviewField(e,t){let n;n="metaDescriptionKeyword"===e||"metaDescriptionLength"===e?"description":"titleWidth"===e||"keyphraseInSEOTitle"===e?"title":"slug";const a=document.getElementById("yoast-google-preview-"+n+"-"+t);a.focus(),a.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}handleEditButtonClick(e){const t=this.props.location;"functionWordsInKeyphrase"!==e&&"keyphraseLength"!==e?(["metaDescriptionKeyword","metaDescriptionLength","titleWidth","keyphraseInSEOTitle","slugKeyword"].includes(e)&&this.handleGooglePreviewFocus(t,e),Object(d.doAction)("yoast.focus.input",e)):this.focusOnKeyphraseField(t)}handleGooglePreviewFocus(e,t){if("sidebar"===e)document.getElementById("yoast-search-appearance-modal-open-button").click(),setTimeout(()=>this.focusOnGooglePreviewField(t,"modal"),500);else{const n=document.getElementById("yoast-snippet-editor-metabox");n&&"false"===n.getAttribute("aria-expanded")?(n.click(),setTimeout(()=>this.focusOnGooglePreviewField(t,e),100)):this.focusOnGooglePreviewField(t,e)}}removeMarkers(){window.YoastSEO.analysis.applyMarks(new b.Paper("",{}),[])}renderHighlightingUpsell(e,t){const n=Object(u.__)("Highlight areas of improvement in your text, no more searching for a needle in a haystack, straight to optimizing! Now also in Elementor!","wordpress-seo");return e&&Object(s.createElement)(y.a,{title:Object(u.__)("Unlock Premium SEO analysis","wordpress-seo"),onRequestClose:t,additionalClassName:"",className:y.b+" yoast-gutenberg-modal__box yoast-gutenberg-modal__no-padding",id:"yoast-premium-seo-analysis-highlighting-modal",shouldCloseOnClickOutside:!0},Object(s.createElement)(g.b,null,Object(s.createElement)(O.a,{buyLink:this.props.highlightingUpsellLink,description:n})))}render(){const{mappedResults:e}=this.state,{errorsResults:t,improvementsResults:n,goodResults:a,considerationsResults:r,problemsResults:i}=e,{upsellResults:c,resultCategoryLabels:l}=this.props,d={errors:Object(u.__)("Errors","wordpress-seo"),problems:Object(u.__)("Problems","wordpress-seo"),improvements:Object(u.__)("Improvements","wordpress-seo"),considerations:Object(u.__)("Considerations","wordpress-seo"),goodResults:Object(u.__)("Good results","wordpress-seo")},p=Object.assign(d,l);let m=this.props.marksButtonStatus;return"enabled"===m&&this.props.shortcodesForParsing.length>0&&(m="disabled"),Object(s.createElement)(s.Fragment,null,Object(s.createElement)(o.ContentAnalysis,{errorsResults:t,problemsResults:i,upsellResults:c,improvementsResults:n,considerationsResults:r,goodResults:a,activeMarker:this.props.activeMarker,onMarkButtonClick:this.handleMarkButtonClick,onEditButtonClick:this.handleEditButtonClick,marksButtonClassName:this.props.marksButtonClassName,editButtonClassName:this.props.editButtonClassName,marksButtonStatus:m,headingLevel:3,keywordKey:this.props.keywordKey,isPremium:this.props.isPremium,resultCategoryLabels:p,onResultChange:this.handleResultsChange,shouldUpsellHighlighting:this.props.shouldUpsellHighlighting,renderHighlightingUpsell:this.renderHighlightingUpsell,markButtonFactory:this.createMarkButton}))}}j.propTypes={results:h.a.array,upsellResults:h.a.array,marksButtonClassName:h.a.string,editButtonClassName:h.a.string,marksButtonStatus:h.a.oneOf(["enabled","disabled","hidden"]),setActiveMarker:h.a.func.isRequired,setMarkerPauseStatus:h.a.func.isRequired,activeMarker:h.a.string,keywordKey:h.a.string,location:h.a.string,isPremium:h.a.bool,resultCategoryLabels:h.a.shape({errors:h.a.string,problems:h.a.string,improvements:h.a.string,considerations:h.a.string,goodResults:h.a.string}),shortcodesForParsing:h.a.array,shouldUpsellHighlighting:h.a.bool,highlightingUpsellLink:h.a.string},j.defaultProps={results:null,upsellResults:[],marksButtonStatus:"enabled",marksButtonClassName:"",editButtonClassName:"",activeMarker:null,keywordKey:"",location:"",isPremium:!1,resultCategoryLabels:{},shortcodesForParsing:[],shouldUpsellHighlighting:!1,highlightingUpsellLink:""};var w=j;t.a=Object(r.compose)([Object(a.withSelect)(e=>{const{getActiveMarker:t,getIsPremium:n,getShortcodesForParsing:a}=e("yoast-seo/editor");return{activeMarker:t(),isPremium:n(),shortcodesForParsing:a()}}),Object(a.withDispatch)(e=>{const{setActiveMarker:t,setMarkerPauseStatus:n}=e("yoast-seo/editor");return{setActiveMarker:t,setMarkerPauseStatus:n}})])(w)},,,,,,,,function(e,t){e.exports=window.yoast.analysisReport},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(4),r=n(19);function s(){const e=Object(r.a)();return 1===Object(a.get)(e,"zapierConnectedStatus",0)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(4),r=n(19);function s(){const e=Object(r.a)();return 1===Object(a.get)(e,"zapierIntegrationActive",0)}},function(e,t,n){"use strict";var a=n(0),r=n(8),s=n.n(r),o=n(2),i=n.n(o),c=n(4),l=n(9),u=n(11),d=n(17);const p=d.colors.$color_bad,m=d.colors.$palette_error_background,h=d.colors.$color_grey_text_light,b=d.colors.$palette_error_text,f=s.a.div` display: flex; flex-direction: column; `,g=s.a.label` font-size: var(--yoast-font-size-default); font-weight: var(--yoast-font-weight-bold); ${Object(u.getDirectionalStyle)("margin-right: 4px","margin-left: 4px")}; `,y=s.a.span` margin-bottom: 0.5em; `,O=s()(l.InputField)` flex: 1 !important; box-sizing: border-box; max-width: 100%; margin: 0; // Reset margins inherited from WordPress. // Hide native X in Edge and IE11. &::-ms-clear { display: none; } &.has-error { border-color: ${p} !important; background-color: ${m} !important; &:focus { box-shadow: 0 0 2px ${p} !important; } } `,j=s.a.ul` color: ${b}; list-style-type: disc; list-style-position: outside; margin: 0; margin-left: 1.2em; `,w=s.a.li` color: ${b}; margin: 0 0 0.5em 0; `,v=Object(l.addFocusStyle)(s.a.button` border: 1px solid transparent; box-shadow: none; background: none; flex: 0 0 32px; height: 32px; max-width: 32px; padding: 0; cursor: pointer; `);v.propTypes={type:i.a.string,focusColor:i.a.string,focusBackgroundColor:i.a.string,focusBorderColor:i.a.string},v.defaultProps={type:"button",focusColor:d.colors.$color_button_text_hover,focusBackgroundColor:"transparent",focusBorderColor:d.colors.$color_blue};const k=s()(l.SvgIcon)` margin-top: 4px; `,E=s.a.div` display: flex; flex-direction: row; align-items: center; &.has-remove-keyword-button { ${O} { ${Object(u.getDirectionalStyle)("padding-right: 40px","padding-left: 40px")}; } ${v} { ${Object(u.getDirectionalStyle)("margin-left: -32px","margin-right: -32px")}; } } `;class _ extends a.Component{constructor(e){super(e),this.handleChange=this.handleChange.bind(this)}handleChange(e){this.props.onChange(e.target.value)}renderLabel(){const{id:e,label:t,helpLink:n}=this.props;return Object(a.createElement)(y,null,Object(a.createElement)(g,{htmlFor:e},t),n)}renderErrorMessages(){const e=[...this.props.errorMessages];return!Object(c.isEmpty)(e)&&Object(a.createElement)(j,null,e.map((e,t)=>Object(a.createElement)(w,{key:t},Object(a.createElement)("span",{role:"alert"},e))))}render(){const{id:e,showLabel:t,keyword:n,onRemoveKeyword:r,onBlurKeyword:s,onFocusKeyword:o,hasError:i}=this.props,l=!t,u=r!==c.noop;return Object(a.createElement)(f,null,t&&this.renderLabel(),i&&this.renderErrorMessages(),Object(a.createElement)(E,{className:u?"has-remove-keyword-button":null},Object(a.createElement)(O,{"aria-label":l?this.props.label:null,type:"text",id:e,className:i?"has-error":null,onChange:this.handleChange,onFocus:o,onBlur:s,value:n,autoComplete:"off"}),u&&Object(a.createElement)(v,{onClick:r,focusBoxShadowColor:"#084A67"},Object(a.createElement)(k,{size:"18px",icon:"times-circle",color:h}))))}}_.propTypes={id:i.a.string.isRequired,showLabel:i.a.bool,keyword:i.a.string,onChange:i.a.func.isRequired,onRemoveKeyword:i.a.func,onBlurKeyword:i.a.func,onFocusKeyword:i.a.func,label:i.a.string.isRequired,helpLink:i.a.node,hasError:i.a.bool,errorMessages:i.a.arrayOf(i.a.string)},_.defaultProps={showLabel:!0,keyword:"",onRemoveKeyword:c.noop,onBlurKeyword:c.noop,onFocusKeyword:c.noop,helpLink:null,hasError:!1,errorMessages:[]},t.a=_},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var a={};n.r(a),n.d(a,"doAjaxRequest",(function(){return F}));var r={};n.r(r),n.d(r,"setTextdomainL10n",(function(){return z}));var s=n(21),o=n(87),i=n(71),c=n(43),l=n(19),u=n(211),d=n(212),p=n(76),m=n(213),h=n(66),b=n(73),f=n(0),g=n(2),y=n.n(g),O=n(74),j=n(31),w=n(10),v=n.n(w),k=n(9),E=n(11),_=n(58);const R=e=>{let{hiddenField:t,hiddenFieldImageId:n,hiddenFieldFallbackImageId:a,hasImageValidation:r,...s}=e;const[o,i]=Object(f.useState)(null!==document.getElementById(a)),c=Object(f.useMemo)(()=>document.getElementById(t)),l=Object(f.useMemo)(()=>document.getElementById(n));let u=null;u=a&&document.getElementById(a)?Object(f.useMemo)(()=>document.getElementById(a)):l;const[d,p]=Object(f.useState)({url:c?c.value:"",id:u?parseInt(u.value,10):"",alt:""}),[m,h]=Object(f.useState)([]),b=Object(f.useCallback)(e=>{c&&(c.value=e.url),u&&(u.value=e.id)}),g=Object(f.useCallback)(()=>Object(_.b)(e=>{u=l,p(e),b(e),r&&h(Object(E.validateFacebookImage)(e)),i(!1)}),[r,b]),y=Object(f.useCallback)(()=>{u=l;const e={url:"",id:"",alt:""};p(e),b(e),h([]),i(!0)},[b]);return Object(f.useEffect)(()=>{d.id&&!d.alt&&Object(_.a)(d.id).then(e=>p(e))},[d]),Object(f.createElement)(k.ImageSelect,v()({},s,{usingFallback:o,imageUrl:d.url,imageId:d.id,imageAltText:d.alt,onClick:g,onRemoveImageClick:y,warnings:m}))};R.propTypes={hiddenField:y.a.string.isRequired,hiddenFieldImageId:y.a.string,hiddenFieldFallbackImageId:y.a.string,hasImageValidation:y.a.bool},R.defaultProps={hiddenFieldImageId:"",hiddenFieldFallbackImageId:"",hasImageValidation:!1};var x=R,T=n(79);function S(e){let{target:t,label:n,hasPreview:a,hiddenField:r,hiddenFieldImageId:s,hiddenFieldFallbackImageId:o,selectImageButtonId:i,replaceImageButtonId:c,removeImageButtonId:l,hasNewBadge:u,isDisabled:d,hasPremiumBadge:p,hasImageValidation:m}=e;return Object(f.createElement)(T.a,{target:t},Object(f.createElement)(x,{label:n,hasPreview:a,hiddenField:r,hiddenFieldImageId:s,hiddenFieldFallbackImageId:o,selectImageButtonId:i,replaceImageButtonId:c,removeImageButtonId:l,hasNewBadge:u,isDisabled:d,hasPremiumBadge:p,hasImageValidation:m}))}S.propTypes={target:y.a.string.isRequired,label:y.a.string.isRequired,hasPreview:y.a.bool.isRequired,hiddenField:y.a.string.isRequired,hiddenFieldImageId:y.a.string,hiddenFieldFallbackImageId:y.a.string,selectImageButtonId:y.a.string,replaceImageButtonId:y.a.string,removeImageButtonId:y.a.string,hasNewBadge:y.a.bool,isDisabled:y.a.bool,hasPremiumBadge:y.a.bool,hasImageValidation:y.a.bool},S.defaultProps={hiddenFieldImageId:"",hiddenFieldFallbackImageId:"",selectImageButtonId:"",replaceImageButtonId:"",removeImageButtonId:"",hasNewBadge:!1,isDisabled:!1,hasPremiumBadge:!1,hasImageValidation:!1};var I=n(168),C=n(93),L=n(35),P=n(82),A=n(105),q=n(121),N=Object(q.a)(k.Alert),M=n(171),D=n(144),B=n(143);function F(e,t,n,a){return new Promise((r,s)=>{jQuery.ajax({type:e,url:t,beforeSend:n?e=>{e.setRequestHeader("X-WP-Nonce",n)}:null,data:a,dataType:"json",success:r,error:s})})}var K=n(125),H=n(80),$=n(1),W=n(4);function z(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wpseoYoastJSL10n";const n=Object(W.get)(window,[t,e,"locale_data",e],!1);"yoast-components"===e&&(e="wordpress-seo"),!1===n?Object($.setLocaleData)({"":{}},e):Object($.setLocaleData)(n,e)}var Y=n(98),U=n(67),V=n(90),G=n(114),Z=n(99);window.yoast=window.yoast||{},window.yoast.editorModules={analysis:{getL10nObject:l.a,getContentLocale:i.a,getIndicatorForScore:c.a,isZapierConnected:u.a,isZapierIntegrationActive:d.a,constants:o,refreshAnalysis:p},components:{HelpLink:b.a,TopLevelProviders:P.a,higherorder:{withYoastSidebarPriority:e=>{const t=t=>{const{renderPriority:n,...a}=t;return Object(f.createElement)(e,a)};return t.propTypes={renderPriority:y.a.number},t}},contentAnalysis:{KeywordInput:m.a,mapResults:h},contexts:{location:{LocationContext:s.LocationContext,LocationProvider:s.LocationProvider,LocationConsumer:s.LocationConsumer}},SidebarItem:L.a,SidebarCollapsible:C.a,MetaboxCollapsible:O.a,Modal:j.a,portals:{Portal:T.a,ImageSelectPortal:S,ScoreIconPortal:I.a}},containers:{EditorModal:A.a,PersistentDismissableAlert:N,Results:M.a,SEMrushRelatedKeyphrases:D.a,WincherSEOPerformance:B.a},helpers:{ajaxHelper:a,createInterpolateElement:H.a,createWatcher:K.b,isBlockEditor:Y.a,i18n:r,replacementVariableHelpers:U,publishBox:{updateScore:G.updateScore,createScoresInPublishBox:G.createScoresInPublishBox,scrollToCollapsible:G.scrollToCollapsible},updateAdminBar:V.a,updateTrafficLight:Z.a}}}]);