Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.138.178.162
!function(e){var t={};function a(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,a),s.l=!0,s.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)a.d(n,s,function(t){return e[t]}.bind(null,s));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=291)}([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.componentsNew},function(e,t){e.exports=window.yoast.styledComponents},,function(e,t){e.exports=window.yoast.helpers},function(e,t){function a(){return e.exports=a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,a.apply(this,arguments)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=window.yoast.analysis},function(e,t){e.exports=window.wp.components},function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n=a(4);function s(){return Object(n.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.yoast.styleGuide},function(e,t){e.exports=window.yoast.externals.redux},,function(e,t){e.exports=window.yoast.externals.contexts},,function(e,t){e.exports=window.wp.url},,function(e,t,a){"use strict";a.d(t,"b",(function(){return s})),a.d(t,"a",(function(){return r}));var n=a(0);function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}function r(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return Object(n.createInterpolateElement)(e,{a:Object(n.createElement)("a",{id:a,href:t,target:"_blank",rel:"noopener noreferrer"})})}},,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="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},s=i(a(3)),r=i(a(123)),o=i(a(126));function i(e){return e&&e.__esModule?e:{default:e}}var c=void 0;t.default=function(e){var t=e.mixedString,a=e.components,i=e.throwErrors;if(c=t,!a)return t;if("object"!==(void 0===a?"undefined":n(a))){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,a){var o,i,l,u,d,p,h,m,b=[],g={};for(p=0;p<t.length;p++)if("string"!==(d=t[p]).type){if(!a.hasOwnProperty(d.value)||void 0===a[d.value])throw new Error("Invalid interpolation, missing component node: `"+d.value+"`");if("object"!==n(a[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=a[d.value],l=p;break}b.push(a[d.value])}else b.push(d.value);return o&&(u=function(e,t){var a,n,s=t[e],r=0;for(n=e+1;n<t.length;n++)if((a=t[n]).value===s.value){if("componentOpen"===a.type){r++;continue}if("componentClose"===a.type){if(0===r)return n;r--}}throw new Error("Missing closing component token `"+s.value+"`")}(l,t),h=e(t.slice(l+1,u),a),i=s.default.cloneElement(o,{},h),b.push(i),u<t.length-1&&(m=e(t.slice(u+1),a),b=b.concat(m))),1===b.length?b[0]:(b.forEach((function(e,t){e&&(g["interpolation-child-"+t]=e)})),(0,r.default)(g))}(l,a)}catch(e){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},function(e,t,a){"use strict";var n=a(0),s=a(2),r=a.n(s);const o=e=>{let{children:t}=e;return Object(n.createElement)("div",null,t)};o.propTypes={renderPriority:r.a.number.isRequired,children:r.a.node.isRequired},t.a=o},function(e,t){e.exports=window.wp.apiFetch},,function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return o}));var n=a(27),s=a.n(n);async function r(e,t,a){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:200;try{const s=await e();return!!s&&(s.status===n?t(s):a(s))}catch(e){console.error(e.message)}}async function o(e){try{return await s()(e)}catch(e){return e.error&&e.status?e:e instanceof Response&&await e.json()}}},,,,,,function(e,t,a){"use strict";a.d(t,"b",(function(){return l}));var n=a(11),s=a.n(n),r=a(0),o=a(2),i=a.n(o),c=a(13);const l="yoast yoast-gutenberg-modal",u=e=>{const{title:t,className:a,showYoastIcon:n,additionalClassName:o,...i}=e,l=n?Object(r.createElement)("span",{className:"yoast-icon"}):null;return Object(r.createElement)(c.Modal,s()({title:t,className:`${a} ${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,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return o})),a.d(t,"c",(function(){return i})),a.d(t,"d",(function(){return c})),a.d(t,"e",(function(){return l}));var n=a(4),s=a(29);async function r(){return await Object(s.a)({path:"yoast/v1/wincher/authorization-url",method:"GET"})}async function o(e){const{code:t,websiteId:a}=e;return await Object(s.a)({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:t,websiteId:a}})}async function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2?arguments[2]:void 0;return await Object(s.a)({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:e,permalink:t},signal:a})}async function c(e){return Object(n.isArray)(e)||(e=[e]),await Object(s.a)({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:e}})}async function l(e){return await Object(s.a)({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:e}})}},,,,function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var n=a(1),s=a(12),r=a(4);function o(e){return Object(r.isNil)(e)||(e/=10),function(e){switch(e){case"feedback":return{className:"na",screenReaderText:Object(n.__)("Feedback","wordpress-seo"),screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""};case"bad":return{className:"bad",screenReaderText:Object(n.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:Object(n.__)("Needs improvement","wordpress-seo"),screenReaderInclusiveLanguageText:Object(n.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:Object(n.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:Object(n.__)("OK","wordpress-seo"),screenReaderInclusiveLanguageText:Object(n.__)("Potentially non-inclusive","wordpress-seo")};case"good":return{className:"good",screenReaderText:Object(n.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:Object(n.__)("Good","wordpress-seo"),screenReaderInclusiveLanguageText:Object(n.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""}}}(s.interpreters.scoreToRating(e))}},function(e,t,a){"use strict";a.d(t,"g",(function(){return s})),a.d(t,"h",(function(){return r})),a.d(t,"b",(function(){return o})),a.d(t,"a",(function(){return i})),a.d(t,"i",(function(){return c})),a.d(t,"c",(function(){return l})),a.d(t,"f",(function(){return u})),a.d(t,"e",(function(){return d})),a.d(t,"j",(function(){return p})),a.d(t,"d",(function(){return h})),a.d(t,"o",(function(){return m})),a.d(t,"p",(function(){return b})),a.d(t,"k",(function(){return g})),a.d(t,"q",(function(){return f})),a.d(t,"r",(function(){return y})),a.d(t,"n",(function(){return w})),a.d(t,"m",(function(){return v})),a.d(t,"l",(function(){return O}));var n=a(10);const s="SNIPPET_EDITOR_SWITCH_MODE",r="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_HIDE_REPLACEMENT_VARIABLES",u="SNIPPET_EDITOR_REMOVE_REPLACEMENT_VARIABLE",d="SNIPPET_EDITOR_REFRESH",p="SNIPPET_EDITOR_UPDATE_WORDS_TO_HIGHLIGHT",h="LOAD_SNIPPET_EDITOR_DATA";function m(e){return{type:s,mode:e}}function b(e){return{type:r,data:e}}function*g(e,t){const a=yield{type:o,query:e,postId:t};return{type:i,results:a}}function f(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r="string"==typeof t?Object(n.decodeHTML)(t):t;return{type:c,name:e,value:r,label:a,hidden:s}}function y(e){return{type:p,wordsToHighlight:e}}function w(e){return{type:u,name:e}}function v(){return{type:d,time:(new Date).getMilliseconds()}}function O(e){return{type:l,data:e}}},,function(e,t,a){"use strict";var n=a(11),s=a.n(n),r=a(0),o=a(7),i=a(8);const c=a.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(r.createElement)(c,s()({hasPadding:!0,hasSeparator:!0},e))},function(e,t){e.exports=window.wp.hooks},function(e,t){e.exports=window.yoast.components},,,function(e,t){e.exports=window.yoast.replacementVariableEditor},function(e,t,a){"use strict";a.d(t,"a",(function(){return de})),a.d(t,"b",(function(){return pe})),a.d(t,"c",(function(){return he})),a.d(t,"d",(function(){return me}));var n=a(4),s=a(10),r=a(0),o=a(3),i=a.n(o),c=a(2),l=a.n(c),u=a(8),d=a.n(u);const p=d.a.p`
color: #606770;
flex-shrink: 0;
font-size: 12px;
line-height: 16px;
overflow: hidden;
padding: 0;
text-overflow: ellipsis;
text-transform: uppercase;
white-space: nowrap;
margin: 0;
position: ${e=>"landscape"===e.mode?"relative":"static"};
`,h=e=>{const{siteUrl:t}=e;return Object(r.createElement)(o.Fragment,null,Object(r.createElement)("span",{className:"screen-reader-text"},t),Object(r.createElement)(p,{"aria-hidden":"true"},Object(r.createElement)("span",null,t)))};h.propTypes={siteUrl:l.a.string.isRequired};var m=h,b=a(1),g=a(16);const f=d.a.img`
&& {
max-width: ${e=>e.width}px;
height: ${e=>e.height}px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
max-width: none;
}
`,y=d.a.img`
&&{
height: 100%;
position: absolute;
width: 100%;
object-fit: cover;
}
`,w=d.a.div`
padding-bottom: ${e=>e.aspectRatio}%;
`,v=e=>{const{imageProps:t,width:a,height:n,imageMode:s}=e;return"landscape"===s?Object(r.createElement)(w,{aspectRatio:t.aspectRatio},Object(r.createElement)(y,{src:t.src,alt:t.alt})):Object(r.createElement)(f,{src:t.src,alt:t.alt,width:a,height:n,imageProperties:t})};v.propTypes={imageProps:l.a.shape({src:l.a.string.isRequired,alt:l.a.string.isRequired,aspectRatio:l.a.number.isRequired}).isRequired,width:l.a.number.isRequired,height:l.a.number.isRequired,imageMode:l.a.string},v.defaultProps={imageMode:"landscape"};const O={squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},j={squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}};function k(e){const{largeThreshold:t}=j;return e.height>e.width?"portrait":e.width<t.width||e.height<t.height||e.height===e.width?"square":"landscape"}function E(e){return"Twitter"===e?O:j}function R(e){return new Promise((t,a)=>{const n=new Image;n.onload=()=>{t({width:n.width,height:n.height})},n.onerror=a,n.src=e})}function x(e,t,a){return"landscape"===a?{widthRatio:t.width/e.landscapeWidth,heightRatio:t.height/e.landscapeHeight}:"portrait"===a?{widthRatio:t.width/e.portraitWidth,heightRatio:t.height/e.portraitHeight}:{widthRatio:t.width/e.squareWidth,heightRatio:t.height/e.squareHeight}}function T(e,t){return t.widthRatio<=t.heightRatio?{width:Math.round(e.width/t.widthRatio),height:Math.round(e.height/t.widthRatio)}:{width:Math.round(e.width/t.heightRatio),height:Math.round(e.height/t.heightRatio)}}function _(e,t,a){return"square"===a&&t.width===t.height?{width:e.squareWidth,height:e.squareHeight}:T(t,x(e,t,a))}async function I(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=await R(e);let s=a?"landscape":"square";"Facebook"===t&&(s=k(n));const r=E(t),o=_(r,n,s);return{mode:s,height:o.height,width:o.width}}async function S(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{return{imageProperties:await I(e,t,a),status:"loaded"}}catch(e){return{imageProperties:null,status:"errored"}}}const C=d.a.div`
position: relative;
${e=>"landscape"===e.mode?"max-width: "+e.dimensions.width:`min-width: ${e.dimensions.width}; height: ${e.dimensions.height}`};
overflow: hidden;
background-color: ${g.colors.$color_white};
`,L=d.a.div`
box-sizing: border-box;
max-width: ${j.landscapeWidth}px;
height: ${j.landscapeHeight}px;
background-color: ${g.colors.$color_grey};
border-style: dashed;
border-width: 1px;
// We're not using standard colors to increase contrast for accessibility.
color: #006DAC;
// We're not using standard colors to increase contrast for accessibility.
background-color: #f1f1f1;
display: flex;
justify-content: center;
align-items: center;
text-decoration: underline;
font-size: 14px;
cursor: pointer;
`;class P extends o.Component{constructor(e){super(e),this.state={imageProperties:null,status:"loading"},this.socialMedium="Facebook",this.handleFacebookImage=this.handleFacebookImage.bind(this),this.setState=this.setState.bind(this)}async handleFacebookImage(){try{const e=await S(this.props.src,this.socialMedium);this.setState(e),this.props.onImageLoaded(e.imageProperties.mode||"landscape")}catch(e){this.setState(e),this.props.onImageLoaded("landscape")}}componentDidUpdate(e){e.src!==this.props.src&&this.handleFacebookImage()}componentDidMount(){this.handleFacebookImage()}retrieveContainerDimensions(e){switch(e){case"square":return{height:j.squareHeight+"px",width:j.squareWidth+"px"};case"portrait":return{height:j.portraitHeight+"px",width:j.portraitWidth+"px"};case"landscape":return{height:j.landscapeHeight+"px",width:j.landscapeWidth+"px"}}}render(){const{imageProperties:e,status:t}=this.state;if("loading"===t||""===this.props.src||"errored"===t)return Object(r.createElement)(L,{onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},Object(b.__)("Select image","wordpress-seo"));const a=this.retrieveContainerDimensions(e.mode);return Object(r.createElement)(C,{mode:e.mode,dimensions:a,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onClick:this.props.onImageClick},Object(r.createElement)(v,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:j.aspectRatio},width:e.width,height:e.height,imageMode:e.mode}))}}P.propTypes={src:l.a.string,alt:l.a.string,onImageLoaded:l.a.func,onImageClick:l.a.func,onMouseEnter:l.a.func,onMouseLeave:l.a.func},P.defaultProps={src:"",alt:"",onImageLoaded:n.noop,onImageClick:n.noop,onMouseEnter:n.noop,onMouseLeave:n.noop};var M=P,q=d.a.span`
line-height: ${20}px;
min-height : ${20}px;
color: #1d2129;
font-weight: 600;
overflow: hidden;
font-size: 16px;
margin: 3px 0 0;
letter-spacing: normal;
white-space: normal;
flex-shrink: 0;
cursor: pointer;
display: -webkit-box;
-webkit-line-clamp: ${e=>e.lineCount};
-webkit-box-orient: vertical;
overflow: hidden;
`,A=d.a.p`
line-height: ${16}px;
min-height : ${16}px;
color: #606770;
font-size: 14px;
padding: 0;
text-overflow: ellipsis;
margin: 3px 0 0 0;
display: -webkit-box;
cursor: pointer;
-webkit-line-clamp: ${e=>e.lineCount};
-webkit-box-orient: vertical;
overflow: hidden;
@media all and ( max-width: ${e=>e.maxWidth} ) {
display: none;
}
`;const F=e=>{switch(e){case"landscape":return"527px";case"square":case"portrait":return"369px";default:return"476px"}},D=d.a.div`
box-sizing: border-box;
display: flex;
flex-direction: ${e=>"landscape"===e.mode?"column":"row"};
background-color: #f2f3f5;
max-width: 527px;
`,N=d.a.div`
box-sizing: border-box;
background-color: #f2f3f5;
margin: 0;
padding: 10px 12px;
position: relative;
border-bottom: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
border-top: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
border-right: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
border: ${e=>"landscape"===e.mode?"1px solid #dddfe2":""};
display: flex;
flex-direction: column;
flex-grow: 1;
justify-content: ${e=>"landscape"===e.mode?"flex-start":"center"};
font-size: 12px;
overflow: hidden;
`;class K extends o.Component{constructor(e){super(e),this.state={imageMode:null,maxLineCount:0,descriptionLineCount:0},this.facebookTitleRef=i.a.createRef(),this.onImageLoaded=this.onImageLoaded.bind(this),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}onImageLoaded(e){this.setState({imageMode:e})}getTitleLineCount(){return this.facebookTitleRef.current.offsetHeight/20}maybeSetMaxLineCount(){const{imageMode:e,maxLineCount:t}=this.state,a="landscape"===e?2:5;a!==t&&this.setState({maxLineCount:a})}maybeSetDescriptionLineCount(){const{descriptionLineCount:e,maxLineCount:t,imageMode:a}=this.state,n=this.getTitleLineCount();let s=t-n;"portrait"===a&&(s=5===n?0:4),s!==e&&this.setState({descriptionLineCount:s})}componentDidUpdate(){this.maybeSetMaxLineCount(),this.maybeSetDescriptionLineCount()}render(){const{imageMode:e,maxLineCount:t,descriptionLineCount:a}=this.state;return Object(r.createElement)(D,{id:"facebookPreview",mode:e},Object(r.createElement)(M,{src:this.props.imageUrl||this.props.imageFallbackUrl,alt:this.props.alt,onImageLoaded:this.onImageLoaded,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),Object(r.createElement)(N,{mode:e},Object(r.createElement)(m,{siteUrl:this.props.siteUrl,mode:e}),Object(r.createElement)(q,{ref:this.facebookTitleRef,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,lineCount:t},this.props.title),a>0&&Object(r.createElement)(A,{maxWidth:F(e),onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,lineCount:a},this.props.description)))}}K.propTypes={siteUrl:l.a.string.isRequired,title:l.a.string.isRequired,description:l.a.string,imageUrl:l.a.string,imageFallbackUrl:l.a.string,alt:l.a.string,onSelect:l.a.func,onImageClick:l.a.func,onMouseHover:l.a.func},K.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{}};var B=K;const H=d.a.div`
text-transform: lowercase;
color: rgb(83, 100, 113);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin: 0;
fill: currentcolor;
display: flex;
flex-direction: row;
align-items: flex-end;
`,W=e=>Object(r.createElement)(H,null,Object(r.createElement)("span",null,e.siteUrl));W.propTypes={siteUrl:l.a.string.isRequired};var $=W;const U=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e?`\n\t\t\tmax-width: ${O.landscapeWidth}px;\n\t\t\t${t?"border-bottom: 1px solid #E1E8ED;":""}\n\t\t\tborder-radius: 14px 14px 0 0;\n\t\t\t`:`\n\t\twidth: ${O.squareWidth}px;\n\t\t${t?"border-right: 1px solid #E1E8ED;":""}\n\t\tborder-radius: 14px 0 0 14px;\n\t\t`},z=d.a.div`
position: relative;
box-sizing: content-box;
overflow: hidden;
background-color: #e1e8ed;
flex-shrink: 0;
${e=>U(e.isLarge)}
`,V=d.a.div`
display: flex;
justify-content: center;
align-items: center;
box-sizing: border-box;
max-width: 100%;
margin: 0;
padding: 1em;
text-align: center;
font-size: 1rem;
${e=>U(e.isLarge,!1)}
`,G=d()(V)`
${e=>e.isLarge&&`height: ${O.landscapeHeight}px;`}
border-top-left-radius: 14px;
${e=>e.isLarge?"border-top-right-radius":"border-bottom-left-radius"}: 14px;
border-style: dashed;
border-width: 1px;
// We're not using standard colors to increase contrast for accessibility.
color: #006DAC;
// We're not using standard colors to increase contrast for accessibility.
background-color: #f1f1f1;
text-decoration: underline;
font-size: 14px;
cursor: pointer;
`;class Y extends i.a.Component{constructor(e){super(e),this.state={status:"loading"},this.socialMedium="Twitter",this.handleTwitterImage=this.handleTwitterImage.bind(this),this.setState=this.setState.bind(this)}async handleTwitterImage(){if(null===this.props.src)return;const e=await S(this.props.src,this.socialMedium,this.props.isLarge);this.setState(e)}componentDidUpdate(e){e.src!==this.props.src&&this.handleTwitterImage()}componentDidMount(){this.handleTwitterImage()}render(){const{status:e,imageProperties:t}=this.state;return"loading"===e||""===this.props.src||"errored"===e?Object(r.createElement)(G,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},Object(b.__)("Select image","wordpress-seo")):Object(r.createElement)(z,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},Object(r.createElement)(v,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:O.aspectRatio},width:t.width,height:t.height,imageMode:t.mode}))}}Y.propTypes={isLarge:l.a.bool.isRequired,src:l.a.string,alt:l.a.string,onImageClick:l.a.func,onMouseEnter:l.a.func,onMouseLeave:l.a.func},Y.defaultProps={src:"",alt:"",onMouseEnter:n.noop,onImageClick:n.noop,onMouseLeave:n.noop};const Z=d.a.div`
display: flex;
flex-direction: column;
padding: 12px;
justify-content: center;
margin: 0;
box-sizing: border-box;
flex: auto;
min-width: 0px;
gap:2px;
> * {
line-height:20px;
min-height:20px;
font-size:15px;
}
`,J=e=>Object(r.createElement)(Z,null,e.children);J.propTypes={children:l.a.array.isRequired};var Q=J,X=d.a.p`
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin: 0;
color: rgb(15, 20, 25);
cursor: pointer;
`,ee=d.a.p`
max-height: 55px;
overflow: hidden;
text-overflow: ellipsis;
margin: 0;
color: rgb(83, 100, 113);
display: -webkit-box;
cursor: pointer;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
@media all and ( max-width: ${O.landscapeWidth}px ) {
display: none;
}
`;const te=d.a.div`
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
font-size: 15px;
font-weight: 400;
line-height: 20px;
max-width: 507px;
border: 1px solid #E1E8ED;
box-sizing: border-box;
border-radius: 14px;
color: #292F33;
background: #FFFFFF;
text-overflow: ellipsis;
display: flex;
&:hover {
background: #f5f8fa;
border: 1px solid rgba(136,153,166,.5);
}
`,ae=d()(te)`
flex-direction: column;
max-height: 370px;
`,ne=d()(te)`
flex-direction: row;
height: 125px;
`;class se extends o.Component{constructor(e){super(e),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}render(){const{isLarge:e,imageUrl:t,imageFallbackUrl:a,alt:n,title:s,description:o,siteUrl:i}=this.props,c=e?ae:ne;return Object(r.createElement)(c,{id:"twitterPreview"},Object(r.createElement)(Y,{src:t||a,alt:n,isLarge:e,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),Object(r.createElement)(Q,null,Object(r.createElement)($,{siteUrl:i}),Object(r.createElement)(X,{onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle},s),Object(r.createElement)(ee,{onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription},o)))}}se.propTypes={siteUrl:l.a.string.isRequired,title:l.a.string.isRequired,description:l.a.string,isLarge:l.a.bool,imageUrl:l.a.string,imageFallbackUrl:l.a.string,alt:l.a.string,onSelect:l.a.func,onImageClick:l.a.func,onMouseHover:l.a.func},se.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{},isLarge:!0};var re=se,oe=a(7),ie=a(82),ce=a(49);class le extends o.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.SocialPreview="Facebook"===e.socialMediumName?B:re,this.setHoveredField=this.setHoveredField.bind(this),this.setActiveField=this.setActiveField.bind(this),this.setEditorRef=this.setEditorRef.bind(this),this.setEditorFocus=this.setEditorFocus.bind(this)}setHoveredField(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}setActiveField(e){e!==this.state.activeField&&this.setState({activeField:e},()=>this.setEditorFocus(e))}setEditorFocus(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}setEditorRef(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}render(){const{onDescriptionChange:e,onTitleChange:t,onSelectImageClick:a,onRemoveImageClick:n,socialMediumName:s,imageWarnings:o,siteUrl:c,description:l,descriptionInputPlaceholder:u,descriptionPreviewFallback:d,imageUrl:p,imageFallbackUrl:h,alt:m,title:b,titleInputPlaceholder:g,titlePreviewFallback:f,replacementVariables:y,recommendedReplacementVariables:w,applyReplacementVariables:v,onReplacementVariableSearchChange:O,isPremium:j,isLarge:k,socialPreviewLabel:E,idSuffix:R,activeMetaTabId:x}=this.props,T=v({title:b||f,description:l||d});return Object(r.createElement)(i.a.Fragment,null,E&&Object(r.createElement)(oe.SimulatedLabel,null,E),Object(r.createElement)(this.SocialPreview,{onMouseHover:this.setHoveredField,onSelect:this.setActiveField,onImageClick:a,siteUrl:c,title:T.title,description:T.description,imageUrl:p,imageFallbackUrl:h,alt:m,isLarge:k,activeMetaTabId:x}),Object(r.createElement)(ie.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:s,title:b,titleInputPlaceholder:g,onRemoveImageClick:n,imageSelected:!!p,imageUrl:p,onTitleChange:t,onSelectImageClick:a,description:l,descriptionInputPlaceholder:u,imageWarnings:o,replacementVariables:y,recommendedReplacementVariables:w,onReplacementVariableSearchChange:O,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:j,setEditorRef:this.setEditorRef,idSuffix:R}))}}le.propTypes={title:l.a.string.isRequired,onTitleChange:l.a.func.isRequired,description:l.a.string.isRequired,onDescriptionChange:l.a.func.isRequired,imageUrl:l.a.string.isRequired,imageFallbackUrl:l.a.string.isRequired,onSelectImageClick:l.a.func.isRequired,onRemoveImageClick:l.a.func.isRequired,socialMediumName:l.a.string.isRequired,alt:l.a.string,isPremium:l.a.bool,imageWarnings:l.a.array,isLarge:l.a.bool,siteUrl:l.a.string,descriptionInputPlaceholder:l.a.string,titleInputPlaceholder:l.a.string,descriptionPreviewFallback:l.a.string,titlePreviewFallback:l.a.string,replacementVariables:ce.replacementVariablesShape,recommendedReplacementVariables:ce.recommendedReplacementVariablesShape,applyReplacementVariables:l.a.func,onReplacementVariableSearchChange:l.a.func,socialPreviewLabel:l.a.string,idSuffix:l.a.string,activeMetaTabId:l.a.string},le.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,isLarge:!0,siteUrl:"",descriptionInputPlaceholder:"",titleInputPlaceholder:"",descriptionPreviewFallback:"",titlePreviewFallback:"",alt:"",applyReplacementVariables:e=>e,onReplacementVariableSearchChange:null,socialPreviewLabel:"",idSuffix:"",activeMetaTabId:""};const ue=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 de(e){return new Promise((t,a)=>{window.wp.media.attachment||a(),window.wp.media.attachment(e).fetch().then(e=>{t(ue(e))}).catch(()=>a())})}function pe(e){(function(e){const t=window.wp.media();return t.on("select",()=>{const a=t.state().get("selection").first();e(ue(a.attributes))}),t})(e).open()}const he=e=>{const{width:t,height:a}=e,n=k({width:t,height:a}),r=j[n+"Width"],o=j[n+"Height"],i=Object.values(e.sizes).find(e=>e.width>=r&&e.height>=o);return{url:i?i.url:e.url,id:e.id,warnings:Object(s.validateFacebookImage)(e),alt:e.alt||""}},me=e=>{const t="summary"!==Object(n.get)(window,"wpseoScriptData.metabox.twitterCardType")?"landscape":"square",a=O[t+"Width"],r=O[t+"Height"],o=Object.values(e.sizes).find(e=>e.width>=a&&e.height>=r);return{url:o?o.url:e.url,id:e.id,warnings:Object(s.validateTwitterImage)(e),alt:e.alt||""}}},,,,,function(e,t,a){"use strict";function n(){}a.d(t,"a",(function(){return n}))},,,function(e,t,a){"use strict";a.r(t),a.d(t,"getIconForScore",(function(){return i})),a.d(t,"default",(function(){return c}));var n=a(16),s=a(12);function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const a=e.getIdentifier(),n={score:e.score,rating:s.interpreters.scoreToRating(e.score),hasMarks:e.hasMarks(),marker:e.getMarker(),id:a,text:e.text,markerId:t.length>0?`${t}:${a}`:a,hasBetaBadge:e.hasBetaBadge(),hasJumps:e.hasJumps(),editFieldName:e.editFieldName};return"ok"===n.rating&&(n.rating="OK"),n}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:n.colors.$color_green_medium_light};case"not-set":return{icon:"seo-score-none",color:n.colors.$color_score_icon};case"noindex":return{icon:"seo-score-none",color:n.colors.$color_noindex};case"good":return{icon:"seo-score-good",color:n.colors.$color_green_medium};case"ok":return{icon:"seo-score-ok",color:n.colors.$color_ok};case"bad":return{icon:"seo-score-bad",color:n.colors.$color_red};default:return{icon:"seo-score-none",color:n.colors.$color_red}}}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a={errorsResults:[],problemsResults:[],improvementsResults:[],goodResults:[],considerationsResults:[]};if(!e)return a;for(let n=0;n<e.length;n++){const s=e[n];s.text&&(a=o(r(s,t),a))}return a}},,,,function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a(4),s=a(14);function r(){const e=Object(s.a)();return Object(n.get)(e,"contentLocale","en_US")}},function(e,t,a){"use strict";var n=a(0),s=a(7),r=a(2),o=a.n(r);const i=e=>{const[t,a]=Object(n.useState)(!1),{prefixIcon:r}=e;return Object(n.createElement)("div",{className:"yoast components-panel__body "+(t?"is-opened":"")},Object(n.createElement)("h2",{className:"components-panel__body-title"},Object(n.createElement)("button",{onClick:function(){a(!t)},className:"components-button components-panel__body-toggle"},Object(n.createElement)("span",{className:"yoast-icon-span",style:{fill:""+(r&&r.color||"")}},r&&Object(n.createElement)(s.SvgIcon,{icon:r.icon,color:r.color,size:r.size})),Object(n.createElement)("span",{className:"yoast-title-container"},Object(n.createElement)("div",{className:"yoast-title"},e.title),Object(n.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),e.hasBetaBadgeLabel&&Object(n.createElement)(s.BetaBadge,null),Object(n.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,a){"use strict";var n=a(16),s=a(10),r=a(8),o=a.n(r);const i=Object(s.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: ${n.colors.$color_help_text};
&:hover,
&:focus {
color: ${n.colors.$color_snippet_focus};
}
// Overwrite the default blue active color for links.
&:active {
color: ${n.colors.$color_help_text};
}
&::before {
position: absolute;
top: 0;
left: 0;
padding: 2px;
content: "\f223";
}
`);t.a=i},,function(e,t,a){"use strict";a.r(t),a.d(t,"sortResultsByIdentifier",(function(){return l})),a.d(t,"default",(function(){return u})),a.d(t,"initializationDone",(function(){return d}));var n=a(45),s=a(17),r=a(12),o=a(55),i=a(46);let c=!1;function l(e){return e.sort((e,t)=>e._identifier.localeCompare(t._identifier))}function u(e,t,a,u,d){if(!c)return;const p=r.Paper.parse(t());e.analyze(p).then(r=>{const{result:{seo:o,readability:c,inclusiveLanguage:h}}=r;if(o){const e=o[""];e.results.forEach(e=>{e.getMarker=()=>()=>a(p,e.marks)}),e.results=l(e.results),u.dispatch(s.actions.setSeoResultsForKeyword(p.getKeyword(),e.results)),u.dispatch(Object(i.setOverallSeoScore)(e.score,p.getKeyword())),u.dispatch(s.actions.refreshSnippetEditor()),d.saveScores(e.score,p.getKeyword())}c&&(c.results.forEach(e=>{e.getMarker=()=>()=>a(p,e.marks)}),c.results=l(c.results),u.dispatch(s.actions.setReadabilityResults(c.results)),u.dispatch(Object(i.setOverallReadabilityScore)(c.score)),u.dispatch(s.actions.refreshSnippetEditor()),d.saveContentScore(c.score)),h&&(h.results.forEach(e=>{e.getMarker=()=>()=>a(p,e.marks)}),h.results=l(h.results),u.dispatch(s.actions.setInclusiveLanguageResults(h.results)),u.dispatch(Object(i.setOverallInclusiveLanguageScore)(h.score)),u.dispatch(s.actions.refreshSnippetEditor()),d.saveInclusiveLanguageScore(h.score)),Object(n.doAction)("yoast.analysis.refresh",r,{paper:p,worker:e,collectData:t,applyMarks:a,store:u,dataCollector:d})}).catch(o.a)}function d(){c=!0}},,,,function(e,t,a){"use strict";a.r(t),a.d(t,"nonReplaceVars",(function(){return l})),a.d(t,"fillReplacementVariables",(function(){return u})),a.d(t,"handlePrefixes",(function(){return d})),a.d(t,"createLabelFromName",(function(){return p})),a.d(t,"pushNewReplaceVar",(function(){return h})),a.d(t,"replaceSpaces",(function(){return m})),a.d(t,"prepareCustomFieldForDispatch",(function(){return b})),a.d(t,"prepareCustomTaxonomyForDispatch",(function(){return g})),a.d(t,"mapCustomTaxonomies",(function(){return f})),a.d(t,"mapCustomFields",(function(){return y})),a.d(t,"excerptFromContent",(function(){return w})),a.d(t,"applyReplaceUsingPlugin",(function(){return v}));var n=a(4),s=a(128),r=a(42),o=a(23),i=a(10);const{stripHTMLTags:c}=i.strings,l=["slug","content","contentImage","snippetPreviewImageURL"];function u(e,t){Object(n.forEach)(e,(e,a)=>{l.includes(a)||t.dispatch(Object(r.q)(a,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 h(e,t){return e.push({name:t.name,label:t.label||p(t.name),value:t.value}),e}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e.replace(/\s/g,t)}function b(e){return{name:"cf_"+m(e),label:Object(o.b)(e+" (custom field)")}}function g(e){const t=m(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 f(e,t){return e.custom_taxonomies?(Object(n.forEach)(e.custom_taxonomies,(e,a)=>{const{name:n,label:s,descriptionName:o,descriptionLabel:i}=g(a);t.dispatch(Object(r.q)(n,e.name,s)),t.dispatch(Object(r.q)(o,e.description,i))}),Object(n.omit)({...e},"custom_taxonomies")):e}function y(e,t){return e.custom_fields?(Object(n.forEach)(e.custom_fields,(e,a)=>{const{name:n,label:s}=b(a);t.dispatch(Object(r.q)(n,e,s))}),Object(n.omit)({...e},"custom_fields")):e}function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:156;return(e=(e=Object(s.stripTags)(e)).trim()).length<=t||(e=e.substring(0,t),/\s/.test(e)&&(e=e.substring(0,e.lastIndexOf(" ")))),e}const v=function(e){const t=Object(n.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!Object(n.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){const t=Object(n.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],n.identity);return{url:e.url,title:c(t(e.title)),description:c(t(e.description))}}(e);const a=t._applyModifications.bind(t);return{url:e.url,title:c(a("data_page_title",e.title)),description:c(a("data_meta_desc",e.description))}}},,function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var n=a(0),s=a(2),r=a.n(s);function o(e){let{target:t,children:a}=e,s=t;return"string"==typeof t&&(s=document.getElementById(t)),s?Object(n.createPortal)(a,s):null}o.propTypes={target:r.a.oneOfType([r.a.string,r.a.object]).isRequired,children:r.a.node.isRequired}},function(e,t,a){"use strict";var n=a(0);let s,r,o,i;const c=/<(\/)?(\w+)\s*(\/)?>/g;function l(e,t,a,n,s){return{element:e,tokenStart:t,tokenLength:a,prevOffset:n,leadingTextStart:s,children:[]}}function u(){const e=s.length-r;0!==e&&o.push(s.substr(r,e))}function d(e){const{element:t,tokenStart:a,tokenLength:r,prevOffset:o,children:c}=e,l=i[i.length-1],u=s.substr(l.prevOffset,a-l.prevOffset);u&&l.children.push(u),l.children.push(Object(n.cloneElement)(t,null,...c)),l.prevOffset=o||a+r}function p(e){const t=function(){const e=c.exec(s);if(null===e)return["no-more-tokens"];const t=e.index,[a,n,r,o]=e,i=a.length;return o?["self-closed",r,t,i]:n?["closer",r,t,i]:["opener",r,t,i]}(),[a,p,h,m]=t,b=i.length,g=h>r?r:null;if(!e[p])return u(),!1;switch(a){case"no-more-tokens":if(0!==b){const{leadingTextStart:e,tokenStart:t}=i.pop();o.push(s.substr(e,t))}return u(),!1;case"self-closed":return 0===b?(null!==g&&o.push(s.substr(g,h-g)),o.push(e[p]),r=h+m,!0):(d(l(e[p],h,m)),r=h+m,!0);case"opener":return i.push(l(e[p],h,m,h+m,g)),r=h+m,!0;case"closer":if(1===b)return function(e){const{element:t,leadingTextStart:a,prevOffset:r,tokenStart:c,children:l}=i.pop(),u=e?s.substr(r,e-r):s.substr(r);u&&l.push(u),null!==a&&o.push(s.substr(a,c-a)),o.push(Object(n.cloneElement)(t,null,...l))}(h),r=h+m,!0;const t=i.pop(),a=s.substr(t.prevOffset,h-t.prevOffset);t.children.push(a),t.prevOffset=h+m;const c=l(t.element,t.tokenStart,t.tokenLength,h+m);return c.children=t.children,d(c),r=h+m,!0;default:return u(),!1}}t.a=(e,t)=>{if(s=e,r=0,o=[],i=[],c.lastIndex=0,!(e=>{const t="object"==typeof e,a=t&&Object.values(e);return t&&a.length&&a.every(e=>Object(n.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(n.createElement)(n.Fragment,null,...o)}},,function(e,t,a){"use strict";var n=a(0),s=a(2),r=a.n(s),o=a(8),i=a(19);const c=e=>{let{theme:t,location:a,children:s}=e;return Object(n.createElement)(i.LocationProvider,{value:a},Object(n.createElement)(o.ThemeProvider,{theme:t},s))};c.propTypes={theme:r.a.object.isRequired,location:r.a.oneOf(["sidebar","metabox","modal"]).isRequired,children:r.a.element.isRequired},t.a=c},function(e,t,a){"use strict";var n=a(0),s=a(7),r=a(2),o=a.n(r);const i=e=>Object(n.createElement)("div",{className:"yoast components-panel__body"},Object(n.createElement)("h2",{className:"components-panel__body-title"},Object(n.createElement)("button",{id:e.id,onClick:e.onClick,className:"components-button components-panel__body-toggle"},e.prefixIcon&&Object(n.createElement)("span",{className:"yoast-icon-span",style:{fill:""+(e.prefixIcon&&e.prefixIcon.color||"")}},Object(n.createElement)(s.SvgIcon,{size:e.prefixIcon.size,icon:e.prefixIcon.icon})),Object(n.createElement)("span",{className:"yoast-title-container"},Object(n.createElement)("div",{className:"yoast-title"},e.title),Object(n.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),e.children,e.suffixIcon&&Object(n.createElement)(s.SvgIcon,{size:e.suffixIcon.size,icon:e.suffixIcon.icon}))));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,prefixIcon:o.a.object,children:o.a.node},i.defaultProps={id:"",suffixIcon:null,prefixIcon:null,subTitle:"",children:null}},function(e,t,a){"use strict";var n=a(0),s=a(2),r=a.n(s),o=a(1);const i=e=>{let{data:t,mapChartDataToTableData:a,dataTableCaption:s,dataTableHeaderLabels:r,isDataTableVisuallyHidden:i}=e;return t.length!==r.length?Object(n.createElement)("p",null,Object(o.__)("The number of headers and header labels don't match.","wordpress-seo")):Object(n.createElement)("div",{className:i?"screen-reader-text":null},Object(n.createElement)("table",null,Object(n.createElement)("caption",null,s),Object(n.createElement)("thead",null,Object(n.createElement)("tr",null,r.map((e,t)=>Object(n.createElement)("th",{key:t},e)))),Object(n.createElement)("tbody",null,Object(n.createElement)("tr",null,t.map((e,t)=>Object(n.createElement)("td",{key:t},a(e.y)))))))};i.propTypes={data:r.a.arrayOf(r.a.shape({x:r.a.number,y:r.a.number})).isRequired,mapChartDataToTableData:r.a.func,dataTableCaption:r.a.string.isRequired,dataTableHeaderLabels:r.a.array.isRequired,isDataTableVisuallyHidden:r.a.bool},i.defaultProps={mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};var c=i;const l=e=>{let{data:t,width:a,height:s,fillColor:r,strokeColor:o,strokeWidth:i,className:l,mapChartDataToTableData:u,dataTableCaption:d,dataTableHeaderLabels:p,isDataTableVisuallyHidden:h}=e;const m=Math.max(1,Math.max(...t.map(e=>e.x))),b=Math.max(1,Math.max(...t.map(e=>e.y))),g=s-i,f=t.map(e=>`${e.x/m*a},${g-e.y/b*g+i}`).join(" "),y=`0,${g+i} `+f+` ${a},${g+i}`;return Object(n.createElement)(n.Fragment,null,Object(n.createElement)("svg",{width:a,height:s,viewBox:`0 0 ${a} ${s}`,className:l,role:"img","aria-hidden":"true",focusable:"false"},Object(n.createElement)("polygon",{fill:r,points:y}),Object(n.createElement)("polyline",{fill:"none",stroke:o,strokeWidth:i,strokeLinejoin:"round",strokeLinecap:"round",points:f})),u&&Object(n.createElement)(c,{data:t,mapChartDataToTableData:u,dataTableCaption:d,dataTableHeaderLabels:p,isDataTableVisuallyHidden:h}))};l.propTypes={data:r.a.arrayOf(r.a.shape({x:r.a.number,y:r.a.number})).isRequired,width:r.a.number.isRequired,height:r.a.number.isRequired,fillColor:r.a.string,strokeColor:r.a.string,strokeWidth:r.a.number,className:r.a.string,mapChartDataToTableData:r.a.func,dataTableCaption:r.a.string.isRequired,dataTableHeaderLabels:r.a.array.isRequired,isDataTableVisuallyHidden:r.a.bool},l.defaultProps={fillColor:null,strokeColor:"#000000",strokeWidth:1,className:"",mapChartDataToTableData:null,isDataTableVisuallyHidden:!0},t.a=l},,,,,function(e,t){e.exports=window.yoast.socialMetadataForms},function(e,t,a){"use strict";var n=a(15),s=a(6),r=a(97);t.a=Object(n.compose)([Object(s.withSelect)((e,t)=>{const{getPostOrPageString:a,getIsModalOpen:n}=e("yoast-seo/editor");return{postTypeName:a(),isOpen:n(t.id)}}),Object(s.withDispatch)((e,t)=>{const{openEditorModal:a,closeEditorModal:n}=e("yoast-seo/editor");return{open:()=>a(t.id),close:n}})])(r.a)},,function(e,t){e.exports=window.moment},function(e,t,a){"use strict";function n(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)}a.d(t,"a",(function(){return n}))},function(e,t,a){"use strict";function n(){return window.wpseoScriptData&&"1"===window.wpseoScriptData.isBlockEditor}a.d(t,"a",(function(){return n}))},,function(e,t,a){"use strict";function n(e){return function(){return e}}var s=function(){};s.thatReturns=n,s.thatReturnsFalse=n(!1),s.thatReturnsTrue=n(!0),s.thatReturnsNull=n(null),s.thatReturnsThis=function(){return this},s.thatReturnsArgument=function(e){return e},e.exports=s},,function(e,t,a){"use strict";a.r(t),a.d(t,"refreshDelay",(function(){return n}));const n=500},,function(e,t,a){"use strict";function n(e){var t=jQuery(".yst-traffic-light"),a=t.closest(".wpseo-meta-section-link"),n=jQuery("#wpseo-traffic-light-desc"),s=e.className||"na";t.attr("class","yst-traffic-light "+s),a.attr("aria-describedby","wpseo-traffic-light-desc"),n.length>0?n.text(e.screenReaderText):a.closest("li").append("<span id='wpseo-traffic-light-desc' class='screen-reader-text'>"+e.screenReaderText+"</span>")}a.d(t,"a",(function(){return n}))},,,,function(e,t,a){"use strict";a.d(t,"b",(function(){return d}));var n=a(0),s=a(1),r=a(35),o=a(2),i=a.n(o),c=a(4),l=a(76),u=a(19);const d=e=>{let t=!0;if("blur"===e.type){const{relatedTarget:a}=e;if(a){const e=["media-modal","wp-core-ui"];t=Object(c.intersection)(e,Array.from(a.classList)).length!==e.length}}return t},p=e=>{let{id:t,postTypeName:a,children:o,title:i,isOpen:c,close:p,open:h,shouldCloseOnClickOutside:m,showChangesWarning:b}=e;const g=Object(n.useCallback)(e=>{d(e)&&p()},[p]);return Object(n.createElement)(n.Fragment,null,c&&Object(n.createElement)(u.LocationProvider,{value:"modal"},Object(n.createElement)(r.a,{title:i,onRequestClose:g,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal",id:"id",shouldCloseOnClickOutside:m},Object(n.createElement)("div",{className:"yoast-content-container"},Object(n.createElement)("div",{className:"yoast-modal-content"},o)),Object(n.createElement)("div",{className:"yoast-notice-container"},Object(n.createElement)("hr",null),Object(n.createElement)("div",{className:"yoast-button-container"},b&&Object(n.createElement)("p",null,
/* Translators: %s translates to the Post Label in singular form */
Object(s.sprintf)(Object(s.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),a)),Object(n.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(s.sprintf)(Object(s.__)("Return to your %s","wordpress-seo"),a)))))),Object(n.createElement)(l.a,{id:t+"-open-button",title:i,suffixIcon:{size:"20px",icon:"pencil-square"},onClick:h}))};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},p.defaultProps={shouldCloseOnClickOutside:!0,showChangesWarning:!0},t.a=p},,function(e,t,a){"use strict";a.d(t,"a",(function(){return g})),a.d(t,"c",(function(){return f})),a.d(t,"b",(function(){return y}));var n=a(0),s=a(2),r=a.n(s),o=a(1),i=a(4),c=a(85),l=a.n(c),u=a(7),d=a(10),p=a(77),h=()=>Object(n.createElement)("p",{className:"yoast-wincher-seo-performance-modal__loading-message"},Object(o.__)("Tracking the ranking position...","wordpress-seo")," ",Object(n.createElement)(u.SvgIcon,{icon:"loading-spinner"}));const m=Object(d.makeOutboundLink)();function b(e){return Math.round(100*e)}function g(e){let{chartData:t}=e;if(Object(i.isEmpty)(t)||Object(i.isEmpty)(t.position))return"?";const a=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),s=t.position.history.map((e,t)=>({x:t,y:101-e.value}));return Object(n.createElement)(p.a,{width:66,height:24,data:s,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:b,dataTableCaption:Object(o.__)("Keyphrase position in the last 90 days on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:a})}function f(e){return!e||!e.position||e.position.value>100?"> 100":e.position.value}function y(e){const{keyphrase:t,rowData:a,onTrackKeyphrase:s,onUntrackKeyphrase:r,isFocusKeyphrase:c,isDisabled:d,isLoading:p}=e,b=!Object(i.isEmpty)(a),y=Object(n.useCallback)(()=>{d||(b?r(t,a.id):s(t))},[t,s,r,b,a,d]);return Object(n.createElement)("tr",null,Object(n.createElement)("td",{className:"yoast-table--nopadding"},function(e){let{keyphrase:t,isEnabled:a,toggleAction:s,isLoading:r}=e;return r?Object(n.createElement)(u.SvgIcon,{icon:"loading-spinner"}):Object(n.createElement)(u.Toggle,{id:"toggle-keyphrase-tracking-"+t,className:"wincher-toggle",isEnabled:a,onSetToggleState:s,showToggleStateLabel:!1})}({keyphrase:t,isEnabled:b,toggleAction:y,isLoading:p})),Object(n.createElement)("td",null,t,c&&Object(n.createElement)("span",null,"*")),function(e){const{rowData:t,websiteId:a}=e,s=!Object(i.isEmpty)(t),r=t&&t.updated_at&&l()(t.updated_at)>=l()().subtract(7,"days"),c=t?Object(o.sprintf)("https://app.wincher.com/websites/%s/keywords?serp=%s&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast",a,t.id):null;return s?r?Object(n.createElement)(n.Fragment,null,Object(n.createElement)("td",null,f(t)),Object(n.createElement)("td",{className:"yoast-table--nopadding"},Object(n.createElement)(g,{chartData:t})),Object(n.createElement)("td",{className:"yoast-table--nobreak"},Object(n.createElement)(m,{href:c},Object(o.__)("View","wordpress-seo")))):Object(n.createElement)(n.Fragment,null,Object(n.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},Object(n.createElement)(h,null))):Object(n.createElement)(n.Fragment,null,Object(n.createElement)("td",null,"?"),Object(n.createElement)("td",{className:"yoast-table--nopadding"},"?"),Object(n.createElement)("td",{className:"yoast-table--nobreak"}))}(e))}g.propTypes={chartData:r.a.object},g.defaultProps={chartData:{}},y.propTypes={rowData:r.a.object,keyphrase:r.a.string.isRequired,onTrackKeyphrase:r.a.func,onUntrackKeyphrase:r.a.func,isFocusKeyphrase:r.a.bool,isDisabled:r.a.bool,isLoading:r.a.bool,websiteId:r.a.string},y.defaultProps={rowData:{},onTrackKeyphrase:()=>{},onUntrackKeyphrase:()=>{},isFocusKeyphrase:!1,isDisabled:!1,isLoading:!1,websiteId:""}},,,function(e,t,a){"use strict";a.r(t),a.d(t,"updateScore",(function(){return o})),a.d(t,"createScoresInPublishBox",(function(){return i})),a.d(t,"scrollToCollapsible",(function(){return c})),a.d(t,"initialize",(function(){return l}));var n=a(4),s=jQuery;function r(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return null!==a?Object(n.get)(a,t,""):Object(n.get)(wpseoScriptData,`metabox.publish_box.labels.${e}.${t}`,"")}function o(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;var n=s("#"+e+"-score"),o="image yoast-logo svg "+t;n.children(".image").attr("class",o);var i=r(e,t,a);n.children(".score-text").html(i)}function i(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const n=s("<div />",{class:"misc-pub-section yoast yoast-seo-score "+e+"-score",id:e+"-score"}),o=s("<span />",{class:"score-text",html:r(e,t,a)}),i=s("<span>").attr("class","image yoast-logo svg na");n.append(i).append(o),s("#yoast-seo-publishbox-section").append(n)}function c(e){const t=s("#wpadminbar"),a=s(e);if(!t||!a)return;const n="fixed"===t.css("position")?t.height():0;s([document.documentElement,document.body]).animate({scrollTop:a.offset().top-n},1e3),a.trigger("focus"),0===a.parent().siblings().length&&a.trigger("click")}function l(){wpseoScriptData.metabox.keywordAnalysisActive&&i("keyword","na"),wpseoScriptData.metabox.contentAnalysisActive&&i("content","na"),wpseoScriptData.metabox.inclusiveLanguageAnalysisActive&&i("inclusive-language","na"),s("#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")})),s("#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")})),s("#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,a){"use strict";a.d(t,"a",(function(){return n}));class n{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=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:""},a),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:a}=this.options,n=["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,a,n.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}async messageHandler(e){const{data:t,source:a,origin:n}=e;n===this.origin&&this.popup===a&&(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,a){"use strict";var n=a(0),s=a(2),r=a.n(s),o=a(1),i=a(25),c=a.n(i),l=a(7);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(n.createElement)(l.Alert,{type:"error"},c()({mixedString:t,components:{reconnectToWincher:Object(n.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:r.a.func.isRequired},t.a=u},,,function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n=a(4);const s=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return()=>t.map(e=>e())};t.b=(e,t)=>{let a=e();return()=>{const s=e();Object(n.isEqual)(s,a)||(a=s,t(Object(n.clone)(s)))}}},,function(e,t,a){"use strict";var n=a(0),s=a(1),r=a(25),o=a.n(r),i=a(10);const c=Object(i.makeOutboundLink)(),l=Object(i.makeOutboundLink)();t.a=()=>{const e=Object(s.sprintf)(Object(s.__)(
/* 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(n.createElement)("p",null,o()({mixedString:e,components:{wincherLink:Object(n.createElement)(c,{href:wpseoAdminGlobalL10n["links.wincher.website"]},"Wincher"),wincherReadMoreLink:Object(n.createElement)(l,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"]},Object(s.__)("Read more about keyphrase tracking with Wincher","wordpress-seo"))}}))}},,function(e,t,a){"use strict";var n=a(6),s=a(15),r=a(11),o=a.n(r),i=a(0),c=a(1),l=a(2),u=a.n(l),d=a(4),p=a(8),h=a.n(p),m=a(7),b=a(10),g=a(25),f=a.n(g);const y=Object(b.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)(m.Alert,{type:"error"},f()({mixedString:t,components:{updateWincherPlanLink:Object(i.createElement)(y,{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,O=()=>Object(i.createElement)(m.Alert,{type:"error"},Object(c.__)("Something went wrong while tracking the ranking position(s) of your page. Please try again later.","wordpress-seo")),j=()=>Object(i.createElement)(m.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")),k=()=>Object(i.createElement)(m.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")),E=a(99),R=a(37),x=a(29);const T=Object(b.makeOutboundLink)(),_=h.a.span`
display: block;
font-style: italic;
@media (min-width: 782px) {
display: inline;
position: absolute;
${Object(b.getDirectionalStyle)("right","left")}: 8px;
}
`,I=h.a.th`
min-width: 60px;
`,S=h.a.div`
width: 100%;
overflow-y: auto;
`,C=e=>{const t=Object(i.useRef)();return Object(i.useEffect)(()=>{t.current=e}),t.current},L=Object(d.debounce)(R.c,500,{leading:!0}),P=e=>{const{addTrackedKeyphrase:t,isLoggedIn:a,keyphrases:n,permalink:s,removeTrackedKeyphrase:r,setKeyphraseLimitReached:o,setRequestFailed:l,setRequestSucceeded:u,setTrackedKeyphrases:p,setHasTrackedAll:h,trackAll:m,trackedKeyphrases:b,isNewlyAuthenticated:g,websiteId:f,focusKeyphrase:y,newRequest:w}=e,v=Object(i.useRef)(),O=Object(i.useRef)(),j=Object(i.useRef)(!1),[k,P]=Object(i.useState)([]),M=Object(i.useCallback)(e=>{const t=e.toLowerCase();return b&&!Object(d.isEmpty)(b)&&b.hasOwnProperty(t)?b[t]:null},[b]),q=Object(i.useMemo)(()=>async()=>{await Object(x.b)(()=>(O.current&&O.current.abort(),O.current="undefined"==typeof AbortController?null:new AbortController,L(n,s,O.current.signal)),e=>{u(e),p(e.results)},e=>{l(e)})},[u,l,p,n,s]),A=Object(i.useCallback)(async e=>{const a=(Array.isArray(e)?e:[e]).map(e=>e.toLowerCase());P(e=>[...e,...a]),await Object(x.b)(()=>Object(R.d)(a),e=>{u(e),t(e.results),q()},e=>{400===e.status&&e.limit&&o(e.limit),l(e)},201),P(e=>Object(d.without)(e,...a))},[u,l,o,t,q]),F=Object(i.useCallback)(async(e,t)=>{e=e.toLowerCase(),P(t=>[...t,e]),await Object(x.b)(()=>Object(R.e)(t),t=>{u(t),r(e)},e=>{l(e)}),P(t=>Object(d.without)(t,e))},[u,r,l]),D=Object(i.useCallback)(async e=>{w(),await A(e)},[w,A]),N=C(s),K=C(n);Object(i.useEffect)(()=>{a&&s&&(s!==N||Object(d.difference)(n,K).length)&&q()},[a,s,N,n,K,q]),Object(i.useEffect)(()=>{if(a&&m&&null!==b){const e=n.filter(e=>!M(e));e.length&&A(e),h()}},[a,m,b,A,h,M,n]),Object(i.useEffect)(()=>{g&&!j.current&&(q(),j.current=!0)},[g,q]),Object(i.useEffect)(()=>{if(a&&!Object(d.isEmpty)(b))return Object(d.filter)(b,e=>Object(d.isEmpty)(e.updated_at)).length>0&&(v.current=setInterval(()=>{q()},1e4)),()=>{clearInterval(v.current)}},[a,b,q]);const B=a&&null===b;return n&&!Object(d.isEmpty)(n)&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(S,null,Object(i.createElement)("table",{className:"yoast yoast-table"},Object(i.createElement)("thead",null,Object(i.createElement)("tr",null,Object(i.createElement)("th",{scope:"col",abbr:Object(c.__)("Tracking","wordpress-seo")},Object(c.__)("Tracking","wordpress-seo")),Object(i.createElement)("th",{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)(I,{className:"yoast-table--nobreak"}))),Object(i.createElement)("tbody",null,n.map((e,t)=>Object(i.createElement)(E.b,{key:"trackable-keyphrase-"+t,keyphrase:e,onTrackKeyphrase:D,onUntrackKeyphrase:F,rowData:M(e),isFocusKeyphrase:e===y.trim().toLowerCase(),websiteId:f,isDisabled:!a,isLoading:B||k.indexOf(e.toLowerCase())>=0}))))),Object(i.createElement)("p",{style:{marginBottom:0,position:"relative"}},Object(i.createElement)(T,{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)(_,null,Object(c.__)("* focus keyphrase","wordpress-seo"))))};P.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},P.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],trackAll:!1,trackedKeyphrases:null,websiteId:"",focusKeyphrase:""};var M=P,q=Object(s.compose)([Object(n.withSelect)(e=>{const{getWincherWebsiteId:t,getWincherTrackedKeyphrases:a,getWincherTrackableKeyphrases:n,getWincherLoginStatus:s,getWincherPermalink:r,getFocusKeyphrase:o,isWincherNewlyAuthenticated:i,shouldWincherTrackAll:c}=e("yoast-seo/editor");return{focusKeyphrase:o(),keyphrases:n(),trackedKeyphrases:a(),isLoggedIn:s(),trackAll:c(),websiteId:t(),isNewlyAuthenticated:i(),permalink:r()}}),Object(n.withDispatch)(e=>{const{setWincherNewRequest:t,setWincherRequestSucceeded:a,setWincherRequestFailed:n,setWincherSetKeyphraseLimitReached:s,setWincherTrackedKeyphrases:r,setWincherTrackingForKeyphrase:o,setWincherTrackAllKeyphrases:i,unsetWincherTrackingForKeyphrase:c}=e("yoast-seo/editor");return{newRequest:()=>{t()},setRequestSucceeded:e=>{a(e)},setRequestFailed:e=>{n(e)},setKeyphraseLimitReached:e=>{s(e)},addTrackedKeyphrase:e=>{o(e)},removeTrackedKeyphrase:e=>{c(e)},setTrackedKeyphrases:e=>{r(e)},setHasTrackedAll:()=>{i(!1)}}})])(M),A=a(112),F=()=>Object(i.createElement)(m.Alert,{type:"error"},Object(c.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo")),D=()=>Object(i.createElement)(m.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=a(106),K=a(107),B=()=>Object(i.createElement)(m.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"));const H=e=>{let{response:t,onLogin:a}=e;return[401,403,404].includes(t.status)?Object(i.createElement)(K.a,{onReconnect:a}):Object(i.createElement)(O,null)};H.propTypes={response:u.a.object.isRequired,onLogin:u.a.func.isRequired};const W=e=>{let{isSuccess:t,response:a,allKeyphrasesMissRanking:n,onLogin:s,keyphraseLimitReached:r,limit:o}=e;return r?Object(i.createElement)(v,{limit:o}):Object(d.isEmpty)(a)||t?n?Object(i.createElement)(k,null):null:Object(i.createElement)(H,{response:a,onLogin:s})};W.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},W.defaultProps={response:{}};let $=null;const U=async e=>{if($&&!$.isClosed())return void $.focus();const{url:t}=await Object(R.b)();$=new N.a(t,{success:{type:"wincher:oauth:success",callback:t=>(async(e,t)=>{const{onAuthentication:a,setRequestSucceeded:n,setRequestFailed:s,keyphrases:r,addTrackedKeyphrase:o,setKeyphraseLimitReached:i}=e;await Object(x.b)(()=>Object(R.a)(t),async e=>{a(!0,!0,t.websiteId.toString()),n(e);const c=(Array.isArray(r)?r:[r]).map(e=>e.toLowerCase());await Object(x.b)(()=>Object(R.d)(c),e=>{n(e),o(e.results)},e=>{400===e.status&&e.limit&&i(e.limit),s(e)},201);const l=$.getPopup();l&&l.close()},async e=>s(e))})(e,t)},error:{type:"wincher:oauth:error",callback:()=>e.onAuthentication(!1,!1)}},{title:"Wincher_login",width:500,height:700}),$.createPopup()},z=e=>e.isLoggedIn?null:Object(i.createElement)("p",null,Object(i.createElement)(m.NewButton,{onClick:e.onLogin,variant:"primary"},Object(c.sprintf)(
/* translators: %s expands to Wincher */
Object(c.__)("Connect with %s","wordpress-seo"),"Wincher")));z.propTypes={isLoggedIn:u.a.bool.isRequired,onLogin:u.a.func.isRequired};const V=h.a.div`
p {
margin: 1em 0;
}
`,G=h.a.div`
${e=>e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"};
`,Y=h.a.div`
font-weight: var(--yoast-font-weight-bold);
color: var(--yoast-color-label);
font-size: var(--yoast-font-size-default);
`,Z=e=>{const{isLoggedIn:t,keyphrases:a,shouldTrackAll:n,permalink:s}=e;return!s&&t?Object(i.createElement)(B,null):0===a.length?Object(i.createElement)(F,null):Object(i.createElement)(G,{isDisabled:!t},Object(i.createElement)("p",null,Object(c.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")),t&&n&&Object(i.createElement)(D,null),Object(i.createElement)(q,null))};function J(e){const{isNewlyAuthenticated:t,isLoggedIn:a}=e,n=Object(i.useCallback)(()=>{U(e)},[U,e]);return Object(i.createElement)(V,null,t&&Object(i.createElement)(j,null),Object(i.createElement)(Y,null,Object(c.__)("SEO performance","wordpress-seo"),Object(i.createElement)(m.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"],linkText:Object(c.__)("Learn more about the SEO performance feature.","wordpress-seo")})),Object(i.createElement)(A.a,null),Object(i.createElement)(z,{isLoggedIn:a,onLogin:n}),Object(i.createElement)(W,o()({},e,{onLogin:n})),Object(i.createElement)(Z,e))}Z.propTypes={keyphrases:u.a.array.isRequired,isLoggedIn:u.a.bool.isRequired,shouldTrackAll:u.a.bool.isRequired,permalink:u.a.string.isRequired},J.propTypes={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},J.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],response:{},shouldTrackAll:!1,permalink:""},t.a=Object(s.compose)([Object(n.withSelect)(e=>{const{isWincherNewlyAuthenticated:t,getWincherKeyphraseLimitReached:a,getWincherLimit:n,getWincherLoginStatus:s,getWincherRequestIsSuccess:r,getWincherRequestResponse:o,getWincherTrackableKeyphrases:i,getWincherAllKeyphrasesMissRanking:c,getWincherPermalink:l,shouldWincherAutomaticallyTrackAll:u}=e("yoast-seo/editor");return{keyphrases:i(),allKeyphrasesMissRanking:c(),isLoggedIn:s(),isNewlyAuthenticated:t(),isSuccess:r(),keyphraseLimitReached:a(),limit:n(),response:o(),shouldTrackAll:u(),permalink:l()}}),Object(n.withDispatch)(e=>{const{setWincherWebsiteId:t,setWincherRequestSucceeded:a,setWincherRequestFailed:n,setWincherTrackingForKeyphrase:s,setWincherSetKeyphraseLimitReached:r,setWincherLoginStatus:o}=e("yoast-seo/editor");return{setRequestSucceeded:e=>{a(e)},setRequestFailed:e=>{n(e)},addTrackedKeyphrase:e=>{s(e)},setKeyphraseLimitReached:e=>{r(e)},onAuthentication:(e,a,n)=>{t(n),o(e,a)}}})])(J)},,,,,,,,,function(e,t,a){"use strict";var n=a(3),s="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,r=a(89),o=a(124),i=a(125),c="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(a=e.key,n={"=":"=0",":":"=2"},"$"+(""+a).replace(/[=:]/g,(function(e){return n[e]}))):t.toString(36);var a,n}var u=/\/+/g;function d(e){return(""+e).replace(u,"$&/")}var p,h,m=b,b=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)};function g(e,t,a,n){this.result=e,this.keyPrefix=t,this.func=a,this.context=n,this.count=0}function f(e,t,a){var s,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,a,r.thatReturnsArgument):null!=p&&(n.isValidElement(p)&&(s=p,o=c+(!p.key||t&&t.key===p.key?"":d(p.key)+"/")+a,p=n.cloneElement(s,{key:o},void 0!==s.props?s.props.children:void 0)),i.push(p))}function y(e,t,a,n,r){var i="";null!=a&&(i=d(a)+"/");var u=g.getPooled(t,i,n,r);!function(e,t,a){null==e||function e(t,a,n,r){var i,u=typeof t;if("undefined"!==u&&"boolean"!==u||(t=null),null===t||"string"===u||"number"===u||"object"===u&&t.$$typeof===s)return n(r,t,""===a?"."+l(t,0):a),1;var d=0,p=""===a?".":a+":";if(Array.isArray(t))for(var h=0;h<t.length;h++)d+=e(i=t[h],p+l(i,h),n,r);else{var m=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(m)for(var b,g=m.call(t),f=0;!(b=g.next()).done;)d+=e(i=b.value,p+l(i,f++),n,r);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,a)}(e,f,u),g.release(u)}g.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},p=function(e,t,a,n){if(this.instancePool.length){var s=this.instancePool.pop();return this.call(s,e,t,a,n),s}return new this(e,t,a,n)},(h=g).instancePool=[],h.getPooled=p||m,h.poolSize||(h.poolSize=10),h.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(n.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 a in e)y(e[a],t,a,r.thatReturnsArgument);return t}},function(e,t,a){"use strict";e.exports=function(e,t,a,n,s,r,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=[a,n,s,r,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,a){"use strict";var n=a(89);e.exports=n},function(e,t,a){"use strict";function n(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(n)}},,function(e,t){e.exports=window.wp.sanitize},,function(e,t,a){"use strict";var n=a(15),s=a(6);const r=Object(n.compose)([Object(s.withSelect)((e,t)=>{const{isAlertDismissed:a}=e(t.store||"yoast-seo/editor");return{isAlertDismissed:a(t.alertKey)}}),Object(s.withDispatch)((e,t)=>{const{dismissAlert:a}=e(t.store||"yoast-seo/editor");return{onDismissed:()=>a(t.alertKey)}})]);t.a=r},function(e,t,a){"use strict";var n=a(6),s=a(15),r=a(0),o=a(1),i=a(2),c=a.n(i),l=a(4),u=a(7),d=()=>Object(r.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(r.createElement)(u.SvgIcon,{icon:"loading-spinner"})),p=a(10);const h=Object(p.makeOutboundLink)();var m=()=>Object(r.createElement)(r.Fragment,null,Object(r.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(r.createElement)(h,{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(r.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"}))),b=a(27),g=a.n(b),f=a(21);const y="yoast-semrush-country-selector",w=[{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 v extends r.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){g()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}})}async relatedKeyphrasesRequest(){const{keyphrase:e,countryCode:t,newRequest:a}=this.props;a(t,e),this.storeCountryCode(t);const n=await this.doRequest(e,t);200!==n.status?this.handleFailedResponse(n):this.handleSuccessResponse(n)}handleSuccessResponse(e){const{setNoResultsFound:t,setRequestSucceeded:a}=this.props;0!==e.results.rows.length?a(e):t()}handleFailedResponse(e){const{setRequestLimitReached:t,setRequestFailed:a}=this.props;"error"in e&&(e.error.includes("TOTAL LIMIT EXCEEDED")?t():a(e))}async doRequest(e,t){return await g()({path:Object(f.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:e,country_code:t})})}onChangeHandler(e){this.props.setCountry(e)}render(){return Object(r.createElement)("div",{id:y},Object(r.createElement)(u.SingleSelect,{id:y+"-select",label:Object(o.__)("Show results for:","wordpress-seo"),name:"semrush-country-code",options:w,selected:this.props.countryCode,onChange:this.onChangeHandler,wrapperClassName:"yoast-field-group yoast-field-group--inline"}),Object(r.createElement)(u.NewButton,{id:y+"-button",variant:"secondary",onClick:this.relatedKeyphrasesRequest},Object(o.__)("Select country","wordpress-seo")))}}v.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},v.defaultProps={keyphrase:"",countryCode:"us",response:{},lastRequestKeyphrase:""};var O=v,j=a(77),k=a(64);const E=Object(p.makeOutboundLink)();class R extends r.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:a,data:n,renderAction:s}=this.props,i="https://www.semrush.com/analytics/keywordoverview/?q="+encodeURIComponent(e)+"&db="+encodeURIComponent(a);return n&&!Object(l.isEmpty)(n.results)&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("table",{className:"yoast yoast-table"},Object(r.createElement)("thead",null,Object(r.createElement)("tr",null,Object(r.createElement)("th",{scope:"col",className:"yoast-table--primary"},Object(o.__)("Related keyphrase","wordpress-seo")),Object(r.createElement)("th",{scope:"col",abbr:Object(o.__)("Volume","wordpress-seo")},Object(o.__)("Volume","wordpress-seo"),Object(r.createElement)(k.a,{href:window.wpseoAdminL10n["shortlinks.semrush.volume_help"],className:"dashicons"},Object(r.createElement)("span",{className:"screen-reader-text"},Object(o.__)("Learn more about the related keyphrases volume","wordpress-seo")))),Object(r.createElement)("th",{scope:"col",abbr:Object(o.__)("Trend","wordpress-seo")},Object(o.__)("Trend","wordpress-seo"),Object(r.createElement)(k.a,{href:window.wpseoAdminL10n["shortlinks.semrush.trend_help"],className:"dashicons"},Object(r.createElement)("span",{className:"screen-reader-text"},Object(o.__)("Learn more about the related keyphrases trend","wordpress-seo")))),s&&Object(r.createElement)("td",{className:"yoast-table--nobreak"}))),Object(r.createElement)("tbody",null,n.results.rows.map((e,a)=>{const n=e[0],i=this.transformTrendDataToChartPoints(e[2]),c=this.getAreaChartDataTableHeaderLabels();return Object(r.createElement)("tr",{key:a},Object(r.createElement)("td",null,n),Object(r.createElement)("td",null,e[1]),Object(r.createElement)("td",{className:"yoast-table--nopadding"},Object(r.createElement)(j.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})),s&&Object(r.createElement)("td",{className:"yoast-table--nobreak"},s(n,t)))}))),Object(r.createElement)("p",{style:{marginBottom:0}},Object(r.createElement)(E,{href:i},Object(o.sprintf)(
/* translators: %s expands to Semrush */
Object(o.__)("Get more insights at %s","wordpress-seo"),"Semrush"))))}}R.propTypes={data:c.a.object,keyphrase:c.a.string,relatedKeyphrases:c.a.array,countryCode:c.a.string,renderAction:c.a.func},R.defaultProps={data:{},keyphrase:"",relatedKeyphrases:[],countryCode:"us",renderAction:null};var x=R;const T=Object(p.makeOutboundLink)();var _=()=>Object(r.createElement)(u.Alert,{type:"info"},Object(o.sprintf)(
/* translators: %s: Expands to "Yoast SEO". */
Object(o.__)("Would you like to be able to add these related keyphrases to the %s analysis so you can optimize your content even further?","wordpress-seo"),"Yoast SEO")+" ",Object(r.createElement)(T,{href:window.wpseoAdminL10n["shortlinks.semrush.premium_landing_page"]},Object(o.sprintf)(
/* translators: %s: Expands to "Yoast SEO Premium". */
Object(o.__)("Check out %s!","wordpress-seo"),"Yoast SEO Premium"))),I=()=>Object(r.createElement)(u.Alert,{type:"error"},Object(o.__)("We've encountered a problem trying to get related keyphrases. Please try again later.","wordpress-seo")),S=()=>Object(r.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=a(14);function L(e){const{response:t,lastRequestKeyphrase:a,keyphrase:n,newRequest:s,setCountry:i,renderAction:c,countryCode:u,requestLimitReached:p,setRequestFailed:h,setNoResultsFound:b,relatedKeyphrases:g,setRequestSucceeded:f,setRequestLimitReached:y}=e,w=Object(C.a)().isPremium;return Object(r.createElement)(r.Fragment,null,!p&&Object(r.createElement)(r.Fragment,null,!w&&Object(r.createElement)(_,null),w&&function(e){return e&&e.length>=4}(g)&&Object(r.createElement)(S,null),Object(r.createElement)(O,{countryCode:u,setCountry:i,newRequest:s,keyphrase:n,setRequestFailed:h,setNoResultsFound:b,setRequestSucceeded:f,setRequestLimitReached:y,response:t,lastRequestKeyphrase:a})),function(e){const{isPending:t,requestLimitReached:a,isSuccess:n,response:s,requestHasData:i}=e;return t?Object(r.createElement)(d,null):a?Object(r.createElement)(m,null):!n&&function(e){return!Object(l.isEmpty)(e)&&"error"in e}(s)?Object(r.createElement)(I,null):i?void 0:Object(r.createElement)("p",null,Object(o.__)("Sorry, there's no data available for that keyphrase/country combination.","wordpress-seo"))}(e),Object(r.createElement)(x,{keyphrase:n,relatedKeyphrases:g,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(s.compose)([Object(n.withSelect)(e=>{const{getFocusKeyphrase:t,getSEMrushSelectedCountry:a,getSEMrushRequestLimitReached:n,getSEMrushRequestResponse:s,getSEMrushRequestIsSuccess:r,getSEMrushIsRequestPending:o,getSEMrushRequestHasData:i,getSEMrushRequestKeyphrase:c}=e("yoast-seo/editor");return{keyphrase:t(),countryCode:a(),requestLimitReached:n(),response:s(),isSuccess:r(),isPending:o(),requestHasData:i(),lastRequestKeyphrase:c()}}),Object(n.withDispatch)(e=>{const{setSEMrushChangeCountry:t,setSEMrushNewRequest:a,setSEMrushRequestSucceeded:n,setSEMrushRequestFailed:s,setSEMrushSetRequestLimitReached:r,setSEMrushNoResultsFound:o}=e("yoast-seo/editor");return{setCountry:e=>{t(e)},newRequest:(e,t)=>{a(e,t)},setRequestSucceeded:e=>{n(e)},setRequestFailed:e=>{s(e)},setRequestLimitReached:()=>{r()},setNoResultsFound:()=>{o()}}})])(L)},,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";var n=a(0),s=a(7),r=a(2),o=a.n(r),i=a(58),c=a(72);const l=e=>{let{target:t,scoreIndicator:a}=e;return Object(n.createElement)(c.a,{target:t},Object(n.createElement)(s.SvgIcon,Object(i.getIconForScore)(a)))};l.propTypes={target:o.a.string.isRequired,scoreIndicator:o.a.string.isRequired},t.a=l},,function(e,t,a){"use strict";var n=a(6),s=a(15),r=a(0),o=a(1),i=a(2),c=a.n(i),l=a(159),u=a(4),d=a(12),p=a(58);class h extends r.Component{constructor(e){super(e);const t=this.props.results;this.state={mappedResults:{}},null!==t&&(this.state={mappedResults:Object(p.default)(t,this.props.keywordKey)}),this.handleMarkButtonClick=this.handleMarkButtonClick.bind(this),this.handleEditButtonClick=this.handleEditButtonClick.bind(this),this.handleResultsChange=this.handleResultsChange.bind(this)}componentDidUpdate(e){null!==this.props.results&&this.props.results!==e.results&&this.setState({mappedResults:Object(p.default)(this.props.results,this.props.keywordKey)})}deactivateMarker(){this.props.setActiveMarker(null),this.props.setMarkerPauseStatus(!1),this.removeMarkers()}activateMarker(e,t){this.props.setActiveMarker(e),t()}handleMarkButtonClick(e,t){const a=this.props.keywordKey.length>0?`${this.props.keywordKey}:${e}`:e;a===this.props.activeMarker?this.deactivateMarker():this.activateMarker(a,t)}handleResultsChange(e,t,a){const n=this.props.keywordKey.length>0?`${this.props.keywordKey}:${e}`:e;n===this.props.activeMarker&&(a?Object(u.isUndefined)(t)||this.activateMarker(n,t):this.deactivateMarker())}focusOnKeyphraseField(e){const t=this.props.keywordKey,a=""===t?"focus-keyword-input-"+e:"yoast-keyword-input-"+t+"-"+e,n=document.getElementById(a);n.focus(),n.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}focusOnGooglePreviewField(e,t){let a;a="metaDescriptionKeyword"===e||"metaDescriptionLength"===e?"description":"titleWidth"===e||"keyphraseInSEOTitle"===e?"title":"slug";const n=document.getElementById("yoast-google-preview-"+a+"-"+t);n.focus(),n.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}handleEditButtonClick(e){let t=this.props.location;if("functionWordsInKeyphrase"!==e&&"keyphraseLength"!==e)if("sidebar"===t)t="modal",document.getElementById("yoast-google-preview-modal-open-button").click(),setTimeout(()=>this.focusOnGooglePreviewField(e,t),500);else{const a=document.getElementById("yoast-snippet-editor-metabox");a&&"false"===a.getAttribute("aria-expanded")?(a.click(),setTimeout(()=>this.focusOnGooglePreviewField(e,t),100)):this.focusOnGooglePreviewField(e,t)}else this.focusOnKeyphraseField(t)}removeMarkers(){window.YoastSEO.analysis.applyMarks(new d.Paper("",{}),[])}render(){const{mappedResults:e}=this.state,{errorsResults:t,improvementsResults:a,goodResults:n,considerationsResults:s,problemsResults:i}=e,{upsellResults:c,resultCategoryLabels:u}=this.props,d={errors:Object(o.__)("Errors","wordpress-seo"),problems:Object(o.__)("Problems","wordpress-seo"),improvements:Object(o.__)("Improvements","wordpress-seo"),considerations:Object(o.__)("Considerations","wordpress-seo"),goodResults:Object(o.__)("Good results","wordpress-seo")},p=Object.assign(d,u);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(l.ContentAnalysis,{errorsResults:t,problemsResults:i,upsellResults:c,improvementsResults:a,considerationsResults:s,goodResults:n,activeMarker:this.props.activeMarker,onMarkButtonClick:this.handleMarkButtonClick,onEditButtonClick:this.handleEditButtonClick,marksButtonClassName:this.props.marksButtonClassName,editButtonClassName:this.props.editButtonClassName,marksButtonStatus:this.props.marksButtonStatus,headingLevel:3,keywordKey:this.props.keywordKey,isPremium:this.props.isPremium,resultCategoryLabels:p,onResultChange:this.handleResultsChange}))}}h.propTypes={results:c.a.array,upsellResults:c.a.array,marksButtonClassName:c.a.string,editButtonClassName:c.a.string,marksButtonStatus:c.a.string,setActiveMarker:c.a.func.isRequired,setMarkerPauseStatus:c.a.func.isRequired,activeMarker:c.a.string,keywordKey:c.a.string,location:c.a.string,isPremium:c.a.bool,resultCategoryLabels:c.a.shape({errors:c.a.string,problems:c.a.string,improvements:c.a.string,considerations:c.a.string,goodResults:c.a.string})},h.defaultProps={results:null,upsellResults:[],marksButtonStatus:"enabled",marksButtonClassName:"",editButtonClassName:"",activeMarker:null,keywordKey:"",location:"",isPremium:!1,resultCategoryLabels:{}};var m=h;t.a=Object(s.compose)([Object(n.withSelect)(e=>{const{getActiveMarker:t,getIsPremium:a}=e("yoast-seo/editor");return{activeMarker:t(),isPremium:a()}}),Object(n.withDispatch)(e=>{const{setActiveMarker:t,setMarkerPauseStatus:a}=e("yoast-seo/editor");return{setActiveMarker:t,setMarkerPauseStatus:a}})])(m)},,,,,,,function(e,t){e.exports=window.yoast.analysisReport},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";a.r(t),a.d(t,"setTextdomainL10n",(function(){return r}));var n=a(1),s=a(4);function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wpseoYoastJSL10n";const a=Object(s.get)(window,[t,e,"locale_data",e],!1);"yoast-components"===e&&(e="wordpress-seo"),!1===a?Object(n.setLocaleData)({"":{}},e):Object(n.setLocaleData)(a,e)}},function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a(4),s=a(14);function r(){const e=Object(s.a)();return 1===Object(n.get)(e,"zapierConnectedStatus",0)}},function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a(4),s=a(14);function r(){const e=Object(s.a)();return 1===Object(n.get)(e,"zapierIntegrationActive",0)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";a.r(t);var n={};a.r(n),a.d(n,"doAjaxRequest",(function(){return D}));var s=a(19),r=a(91),o=a(62),i=a(41),c=a(14),l=a(197),u=a(198),d=a(66),p=a(58),h=a(64),m=a(0),b=a(2),g=a.n(b),f=a(44),y=a(35),w=a(11),v=a.n(w),O=a(7),j=a(10),k=a(50);const E=e=>{let{hiddenField:t,hiddenFieldImageId:a,hiddenFieldFallbackImageId:n,hasImageValidation:s,...r}=e;const[o,i]=Object(m.useState)(null!==document.getElementById(n)),c=Object(m.useMemo)(()=>document.getElementById(t)),l=Object(m.useMemo)(()=>document.getElementById(a));let u=null;u=n&&document.getElementById(n)?Object(m.useMemo)(()=>document.getElementById(n)):l;const[d,p]=Object(m.useState)({url:c?c.value:"",id:u?parseInt(u.value,10):"",alt:""}),[h,b]=Object(m.useState)([]),g=Object(m.useCallback)(e=>{c&&(c.value=e.url),u&&(u.value=e.id)}),f=Object(m.useCallback)(()=>Object(k.b)(e=>{u=l,p(e),g(e),s&&b(Object(j.validateFacebookImage)(e)),i(!1)}),[s,g]),y=Object(m.useCallback)(()=>{u=l;const e={url:"",id:"",alt:""};p(e),g(e),b([]),i(!0)},[g]);return Object(m.useEffect)(()=>{d.id&&!d.alt&&Object(k.a)(d.id).then(e=>p(e))},[d]),Object(m.createElement)(O.ImageSelect,v()({},r,{usingFallback:o,imageUrl:d.url,imageId:d.id,imageAltText:d.alt,onClick:f,onRemoveImageClick:y,warnings:h}))};E.propTypes={hiddenField:g.a.string.isRequired,hiddenFieldImageId:g.a.string,hiddenFieldFallbackImageId:g.a.string,hasImageValidation:g.a.bool},E.defaultProps={hiddenFieldImageId:"",hiddenFieldFallbackImageId:"",hasImageValidation:!1};var R=E,x=a(72);function T(e){let{target:t,label:a,hasPreview:n,hiddenField:s,hiddenFieldImageId:r,hiddenFieldFallbackImageId:o,selectImageButtonId:i,replaceImageButtonId:c,removeImageButtonId:l,hasNewBadge:u,isDisabled:d,hasPremiumBadge:p,hasImageValidation:h}=e;return Object(m.createElement)(x.a,{target:t},Object(m.createElement)(R,{label:a,hasPreview:n,hiddenField:s,hiddenFieldImageId:r,hiddenFieldFallbackImageId:o,selectImageButtonId:i,replaceImageButtonId:c,removeImageButtonId:l,hasNewBadge:u,isDisabled:d,hasPremiumBadge:p,hasImageValidation:h}))}T.propTypes={target:g.a.string.isRequired,label:g.a.string.isRequired,hasPreview:g.a.bool.isRequired,hiddenField:g.a.string.isRequired,hiddenFieldImageId:g.a.string,hiddenFieldFallbackImageId:g.a.string,selectImageButtonId:g.a.string,replaceImageButtonId:g.a.string,removeImageButtonId:g.a.string,hasNewBadge:g.a.bool,isDisabled:g.a.bool,hasPremiumBadge:g.a.bool,hasImageValidation:g.a.bool},T.defaultProps={hiddenFieldImageId:"",hiddenFieldFallbackImageId:"",selectImageButtonId:"",replaceImageButtonId:"",removeImageButtonId:"",hasNewBadge:!1,isDisabled:!1,hasPremiumBadge:!1,hasImageValidation:!1};var _=a(150),I=a(63),S=a(26),C=a(75),L=a(83),P=a(130),M=Object(P.a)(O.Alert),q=a(152),A=a(131),F=a(114);function D(e,t,a,n){return new Promise((s,r)=>{jQuery.ajax({type:e,url:t,beforeSend:a?e=>{e.setRequestHeader("X-WP-Nonce",a)}:null,data:n,dataType:"json",success:s,error:r})})}var N=a(110),K=a(73),B=a(196),H=a(87),W=a(70),$=a(86),U=a(102),z=a(93);window.yoast=window.yoast||{},window.yoast.editorModules={analysis:{getL10nObject:c.a,getContentLocale:o.a,getIndicatorForScore:i.a,isZapierConnected:l.a,isZapierIntegrationActive:u.a,constants:r,refreshAnalysis:d},components:{HelpLink:h.a,TopLevelProviders:C.a,higherorder:{withYoastSidebarPriority:e=>{const t=t=>{const{renderPriority:a,...n}=t;return Object(m.createElement)(e,n)};return t.propTypes={renderPriority:g.a.number},t}},contentAnalysis:{mapResults:p},contexts:{location:{LocationContext:s.LocationContext,LocationProvider:s.LocationProvider,LocationConsumer:s.LocationConsumer}},SidebarItem:S.a,SidebarCollapsible:I.a,MetaboxCollapsible:f.a,Modal:y.a,portals:{Portal:x.a,ImageSelectPortal:T,ScoreIconPortal:_.a}},containers:{EditorModal:L.a,PersistentDismissableAlert:M,Results:q.a,SEMrushRelatedKeyphrases:A.a,WincherSEOPerformance:F.a},helpers:{ajaxHelper:n,createInterpolateElement:K.a,createWatcher:N.b,isBlockEditor:H.a,i18n:B,replacementVariableHelpers:W,publishBox:{updateScore:U.updateScore,createScoresInPublishBox:U.createScoresInPublishBox,scrollToCollapsible:U.scrollToCollapsible},updateAdminBar:$.a,updateTrafficLight:z.a}}}]);
|