!function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=308)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.yoast.propTypes},function(e,t){e.exports=window.React},function(e,t){e.exports=window.lodash},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.yoast.uiLibrary},,function(e,t){e.exports=window.yoast.styledComponents},function(e,t){e.exports=window.yoast.componentsNew},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"";return Object(a.createInterpolateElement)(e,{a:Object(a.createElement)("a",{id:n,href:t,target:"_blank",rel:"noopener noreferrer"})})}},function(e,t,n){"use strict";n.d(t,"b",(function(){return l}));var a=n(10),r=n.n(a),s=n(0),o=n(2),i=n.n(o),c=n(20);const l="yoast yoast-gutenberg-modal",d=e=>{const{title:t,className:n,showYoastIcon:a,additionalClassName:o,...i}=e,l=a?Object(s.createElement)("span",{className:"yoast-icon"}):null;return Object(s.createElement)(c.Modal,r()({title:t,className:`${n} ${o}`,icon:l},i),e.children)};d.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},d.defaultProps={title:"Yoast SEO",className:l,showYoastIcon:!0,children:null,additionalClassName:""},t.a=d},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return o}));var a=n(28),r=n.n(a);async function s(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:200;try{const r=await e();return!!r&&(r.status===a?t(r):n(r))}catch(e){console.error(e.message)}}async function o(e){try{return await r()(e)}catch(e){return e.error&&e.status?e:e instanceof Response&&await e.json()}}},function(e,t,n){var a;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t{let{children:t}=e;return Object(a.createElement)("div",null,t)};o.propTypes={renderPriority:s.a.number.isRequired,children:s.a.node.isRequired},t.a=o},,,function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return o})),n.d(t,"e",(function(){return i})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return u}));var a=n(4),r=n(32);async function s(){return await Object(r.a)({path:"yoast/v1/wincher/authorization-url",method:"GET"})}async function o(){return await Object(r.a)({path:"yoast/v1/wincher/account/limit",method:"GET"})}async function i(){return await Object(r.a)({path:"yoast/v1/wincher/account/upgrade-campaign",method:"GET"})}async function c(e){const{code:t,websiteId:n}=e;return await Object(r.a)({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:t,websiteId:n}})}async function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3?arguments[3]:void 0;return await Object(r.a)({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:e,permalink:n,startAt:t},signal:a})}async function d(e){return Object(a.isArray)(e)||(e=[e]),await Object(r.a)({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:e}})}async function u(e){return await Object(r.a)({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:e}})}},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=i(n(3)),s=i(n(163)),o=i(n(166));function i(e){return e&&e.__esModule?e:{default:e}}var c=void 0;t.default=function(e){var t=e.mixedString,n=e.components,i=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":a(n))){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var l=(0,o.default)(t);try{return function e(t,n){var o,i,l,d,u,p,m,h,b=[],g={};for(p=0;p "+c);if("componentClose"===u.type)throw new Error("Missing opening component token: `"+u.value+"`");if("componentOpen"===u.type){o=n[u.value],l=p;break}b.push(n[u.value])}else b.push(u.value);return o&&(d=function(e,t){var n,a,r=t[e],s=0;for(a=e+1;a1&&void 0!==arguments[1]?arguments[1]:{};return a(window,"wordproofSdk.data"+(e?"."+e:""),t)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return l}));var a=n(4),r=n(19);const s=e=>Object(a.get)(window,"wordproofSdk.data"+(e?"."+e:""),{}),o=()=>{const e=Object(r.a)();return 1===Object(a.get)(e,"wordproofIntegrationActive",0)},i=e=>{const t=new CustomEvent(e);window.dispatchEvent(t)},c=()=>{i("wordproof:open_authentication")},l=()=>{i("wordproof:open_settings")}},,function(e,t,n){"use strict";var a=n(0),r=n(9),s=n(2),o=n.n(s);const i=e=>Object(a.createElement)("div",{className:"yoast components-panel__body"},Object(a.createElement)("h2",{className:"components-panel__body-title"},Object(a.createElement)("button",{id:e.id,onClick:e.onClick,className:"components-button components-panel__body-toggle",type:"button"},e.prefixIcon&&Object(a.createElement)("span",{className:"yoast-icon-span",style:{fill:""+(e.prefixIcon&&e.prefixIcon.color||"")}},Object(a.createElement)(r.SvgIcon,{size:e.prefixIcon.size,icon:e.prefixIcon.icon})),Object(a.createElement)("span",{className:"yoast-title-container"},Object(a.createElement)("div",{className:"yoast-title"},e.title),Object(a.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),e.children,e.suffixIcon&&Object(a.createElement)(r.SvgIcon,{size:e.suffixIcon.size,icon:e.suffixIcon.icon}),e.SuffixHeroIcon)));t.a=i,i.propTypes={onClick:o.a.func.isRequired,title:o.a.string.isRequired,id:o.a.string,subTitle:o.a.string,suffixIcon:o.a.object,SuffixHeroIcon:o.a.object,prefixIcon:o.a.object,children:o.a.node},i.defaultProps={id:"",suffixIcon:null,SuffixHeroIcon:null,prefixIcon:null,subTitle:"",children:null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(10),r=n.n(a),s=n(0),o=n(33),i=n.n(o),c=n(2),l=n.n(c);const d=e=>{let{className:t,...n}=e;return Object(s.createElement)("span",r()({className:i()("yst-grow yst-overflow-hidden yst-overflow-ellipsis yst-whitespace-nowrap yst-font-wp yst-text-[#555] yst-text-base yst-leading-[normal] yst-subpixel-antialiased yst-text-left",t)},n))};d.displayName="MetaboxButton.Text",d.propTypes={className:l.a.string},d.defaultProps={className:""};const u=e=>{let{className:t,...n}=e;return Object(s.createElement)("button",r()({type:"button",className:i()("yst-flex yst-items-center yst-w-full yst-pt-4 yst-pb-4 yst-pr-4 yst-pl-6 yst-space-x-2 yst-border-t yst-border-t-[rgb(0,0,0,0.2)] yst-rounded-none yst-transition-all hover:yst-bg-[#f0f0f0] focus:yst-outline focus:yst-outline-[1px] focus:yst-outline-[color:#0066cd] focus:-yst-outline-offset-1 focus:yst-shadow-[0_0_3px_rgba(8,74,103,0.8)]",t)},n))};u.propTypes={className:l.a.string},u.defaultProps={className:""},u.Text=d},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c}));var a=n(28),r=n.n(a),s=n(59);async function o(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:200;try{const r=await e();return!!r&&(r.status===a?t(r):n(r))}catch(e){}}async function i(e){try{return await r()(e)}catch(e){return e.error&&e.status?e:e instanceof window.Response&&await e.json()}}const c=async()=>await o(async()=>await Object(s.a)(),e=>e,()=>!1)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c}));var a=n(8),r=n.n(a),s=n(9),o=n(11);const i=r.a.div` min-width: 600px; @media screen and ( max-width: 680px ) { min-width: 0; width: 86vw; } `,c=r.a.div` @media screen and ( min-width: 600px ) { max-width: 420px; } `;r()(s.Icon)` float: ${Object(o.getDirectionalStyle)("right","left")}; margin: ${Object(o.getDirectionalStyle)("0 0 16px 16px","0 16px 16px 0")}; && { width: 150px; height: 150px; @media screen and ( max-width: 680px ) { width: 80px; height: 80px; } } `},function(e,t,n){"use strict";n.d(t,"g",(function(){return r})),n.d(t,"h",(function(){return s})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"i",(function(){return c})),n.d(t,"j",(function(){return l})),n.d(t,"c",(function(){return d})),n.d(t,"f",(function(){return u})),n.d(t,"e",(function(){return p})),n.d(t,"k",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"p",(function(){return b})),n.d(t,"q",(function(){return g})),n.d(t,"l",(function(){return f})),n.d(t,"r",(function(){return y})),n.d(t,"s",(function(){return O})),n.d(t,"t",(function(){return w})),n.d(t,"o",(function(){return j})),n.d(t,"n",(function(){return E})),n.d(t,"m",(function(){return v}));var a=n(11);const r="SNIPPET_EDITOR_SWITCH_MODE",s="SNIPPET_EDITOR_UPDATE_DATA",o="SNIPPET_EDITOR_FIND_CUSTOM_FIELDS",i="SNIPPET_EDITOR_CUSTOM_FIELD_RESULTS",c="SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLE",l="SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLES_BATCH",d="SNIPPET_EDITOR_HIDE_REPLACEMENT_VARIABLES",u="SNIPPET_EDITOR_REMOVE_REPLACEMENT_VARIABLE",p="SNIPPET_EDITOR_REFRESH",m="SNIPPET_EDITOR_UPDATE_WORDS_TO_HIGHLIGHT",h="LOAD_SNIPPET_EDITOR_DATA";function b(e){return{type:r,mode:e}}function g(e){return{type:s,data:e}}function*f(e,t){const n=yield{type:o,query:e,postId:t};return{type:i,results:n}}function y(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const s="string"==typeof t?Object(a.decodeHTML)(t):t;return{type:c,name:e,value:s,label:n,hidden:r}}function O(e){return{type:l,updatedVariables:e}}function w(e){return{type:m,wordsToHighlight:e}}function j(e){return{type:u,name:e}}function E(){return{type:p,time:(new Date).getMilliseconds()}}function v(e){return{type:d,data:e}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(1);const r=()=>[Object(a.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */ Object(a.__)("%1$sAI%2$s: Better SEO titles and meta descriptions, faster.","wordpress-seo"),"",""),Object(a.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */ Object(a.__)("%1$sMultiple keywords%2$s: Rank higher for more searches.","wordpress-seo"),"",""),Object(a.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */ Object(a.__)("%1$sSuper fast%2$s internal linking suggestions.","wordpress-seo"),"",""),Object(a.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */ Object(a.__)("%1$sNo more broken links%2$s: Automatic redirect manager.","wordpress-seo"),"",""),Object(a.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */ Object(a.__)("%1$sAppealing social previews%2$s people actually want to click on.","wordpress-seo"),"",""),Object(a.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */ Object(a.__)("%1$s24/7 support%2$s: Also on evenings and weekends.","wordpress-seo"),"","")]},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return d}));var a=n(4),r=n(11),s=n(23);const o=e=>({type:e.subtype,width:e.width,height:e.height,url:e.url,id:e.id,sizes:e.sizes,alt:e.alt||e.title||e.name});function i(e){return new Promise((t,n)=>{window.wp.media.attachment||n(),window.wp.media.attachment(e).fetch().then(e=>{t(o(e))}).catch(()=>n())})}function c(e){(function(e){const t=window.wp.media();return t.on("select",()=>{const n=t.state().get("selection").first();e(o(n.attributes))}),t})(e).open()}const l=e=>{const{width:t,height:n}=e,a=Object(s.determineFacebookImageMode)({width:t,height:n}),o=s.FACEBOOK_IMAGE_SIZES[a+"Width"],i=s.FACEBOOK_IMAGE_SIZES[a+"Height"],c=Object.values(e.sizes).find(e=>e.width>=o&&e.height>=i);return{url:c?c.url:e.url,id:e.id,warnings:Object(r.validateFacebookImage)(e),alt:e.alt||""}},d=e=>{const t="summary"!==Object(a.get)(window,"wpseoScriptData.metabox.twitterCardType")?"landscape":"square",n=s.TWITTER_IMAGE_SIZES[t+"Width"],o=s.TWITTER_IMAGE_SIZES[t+"Height"],i=Object.values(e.sizes).find(e=>e.width>=n&&e.height>=o);return{url:i?i.url:e.url,id:e.id,warnings:Object(r.validateTwitterImage)(e),alt:e.alt||""}}},function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"f",(function(){return s})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return c})),n.d(t,"g",(function(){return l})),n.d(t,"c",(function(){return d}));var a=n(51);const r=async e=>{const{state:t,code:n}=e;return await Object(a.a)({path:"wordproof/v1/oauth/authenticate",method:"POST",data:{state:t,code:n}})},s=async e=>{const{settings:t}=e;return await Object(a.a)({path:"wordproof/v1/settings",method:"POST",data:{settings:t}})},o=async()=>await Object(a.a)({path:"wordproof/v1/oauth/destroy",method:"POST"}),i=async()=>await Object(a.a)({path:"wordproof/v1/settings",method:"GET"}),c=async()=>await Object(a.a)({path:"wordproof/v1/authentication",method:"GET"}),l=async e=>Object(a.a)({path:`wordproof/v1/posts/${e}/timestamp`,method:"POST"}),d=async e=>Object(a.a)({path:`wordproof/v1/posts/${e}/timestamp/transaction/latest`,method:"GET"})},,function(e,t,n){"use strict";var a=n(0),r=n(5),s=n(11),o=n(2),i=n.n(o),c=n(8),l=n.n(c),d=n(1);const u=l.a.div` padding: 25px 32px 32px; color: #303030; `,p=l.a.ul` margin: 0; padding: 0; li { list-style-image: var(--yoast-svg-icon-check); margin: 0.5rem 0 0 1.5rem; line-height: 1.4em; &::marker { font-size: 1.5rem; } } `,m=l.a.span` display: block; margin-top: 4px; `,h=l.a.h2` margin-top: 0; margin-bottom: 0.25rem; color: #303030; font-size: 0.8125rem; font-weight: 600; `,b=l.a.p` display: block; margin: 0.25rem 0 1rem 0 !important; max-width: 420px; `,g=l.a.hr` margin-top: 1.5rem; margin-bottom: 1rem; border-top: 0; border-bottom: 1px solid #E2E8F0; `,f=l.a.div` text-align: center; `,y=l.a.a` width: 100%; `,O=Object(s.makeOutboundLink)(y);class w extends a.Component{constructor(e){super(e),this.state={defaultPrice:"99"}}createBenefitsList(e){return e.length>0&&Object(a.createElement)(p,{role:"list"},e.map((e,t)=>Object(a.createElement)("li",{key:"upsell-benefit-"+t},Object(a.createInterpolateElement)(e,{strong:Object(a.createElement)("strong",null)}))))}render(){const e=Object(r.select)("yoast-seo/editor").isPromotionActive("black-friday-2023-promotion"),{defaultPrice:t}=this.state,n=e?"69.30":null,s=n||t;return Object(a.createElement)(a.Fragment,null,e&&Object(a.createElement)("div",{className:"yst-flex yst-justify-between yst-items-center yst-text-lg yst-content-between yst-bg-black yst-text-amber-300 yst-h-9 yst-border-amber-300 yst-border-y yst-border-x-0 yst-border-solid yst-px-6"},Object(a.createElement)("div",null,Object(d.__)("BLACK FRIDAY","wordpress-seo")),Object(a.createElement)("div",null,Object(d.__)("30% OFF","wordpress-seo"))),Object(a.createElement)(u,null,Object(a.createElement)(h,null,this.props.title),Object(a.createElement)(b,null,this.props.description),Object(a.createElement)(f,null,Object(a.createElement)(O,this.props.upsellButton,this.props.upsellButtonText,this.props.upsellButtonHasCaret&&Object(a.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})),Object(a.createElement)("div",{className:"yst-text-slate-600 yst-my-4"},n&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)("span",{className:"yst-text-slate-500 yst-line-through"},t)," "),Object(a.createElement)("span",{className:"yst-text-slate-900 yst-text-2xl yst-font-bold"},s)," ",Object(d.__)("$ USD / € EUR / £ GBP per year (ex. VAT)","wordpress-seo")),Object(a.createElement)(m,{id:this.props.upsellButton["aria-describedby"]},this.props.upsellButtonLabel)),Object(a.createElement)(g,null),Object(a.createElement)(h,null,this.props.benefitsTitle),this.createBenefitsList(this.props.benefits)))}}w.propTypes={title:i.a.node,benefits:i.a.array,benefitsTitle:i.a.node,description:i.a.node,upsellButton:i.a.object,upsellButtonText:i.a.string.isRequired,upsellButtonLabel:i.a.string,upsellButtonHasCaret:i.a.bool},w.defaultProps={title:null,description:null,benefits:[],benefitsTitle:null,upsellButton:{href:"",className:"button button-primary"},upsellButtonLabel:"",upsellButtonHasCaret:!0},t.a=w},,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"nonReplaceVars",(function(){return l})),n.d(t,"fillReplacementVariables",(function(){return d})),n.d(t,"handlePrefixes",(function(){return u})),n.d(t,"createLabelFromName",(function(){return p})),n.d(t,"pushNewReplaceVar",(function(){return m})),n.d(t,"replaceSpaces",(function(){return h})),n.d(t,"prepareCustomFieldForDispatch",(function(){return b})),n.d(t,"prepareCustomTaxonomyForDispatch",(function(){return g})),n.d(t,"mapCustomTaxonomies",(function(){return f})),n.d(t,"mapCustomFields",(function(){return y})),n.d(t,"excerptFromContent",(function(){return O})),n.d(t,"applyReplaceUsingPlugin",(function(){return w}));var a=n(4),r=n(119),s=n(53),o=n(30),i=n(11);const{stripHTMLTags:c}=i.strings,l=["slug","content","contentImage","snippetPreviewImageURL"];function d(e,t){Object(a.forEach)(e,(e,n)=>{l.includes(n)||t.dispatch(Object(s.r)(n,e))})}function u(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=u(e),Object(o.b)(e)}function m(e,t){return e.push({name:t.name,label:t.label||p(t.name),value:t.value}),e}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e.replace(/\s/g,t)}function b(e){return{name:"cf_"+h(e),label:Object(o.b)(e+" (custom field)")}}function g(e){const t=h(e);return{name:"ct_"+t,label:Object(o.b)(e+" (custom taxonomy)"),descriptionName:"ct_desc_"+t,descriptionLabel:Object(o.b)(e+" description (custom taxonomy)")}}function f(e,t){if(!e.custom_taxonomies)return e;const n={};return Object(a.forEach)(e.custom_taxonomies,(e,t)=>{const{name:a,label:r,descriptionName:s,descriptionLabel:o}=g(t),c="string"==typeof e.name?Object(i.decodeHTML)(e.name):e.name,l="string"==typeof e.description?Object(i.decodeHTML)(e.description):e.description;n[a]={value:c,label:r},n[s]={value:l,label:o}}),t.dispatch(Object(s.s)(n)),Object(a.omit)({...e},"custom_taxonomies")}function y(e,t){return e.custom_fields?(Object(a.forEach)(e.custom_fields,(e,n)=>{const{name:a,label:r}=b(n);t.dispatch(Object(s.r)(a,e,r))}),Object(a.omit)({...e},"custom_fields")):e}function O(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:156;return(e=(e=Object(r.stripTags)(e)).trim()).length<=t||(e=e.substring(0,t),/\s/.test(e)&&(e=e.substring(0,e.lastIndexOf(" ")))),e}const w=function(e){const t=Object(a.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!Object(a.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){const t=Object(a.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],a.identity);return{url:e.url,title:c(t(e.title)),description:c(t(e.description)),filteredSEOTitle:e.filteredSEOTitle?c(t(e.filteredSEOTitle)):""}}(e);const n=t._applyModifications.bind(t);return{url:e.url,title:c(n("data_page_title",e.title)),description:c(n("data_meta_desc",e.description)),filteredSEOTitle:e.filteredSEOTitle?c(n("data_page_title",e.filteredSEOTitle)):""}}},,function(e,t){e.exports=window.yoast.externals.components},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(4),r=n(19);function s(){const e=Object(r.a)();return Object(a.get)(e,"contentLocale","en_US")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(18),r=n(0),s=n(21);function o(){return Object(a.createHigherOrderComponent)((function(e){return Object(a.pure)((function(t){const n=Object(r.useContext)(s.LocationContext);return Object(r.createElement)(e,{...t,location:n})}))}),"withLocation")}},function(e,t,n){"use strict";var a=n(17),r=n(11),s=n(8),o=n.n(s);const i=Object(r.makeOutboundLink)(o.a.a` display: inline-block; position: relative; outline: none; text-decoration: none; border-radius: 100%; width: 24px; height: 24px; margin: -4px 0; vertical-align: middle; color: ${a.colors.$color_help_text}; &:hover, &:focus { color: ${a.colors.$color_snippet_focus}; } // Overwrite the default blue active color for links. &:active { color: ${a.colors.$color_help_text}; } &::before { position: absolute; top: 0; left: 0; padding: 2px; content: "\f223"; } `);t.a=i},function(e,t,n){"use strict";var a=n(10),r=n.n(a),s=n(0),o=n(9),i=n(8);const c=n.n(i)()(o.Collapsible)` h2 > button { padding-left: 24px; padding-top: 16px; &:hover { background-color: #f0f0f0; } } div[class^="collapsible_content"] { padding: 24px 0; margin: 0 24px; border-top: 1px solid rgba(0,0,0,0.2); } `;t.a=e=>Object(s.createElement)(c,r()({hasPadding:!0,hasSeparator:!0},e))},,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var a=n(14),r=n(4);function s(e,t){return e._properties.position.startOffset>t.length||e._properties.position.endOffset>t.length}function o(e,t,n){const o=e.dom;let i=e.getContent();if(i=a.markers.removeMarks(i),Object(r.isEmpty)(n))return void e.setContent(i);i=n[0].hasPosition()?function(e,t){if(!t)return"";for(let n=(e=Object(r.orderBy)(e,e=>e._properties.position.startOffset,["asc"])).length-1;n>=0;n--){const a=e[n];s(a,t)||(t=a.applyWithPosition(t))}return t}(n,i):function(e,t,n,s){const{fieldsToMark:o,selectedHTML:i}=a.languageProcessing.getFieldsToMark(n,s);return Object(r.forEach)(n,(function(t){"acf_content"!==e.id&&(t._properties.marked=a.languageProcessing.normalizeHTML(t._properties.marked),t._properties.original=a.languageProcessing.normalizeHTML(t._properties.original)),o.length>0?i.forEach(e=>{const n=t.applyWithReplace(e);s=s.replace(e,n)}):s=t.applyWithReplace(s)})),s}(e,0,n,i),e.setContent(i),function(e){let t=e.getContent();t=t.replace(new RegExp("<yoastmark.+?>","g"),"").replace(new RegExp("</yoastmark>","g"),""),e.setContent(t)}(e);const c=o.select("yoastmark");Object(r.forEach)(c,(function(e){e.setAttribute("data-mce-bogus","1")}))}function i(e){return window.test=e,o.bind(null,e)}function c(e){return-1!==e.getContent({format:"raw"}).indexOf("/g;function l(e,t,n,a,r){return{element:e,tokenStart:t,tokenLength:n,prevOffset:a,leadingTextStart:r,children:[]}}function d(){const e=r.length-s;0!==e&&o.push(r.substr(s,e))}function u(e){const{element:t,tokenStart:n,tokenLength:s,prevOffset:o,children:c}=e,l=i[i.length-1],d=r.substr(l.prevOffset,n-l.prevOffset);d&&l.children.push(d),l.children.push(Object(a.cloneElement)(t,null,...c)),l.prevOffset=o||n+s}function p(e){const t=function(){const e=c.exec(r);if(null===e)return["no-more-tokens"];const t=e.index,[n,a,s,o]=e,i=n.length;return o?["self-closed",s,t,i]:a?["closer",s,t,i]:["opener",s,t,i]}(),[n,p,m,h]=t,b=i.length,g=m>s?s:null;if(!e[p])return d(),!1;switch(n){case"no-more-tokens":if(0!==b){const{leadingTextStart:e,tokenStart:t}=i.pop();o.push(r.substr(e,t))}return d(),!1;case"self-closed":return 0===b?(null!==g&&o.push(r.substr(g,m-g)),o.push(e[p]),s=m+h,!0):(u(l(e[p],m,h)),s=m+h,!0);case"opener":return i.push(l(e[p],m,h,m+h,g)),s=m+h,!0;case"closer":if(1===b)return function(e){const{element:t,leadingTextStart:n,prevOffset:s,tokenStart:c,children:l}=i.pop(),d=e?r.substr(s,e-s):r.substr(s);d&&l.push(d),null!==n&&o.push(r.substr(n,c-n)),o.push(Object(a.cloneElement)(t,null,...l))}(m),s=m+h,!0;const t=i.pop(),n=r.substr(t.prevOffset,m-t.prevOffset);t.children.push(n),t.prevOffset=m+h;const c=l(t.element,t.tokenStart,t.tokenLength,m+h);return c.children=t.children,u(c),s=m+h,!0;default:return d(),!1}}t.a=(e,t)=>{if(r=e,s=0,o=[],i=[],c.lastIndex=0,!(e=>{const t="object"==typeof e,n=t&&Object.values(e);return t&&n.length&&n.every(e=>Object(a.isValidElement)(e))})(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(p(t));return Object(a.createElement)(a.Fragment,null,...o)}},function(e,t){e.exports=window.yoast.replacementVariableEditor},function(e,t,n){"use strict";var a=n(0),r=n(2),s=n.n(r),o=n(8),i=n(21);const c=e=>{let{theme:t,location:n,children:r}=e;return Object(a.createElement)(i.LocationProvider,{value:n},Object(a.createElement)(o.ThemeProvider,{theme:t},r))};c.propTypes={theme:s.a.object.isRequired,location:s.a.oneOf(["sidebar","metabox","modal"]).isRequired,children:s.a.element.isRequired},t.a=c},function(e,t,n){"use strict";var a=n(0),r=n(2),s=n.n(r),o=n(1);const i=e=>{let{data:t,mapChartDataToTableData:n,dataTableCaption:r,dataTableHeaderLabels:s,isDataTableVisuallyHidden:i}=e;return t.length!==s.length?Object(a.createElement)("p",null,Object(o.__)("The number of headers and header labels don't match.","wordpress-seo")):Object(a.createElement)("div",{className:i?"screen-reader-text":null},Object(a.createElement)("table",null,Object(a.createElement)("caption",null,r),Object(a.createElement)("thead",null,Object(a.createElement)("tr",null,s.map((e,t)=>Object(a.createElement)("th",{key:t},e)))),Object(a.createElement)("tbody",null,Object(a.createElement)("tr",null,t.map((e,t)=>Object(a.createElement)("td",{key:t},n(e.y)))))))};i.propTypes={data:s.a.arrayOf(s.a.shape({x:s.a.number,y:s.a.number})).isRequired,mapChartDataToTableData:s.a.func,dataTableCaption:s.a.string.isRequired,dataTableHeaderLabels:s.a.array.isRequired,isDataTableVisuallyHidden:s.a.bool},i.defaultProps={mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};var c=i;const l=e=>{let{data:t,width:n,height:r,fillColor:s,strokeColor:o,strokeWidth:i,className:l,mapChartDataToTableData:d,dataTableCaption:u,dataTableHeaderLabels:p,isDataTableVisuallyHidden:m}=e;const h=Math.max(1,Math.max(...t.map(e=>e.x))),b=Math.max(1,Math.max(...t.map(e=>e.y))),g=r-i,f=t.map(e=>`${e.x/h*n},${g-e.y/b*g+i}`).join(" "),y=`0,${g+i} `+f+` ${n},${g+i}`;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("svg",{width:n,height:r,viewBox:`0 0 ${n} ${r}`,className:l,role:"img","aria-hidden":"true",focusable:"false"},Object(a.createElement)("polygon",{fill:s,points:y}),Object(a.createElement)("polyline",{fill:"none",stroke:o,strokeWidth:i,strokeLinejoin:"round",strokeLinecap:"round",points:f})),d&&Object(a.createElement)(c,{data:t,mapChartDataToTableData:d,dataTableCaption:u,dataTableHeaderLabels:p,isDataTableVisuallyHidden:m}))};l.propTypes={data:s.a.arrayOf(s.a.shape({x:s.a.number,y:s.a.number})).isRequired,width:s.a.number.isRequired,height:s.a.number.isRequired,fillColor:s.a.string,strokeColor:s.a.string,strokeWidth:s.a.number,className:s.a.string,mapChartDataToTableData:s.a.func,dataTableCaption:s.a.string.isRequired,dataTableHeaderLabels:s.a.array.isRequired,isDataTableVisuallyHidden:s.a.bool},l.defaultProps={fillColor:null,strokeColor:"#000000",strokeWidth:1,className:"",mapChartDataToTableData:null,isDataTableVisuallyHidden:!0},t.a=l},,function(e,t,n){"use strict";var a=n(3);const r=a.forwardRef((function(e,t){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),a.createElement("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"}))}));t.a=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n(1),s=n(2),o=n.n(s),i=n(121);const c=e=>{let{children:t,id:n,hasIcon:s=!0,title:o,image:i=null,isAlertDismissed:c,onDismissed:l}=e;return c?null:Object(a.createElement)("div",{id:n,className:"notice-yoast yoast is-dismissible"},Object(a.createElement)("div",{className:"notice-yoast__container"},Object(a.createElement)("div",null,Object(a.createElement)("div",{className:"notice-yoast__header"},s&&Object(a.createElement)("span",{className:"yoast-icon"}),Object(a.createElement)("h2",{className:"notice-yoast__header-heading"},o)),Object(a.createElement)("p",null,t)),i&&Object(a.createElement)(i,{height:"60"})),Object(a.createElement)("button",{type:"button",className:"notice-dismiss",onClick:l},Object(a.createElement)("span",{className:"screen-reader-text"},/* translators: Hidden accessibility text. */ Object(r.__)("Dismiss this notice.","wordpress-seo"))))};c.propTypes={children:o.a.node.isRequired,id:o.a.string.isRequired,hasIcon:o.a.bool,title:o.a.any.isRequired,image:o.a.elementType,isAlertDismissed:o.a.bool.isRequired,onDismissed:o.a.func.isRequired},t.b=Object(i.a)(c)},,function(e,t,n){"use strict";var a=n(4);const r=Object(a.memoize)((e,t)=>0===e?a.noop:Object(a.debounce)(n=>t(n,e),500));t.a=r},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var a=n(8),r=n.n(a),s=n(17);const o=r.a.legend` margin: 16px 0; padding: 0; color: ${s.colors.$color_headings}; font-size: 12px; font-weight: 300; `,i=r.a.legend` margin: 0 0 16px; padding: 0; color: ${s.colors.$color_headings}; font-size: 12px; font-weight: 300; `},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(10),r=n.n(a),s=n(0),o=n(2),i=n.n(o),c=n(5),l=n(86);const d=e=>{let{store:t="yoast-seo/editor",image:n=null,title:a,promoId:o,alertKey:i,children:d,...u}=e;return Object(c.select)(t).isPromotionActive(o)&&Object(s.createElement)(l.b,r()({alertKey:i,store:t,id:i,title:a,image:n},u),d)};d.propTypes={store:i.a.string,image:i.a.elementType,title:i.a.any.isRequired,promoId:i.a.string.isRequired,alertKey:i.a.string.isRequired,children:i.a.node}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return E}));var a=n(10),r=n.n(a),s=n(0),o=n(8),i=n.n(o),c=n(42),l=n.n(c),d=n(2),u=n.n(d),p=n(1),m=n(9),h=n(17),b=n(11),g=n(38);const f=i.a.p` color: ${h.colors.$color_pink_dark}; font-size: 14px; font-weight: 700; margin: 13px 0 10px; `,y=i()(m.SvgIcon)` margin-right: 5px; vertical-align: middle; `,O=i.a.button` position: absolute; top: 9px; right: 9px; border: none; background: none; cursor: pointer; `,w=i.a.p` font-size: 13px; font-weight: 500; margin: 10px 0 13px; `,j=i.a.div` position: relative; background: ${e=>e.isTitleShortened?"#F5F7F7":"transparent"}; border: 1px solid #C7C7C7; border-left: 4px solid${h.colors.$color_pink_dark}; padding: 0 16px; margin-bottom: 1.5em; `,E=e=>{const[t,n]=Object(s.useState)(null);return Object(s.useEffect)(()=>{e&&!t&&Object(g.b)().then(e=>n(e))},[t]),t};E.propTypes={limit:u.a.bool.isRequired};const v=e=>{let{limit:t,usage:n,isTitleShortened:a,isFreeAccount:r}=e;const o=Object(p.sprintf)( /* Translators: %1$s expands to the number of used keywords. * %2$s expands to the account keywords limit. */ Object(p.__)("Your are tracking %1$s out of %2$s keyphrases included in your free account.","wordpress-seo"),n,t),i=Object(p.sprintf)( /* Translators: %1$s expands to the number of used keywords. * %2$s expands to the account keywords limit. */ Object(p.__)("Your are tracking %1$s out of %2$s keyphrases included in your account.","wordpress-seo"),n,t),c=r?o:i,l=Object(p.sprintf)( /* Translators: %1$s expands to the number of used keywords. * %2$s expands to the account keywords limit. */ Object(p.__)("Keyphrases tracked: %1$s/%2$s","wordpress-seo"),n,t),d=a?l:c;return Object(s.createElement)(f,null,a&&Object(s.createElement)(y,{icon:"exclamation-triangle",color:h.colors.$color_pink_dark,size:"14px"}),d)};v.propTypes={limit:u.a.number.isRequired,usage:u.a.number.isRequired,isTitleShortened:u.a.bool,isFreeAccount:u.a.bool};const _=Object(b.makeOutboundLink)(),k=e=>{let{discount:t,months:n}=e;const a=Object(s.createElement)(_,{href:wpseoAdminGlobalL10n["links.wincher.upgrade"],style:{fontWeight:600}},Object(p.sprintf)(/* Translators: %s : Expands to "Wincher". */ Object(p.__)("Click here to upgrade your %s plan","wordpress-seo"),"Wincher"));if(!t||!n)return Object(s.createElement)(w,null,a);const r=100*t,o=Object(p.sprintf)( /* Translators: %1$s expands to upgrade account link. * %2$s expands to the upgrade discount value. * %3$s expands to the upgrade discount duration e.g. 2 months. */ Object(p.__)("%1$s and get an exclusive %2$s discount for %3$s month(s).","wordpress-seo"),"{{wincherAccountUpgradeLink/}}",r+"%",n);return Object(s.createElement)(w,null,l()({mixedString:o,components:{wincherAccountUpgradeLink:a}}))};k.propTypes={discount:u.a.number,months:u.a.number};const T=e=>{let{onClose:t,isTitleShortened:n,trackingInfo:a}=e;const o=(()=>{const[e,t]=Object(s.useState)(null);return Object(s.useEffect)(()=>{e||Object(g.e)().then(e=>t(e))},[e]),e})();if(null===a)return null;const{limit:i,usage:c}=a;if(!(i&&c/i>=.8))return null;const l=Boolean(null==o?void 0:o.discount);return Object(s.createElement)(j,{isTitleShortened:n},t&&Object(s.createElement)(O,{type:"button","aria-label":Object(p.__)("Close the upgrade callout","wordpress-seo"),onClick:t},Object(s.createElement)(m.SvgIcon,{icon:"times-circle",color:h.colors.$color_pink_dark,size:"14px"})),Object(s.createElement)(v,r()({},a,{isTitleShortened:n,isFreeAccount:l})),Object(s.createElement)(k,{discount:null==o?void 0:o.discount,months:null==o?void 0:o.months}))};T.propTypes={onClose:u.a.func,isTitleShortened:u.a.bool,trackingInfo:u.a.object},t.a=T},,function(e,t,n){"use strict";n.d(t,"b",(function(){return u}));var a=n(0),r=n(1),s=n(31),o=n(2),i=n.n(o),c=n(4),l=n(49),d=n(21);const u=e=>{let t=!0;if("blur"===(null==e?void 0:e.type)){const{relatedTarget:n}=e;if(n){const e=["media-modal","wp-core-ui"];t=Object(c.intersection)(e,Array.from(n.classList)).length!==e.length}}return t},p=e=>{let{id:t,postTypeName:n,children:o,title:i,isOpen:c,close:p,open:m,shouldCloseOnClickOutside:h,showChangesWarning:b,SuffixHeroIcon:g}=e;const f=Object(a.useCallback)(e=>{u(e)&&p()},[p]);return Object(a.createElement)(a.Fragment,null,c&&Object(a.createElement)(d.LocationProvider,{value:"modal"},Object(a.createElement)(s.a,{title:i,onRequestClose:f,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal",id:"id",shouldCloseOnClickOutside:h},Object(a.createElement)("div",{className:"yoast-content-container"},Object(a.createElement)("div",{className:"yoast-modal-content"},o)),Object(a.createElement)("div",{className:"yoast-notice-container"},Object(a.createElement)("hr",null),Object(a.createElement)("div",{className:"yoast-button-container"},b&&Object(a.createElement)("p",null,/* Translators: %s translates to the Post Label in singular form */ Object(r.sprintf)(Object(r.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),n)),Object(a.createElement)("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:f},/* Translators: %s translates to the Post Label in singular form */ Object(r.sprintf)(Object(r.__)("Return to your %s","wordpress-seo"),n)))))),Object(a.createElement)(l.a,{id:t+"-open-button",title:i,SuffixHeroIcon:g,suffixIcon:g?null:{size:"20px",icon:"pencil-square"},onClick:m}))};p.propTypes={id:i.a.string.isRequired,postTypeName:i.a.string.isRequired,children:i.a.oneOfType([i.a.node,i.a.arrayOf(i.a.node)]).isRequired,title:i.a.string.isRequired,isOpen:i.a.bool.isRequired,open:i.a.func.isRequired,close:i.a.func.isRequired,shouldCloseOnClickOutside:i.a.bool,showChangesWarning:i.a.bool,SuffixHeroIcon:i.a.object},p.defaultProps={shouldCloseOnClickOutside:!0,showChangesWarning:!0},t.a=p},function(e,t){e.exports=window.yoast.featureFlag},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a,r,s=n(3);function o(){return(o=Object.assign||function(e){for(var t=1;tObject(a.createElement)("p",{className:"yoast-wincher-seo-performance-modal__loading-message"},Object(o.__)("Tracking the ranking position...","wordpress-seo")," ",Object(a.createElement)(d.SvgIcon,{icon:"loading-spinner"})),m=n(8),h=n.n(m);const b=h()(d.SvgIcon)` margin-left: 2px; flex-shrink: 0; rotate: ${e=>e.isImproving?"-90deg":"90deg"}; `,g=h.a.span` color: ${e=>e.isImproving?"#69AB56":"#DC3332"}; font-size: 13px; font-weight: 600; line-height: 20px; margin-right: 2px; margin-left: 12px; `,f=h.a.td` padding-right: 0 !important; & > div { margin: 0px; } `,y=h.a.td` padding-left: 2px !important; `,O=h.a.td.attrs({className:"yoast-table--nopadding"})` & > div { justify-content: center; } `,w=h.a.div` display: flex; align-items: center; & > a { box-sizing: border-box; } `,j=h.a.button` background: none; color: inherit; border: none; padding: 0; font: inherit; cursor: pointer; outline: inherit; display: flex; align-items: center; `,E=h.a.tr` background-color: ${e=>e.isEnabled?"#FFFFFF":"#F9F9F9"} !important; `;function v(e){return Math.round(100*e)}function _(e){let{chartData:t}=e;if(Object(i.isEmpty)(t)||Object(i.isEmpty)(t.position))return"?";const n=function(e){return Array.from({length:e.position.history.length},(e,t)=>t+1).map(e=>Object(o.sprintf)(Object(o._n)("%d day","%d days",e,"wordpress-seo"),e))}(t),r=t.position.history.map((e,t)=>({x:t,y:101-e.value}));return Object(a.createElement)(u.a,{width:66,height:24,data:r,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",mapChartDataToTableData:v,dataTableCaption:Object(o.__)("Keyphrase position in the last 90 days on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:n})}function k(e){return!e||!e.position||e.position.value>100?"> 100":e.position.value}_.propTypes={chartData:s.a.object},_.defaultProps={chartData:{}};const T=e=>{var t;let{rowData:n}=e;if(null==n||null===(t=n.position)||void 0===t||!t.change)return Object(a.createElement)(_,{chartData:n});const r=n.position.change<0;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(_,{chartData:n}),Object(a.createElement)(g,{isImproving:r},Math.abs(n.position.change)),Object(a.createElement)(b,{icon:"caret-right",color:r?"#69AB56":"#DC3332",size:"14px",isImproving:r}))};function x(e){var t;const{keyphrase:n,rowData:r,onTrackKeyphrase:s,onUntrackKeyphrase:c,isFocusKeyphrase:u,isDisabled:m,isLoading:h,isSelected:b,onSelectKeyphrases:g}=e,v=!Object(i.isEmpty)(r),_=!Object(i.isEmpty)(null==r||null===(t=r.position)||void 0===t?void 0:t.history),x=Object(a.useCallback)(()=>{m||(v?c(n,r.id):s(n))},[n,s,c,v,r,m]),C=Object(a.useCallback)(()=>{g(e=>b?e.filter(e=>e!==n):e.concat(n))},[g,b,n]);return Object(a.createElement)(E,{isEnabled:v},Object(a.createElement)(f,null,_&&Object(a.createElement)(d.Checkbox,{id:"select-"+n,onChange:C,checked:b,label:""})),Object(a.createElement)(y,null,n,u&&Object(a.createElement)("span",null,"*")),function(e){const{rowData:t,websiteId:n,keyphrase:r,onSelectKeyphrases:s}=e,c=Object(a.useCallback)(()=>{s([r])},[s,r]),u=!Object(i.isEmpty)(t),m=t&&t.updated_at&&l()(t.updated_at)>=l()().subtract(7,"days"),h=t?Object(o.sprintf)("https://app.wincher.com/websites/%s/keywords?serp=%s&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast",n,t.id):null;return u?m?Object(a.createElement)(a.Fragment,null,Object(a.createElement)("td",null,Object(a.createElement)(w,null,k(t),Object(a.createElement)(d.ButtonStyledLink,{variant:"secondary",href:h,style:{height:28,marginLeft:12},rel:"noopener",target:"_blank"},Object(o.__)("View","wordpress-seo")))),Object(a.createElement)("td",{className:"yoast-table--nopadding"},Object(a.createElement)(j,{type:"button",onClick:c},Object(a.createElement)(T,{rowData:t}))),Object(a.createElement)("td",null,(b=t.updated_at,l()(b).fromNow()))):Object(a.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},Object(a.createElement)(p,null)):Object(a.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},Object(a.createElement)("i",null,Object(o.__)("Activate tracking to show the ranking position","wordpress-seo")));var b}(e),Object(a.createElement)(O,null,function(e){let{keyphrase:t,isEnabled:n,toggleAction:r,isLoading:s}=e;return s?Object(a.createElement)(d.SvgIcon,{icon:"loading-spinner"}):Object(a.createElement)(d.Toggle,{id:"toggle-keyphrase-tracking-"+t,className:"wincher-toggle",isEnabled:n,onSetToggleState:r,showToggleStateLabel:!1})}({keyphrase:n,isEnabled:v,toggleAction:x,isLoading:h})))}T.propTypes={rowData:s.a.object},x.propTypes={rowData:s.a.object,keyphrase:s.a.string.isRequired,onTrackKeyphrase:s.a.func,onUntrackKeyphrase:s.a.func,isFocusKeyphrase:s.a.bool,isDisabled:s.a.bool,isLoading:s.a.bool,websiteId:s.a.string,isSelected:s.a.bool.isRequired,onSelectKeyphrases:s.a.func.isRequired},x.defaultProps={rowData:{},onTrackKeyphrase:()=>{},onUntrackKeyphrase:()=>{},isFocusKeyphrase:!1,isDisabled:!1,isLoading:!1,websiteId:""}},,,,function(e,t,n){"use strict";function a(e){return function(){return e}}var r=function(){};r.thatReturns=a,r.thatReturnsFalse=a(!1),r.thatReturnsTrue=a(!0),r.thatReturnsNull=a(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));class a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.url=e,this.origin=new URL(e).origin,this.eventHandlers=Object.assign({success:{type:"",callback:()=>{}},error:{type:"",callback:()=>{}}},t),this.options=Object.assign({height:570,width:340,title:""},n),this.popup=null,this.createPopup=this.createPopup.bind(this),this.messageHandler=this.messageHandler.bind(this),this.getPopup=this.getPopup.bind(this)}createPopup(){const{height:e,width:t,title:n}=this.options,a=["top="+(window.top.outerHeight/2+window.top.screenY-e/2),"left="+(window.top.outerWidth/2+window.top.screenX-t/2),"width="+t,"height="+e,"resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(this.url,n,a.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}async messageHandler(e){const{data:t,source:n,origin:a}=e;a===this.origin&&this.popup===n&&(t.type===this.eventHandlers.success.type&&(this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),await this.eventHandlers.success.callback(t)),t.type===this.eventHandlers.error.type&&(this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),await this.eventHandlers.error.callback(t)))}getPopup(){return this.popup}isClosed(){return!this.popup||this.popup.closed}focus(){this.isClosed()||this.popup.focus()}}},function(e,t,n){"use strict";var a=n(0),r=n(2),s=n.n(r),o=n(1),i=n(42),c=n.n(i),l=n(9);const d=e=>{const t=Object(o.sprintf)(/* translators: %s expands to a link to open the Wincher login popup. */ Object(o.__)("It seems like something went wrong when retrieving your website's data. Please %s and try again.","wordpress-seo"),"{{reconnectToWincher/}}","Wincher");return Object(a.createElement)(l.Alert,{type:"error",className:e.className},c()({mixedString:t,components:{reconnectToWincher:Object(a.createElement)("a",{href:"#",onClick:t=>{t.preventDefault(),e.onReconnect()}},Object(o.sprintf)(/* translators: %s : Expands to "Wincher". */ Object(o.__)("reconnect to %s","wordpress-seo"),"Wincher"))}}))};d.propTypes={onReconnect:s.a.func.isRequired,className:s.a.string},d.defaultProps={className:""},t.a=d},function(e,t){e.exports=window.wp.sanitize},function(e,t,n){"use strict";var a=n(0),r=n(1),s=n(13),o=n(21),i=n(2),c=n.n(i),l=n(55),d=n(61);const u=Object(r.__)("Check your text on even more SEO criteria and get an enhanced keyphrase analysis, making it easier to optimize your content.","wordpress-seo"),p=e=>{const{locationContext:t}=Object(o.useRootContext)(),n=Object(s.addQueryArgs)(wpseoAdminL10n[e.buyLink],{context:t});return Object(a.createElement)(d.a,{title:Object(r.__)("Get more help with writing content that ranks","wordpress-seo"),description:e.description,benefitsTitle:/* translators: %s expands to 'Yoast SEO Premium'. */ Object(r.sprintf)("%s also gives you:","Yoast SEO Premium"),benefits:Object(l.a)(),upsellButtonText:Object(r.sprintf)(/* translators: %s expands to 'Yoast SEO Premium'. */ Object(r.__)("Unlock with %s","wordpress-seo"),"Yoast SEO Premium"),upsellButton:{href:n,className:"yoast-button-upsell",rel:null,"data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2","data-action":"load-nfd-ctb"},upsellButtonLabel:Object(r.__)("1 year of premium support and updates included!","wordpress-seo")})};p.propTypes={buyLink:c.a.string.isRequired,description:c.a.string},p.defaultProps={description:u},t.a=p},function(e,t,n){"use strict";var a=n(18),r=n(5);const s=Object(a.compose)([Object(r.withSelect)((e,t)=>{const{isAlertDismissed:n}=e(t.store||"yoast-seo/editor");return{isAlertDismissed:n(t.alertKey)}}),Object(r.withDispatch)((e,t)=>{const{dismissAlert:n}=e(t.store||"yoast-seo/editor");return{onDismissed:()=>n(t.alertKey)}})]);t.a=s},function(e,t,n){"use strict";var a=n(0),r=n(1),s=n(2),o=n.n(s),i=n(141),c=n(6);const l=e=>{let{link:t,text:n}=e;return Object(a.createElement)(c.Root,null,Object(a.createElement)("p",null,n),Object(a.createElement)(c.Button,{href:t,as:"a",className:"yst-gap-2 yst-mb-5 yst-mt-2",variant:"upsell",target:"_blank",rel:"noopener"},Object(a.createElement)(i.a,{className:"yst-w-4 yst-h-4 yst--ml-1 yst-shrink-0"}),Object(r.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */ Object(r.__)("Unlock with %1$s","wordpress-seo"),"Yoast WooCommerce SEO")))};l.propTypes={link:o.a.string.isRequired,text:o.a.string.isRequired},t.a=l},function(e,t,n){"use strict";var a=n(0),r=n(2),s=n.n(r),o=n(10),i=n.n(o),c=n(1),l=n(4),d=n(6),u=n(8),p=n.n(u),m=n(13),h=n(3),b=n.n(h);const g=p.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"}; `,f=e=>{const{siteUrl:t}=e;return Object(a.createElement)(h.Fragment,null,Object(a.createElement)("span",{className:"screen-reader-text"},t),Object(a.createElement)(g,{"aria-hidden":"true"},Object(a.createElement)("span",null,t)))};f.propTypes={siteUrl:s.a.string.isRequired};var y=f,O=n(23),w=n(17);const j=p.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; } `,E=p.a.img` &&{ height: 100%; position: absolute; width: 100%; object-fit: cover; } `,v=p.a.div` padding-bottom: ${e=>e.aspectRatio}%; `,_=e=>{const{imageProps:t,width:n,height:r,imageMode:s}=e;return"landscape"===s?Object(a.createElement)(v,{aspectRatio:t.aspectRatio},Object(a.createElement)(E,{src:t.src,alt:t.alt})):Object(a.createElement)(j,{src:t.src,alt:t.alt,width:n,height:r,imageProperties:t})};function k(e){return"Twitter"===e?O.TWITTER_IMAGE_SIZES:O.FACEBOOK_IMAGE_SIZES}function T(e){return new Promise((t,n)=>{const a=new Image;a.onload=()=>{t({width:a.width,height:a.height})},a.onerror=n,a.src=e})}function x(e,t,n){return"landscape"===n?{widthRatio:t.width/e.landscapeWidth,heightRatio:t.height/e.landscapeHeight}:"portrait"===n?{widthRatio:t.width/e.portraitWidth,heightRatio:t.height/e.portraitHeight}:{widthRatio:t.width/e.squareWidth,heightRatio:t.height/e.squareHeight}}function C(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 S(e,t,n){return"square"===n&&t.width===t.height?{width:e.squareWidth,height:e.squareHeight}:C(t,x(e,t,n))}async function R(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const a=await T(e);let r=n?"landscape":"square";"Facebook"===t&&(r=Object(O.determineFacebookImageMode)(a));const s=k(t),o=S(s,a,r);return{mode:r,height:o.height,width:o.width}}async function I(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{return{imageProperties:await R(e,t,n),status:"loaded"}}catch(e){return{imageProperties:null,status:"errored"}}}_.propTypes={imageProps:s.a.shape({src:s.a.string.isRequired,alt:s.a.string.isRequired,aspectRatio:s.a.number.isRequired}).isRequired,width:s.a.number.isRequired,height:s.a.number.isRequired,imageMode:s.a.string},_.defaultProps={imageMode:"landscape"};const L=p.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: ${w.colors.$color_white}; `,P=p.a.div` box-sizing: border-box; max-width: ${O.FACEBOOK_IMAGE_SIZES.landscapeWidth}px; height: ${O.FACEBOOK_IMAGE_SIZES.landscapeHeight}px; background-color: ${w.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 A extends h.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 I(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:O.FACEBOOK_IMAGE_SIZES.squareHeight+"px",width:O.FACEBOOK_IMAGE_SIZES.squareWidth+"px"};case"portrait":return{height:O.FACEBOOK_IMAGE_SIZES.portraitHeight+"px",width:O.FACEBOOK_IMAGE_SIZES.portraitWidth+"px"};case"landscape":return{height:O.FACEBOOK_IMAGE_SIZES.landscapeHeight+"px",width:O.FACEBOOK_IMAGE_SIZES.landscapeWidth+"px"}}}render(){const{imageProperties:e,status:t}=this.state;if("loading"===t||""===this.props.src||"errored"===t)return Object(a.createElement)(P,{onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},Object(c.__)("Select image","wordpress-seo"));const n=this.retrieveContainerDimensions(e.mode);return Object(a.createElement)(L,{mode:e.mode,dimensions:n,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onClick:this.props.onImageClick},Object(a.createElement)(_,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:O.FACEBOOK_IMAGE_SIZES.aspectRatio},width:e.width,height:e.height,imageMode:e.mode}))}}A.propTypes={src:s.a.string,alt:s.a.string,onImageLoaded:s.a.func,onImageClick:s.a.func,onMouseEnter:s.a.func,onMouseLeave:s.a.func},A.defaultProps={src:"",alt:"",onImageLoaded:l.noop,onImageClick:l.noop,onMouseEnter:l.noop,onMouseLeave:l.noop};var M=A,F=p.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; `,q=p.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 D=e=>{switch(e){case"landscape":return"527px";case"square":case"portrait":return"369px";default:return"476px"}},N=p.a.div` box-sizing: border-box; display: flex; flex-direction: ${e=>"landscape"===e.mode?"column":"row"}; background-color: #f2f3f5; max-width: 527px; `,W=p.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 B extends h.Component{constructor(e){super(e),this.state={imageMode:null,maxLineCount:0,descriptionLineCount:0},this.facebookTitleRef=b.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,n="landscape"===e?2:5;n!==t&&this.setState({maxLineCount:n})}maybeSetDescriptionLineCount(){const{descriptionLineCount:e,maxLineCount:t,imageMode:n}=this.state,a=this.getTitleLineCount();let r=t-a;"portrait"===n&&(r=5===a?0:4),r!==e&&this.setState({descriptionLineCount:r})}componentDidUpdate(){this.maybeSetMaxLineCount(),this.maybeSetDescriptionLineCount()}render(){const{imageMode:e,maxLineCount:t,descriptionLineCount:n}=this.state;return Object(a.createElement)(N,{id:"facebookPreview",mode:e},Object(a.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(a.createElement)(W,{mode:e},Object(a.createElement)(y,{siteUrl:this.props.siteUrl,mode:e}),Object(a.createElement)(F,{ref:this.facebookTitleRef,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,lineCount:t},this.props.title),n>0&&Object(a.createElement)(q,{maxWidth:D(e),onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,lineCount:n},this.props.description)))}}B.propTypes={siteUrl:s.a.string.isRequired,title:s.a.string.isRequired,description:s.a.string,imageUrl:s.a.string,imageFallbackUrl:s.a.string,alt:s.a.string,onSelect:s.a.func,onImageClick:s.a.func,onMouseHover:s.a.func},B.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{}};var z=B;const U=p.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; `,$=e=>Object(a.createElement)(U,null,Object(a.createElement)("span",null,e.siteUrl));$.propTypes={siteUrl:s.a.string.isRequired};var H=$;const K=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e?`\n\t\t\tmax-width: ${O.TWITTER_IMAGE_SIZES.landscapeWidth}px;\n\t\t\t${t?"border-bottom: 1px solid #E1E8ED;":""}\n\t\t\tborder-radius: 14px 14px 0 0;\n\t\t\t`:`\n\t\twidth: ${O.TWITTER_IMAGE_SIZES.squareWidth}px;\n\t\t${t?"border-right: 1px solid #E1E8ED;":""}\n\t\tborder-radius: 14px 0 0 14px;\n\t\t`},Y=p.a.div` position: relative; box-sizing: content-box; overflow: hidden; background-color: #e1e8ed; flex-shrink: 0; ${e=>K(e.isLarge)} `,V=p.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=>K(e.isLarge,!1)} `,G=p()(V)` ${e=>e.isLarge&&`height: ${O.TWITTER_IMAGE_SIZES.landscapeHeight}px;`} border-top-left-radius: 14px; ${e=>e.isLarge?"border-top-right-radius":"border-bottom-left-radius"}: 14px; border-style: dashed; border-width: 1px; // We're not using standard colors to increase contrast for accessibility. color: #006DAC; // We're not using standard colors to increase contrast for accessibility. background-color: #f1f1f1; text-decoration: underline; font-size: 14px; cursor: pointer; `;class Z extends b.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 I(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(a.createElement)(G,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},Object(c.__)("Select image","wordpress-seo")):Object(a.createElement)(Y,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},Object(a.createElement)(_,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:O.TWITTER_IMAGE_SIZES.aspectRatio},width:t.width,height:t.height,imageMode:t.mode}))}}Z.propTypes={isLarge:s.a.bool.isRequired,src:s.a.string,alt:s.a.string,onImageClick:s.a.func,onMouseEnter:s.a.func,onMouseLeave:s.a.func},Z.defaultProps={src:"",alt:"",onMouseEnter:l.noop,onImageClick:l.noop,onMouseLeave:l.noop};const Q=p.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; } `,X=e=>Object(a.createElement)(Q,null,e.children);X.propTypes={children:s.a.array.isRequired};var J=X,ee=p.a.p` white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; color: rgb(15, 20, 25); cursor: pointer; `,te=p.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.TWITTER_IMAGE_SIZES.landscapeWidth}px ) { display: none; } `;const ne=p.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=p()(ne)` flex-direction: column; max-height: 370px; `,re=p()(ne)` flex-direction: row; height: 125px; `;class se extends h.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:n,alt:r,title:s,description:o,siteUrl:i}=this.props,c=e?ae:re;return Object(a.createElement)(c,{id:"twitterPreview"},Object(a.createElement)(Z,{src:t||n,alt:r,isLarge:e,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),Object(a.createElement)(J,null,Object(a.createElement)(H,{siteUrl:i}),Object(a.createElement)(ee,{onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle},s),Object(a.createElement)(te,{onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription},o)))}}se.propTypes={siteUrl:s.a.string.isRequired,title:s.a.string.isRequired,description:s.a.string,isLarge:s.a.bool,imageUrl:s.a.string,imageFallbackUrl:s.a.string,alt:s.a.string,onSelect:s.a.func,onImageClick:s.a.func,onMouseHover:s.a.func},se.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{},isLarge:!0};var oe=se,ie=n(9),ce=n(81);class le extends h.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.SocialPreview="Social"===e.socialMediumName?z:oe,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:n,onRemoveImageClick:r,socialMediumName:s,imageWarnings:o,siteUrl:i,description:c,descriptionInputPlaceholder:l,descriptionPreviewFallback:d,imageUrl:u,imageFallbackUrl:p,alt:m,title:h,titleInputPlaceholder:g,titlePreviewFallback:f,replacementVariables:y,recommendedReplacementVariables:w,applyReplacementVariables:j,onReplacementVariableSearchChange:E,isPremium:v,isLarge:_,socialPreviewLabel:k,idSuffix:T,activeMetaTabId:x}=this.props,C=j({title:h||f,description:c||d});return Object(a.createElement)(b.a.Fragment,null,k&&Object(a.createElement)(ie.SimulatedLabel,null,k),Object(a.createElement)(this.SocialPreview,{onMouseHover:this.setHoveredField,onSelect:this.setActiveField,onImageClick:n,siteUrl:i,title:C.title,description:C.description,imageUrl:u,imageFallbackUrl:p,alt:m,isLarge:_,activeMetaTabId:x}),Object(a.createElement)(O.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:s,title:h,titleInputPlaceholder:g,onRemoveImageClick:r,imageSelected:!!u,imageUrl:u,onTitleChange:t,onSelectImageClick:n,description:c,descriptionInputPlaceholder:l,imageWarnings:o,replacementVariables:y,recommendedReplacementVariables:w,onReplacementVariableSearchChange:E,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:v,setEditorRef:this.setEditorRef,idSuffix:T}))}}le.propTypes={title:s.a.string.isRequired,onTitleChange:s.a.func.isRequired,description:s.a.string.isRequired,onDescriptionChange:s.a.func.isRequired,imageUrl:s.a.string.isRequired,imageFallbackUrl:s.a.string.isRequired,onSelectImageClick:s.a.func.isRequired,onRemoveImageClick:s.a.func.isRequired,socialMediumName:s.a.string.isRequired,alt:s.a.string,isPremium:s.a.bool,imageWarnings:s.a.array,isLarge:s.a.bool,siteUrl:s.a.string,descriptionInputPlaceholder:s.a.string,titleInputPlaceholder:s.a.string,descriptionPreviewFallback:s.a.string,titlePreviewFallback:s.a.string,replacementVariables:ce.replacementVariablesShape,recommendedReplacementVariables:ce.recommendedReplacementVariablesShape,applyReplacementVariables:s.a.func,onReplacementVariableSearchChange:s.a.func,socialPreviewLabel:s.a.string,idSuffix:s.a.string,activeMetaTabId:s.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 de={},ue=function(e,t){let{log:n=console.warn}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};de[e]||(de[e]=!0,n(t))},pe=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.noop;const n={};for(const a in e)Object.hasOwn(e,a)&&Object.defineProperty(n,a,{set:n=>{e[a]=n,t("set",a,n)},get:()=>(t("get",a),e[a])});return n};pe({squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},(e,t)=>ue(`@yoast/social-metadata-previews/TWITTER_IMAGE_SIZES/${e}/${t}`,`[@yoast/social-metadata-previews] "TWITTER_IMAGE_SIZES.${t}" is deprecated and will be removed in the future, please use this from @yoast/social-metadata-forms instead.`)),pe({squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}},(e,t)=>ue(`@yoast/social-metadata-previews/FACEBOOK_IMAGE_SIZES/${e}/${t}`,`[@yoast/social-metadata-previews] "FACEBOOK_IMAGE_SIZES.${t}" is deprecated and will be removed in the future, please use this from @yoast/social-metadata-forms instead.`));const me=p.a.div` max-width: calc(527px + 1.5rem); `,he=e=>{const t="Twitter"===e.socialMediumName?Object(c.__)("Twitter share preview","wordpress-seo"):Object(c.__)("Social share preview","wordpress-seo"),{locationContext:n}=Object(d.useRootContext)();return Object(a.createElement)(d.Root,null,Object(a.createElement)(me,null,Object(a.createElement)(d.FeatureUpsell,i()({shouldUpsell:!0,variant:"card",cardLink:Object(m.addQueryArgs)(wpseoAdminL10n["shortlinks.upsell.social_preview."+e.socialMediumName.toLowerCase()],{context:n}),cardText:Object(c.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */ Object(c.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium")},{"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"}),Object(a.createElement)("div",{className:"yst-grayscale yst-opacity-50"},Object(a.createElement)(d.Label,null,t),Object(a.createElement)(z,{title:"",description:"",siteUrl:"",imageUrl:"",imageFallbackUrl:"",alt:"",onSelect:l.noop,onImageClick:l.noop,onMouseHover:l.noop})))))};he.propTypes={socialMediumName:s.a.oneOf(["Social","Twitter"]).isRequired};var be=he;class ge extends a.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.setHoveredField=this.setHoveredField.bind(this),this.setActiveField=this.setActiveField.bind(this),this.setEditorRef=this.setEditorRef.bind(this),this.setEditorFocus=this.setEditorFocus.bind(this)}setHoveredField(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}setActiveField(e){e!==this.state.activeField&&this.setState({activeField:e},()=>this.setEditorFocus(e))}setEditorFocus(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}setEditorRef(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}render(){const{onDescriptionChange:e,onTitleChange:t,onSelectImageClick:n,onRemoveImageClick:r,socialMediumName:s,imageWarnings:o,description:i,descriptionInputPlaceholder:c,imageUrl:l,alt:d,title:u,titleInputPlaceholder:p,replacementVariables:m,recommendedReplacementVariables:h,onReplacementVariableSearchChange:b,isPremium:g,location:f}=this.props;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(be,{socialMediumName:s}),Object(a.createElement)(O.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:s,title:u,titleInputPlaceholder:p,onRemoveImageClick:r,imageSelected:!!l,imageUrl:l,imageAltText:d,onTitleChange:t,onSelectImageClick:n,description:i,descriptionInputPlaceholder:c,imageWarnings:o,replacementVariables:m,recommendedReplacementVariables:h,onReplacementVariableSearchChange:b,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:g,setEditorRef:this.setEditorRef,idSuffix:f}))}}ge.propTypes={title:s.a.string.isRequired,onTitleChange:s.a.func.isRequired,description:s.a.string.isRequired,onDescriptionChange:s.a.func.isRequired,imageUrl:s.a.string.isRequired,onSelectImageClick:s.a.func.isRequired,onRemoveImageClick:s.a.func.isRequired,socialMediumName:s.a.string.isRequired,isPremium:s.a.bool,imageWarnings:s.a.array,descriptionInputPlaceholder:s.a.string,titleInputPlaceholder:s.a.string,replacementVariables:ce.replacementVariablesShape,recommendedReplacementVariables:ce.recommendedReplacementVariablesShape,onReplacementVariableSearchChange:s.a.func,location:s.a.string,alt:s.a.string},ge.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",onReplacementVariableSearchChange:null,location:"",alt:""},t.a=ge},function(e,t,n){"use strict";function a(e){const t=new window.CustomEvent(e);window.dispatchEvent(t)}n.d(t,"a",(function(){return a}))},,,,function(e,t,n){"use strict";var a=n(18),r=n(5),s=n(0),o=n(20),i=n(2),c=n.n(i),l=n(123);const d=e=>(Object(s.useEffect)(()=>{setTimeout(e.onLoad)},[]),e.isPremium?Object(s.createElement)(o.Slot,{name:"YoastTwitterPremium"+(e.location.charAt(0).toUpperCase()+e.location.slice(1)),fillProps:e}):Object(s.createElement)(l.a,e));d.propTypes={isPremium:c.a.bool.isRequired,onLoad:c.a.func.isRequired,location:c.a.string.isRequired};var u=d,p=n(19),m=n(72),h=n(58),b=n(88);const g=()=>{Object(h.b)(e=>Object(r.dispatch)("yoast-seo/editor").setTwitterPreviewImage(Object(h.d)(e)))};t.a=Object(a.compose)([Object(r.withSelect)(e=>{const{getTwitterDescription:t,getTwitterTitle:n,getTwitterImageUrl:a,getFacebookImageUrl:r,getFacebookTitle:s,getFacebookDescription:o,getDescription:i,getSeoTitle:c,getTwitterWarnings:l,getTwitterImageType:d,getImageFallback:u,getRecommendedReplaceVars:m,getReplaceVars:h,getSiteUrl:b,getSeoTitleTemplate:g,getSeoTitleTemplateNoFallback:f,getSocialTitleTemplate:y,getSeoDescriptionTemplate:O,getSocialDescriptionTemplate:w,getReplacedExcerpt:j,getTwitterAltText:E}=e("yoast-seo/editor");return{imageUrl:a(),imageFallbackUrl:r()||u(),recommendedReplacementVariables:m(),replacementVariables:h(),description:t(),descriptionPreviewFallback:w()||o()||i()||O()||j()||"",title:n(),titlePreviewFallback:y()||s()||c()||f()||g()||"",imageWarnings:l(),siteUrl:b(),isPremium:!!Object(p.a)().isPremium,isLarge:"summary"!==d(),titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Twitter",alt:E()}}),Object(r.withDispatch)((e,t,n)=>{let{select:a}=n;const{setTwitterPreviewTitle:r,setTwitterPreviewDescription:s,clearTwitterPreviewImage:o,loadTwitterPreviewData:i,findCustomFields:c}=e("yoast-seo/editor"),l=a("yoast-seo/editor").getPostId();return{onSelectImageClick:g,onRemoveImageClick:o,onDescriptionChange:s,onTitleChange:r,onLoad:i,onReplacementVariableSearchChange:Object(b.a)(l,c)}}),Object(m.a)()])(u)},function(e,t,n){"use strict";var a=n(0),r=n(1),s=n(42),o=n.n(s),i=n(11);const c=Object(i.makeOutboundLink)(),l=Object(i.makeOutboundLink)();t.a=()=>{const e=Object(r.sprintf)(Object(r.__)(/* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */ "With %1$s you can track the ranking position of your page in the search results based on your keyphrase(s). %2$s","wordpress-seo"),"{{wincherLink/}}","{{wincherReadMoreLink/}}");return Object(a.createElement)("p",null,o()({mixedString:e,components:{wincherLink:Object(a.createElement)(c,{href:wpseoAdminGlobalL10n["links.wincher.website"]},"Wincher"),wincherReadMoreLink:Object(a.createElement)(l,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"]},Object(r.__)("Read more about keyphrase tracking with Wincher","wordpress-seo"))}}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return X}));var a,r,s,o,i,c,l,d,u,p,m,h,b,g,f,y,O,w,j,E,v,_,k,T,x,C,S,R,I,L,P,A,M,F,q,D,N,W,B,z,U,$,H,K,Y,V,G,Z=n(3);function Q(){return(Q=Object.assign||function(e){for(var t=1;t{Object(a.forEach)(t,t=>{"attributes"===t.type&&"class"===t.attributeName&&(t.target.classList.contains("et_pb_hidden")?e.classicEditorHidden():e.classicEditorShown())})}).observe(this.classicEditorContainer,{attributes:!0})}};const s={classicEditorHidden:a.noop,classicEditorShown:a.noop,pageBuilderLoaded:a.noop};t.a=class{constructor(){this.determineActivePageBuilders()}determineActivePageBuilders(){r.isActive()&&(this.diviActive=!0),class{static isActive(){return!!window.VCV_I18N}}.isActive()&&(this.vcActive=!0)}isPageBuilderActive(){return this.diviActive||this.vcActive}listen(e){this.callbacks=Object(a.defaults)(e,s),this.diviActive&&(new r).listen(e)}isClassicEditorHidden(){return!(!this.diviActive||!r.isTinyMCEHidden())}}},,,,,,function(e,t,n){"use strict";var a=n(5),r=n(18),s=n(10),o=n.n(s),i=n(0),c=n(3),l=c.forwardRef((function(e,t){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),c.createElement("path",{d:"M2 11a1 1 0 011-1h2a1 1 0 011 1v5a1 1 0 01-1 1H3a1 1 0 01-1-1v-5zM8 7a1 1 0 011-1h2a1 1 0 011 1v9a1 1 0 01-1 1H9a1 1 0 01-1-1V7zM14 4a1 1 0 011-1h2a1 1 0 011 1v12a1 1 0 01-1 1h-2a1 1 0 01-1-1V4z"}))})),d=n(1),u=n(246),p=n(2),m=n.n(p),h=n(8),b=n.n(h),g=n(50),f=n(52),y=n(31),O=n(101),w=n(96),j=n(49),E=n(143);const v=b()(l)` width: 18px; height: 18px; margin: 3px; `;function _(e){const{keyphrases:t,onNoKeyphraseSet:n,onOpen:a,location:r}=e;if(!t.length){let e=document.querySelector("#focus-keyword-input-metabox");return e||(e=document.querySelector("#focus-keyword-input-sidebar")),e.focus(),void n()}a(r)}function k(e,t){Object(w.b)(t)&&e.onClose()}function T(e){const{location:t,whichModalOpen:n,shouldCloseOnClickOutside:a}=e,r=Object(i.useCallback)(()=>{_(e)},[_,e]),s=Object(i.useCallback)(t=>{k(e,t)},[k,e]),c=Object(d.__)("Track SEO performance","wordpress-seo"),p=Object(u.a)();return Object(i.createElement)(i.Fragment,null,n===t&&Object(i.createElement)(y.a,{title:c,onRequestClose:s,icon:Object(i.createElement)(O.a,null),additionalClassName:"yoast-wincher-seo-performance-modal yoast-gutenberg-modal__no-padding",shouldCloseOnClickOutside:a},Object(i.createElement)(f.a,{className:"yoast-gutenberg-modal__content yoast-wincher-seo-performance-modal__content"},Object(i.createElement)(E.a,null))),"sidebar"===t&&Object(i.createElement)(j.a,{id:"wincher-open-button-"+t,title:c,SuffixHeroIcon:Object(i.createElement)(v,o()({className:"yst-text-slate-500"},p)),onClick:r}),"metabox"===t&&Object(i.createElement)("div",{className:"yst-root"},Object(i.createElement)(g.a,{id:"wincher-open-button-"+t,onClick:r},Object(i.createElement)(g.a.Text,null,c),Object(i.createElement)(l,o()({className:"yst-h-5 yst-w-5 yst-text-slate-500"},p)))))}T.propTypes={location:m.a.string,whichModalOpen:m.a.oneOf(["none","metabox","sidebar","postpublish"]),shouldCloseOnClickOutside:m.a.bool},T.defaultProps={location:"",whichModalOpen:"none",shouldCloseOnClickOutside:!0},t.a=Object(r.compose)([Object(a.withSelect)(e=>{const{getWincherModalOpen:t,getWincherTrackableKeyphrases:n}=e("yoast-seo/editor");return{keyphrases:n(),whichModalOpen:t()}}),Object(a.withDispatch)(e=>{const{setWincherOpenModal:t,setWincherDismissModal:n,setWincherNoKeyphrase:a}=e("yoast-seo/editor");return{onOpen:e=>{t(e)},onClose:()=>{n()},onNoKeyphraseSet:()=>{a()}}})])(T)},function(e,t,n){"use strict";var a=n(18),r=n(5),s=n(0),o=n(20),i=n(2),c=n.n(i),l=n(123);const d=e=>{const[t,n]=Object(s.useState)(""),a=Object(s.useCallback)(e=>{n(e.detail.metaTabId)},[n]);Object(s.useEffect)(()=>(setTimeout(e.onLoad),window.addEventListener("YoastSEO:metaTabChange",a),()=>{window.removeEventListener("YoastSEO:metaTabChange",a)}),[]);const r=Object(s.useMemo)(()=>({...e,activeMetaTabId:t}),[e,t]);return e.isPremium?Object(s.createElement)(o.Slot,{name:"YoastFacebookPremium"+(e.location.charAt(0).toUpperCase()+e.location.slice(1)),fillProps:r}):Object(s.createElement)(l.a,r)};d.propTypes={isPremium:c.a.bool.isRequired,onLoad:c.a.func.isRequired,location:c.a.string.isRequired};var u=d,p=n(19),m=n(72),h=n(58),b=n(88);const g=()=>{Object(h.b)(e=>Object(r.dispatch)("yoast-seo/editor").setFacebookPreviewImage(Object(h.c)(e)))};t.a=Object(a.compose)([Object(r.withSelect)(e=>{const{getFacebookDescription:t,getDescription:n,getFacebookTitle:a,getSeoTitle:r,getFacebookImageUrl:s,getImageFallback:o,getFacebookWarnings:i,getRecommendedReplaceVars:c,getReplaceVars:l,getSiteUrl:d,getSeoTitleTemplate:u,getSeoTitleTemplateNoFallback:m,getSocialTitleTemplate:h,getSeoDescriptionTemplate:b,getSocialDescriptionTemplate:g,getReplacedExcerpt:f,getFacebookAltText:y}=e("yoast-seo/editor");return{imageUrl:s(),imageFallbackUrl:o(),recommendedReplacementVariables:c(),replacementVariables:l(),description:t(),descriptionPreviewFallback:g()||n()||b()||f()||"",title:a(),titlePreviewFallback:h()||r()||m()||u()||"",imageWarnings:i(),siteUrl:d(),isPremium:!!Object(p.a)().isPremium,titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Social",alt:y()}}),Object(r.withDispatch)((e,t,n)=>{let{select:a}=n;const{setFacebookPreviewTitle:r,setFacebookPreviewDescription:s,clearFacebookPreviewImage:o,loadFacebookPreviewData:i,findCustomFields:c}=e("yoast-seo/editor"),l=a("yoast-seo/editor").getPostId();return{onSelectImageClick:g,onRemoveImageClick:o,onDescriptionChange:s,onTitleChange:r,onLoad:i,onReplacementVariableSearchChange:Object(b.a)(l,c)}}),Object(m.a)()])(u)},,,function(e,t,n){"use strict";var a=n(3);const r=a.forwardRef((function(e,t){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))}));t.a=r},function(e,t,n){"use strict";var a=n(0),r=n(1),s=n(2),o=n.n(s),i=n(55),c=n(61);const l=e=>Object(a.createElement)(c.a,{title:Object(r.__)("Reach a wider audience","wordpress-seo"),description:Object(r.__)("Get help optimizing for up to 5 related keyphrases. This helps you reach a wider audience and get more traffic.","wordpress-seo"),benefitsTitle:/* translators: %s expands to 'Yoast SEO Premium'. */ Object(r.sprintf)("%s also gives you:","Yoast SEO Premium"),benefits:Object(i.a)(),upsellButtonText:Object(r.sprintf)(/* translators: %s expands to 'Yoast SEO Premium'. */ Object(r.__)("Unlock with %s","wordpress-seo"),"Yoast SEO Premium"),upsellButton:{href:e.buyLink,className:"yoast-button-upsell",rel:null,"data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2","data-action":"load-nfd-ctb"},upsellButtonLabel:Object(r.__)("1 year free support and updates included!","wordpress-seo")});l.propTypes={buyLink:o.a.string.isRequired},t.a=l},function(e,t,n){"use strict";var a=n(5),r=n(18),s=n(10),o=n.n(s),i=n(0),c=n(1),l=n(2),d=n.n(l),u=n(4),p=n(8),m=n.n(p),h=n(24),b=n.n(h),g=n(9),f=n(11),y=n(42),O=n.n(y);const w=Object(f.makeOutboundLink)(),j=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)(g.Alert,{type:"error"},O()({mixedString:t,components:{updateWincherPlanLink:Object(i.createElement)(w,{href:wpseoAdminGlobalL10n["links.wincher.pricing"]},Object(c.sprintf)(/* translators: %s : Expands to "Wincher". */ Object(c.__)("upgrade your %s plan","wordpress-seo"),"Wincher"))}}))};j.propTypes={limit:d.a.number},j.defaultProps={limit:10};var E=j,v=()=>Object(i.createElement)(g.Alert,{type:"error"},Object(c.__)("Something went wrong while tracking the ranking position(s) of your page. Please try again later.","wordpress-seo")),_=n(94),k=()=>Object(i.createElement)(g.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")),T=()=>Object(i.createElement)(g.Alert,{type:"info"},Object(c.sprintf)(/* translators: %s: Expands to "Wincher". */ Object(c.__)("%s is currently tracking the ranking position(s) of your page. This may take a few minutes. Please wait or check back later.","wordpress-seo"),"Wincher")),x=n(112),C=n(38),S=n(32);const R=Object(f.makeOutboundLink)(),I=m.a.span` display: block; font-style: italic; @media (min-width: 782px) { display: inline; position: absolute; ${Object(f.getDirectionalStyle)("right","left")}: 8px; } `,L=m.a.div` width: 100%; overflow-y: auto; `,P=m.a.th` pointer-events: ${e=>e.isDisabled?"none":"initial"}; padding-right: 0 !important; & > div { margin: 0px; } `,A=m.a.th` padding-left: 2px !important; `,M=e=>{const t=Object(i.useRef)();return Object(i.useEffect)(()=>{t.current=e}),t.current},F=Object(u.debounce)(C.d,500,{leading:!0}),q=e=>{const{addTrackedKeyphrase:t,isLoggedIn:n,keyphrases:a,permalink:r,removeTrackedKeyphrase:s,setKeyphraseLimitReached:o,setRequestFailed:l,setRequestSucceeded:d,setTrackedKeyphrases:p,setHasTrackedAll:m,trackAll:h,trackedKeyphrases:b,isNewlyAuthenticated:f,websiteId:y,focusKeyphrase:O,newRequest:w,startAt:j,selectedKeyphrases:E,onSelectKeyphrases:v}=e,_=Object(i.useRef)(),k=Object(i.useRef)(),T=Object(i.useRef)(!1),[q,D]=Object(i.useState)([]),N=Object(i.useCallback)(e=>{const t=e.toLowerCase();return b&&!Object(u.isEmpty)(b)&&b.hasOwnProperty(t)?b[t]:null},[b]),W=Object(i.useMemo)(()=>async()=>{await Object(S.b)(()=>(k.current&&k.current.abort(),k.current="undefined"==typeof AbortController?null:new AbortController,F(a,j,r,k.current.signal)),e=>{d(e),p(e.results)},e=>{l(e)})},[d,l,p,a,r,j]),B=Object(i.useCallback)(async e=>{const n=(Array.isArray(e)?e:[e]).map(e=>e.toLowerCase());D(e=>[...e,...n]),await Object(S.b)(()=>Object(C.f)(n),e=>{d(e),t(e.results),W()},e=>{400===e.status&&e.limit&&o(e.limit),l(e)},201),D(e=>Object(u.without)(e,...n))},[d,l,o,t,W]),z=Object(i.useCallback)(async(e,t)=>{e=e.toLowerCase(),D(t=>[...t,e]),await Object(S.b)(()=>Object(C.g)(t),t=>{d(t),s(e)},e=>{l(e)}),D(t=>Object(u.without)(t,e))},[d,s,l]),U=Object(i.useCallback)(async e=>{w(),await B(e)},[w,B]),$=M(r),H=M(a),K=M(j),Y=r&&j;Object(i.useEffect)(()=>{n&&Y&&(r!==$||Object(u.difference)(a,H).length||j!==K)&&W()},[n,r,$,a,H,W,Y,j,K]),Object(i.useEffect)(()=>{if(n&&h&&null!==b){const e=a.filter(e=>!N(e));e.length&&B(e),m()}},[n,h,b,B,m,N,a]),Object(i.useEffect)(()=>{f&&!T.current&&(W(),T.current=!0)},[f,W]),Object(i.useEffect)(()=>{if(n&&!Object(u.isEmpty)(b))return Object(u.filter)(b,e=>Object(u.isEmpty)(e.updated_at)).length>0&&(_.current=setInterval(()=>{W()},1e4)),()=>{clearInterval(_.current)}},[n,b,W]);const V=n&&null===b,G=Object(i.useMemo)(()=>Object(u.isEmpty)(b)?[]:Object.values(b).filter(e=>{var t;return!Object(u.isEmpty)(null==e||null===(t=e.position)||void 0===t?void 0:t.history)}).map(e=>e.keyword),[b]),Z=Object(i.useMemo)(()=>E.length>0&&G.length>0&&G.every(e=>E.includes(e)),[E,G]),Q=Object(i.useCallback)(()=>{v(Z?[]:G)},[v,Z,G]),X=Object(i.useMemo)(()=>Object(u.orderBy)(a,[e=>Object.values(b||{}).map(e=>e.keyword).includes(e)],["desc"]),[a,b]);return a&&!Object(u.isEmpty)(a)&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(L,null,Object(i.createElement)("table",{className:"yoast yoast-table"},Object(i.createElement)("thead",null,Object(i.createElement)("tr",null,Object(i.createElement)(P,{isDisabled:0===G.length},Object(i.createElement)(g.Checkbox,{id:"select-all",onChange:Q,checked:Z,label:""})),Object(i.createElement)(A,{scope:"col",abbr:Object(c.__)("Keyphrase","wordpress-seo")},Object(c.__)("Keyphrase","wordpress-seo")),Object(i.createElement)("th",{scope:"col",abbr:Object(c.__)("Position","wordpress-seo")},Object(c.__)("Position","wordpress-seo")),Object(i.createElement)("th",{scope:"col",abbr:Object(c.__)("Position over time","wordpress-seo")},Object(c.__)("Position over time","wordpress-seo")),Object(i.createElement)("th",{scope:"col",abbr:Object(c.__)("Last updated","wordpress-seo")},Object(c.__)("Last updated","wordpress-seo")),Object(i.createElement)("th",{scope:"col",abbr:Object(c.__)("Tracking","wordpress-seo")},Object(c.__)("Tracking","wordpress-seo")))),Object(i.createElement)("tbody",null,X.map((e,t)=>Object(i.createElement)(x.b,{key:"trackable-keyphrase-"+t,keyphrase:e,onTrackKeyphrase:U,onUntrackKeyphrase:z,rowData:N(e),isFocusKeyphrase:e===O.trim().toLowerCase(),websiteId:y,isDisabled:!n,isLoading:V||q.indexOf(e.toLowerCase())>=0,isSelected:E.includes(e),onSelectKeyphrases:v}))))),Object(i.createElement)("p",{style:{marginBottom:0,position:"relative"}},Object(i.createElement)(R,{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)(I,null,Object(c.__)("* focus keyphrase","wordpress-seo"))))};q.propTypes={addTrackedKeyphrase:d.a.func.isRequired,isLoggedIn:d.a.bool,isNewlyAuthenticated:d.a.bool,keyphrases:d.a.array,newRequest:d.a.func.isRequired,removeTrackedKeyphrase:d.a.func.isRequired,setRequestFailed:d.a.func.isRequired,setKeyphraseLimitReached:d.a.func.isRequired,setRequestSucceeded:d.a.func.isRequired,setTrackedKeyphrases:d.a.func.isRequired,setHasTrackedAll:d.a.func.isRequired,trackAll:d.a.bool,trackedKeyphrases:d.a.object,websiteId:d.a.string,permalink:d.a.string.isRequired,focusKeyphrase:d.a.string,startAt:d.a.string,selectedKeyphrases:d.a.arrayOf(d.a.string).isRequired,onSelectKeyphrases:d.a.func.isRequired},q.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],trackAll:!1,websiteId:"",focusKeyphrase:""};var D=q,N=Object(r.compose)([Object(a.withSelect)(e=>{const{getWincherWebsiteId:t,getWincherTrackableKeyphrases:n,getWincherLoginStatus:a,getWincherPermalink:r,getFocusKeyphrase:s,isWincherNewlyAuthenticated:o,shouldWincherTrackAll:i}=e("yoast-seo/editor");return{focusKeyphrase:s(),keyphrases:n(),isLoggedIn:a(),trackAll:i(),websiteId:t(),isNewlyAuthenticated:o(),permalink:r()}}),Object(a.withDispatch)(e=>{const{setWincherNewRequest:t,setWincherRequestSucceeded:n,setWincherRequestFailed:a,setWincherSetKeyphraseLimitReached:r,setWincherTrackedKeyphrases:s,setWincherTrackingForKeyphrase:o,setWincherTrackAllKeyphrases:i,unsetWincherTrackingForKeyphrase:c}=e("yoast-seo/editor");return{newRequest:()=>{t()},setRequestSucceeded:e=>{n(e)},setRequestFailed:e=>{a(e)},setKeyphraseLimitReached:e=>{r(e)},addTrackedKeyphrase:e=>{o(e)},removeTrackedKeyphrase:e=>{c(e)},setTrackedKeyphrases:e=>{s(e)},setHasTrackedAll:()=>{i(!1)}}})])(D),W=n(129),B=()=>Object(i.createElement)(g.Alert,{type:"error"},Object(c.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo")),z=()=>Object(i.createElement)(g.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")),U=n(117),$=n(118),H=()=>Object(i.createElement)(g.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")),K=n(3),Y=n.n(K),V=n(25);function G(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Z(e,t){e.labels=t}function Q(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"label";const a=[];e.datasets=t.map(t=>{const r=e.datasets.find(e=>e[n]===t[n]);return r&&t.data&&!a.includes(r)?(a.push(r),Object.assign(r,t),r):{...t}})}function X(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"label";const n={labels:[],datasets:[]};return Z(n,e.labels),Q(n,e.datasets,t),n}function J(e,t){const{height:n=150,width:a=300,redraw:r=!1,datasetIdKey:s,type:o,data:i,options:c,plugins:l=[],fallbackContent:d,updateMode:u,...p}=e,m=Object(K.useRef)(null),h=Object(K.useRef)(),b=()=>{m.current&&(h.current=new V.Chart(m.current,{type:o,data:X(i,s),options:c&&{...c},plugins:l}),G(t,h.current))},g=()=>{G(t,null),h.current&&(h.current.destroy(),h.current=null)};return Object(K.useEffect)(()=>{!r&&h.current&&c&&function(e,t){const n=e.options;n&&t&&Object.assign(n,t)}(h.current,c)},[r,c]),Object(K.useEffect)(()=>{!r&&h.current&&Z(h.current.config.data,i.labels)},[r,i.labels]),Object(K.useEffect)(()=>{!r&&h.current&&i.datasets&&Q(h.current.config.data,i.datasets,s)},[r,i.datasets]),Object(K.useEffect)(()=>{h.current&&(r?(g(),setTimeout(b)):h.current.update(u))},[r,c,i.labels,i.datasets,u]),Object(K.useEffect)(()=>{h.current&&(g(),setTimeout(b))},[o]),Object(K.useEffect)(()=>(b(),()=>g()),[]),Y.a.createElement("canvas",Object.assign({ref:m,role:"img",height:n,width:a},p),d)}const ee=Object(K.forwardRef)(J);function te(e,t){return V.Chart.register(t),Object(K.forwardRef)((t,n)=>Y.a.createElement(ee,Object.assign({},t,{ref:n,type:e})))}const ne=te("line",V.LineController),ae=(V.BarController,V.RadarController,V.DoughnutController,V.PolarAreaController,V.BubbleController,V.PieController,V.ScatterController,{datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"});V._adapters._date.override("function"==typeof b.a?{_id:"moment",formats:function(){return ae},parse:function(e,t){return"string"==typeof e&&"string"==typeof t?e=b()(e,t):e instanceof b.a||(e=b()(e)),e.isValid()?e.valueOf():null},format:function(e,t){return b()(e).format(t)},add:function(e,t,n){return b()(e).add(t,n).valueOf()},diff:function(e,t,n){return b()(e).diff(b()(t),n)},startOf:function(e,t,n){return e=b()(e),"isoWeek"===t?(n=Math.trunc(Math.min(Math.max(0,n),6)),e.isoWeekday(n).startOf("day").valueOf()):e.startOf(t).valueOf()},endOf:function(e,t){return b()(e).endOf(t).valueOf()}}:{}),Math.PI,Number.POSITIVE_INFINITY,Math.log10,Math.sign,"undefined"==typeof window||window.requestAnimationFrame,new Map,Object.create(null),Object.create(null),Number.EPSILON;const re=["top","right","bottom","left"];function se(e,t,n){const a={};n=n?"-"+n:"";for(let r=0;r<4;r++){const s=re[r];a[s]=parseFloat(e[t+"-"+s+n])||0}return a.width=a.left+a.right,a.height=a.top+a.bottom,a}!function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}}(),V.Chart.register(V.CategoryScale,V.LineController,V.LineElement,V.PointElement,V.LinearScale,V.TimeScale,V.Legend,V.Tooltip);const oe=["#ff983b","#ffa3f7","#3798ff","#ff3b3b","#acce81","#b51751","#3949ab","#26c6da","#ccb800","#de66ff","#4db6ac","#ffab91","#45f5f1","#77f210","#90a4ae","#ffd54f","#006b5e","#8ec7d2","#b1887c","#cc9300"];function ie(e){let{datasets:t,isChartShown:n,keyphrases:a}=e;if(!n)return null;const r=Object(i.useMemo)(()=>Object.fromEntries([...a].sort().map((e,t)=>[e,oe[t%oe.length]])),[a]),s=t.map(e=>{const t=r[e.label];return{...e,data:e.data.map(e=>{let{datetime:t,value:n}=e;return{x:t,y:n}}),lineTension:0,pointRadius:1,pointHoverRadius:4,borderWidth:2,pointHitRadius:6,backgroundColor:t,borderColor:t}}).filter(e=>!1!==e.selected);return Object(i.createElement)(ne,{height:100,data:{datasets:s},options:{plugins:{legend:{display:!0,position:"bottom",labels:{color:"black",usePointStyle:!0,boxHeight:7,boxWidth:7},onClick:u.noop},tooltip:{enabled:!0,callbacks:{title:e=>b()(e[0].raw.x).utc().format("YYYY-MM-DD")},titleAlign:"center",mode:"xPoint",position:"nearest",usePointStyle:!0,boxHeight:7,boxWidth:7,boxPadding:2}},scales:{x:{bounds:"ticks",type:"time",time:{unit:"day",minUnit:"day"},grid:{display:!1},ticks:{autoSkipPadding:50,maxRotation:0,color:"black"}},y:{bounds:"ticks",offset:!0,reverse:!0,ticks:{precision:0,color:"black"},max:101}}}})}V.Interaction.modes.xPoint=(e,t,n,a)=>{const r=function(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:a}=t,r=(m=n).ownerDocument.defaultView.getComputedStyle(m,null),s="border-box"===r.boxSizing,o=se(r,"padding"),i=se(r,"border","width"),{x:c,y:l,box:d}=function(e,t){const n=e.touches,a=n&&n.length?n[0]:e,{offsetX:r,offsetY:s}=a;let o,i,c=!1;if(((e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot))(r,s,e.target))o=r,i=s;else{const e=t.getBoundingClientRect();o=a.clientX-e.left,i=a.clientY-e.top,c=!0}return{x:o,y:i,box:c}}(e,n),u=o.left+(d&&i.left),p=o.top+(d&&i.top);var m;let{width:h,height:b}=t;return s&&(h-=o.width+i.width,b-=o.height+i.height),{x:Math.round((c-u)/h*n.width/a),y:Math.round((l-p)/b*n.height/a)}}(t,e);let s=[];if(V.Interaction.evaluateInteractionItems(e,"x",r,(e,t,n)=>{e.inXRange(r.x,a)&&s.push({element:e,datasetIndex:t,index:n})}),0===s.length)return s;const o=s.reduce((e,t)=>Math.abs(r.x-e.element.x)e.element.x===o),s.some(e=>Math.abs(e.element.y-r.y)<10)?s:[]},ie.propTypes={datasets:d.a.arrayOf(d.a.shape({label:d.a.string.isRequired,data:d.a.arrayOf(d.a.shape({datetime:d.a.string.isRequired,value:d.a.number.isRequired})).isRequired,selected:d.a.bool})).isRequired,isChartShown:d.a.bool.isRequired,keyphrases:d.a.array.isRequired};const ce=e=>{let{response:t,onLogin:n}=e;return[401,403,404].includes(t.status)?Object(i.createElement)($.a,{onReconnect:n}):Object(i.createElement)(v,null)};ce.propTypes={response:d.a.object.isRequired,onLogin:d.a.func.isRequired};const le=e=>{let{isSuccess:t,response:n,allKeyphrasesMissRanking:a,onLogin:r,keyphraseLimitReached:s,limit:o}=e;return s?Object(i.createElement)(E,{limit:o}):Object(u.isEmpty)(n)||t?a?Object(i.createElement)(T,null):null:Object(i.createElement)(ce,{response:n,onLogin:r})};le.propTypes={isSuccess:d.a.bool.isRequired,allKeyphrasesMissRanking:d.a.bool.isRequired,response:d.a.object,onLogin:d.a.func.isRequired,keyphraseLimitReached:d.a.bool.isRequired,limit:d.a.number.isRequired},le.defaultProps={response:{}};let de=null;const ue=async e=>{if(de&&!de.isClosed())return void de.focus();const{url:t}=await Object(C.c)();de=new U.a(t,{success:{type:"wincher:oauth:success",callback:t=>(async(e,t)=>{const{onAuthentication:n,setRequestSucceeded:a,setRequestFailed:r,keyphrases:s,addTrackedKeyphrase:o,setKeyphraseLimitReached:i}=e;await Object(S.b)(()=>Object(C.a)(t),async e=>{n(!0,!0,t.websiteId.toString()),a(e);const c=(Array.isArray(s)?s:[s]).map(e=>e.toLowerCase());await Object(S.b)(()=>Object(C.f)(c),e=>{a(e),o(e.results)},e=>{400===e.status&&e.limit&&i(e.limit),r(e)},201);const l=de.getPopup();l&&l.close()},async e=>r(e))})(e,t)},error:{type:"wincher:oauth:error",callback:()=>e.onAuthentication(!1,!1)}},{title:"Wincher_login",width:500,height:700}),de.createPopup()},pe=e=>e.isLoggedIn?null:Object(i.createElement)("p",null,Object(i.createElement)(g.NewButton,{onClick:e.onLogin,variant:"primary"},Object(c.sprintf)(/* translators: %s expands to Wincher */ Object(c.__)("Connect with %s","wordpress-seo"),"Wincher")));pe.propTypes={isLoggedIn:d.a.bool.isRequired,onLogin:d.a.func.isRequired};const me=m.a.div` p { margin: 1em 0; } `,he=m.a.div` ${e=>e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"}; `,be=m.a.div` font-weight: var(--yoast-font-weight-bold); color: var(--yoast-color-label); font-size: var(--yoast-font-size-default); `,ge=m.a.div.attrs({className:"yoast-field-group"})` display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; `,fe=m.a.div` margin: 8px 0; `,ye=b.a.utc().startOf("day"),Oe=[{name:Object(c.__)("Last day","wordpress-seo"),value:b()(ye).subtract(1,"days").format(),defaultIndex:1},{name:Object(c.__)("Last week","wordpress-seo"),value:b()(ye).subtract(1,"week").format(),defaultIndex:2},{name:Object(c.__)("Last month","wordpress-seo"),value:b()(ye).subtract(1,"month").format(),defaultIndex:3},{name:Object(c.__)("Last year","wordpress-seo"),value:b()(ye).subtract(1,"year").format(),defaultIndex:0}],we=e=>{const{onSelect:t,selected:n,options:a,isLoggedIn:r}=e;return r?a.length<1?null:Object(i.createElement)("select",{className:"components-select-control__input",id:"wincher-period-picker",value:(null==n?void 0:n.value)||a[0].value,onChange:t},a.map(e=>Object(i.createElement)("option",{key:e.name,value:e.value},e.name))):null};we.propTypes={onSelect:d.a.func.isRequired,selected:d.a.object,options:d.a.array.isRequired,isLoggedIn:d.a.bool.isRequired};const je=e=>{const{trackedKeyphrases:t,isLoggedIn:n,keyphrases:a,shouldTrackAll:s,permalink:o,historyDaysLimit:l}=e;if(!o&&n)return Object(i.createElement)(H,null);if(0===a.length)return Object(i.createElement)(B,null);const d=b()(ye).subtract(l,"days"),p=Oe.filter(e=>b()(e.value).isSameOrAfter(d)),m=Object(u.orderBy)(p,e=>e.defaultIndex,"desc")[0],[h,g]=Object(i.useState)(m),[f,y]=Object(i.useState)([]),O=f.length>0,w=Object(r.usePrevious)(t);Object(i.useEffect)(()=>{if(!Object(u.isEmpty)(t)&&Object(u.difference)(Object.keys(t),Object.keys(w||[])).length){const e=Object.values(t).map(e=>e.keyword);y(e)}},[t,w]),Object(i.useEffect)(()=>{g(m)},[null==m?void 0:m.name]);const j=Object(i.useCallback)(e=>{const t=Oe.find(t=>t.value===e.target.value);t&&g(t)},[g]),E=Object(i.useMemo)(()=>Object(u.isEmpty)(f)||Object(u.isEmpty)(t)?[]:Object.values(t).filter(e=>{var t;return!(null==e||null===(t=e.position)||void 0===t||!t.history)}).map(e=>{var t;return{label:e.keyword,data:e.position.history,selected:f.includes(e.keyword)&&!Object(u.isEmpty)(null===(t=e.position)||void 0===t?void 0:t.history)}}),[f,t]);return Object(i.createElement)(he,{isDisabled:!n},Object(i.createElement)("p",null,Object(c.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")),n&&s&&Object(i.createElement)(z,null),Object(i.createElement)(ge,null,Object(i.createElement)(we,{selected:h,onSelect:j,options:p,isLoggedIn:n})),Object(i.createElement)(fe,null,Object(i.createElement)(ie,{isChartShown:O,datasets:E,keyphrases:a})),Object(i.createElement)(N,{startAt:null==h?void 0:h.value,selectedKeyphrases:f,onSelectKeyphrases:y,trackedKeyphrases:t}))};function Ee(e){const{isNewlyAuthenticated:t,isLoggedIn:n}=e,a=Object(i.useCallback)(()=>{ue(e)},[ue,e]),r=Object(_.b)(n);return Object(i.createElement)(me,null,t&&Object(i.createElement)(k,null),n&&Object(i.createElement)(_.a,{trackingInfo:r}),Object(i.createElement)(be,null,Object(c.__)("SEO performance","wordpress-seo"),Object(i.createElement)(g.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"] /* translators: Hidden accessibility text. */,linkText:Object(c.__)("Learn more about the SEO performance feature.","wordpress-seo")})),Object(i.createElement)(W.a,null),Object(i.createElement)(pe,{isLoggedIn:n,onLogin:a}),Object(i.createElement)(le,o()({},e,{onLogin:a})),Object(i.createElement)(je,o()({},e,{historyDaysLimit:(null==r?void 0:r.historyDays)||31})))}je.propTypes={trackedKeyphrases:d.a.object,keyphrases:d.a.array.isRequired,isLoggedIn:d.a.bool.isRequired,shouldTrackAll:d.a.bool.isRequired,permalink:d.a.string.isRequired,historyDaysLimit:d.a.number},Ee.propTypes={trackedKeyphrases:d.a.object,addTrackedKeyphrase:d.a.func.isRequired,isLoggedIn:d.a.bool,isNewlyAuthenticated:d.a.bool,keyphrases:d.a.array,response:d.a.object,shouldTrackAll:d.a.bool,permalink:d.a.string,historyDaysLimit:d.a.number},Ee.defaultProps={trackedKeyphrases:null,isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],response:{},shouldTrackAll:!1,permalink:"",historyDaysLimit:0},t.a=Object(r.compose)([Object(a.withSelect)(e=>{const{isWincherNewlyAuthenticated:t,getWincherKeyphraseLimitReached:n,getWincherLimit:a,getWincherHistoryDaysLimit:r,getWincherLoginStatus:s,getWincherRequestIsSuccess:o,getWincherRequestResponse:i,getWincherTrackableKeyphrases:c,getWincherTrackedKeyphrases:l,getWincherAllKeyphrasesMissRanking:d,getWincherPermalink:u,shouldWincherAutomaticallyTrackAll:p}=e("yoast-seo/editor");return{keyphrases:c(),trackedKeyphrases:l(),allKeyphrasesMissRanking:d(),isLoggedIn:s(),isNewlyAuthenticated:t(),isSuccess:o(),keyphraseLimitReached:n(),limit:a(),response:i(),shouldTrackAll:p(),permalink:u(),historyDaysLimit:r()}}),Object(a.withDispatch)(e=>{const{setWincherWebsiteId:t,setWincherRequestSucceeded:n,setWincherRequestFailed:a,setWincherTrackingForKeyphrase:r,setWincherSetKeyphraseLimitReached:s,setWincherLoginStatus:o}=e("yoast-seo/editor");return{setRequestSucceeded:e=>{n(e)},setRequestFailed:e=>{a(e)},addTrackedKeyphrase:e=>{r(e)},setKeyphraseLimitReached:e=>{s(e)},onAuthentication:(e,n,a)=>{t(a),o(e,n)}}})])(Ee)},function(e,t,n){"use strict";var a=n(5),r=n(18),s=n(0),o=n(1),i=n(2),c=n.n(i),l=n(4),d=n(9),u=()=>Object(s.createElement)("p",{className:"yoast-related-keyphrases-modal__loading-message"},Object(o.sprintf)(/* translators: %1$s expands to "Yoast SEO", %2$s expands to "Semrush". */ Object(o.__)("Please wait while %1$s connects to %2$s to get related keyphrases...","wordpress-seo"),"Yoast SEO","Semrush")," ",Object(s.createElement)(d.SvgIcon,{icon:"loading-spinner"})),p=n(11);const m=Object(p.makeOutboundLink)();var h=()=>Object(s.createElement)(s.Fragment,null,Object(s.createElement)("p",null,Object(o.sprintf)(/* translators: %s : Expands to "Semrush". */ Object(o.__)("You've reached your request limit for today. Check back tomorrow or upgrade your plan over at %s.","wordpress-seo"),"Semrush")),Object(s.createElement)(m,{href:window.wpseoAdminL10n["shortlinks.semrush.prices"],className:"yoast-button-upsell"},Object(o.sprintf)(/* translators: %s : Expands to "Semrush". */ Object(o.__)("Upgrade your %s plan","wordpress-seo"),"Semrush"),Object(s.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"}))),b=n(28),g=n.n(b),f=n(13);const y="yoast-semrush-country-selector",O=[{value:"us",name:"United States - US"},{value:"uk",name:"United Kingdom - UK"},{value:"ca",name:"Canada - CA"},{value:"ru",name:"Russia - RU"},{value:"de",name:"Germany - DE"},{value:"fr",name:"France - FR"},{value:"es",name:"Spain - ES"},{value:"it",name:"Italy - IT"},{value:"br",name:"Brazil - BR"},{value:"au",name:"Australia - AU"},{value:"ar",name:"Argentina - AR"},{value:"be",name:"Belgium - BE"},{value:"ch",name:"Switzerland - CH"},{value:"dk",name:"Denmark - DK"},{value:"fi",name:"Finland - FI"},{value:"hk",name:"Hong Kong - HK"},{value:"ie",name:"Ireland - IE"},{value:"il",name:"Israel - IL"},{value:"mx",name:"Mexico - MX"},{value:"nl",name:"Netherlands - NL"},{value:"no",name:"Norway - NO"},{value:"pl",name:"Poland - PL"},{value:"se",name:"Sweden - SE"},{value:"sg",name:"Singapore - SG"},{value:"tr",name:"Turkey - TR"},{value:"jp",name:"Japan - JP"},{value:"in",name:"India - IN"},{value:"hu",name:"Hungary - HU"},{value:"af",name:"Afghanistan - AF"},{value:"al",name:"Albania - AL"},{value:"dz",name:"Algeria - DZ"},{value:"ao",name:"Angola - AO"},{value:"am",name:"Armenia - AM"},{value:"at",name:"Austria - AT"},{value:"az",name:"Azerbaijan - AZ"},{value:"bh",name:"Bahrain - BH"},{value:"bd",name:"Bangladesh - BD"},{value:"by",name:"Belarus - BY"},{value:"bz",name:"Belize - BZ"},{value:"bo",name:"Bolivia - BO"},{value:"ba",name:"Bosnia and Herzegovina - BA"},{value:"bw",name:"Botswana - BW"},{value:"bn",name:"Brunei - BN"},{value:"bg",name:"Bulgaria - BG"},{value:"cv",name:"Cabo Verde - CV"},{value:"kh",name:"Cambodia - KH"},{value:"cm",name:"Cameroon - CM"},{value:"cl",name:"Chile - CL"},{value:"co",name:"Colombia - CO"},{value:"cr",name:"Costa Rica - CR"},{value:"hr",name:"Croatia - HR"},{value:"cy",name:"Cyprus - CY"},{value:"cz",name:"Czech Republic - CZ"},{value:"cd",name:"Congo - CD"},{value:"do",name:"Dominican Republic - DO"},{value:"ec",name:"Ecuador - EC"},{value:"eg",name:"Egypt - EG"},{value:"sv",name:"El Salvador - SV"},{value:"ee",name:"Estonia - EE"},{value:"et",name:"Ethiopia - ET"},{value:"ge",name:"Georgia - GE"},{value:"gh",name:"Ghana - GH"},{value:"gr",name:"Greece - GR"},{value:"gt",name:"Guatemala - GT"},{value:"gy",name:"Guyana - GY"},{value:"ht",name:"Haiti - HT"},{value:"hn",name:"Honduras - HN"},{value:"is",name:"Iceland - IS"},{value:"id",name:"Indonesia - ID"},{value:"jm",name:"Jamaica - JM"},{value:"jo",name:"Jordan - JO"},{value:"kz",name:"Kazakhstan - KZ"},{value:"kw",name:"Kuwait - KW"},{value:"lv",name:"Latvia - LV"},{value:"lb",name:"Lebanon - LB"},{value:"lt",name:"Lithuania - LT"},{value:"lu",name:"Luxembourg - LU"},{value:"mg",name:"Madagascar - MG"},{value:"my",name:"Malaysia - MY"},{value:"mt",name:"Malta - MT"},{value:"mu",name:"Mauritius - MU"},{value:"md",name:"Moldova - MD"},{value:"mn",name:"Mongolia - MN"},{value:"me",name:"Montenegro - ME"},{value:"ma",name:"Morocco - MA"},{value:"mz",name:"Mozambique - MZ"},{value:"na",name:"Namibia - NA"},{value:"np",name:"Nepal - NP"},{value:"nz",name:"New Zealand - NZ"},{value:"ni",name:"Nicaragua - NI"},{value:"ng",name:"Nigeria - NG"},{value:"om",name:"Oman - OM"},{value:"py",name:"Paraguay - PY"},{value:"pe",name:"Peru - PE"},{value:"ph",name:"Philippines - PH"},{value:"pt",name:"Portugal - PT"},{value:"ro",name:"Romania - RO"},{value:"sa",name:"Saudi Arabia - SA"},{value:"sn",name:"Senegal - SN"},{value:"rs",name:"Serbia - RS"},{value:"sk",name:"Slovakia - SK"},{value:"si",name:"Slovenia - SI"},{value:"za",name:"South Africa - ZA"},{value:"kr",name:"South Korea - KR"},{value:"lk",name:"Sri Lanka - LK"},{value:"th",name:"Thailand - TH"},{value:"bs",name:"Bahamas - BS"},{value:"tt",name:"Trinidad and Tobago - TT"},{value:"tn",name:"Tunisia - TN"},{value:"ua",name:"Ukraine - UA"},{value:"ae",name:"United Arab Emirates - AE"},{value:"uy",name:"Uruguay - UY"},{value:"ve",name:"Venezuela - VE"},{value:"vn",name:"Vietnam - VN"},{value:"zm",name:"Zambia - ZM"},{value:"zw",name:"Zimbabwe - ZW"},{value:"ly",name:"Libya - LY"}];class w extends s.Component{constructor(e){super(e),this.relatedKeyphrasesRequest=this.relatedKeyphrasesRequest.bind(this),this.onChangeHandler=this.onChangeHandler.bind(this)}componentDidMount(){this.props.response&&this.props.keyphrase===this.props.lastRequestKeyphrase||this.relatedKeyphrasesRequest()}storeCountryCode(e){g()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}})}async relatedKeyphrasesRequest(){const{keyphrase:e,countryCode:t,newRequest:n}=this.props;n(t,e),this.storeCountryCode(t);const a=await this.doRequest(e,t);200!==a.status?this.handleFailedResponse(a):this.handleSuccessResponse(a)}handleSuccessResponse(e){const{setNoResultsFound:t,setRequestSucceeded:n}=this.props;0!==e.results.rows.length?n(e):t()}handleFailedResponse(e){const{setRequestLimitReached:t,setRequestFailed:n}=this.props;"error"in e&&(e.error.includes("TOTAL LIMIT EXCEEDED")?t():n(e))}async doRequest(e,t){return await g()({path:Object(f.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:e,country_code:t})})}onChangeHandler(e){this.props.setCountry(e)}render(){return Object(s.createElement)("div",{id:y},Object(s.createElement)(d.SingleSelect,{id:y+"-select",label:Object(o.__)("Show results for:","wordpress-seo"),name:"semrush-country-code",options:O,selected:this.props.countryCode,onChange:this.onChangeHandler,wrapperClassName:"yoast-field-group yoast-field-group--inline"}),Object(s.createElement)(d.NewButton,{id:y+"-button",variant:"secondary",onClick:this.relatedKeyphrasesRequest},Object(o.__)("Select country","wordpress-seo")))}}w.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},w.defaultProps={keyphrase:"",countryCode:"us",response:{},lastRequestKeyphrase:""};var j=w,E=n(83),v=n(73);const _=Object(p.makeOutboundLink)();class k extends s.Component{constructor(e){super(e),this.transformTrendDataToChartPoints=this.transformTrendDataToChartPoints.bind(this),this.getAreaChartDataTableHeaderLabels=this.getAreaChartDataTableHeaderLabels.bind(this),this.mapAreaChartDataToTableData=this.mapAreaChartDataToTableData.bind(this)}transformTrendDataToChartPoints(e){return e.split(",").map((e,t)=>({x:t,y:parseFloat(e)}))}getAreaChartDataTableHeaderLabels(){return[Object(o.__)("Twelve months ago","wordpress-seo"),Object(o.__)("Eleven months ago","wordpress-seo"),Object(o.__)("Ten months ago","wordpress-seo"),Object(o.__)("Nine months ago","wordpress-seo"),Object(o.__)("Eight months ago","wordpress-seo"),Object(o.__)("Seven months ago","wordpress-seo"),Object(o.__)("Six months ago","wordpress-seo"),Object(o.__)("Five months ago","wordpress-seo"),Object(o.__)("Four months ago","wordpress-seo"),Object(o.__)("Three months ago","wordpress-seo"),Object(o.__)("Two months ago","wordpress-seo"),Object(o.__)("Last month","wordpress-seo")]}mapAreaChartDataToTableData(e){return Math.round(100*e)}render(){const{keyphrase:e,relatedKeyphrases:t,countryCode:n,data:a,renderAction:r}=this.props,i="https://www.semrush.com/analytics/keywordoverview/?q="+encodeURIComponent(e)+"&db="+encodeURIComponent(n);return a&&!Object(l.isEmpty)(a.results)&&Object(s.createElement)(s.Fragment,null,Object(s.createElement)("table",{className:"yoast yoast-table"},Object(s.createElement)("thead",null,Object(s.createElement)("tr",null,Object(s.createElement)("th",{scope:"col",className:"yoast-table--primary"},Object(o.__)("Related keyphrase","wordpress-seo")),Object(s.createElement)("th",{scope:"col",abbr:Object(o.__)("Volume","wordpress-seo")},Object(o.__)("Volume","wordpress-seo"),Object(s.createElement)(v.a,{href:window.wpseoAdminL10n["shortlinks.semrush.volume_help"],className:"dashicons"},Object(s.createElement)("span",{className:"screen-reader-text"},/* translators: Hidden accessibility text. */ Object(o.__)("Learn more about the related keyphrases volume","wordpress-seo")))),Object(s.createElement)("th",{scope:"col",abbr:Object(o.__)("Trend","wordpress-seo")},Object(o.__)("Trend","wordpress-seo"),Object(s.createElement)(v.a,{href:window.wpseoAdminL10n["shortlinks.semrush.trend_help"],className:"dashicons"},Object(s.createElement)("span",{className:"screen-reader-text"},/* translators: Hidden accessibility text. */ Object(o.__)("Learn more about the related keyphrases trend","wordpress-seo")))),r&&Object(s.createElement)("td",{className:"yoast-table--nobreak"}))),Object(s.createElement)("tbody",null,a.results.rows.map((e,n)=>{const a=e[0],i=this.transformTrendDataToChartPoints(e[2]),c=this.getAreaChartDataTableHeaderLabels();return Object(s.createElement)("tr",{key:n},Object(s.createElement)("td",null,a),Object(s.createElement)("td",null,e[1]),Object(s.createElement)("td",{className:"yoast-table--nopadding"},Object(s.createElement)(E.a,{width:66,height:24,data:i,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:this.mapAreaChartDataToTableData,dataTableCaption:Object(o.__)("Keyphrase volume in the last 12 months on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:c})),r&&Object(s.createElement)("td",{className:"yoast-table--nobreak"},r(a,t)))}))),Object(s.createElement)("p",{style:{marginBottom:0}},Object(s.createElement)(_,{href:i},Object(o.sprintf)(/* translators: %s expands to Semrush */ Object(o.__)("Get more insights at %s","wordpress-seo"),"Semrush"))))}}k.propTypes={data:c.a.object,keyphrase:c.a.string,relatedKeyphrases:c.a.array,countryCode:c.a.string,renderAction:c.a.func},k.defaultProps={data:{},keyphrase:"",relatedKeyphrases:[],countryCode:"us",renderAction:null};var T=k;const x=Object(p.makeOutboundLink)();var C=()=>Object(s.createElement)(d.Alert,{type:"info"},Object(o.sprintf)(/* translators: %s: Expands to "Yoast SEO". */ Object(o.__)("You’ll reach more people with multiple keyphrases! Want to quickly add these related keyphrases to the %s analyses for even better content optimization?","wordpress-seo"),"Yoast SEO")+" ",Object(s.createElement)(x,{href:window.wpseoAdminL10n["shortlinks.semrush.premium_landing_page"]},Object(o.sprintf)(/* translators: %s: Expands to "Yoast SEO Premium". */ Object(o.__)("Explore %s!","wordpress-seo"),"Yoast SEO Premium"))),S=()=>Object(s.createElement)(d.Alert,{type:"error"},Object(o.__)("We've encountered a problem trying to get related keyphrases. Please try again later.","wordpress-seo")),R=()=>Object(s.createElement)(d.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")),I=n(19);function L(e){const{response:t,lastRequestKeyphrase:n,keyphrase:a,newRequest:r,setCountry:i,renderAction:c,countryCode:d,requestLimitReached:p,setRequestFailed:m,setNoResultsFound:b,relatedKeyphrases:g,setRequestSucceeded:f,setRequestLimitReached:y}=e,O=Object(I.a)().isPremium;return Object(s.createElement)(s.Fragment,null,!p&&Object(s.createElement)(s.Fragment,null,!O&&Object(s.createElement)(C,null),O&&function(e){return e&&e.length>=4}(g)&&Object(s.createElement)(R,null),Object(s.createElement)(j,{countryCode:d,setCountry:i,newRequest:r,keyphrase:a,setRequestFailed:m,setNoResultsFound:b,setRequestSucceeded:f,setRequestLimitReached:y,response:t,lastRequestKeyphrase:n})),function(e){const{isPending:t,requestLimitReached:n,isSuccess:a,response:r,requestHasData:i}=e;return t?Object(s.createElement)(u,null):n?Object(s.createElement)(h,null):!a&&function(e){return!Object(l.isEmpty)(e)&&"error"in e}(r)?Object(s.createElement)(S,null):i?void 0:Object(s.createElement)("p",null,Object(o.__)("Sorry, there's no data available for that keyphrase/country combination.","wordpress-seo"))}(e),Object(s.createElement)(T,{keyphrase:a,relatedKeyphrases:g,countryCode:d,renderAction:c,data:t}))}L.propTypes={keyphrase:c.a.string,relatedKeyphrases:c.a.array,renderAction:c.a.func,requestLimitReached:c.a.bool,countryCode:c.a.string.isRequired,setCountry:c.a.func.isRequired,newRequest:c.a.func.isRequired,setRequestSucceeded:c.a.func.isRequired,setRequestLimitReached:c.a.func.isRequired,setRequestFailed:c.a.func.isRequired,setNoResultsFound:c.a.func.isRequired,response:c.a.object,lastRequestKeyphrase:c.a.string},L.defaultProps={keyphrase:"",relatedKeyphrases:[],renderAction:null,requestLimitReached:!1,response:{},lastRequestKeyphrase:""},t.a=Object(r.compose)([Object(a.withSelect)(e=>{const{getFocusKeyphrase:t,getSEMrushSelectedCountry:n,getSEMrushRequestLimitReached:a,getSEMrushRequestResponse:r,getSEMrushRequestIsSuccess:s,getSEMrushIsRequestPending:o,getSEMrushRequestHasData:i,getSEMrushRequestKeyphrase:c}=e("yoast-seo/editor");return{keyphrase:t(),countryCode:n(),requestLimitReached:a(),response:r(),isSuccess:s(),isPending:o(),requestHasData:i(),lastRequestKeyphrase:c()}}),Object(a.withDispatch)(e=>{const{setSEMrushChangeCountry:t,setSEMrushNewRequest:n,setSEMrushRequestSucceeded:a,setSEMrushRequestFailed:r,setSEMrushSetRequestLimitReached:s,setSEMrushNoResultsFound:o}=e("yoast-seo/editor");return{setCountry:e=>{t(e)},newRequest:(e,t)=>{n(e,t)},setRequestSucceeded:e=>{a(e)},setRequestFailed:e=>{r(e)},setRequestLimitReached:()=>{s()},setNoResultsFound:()=>{o()}}})])(L)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(4);function r(e){return void 0===e.length?e:Object(a.flatten)(e).sort((e,t)=>void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority)}},function(e,t,n){"use strict";var a=n(18),r=n(5),s=n(69),o=n(72);t.a=Object(a.compose)([Object(r.withSelect)(e=>{const{isCornerstoneContent:t}=e("yoast-seo/editor");return{isCornerstone:t(),learnMoreUrl:wpseoAdminL10n["shortlinks.cornerstone_content_info"]}}),Object(r.withDispatch)(e=>{const{toggleCornerstoneContent:t}=e("yoast-seo/editor");return{onChange:t}}),Object(o.a)()])(s.CollapsibleCornerstone)},function(e,t,n){"use strict";var a=n(0),r=n(5),s=n(1),o=n(9),i=n(4);t.a=()=>{const e=Object(r.useSelect)(e=>e("yoast-seo/editor").getEstimatedReadingTime(),[]),t=Object(a.useMemo)(()=>Object(i.get)(window,"wpseoAdminL10n.shortlinks-insights-estimated_reading_time",""),[]);return Object(a.createElement)(o.InsightsCard,{amount:e,unit:Object(s._n)("minute","minutes",e,"wordpress-seo"),title:Object(s.__)("Reading time","wordpress-seo"),linkTo:t /* translators: Hidden accessibility text. */,linkText:Object(s.__)("Learn more about reading time","wordpress-seo")})}},function(e,t,n){"use strict";var a=n(0),r=n(5),s=n(1),o=n(9),i=n(11),c=n(14),l=n(4);const d=Object(i.makeOutboundLink)();function u(e,t,n){const r=function(e){switch(e){case c.DIFFICULTY.FAIRLY_DIFFICULT:case c.DIFFICULTY.DIFFICULT:case c.DIFFICULTY.VERY_DIFFICULT:return Object(s.__)("Try to make shorter sentences, using less difficult words to improve readability","wordpress-seo");case c.DIFFICULTY.NO_DATA:return Object(s.__)("Continue writing to get insight into the readability of your text!","wordpress-seo");default:return Object(s.__)("Good job!","wordpress-seo")}}(t);return Object(a.createElement)("span",null,function(e,t){return-1===e?Object(s.sprintf)(Object(s.__)("Your text should be slightly longer to calculate your Flesch reading ease score.","wordpress-seo")):Object(s.sprintf)( /* Translators: %1$s expands to the numeric Flesch reading ease score, %2$s expands to the easiness of reading (e.g. 'easy' or 'very difficult'). */ Object(s.__)("The copy scores %1$s in the test, which is considered %2$s to read.","wordpress-seo"),e,function(e){switch(e){case c.DIFFICULTY.NO_DATA:return Object(s.__)("no data","wordpress-seo");case c.DIFFICULTY.VERY_EASY:return Object(s.__)("very easy","wordpress-seo");case c.DIFFICULTY.EASY:return Object(s.__)("easy","wordpress-seo");case c.DIFFICULTY.FAIRLY_EASY:return Object(s.__)("fairly easy","wordpress-seo");case c.DIFFICULTY.OKAY:return Object(s.__)("okay","wordpress-seo");case c.DIFFICULTY.FAIRLY_DIFFICULT:return Object(s.__)("fairly difficult","wordpress-seo");case c.DIFFICULTY.DIFFICULT:return Object(s.__)("difficult","wordpress-seo");case c.DIFFICULTY.VERY_DIFFICULT:return Object(s.__)("very difficult","wordpress-seo")}}(t))}(e,t)," ",t>=c.DIFFICULTY.FAIRLY_DIFFICULT?Object(a.createElement)(d,{href:n},r+"."):r)}t.a=()=>{let e=Object(r.useSelect)(e=>e("yoast-seo/editor").getFleschReadingEaseScore(),[]);const t=Object(a.useMemo)(()=>Object(l.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease",""),[]),n=Object(r.useSelect)(e=>e("yoast-seo/editor").getFleschReadingEaseDifficulty(),[e]),i=Object(a.useMemo)(()=>{const t=Object(l.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease_article","");return u(e,n,t)},[e,n]);return-1===e&&(e="?"),Object(a.createElement)(o.InsightsCard,{amount:e,unit:Object(s.__)("out of 100","wordpress-seo"),title:Object(s.__)("Flesch reading ease","wordpress-seo"),linkTo:t /* translators: Hidden accessibility text. */,linkText:Object(s.__)("Learn more about Flesch reading ease","wordpress-seo"),description:i})}},function(e,t,n){"use strict";var a=n(0),r=n(5),s=n(1),o=n(9),i=n(4);t.a=()=>{const e=Object(r.useSelect)(e=>e("yoast-seo/editor").getTextLength(),[]),t=Object(a.useMemo)(()=>Object(i.get)(window,"wpseoAdminL10n.shortlinks-insights-word_count",""),[]);let n=Object(s._n)("word","words",e.count,"wordpress-seo"),c=Object(s.__)("Word count","wordpress-seo"),l=Object(s.__)("Learn more about word count","wordpress-seo");return"character"===e.unit&&(n=Object(s._n)("character","characters",e.count,"wordpress-seo"),c=Object(s.__)("Character count","wordpress-seo"), /* translators: Hidden accessibility text. */ l=Object(s.__)("Learn more about character count","wordpress-seo")),Object(a.createElement)(o.InsightsCard,{amount:e.count,unit:n,title:c,linkTo:t,linkText:l})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(10),r=n.n(a),s=n(0),o=n(85),i=n(1),c=n(13),l=n(21),d=n(6),u=n(55),p=n(50),m=n(49),h=n(61),b=n(52),g=n(31);const f=()=>{const[e,,,t,n]=Object(d.useToggleState)(!1),{locationContext:a}=Object(l.useRootContext)(),f=Object(d.useSvgAria)(),y=a.includes("sidebar"),O=a.includes("metabox"),w=wpseoAdminL10n[y?"shortlinks.upsell.sidebar.internal_linking_suggestions":"shortlinks.upsell.metabox.internal_linking_suggestions"];return Object(s.createElement)(s.Fragment,null,e&&Object(s.createElement)(g.a,{title:Object(i.__)("Get internal linking suggestions","wordpress-seo"),onRequestClose:n,additionalClassName:"",id:"yoast-internal-linking-suggestions-upsell",className:g.b+" yoast-gutenberg-modal__box yoast-gutenberg-modal__no-padding",shouldCloseOnClickOutside:!0},Object(s.createElement)(b.b,null,Object(s.createElement)(h.a,{title:Object(i.__)("Rank higher by connecting your content","wordpress-seo"),description:Object(i.sprintf)(/* translators: %s expands to Yoast SEO Premium. */ Object(i.__)("%s automatically suggests to what content you can link with easy drag-and-drop functionality, which is good for your SEO!","wordpress-seo"),"Yoast SEO Premium"),benefitsTitle:/* translators: %s expands to 'Yoast SEO Premium'. */ Object(i.sprintf)("%s also gives you:","Yoast SEO Premium"),benefits:Object(u.a)(),upsellButtonText:Object(i.sprintf)(/* translators: %s expands to 'Yoast SEO Premium'. */ Object(i.__)("Unlock with %s","wordpress-seo"),"Yoast SEO Premium"),upsellButton:{href:Object(c.addQueryArgs)(w,{context:a}),className:"yoast-button-upsell",rel:null,"data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2","data-action":"load-nfd-ctb"},upsellButtonLabel:Object(i.__)("1 year free support and updates included!","wordpress-seo")}))),y&&Object(s.createElement)(m.a,{id:"yoast-internal-linking-suggestions-sidebar-modal-open-button",title:Object(i.__)("Internal linking suggestions","wordpress-seo"),onClick:t},Object(s.createElement)("div",{className:"yst-root"},Object(s.createElement)(d.Badge,{size:"small",variant:"upsell"},Object(s.createElement)(o.a,r()({className:"yst-w-2.5 yst-h-2.5 yst-shrink-0"},f))))),O&&Object(s.createElement)("div",{className:"yst-root"},Object(s.createElement)(p.a,{id:"yoast-internal-linking-suggestions-metabox-modal-open-button",onClick:t},Object(s.createElement)(p.a.Text,null,Object(i.__)("Internal linking suggestions","wordpress-seo")),Object(s.createElement)(d.Badge,{size:"small",variant:"upsell"},Object(s.createElement)(o.a,r()({className:"yst-w-2.5 yst-h-2.5 yst-mr-1 yst-shrink-0"},f)),Object(s.createElement)("span",null,"Premium")))))}},function(e,t,n){"use strict";var a=n(10),r=n.n(a),s=n(0),o=n(85),i=n(1),c=n(9),l=n(17),d=n(6),u=n(2),p=n.n(u),m=n(50),h=n(49),b=n(52),g=n(31),f=n(120);const y=e=>{let{location:t}=e;const[n,a]=Object(s.useState)(!1),u=Object(s.useCallback)(()=>a(!1),[]),p=Object(s.useCallback)(()=>a(!0),[]),y=Object(d.useSvgAria)();return Object(s.createElement)(s.Fragment,null,n&&Object(s.createElement)(g.a,{title:Object(i.__)("Unlock Premium SEO analysis","wordpress-seo"),onRequestClose:u,additionalClassName:"",className:g.b+" yoast-gutenberg-modal__box yoast-gutenberg-modal__no-padding",id:"yoast-premium-seo-analysis-modal",shouldCloseOnClickOutside:!0},Object(s.createElement)(b.b,null,Object(s.createElement)(f.a,{buyLink:`shortlinks.upsell.${t}.premium_seo_analysis_button`}))),"sidebar"===t&&Object(s.createElement)(h.a,{id:"yoast-premium-seo-analysis-modal-open-button",title:Object(i.__)("Premium SEO analysis","wordpress-seo"),prefixIcon:{icon:"seo-score-none",color:l.colors.$color_grey},onClick:p},Object(s.createElement)("div",{className:"yst-root"},Object(s.createElement)(d.Badge,{size:"small",variant:"upsell"},Object(s.createElement)(o.a,r()({className:"yst-w-2.5 yst-h-2.5 yst-shrink-0"},y))))),"metabox"===t&&Object(s.createElement)("div",{className:"yst-root"},Object(s.createElement)(m.a,{id:"yoast-premium-seo-analysis-metabox-modal-open-button",onClick:p},Object(s.createElement)(c.SvgIcon,{icon:"seo-score-none",color:l.colors.$color_grey}),Object(s.createElement)(m.a.Text,null,Object(i.__)("Premium SEO analysis","wordpress-seo")),Object(s.createElement)(d.Badge,{size:"small",variant:"upsell"},Object(s.createElement)(o.a,r()({className:"yst-w-2.5 yst-h-2.5 yst-mr-1 yst-shrink-0"},y)),Object(s.createElement)("span",null,"Premium")))))};y.propTypes={location:p.a.string},y.defaultProps={location:"sidebar"},t.a=y},function(e,t,n){"use strict";var a=n(10),r=n.n(a),s=n(0),o=n(85),i=n(1),c=n(13),l=n(9),d=n(21),u=n(17),p=n(6),m=n(50),h=n(49),b=n(52),g=n(31),f=n(142);t.a=()=>{const[e,,,t,n]=Object(p.useToggleState)(!1),a=Object(s.useContext)(d.LocationContext),{locationContext:y}=Object(d.useRootContext)(),O=Object(p.useSvgAria)(),w=wpseoAdminL10n["sidebar"===a.toLowerCase()?"shortlinks.upsell.sidebar.additional_button":"shortlinks.upsell.metabox.additional_button"];return Object(s.createElement)(s.Fragment,null,e&&Object(s.createElement)(g.a,{title:Object(i.__)("Add related keyphrases","wordpress-seo"),onRequestClose:n,additionalClassName:"",id:"yoast-additional-keyphrases-modal",className:g.b+" yoast-gutenberg-modal__box yoast-gutenberg-modal__no-padding",shouldCloseOnClickOutside:!0},Object(s.createElement)(b.b,null,Object(s.createElement)(f.a,{buyLink:Object(c.addQueryArgs)(w,{context:y})}))),"sidebar"===a&&Object(s.createElement)(h.a,{id:"yoast-additional-keyphrase-modal-open-button",title:Object(i.__)("Add related keyphrase","wordpress-seo"),prefixIcon:{icon:"plus",color:u.colors.$color_grey_medium_dark},onClick:t},Object(s.createElement)("div",{className:"yst-root"},Object(s.createElement)(p.Badge,{size:"small",variant:"upsell"},Object(s.createElement)(o.a,r()({className:"yst-w-2.5 yst-h-2.5 yst-shrink-0"},O))))),"metabox"===a&&Object(s.createElement)("div",{className:"yst-root"},Object(s.createElement)(m.a,{id:"yoast-additional-keyphrase-metabox-modal-open-button",onClick:t},Object(s.createElement)(l.SvgIcon,{icon:"plus",color:u.colors.$color_grey_medium_dark}),Object(s.createElement)(m.a.Text,null,Object(i.__)("Add related keyphrase","wordpress-seo")),Object(s.createElement)(p.Badge,{size:"small",variant:"upsell"},Object(s.createElement)(o.a,r()({className:"yst-w-2.5 yst-h-2.5 yst-mr-1 yst-shrink-0"},O)),Object(s.createElement)("span",null,"Premium")))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(10),r=n.n(a),s=n(0),o=n(5),i=n(1),c=n(13),l=n(2),d=n.n(l),u=n(92);const p=e=>{let{store:t="yoast-seo/editor",location:n="sidebar",...a}=e;const l=Object(o.useSelect)(e=>e(t).getIsPremium(),[t]),d=Object(o.useSelect)(e=>e(t).selectLinkParams(),[t]),p="sidebar"===n?Object(i.sprintf)(/* translators: %1$s expands to YOAST SEO PREMIUM */ Object(i.__)("BLACK FRIDAY SALE: %1$s","wordpress-seo"),"YOAST SEO PREMIUM"):Object(s.createInterpolateElement)(Object(i.sprintf)(/* translators: %1$s expands to YOAST SEO PREMIUM, %2$s expands to a link on yoast.com, %3$s expands to the anchor end tag. */ Object(i.__)("BLACK FRIDAY SALE: %1$s %2$sBuy now!%3$s","wordpress-seo"),"YOAST SEO PREMIUM","",""),{a:Object(s.createElement)("a",{href:Object(c.addQueryArgs)("https://yoa.st/black-friday-sale",d),target:"_blank",rel:"noreferrer"})});return l?null:Object(s.createElement)(u.a,r()({id:"black-friday-2023-promotion-"+n,promoId:"black-friday-2023-promotion",alertKey:"black-friday-2023-promotion",store:t,title:p,image:Image},a),Object(s.createElement)("span",{className:"yoast-bf-sale-badge"},Object(i.__)("30% OFF!","wordpress-seo")," "),"sidebar"===n&&Object(s.createElement)("a",{className:"yst-block yst--mb-[1em]",href:Object(c.addQueryArgs)("https://yoa.st/black-friday-sale",d),target:"_blank",rel:"noreferrer"},Object(i.__)("Buy now!","wordpress-seo")))};p.propTypes={store:d.a.string,location:d.a.oneOf(["sidebar","metabox"])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a=()=>window.wpseoScriptData&&"1"===window.wpseoScriptData.isWooCommerceActive},,function(e,t,n){"use strict";var a=n(18),r=n(5),s=n(0),o=n(1),i=n(9),c=n(11),l=n(2),d=n.n(l),u=n(21),p=n(4),m=n(47),h=n(20);const b=e=>{if(!e.isAuthenticated)return null;const t=Object(s.useCallback)(()=>{Object(m.d)()});return Object(s.createElement)(h.Button,{variant:"link",onClick:t},Object(o.__)("Manage WordProof settings","wordpress-seo"))};b.propTypes={isAuthenticated:d.a.bool.isRequired};const g=e=>{const t=Object(s.useCallback)(()=>{Object(m.c)()});return!e.isAuthenticated&&e.toggleIsEnabled?Object(s.createElement)(h.Button,{variant:"link",onClick:t},Object(o.__)("Authenticate with WordProof","wordpress-seo")):null};g.propTypes={isAuthenticated:d.a.bool.isRequired,toggleIsEnabled:d.a.bool.isRequired};class f extends s.Component{constructor(e){super(e),this.handleToggle=this.handleToggle.bind(this),this.turnToggleOff=this.turnToggleOff.bind(this),this.turnToggleOn=this.turnToggleOn.bind(this)}componentDidMount(){window.addEventListener("wordproof:webhook:failed",this.turnToggleOff,!1),window.addEventListener("wordproof:oauth:success",this.turnToggleOn,!1)}componentWillUnmount(){window.removeEventListener("wordproof:webhook:failed",this.turnToggleOff,!1),window.removeEventListener("wordproof:oauth:success",this.turnToggleOn,!1)}handleToggle(e){this.props.isAuthenticated||!e?this.props.onToggle(e):Object(m.c)()}turnToggleOn(){this.props.onToggle(!0)}turnToggleOff(){this.props.onToggle(!1)}render(){return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(i.FieldGroup /* translators: Hidden accessibility text. */,{linkText:Object(o.__)("Learn more about timestamping","wordpress-seo"),linkTo:"https://yoa.st/wordproof-integration",htmlFor:this.props.id,label:Object(o.__)("Timestamp with WordProof","wordpress-seo")},Object(s.createElement)(i.Toggle,{id:this.props.id,labelText:Object(o.sprintf)(/* Translators: %s translates to the Post type in singular form */ Object(o.__)("Timestamp this %s","wordpress-seo"),this.props.postTypeName.toLowerCase()),isEnabled:this.props.isEnabled,onSetToggleState:this.handleToggle}),Object(s.createElement)(b,{isAuthenticated:this.props.isAuthenticated}),Object(s.createElement)(g,{toggleIsEnabled:this.props.isEnabled,isAuthenticated:this.props.isAuthenticated}),!this.props.isAuthenticated&&this.props.isEnabled&&Object(s.createElement)(i.Alert,{className:"yoast-wordproof-metabox-alert",type:"info"},Object(o.__)("Unable to create new timestamps. Please authenticate with WordProof.","wordpress-seo"))))}}f.propTypes={id:d.a.string,isEnabled:d.a.bool,onToggle:d.a.func,postTypeName:d.a.string,isAuthenticated:d.a.bool.isRequired},f.defaultProps={id:"timestamp-toggle",isEnabled:!0,postTypeName:"post",onToggle:p.noop};var y=Object(a.compose)([Object(r.withSelect)(e=>({isAuthenticated:e("wordproof").getIsAuthenticated()}))])(f);const O=e=>{let{noIndex:t,onNoIndexChange:n,editorContext:a,isPrivateBlog:r}=e;const l=(e=>{const t=Object(o.__)("No","wordpress-seo"),n=Object(o.__)("Yes","wordpress-seo"),a=e.noIndex?t:n;return window.wpseoScriptData.isPost?[{name:Object(o.sprintf)(/* translators: the first %s translates to "yes" or "no", the second %s translates to the content type label in plural form */ Object(o.__)("%s (current default for %s)","wordpress-seo"),a,e.postTypeNamePlural),value:"0"},{name:t,value:"1"},{name:n,value:"2"}]:[{name:Object(o.sprintf)(/* translators: the first %s translates to "yes" or "no", the second %s translates to the content type label in plural form */ Object(o.__)("%s (current default for %s)","wordpress-seo"),a,e.postTypeNamePlural),value:"default"},{name:n,value:"index"},{name:t,value:"noindex"}]})(a);return Object(s.createElement)(u.LocationConsumer,null,e=>Object(s.createElement)(s.Fragment,null,r&&Object(s.createElement)(i.Alert,{type:"warning"},Object(o.__)("Even though you can set the meta robots setting here, the entire site is set to noindex in the sitewide privacy settings, so these settings won't have an effect.","wordpress-seo")),Object(s.createElement)(i.Select,{label:Object(o.__)("Allow search engines to show this content in search results?","wordpress-seo"),onChange:n,id:Object(c.join)(["yoast-meta-robots-noindex",e]),options:l,selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.allow_search_engines"] /* translators: Hidden accessibility text. */,linkText:Object(o.__)("Learn more about the no-index setting on our help page.","wordpress-seo")})))};O.propTypes={noIndex:d.a.string.isRequired,onNoIndexChange:d.a.func.isRequired,editorContext:d.a.object.isRequired,isPrivateBlog:d.a.bool},O.defaultProps={isPrivateBlog:!1};const w=e=>{let{noFollow:t,onNoFollowChange:n}=e;return Object(s.createElement)(u.LocationConsumer,null,e=>{const a=Object(c.join)(["yoast-meta-robots-nofollow",e]);return Object(s.createElement)(i.RadioButtonGroup,{id:a,options:[{value:"0",label:"Yes"},{value:"1",label:"No"}],label:Object(o.__)("Should search engines follow links on this content?","wordpress-seo"),groupName:a,onChange:n,selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.follow_links"] /* translators: Hidden accessibility text. */,linkText:Object(o.__)("Learn more about the no-follow setting on our help page.","wordpress-seo")})})};w.propTypes={noFollow:d.a.string.isRequired,onNoFollowChange:d.a.func.isRequired};const j=e=>{let{advanced:t,onAdvancedChange:n}=e;return Object(s.createElement)(u.LocationConsumer,null,e=>{const a=Object(c.join)(["yoast-meta-robots-advanced",e]),r=a+"-input";return Object(s.createElement)(i.MultiSelect,{label:Object(o.__)("Meta robots advanced","wordpress-seo"),onChange:n,id:a,inputId:r,options:[{name:Object(o.__)("No Image Index","wordpress-seo"),value:"noimageindex"},{name:Object(o.__)("No Archive","wordpress-seo"),value:"noarchive"},{name:Object(o.__)("No Snippet","wordpress-seo"),value:"nosnippet"}],selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.meta_robots"] /* translators: Hidden accessibility text. */,linkText:Object(o.__)("Learn more about advanced meta robots settings on our help page.","wordpress-seo")})})};j.propTypes={advanced:d.a.array.isRequired,onAdvancedChange:d.a.func.isRequired};const E=e=>{let{breadcrumbsTitle:t,onBreadcrumbsTitleChange:n}=e;return Object(s.createElement)(u.LocationConsumer,null,e=>Object(s.createElement)(i.TextInput,{label:Object(o.__)("Breadcrumbs Title","wordpress-seo"),id:Object(c.join)(["yoast-breadcrumbs-title",e]),onChange:n,value:t,linkTo:wpseoAdminL10n["shortlinks.advanced.breadcrumbs_title"] /* translators: Hidden accessibility text. */,linkText:Object(o.__)("Learn more about the breadcrumbs title setting on our help page.","wordpress-seo")}))};E.propTypes={breadcrumbsTitle:d.a.string.isRequired,onBreadcrumbsTitleChange:d.a.func.isRequired};const v=e=>{let{canonical:t,onCanonicalChange:n}=e;return Object(s.createElement)(u.LocationConsumer,null,e=>Object(s.createElement)(i.TextInput,{label:Object(o.__)("Canonical URL","wordpress-seo"),id:Object(c.join)(["yoast-canonical",e]),onChange:n,value:t,linkTo:"https://yoa.st/canonical-url" /* translators: Hidden accessibility text. */,linkText:Object(o.__)("Learn more about canonical URLs on our help page.","wordpress-seo")}))};v.propTypes={canonical:d.a.string.isRequired,onCanonicalChange:d.a.func.isRequired};const _=e=>{let{wordproofTimestamp:t,onWordProofTimestampChange:n,postTypeName:a}=e;return Object(s.createElement)(u.LocationConsumer,null,e=>Object(s.createElement)(y,{id:Object(c.join)(["yoast-wordproof-timestamp",e]),isEnabled:t,onToggle:n,postTypeName:a}))};_.propTypes={wordproofTimestamp:d.a.bool.isRequired,onWordProofTimestampChange:d.a.func.isRequired,postTypeName:d.a.string.isRequired};const k=e=>{const{noIndex:t,noFollow:n,advanced:a,breadcrumbsTitle:r,canonical:o,wordproofTimestamp:i,onNoIndexChange:c,onNoFollowChange:l,onAdvancedChange:d,onBreadcrumbsTitleChange:u,onCanonicalChange:p,onWordProofTimestampChange:m,onLoad:h,isLoading:b,editorContext:g,isBreadcrumbsDisabled:f,isPrivateBlog:y,isWordProofIntegrationActive:k}=e;Object(s.useEffect)(()=>{setTimeout(()=>{b&&h()})});const T={noIndex:t,onNoIndexChange:c,editorContext:g,isPrivateBlog:y},x={noFollow:n,onNoFollowChange:l},C={advanced:a,onAdvancedChange:d},S={breadcrumbsTitle:r,onBreadcrumbsTitleChange:u},R={canonical:o,onCanonicalChange:p},I={wordproofTimestamp:i,onWordProofTimestampChange:m,postTypeName:g.postTypeNameSingular};return b?null:Object(s.createElement)(s.Fragment,null,Object(s.createElement)(O,T),g.isPost&&Object(s.createElement)(w,x),g.isPost&&Object(s.createElement)(j,C),!f&&Object(s.createElement)(E,S),Object(s.createElement)(v,R),k&&Object(s.createElement)(_,I))};k.propTypes={noIndex:d.a.string.isRequired,canonical:d.a.string.isRequired,wordproofTimestamp:d.a.bool,onNoIndexChange:d.a.func.isRequired,onCanonicalChange:d.a.func.isRequired,onWordProofTimestampChange:d.a.func,onLoad:d.a.func.isRequired,isLoading:d.a.bool.isRequired,editorContext:d.a.object.isRequired,isBreadcrumbsDisabled:d.a.bool.isRequired,isPrivateBlog:d.a.bool,advanced:d.a.array,onAdvancedChange:d.a.func,noFollow:d.a.string,onNoFollowChange:d.a.func,breadcrumbsTitle:d.a.string,onBreadcrumbsTitleChange:d.a.func,isWordProofIntegrationActive:d.a.bool.isRequired},k.defaultProps={advanced:[],onAdvancedChange:()=>{},noFollow:"",onNoFollowChange:()=>{},breadcrumbsTitle:"",onBreadcrumbsTitleChange:()=>{},isPrivateBlog:!1,onWordProofTimestampChange:()=>{},wordproofTimestamp:!1};var T=k;t.a=Object(a.compose)([Object(r.withSelect)(e=>{const{getNoIndex:t,getNoFollow:n,getAdvanced:a,getBreadcrumbsTitle:r,getCanonical:s,getWordProofTimestamp:o,getIsLoading:i,getEditorContext:c,getPreferences:l}=e("yoast-seo/editor"),{isBreadcrumbsDisabled:d,isPrivateBlog:u,isWordProofIntegrationActive:p}=l();return{noIndex:t(),noFollow:n(),advanced:a(),breadcrumbsTitle:r(),canonical:s(),wordproofTimestamp:o(),isLoading:i(),editorContext:c(),isBreadcrumbsDisabled:d,isPrivateBlog:u,isWordProofIntegrationActive:p}}),Object(r.withDispatch)(e=>{const{setNoIndex:t,setNoFollow:n,setAdvanced:a,setBreadcrumbsTitle:r,setCanonical:s,setWordProofTimestamp:o,loadAdvancedSettingsData:i}=e("yoast-seo/editor");return{onNoIndexChange:t,onNoFollowChange:n,onAdvancedChange:a,onBreadcrumbsTitleChange:r,onCanonicalChange:s,onWordProofTimestampChange:o,onLoad:i}})])(T)},function(e,t,n){"use strict";var a=n(0),r=n(18),s=n(5),o=n(1),i=n(2),c=n.n(i),l=n(9),d=n(11),u=n(42),p=n.n(u),m=n(8),h=n.n(m),b=n(122),g=n(4);const f=Object(d.makeOutboundLink)(),y=h.a.div` padding: 16px; `;function O(e){let{location:t,show:n}=e;return n?Object(a.createElement)(l.Alert,{type:"info"},Object(o.sprintf)(/* translators: %s Expands to "Yoast News SEO" */ Object(o.__)("Are you working on a news article? %s helps you optimize your site for Google News.","wordpress-seo"),"Yoast News SEO")+" ",Object(a.createElement)(f,{href:window.wpseoAdminL10n[`shortlinks.upsell.${t}.news`]},Object(o.sprintf)(/* translators: %s: Expands to "Yoast News SEO". */ Object(o.__)("Buy %s now!","wordpress-seo"),"Yoast News SEO"))):null}O.propTypes={show:c.a.bool.isRequired,location:c.a.string.isRequired};const w=(e,t,n)=>{const a=e.find(e=>e.value===t);return[{name:Object(o.sprintf)(/* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */ Object(o.__)("Default for %1$s (%2$s)","wordpress-seo"),n,a?a.name:""),value:""},...e]},j=e=>Object(o.sprintf)(/* translators: %1$s expands to the plural name of the current post type, %2$s and %3$s expand to a link to the Settings page */ Object(o.__)("You can change the default type for %1$s under Content types in the %2$sSettings%3$s.","wordpress-seo"),e,"{{link}}","{{/link}}");c.a.string.isRequired,c.a.string.isRequired,c.a.string.isRequired;const E=e=>{const t=w(e.pageTypeOptions,e.defaultPageType,e.postTypeName),n=w(e.articleTypeOptions,e.defaultArticleType,e.postTypeName),r=Object(g.get)(window,"wpseoScriptData.metabox.woocommerceUpsellSchemaLink",""),s=Object(g.get)(window,"wpseoScriptData.woocommerceUpsell",""),[i,c]=Object(a.useState)(e.schemaArticleTypeSelected),u=Object(o.__)("Want your products stand out in search results with rich results like price, reviews and more?","wordpress-seo"),m=Object(a.useCallback)((e,t)=>{c(t)},[i]);return Object(a.useEffect)(()=>{m(null,e.schemaArticleTypeSelected)},[e.schemaArticleTypeSelected]),Object(a.createElement)(a.Fragment,null,Object(a.createElement)(l.FieldGroup,{label:Object(o.__)("What type of page or content is this?","wordpress-seo"),linkTo:e.additionalHelpTextLink /* translators: Hidden accessibility text. */,linkText:Object(o.__)("Learn more about page or content types","wordpress-seo")}),s&&Object(a.createElement)(b.a,{link:r,text:u}),Object(a.createElement)(l.Select,{id:Object(d.join)(["yoast-schema-page-type",e.location]),options:t,label:Object(o.__)("Page type","wordpress-seo"),onChange:e.schemaPageTypeChange,selected:e.schemaPageTypeSelected}),e.showArticleTypeInput&&Object(a.createElement)(l.Select,{id:Object(d.join)(["yoast-schema-article-type",e.location]),options:n,label:Object(o.__)("Article type","wordpress-seo"),onChange:e.schemaArticleTypeChange,selected:e.schemaArticleTypeSelected,onOptionFocus:m}),Object(a.createElement)(O,{location:e.location,show:!e.isNewsEnabled&&(f=i,y=e.defaultArticleType,"NewsArticle"===f||""===f&&"NewsArticle"===y)}),e.displayFooter&&Object(a.createElement)("p",null,(h=e.postTypeName,p()({mixedString:j(h),components:{link:Object(a.createElement)("a",{href:"/wp-admin/admin.php?page=wpseo_page_settings",target:"_blank"})}}))));var h,f,y},v=c.a.arrayOf(c.a.shape({name:c.a.string,value:c.a.string}));E.propTypes={schemaPageTypeChange:c.a.func,schemaPageTypeSelected:c.a.string,pageTypeOptions:v.isRequired,schemaArticleTypeChange:c.a.func,schemaArticleTypeSelected:c.a.string,articleTypeOptions:v.isRequired,showArticleTypeInput:c.a.bool.isRequired,additionalHelpTextLink:c.a.string.isRequired,helpTextLink:c.a.string.isRequired,helpTextTitle:c.a.string.isRequired,helpTextDescription:c.a.string.isRequired,postTypeName:c.a.string.isRequired,displayFooter:c.a.bool,defaultPageType:c.a.string.isRequired,defaultArticleType:c.a.string.isRequired,location:c.a.string.isRequired,isNewsEnabled:c.a.bool},E.defaultProps={schemaPageTypeChange:()=>{},schemaPageTypeSelected:null,schemaArticleTypeChange:()=>{},schemaArticleTypeSelected:null,displayFooter:!1,isNewsEnabled:!1};const _=e=>e.isMetabox?Object(a.createPortal)(Object(a.createElement)(y,null,Object(a.createElement)(E,e)),document.getElementById("wpseo-meta-section-schema")):Object(a.createElement)(E,e);_.propTypes={showArticleTypeInput:c.a.bool,articleTypeLabel:c.a.string,additionalHelpTextLink:c.a.string,pageTypeLabel:c.a.string.isRequired,helpTextLink:c.a.string.isRequired,helpTextTitle:c.a.string.isRequired,helpTextDescription:c.a.string.isRequired,isMetabox:c.a.bool.isRequired,postTypeName:c.a.string.isRequired,displayFooter:c.a.bool,loadSchemaArticleData:c.a.func.isRequired,loadSchemaPageData:c.a.func.isRequired,location:c.a.string.isRequired},_.defaultProps={showArticleTypeInput:!1,articleTypeLabel:"",additionalHelpTextLink:"",displayFooter:!1};var k=_,T=n(108),x=n(72);const C=e=>{const t=null!==T.a.articleTypeInput;Object(a.useEffect)(()=>{e.loadSchemaPageData(),t&&e.loadSchemaArticleData()},[]);const{pageTypeOptions:n,articleTypeOptions:r}=window.wpseoScriptData.metabox.schema,s={articleTypeLabel:Object(o.__)("Article type","wordpress-seo"),pageTypeLabel:Object(o.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:Object(o.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:Object(o.__)("This helps search engines understand your website and your content. You can change some of your settings for this page below.","wordpress-seo"),showArticleTypeInput:t,pageTypeOptions:n,articleTypeOptions:r},i={...e,...s,...(c=e.location,"metabox"===c?{helpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.page_type"],isMetabox:!0}:{helpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.page_type"],isMetabox:!1})};var c;return Object(a.createElement)(k,i)};C.propTypes={displayFooter:c.a.bool.isRequired,schemaPageTypeSelected:c.a.string.isRequired,schemaArticleTypeSelected:c.a.string.isRequired,defaultArticleType:c.a.string.isRequired,defaultPageType:c.a.string.isRequired,loadSchemaPageData:c.a.func.isRequired,loadSchemaArticleData:c.a.func.isRequired,schemaPageTypeChange:c.a.func.isRequired,schemaArticleTypeChange:c.a.func.isRequired,location:c.a.string.isRequired},t.a=Object(r.compose)([Object(s.withSelect)(e=>{const{getPreferences:t,getPageType:n,getDefaultPageType:a,getArticleType:r,getDefaultArticleType:s}=e("yoast-seo/editor"),{displaySchemaSettingsFooter:o,isNewsEnabled:i}=t();return{displayFooter:o,isNewsEnabled:i,schemaPageTypeSelected:n(),schemaArticleTypeSelected:r(),defaultArticleType:s(),defaultPageType:a()}}),Object(s.withDispatch)(e=>{const{setPageType:t,setArticleType:n,getSchemaPageData:a,getSchemaArticleData:r}=e("yoast-seo/editor");return{loadSchemaPageData:a,loadSchemaArticleData:r,schemaPageTypeChange:t,schemaArticleTypeChange:n}}),Object(x.a)()])(C)},function(e,t,n){"use strict";var a=n(10),r=n.n(a),s=n(0),o=n(18),i=n(5),c=n(1),l=n(175),d=n(21),u=n(2),p=n.n(u),m=n(8),h=n.n(m),b=n(9),g=n(11);const f=h()(b.StyledSection)` &${b.StyledSectionBase} { padding: 0; & ${b.StyledHeading} { ${Object(g.getDirectionalStyle)("padding-left","padding-right")}: 20px; margin-left: ${Object(g.getDirectionalStyle)("0","20px")}; } } `,y=e=>{let{children:t,title:n,icon:a,hasPaperStyle:r,shoppingData:o}=e;return Object(s.createElement)(f,{headingLevel:3,headingText:n,headingIcon:a,headingIconColor:"#555",hasPaperStyle:r,shoppingData:o},t)};y.propTypes={children:p.a.element,title:p.a.string,icon:p.a.string,hasPaperStyle:p.a.bool,shoppingData:p.a.object},y.defaultProps={hasPaperStyle:!0,shoppingData:null};var O=y,w=n(67),j=n(88),E=n(122),v=n(4);const _=function(e,t){let n=0;return t.shortenedBaseUrl&&"string"==typeof t.shortenedBaseUrl&&(n=t.shortenedBaseUrl.length),e.url=e.url.replace(/\s+/g,"-"),"-"===e.url[e.url.length-1]&&(e.url=e.url.slice(0,-1)),"-"===e.url[n]&&(e.url=e.url.slice(0,n)+e.url.slice(n+1)),Object(w.applyReplaceUsingPlugin)(e)};t.a=Object(o.compose)([Object(i.withSelect)((function(e){const{getBaseUrlFromSettings:t,getDateFromSettings:n,getFocusKeyphrase:a,getRecommendedReplaceVars:r,getReplaceVars:s,getShoppingData:o,getSiteIconUrlFromSettings:i,getSnippetEditorData:c,getSnippetEditorMode:l,getSnippetEditorPreviewImageUrl:d,getSnippetEditorWordsToHighlight:u,isCornerstoneContent:p,getIsTerm:m,getContentLocale:h,getSiteName:b}=e("yoast-seo/editor"),g=s();return g.forEach(e=>{""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(e.value="%%"+e.name+"%%")}),{baseUrl:t(),data:c(),date:n(),faviconSrc:i(),keyword:a(),mobileImageSrc:d(),mode:l(),recommendedReplacementVariables:r(),replacementVariables:g,shoppingData:o(),wordsToHighlight:u(),isCornerstone:p(),isTaxonomy:m(),locale:h(),siteName:b()}})),Object(i.withDispatch)((function(e,t,n){let{select:a}=n;const{updateData:r,switchMode:s,updateAnalysisData:o,findCustomFields:i}=e("yoast-seo/editor"),c=e("core/editor"),l=a("yoast-seo/editor").getPostId();return{onChange:(e,t)=>{switch(e){case"mode":s(t);break;case"slug":r({slug:t}),c&&c.editPost({slug:t});break;default:r({[e]:t})}},onChangeAnalysisData:o,onReplacementVariableSearchChange:Object(j.a)(l,i)}}))])(e=>{const t=Object(v.get)(window,"wpseoScriptData.metabox.woocommerceUpsellGooglePreviewLink",""),n=Object(v.get)(window,"wpseoScriptData.woocommerceUpsell",""),a=Object(c.__)("Want an enhanced Google preview of how your WooCommerce products look in the search results?","wordpress-seo");return Object(s.createElement)(d.LocationConsumer,null,o=>Object(s.createElement)(O,{icon:"eye",hasPaperStyle:e.hasPaperStyle},Object(s.createElement)(s.Fragment,null,n&&Object(s.createElement)(E.a,{link:t,text:a}),Object(s.createElement)(l.SnippetEditor,r()({},e,{descriptionPlaceholder:Object(c.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:_,showCloseButton:!1,idSuffix:o})))))})},function(e,t,n){"use strict";var a=n(0),r=n(5),s=n(1),o=n(11),i=n(4),c=n(2),l=n.n(c),d=n(80),u=n(10),p=n.n(u),m=n(33),h=n.n(m);const b=e=>{let{data:t,itemScreenReaderText:n,className:r,...o}=e;const c=Object(a.useMemo)(()=>{var e,n;return null!==(e=null===(n=Object(i.maxBy)(t,"number"))||void 0===n?void 0:n.number)&&void 0!==e?e:0},[t]);return Object(a.createElement)("ul",p()({className:h()("yoast-data-model",r)},o),t.map(e=>{let{name:t,number:r}=e;return Object(a.createElement)("li",{key:t+"_dataItem",style:{"--yoast-width":r/c*100+"%"}},t,Object(a.createElement)("span",null,r),n&&Object(a.createElement)("span",{className:"screen-reader-text"},Object(s.sprintf)(n,r)))}))};b.propTypes={data:l.a.arrayOf(l.a.shape({name:l.a.string.isRequired,number:l.a.number.isRequired})),itemScreenReaderText:l.a.string,className:l.a.string},b.defaultProps={data:[],itemScreenReaderText:"",className:""};var g=b,f=n(13),y=n(21);const O=Object(o.makeOutboundLink)(),w=e=>{let{location:t}=e;const n=Object(r.useSelect)(e=>{var t,n;return null===(t=null===(n=e("yoast-seo-premium/editor"))||void 0===n?void 0:n.getPreference("isProminentWordsAvailable",!1))||void 0===t||t},[]),o=Object(r.useSelect)(e=>e("yoast-seo/editor").getPreference("shouldUpsell",!1),[]),c=Object(a.useMemo)(()=>Object(i.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${t}-prominent_words`,""),[t]),l=Object(a.useMemo)(()=>{const e=Object(i.get)(window,"wpseoAdminL10n.shortlinks-insights-keyword_research_link","");return Object(d.a)(Object(s.sprintf)(Object(s.__)("Read our %1$sultimate guide to keyword research%2$s to learn more about keyword research and keyword strategy.","wordpress-seo"),"",""),{a:Object(a.createElement)(O,{href:e})})},[]),u=Object(a.useMemo)(()=>Object(d.a)(Object(s.sprintf)( // translators: %1$s expands to a starting `b` tag, %1$s expands to a closing `b` tag and %3$s expands to `Yoast SEO Premium`. Object(s.__)("With %1$s%3$s%2$s, this section will show you which words occur most often in your text. By checking these prominent words against your intended keyword(s), you'll know how to edit your text to be more focused.","wordpress-seo"),"","","Yoast SEO Premium"),{b:Object(a.createElement)("b",null)}),[]),p=Object(r.useSelect)(e=>{var t,n;return null!==(t=null===(n=e("yoast-seo-premium/editor"))||void 0===n?void 0:n.getProminentWords())&&void 0!==t?t:[]},[]),m=Object(a.useMemo)(()=>{const e=Object(s.sprintf)( // translators: %1$s expands to Yoast SEO Premium. Object(s.__)("Get %s to enjoy the benefits of prominent words","wordpress-seo"),"Yoast SEO Premium").split(/\s+/);return e.map((t,n)=>({name:t,number:e.length-n}))},[]),h=Object(a.useMemo)(()=>o?m:p.map(e=>{let{word:t,occurrence:n}=e;return{name:t,number:n}}),[p,m]);if(!n)return null;const{locationContext:b}=Object(y.useRootContext)();return Object(a.createElement)("div",{className:"yoast-prominent-words"},Object(a.createElement)("div",{className:"yoast-field-group__title"},Object(a.createElement)("b",null,Object(s.__)("Prominent words","wordpress-seo"))),!o&&Object(a.createElement)("p",null,0===h.length?Object(s.__)("Once you add a bit more copy, we'll give you a list of words that occur the most in the content. These give an indication of what your content focuses on.","wordpress-seo"):Object(s.__)("The following words occur the most in the content. These give an indication of what your content focuses on. If the words differ a lot from your topic, you might want to rewrite your content accordingly.","wordpress-seo")),o&&Object(a.createElement)("p",null,u),o&&Object(a.createElement)(O,{href:Object(f.addQueryArgs)(c,{context:b}),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",className:"yoast-button yoast-button-upsell"},Object(s.sprintf)( // translators: %s expands to `Premium` (part of add-on name). Object(s.__)("Unlock with %s","wordpress-seo"),"Premium"),Object(a.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})),Object(a.createElement)("p",null,l),Object(a.createElement)(g,{data:h,itemScreenReaderText:/* translators: Hidden accessibility text; %d expands to the number of occurrences. */ Object(s.__)("%d occurrences","wordpress-seo"),"aria-label":Object(s.__)("Prominent words","wordpress-seo"),className:o?"yoast-data-model--upsell":null}))};w.propTypes={location:l.a.string.isRequired},t.a=w},function(e,t,n){"use strict";var a=n(0),r=n(20),s=n(1),o=n(9),i=n(4),c=n(2),l=n.n(c),d=n(11),u=n(80);const p=Object(d.makeOutboundLink)(),m=e=>{let{location:t}=e;const n=Object(a.useMemo)(()=>Object(i.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${t}-text_formality`,""),[t]),r=Object(a.useMemo)(()=>Object(u.a)(Object(s.sprintf)( // Translators: %1$s expands to a starting `b` tag, %2$s expands to a closing `b` tag and %3$s expands to `Yoast SEO Premium`. Object(s.__)("%1$s%3$s%2$s will help you assess the formality level of your text.","wordpress-seo"),"","","Yoast SEO Premium"),{b:Object(a.createElement)("b",null)}),[]);return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",null,Object(a.createElement)("p",null,r),Object(a.createElement)(p,{href:n,className:"yoast-button yoast-button-upsell"},Object(s.sprintf)( // Translators: %s expands to `Premium` (part of add-on name). Object(s.__)("Unlock with %s","wordpress-seo"),"Premium"),Object(a.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"}))))};m.propTypes={location:l.a.string.isRequired};var h=m,b=n(5),g=n(19);const f=e=>{let{location:t,name:n}=e;const c=Object(b.useSelect)(e=>e("yoast-seo/editor").isFormalitySupported(),[]),l=Object(g.a)().isPremium,d=l?Object(i.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_premium",""):Object(i.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_free",""),u=Object(s.__)("Read more about text formality.","wordpress-seo");return c?Object(a.createElement)("div",{className:"yoast-text-formality"},Object(a.createElement)("div",{className:"yoast-field-group__title"},Object(a.createElement)("b",null,Object(s.__)("Text formality","wordpress-seo")),Object(a.createElement)(o.HelpIcon,{linkTo:d,linkText:u})),l?Object(a.createElement)(r.Slot,{name:n}):Object(a.createElement)(h,{location:t})):null};f.propTypes={location:l.a.string.isRequired,name:l.a.string.isRequired},t.a=f},,function(e,t,n){"use strict";var a=n(3),r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,s=n(116),o=n(164),i=n(165),c="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,a={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return a[e]}))):t.toString(36);var n,a}var d=/\/+/g;function u(e){return(""+e).replace(d,"$&/")}var p,m,h=b,b=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)};function g(e,t,n,a){this.result=e,this.keyPrefix=t,this.func=n,this.context=a,this.count=0}function f(e,t,n){var r,o,i=e.result,c=e.keyPrefix,l=e.func,d=e.context,p=l.call(d,t,e.count++);Array.isArray(p)?y(p,i,n,s.thatReturnsArgument):null!=p&&(a.isValidElement(p)&&(r=p,o=c+(!p.key||t&&t.key===p.key?"":u(p.key)+"/")+n,p=a.cloneElement(r,{key:o},void 0!==r.props?r.props.children:void 0)),i.push(p))}function y(e,t,n,a,s){var i="";null!=n&&(i=u(n)+"/");var d=g.getPooled(t,i,a,s);!function(e,t,n){null==e||function e(t,n,a,s){var i,d=typeof t;if("undefined"!==d&&"boolean"!==d||(t=null),null===t||"string"===d||"number"===d||"object"===d&&t.$$typeof===r)return a(s,t,""===n?"."+l(t,0):n),1;var u=0,p=""===n?".":n+":";if(Array.isArray(t))for(var m=0;mObject(Q.createElement)(Q.Fragment,null,Object(Q.createElement)("p",null,Object(J.a)(Object(X.sprintf)(/* translators: 1: Opening a html tag, 2: Closing a html tag. 3: WordProof. 4. WordPress */ Object(X.__)("Something went wrong authenticating your %3$s account with the %4$s site. Please try again or contact %1$s%3$s support%2$s.","wordpress-seo"),"","","WordProof","WordPress"),"https://help.wordproof.com/"))),te=n(3);function ne(){return(ne=Object.assign||function(e){for(var t=1;t{const{closeModal:t}=e;return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)("div",{className:"yoast-wordproof-modal-image"},Object(Q.createElement)(ae,{class:"yoast-wordproof-modal-svg__success"})),Object(Q.createElement)("p",null,Object(X.sprintf)(/* Translators: %s translates to the Post type in singular form */ Object(X.__)("Your %s is now protected via the blockchain!","wordpress-seo"),Object(re.a)("current_post_type")),Object(Q.createElement)("br",null),Object(Q.createInterpolateElement)(Object(X.sprintf)(Object(X.__)( /** translators: * %1$s and %2$s are replaced by opening and closing tags. * %3$s translates to the Post type in singular form. */ "The %3$s will automatically be timestamped every time you %1$supdate%2$s or %1$spublish%2$s.","wordpress-seo"),"","",Object(re.a)("current_post_type")),{b:Object(Q.createElement)("b",null)})),Object(Q.createElement)("div",{className:"yoast-wordproof-modal-action"},Object(Q.createElement)(se.NewButton,{variant:"primary",onClick:t},"Continue")))};ce.propTypes={closeModal:ie.a.func.isRequired};var le,de=ce;function ue(){return(ue=Object.assign||function(e){for(var t=1;t{const{closeModal:t}=e,n=Object(Q.useCallback)(e=>{t(),e.preventDefault(),Object(re.c)()});return Object(Q.createElement)("div",null,Object(Q.createElement)("div",{className:"yoast-wordproof-modal-image"},Object(Q.createElement)(pe,{className:"yoast-wordproof-modal-svg__webhook-failed"})),Object(Q.createElement)("div",null,Object(X.__)("There was a connection problem. This could be because your third party connections are blocked.","wordpress-seo"),Object(Q.createElement)("br",null),Object(J.a)(Object(X.sprintf)(Object(X.__)("Find possible solutions in this %1$sArticle%2$s.","wordpress-seo"),"",""),"https://help.wordproof.com/en/articles/4823201-how-do-i-whitelist-wordproof-in-cloudflare")),Object(Q.createElement)("div",{className:"yoast-wordproof-modal-action"},Object(Q.createElement)(se.NewButton,{variant:"secondary",onClick:n},Object(X.__)("Try again","wordpress-seo"))),Object(Q.createElement)("div",null,Object(J.a)(Object(X.sprintf)( // translators: %1$s and %2$s are replaced by opening and closing tags. %3$s expands to WordProof. Object(X.__)("Not working? %1$sContact %3$s support%2$s.","wordpress-seo"),"","","WordProof"),"https://help.wordproof.com")))};me.propTypes={closeModal:ie.a.func.isRequired};var he=me,be=n(31);t.a=()=>{const[e,t]=Object(Q.useState)(null),n=Object(Q.useCallback)(()=>{t("oauth:failed")}),a=Object(Q.useCallback)(()=>{t("webhook:failed")}),r=Object(Q.useCallback)(()=>{t("oauth:success")}),s=Object(Q.useCallback)(()=>{t(null)});Object(Q.useEffect)(()=>(window.addEventListener("wordproof:oauth:success",r,!1),window.addEventListener("wordproof:oauth:failed",n,!1),window.addEventListener("wordproof:webhook:failed",a,!1),()=>{window.removeEventListener("wordproof:oauth:success",r,!1),window.removeEventListener("wordproof:oauth:failed",n,!1),window.removeEventListener("wordproof:webhook:failed",a,!1)}),[]);const o=Object(Q.useCallback)(()=>{switch(e){case"webhook:failed":return Object(X.__)("Connection failed","wordpress-seo");case"oauth:success":return Object(X.__)("Connected to WordProof","wordpress-seo");default:return Object(X.__)("WordProof authentication","wordpress-seo")}});return Object(Q.createElement)(Q.Fragment,null,e&&Object(Q.createElement)(be.a,{onRequestClose:s,additionalClassName:"yoast-wordproof-modal",title:o()},"oauth:success"===e&&Object(Q.createElement)(de,{closeModal:s}),"oauth:failed"===e&&Object(Q.createElement)(ee,null),"webhook:failed"===e&&Object(Q.createElement)(he,{closeModal:s})))}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(51),r=n(45),s=n(124),o=n(59);const{dispatch:i}=wp.data;function c(){const{setIsAuthenticated:e,setSelectedPostTypes:t}=i("wordproof"),n=Object(r.a)("popup_redirect_authentication_url"),c=Object(r.a)("popup_redirect_settings_url");let l=null;const d=(e,t)=>{l=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:800,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:680;const s=e.top.outerHeight/2+e.top.screenY-r/2,o=e.top.outerWidth/2+e.top.screenX-a/2;return e.open(t,n,`toolbar=no,\n\t\tlocation=no,\n\t\tdirectories=no,\n\t\tstatus=no,\n\t\tmenubar=no,\n\t\tresizable=no,\n\t\tcopyhistory=no,\n\t\twidth=${a},\n\t\theight=${r},\n\t\ttop=${s},\n\t\tleft=${o}`)}(window,e,t),l&&l.focus(),window.addEventListener("message",u,!1)},u=async e=>{const{data:t,source:n,origin:a}=e;if(a===Object(r.a)("origin")&&l===n)switch(t.type){case"wordproof:oauth:granted":!1===await h(t)&&await p("wordproof:oauth:failed",!1);break;case"wordproof:oauth:failed":await p("wordproof:oauth:failed",!1);break;case"wordproof:oauth:denied":await p("wordproof:oauth:denied",!1);break;case"wordproof:oauth:invalid_token":await p("wordproof:oauth:invalid_token",!1);break;case"wordproof:webhook:success":await p("wordproof:oauth:success",!0);break;case"wordproof:webhook:failed":await p("wordproof:webhook:failed",!1);break;case"wordproof:settings:updated":await p("wordproof:settings:updated"),await b(t);break;case"wordproof:oauth:destroy":await p("wordproof:oauth:destroy",!1);break;case"wordproof:oauth:retry":await p("wordproof:open_authentication",!1);break;case"wordproof:oauth:close":m()}},p=async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;m(),Object(s.a)(t),!1===n&&(await Object(a.b)(),e(!1)),!0===n&&e(!0)},m=()=>{window.removeEventListener("message",u,!1),l.close()},h=async e=>{await Object(a.c)(()=>Object(o.e)(e),async e=>{const t={type:"wordproof:sdk:access-token",source_id:e.source_id};return l.postMessage(t,Object(r.a)("origin")),!0},async()=>!1)},b=async e=>{await Object(a.c)(()=>Object(o.f)(e),async()=>{const n=e.settings;return n.selectedPostTypes&&t(n.selectedPostTypes),!0},async()=>!1)};window.addEventListener("wordproof:open_authentication",e=>{e.preventDefault(),d(n,"WordProof_Authentication")},!1),window.addEventListener("wordproof:open_settings",e=>{e.preventDefault(),d(c,"WordProof_Settings")},!1)}},,,,function(e,t,n){"use strict";var a=n(5),r=n(9);t.a=Object(a.withSelect)(e=>{const{getWarningMessage:t}=e("yoast-seo/editor");return{message:t()}})(r.Warning)},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return ae}));var a=n(0),r=n(2),s=n.n(r),o=n(20),i=n(146),c=n(82);function l(e){let{theme:t}=e;return Object(a.createElement)(c.a,{theme:t,location:"metabox"},Object(a.createElement)(o.Slot,{name:"YoastMetabox"},e=>Object(i.a)(e)))}var d=n(5),u=n(18),p=n(1),m=n(137),h=n(147),b=n(159),g=n(191),f=n(69),y=n(97),O=n(74),w=n(148),j=n(149),E=n(160),v=n(150),_=n(161);const k=e=>{let{location:t}=e;const n=Object(d.useSelect)(e=>e("yoast-seo/editor").isFleschReadingEaseAvailable(),[]);return Object(a.createElement)(O.a,{title:Object(p.__)("Insights","wordpress-seo"),id:"yoast-insights-collapsible-"+t,className:"yoast-insights"},Object(a.createElement)(E.a,{location:t}),Object(a.createElement)("div",null,n&&Object(a.createElement)("div",{className:"yoast-insights-row"},Object(a.createElement)(j.a,null)),Object(a.createElement)("div",{className:"yoast-insights-row yoast-insights-row--columns"},Object(a.createElement)(w.a,null),Object(a.createElement)(v.a,null)),Object(y.isFeatureEnabled)("TEXT_FORMALITY")&&Object(a.createElement)(_.a,{location:t,name:"YoastTextFormalityMetabox"})))};k.propTypes={location:s.a.string},k.defaultProps={location:"metabox"};var T=k,x=n(151),C=n(35),S=n(157),R=n(8),I=n.n(R),L=n(138),P=n(128),A=n(91);const M=I.a.div` padding: 16px; `,F=e=>{let{useOpenGraphData:t,useTwitterData:n}=e;return Object(a.createElement)(a.Fragment,null,n&&t&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)(O.a,{hasSeparator:!1 /* translators: Social media appearance refers to a preview of how a page will be represented on social media. */,title:Object(p.__)("Social media appearance","wordpress-seo"),initialIsOpen:!0},Object(a.createElement)(A.b,null,Object(p.__)("Determine how your post should look on social media like Facebook, Twitter, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")),Object(a.createElement)(L.a,null),Object(a.createElement)(A.a,null,Object(p.__)("To customize the appearance of your post specifically for Twitter, please fill out the 'Twitter appearance' settings below. If you leave these settings untouched, the 'Social media appearance' settings mentioned above will also be applied for sharing on Twitter.","wordpress-seo"))),Object(a.createElement)(O.a,{title:Object(p.__)("Twitter appearance","wordpress-seo"),hasSeparator:!0,initialIsOpen:!1},Object(a.createElement)(P.a,null))),t&&!n&&Object(a.createElement)(M,null,Object(a.createElement)(A.b,null,Object(p.__)("Determine how your post should look on social media like Facebook, Twitter, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")),Object(a.createElement)(L.a,null)),!t&&n&&Object(a.createElement)(M,null,Object(a.createElement)(A.b,null,Object(p.__)("To customize the appearance of your post specifically for Twitter, please fill out the 'Twitter appearance' settings below.","wordpress-seo")),Object(a.createElement)(P.a,null)))};F.propTypes={useOpenGraphData:s.a.bool.isRequired,useTwitterData:s.a.bool.isRequired};var q=F,D=Object(d.withSelect)(e=>{const{getPreferences:t}=e("yoast-seo/editor"),{useOpenGraphData:n,useTwitterData:a}=t();return{useOpenGraphData:n,useTwitterData:a}})(q),N=n(79);function W(e){let{target:t}=e;return Object(a.createElement)(N.a,{target:t},Object(a.createElement)(D,null))}W.propTypes={target:s.a.string.isRequired};var B=n(158),z=n(144),U=n(47),$=n(185),H=n(152),K=n(153),Y=n(13),V=n(130),G=n(92),Z=n(154),Q=n(155);const X=e=>t=>!(()=>{var e,t;const n=Object(d.select)("yoast-seo/editor").getIsPremium(),a=Object(d.select)("yoast-seo/editor").getWarningMessage();return(n&&null!==(e=null===(t=Object(d.select)("yoast-seo-premium/editor"))||void 0===t?void 0:t.getMetaboxWarning())&&void 0!==e?e:[]).length>0||a.length>0})()&&Object(a.createElement)(e,t),J=X(()=>{const e=Object(d.useSelect)(e=>e("yoast-seo/editor").selectLinkParams(),[]),t=Object(p.sprintf)(/* translators: %1$s expands to 'WooCommerce'. */ Object(p.__)("Is your %1$s store ready for Black Friday?","wordpress-seo"),"WooCommerce");return Object(a.createElement)(G.a,{id:"black-friday-2023-product-editor-checklist",alertKey:"black-friday-2023-product-editor-checklist",promoId:"black-friday-2023-checklist",store:"yoast-seo/editor",title:t,image:V.a},Object(a.createInterpolateElement)(Object(p.sprintf)(/* translators: %1$s expands to a 'strong' start tag, %2$s to a 'strong' end tag. */ Object(p.__)("The Yoast %1$sultimate Black Friday checklist%2$s helps you prepare in time, so you can boost your results during this sale.","wordpress-seo"),"",""),{strong:Object(a.createElement)("strong",null)})," ",Object(a.createElement)("a",{href:Object(Y.addQueryArgs)("https://yoa.st/black-friday-checklist",e),target:"_blank",rel:"noreferrer"},Object(p.__)("Get the checklist and start optimizing now!","wordpress-seo")))}),ee=X(Z.a);function te(e){let{settings:t}=e;const n=Object(d.useSelect)(e=>e("yoast-seo/editor").getIsTerm(),[]),r=Object(d.useSelect)(e=>e("yoast-seo/editor").getIsProduct(),[])&&Object(Q.a)();return Object(a.createElement)(a.Fragment,null,Object(U.b)()&&Object(a.createElement)($.a,null),Object(a.createElement)(o.Fill,{name:"YoastMetabox"},Object(a.createElement)(C.a,{key:"warning",renderPriority:1},Object(a.createElement)(g.a,null)),Object(a.createElement)(C.a,{key:"time-constrained-notification",renderPriority:2},r&&Object(a.createElement)(J,null),Object(a.createElement)(ee,{image:null,hasIcon:!1,location:"metabox"})),t.isKeywordAnalysisActive&&Object(a.createElement)(C.a,{key:"keyword-input",renderPriority:8},Object(a.createElement)(f.KeywordInput,{isSEMrushIntegrationActive:t.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&Object(a.createElement)(o.Fill,{name:"YoastRelatedKeyphrases"},Object(a.createElement)(z.a,null))),Object(a.createElement)(C.a,{key:"search-appearance",renderPriority:9},Object(a.createElement)(O.a,{id:"yoast-snippet-editor-metabox",title:Object(p.__)("Search appearance","wordpress-seo"),initialIsOpen:!0},Object(a.createElement)(b.a,{hasPaperStyle:!1}))),t.isContentAnalysisActive&&Object(a.createElement)(C.a,{key:"readability-analysis",renderPriority:10},Object(a.createElement)(f.ReadabilityAnalysis,{shouldUpsell:t.shouldUpsell})),t.isKeywordAnalysisActive&&Object(a.createElement)(C.a,{key:"seo-analysis",renderPriority:20},Object(a.createElement)(a.Fragment,null,Object(a.createElement)(f.SeoAnalysis,{shouldUpsell:t.shouldUpsell,shouldUpsellWordFormRecognition:t.isWordFormRecognitionActive}),t.shouldUpsell&&Object(a.createElement)(H.a,{location:"metabox"}))),t.isInclusiveLanguageAnalysisActive&&Object(a.createElement)(C.a,{key:"inclusive-language-analysis",renderPriority:21},Object(a.createElement)(f.InclusiveLanguageAnalysis,null)),t.isKeywordAnalysisActive&&Object(a.createElement)(C.a,{key:"additional-keywords-upsell",renderPriority:22},t.shouldUpsell&&Object(a.createElement)(K.a,null)),t.isKeywordAnalysisActive&&t.isWincherIntegrationActive&&Object(a.createElement)(C.a,{key:"wincher-seo-performance",renderPriority:23},Object(a.createElement)(m.a,{location:"metabox"})),t.shouldUpsell&&!n&&Object(a.createElement)(C.a,{key:"internal-linking-suggestions-upsell",renderPriority:25},Object(a.createElement)(x.a,null)),t.isCornerstoneActive&&Object(a.createElement)(C.a,{key:"cornerstone",renderPriority:30},Object(a.createElement)(h.a,null)),t.displayAdvancedTab&&Object(a.createElement)(C.a,{key:"advanced",renderPriority:40},Object(a.createElement)(O.a,{id:"collapsible-advanced-settings",title:Object(p.__)("Advanced","wordpress-seo")},Object(a.createElement)(S.a,null))),t.displaySchemaSettings&&Object(a.createElement)(C.a,{key:"schema",renderPriority:50},Object(a.createElement)(B.a,null)),Object(a.createElement)(C.a,{key:"social",renderPriority:-1},Object(a.createElement)(W,{target:"wpseo-section-social"})),t.isInsightsEnabled&&Object(a.createElement)(C.a,{key:"insights",renderPriority:52},Object(a.createElement)(T,{location:"metabox"}))))}te.propTypes={settings:s.a.object.isRequired};var ne=Object(u.compose)([Object(d.withSelect)((e,t)=>{const{getPreferences:n}=e("yoast-seo/editor");return{settings:n(),store:t.store}})])(te);function ae(e){let{target:t,store:n,theme:r}=e;return Object(a.createElement)(N.a,{target:t},Object(a.createElement)(l,{store:n,theme:r}),Object(a.createElement)(ne,{store:n,theme:r}))}ae.propTypes={target:s.a.string.isRequired,store:s.a.object,theme:s.a.object}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var a=n(0);t.a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return Object(a.useMemo)(()=>{const t={role:"img","aria-hidden":"true"};return null!==e&&(t.focusable=e?"true":"false"),t},[e])}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var a=n(0),r=n(20),s=n(217),o=n(19),i=n(21);const c=[];let l=null;class d extends a.Component{constructor(e){super(e),this.state={registeredComponents:[]}}registerComponent(e,t){this.setState({registeredComponents:[...this.state.registeredComponents,{key:e,Component:t}]})}render(){return this.state.registeredComponents.map(e=>{let{Component:t,key:n}=e;return Object(a.createElement)(t,{key:n})})}}function u(e,t){null===l||null===l.current?c.push({key:e,Component:t}):l.current.registerComponent(e,t)}var p=n(47),m=n(187),h=n(16),b=n(22),g=n.n(b),f=n(4),y=n(14),O=n(67),w=n(44),j=n(71);const{removeMarks:E}=y.markers,{updateReplacementVariable:v,updateData:_,hideReplacementVariables:k,setContentImage:T,setEditorDataContent:x,setEditorDataTitle:C,setEditorDataExcerpt:S,setEditorDataImageUrl:R,setEditorDataSlug:I}=h.actions;window.yoast=window.yoast||{},window.yoast.initEditorIntegration=function(e){window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=u,function(e){const t=Object(o.a)();l=Object(a.createRef)();const n={isRtl:t.isRtl};Object(a.render)(Object(a.createElement)(r.SlotFillProvider,null,Object(a.createElement)(i.Root,{context:{locationContext:"classic-metabox"}},Object(a.createElement)(s.a,{target:"wpseo-metabox-root",store:e,theme:n})),Object(a.createElement)(d,{ref:l})),document.getElementById("wpseo-metabox-root")),c.forEach(e=>{l.current.registerComponent(e.key,e.Component)})}(e),Object(p.b)()&&Object(m.a)()},window.yoast.EditorData=class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"content";this._refresh=e,this._store=t,this._tinyMceId=n,this._previousData={},this._previousEditorData={},this.updateReplacementData=this.updateReplacementData.bind(this),this.refreshYoastSEO=this.refreshYoastSEO.bind(this)}initialize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=this.getInitialData(e);Object(O.fillReplacementVariables)(n,this._store),this._store.dispatch(k(t)),this._previousEditorData.content=n.content,this._store.dispatch(x(n.content)),this._previousEditorData.contentImage=n.contentImage,this._store.dispatch(T(n.contentImage)),this.setImageInSnippetPreview(n.snippetPreviewImageURL||n.contentImage),this._previousEditorData.slug=n.slug,this._store.dispatch(I(n.slug)),this.updateReplacementData({target:{value:n.title}},"title"),this.updateReplacementData({target:{value:n.excerpt}},"excerpt"),this.updateReplacementData({target:{value:n.excerpt_only}},"excerpt_only"),this.subscribeToElements(),this.subscribeToStore(),this.subscribeToSnippetPreviewImage(),this.subscribeToTinyMceEditor(),this.subscribeToSlug()}subscribeToTinyMceEditor(){const e=e=>{if(Object(f.isString)(e)||(e=this.getContent()),this._previousEditorData.content===e)return;if(this._previousEditorData.content=e,this._store.dispatch(x(e)),this.featuredImageIsSet)return;const t=this.getContentImage(e);this._previousEditorData.contentImage!==t&&(this._previousEditorData.contentImage=t,this._store.dispatch(T(t)),this.setImageInSnippetPreview(t))};g()(document).on("tinymce-editor-init",(t,n)=>{n.id===this._tinyMceId&&(e(this.getContent()),["input","change","cut","paste"].forEach(t=>n.on(t,Object(f.debounce)(e,1e3))))});const t=document.getElementById("attachment_content");t&&(e(t.value),t.addEventListener("input",t=>e(t.target.value)))}subscribeToSlug(){const e=e=>{this._previousEditorData.slug!==e&&(this._previousEditorData.slug=e,this._store.dispatch(I(e)),this._store.dispatch(_({slug:e})))},t=document.getElementById("slug");t&&t.addEventListener("input",t=>e(t.target.value));const n=document.getElementById("post_name");n&&n.addEventListener("input",t=>e(t.target.value));const a=document.getElementById("edit-slug-buttons");a&&new MutationObserver((t,n)=>t.forEach(t=>{t.addedNodes.forEach(t=>{var a,r;if(null==t||null===(a=t.classList)||void 0===a||!a.contains("edit-slug"))return;const s=null===(r=document.getElementById("editable-post-name-full"))||void 0===r?void 0:r.innerText;s&&(e(s),n.disconnect(),this.subscribeToSlug())})})).observe(a,{childList:!0})}subscribeToSnippetPreviewImage(){if(Object(f.isUndefined)(wp.media)||Object(f.isUndefined)(wp.media.featuredImage))return;g()("#postimagediv").on("click","#remove-post-thumbnail",()=>{this.featuredImageIsSet=!1,this.setImageInSnippetPreview(this.getContentImage(this.getContent()))});const e=wp.media.featuredImage.frame();e.on("select",()=>{const t=e.state().get("selection").first().attributes.url;t&&(this.featuredImageIsSet=!0,this.setImageInSnippetPreview(t))}),w.addEventHandler(this._tinyMceId,["init"],()=>{const e=this.getContentImage(this.getContent()),t=this.getFeaturedImage()||e||"";this._store.dispatch(T(e)),this.setImageInSnippetPreview(t)})}getFeaturedImage(){const e=g()("#set-post-thumbnail img").attr("src");return e?(this.featuredImageIsSet=!0,e):(this.featuredImageIsSet=!1,null)}setImageInSnippetPreview(e){this._store.dispatch(R(e)),this._store.dispatch(_({snippetPreviewImageURL:e}))}getContentImage(e){if(this.featuredImageIsSet)return"";const t=y.languageProcessing.imageInText(e);if(0===t.length)return"";const n=g.a.parseHTML(t.join(""));for(const e of n)if(e.src)return e.src;return""}getTitle(){const e=document.getElementById("title")||document.getElementById("name");return e&&e.value||""}getExcerpt(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=document.getElementById("excerpt"),n=t&&t.value||"",a="ja"===Object(j.a)()?80:156;return""!==n||!1===e?n:Object(O.excerptFromContent)(this.getContent(),a)}getSlug(){let e="";const t=document.getElementById("new-post-slug")||document.getElementById("slug");return t?e=t.value:null!==document.getElementById("editable-post-name-full")&&(e=document.getElementById("editable-post-name-full").textContent),e}getContent(){return E(w.getContentTinyMce(this._tinyMceId))}subscribeToElements(){this.subscribeToInputElement("title","title"),this.subscribeToInputElement("excerpt","excerpt"),this.subscribeToInputElement("excerpt","excerpt_only")}subscribeToInputElement(e,t){const n=document.getElementById(e);n&&n.addEventListener("input",e=>{this.updateReplacementData(e,t)})}updateReplacementData(e,t){let n=e.target.value;if("excerpt"===t&&""===n&&(n=this.getExcerpt()),this._previousEditorData[t]!==n){switch(this._previousEditorData[t]=n,t){case"title":this._store.dispatch(C(n));break;case"excerpt":this._store.dispatch(S(n))}this._store.dispatch(v(t,n))}}isShallowEqual(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e.hasOwnProperty(n)&&(!(n in t)||e[n]!==t[n]))return!1;return!0}refreshYoastSEO(){const e=this.getData();!this.isShallowEqual(this._previousData,e)&&(this.handleEditorChange(e),this._previousData=e,window.YoastSEO&&window.YoastSEO.app&&window.YoastSEO.app.refresh())}handleEditorChange(e){this._previousData.excerpt!==e.excerpt&&(this._store.dispatch(v("excerpt",e.excerpt)),this._store.dispatch(v("excerpt_only",e.excerpt_only))),this._previousData.snippetPreviewImageURL!==e.snippetPreviewImageURL&&this.setImageInSnippetPreview(e.snippetPreviewImageURL),this._previousData.slug!==e.slug&&this._store.dispatch(I(e.slug)),this._previousData.title!==e.title&&this._store.dispatch(C(e.title))}subscribeToStore(){this.subscriber=Object(f.debounce)(this.refreshYoastSEO,500),this._store.subscribe(this.subscriber)}getInitialData(e){e=Object(O.mapCustomFields)(e,this._store),e=Object(O.mapCustomTaxonomies)(e,this._store);const t=this.getContent(),n=this.getFeaturedImage();return{...e,title:this.getTitle(),excerpt:this.getExcerpt(),excerpt_only:this.getExcerpt(!1),slug:this.getSlug(),content:t,snippetPreviewImageURL:n,contentImage:this.getContentImage(t)}}getData(){return{...this._store.getState().snippetEditor.data,title:this.getTitle(),content:this.getContent(),excerpt:this.getExcerpt(),excerpt_only:this.getExcerpt(!1)}}}}]);