PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.5
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.5
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | js/dist/elementor.js +531 -74 18.4 → 28.5 View file →
@@ -1,75 +1,532 @@
1 -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},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=222)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.yoast.propTypes},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.lodash},function(e,t){e.exports=window.React},function(e,t){e.exports=window.regeneratorRuntime},function(e,t){e.exports=window.yoast.componentsNew},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.yoast.styledComponents},function(e,t){e.exports=window.yoast.helpers},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(a,o){var i=e.apply(t,r);function s(e){n(i,a,o,s,c,"next",e)}function c(e){n(i,a,o,s,c,"throw",e)}s(void 0)}))}}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},function(e,t){function n(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(a,o){var i=e.apply(t,r);function s(e){n(i,a,o,s,c,"next",e)}function c(e){n(i,a,o,s,c,"throw",e)}s(void 0)}))}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=window.yoast.externals.redux},function(e,t,n){var r=n(58);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(42),a=n(14);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t}},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.wp.components},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3);function a(){return Object(r.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}},function(e,t){e.exports=window.yoast.styleGuide},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(80),a=n(81),o=n(82);e.exports=function(e){return r(e)||a(e)||o()}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){var r=n(70),a=n(71),o=n(72);e.exports=function(e,t){return r(e)||a(e,t)||o()}},function(e,t){e.exports=window.yoast.analysis},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(120);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(3),a={source:"wpseoScriptData.analysis.plugins.replaceVars",scope:[],aliases:[]},o=function(e,t,n){this.placeholder=e,this.replacement=t,this.options=Object(r.defaults)(n,a)};o.prototype.getPlaceholder=function(e){return(e=e||!1)&&this.hasAlias()?this.placeholder+"|"+this.getAliases().join("|"):this.placeholder},o.prototype.setSource=function(e){this.options.source=e},o.prototype.hasScope=function(){return!Object(r.isEmpty)(this.options.scope)},o.prototype.addScope=function(e){this.hasScope()||(this.options.scope=[]),this.options.scope.push(e)},o.prototype.inScope=function(e){return!this.hasScope()||Object(r.indexOf)(this.options.scope,e)>-1},o.prototype.hasAlias=function(){return!Object(r.isEmpty)(this.options.aliases)},o.prototype.addAlias=function(e){this.hasAlias()||(this.options.aliases=[]),this.options.aliases.push(e)},o.prototype.getAliases=function(){return this.options.aliases},t.a=o},function(e,t,n){var r=n(121).default,a=n(15);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=window.yoast.externals.contexts},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=s(n(4)),o=s(n(106)),i=s(n(109));function s(e){return e&&e.__esModule?e:{default:e}}var c=void 0;t.default=function(e){var t=e.mixedString,n=e.components,s=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(s)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var l=(0,i.default)(t);try{return function e(t,n){var i,s,l,u,p,d,f,h,m=[],b={};for(d=0;d<t.length;d++)if("string"!==(p=t[d]).type){if(!n.hasOwnProperty(p.value)||void 0===n[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(n[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){i=n[p.value],l=d;break}m.push(n[p.value])}else m.push(p.value);return i&&(u=function(e,t){var n,r,a=t[e],o=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){o++;continue}if("componentClose"===n.type){if(0===o)return r;o--}}throw new Error("Missing closing component token `"+a.value+"`")}(l,t),f=e(t.slice(l+1,u),n),s=a.default.cloneElement(i,{},f),m.push(s),u<t.length-1&&(h=e(t.slice(u+1),n),m=m.concat(h))),1===m.length?m[0]:(m.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,o.default)(b))}(l,n)}catch(e){if(s)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return p}));var r=n(16),a=n.n(r),o=n(5),i=n.n(o),s=n(45),c=n.n(s);function l(_x,e,t){return u.apply(this,arguments)}function u(){return(u=a()(i.a.mark((function e(t,n,r){var a,o,s=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=s.length>3&&void 0!==s[3]?s[3]:200,e.prev=1,e.next=4,t();case 4:if(!(o=e.sent)){e.next=9;break}if(o.status!==a){e.next=8;break}return e.abrupt("return",n(o));case 8:return e.abrupt("return",r(o));case 9:return e.abrupt("return",!1);case 12:e.prev=12,e.t0=e.catch(1),console.error(e.t0.message);case 15:case"end":return e.stop()}}),e,null,[[1,12]])})))).apply(this,arguments)}function p(e){return d.apply(this,arguments)}function d(){return(d=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c()(t);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),!e.t0.error||!e.t0.status){e.next=10;break}return e.abrupt("return",e.t0);case 10:if(!(e.t0 instanceof Response)){e.next=14;break}return e.next=13,e.t0.json();case 13:return e.abrupt("return",e.sent);case 14:return e.abrupt("return",!1);case 15:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),i=function(e){var t=e.children;return Object(r.createElement)("div",null,t)};i.propTypes={renderPriority:o.a.number.isRequired,children:o.a.node.isRequired},t.a=i},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},,function(e,t){e.exports=window.yoast.replacementVariableEditor},function(e,t){e.exports=window.wp.apiFetch},function(e,t,n){var r=n(93);e.exports=function(e,t){if(null==e)return{};var n,a,o=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o}));var r=n(0);function a(e){return e.charAt(0).toUpperCase()+e.slice(1)}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return Object(r.createInterpolateElement)(e,{a:Object(r.createElement)("a",{id:n,href:t,target:"_blank",rel:"noopener noreferrer"})})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=lodash.get,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(window,"wordproofSdk.data".concat(e?".".concat(e):""),t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return l}));var r=n(3),a=n(26),o=function(e){return Object(r.get)(window,"wordproofSdk.data".concat(e?".".concat(e):""),{})},i=function(){var e=Object(a.a)();return 1===Object(r.get)(e,"wordproofIntegrationActive",0)},s=function(e){var t=new CustomEvent(e);window.dispatchEvent(t)},c=function(){s("wordproof:open_authentication")},l=function(){s("wordproof:open_settings")}},,function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return h}));var r=n(19),a=n.n(r),o=n(5),i=n.n(o),s=n(45),c=n.n(s),l=n(59);function u(_x,e,t){return p.apply(this,arguments)}function p(){return(p=a()(i.a.mark((function e(t,n,r){var a,o,s=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=s.length>3&&void 0!==s[3]?s[3]:200,e.prev=1,e.next=4,t();case 4:if(!(o=e.sent)){e.next=9;break}if(o.status!==a){e.next=8;break}return e.abrupt("return",n(o));case 8:return e.abrupt("return",r(o));case 9:return e.abrupt("return",!1);case 12:e.prev=12,e.t0=e.catch(1);case 14:case"end":return e.stop()}}),e,null,[[1,12]])})))).apply(this,arguments)}function d(e){return f.apply(this,arguments)}function f(){return(f=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c()(t);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),!e.t0.error||!e.t0.status){e.next=10;break}return e.abrupt("return",e.t0);case 10:if(!(e.t0 instanceof window.Response)){e.next=14;break}return e.next=13,e.t0.json();case 13:return e.abrupt("return",e.sent);case 14:return e.abrupt("return",!1);case 15:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}var h=function(){var e=a()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u(a()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(l.a)();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),(function(e){return e}),(function(){return!1}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return p})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return g}));var r=n(16),a=n.n(r),o=n(5),i=n.n(o),s=n(3),c=n(40);function l(){return u.apply(this,arguments)}function u(){return(u=a()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(c.a)({path:"yoast/v1/wincher/authorization-url",method:"GET"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(_x){return d.apply(this,arguments)}function d(){return(d=a()(i.a.mark((function e(t){var n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.code,r=t.websiteId,e.next=3,Object(c.a)({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:n,websiteId:r}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(){return h.apply(this,arguments)}function h(){return(h=a()(i.a.mark((function e(){var t,n,r,a=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:null,n=a.length>1&&void 0!==a[1]?a[1]:null,r=a.length>2?a[2]:void 0,e.next=5,Object(c.a)({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:t,permalink:n},signal:r});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return b.apply(this,arguments)}function b(){return(b=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(s.isArray)(t)||(t=[t]),e.next=3,Object(c.a)({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:t}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return y.apply(this,arguments)}function y(){return(y=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(c.a)({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:t}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return Ge})),n.d(t,"b",(function(){return Ze})),n.d(t,"c",(function(){return Qe})),n.d(t,"d",(function(){return Je}));var r,a=n(3),o=n(9),i=n(33),s=n.n(i),c=n(34),l=n.n(c),u=n(15),p=n.n(u),d=n(35),f=n.n(d),h=n(37),m=n.n(h),b=n(28),g=n.n(b),y=n(11),w=n.n(y),v=n(0),O=n(4),j=n.n(O),E=n(1),k=n.n(E),x=n(8),_=n.n(x),T=_.a.p(r||(r=w()(["\n\tcolor: #606770;\n\tflex-shrink: 0;\n\tfont-size: 12px;\n\tline-height: 16px;\n\toverflow: hidden;\n\tpadding: 0;\n\ttext-overflow: ellipsis;\n\ttext-transform: uppercase;\n\twhite-space: nowrap;\n\tmargin: 0;\n\tposition: ",";\n"])),(function(e){return"landscape"===e.mode?"relative":"static"})),R=function(e){var t=e.siteUrl;return Object(v.createElement)(O.Fragment,null,Object(v.createElement)("span",{className:"screen-reader-text"},t),Object(v.createElement)(T,{"aria-hidden":"true"},Object(v.createElement)("span",null,t)))};R.propTypes={siteUrl:k.a.string.isRequired};var S,C,P,L=R,D=n(19),A=n.n(D),I=n(5),q=n.n(I),M=n(2),F=n(27),N=_.a.img(S||(S=w()(["\n\t&& {\n\t\tmax-width: ","px;\n\t\theight: ","px;\n\t\tposition: absolute;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, -50%);\n\t\tmax-width: none;\n\t}\n"])),(function(e){return e.width}),(function(e){return e.height})),W=_.a.img(C||(C=w()(["\n\t&&{\n\t\theight: 100%;\n\t\tposition: absolute;\n\t\twidth: 100%;\n\t\tobject-fit: cover;\n\t}\n"]))),U=_.a.div(P||(P=w()(["\n\tpadding-bottom: ","%;\n"])),(function(e){return e.aspectRatio})),z=function(e){var t=e.imageProps,n=e.width,r=e.height;return"landscape"===e.imageMode?Object(v.createElement)(U,{aspectRatio:t.aspectRatio},Object(v.createElement)(W,{src:t.src,alt:t.alt})):Object(v.createElement)(N,{src:t.src,alt:t.alt,width:n,height:r,imageProperties:t})};z.propTypes={imageProps:k.a.shape({src:k.a.string.isRequired,alt:k.a.string.isRequired,aspectRatio:k.a.number.isRequired}).isRequired,width:k.a.number.isRequired,height:k.a.number.isRequired,imageMode:k.a.string},z.defaultProps={imageMode:"landscape"};var K,B,H={squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},V={squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}};function Y(e){var t=V.largeThreshold;return e.height>e.width?"portrait":e.width<t.width||e.height<t.height||e.height===e.width?"square":"landscape"}function $(e){return"Twitter"===e?H:V}function G(e){return new Promise((function(t,n){var r=new Image;r.onload=function(){t({width:r.width,height:r.height})},r.onerror=n,r.src=e}))}function Z(e,t,n){return"square"===n&&t.width===t.height?{width:e.squareWidth,height:e.squareHeight}:function(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)}}(t,function(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}}(e,t,n))}function Q(_x,e){return J.apply(this,arguments)}function J(){return(J=A()(q.a.mark((function e(t,n){var r,a,o,i,s,c=arguments;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=c.length>2&&void 0!==c[2]&&c[2],e.next=3,G(t);case 3:return a=e.sent,o=r?"landscape":"square","Facebook"===n&&(o=Y(a)),i=$(n),s=Z(i,a,o),e.abrupt("return",{mode:o,height:s.height,width:s.width});case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function X(e,t){return ee.apply(this,arguments)}function ee(){return(ee=A()(q.a.mark((function e(t,n){var r,a,o=arguments;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>2&&void 0!==o[2]&&o[2],e.prev=1,e.next=4,Q(t,n,r);case 4:return a=e.sent,e.abrupt("return",{imageProperties:a,status:"loaded"});case 8:return e.prev=8,e.t0=e.catch(1),e.abrupt("return",{imageProperties:null,status:"errored"});case 11:case"end":return e.stop()}}),e,null,[[1,8]])})))).apply(this,arguments)}var te=_.a.div(K||(K=w()(["\n\tposition: relative;\n\t",";\n\toverflow: hidden;\n\tbackground-color: ",";\n"])),(function(e){return"landscape"===e.mode?"max-width: ".concat(e.dimensions.width):"min-width: ".concat(e.dimensions.width,"; height: ").concat(e.dimensions.height)}),F.colors.$color_white),ne=_.a.div(B||(B=w()(["\n\tbox-sizing: border-box;\n\tmax-width: ","px;\n\theight: ","px;\n\tbackground-color: ",";\n\tborder-style: dashed;\n\tborder-width: 1px;\n\t// We're not using standard colors to increase contrast for accessibility.\n\tcolor: #006DAC;\n\t// We're not using standard colors to increase contrast for accessibility.\n\tbackground-color: #f1f1f1;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\ttext-decoration: underline;\n\tfont-size: 14px;\n\tcursor: pointer;\n"])),V.landscapeWidth,V.landscapeHeight,F.colors.$color_grey),re=function(e){f()(o,e);var t,n,r,a=(n=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=g()(n);if(r){var a=g()(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return m()(this,e)});function o(e){var t;return s()(this,o),(t=a.call(this,e)).state={imageProperties:null,status:"loading"},t.socialMedium="Facebook",t.handleFacebookImage=t.handleFacebookImage.bind(p()(t)),t.setState=t.setState.bind(p()(t)),t}return l()(o,[{key:"handleFacebookImage",value:(t=A()(q.a.mark((function e(){var t;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,X(this.props.src,this.socialMedium);case 3:t=e.sent,this.setState(t),this.props.onImageLoaded(t.imageProperties.mode||"landscape"),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),this.setState(e.t0),this.props.onImageLoaded("landscape");case 12:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return t.apply(this,arguments)})},{key:"componentDidUpdate",value:function(e){e.src!==this.props.src&&this.handleFacebookImage()}},{key:"componentDidMount",value:function(){this.handleFacebookImage()}},{key:"retrieveContainerDimensions",value:function(e){switch(e){case"square":return{height:V.squareHeight+"px",width:V.squareWidth+"px"};case"portrait":return{height:V.portraitHeight+"px",width:V.portraitWidth+"px"};case"landscape":return{height:V.landscapeHeight+"px",width:V.landscapeWidth+"px"}}}},{key:"render",value:function(){var e=this.state,t=e.imageProperties,n=e.status;if("loading"===n||""===this.props.src||"errored"===n)return Object(v.createElement)(ne,{onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},Object(M.__)("Select image","wordpress-seo"));var r=this.retrieveContainerDimensions(t.mode);return Object(v.createElement)(te,{mode:t.mode,dimensions:r,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onClick:this.props.onImageClick},Object(v.createElement)(z,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:V.aspectRatio},width:t.width,height:t.height,imageMode:t.mode}))}}]),o}(O.Component);re.propTypes={src:k.a.string,alt:k.a.string,onImageLoaded:k.a.func,onImageClick:k.a.func,onMouseEnter:k.a.func,onMouseLeave:k.a.func},re.defaultProps={src:"",alt:"",onImageLoaded:a.noop,onImageClick:a.noop,onMouseEnter:a.noop,onMouseLeave:a.noop};var ae,oe,ie,se,ce=re,le=_.a.span(ae||(ae=w()(["\n\tline-height: ","px;\n\tmin-height : ","px;\n\tcolor: #1d2129;\n\tfont-weight: 600;\n\toverflow: hidden;\n\tfont-size: 16px;\n\tmargin: 3px 0 0;\n\tletter-spacing: normal;\n\twhite-space: normal;\n\tflex-shrink: 0;\n\tcursor: pointer;\n\tdisplay: -webkit-box;\n\t-webkit-line-clamp: ",";\n\t-webkit-box-orient: vertical;\n\toverflow: hidden;\n"])),20,20,(function(e){return e.lineCount})),ue=_.a.p(oe||(oe=w()(["\n\tline-height: ","px;\n\tmin-height : ","px;\n\tcolor: #606770;\n\tfont-size: 14px;\n\tpadding: 0;\n\ttext-overflow: ellipsis;\n\tmargin: 3px 0 0 0;\n\tdisplay: -webkit-box;\n\tcursor: pointer;\n\t-webkit-line-clamp: ",";\n\t-webkit-box-orient: vertical;\n\toverflow: hidden;\n\n\t@media all and ( max-width: "," ) {\n\t\tdisplay: none;\n\t}\n"])),16,16,(function(e){return e.lineCount}),(function(e){return e.maxWidth}));var pe=function(e){switch(e){case"landscape":return"527px";case"square":case"portrait":return"369px";default:return"476px"}},de=_.a.div(ie||(ie=w()(["\n\tbox-sizing: border-box;\n\tdisplay: flex;\n\tflex-direction: ",";\n\tbackground-color: #f2f3f5;\n\tmax-width: 527px;\n"])),(function(e){return"landscape"===e.mode?"column":"row"})),fe=_.a.div(se||(se=w()(["\n\tbox-sizing: border-box;\n\tbackground-color: #f2f3f5;\n\tmargin: 0;\n\tpadding: 10px 12px;\n\tposition: relative;\n\tborder-bottom: ",";\n\tborder-top: ",";\n\tborder-right: ",";\n\tborder: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\tflex-grow: 1;\n\tjustify-content: ",";\n\tfont-size: 12px;\n\toverflow: hidden;\n"])),(function(e){return"landscape"===e.mode?"":"1px solid #dddfe2"}),(function(e){return"landscape"===e.mode?"":"1px solid #dddfe2"}),(function(e){return"landscape"===e.mode?"":"1px solid #dddfe2"}),(function(e){return"landscape"===e.mode?"1px solid #dddfe2":""}),(function(e){return"landscape"===e.mode?"flex-start":"center"})),he=function(e){f()(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=g()(t);if(n){var a=g()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return m()(this,e)});function a(e){var t;return s()(this,a),(t=r.call(this,e)).state={imageMode:null,maxLineCount:0,descriptionLineCount:0},t.facebookTitleRef=j.a.createRef(),t.onImageLoaded=t.onImageLoaded.bind(p()(t)),t.onImageEnter=t.props.onMouseHover.bind(p()(t),"image"),t.onTitleEnter=t.props.onMouseHover.bind(p()(t),"title"),t.onDescriptionEnter=t.props.onMouseHover.bind(p()(t),"description"),t.onLeave=t.props.onMouseHover.bind(p()(t),""),t.onSelectTitle=t.props.onSelect.bind(p()(t),"title"),t.onSelectDescription=t.props.onSelect.bind(p()(t),"description"),t}return l()(a,[{key:"onImageLoaded",value:function(e){this.setState({imageMode:e})}},{key:"getTitleLineCount",value:function(){return this.facebookTitleRef.current.offsetHeight/20}},{key:"maybeSetMaxLineCount",value:function(){var e=this.state,t="landscape"===e.imageMode?2:5;t!==e.maxLineCount&&this.setState({maxLineCount:t})}},{key:"maybeSetDescriptionLineCount",value:function(){var e=this.state,t=e.descriptionLineCount,n=e.maxLineCount,r=e.imageMode,a=this.getTitleLineCount(),o=n-a;"portrait"===r&&(o=5===a?0:4),o!==t&&this.setState({descriptionLineCount:o})}},{key:"componentDidUpdate",value:function(){this.maybeSetMaxLineCount(),this.maybeSetDescriptionLineCount()}},{key:"render",value:function(){var e=this.state,t=e.imageMode,n=e.maxLineCount,r=e.descriptionLineCount;return Object(v.createElement)(de,{id:"facebookPreview",mode:t},Object(v.createElement)(ce,{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(v.createElement)(fe,{mode:t},Object(v.createElement)(L,{siteUrl:this.props.siteUrl,mode:t}),Object(v.createElement)(le,{ref:this.facebookTitleRef,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,lineCount:n},this.props.title),r>0&&Object(v.createElement)(ue,{maxWidth:pe(t),onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,lineCount:r},this.props.description)))}}]),a}(O.Component);he.propTypes={siteUrl:k.a.string.isRequired,title:k.a.string.isRequired,description:k.a.string,imageUrl:k.a.string,imageFallbackUrl:k.a.string,alt:k.a.string,onSelect:k.a.func,onImageClick:k.a.func,onMouseHover:k.a.func},he.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:function(){},onImageClick:function(){},onMouseHover:function(){}};var me,be=he,ge=_.a.div(me||(me=w()(["\n\ttext-transform: lowercase;\n\tcolor: rgb(83, 100, 113);\n\twhite-space: nowrap;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n\tfill: currentcolor;\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: flex-end;\n"]))),ye=function(e){return Object(v.createElement)(ge,null,Object(v.createElement)("span",null,e.siteUrl))};ye.propTypes={siteUrl:k.a.string.isRequired};var we,ve,Oe,je=ye;var Ee,ke=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e?"\n\t\t\tmax-width: ".concat(H.landscapeWidth,"px;\n\t\t\t").concat(t?"border-bottom: 1px solid #E1E8ED;":"","\n\t\t\tborder-radius: 14px 14px 0 0;\n\t\t\t"):"\n\t\twidth: ".concat(H.squareWidth,"px;\n\t\t").concat(t?"border-right: 1px solid #E1E8ED;":"","\n\t\tborder-radius: 14px 0 0 14px;\n\t\t")},xe=_.a.div(we||(we=w()(["\n\tposition: relative;\n\tbox-sizing: content-box;\n\toverflow: hidden;\n\tbackground-color: #e1e8ed;\n\tflex-shrink: 0;\n\t","\n"])),(function(e){return ke(e.isLarge)})),_e=_.a.div(ve||(ve=w()(["\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tmax-width: 100%;\n\tmargin: 0;\n\tpadding: 1em;\n\ttext-align: center;\n\tfont-size: 1rem;\n\t","\n"])),(function(e){return ke(e.isLarge,!1)})),Te=_()(_e)(Oe||(Oe=w()(["\n\t","\n\tborder-top-left-radius: 14px;\n\t",": 14px;\n\tborder-style: dashed;\n\tborder-width: 1px;\n\t// We're not using standard colors to increase contrast for accessibility.\n\tcolor: #006DAC;\n\t// We're not using standard colors to increase contrast for accessibility.\n\tbackground-color: #f1f1f1;\n\ttext-decoration: underline;\n\tfont-size: 14px;\n\tcursor: pointer;\n"])),(function(e){return e.isLarge&&"height: ".concat(H.landscapeHeight,"px;")}),(function(e){return e.isLarge?"border-top-right-radius":"border-bottom-left-radius"})),Re=function(e){f()(o,e);var t,n,r,a=(n=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=g()(n);if(r){var a=g()(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return m()(this,e)});function o(e){var t;return s()(this,o),(t=a.call(this,e)).state={status:"loading"},t.socialMedium="Twitter",t.handleTwitterImage=t.handleTwitterImage.bind(p()(t)),t.setState=t.setState.bind(p()(t)),t}return l()(o,[{key:"handleTwitterImage",value:(t=A()(q.a.mark((function e(){var t;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==this.props.src){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,X(this.props.src,this.socialMedium,this.props.isLarge);case 4:t=e.sent,this.setState(t);case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"componentDidUpdate",value:function(e){e.src!==this.props.src&&this.handleTwitterImage()}},{key:"componentDidMount",value:function(){this.handleTwitterImage()}},{key:"render",value:function(){var e=this.state,t=e.status,n=e.imageProperties;return"loading"===t||""===this.props.src||"errored"===t?Object(v.createElement)(Te,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},Object(M.__)("Select image","wordpress-seo")):Object(v.createElement)(xe,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},Object(v.createElement)(z,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:H.aspectRatio},width:n.width,height:n.height,imageMode:n.mode}))}}]),o}(j.a.Component);Re.propTypes={isLarge:k.a.bool.isRequired,src:k.a.string,alt:k.a.string,onImageClick:k.a.func,onMouseEnter:k.a.func,onMouseLeave:k.a.func},Re.defaultProps={src:"",alt:"",onMouseEnter:a.noop,onImageClick:a.noop,onMouseLeave:a.noop};var Se=_.a.div(Ee||(Ee=w()(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tpadding: 12px;\n\tjustify-content: center;\n\tmargin: 0;\n\tbox-sizing: border-box;\n\tflex: auto;\n\tmin-width: 0px;\n\tgap:2px;\n\t> * {\n\t\tline-height:20px;\n\t\tmin-height:20px;\n\t\tfont-size:15px;\n }\n"]))),Ce=function(e){return Object(v.createElement)(Se,null,e.children)};Ce.propTypes={children:k.a.array.isRequired};var Pe,Le,De,Ae,Ie,qe=Ce,Me=_.a.p(Pe||(Pe=w()(["\n\twhite-space: nowrap;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n\tcolor: rgb(15, 20, 25);\n\tcursor: pointer;\n"]))),Fe=_.a.p(Le||(Le=w()(["\n\tmax-height: 55px;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n\tcolor: rgb(83, 100, 113);\n\tdisplay: -webkit-box;\n\tcursor: pointer;\n\t-webkit-line-clamp: 2;\n\t-webkit-box-orient: vertical;\n\n\t@media all and ( max-width: ","px ) {\n\t\tdisplay: none;\n\t}\n"])),H.landscapeWidth);var Ne=_.a.div(De||(De=w()(['\n\tfont-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;\n\tfont-size: 15px;\n\tfont-weight: 400;\n\tline-height: 20px;\n\tmax-width: 507px;\n\tborder: 1px solid #E1E8ED;\n\tbox-sizing: border-box;\n\tborder-radius: 14px;\n\tcolor: #292F33;\n\tbackground: #FFFFFF;\n\ttext-overflow: ellipsis;\n\tdisplay: flex;\n\n\t&:hover {\n\t\tbackground: #f5f8fa;\n\t\tborder: 1px solid rgba(136,153,166,.5);\n\t}\n']))),We=_()(Ne)(Ae||(Ae=w()(["\n\tflex-direction: column;\n\tmax-height: 370px;\n"]))),Ue=_()(Ne)(Ie||(Ie=w()(["\n\tflex-direction: row;\n\theight: 125px;\n"]))),ze=function(e){f()(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=g()(t);if(n){var a=g()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return m()(this,e)});function a(e){var t;return s()(this,a),(t=r.call(this,e)).onImageEnter=t.props.onMouseHover.bind(p()(t),"image"),t.onTitleEnter=t.props.onMouseHover.bind(p()(t),"title"),t.onDescriptionEnter=t.props.onMouseHover.bind(p()(t),"description"),t.onLeave=t.props.onMouseHover.bind(p()(t),""),t.onSelectTitle=t.props.onSelect.bind(p()(t),"title"),t.onSelectDescription=t.props.onSelect.bind(p()(t),"description"),t}return l()(a,[{key:"render",value:function(){var e=this.props,t=e.isLarge,n=e.imageUrl,r=e.imageFallbackUrl,a=e.alt,o=e.title,i=e.description,s=e.siteUrl,c=t?We:Ue;return Object(v.createElement)(c,{id:"twitterPreview"},Object(v.createElement)(Re,{src:n||r,alt:a,isLarge:t,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),Object(v.createElement)(qe,null,Object(v.createElement)(je,{siteUrl:s}),Object(v.createElement)(Me,{onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle},o),Object(v.createElement)(Fe,{onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription},i)))}}]),a}(O.Component);ze.propTypes={siteUrl:k.a.string.isRequired,title:k.a.string.isRequired,description:k.a.string,isLarge:k.a.bool,imageUrl:k.a.string,imageFallbackUrl:k.a.string,alt:k.a.string,onSelect:k.a.func,onImageClick:k.a.func,onMouseHover:k.a.func},ze.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:function(){},onImageClick:function(){},onMouseHover:function(){},isLarge:!0};var Ke=ze,Be=n(6),He=n(73),Ve=n(44);var Ye=function(e){f()(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=g()(t);if(n){var a=g()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return m()(this,e)});function a(e){var t;return s()(this,a),(t=r.call(this,e)).state={activeField:"",hoveredField:""},t.SocialPreview="Facebook"===e.socialMediumName?be:Ke,t.setHoveredField=t.setHoveredField.bind(p()(t)),t.setActiveField=t.setActiveField.bind(p()(t)),t.setEditorRef=t.setEditorRef.bind(p()(t)),t.setEditorFocus=t.setEditorFocus.bind(p()(t)),t}return l()(a,[{key:"setHoveredField",value:function(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}},{key:"setActiveField",value:function(e){var t=this;e!==this.state.activeField&&this.setState({activeField:e},(function(){return t.setEditorFocus(e)}))}},{key:"setEditorFocus",value:function(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}},{key:"setEditorRef",value:function(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}},{key:"render",value:function(){var e=this.props,t=e.onDescriptionChange,n=e.onTitleChange,r=e.onSelectImageClick,a=e.onRemoveImageClick,o=e.socialMediumName,i=e.imageWarnings,s=e.siteUrl,c=e.description,l=e.descriptionInputPlaceholder,u=e.descriptionPreviewFallback,p=e.imageUrl,d=e.imageFallbackUrl,f=e.alt,h=e.title,m=e.titleInputPlaceholder,b=e.titlePreviewFallback,g=e.replacementVariables,y=e.recommendedReplacementVariables,w=e.applyReplacementVariables,O=e.isPremium,E=e.isLarge,k=e.socialPreviewLabel,x=e.idSuffix,_=e.activeMetaTabId,T=w({title:h||b,description:c||u});return Object(v.createElement)(j.a.Fragment,null,k&&Object(v.createElement)(Be.SimulatedLabel,null,k),Object(v.createElement)(this.SocialPreview,{onMouseHover:this.setHoveredField,onSelect:this.setActiveField,onImageClick:r,siteUrl:s,title:T.title,description:T.description,imageUrl:p,imageFallbackUrl:d,alt:f,isLarge:E,activeMetaTabId:_}),Object(v.createElement)(He.SocialMetadataPreviewForm,{onDescriptionChange:t,socialMediumName:o,title:h,titleInputPlaceholder:m,onRemoveImageClick:a,imageSelected:!!p,imageUrl:p,onTitleChange:n,onSelectImageClick:r,description:c,descriptionInputPlaceholder:l,imageWarnings:i,replacementVariables:g,recommendedReplacementVariables:y,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:O,setEditorRef:this.setEditorRef,idSuffix:x}))}}]),a}(O.Component);Ye.propTypes={title:k.a.string.isRequired,onTitleChange:k.a.func.isRequired,description:k.a.string.isRequired,onDescriptionChange:k.a.func.isRequired,imageUrl:k.a.string.isRequired,imageFallbackUrl:k.a.string.isRequired,onSelectImageClick:k.a.func.isRequired,onRemoveImageClick:k.a.func.isRequired,socialMediumName:k.a.string.isRequired,alt:k.a.string,isPremium:k.a.bool,imageWarnings:k.a.array,isLarge:k.a.bool,siteUrl:k.a.string,descriptionInputPlaceholder:k.a.string,titleInputPlaceholder:k.a.string,descriptionPreviewFallback:k.a.string,titlePreviewFallback:k.a.string,replacementVariables:Ve.replacementVariablesShape,recommendedReplacementVariables:Ve.recommendedReplacementVariablesShape,applyReplacementVariables:k.a.func,socialPreviewLabel:k.a.string,idSuffix:k.a.string,activeMetaTabId:k.a.string},Ye.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,isLarge:!0,siteUrl:"",descriptionInputPlaceholder:"",titleInputPlaceholder:"",descriptionPreviewFallback:"",titlePreviewFallback:"",alt:"",applyReplacementVariables:function(e){return e},socialPreviewLabel:"",idSuffix:"",activeMetaTabId:""};var $e=function(e){return{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 Ge(e){return new Promise((function(t,n){window.wp.media.attachment||n(),window.wp.media.attachment(e).fetch().then((function(e){t($e(e))})).catch((function(){return n()}))}))}function Ze(e){(function(e){var t=window.wp.media();return t.on("select",(function(){var n=t.state().get("selection").first();e($e(n.attributes))})),t})(e).open()}var Qe=function(e){var t=Y({width:e.width,height:e.height}),n=V[t+"Width"],r=V[t+"Height"],a=Object.values(e.sizes).find((function(e){return e.width>=n&&e.height>=r}));return{url:a?a.url:e.url,id:e.id,warnings:Object(o.validateFacebookImage)(e),alt:e.alt||""}},Je=function(e){var t="summary"!==Object(a.get)(window,"wpseoScriptData.metabox.twitterCardType")?"landscape":"square",n=H[t+"Width"],r=H[t+"Height"],i=Object.values(e.sizes).find((function(e){return e.width>=n&&e.height>=r}));return{url:i?i.url:e.url,id:e.id,warnings:Object(o.validateTwitterImage)(e),alt:e.alt||""}}},function(e,t){e.exports=window.wp.url},,function(e,t,n){"use strict";n.d(t,"b",(function(){return p}));var r=n(30),a=n.n(r),o=n(46),i=n.n(o),s=n(0),c=n(1),l=n.n(c),u=n(24),p="yoast yoast-gutenberg-modal",d=function(e){var t=e.title,n=e.className,r=e.showYoastIcon,o=e.additionalClassName,c=i()(e,["title","className","showYoastIcon","additionalClassName"]),l=r?Object(s.createElement)("span",{className:"yoast-icon"}):null;return Object(s.createElement)(u.Modal,a()({title:t,className:"".concat(n," ").concat(o),icon:l},c),e.children)};d.propTypes={title:l.a.string,className:l.a.string,showYoastIcon:l.a.bool,children:l.a.oneOfType([l.a.node,l.a.arrayOf(l.a.node)]),additionalClassName:l.a.string},d.defaultProps={title:"Yoast SEO",className:p,showYoastIcon:!0,children:null,additionalClassName:""},t.a=d},,function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"d",(function(){return p})),n.d(t,"b",(function(){return d})),n.d(t,"g",(function(){return f})),n.d(t,"c",(function(){return h}));var r=n(19),a=n.n(r),o=n(5),i=n.n(o),s=n(51),c=function(){var e=a()(i.a.mark((function e(t){var n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.state,r=t.code,e.next=3,Object(s.a)({path:"".concat("wordproof/v1","/oauth/authenticate"),method:"POST",data:{state:n,code:r}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(_x){return e.apply(this,arguments)}}(),l=function(){var e=a()(i.a.mark((function e(t){var n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.settings,e.next=3,Object(s.a)({path:"".concat("wordproof/v1","/settings"),method:"POST",data:{settings:n}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),u=function(){var e=a()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(s.a)({path:"".concat("wordproof/v1","/oauth/destroy"),method:"POST"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=function(){var e=a()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(s.a)({path:"".concat("wordproof/v1","/settings"),method:"GET"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=function(){var e=a()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(s.a)({path:"".concat("wordproof/v1","/authentication"),method:"GET"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),f=function(){var e=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(s.a)({path:"".concat("wordproof/v1","/posts/").concat(t,"/timestamp"),method:"POST"}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var e=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(s.a)({path:"".concat("wordproof/v1","/posts/").concat(t,"/timestamp/transaction/latest"),method:"GET"}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(17),a=n.n(r),o=n(23),i=n(0),s=n(38);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(){return Object(o.createHigherOrderComponent)((function(e){return Object(o.pure)((function(t){var n=Object(i.useContext)(s.LocationContext);return Object(i.createElement)(e,l(l({},t),{},{location:n}))}))}),"withLocation")}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(26),a=n(3);function o(){var e=Object(r.a)();return 1===Object(a.get)(e,"keywordAnalysisActive",0)}},function(e,t){e.exports=window.yoast.components},function(e,t,n){"use strict";n.d(t,"b",(function(){return _}));var r=n(30),a=n.n(r),o=n(46),i=n.n(o),s=n(17),c=n.n(s),l=n(10),u=n.n(l),p=n(12),d=n.n(p),f=n(14),h=n.n(f),m=n(21),b=n.n(m),g=n(22),y=n.n(g),w=n(13),v=n.n(w),O=n(0),j=n(1),E=n.n(j);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _=E.a.shape({value:E.a.string.isRequired,onChange:E.a.func.isRequired});t.a=function(e){return function(t){return function(n){b()(l,n);var r,o,s=(r=l,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v()(r);if(o){var n=v()(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return y()(this,e)});function l(t){var n;u()(this,l),(n=s.call(this,t)).elements={};var r={};return n.fields=e(t),n.fields.forEach((function(e){var t=e.name,a=e.fieldId,o=document.getElementById(a);o&&(n.elements[t]=o,r[t]={value:o.value,onChange:n.onChange.bind(h()(n),t)})})),n.state=r,n}return d()(l,[{key:"onChange",value:function(e,t){var n=this;this.setState(x(x({},this.state),{},c()({},e,x(x({},this.state[e]),{},{value:t}))),(function(){n.elements[e]&&(n.elements[e].value=t)}))}},{key:"render",value:function(){var e=this.props,n=e.children,r=i()(e,["children"]);return Object(O.createElement)(t,a()({},r,this.state),n)}}],[{key:"propTypes",get:function(){return{children:E.a.node}}}]),l}(O.Component)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=n(26);function o(){var e=Object(a.a)();return Object(r.get)(e,"contentLocale","en_US")}},function(e,t,n){"use strict";var r,a=n(18),o=n.n(a),i=n(27),s=n(9),c=n(8),l=n.n(c),u=Object(s.makeOutboundLink)(l.a.a(r||(r=o()(["\n\tdisplay: inline-block;\n\tposition: relative;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 100%;\n\twidth: 24px;\n\theight: 24px;\n\tmargin: -4px 0;\n\tvertical-align: middle;\n\n\tcolor: ",";\n\t\n\t&:hover,\n\t&:focus {\n\t\tcolor: ",";\t\n\t}\n\t\n\t// Overwrite the default blue active color for links.\n\t&:active {\n\t\tcolor: ",';\t\n\t}\n\n\t&::before {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tpadding: 2px;\n\t\tcontent: "\f223";\n\t}\n'],["\n\tdisplay: inline-block;\n\tposition: relative;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 100%;\n\twidth: 24px;\n\theight: 24px;\n\tmargin: -4px 0;\n\tvertical-align: middle;\n\n\tcolor: ",";\n\t\n\t&:hover,\n\t&:focus {\n\t\tcolor: ",";\t\n\t}\n\t\n\t// Overwrite the default blue active color for links.\n\t&:active {\n\t\tcolor: ",';\t\n\t}\n\n\t&::before {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tpadding: 2px;\n\t\tcontent: "\\f223";\n\t}\n'])),i.colors.$color_help_text,i.colors.$color_snippet_focus,i.colors.$color_help_text));t.a=u},,function(e,t){e.exports=window.yoast.externals.components},,function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],_n=!0,r=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(_n=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,a=e}finally{try{_n||null==i.return||i.return()}finally{if(r)throw a}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t){e.exports=window.yoast.socialMetadataForms},,function(e,t,n){"use strict";var r=n(29),a=n.n(r),o=n(0),i=n(1),s=n.n(i),c=n(2),l=function(e){var t=e.data,n=e.mapChartDataToTableData,r=e.dataTableCaption,a=e.dataTableHeaderLabels,i=e.isDataTableVisuallyHidden;return t.length!==a.length?Object(o.createElement)("p",null,Object(c.__)("The number of headers and header labels don't match.","wordpress-seo")):Object(o.createElement)("div",{className:i?"screen-reader-text":null},Object(o.createElement)("table",null,Object(o.createElement)("caption",null,r),Object(o.createElement)("thead",null,Object(o.createElement)("tr",null,a.map((function(e,t){return Object(o.createElement)("th",{key:t},e)})))),Object(o.createElement)("tbody",null,Object(o.createElement)("tr",null,t.map((function(e,t){return Object(o.createElement)("td",{key:t},n(e.y))}))))))};l.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},l.defaultProps={mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};var u=l,p=function(e){var t=e.data,n=e.width,r=e.height,i=e.fillColor,s=e.strokeColor,c=e.strokeWidth,l=e.className,p=e.mapChartDataToTableData,d=e.dataTableCaption,f=e.dataTableHeaderLabels,h=e.isDataTableVisuallyHidden,m=Math.max(1,Math.max.apply(Math,a()(t.map((function(e){return e.x}))))),b=Math.max(1,Math.max.apply(Math,a()(t.map((function(e){return e.y}))))),g=r-c,y=t.map((function(e){var t=e.x/m*n,r=g-e.y/b*g+c;return"".concat(t,",").concat(r)})).join(" "),w="0,".concat(g+c," ")+y+" ".concat(n,",").concat(g+c);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("svg",{width:n,height:r,viewBox:"0 0 ".concat(n," ").concat(r),className:l,role:"img","aria-hidden":"true",focusable:"false"},Object(o.createElement)("polygon",{fill:i,points:w}),Object(o.createElement)("polyline",{fill:"none",stroke:s,strokeWidth:c,strokeLinejoin:"round",strokeLinecap:"round",points:y})),p&&Object(o.createElement)(u,{data:t,mapChartDataToTableData:p,dataTableCaption:d,dataTableHeaderLabels:f,isDataTableVisuallyHidden:h}))};p.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},p.defaultProps={fillColor:null,strokeColor:"#000000",strokeWidth:1,className:"",mapChartDataToTableData:null,isDataTableVisuallyHidden:!0},t.a=p},function(e,t,n){"use strict";function r(){}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(26),a=n(3);function o(){var e=Object(r.a)();return 1===Object(a.get)(e,"contentAnalysisActive",0)}},function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},,function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),i=n(8),s=n(38),c=function(e){var t=e.theme,n=e.location,a=e.children;return Object(r.createElement)(s.LocationProvider,{value:n},Object(r.createElement)(i.ThemeProvider,{theme:t},a))};c.propTypes={theme:o.a.object.isRequired,location:o.a.oneOf(["sidebar","metabox","modal"]).isRequired,children:o.a.element.isRequired},t.a=c},function(e,t){e.exports=window.moment},function(e,t,n){"use strict";var r=n(31),a=n.n(r),o=n(0),i=n(6),s=n(1),c=n.n(s),l=function(e){var t=Object(o.useState)(!1),n=a()(t,2),r=n[0],s=n[1],c=e.prefixIcon;return Object(o.createElement)("div",{className:"yoast components-panel__body ".concat(r?"is-opened":"")},Object(o.createElement)("h2",{className:"components-panel__body-title"},Object(o.createElement)("button",{onClick:function(){s(!r)},className:"components-button components-panel__body-toggle"},Object(o.createElement)("span",{className:"yoast-icon-span",style:{fill:"".concat(c&&c.color||"")}},c&&Object(o.createElement)(i.SvgIcon,{icon:c.icon,color:c.color,size:c.size})),Object(o.createElement)("span",{className:"yoast-title-container"},Object(o.createElement)("div",{className:"yoast-title"},e.title),Object(o.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),Object(o.createElement)("span",{className:"yoast-chevron","aria-hidden":"true"}))),r&&e.children)};t.a=l,l.propTypes={title:c.a.string.isRequired,children:c.a.oneOfType([c.a.node,c.a.arrayOf(c.a.node)]).isRequired,prefixIcon:c.a.object,subTitle:c.a.string},l.defaultProps={prefixIcon:null,subTitle:""}},,,function(e,t){e.exports=window.yoast.featureFlag},function(e,t,n){"use strict";var r=n(23),a=n(7),o=n(94);t.a=Object(r.compose)([Object(a.withSelect)((function(e,t){var n=e("yoast-seo/editor"),r=n.getPostOrPageString,a=n.getIsModalOpen;return{postTypeName:r(),isOpen:a(t.id)}})),Object(a.withDispatch)((function(e,t){var n=e("yoast-seo/editor"),r=n.openEditorModal;return{open:function(){return r(t.id)},close:n.closeEditorModal}}))])(o.a)},function(e,t,n){"use strict";n.d(t,"b",(function(){return k}));var r=n(17),a=n.n(r),o=n(10),i=n.n(o),s=n(12),c=n.n(s),l=n(14),u=n.n(l),p=n(21),d=n.n(p),f=n(22),h=n.n(f),m=n(13),b=n.n(m),g=n(0),y=n(2),w=n(6),v=n(1),O=n.n(v),j=n(64);var E=function(e){d()(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=b()(t);if(n){var a=b()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return h()(this,e)});function o(e){var t;return i()(this,o),(t=r.call(this,e)).initialPageType=e.pageType.value,t.initialArticleType=e.articleType?e.articleType.value:"None",t.state={schema_page_type:t.initialPageType,schema_article_type:t.initialArticleType},t.handleOptionFocus=t.handleOptionFocus.bind(u()(t)),t}return c()(o,[{key:"shouldShowAlert",value:function(){return this.state.schema_page_type!==this.initialPageType||this.state.schema_article_type!==this.initialArticleType}},{key:"handleOptionFocus",value:function(e,t){this.setState(a()({},e,t))}},{key:"render",value:function(){return Object(g.createElement)(g.Fragment,null,Object(g.createElement)(w.FieldGroup,{label:Object(y.__)("Schema settings","wordpress-seo"),linkTo:"https://yoa.st/404",linkText:Object(y.__)("Learn more about the schema settings","wordpress-seo"),description:Object(y.sprintf)(
2 -/* translators: %1$s expands to an indexable object's name, e.g. Posts or Pages. */
3 -Object(y.__)("Choose how your %1$s should be described by default in your site's schema.org markup. You can change these settings for individual %1$s.","wordpress-seo"),this.props.postTypeName)}),this.shouldShowAlert()&&Object(g.createElement)(w.Alert,{type:"warning"},Object(y.sprintf)(
4 -/* translators: %1$s expands to an indexable object's name, e.g. Posts or Pages. */
5 -Object(y._n)("Upon saving, this setting will apply to all of your %1$s. %1$s that are manually configured will be left untouched.","Upon saving, these settings will apply to all of your %1$s. %1$s that are manually configured will be left untouched.",this.props.articleType?2:1,"wordpress-seo"),this.props.postTypeName)),Object(g.createElement)(w.Select,{id:"schema-page-type-".concat(this.props.postType),name:"schema_page_type",options:this.props.pageTypeOptions,label:Object(y.__)("Default Page type","wordpress-seo"),onChange:this.props.pageType.onChange,selected:this.props.pageType.value,onOptionFocus:this.handleOptionFocus}),this.props.articleType&&Object(g.createElement)(w.Select,{id:"schema-article-type-".concat(this.props.postType),name:"schema_article_type",options:this.props.articleTypeOptions,label:Object(y.__)("Default Article type","wordpress-seo"),onChange:this.props.articleType.onChange,onOptionFocus:this.handleOptionFocus,selected:this.props.articleType.value}))}}]),o}(g.Component),k=O.a.arrayOf(O.a.shape({name:O.a.string,value:O.a.string}));E.propTypes={postType:O.a.string.isRequired,postTypeName:O.a.string.isRequired,pageType:j.b.isRequired,articleType:j.b,pageTypeOptions:k.isRequired,articleTypeOptions:k.isRequired},E.defaultProps={articleType:null},t.a=Object(j.a)((function(e){return[{name:"pageType",fieldId:e.pageTypeFieldId},{name:"articleType",fieldId:e.articleTypeFieldId}]}))(E)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(10),a=n.n(r),o=n(12),i=n.n(o),s=function(){function e(){a()(this,e)}return i()(e,null,[{key:"articleTypeInput",get:function(){return document.getElementById("yoast_wpseo_schema_article_type")}},{key:"defaultArticleType",get:function(){return e.articleTypeInput.getAttribute("data-default")}},{key:"articleType",get:function(){return e.articleTypeInput.value},set:function(t){e.articleTypeInput.value=t}},{key:"pageTypeInput",get:function(){return document.getElementById("yoast_wpseo_schema_page_type")}},{key:"defaultPageType",get:function(){return e.pageTypeInput.getAttribute("data-default")}},{key:"pageType",get:function(){return e.pageTypeInput.value},set:function(t){e.pageTypeInput.value=t}}]),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"sortResultsByIdentifier",(function(){return s})),n.d(t,"default",(function(){return c})),n.d(t,"initializationDone",(function(){return l}));var r=n(20),a=n(76),o=n(63),i=!1;function s(e){return e.sort((function(e,t){return e._identifier.localeCompare(t._identifier)}))}function c(e,t,n,c,l){var u=t();i&&e.analyze(u).then((function(e){var t=e.result,a=t.seo,i=t.readability;if(a){var p=a[""];p.results.forEach((function(e){e.getMarker=function(){return function(){return n(u,e.marks)}}})),p.results=s(p.results),c.dispatch(r.actions.setSeoResultsForKeyword(u.getKeyword(),p.results)),c.dispatch(Object(o.setOverallSeoScore)(p.score,u.getKeyword())),c.dispatch(r.actions.refreshSnippetEditor()),l.saveScores(p.score,u.getKeyword())}i&&(i.results.forEach((function(e){e.getMarker=function(){return function(){return n(u,e.marks)}}})),i.results=s(i.results),c.dispatch(r.actions.setReadabilityResults(i.results)),c.dispatch(Object(o.setOverallReadabilityScore)(i.score)),c.dispatch(r.actions.refreshSnippetEditor()),l.saveContentScore(i.score))})).catch(a.a)}function l(){i=!0}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}},function(e,t,n){"use strict";n.d(t,"b",(function(){return p}));var r=n(0),a=n(2),o=n(56),i=n(1),s=n.n(i),c=n(3),l=n(95),u=n(38),p=function(e){var t=!0;if("blur"===e.type){var n=e.relatedTarget;if(n){var r=["media-modal","wp-core-ui"];t=Object(c.intersection)(r,Array.from(n.classList)).length!==r.length}}return t},d=function(e){var t=e.id,n=e.postTypeName,i=e.children,s=e.title,c=e.isOpen,d=e.close,f=e.open,h=Object(r.useCallback)((function(e){p(e)&&d()}),[d]);return Object(r.createElement)(r.Fragment,null,c&&Object(r.createElement)(u.LocationProvider,{value:"modal"},Object(r.createElement)(o.a,{title:s,onRequestClose:h,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal"},Object(r.createElement)("div",{className:"yoast-content-container"},Object(r.createElement)("div",{className:"yoast-modal-content"},i)),Object(r.createElement)("div",{className:"yoast-notice-container"},Object(r.createElement)("hr",null),Object(r.createElement)("div",{className:"yoast-button-container"},Object(r.createElement)("p",null,
6 -/* Translators: %s translates to the Post Label in singular form */
7 -Object(a.sprintf)(Object(a.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),n)),Object(r.createElement)("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:h},
8 -/* Translators: %s translates to the Post Label in singular form */
9 -Object(a.sprintf)(Object(a.__)("Return to your %s","wordpress-seo"),n)))))),Object(r.createElement)(l.a,{id:t+"-open-button",title:s,suffixIcon:{size:"20px",icon:"pencil-square"},onClick:f}))};d.propTypes={id:s.a.string.isRequired,postTypeName:s.a.string.isRequired,children:s.a.oneOfType([s.a.node,s.a.arrayOf(s.a.node)]).isRequired,title:s.a.string.isRequired,isOpen:s.a.bool.isRequired,open:s.a.func.isRequired,close:s.a.func.isRequired},t.a=d},function(e,t,n){"use strict";var r=n(0),a=n(6),o=n(1),i=n.n(o),s=function(e){return Object(r.createElement)("div",{className:"yoast components-panel__body"},Object(r.createElement)("h2",{className:"components-panel__body-title"},Object(r.createElement)("button",{id:e.id,onClick:e.onClick,className:"components-button components-panel__body-toggle"},e.prefixIcon&&Object(r.createElement)("span",{className:"yoast-icon-span",style:{fill:"".concat(e.prefixIcon&&e.prefixIcon.color||"")}},Object(r.createElement)(a.SvgIcon,{size:e.prefixIcon.size,icon:e.prefixIcon.icon})),Object(r.createElement)("span",{className:"yoast-title-container"},Object(r.createElement)("div",{className:"yoast-title"},e.title),Object(r.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),e.suffixIcon&&Object(r.createElement)(a.SvgIcon,{size:e.suffixIcon.size,icon:e.suffixIcon.icon}))))};t.a=s,s.propTypes={onClick:i.a.func.isRequired,title:i.a.string.isRequired,id:i.a.string,subTitle:i.a.string,suffixIcon:i.a.object,prefixIcon:i.a.object},s.defaultProps={id:"",suffixIcon:null,prefixIcon:null,subTitle:""}},function(e,t,n){"use strict";function r(e){var t,n=document.getElementById("yoast-measurement-element");return n||((t=document.createElement("div")).id="yoast-measurement-element",t.style.position="absolute",t.style.left="-9999em",t.style.top=0,t.style.height=0,t.style.overflow="hidden",t.style.fontFamily="arial, sans-serif",t.style.fontSize="18px",t.style.fontWeight="400",document.body.appendChild(t),n=t),n.innerHTML=e,n.offsetWidth}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return y}));var r=n(0),a=n(1),o=n.n(a),i=n(2),s=n(3),c=n(84),l=n.n(c),u=n(6),p=n(9),d=n(75),f=function(){return Object(r.createElement)("p",{className:"yoast-wincher-seo-performance-modal__loading-message"},Object(i.__)("Tracking the ranking position...","wordpress-seo")," ",Object(r.createElement)(u.SvgIcon,{icon:"loading-spinner"}))},h=Object(p.makeOutboundLink)();function m(e){return Math.round(100*e)}function b(e){var t=e.chartData;if(Object(s.isEmpty)(t)||Object(s.isEmpty)(t.position))return"?";var n=function(e){return Array.from({length:e.position.history.length},(function(e,t){return t+1})).map((function(e){
10 -/* translators: %d expands to the amount of days */
11 -return Object(i.sprintf)(Object(i._n)("%d day","%d days",e,"wordpress-seo"),e)}))}(t),a=t.position.history.map((function(e,t){return{x:t,y:101-e.value}}));return Object(r.createElement)(d.a,{width:66,height:24,data:a,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:m,dataTableCaption:Object(i.__)("Keyphrase position in the last 90 days on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:n})}function g(e){return!e||!e.position||e.position.value>100?"> 100":e.position.value}function y(e){var t=e.keyphrase,n=e.rowData,a=e.onTrackKeyphrase,o=e.onUntrackKeyphrase,c=e.isFocusKeyphrase,p=e.isDisabled,d=e.isLoading,m=!Object(s.isEmpty)(n),y=Object(r.useCallback)((function(){p||(m?o(t,n.id):a(t))}),[t,a,o,m,n,p]);return Object(r.createElement)("tr",null,Object(r.createElement)("td",{className:"yoast-table--nopadding"},function(e){var t=e.keyphrase,n=e.isEnabled,a=e.toggleAction;return e.isLoading?Object(r.createElement)(u.SvgIcon,{icon:"loading-spinner"}):Object(r.createElement)(u.Toggle,{id:"toggle-keyphrase-tracking-".concat(t),className:"wincher-toggle",isEnabled:n,onSetToggleState:a,showToggleStateLabel:!1})}({keyphrase:t,isEnabled:m,toggleAction:y,isLoading:d})),Object(r.createElement)("td",null,t,c&&Object(r.createElement)("span",null,"*")),function(e){var t=e.rowData,n=e.websiteId,a=!Object(s.isEmpty)(t),o=t&&t.updated_at&&l()(t.updated_at)>=l()().subtract(7,"days"),c=t?Object(i.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 a?o?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",null,g(t)),Object(r.createElement)("td",{className:"yoast-table--nopadding"},Object(r.createElement)(b,{chartData:t})),Object(r.createElement)("td",{className:"yoast-table--nobreak"},Object(r.createElement)(h,{href:c},Object(i.__)("View","wordpress-seo")))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},Object(r.createElement)(f,null))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",null,"?"),Object(r.createElement)("td",{className:"yoast-table--nopadding"},"?"),Object(r.createElement)("td",{className:"yoast-table--nobreak"}))}(e))}b.propTypes={chartData:o.a.object},b.defaultProps={chartData:{}},y.propTypes={rowData:o.a.object,keyphrase:o.a.string.isRequired,onTrackKeyphrase:o.a.func,onUntrackKeyphrase:o.a.func,isFocusKeyphrase:o.a.bool,isDisabled:o.a.bool,isLoading:o.a.bool,websiteId:o.a.string},y.defaultProps={rowData:{},onTrackKeyphrase:function(){},onUntrackKeyphrase:function(){},isFocusKeyphrase:!1,isDisabled:!1,isLoading:!1,websiteId:""}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(16),a=n.n(r),o=n(10),i=n.n(o),s=n(12),c=n.n(s),l=n(5),u=n.n(l),p=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i()(this,e),this.url=t,this.origin=new URL(t).origin,this.eventHandlers=Object.assign({success:{type:"",callback:function(){}},error:{type:"",callback:function(){}}},n),this.options=Object.assign({height:570,width:340,title:""},r),this.popup=null,this.createPopup=this.createPopup.bind(this),this.messageHandler=this.messageHandler.bind(this),this.getPopup=this.getPopup.bind(this)}var t;return c()(e,[{key:"createPopup",value:function(){var e=this.options,t=e.height,n=e.width,r=e.title,a=["top="+(window.top.outerHeight/2+window.top.screenY-t/2),"left="+(window.top.outerWidth/2+window.top.screenX-n/2),"width="+n,"height="+t,"resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(this.url,r,a.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}},{key:"messageHandler",value:(t=a()(u.a.mark((function e(t){var n,r;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.data,r=t.source,t.origin===this.origin&&this.popup===r){e.next=3;break}return e.abrupt("return");case 3:if(n.type!==this.eventHandlers.success.type){e.next=8;break}return this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),e.next=8,this.eventHandlers.success.callback(n);case 8:if(n.type!==this.eventHandlers.error.type){e.next=13;break}return this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),e.next=13,this.eventHandlers.error.callback(n);case 13:case"end":return e.stop()}}),e,this)}))),function(_x){return t.apply(this,arguments)})},{key:"getPopup",value:function(){return this.popup}},{key:"isClosed",value:function(){return!this.popup||this.popup.closed}},{key:"focus",value:function(){this.isClosed()||this.popup.focus()}}]),e}()},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),i=n(2),s=n(39),c=n.n(s),l=n(6),u=function(e){var t=Object(i.sprintf)(
12 -/* translators: %s expands to a link to open the Wincher login popup. */
13 -Object(i.__)("It seems like something went wrong when retrieving your website's data. Please %s and try again.","wordpress-seo"),"{{reconnectToWincher/}}","Wincher");return Object(r.createElement)(l.Alert,{type:"error"},c()({mixedString:t,components:{reconnectToWincher:Object(r.createElement)("a",{href:"#",onClick:e.onReconnect},Object(i.sprintf)(
14 -/* translators: %s : Expands to "Wincher". */
15 -Object(i.__)("reconnect to %s","wordpress-seo"),"Wincher"))}}))};u.propTypes={onReconnect:o.a.func.isRequired},t.a=u},,,function(e,t,n){"use strict";var r,a=n(10),o=n.n(a),i=n(12),s=n.n(i),c=n(14),l=n.n(c),u=n(21),p=n.n(u),d=n(22),f=n.n(d),h=n(13),m=n.n(h),b=n(0),g=n(1),y=n.n(g),w=n(18),v=n.n(w),O=n(8),j=n.n(O),E=n(39),k=n.n(E),x=n(2),_=n(6),T=n(9),R=j()(_.Alert)(r||(r=v()(["\n\tp {\n\t\tmargin: 0;\n\t}\n"]))),S=Object(T.makeOutboundLink)(),C=function(e){var t=Object(x.sprintf)(
16 -/* Translators: %s expands to the social medium name, which is either Twitter or Facebook. %s expands to Yoast SEO Premium */
17 -Object(x.__)("Want to see how your content will look when it’s shared on %s?","wordpress-seo"),e.socialMediumName),n=Object(x.sprintf)(
18 -/* Translators: %s expands to Yoast SEO Premium */
19 -Object(x.__)("Get %s to unlock social previews!","wordpress-seo"),"Yoast SEO Premium");return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(R,{type:"info"},k()({mixedString:t,components:{strong:Object(b.createElement)("b",null)}}),Object(b.createElement)("br",null),Object(b.createElement)(S,{href:wpseoAdminL10n["shortlinks.upsell.social_previews"]},Object(b.createElement)("p",null,n))))};C.propTypes={socialMediumName:y.a.oneOf(["Twitter","Facebook"]).isRequired};var P=C,L=n(73),D=n(44);var A=function(e){p()(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=m()(t);if(n){var a=m()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return f()(this,e)});function a(e){var t;return o()(this,a),(t=r.call(this,e)).state={activeField:"",hoveredField:""},t.setHoveredField=t.setHoveredField.bind(l()(t)),t.setActiveField=t.setActiveField.bind(l()(t)),t.setEditorRef=t.setEditorRef.bind(l()(t)),t.setEditorFocus=t.setEditorFocus.bind(l()(t)),t}return s()(a,[{key:"setHoveredField",value:function(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}},{key:"setActiveField",value:function(e){var t=this;e!==this.state.activeField&&this.setState({activeField:e},(function(){return t.setEditorFocus(e)}))}},{key:"setEditorFocus",value:function(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}},{key:"setEditorRef",value:function(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}},{key:"render",value:function(){var e=this.props,t=e.onDescriptionChange,n=e.onTitleChange,r=e.onSelectImageClick,a=e.onRemoveImageClick,o=e.socialMediumName,i=e.imageWarnings,s=e.description,c=e.descriptionInputPlaceholder,l=e.imageUrl,u=e.alt,p=e.title,d=e.titleInputPlaceholder,f=e.replacementVariables,h=e.recommendedReplacementVariables,m=e.isPremium,g=e.location;return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(P,{socialMediumName:o}),Object(b.createElement)(L.SocialMetadataPreviewForm,{onDescriptionChange:t,socialMediumName:o,title:p,titleInputPlaceholder:d,onRemoveImageClick:a,imageSelected:!!l,imageUrl:l,imageAltText:u,onTitleChange:n,onSelectImageClick:r,description:s,descriptionInputPlaceholder:c,imageWarnings:i,replacementVariables:f,recommendedReplacementVariables:h,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:m,setEditorRef:this.setEditorRef,idSuffix:g}))}}]),a}(b.Component);A.propTypes={title:y.a.string.isRequired,onTitleChange:y.a.func.isRequired,description:y.a.string.isRequired,onDescriptionChange:y.a.func.isRequired,imageUrl:y.a.string.isRequired,onSelectImageClick:y.a.func.isRequired,onRemoveImageClick:y.a.func.isRequired,socialMediumName:y.a.string.isRequired,isPremium:y.a.bool,imageWarnings:y.a.array,descriptionInputPlaceholder:y.a.string,titleInputPlaceholder:y.a.string,replacementVariables:D.replacementVariablesShape,recommendedReplacementVariables:D.recommendedReplacementVariablesShape,location:y.a.string,alt:y.a.string},A.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",location:"",alt:""},t.a=A},function(e,t,n){"use strict";function r(e){var t=new window.CustomEvent(e);window.dispatchEvent(t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(4),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(78),i=n(107),s=n(108),c="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}var u=/\/+/g;function p(e){return(""+e).replace(u,"$&/")}var d,f,h=m,m=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)};function b(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function g(e,t,n){var a,i,s=e.result,c=e.keyPrefix,l=e.func,u=e.context,d=l.call(u,t,e.count++);Array.isArray(d)?y(d,s,n,o.thatReturnsArgument):null!=d&&(r.isValidElement(d)&&(a=d,i=c+(!d.key||t&&t.key===d.key?"":p(d.key)+"/")+n,d=r.cloneElement(a,{key:i},void 0!==a.props?a.props.children:void 0)),s.push(d))}function y(e,t,n,r,o){var s="";null!=n&&(s=p(n)+"/");var u=b.getPooled(t,s,r,o);!function(e,t,n){null==e||function e(t,n,r,o){var s,u=typeof t;if("undefined"!==u&&"boolean"!==u||(t=null),null===t||"string"===u||"number"===u||"object"===u&&t.$$typeof===a)return r(o,t,""===n?"."+l(t,0):n),1;var p=0,d=""===n?".":n+":";if(Array.isArray(t))for(var f=0;f<t.length;f++)p+=e(s=t[f],d+l(s,f),r,o);else{var h=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(h)for(var m,b=h.call(t),g=0;!(m=b.next()).done;)p+=e(s=m.value,d+l(s,g++),r,o);else if("object"===u){var y=""+t;i(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===y?"object with keys {"+Object.keys(t).join(", ")+"}":y,"")}}return p}(e,"",t,n)}(e,g,u),b.release(u)}b.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){if(this.instancePool.length){var a=this.instancePool.pop();return this.call(a,e,t,n,r),a}return new this(e,t,n,r)},(f=b).instancePool=[],f.getPooled=d||h,f.poolSize||(f.poolSize=10),f.release=function(e){i(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)},e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return s(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return s(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;i(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)y(e[n],t,n,o.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,o,i,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,a,o,i,s],u=0;(c=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(78);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t,n){"use strict";var r=n(0),a=n(2),o=n(39),i=n.n(o),s=n(9),c=Object(s.makeOutboundLink)(),l=Object(s.makeOutboundLink)();t.a=function(){var e=Object(a.sprintf)(Object(a.__)(
20 -/* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */
21 -"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(r.createElement)("p",null,i()({mixedString:e,components:{wincherLink:Object(r.createElement)(c,{href:wpseoAdminGlobalL10n["links.wincher.website"]},"Wincher"),wincherReadMoreLink:Object(r.createElement)(l,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"]},Object(a.__)("Read more about keyphrase tracking with Wincher","wordpress-seo"))}}))}},function(e,t,n){"use strict";var r=n(7),a=n(23),o=n(30),i=n.n(o),s=n(18),c=n.n(s),l=n(16),u=n.n(l),p=n(0),d=n(5),f=n.n(d),h=n(2),m=n(1),b=n.n(m),g=n(3),y=n(8),w=n.n(y),v=n(6),O=n(9),j=n(39),E=n.n(j),k=Object(O.makeOutboundLink)(),x=function(e){var t=Object(h.sprintf)(
22 -/* translators: %d expands to the amount of allowed keyphrases on a free account, %s expands to a link to Wincher plans. */
23 -Object(h.__)("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(p.createElement)(v.Alert,{type:"error"},E()({mixedString:t,components:{updateWincherPlanLink:Object(p.createElement)(k,{href:wpseoAdminGlobalL10n["links.wincher.pricing"]},Object(h.sprintf)(
24 -/* translators: %s : Expands to "Wincher". */
25 -Object(h.__)("upgrade your %s plan","wordpress-seo"),"Wincher"))}}))};x.propTypes={limit:b.a.number},x.defaultProps={limit:10};var _,T,R,S=x,C=function(){return Object(p.createElement)(v.Alert,{type:"error"},Object(h.__)("Something went wrong while tracking the ranking position(s) of your page. Please try again later.","wordpress-seo"))},P=function(){return Object(p.createElement)(v.Alert,{type:"success"},Object(h.sprintf)(
26 -/* translators: %s: Expands to "Wincher". */
27 -Object(h.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher"))},L=function(){return Object(p.createElement)(v.Alert,{type:"info"},Object(h.sprintf)(
28 -/* translators: %s: Expands to "Wincher". */
29 -Object(h.__)("%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"))},D=n(29),A=n.n(D),I=n(31),q=n.n(I),M=n(97),F=n(52),N=n(40),W=Object(O.makeOutboundLink)(),U=w.a.span(_||(_=c()(["\n\tdisplay: block;\n\tfont-style: italic;\n\n\t@media (min-width: 782px) {\n\t\tdisplay: inline;\n\t\tposition: absolute;\n\t\t",": 8px;\n\t}\n"])),Object(O.getDirectionalStyle)("right","left")),z=w.a.th(T||(T=c()(["\n\tmin-width: 60px;\n"]))),K=w.a.div(R||(R=c()(["\n\twidth: 100%;\n\toverflow-y: auto;\n"]))),B=function(e){var t=Object(p.useRef)();return Object(p.useEffect)((function(){t.current=e})),t.current},H=Object(g.debounce)(F.c,500,{leading:!0}),V=function(e){var t=e.addTrackedKeyphrase,n=e.isLoggedIn,r=e.keyphrases,a=e.permalink,o=e.removeTrackedKeyphrase,i=e.setKeyphraseLimitReached,s=e.setRequestFailed,c=e.setRequestSucceeded,l=e.setTrackedKeyphrases,d=e.setHasTrackedAll,m=e.trackAll,b=e.trackedKeyphrases,y=e.isNewlyAuthenticated,w=e.websiteId,v=e.focusKeyphrase,O=e.newRequest,j=Object(p.useRef)(),E=Object(p.useRef)(),k=Object(p.useRef)(!1),x=Object(p.useState)([]),_=q()(x,2),T=_[0],R=_[1],S=Object(p.useCallback)((function(e){var t=e.toLowerCase();return b&&!Object(g.isEmpty)(b)&&b.hasOwnProperty(t)?b[t]:null}),[b]),C=Object(p.useMemo)((function(){return u()(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(N.b)((function(){return E.current&&E.current.abort(),E.current="undefined"==typeof AbortController?null:new AbortController,H(r,a,E.current.signal)}),(function(e){c(e),l(e.results)}),(function(e){s(e)}));case 2:case"end":return e.stop()}}),e)})))}),[c,s,l,r,a]),P=Object(p.useCallback)(function(){var e=u()(f.a.mark((function e(n){var r;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(Array.isArray(n)?n:[n]).map((function(e){return e.toLowerCase()})),R((function(e){return[].concat(A()(e),A()(r))})),e.next=4,Object(N.b)((function(){return Object(F.d)(r)}),(function(e){c(e),t(e.results),C()}),(function(e){400===e.status&&e.limit&&i(e.limit),s(e)}),201);case 4:R((function(e){return g.without.apply(void 0,[e].concat(A()(r)))}));case 5:case"end":return e.stop()}}),e)})));return function(_x){return e.apply(this,arguments)}}(),[c,s,i,t,C]),L=Object(p.useCallback)(function(){var e=u()(f.a.mark((function e(t,n){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=t.toLowerCase(),R((function(e){return[].concat(A()(e),[t])})),e.next=4,Object(N.b)((function(){return Object(F.e)(n)}),(function(e){c(e),o(t)}),(function(e){s(e)}));case 4:R((function(e){return Object(g.without)(e,t)}));case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[c,o,s]),D=Object(p.useCallback)(function(){var e=u()(f.a.mark((function e(t){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return O(),e.next=3,P(t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[O,P]),I=B(a),V=B(r);Object(p.useEffect)((function(){n&&a&&(a!==I||Object(g.difference)(r,V).length)&&C()}),[n,a,I,r,V,C]),Object(p.useEffect)((function(){if(n&&m&&null!==b){var e=r.filter((function(e){return!S(e)}));e.length&&P(e),d()}}),[n,m,b,P,d,S,r]),Object(p.useEffect)((function(){y&&!k.current&&(C(),k.current=!0)}),[y,C]),Object(p.useEffect)((function(){if(n&&!Object(g.isEmpty)(b))return Object(g.filter)(b,(function(e){return Object(g.isEmpty)(e.updated_at)})).length>0&&(j.current=setInterval((function(){C()}),1e4)),function(){clearInterval(j.current)}}),[n,b,C]);var Y=n&&null===b;return r&&!Object(g.isEmpty)(r)&&Object(p.createElement)(p.Fragment,null,Object(p.createElement)(K,null,Object(p.createElement)("table",{className:"yoast yoast-table"},Object(p.createElement)("thead",null,Object(p.createElement)("tr",null,Object(p.createElement)("th",{scope:"col",abbr:Object(h.__)("Tracking","wordpress-seo")},Object(h.__)("Tracking","wordpress-seo")),Object(p.createElement)("th",{scope:"col",abbr:Object(h.__)("Keyphrase","wordpress-seo")},Object(h.__)("Keyphrase","wordpress-seo")),Object(p.createElement)("th",{scope:"col",abbr:Object(h.__)("Position","wordpress-seo")},Object(h.__)("Position","wordpress-seo")),Object(p.createElement)("th",{scope:"col",abbr:Object(h.__)("Position over time","wordpress-seo")},Object(h.__)("Position over time","wordpress-seo")),Object(p.createElement)(z,{className:"yoast-table--nobreak"}))),Object(p.createElement)("tbody",null,r.map((function(e,t){return Object(p.createElement)(M.b,{key:"trackable-keyphrase-".concat(t),keyphrase:e,onTrackKeyphrase:D,onUntrackKeyphrase:L,rowData:S(e),isFocusKeyphrase:e===v.trim(),websiteId:w,isDisabled:!n,isLoading:Y||T.indexOf(e.toLowerCase())>=0})}))))),Object(p.createElement)("p",{style:{marginBottom:0,position:"relative"}},Object(p.createElement)(W,{href:wpseoAdminGlobalL10n["links.wincher.login"]},Object(h.sprintf)(
30 -/* translators: %s expands to Wincher */
31 -Object(h.__)("Get more insights over at %s","wordpress-seo"),"Wincher")),Object(p.createElement)(U,null,Object(h.__)("* focus keyphrase","wordpress-seo"))))};V.propTypes={addTrackedKeyphrase:b.a.func.isRequired,isLoggedIn:b.a.bool,isNewlyAuthenticated:b.a.bool,keyphrases:b.a.array,newRequest:b.a.func.isRequired,removeTrackedKeyphrase:b.a.func.isRequired,setRequestFailed:b.a.func.isRequired,setKeyphraseLimitReached:b.a.func.isRequired,setRequestSucceeded:b.a.func.isRequired,setTrackedKeyphrases:b.a.func.isRequired,setHasTrackedAll:b.a.func.isRequired,trackAll:b.a.bool,trackedKeyphrases:b.a.object,websiteId:b.a.string,permalink:b.a.string.isRequired,focusKeyphrase:b.a.string},V.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],trackAll:!1,trackedKeyphrases:null,websiteId:"",focusKeyphrase:""};var Y,$,G,Z=V,Q=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getWincherWebsiteId,r=t.getWincherTrackedKeyphrases,a=t.getWincherTrackableKeyphrases,o=t.getWincherLoginStatus,i=t.getWincherPermalink,s=t.getFocusKeyphrase,c=t.isWincherNewlyAuthenticated,l=t.shouldWincherTrackAll;return{focusKeyphrase:s(),keyphrases:a(),trackedKeyphrases:r(),isLoggedIn:o(),trackAll:l(),websiteId:n(),isNewlyAuthenticated:c(),permalink:i()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setWincherNewRequest,r=t.setWincherRequestSucceeded,a=t.setWincherRequestFailed,o=t.setWincherSetKeyphraseLimitReached,i=t.setWincherTrackedKeyphrases,s=t.setWincherTrackingForKeyphrase,c=t.setWincherTrackAllKeyphrases,l=t.unsetWincherTrackingForKeyphrase;return{newRequest:function(){n()},setRequestSucceeded:function(e){r(e)},setRequestFailed:function(e){a(e)},setKeyphraseLimitReached:function(e){o(e)},addTrackedKeyphrase:function(e){s(e)},removeTrackedKeyphrase:function(e){l(e)},setTrackedKeyphrases:function(e){i(e)},setHasTrackedAll:function(){c(!1)}}}))])(Z),J=n(110),X=function(){return Object(p.createElement)(v.Alert,{type:"error"},Object(h.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo"))},ee=function(){return Object(p.createElement)(v.Alert,{type:"info"},Object(h.sprintf)(
32 -/* translators: %s: Expands to "Wincher". */
33 -Object(h.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher"))},te=n(100),ne=n(101),re=function(){return Object(p.createElement)(v.Alert,{type:"error"},Object(h.__)("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"))},ae=function(e){var t=e.response,n=e.onLogin;return 403===t.status||404===t.status?Object(p.createElement)(ne.a,{onReconnect:n}):Object(p.createElement)(C,null)};ae.propTypes={response:b.a.object.isRequired,onLogin:b.a.func.isRequired};var oe=function(e){var t=e.isSuccess,n=e.response,r=e.allKeyphrasesMissRanking,a=e.onLogin,o=e.keyphraseLimitReached,i=e.limit;return o?Object(p.createElement)(S,{limit:i}):Object(g.isEmpty)(n)||t?r?Object(p.createElement)(L,null):null:Object(p.createElement)(ae,{response:n,onLogin:a})};oe.propTypes={isSuccess:b.a.bool.isRequired,allKeyphrasesMissRanking:b.a.bool.isRequired,response:b.a.object,onLogin:b.a.func.isRequired,keyphraseLimitReached:b.a.bool.isRequired,limit:b.a.number.isRequired},oe.defaultProps={response:{}};var ie=null,se=function(){var e=u()(f.a.mark((function e(t,n){var r,a,o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.onAuthentication,a=t.setRequestSucceeded,o=t.setRequestFailed,e.next=3,Object(N.b)((function(){return Object(F.a)(n)}),function(){var e=u()(f.a.mark((function e(t){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r(!0,!0,n.websiteId.toString()),a(t),(o=ie.getPopup())&&o.close();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),function(){var e=u()(f.a.mark((function e(t){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",o(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e)})));return function(_x,t){return e.apply(this,arguments)}}(),ce=function(){var e=u()(f.a.mark((function e(t){var n,r;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!ie||ie.isClosed()){e.next=3;break}return ie.focus(),e.abrupt("return");case 3:return e.next=5,Object(F.b)();case 5:n=e.sent,r=n.url,(ie=new te.a(r,{success:{type:"wincher:oauth:success",callback:function(e){return se(t,e)}},error:{type:"wincher:oauth:error",callback:function(){return t.onAuthentication(!1,!1)}}},{title:"Wincher_login",width:500,height:700})).createPopup();case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),le=function(e){return e.isLoggedIn?null:Object(p.createElement)("p",null,Object(p.createElement)(v.NewButton,{onClick:e.onLogin,variant:"primary"},Object(h.sprintf)(
34 -/* translators: %s expands to Wincher */
35 -Object(h.__)("Connect with %s","wordpress-seo"),"Wincher")))};le.propTypes={isLoggedIn:b.a.bool.isRequired,onLogin:b.a.func.isRequired};var ue=w.a.div(Y||(Y=c()(["\n\tp {\n\t\tmargin: 1em 0;\n\t}\n"]))),pe=w.a.div($||($=c()(["\n\t",";\n"])),(function(e){return e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"})),de=w.a.div(G||(G=c()(["\n\tfont-weight: var(--yoast-font-weight-bold);\n\tcolor: var(--yoast-color-label);\n\tfont-size: var(--yoast-font-size-default);\n"]))),fe=function(e){var t=e.isLoggedIn,n=e.keyphrases,r=e.shouldTrackAll;return!e.permalink&&t?Object(p.createElement)(re,null):0===n.length?Object(p.createElement)(X,null):Object(p.createElement)(pe,{isDisabled:!t},Object(p.createElement)("p",null,Object(h.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")),t&&r&&Object(p.createElement)(ee,null),Object(p.createElement)(Q,null))};function he(e){var t=e.isNewlyAuthenticated,n=e.isLoggedIn,r=Object(p.useCallback)((function(){ce(e)}),[ce,e]);return Object(p.createElement)(ue,null,t&&Object(p.createElement)(P,null),Object(p.createElement)(de,null,Object(h.__)("SEO performance","wordpress-seo"),Object(p.createElement)(v.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"],linkText:Object(h.__)("Learn more about the SEO performance feature.","wordpress-seo")})),Object(p.createElement)(J.a,null),Object(p.createElement)(le,{isLoggedIn:n,onLogin:r}),Object(p.createElement)(oe,i()({},e,{onLogin:r})),Object(p.createElement)(fe,e))}fe.propTypes={keyphrases:b.a.array.isRequired,isLoggedIn:b.a.bool.isRequired,shouldTrackAll:b.a.bool.isRequired,permalink:b.a.string.isRequired},he.propTypes={isLoggedIn:b.a.bool,isNewlyAuthenticated:b.a.bool,keyphrases:b.a.array,response:b.a.object,shouldTrackAll:b.a.bool,permalink:b.a.string},he.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],response:{},shouldTrackAll:!1,permalink:""},t.a=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.isWincherNewlyAuthenticated,r=t.getWincherKeyphraseLimitReached,a=t.getWincherLimit,o=t.getWincherLoginStatus,i=t.getWincherRequestIsSuccess,s=t.getWincherRequestResponse,c=t.getWincherTrackableKeyphrases,l=t.getWincherAllKeyphrasesMissRanking,u=t.getWincherPermalink,p=t.shouldWincherAutomaticallyTrackAll;return{keyphrases:c(),allKeyphrasesMissRanking:l(),isLoggedIn:o(),isNewlyAuthenticated:n(),isSuccess:i(),keyphraseLimitReached:r(),limit:a(),response:s(),shouldTrackAll:p(),permalink:u()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setWincherWebsiteId,r=t.setWincherRequestSucceeded,a=t.setWincherRequestFailed,o=t.setWincherLoginStatus;return{setRequestSucceeded:function(e){r(e)},setRequestFailed:function(e){a(e)},onAuthentication:function(e,t,r){n(r),o(e,t)}}}))])(he)},function(e,t,n){"use strict";n.r(t),n.d(t,"refreshDelay",(function(){return r}));var r=500},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return d}));var r,a,o=n(18),i=n.n(o),s=n(8),c=n.n(s),l=n(6),u=n(9),p=c.a.div(r||(r=i()(["\n\tmin-width: 600px;\n\n\t@media screen and ( max-width: 680px ) {\n\t\tmin-width: 0;\n\t\twidth: 86vw;\n\t}\n"]))),d=c()(l.Icon)(a||(a=i()(["\n\tfloat: ",";\n\tmargin: ",";\n\n\t&& {\n\t\twidth: 150px;\n\t\theight: 150px;\n\n\t\t@media screen and ( max-width: 680px ) {\n\t\t\twidth: 80px;\n\t\t\theight: 80px;\n\t\t}\n\t}\n"])),Object(u.getDirectionalStyle)("right","left"),Object(u.getDirectionalStyle)("0 0 16px 16px","0 16px 16px 0"))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=n(26);function o(){var e=Object(a.a)();return Object(r.get)(e,"translations",{domain:"wordpress-seo",locale_data:{"wordpress-seo":{"":{}}}})}},,,,function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,r)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";function r(e){var t=e.alertKey;return new Promise((function(e){return wpseoApi.post("alerts/dismiss",{key:t},(function(){return e()}))}))}n.r(t),n.d(t,"DISMISS_ALERT",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r,a,o=n(4);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 425 456.27","aria-hidden":"true"},e),r||(r=o.createElement("path",{d:"M73 405.26a66.79 66.79 0 01-6.54-1.7 64.75 64.75 0 01-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 01-5.08-4.19 69.21 69.21 0 01-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 01-3.44-5.64 68.29 68.29 0 01-8.29-32.55V142.13a68.26 68.26 0 018.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0114.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0173 75.09a68.75 68.75 0 0113.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 000 142.13v196.09A86.84 86.84 0 0086.75 425h11.32v-18.35H86.75A68.75 68.75 0 0173 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 018.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 01391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 018.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 00-56.45-81.28z"})),a||(a=o.createElement("path",{d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 010 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z",stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81})))}},function(e,t,n){"use strict";var r,a=n(18),o=n.n(a),i=n(0),s=n(1),c=n.n(s),l=n(8),u=n.n(l),p=n(6),d=n(9),f=u()(p.StyledSection)(r||(r=o()(["\n\t&"," {\n\t\tpadding: 0;\n\n\t\t& "," {\n\t\t\t",": 20px;\n\t\t\tmargin-left: ",";\n\t\t}\n\t}\n"])),p.StyledSectionBase,p.StyledHeading,Object(d.getDirectionalStyle)("padding-left","padding-right"),Object(d.getDirectionalStyle)("0","20px")),h=function(e){var t=e.children,n=e.title,r=e.icon,a=e.hasPaperStyle,o=e.shoppingData;return Object(i.createElement)(f,{headingLevel:3,headingText:n,headingIcon:r,headingIconColor:"#555",hasPaperStyle:a,shoppingData:o},t)};h.propTypes={children:c.a.element,title:c.a.string,icon:c.a.string,hasPaperStyle:c.a.bool,shoppingData:c.a.object},h.defaultProps={hasPaperStyle:!0,shoppingData:null},t.a=h},,function(e,t,n){"use strict";var r=n(7),a=n(23),o=n(0),i=n(2),s=n(1),c=n.n(s),l=n(3),u=n(6),p=function(){return Object(o.createElement)("p",{className:"yoast-related-keyphrases-modal__loading-message"},Object(i.sprintf)(
36 -/* translators: %1$s expands to "Yoast SEO", %2$s expands to "Semrush". */
37 -Object(i.__)("Please wait while %1$s connects to %2$s to get related keyphrases...","wordpress-seo"),"Yoast SEO","Semrush")," ",Object(o.createElement)(u.SvgIcon,{icon:"loading-spinner"}))},d=n(9),f=Object(d.makeOutboundLink)(),h=function(){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,Object(i.sprintf)(
38 -/* translators: %s : Expands to "Semrush". */
39 -Object(i.__)("You've reached your request limit for today. Check back tomorrow or upgrade your plan over at %s.","wordpress-seo"),"Semrush")),Object(o.createElement)(f,{href:window.wpseoAdminL10n["shortlinks.semrush.prices"],className:"yoast-button-upsell"},Object(i.sprintf)(
40 -/* translators: %s : Expands to "Semrush". */
41 -Object(i.__)("Upgrade your %s plan","wordpress-seo"),"Semrush"),Object(o.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})))},m=n(16),b=n.n(m),g=n(10),y=n.n(g),w=n(12),v=n.n(w),O=n(14),j=n.n(O),E=n(21),k=n.n(E),x=n(22),_=n.n(x),T=n(13),R=n.n(T),S=n(5),C=n.n(S),P=n(45),L=n.n(P),D=n(54);var A="yoast-semrush-country-selector",I=[{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"}],q=function(e){k()(c,e);var t,n,r,a,s=(r=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=R()(r);if(a){var n=R()(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _()(this,e)});function c(e){var t;return y()(this,c),(t=s.call(this,e)).relatedKeyphrasesRequest=t.relatedKeyphrasesRequest.bind(j()(t)),t.onChangeHandler=t.onChangeHandler.bind(j()(t)),t}return v()(c,[{key:"componentDidMount",value:function(){this.props.response&&this.props.keyphrase===this.props.lastRequestKeyphrase||this.relatedKeyphrasesRequest()}},{key:"storeCountryCode",value:function(e){L()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}})}},{key:"relatedKeyphrasesRequest",value:(n=b()(C.a.mark((function e(){var t,n,r,a;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,n=t.keyphrase,r=t.countryCode,(0,t.newRequest)(r,n),this.storeCountryCode(r),e.next=5,this.doRequest(n,r);case 5:if(200!==(a=e.sent).status){e.next=9;break}return this.handleSuccessResponse(a),e.abrupt("return");case 9:this.handleFailedResponse(a);case 10:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"handleSuccessResponse",value:function(e){var t=this.props,n=t.setNoResultsFound,r=t.setRequestSucceeded;0!==e.results.rows.length?r(e):n()}},{key:"handleFailedResponse",value:function(e){var t=this.props,n=t.setRequestLimitReached,r=t.setRequestFailed;"error"in e&&(e.error.includes("TOTAL LIMIT EXCEEDED")?n():r(e))}},{key:"doRequest",value:(t=b()(C.a.mark((function e(t,n){return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,L()({path:Object(D.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:t,country_code:n})});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(_x,e){return t.apply(this,arguments)})},{key:"onChangeHandler",value:function(e){this.props.setCountry(e)}},{key:"render",value:function(){return Object(o.createElement)("div",{id:A},Object(o.createElement)(u.SingleSelect,{id:A+"-select",label:Object(i.__)("Show results for:","wordpress-seo"),name:"semrush-country-code",options:I,selected:this.props.countryCode,onChange:this.onChangeHandler,wrapperClassName:"yoast-field-group yoast-field-group--inline"}),Object(o.createElement)(u.NewButton,{id:A+"-button",variant:"secondary",onClick:this.relatedKeyphrasesRequest},Object(i.__)("Select country","wordpress-seo")))}}]),c}(o.Component);q.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},q.defaultProps={keyphrase:"",countryCode:"us",response:{},lastRequestKeyphrase:""};var M=q,F=n(75),N=n(66);var W=Object(d.makeOutboundLink)(),U=function(e){k()(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=R()(t);if(n){var a=R()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return _()(this,e)});function a(e){var t;return y()(this,a),(t=r.call(this,e)).transformTrendDataToChartPoints=t.transformTrendDataToChartPoints.bind(j()(t)),t.getAreaChartDataTableHeaderLabels=t.getAreaChartDataTableHeaderLabels.bind(j()(t)),t.mapAreaChartDataToTableData=t.mapAreaChartDataToTableData.bind(j()(t)),t}return v()(a,[{key:"transformTrendDataToChartPoints",value:function(e){return e.split(",").map((function(e,t){return{x:t,y:parseFloat(e)}}))}},{key:"getAreaChartDataTableHeaderLabels",value:function(){return[Object(i.__)("Twelve months ago","wordpress-seo"),Object(i.__)("Eleven months ago","wordpress-seo"),Object(i.__)("Ten months ago","wordpress-seo"),Object(i.__)("Nine months ago","wordpress-seo"),Object(i.__)("Eight months ago","wordpress-seo"),Object(i.__)("Seven months ago","wordpress-seo"),Object(i.__)("Six months ago","wordpress-seo"),Object(i.__)("Five months ago","wordpress-seo"),Object(i.__)("Four months ago","wordpress-seo"),Object(i.__)("Three months ago","wordpress-seo"),Object(i.__)("Two months ago","wordpress-seo"),Object(i.__)("Last month","wordpress-seo")]}},{key:"mapAreaChartDataToTableData",value:function(e){return Math.round(100*e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.keyphrase,r=t.relatedKeyphrases,a=t.countryCode,s=t.data,c=t.renderAction,u="https://www.semrush.com/analytics/keywordoverview/?q="+encodeURIComponent(n)+"&db="+encodeURIComponent(a);return s&&!Object(l.isEmpty)(s.results)&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("table",{className:"yoast yoast-table"},Object(o.createElement)("thead",null,Object(o.createElement)("tr",null,Object(o.createElement)("th",{scope:"col",className:"yoast-table--primary"},Object(i.__)("Related keyphrase","wordpress-seo")),Object(o.createElement)("th",{scope:"col",abbr:Object(i.__)("Volume","wordpress-seo")},Object(i.__)("Volume","wordpress-seo"),Object(o.createElement)(N.a,{href:window.wpseoAdminL10n["shortlinks.semrush.volume_help"],className:"dashicons"},Object(o.createElement)("span",{className:"screen-reader-text"},Object(i.__)("Learn more about the related keyphrases volume","wordpress-seo")))),Object(o.createElement)("th",{scope:"col",abbr:Object(i.__)("Trend","wordpress-seo")},Object(i.__)("Trend","wordpress-seo"),Object(o.createElement)(N.a,{href:window.wpseoAdminL10n["shortlinks.semrush.trend_help"],className:"dashicons"},Object(o.createElement)("span",{className:"screen-reader-text"},Object(i.__)("Learn more about the related keyphrases trend","wordpress-seo")))),c&&Object(o.createElement)("td",{className:"yoast-table--nobreak"}))),Object(o.createElement)("tbody",null,s.results.rows.map((function(t,n){var a=t[0],s=e.transformTrendDataToChartPoints(t[2]),l=e.getAreaChartDataTableHeaderLabels();return Object(o.createElement)("tr",{key:n},Object(o.createElement)("td",null,a),Object(o.createElement)("td",null,t[1]),Object(o.createElement)("td",{className:"yoast-table--nopadding"},Object(o.createElement)(F.a,{width:66,height:24,data:s,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:e.mapAreaChartDataToTableData,dataTableCaption:Object(i.__)("Keyphrase volume in the last 12 months on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:l})),c&&Object(o.createElement)("td",{className:"yoast-table--nobreak"},c(a,r)))})))),Object(o.createElement)("p",{style:{marginBottom:0}},Object(o.createElement)(W,{href:u},Object(i.sprintf)(
42 -/* translators: %s expands to Semrush */
43 -Object(i.__)("Get more insights at %s","wordpress-seo"),"Semrush"))))}}]),a}(o.Component);U.propTypes={data:c.a.object,keyphrase:c.a.string,relatedKeyphrases:c.a.array,countryCode:c.a.string,renderAction:c.a.func},U.defaultProps={data:{},keyphrase:"",relatedKeyphrases:[],countryCode:"us",renderAction:null};var z=U,K=Object(d.makeOutboundLink)(),B=function(){return Object(o.createElement)(u.Alert,{type:"info"},Object(i.sprintf)(
44 -/* translators: %s: Expands to "Yoast SEO". */
45 -Object(i.__)("Would you like to be able to add these related keyphrases to the %s analysis so you can optimize your content even further?","wordpress-seo"),"Yoast SEO")+" ",Object(o.createElement)(K,{href:window.wpseoAdminL10n["shortlinks.semrush.premium_landing_page"]},Object(i.sprintf)(
46 -/* translators: %s: Expands to "Yoast SEO Premium". */
47 -Object(i.__)("Check out %s!","wordpress-seo"),"Yoast SEO Premium")))},H=function(){return Object(o.createElement)(u.Alert,{type:"error"},Object(i.__)("We've encountered a problem trying to get related keyphrases. Please try again later.","wordpress-seo"))},V=function(){return Object(o.createElement)(u.Alert,{type:"warning"},Object(i.sprintf)(
48 -/* translators: %s: Expands to "Yoast SEO". */
49 -Object(i.__)("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"))},Y=n(26);function $(e){var t=e.response,n=e.lastRequestKeyphrase,r=e.keyphrase,a=e.newRequest,s=e.setCountry,c=e.renderAction,u=e.countryCode,d=e.requestLimitReached,f=e.setRequestFailed,m=e.setNoResultsFound,b=e.relatedKeyphrases,g=e.setRequestSucceeded,y=e.setRequestLimitReached,w=Object(Y.a)().isPremium;return Object(o.createElement)(o.Fragment,null,!d&&Object(o.createElement)(o.Fragment,null,!w&&Object(o.createElement)(B,null),w&&function(e){return e&&e.length>=4}(b)&&Object(o.createElement)(V,null),Object(o.createElement)(M,{countryCode:u,setCountry:s,newRequest:a,keyphrase:r,setRequestFailed:f,setNoResultsFound:m,setRequestSucceeded:g,setRequestLimitReached:y,response:t,lastRequestKeyphrase:n})),function(e){var t=e.isPending,n=e.requestLimitReached,r=e.isSuccess,a=e.response,s=e.requestHasData;return t?Object(o.createElement)(p,null):n?Object(o.createElement)(h,null):!r&&function(e){return!Object(l.isEmpty)(e)&&"error"in e}(a)?Object(o.createElement)(H,null):s?void 0:Object(o.createElement)("p",null,Object(i.__)("Sorry, there's no data available for that keyphrase/country combination.","wordpress-seo"))}(e),Object(o.createElement)(z,{keyphrase:r,relatedKeyphrases:b,countryCode:u,renderAction:c,data:t}))}$.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},$.defaultProps={keyphrase:"",relatedKeyphrases:[],renderAction:null,requestLimitReached:!1,response:{},lastRequestKeyphrase:""},t.a=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getFocusKeyphrase,r=t.getSEMrushSelectedCountry,a=t.getSEMrushRequestLimitReached,o=t.getSEMrushRequestResponse,i=t.getSEMrushRequestIsSuccess,s=t.getSEMrushIsRequestPending,c=t.getSEMrushRequestHasData,l=t.getSEMrushRequestKeyphrase;return{keyphrase:n(),countryCode:r(),requestLimitReached:a(),response:o(),isSuccess:i(),isPending:s(),requestHasData:c(),lastRequestKeyphrase:l()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setSEMrushChangeCountry,r=t.setSEMrushNewRequest,a=t.setSEMrushRequestSucceeded,o=t.setSEMrushRequestFailed,i=t.setSEMrushSetRequestLimitReached,s=t.setSEMrushNoResultsFound;return{setCountry:function(e){n(e)},newRequest:function(e,t){r(e,t)},setRequestSucceeded:function(e){a(e)},setRequestFailed:function(e){o(e)},setRequestLimitReached:function(){i()},setNoResultsFound:function(){s()}}}))])($)},,,function(e,t){e.exports=window.wp.hooks},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return d}));var r=n(3),a=n(32),o=n(65);function i(){return Object(r.get)(window,["wpseoAdminL10n","default_query_params"],{})}var s=n(116),c=n(77),l=n(62),u=n(88);function p(){var e=Object(r.get)(window,["wpseoScriptData","analysis","worker","url"],"analysis-worker.js"),t=Object(a.createWorker)(e),n=Object(r.get)(window,["wpseoScriptData","analysis","worker","dependencies"],[]),o=[];for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var s=window.document.getElementById("".concat(i,"-js-translations"));if(s){var c=s.innerHTML.slice(214),l=c.indexOf(","),u=c.slice(0,l-1);try{var p=JSON.parse(c.slice(l+1,-4));o.push([u,p])}catch(e){console.warn("Failed to parse translation data for ".concat(i," to send to the Yoast SEO worker"));continue}}}return t.postMessage({dependencies:n,translations:o}),new a.AnalysisWorkerWrapper(t)}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={locale:Object(o.a)(),contentAnalysisActive:Object(c.a)(),keywordAnalysisActive:Object(l.a)(),defaultQueryParams:i(),logLevel:Object(r.get)(window,["wpseoScriptData","analysis","worker","log_level"],"ERROR"),enabledFeatures:Object(u.enabledFeatures)()};t=Object(r.merge)(t,e);var n=Object(s.a)();return Object(r.isUndefined)(n)||Object(r.isUndefined)(n.domain)||(t.translations=n),t}},function(e,t,n){"use strict";var r=n(23),a=n(7),o=n(68),i=n(60);t.a=Object(r.compose)([Object(a.withSelect)((function(e){return{isCornerstone:(0,e("yoast-seo/editor").isCornerstoneContent)(),learnMoreUrl:wpseoAdminL10n["shortlinks.cornerstone_content_info"]}})),Object(a.withDispatch)((function(e){return{onChange:e("yoast-seo/editor").toggleCornerstoneContent}})),Object(i.a)()])(o.CollapsibleCornerstone)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3);function a(e){return void 0===e.length?e:Object(r.flatten)(e).sort((function(e,t){return void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority}))}},,,function(e,t,n){"use strict";var r=n(23),a=n(7),o=n(0),i=n(2),s=n(6),c=n(9),l=n(1),u=n.n(l),p=n(38),d=n(10),f=n.n(d),h=n(12),m=n.n(h),b=n(14),g=n.n(b),y=n(21),w=n.n(y),v=n(22),O=n.n(v),j=n(13),E=n.n(j),k=n(3),x=n(49),_=n(24);var T=function(e){if(!e.isAuthenticated)return null;var t=Object(o.useCallback)((function(){Object(x.d)()}));return Object(o.createElement)(_.Button,{variant:"link",onClick:t},Object(i.__)("Manage WordProof settings","wordpress-seo"))};T.propTypes={isAuthenticated:u.a.bool.isRequired};var R=function(e){var t=Object(o.useCallback)((function(){Object(x.c)()}));return!e.isAuthenticated&&e.toggleIsEnabled?Object(o.createElement)(_.Button,{variant:"link",onClick:t},Object(i.__)("Authenticate with WordProof","wordpress-seo")):null};R.propTypes={isAuthenticated:u.a.bool.isRequired,toggleIsEnabled:u.a.bool.isRequired};var S=function(e){w()(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=E()(t);if(n){var a=E()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return O()(this,e)});function a(e){var t;return f()(this,a),(t=r.call(this,e)).handleToggle=t.handleToggle.bind(g()(t)),t.turnToggleOff=t.turnToggleOff.bind(g()(t)),t.turnToggleOn=t.turnToggleOn.bind(g()(t)),t}return m()(a,[{key:"componentDidMount",value:function(){window.addEventListener("wordproof:webhook:failed",this.turnToggleOff,!1),window.addEventListener("wordproof:oauth:success",this.turnToggleOn,!1)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("wordproof:webhook:failed",this.turnToggleOff,!1),window.removeEventListener("wordproof:oauth:success",this.turnToggleOn,!1)}},{key:"handleToggle",value:function(e){this.props.isAuthenticated||!e?this.props.onToggle(e):Object(x.c)()}},{key:"turnToggleOn",value:function(){this.props.onToggle(!0)}},{key:"turnToggleOff",value:function(){this.props.onToggle(!1)}},{key:"render",value:function(){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(s.FieldGroup,{linkText:Object(i.__)("Learn more about timestamping","wordpress-seo"),linkTo:"https://yoa.st/wordproof-integration",htmlFor:this.props.id,label:Object(i.__)("Timestamp with WordProof","wordpress-seo"),hasNewBadge:!0},Object(o.createElement)(s.Toggle,{id:this.props.id,labelText:Object(i.sprintf)(
50 -/* Translators: %s translates to the Post type in singular form */
51 -Object(i.__)("Timestamp this %s","wordpress-seo"),this.props.postTypeName.toLowerCase()),isEnabled:this.props.isEnabled,onSetToggleState:this.handleToggle}),Object(o.createElement)(T,{isAuthenticated:this.props.isAuthenticated}),Object(o.createElement)(R,{toggleIsEnabled:this.props.isEnabled,isAuthenticated:this.props.isAuthenticated}),!this.props.isAuthenticated&&this.props.isEnabled&&Object(o.createElement)(s.Alert,{className:"yoast-wordproof-metabox-alert",type:"info"},Object(i.__)("Unable to create new timestamps. Please authenticate with WordProof.","wordpress-seo"))))}}]),a}(o.Component);S.propTypes={id:u.a.string,isEnabled:u.a.bool,onToggle:u.a.func,postTypeName:u.a.string,isAuthenticated:u.a.bool.isRequired},S.defaultProps={id:"timestamp-toggle",isEnabled:!0,postTypeName:"post",onToggle:k.noop};var C=Object(r.compose)([Object(a.withSelect)((function(e){return{isAuthenticated:e("wordproof").getIsAuthenticated()}}))])(S),P=function(e){var t=e.noIndex,n=e.onNoIndexChange,r=e.editorContext,a=e.isPrivateBlog,l=function(e){var t=Object(i.__)("No","wordpress-seo"),n=Object(i.__)("Yes","wordpress-seo"),r=e.noIndex?t:n;return window.wpseoScriptData.isPost?[{name:Object(i.sprintf)(
52 -/* Translators: %s translates to "yes" or "no", %s translates to the Post Label in plural form */
53 -Object(i.__)("%s (current default for %s)","wordpress-seo"),r,e.postTypeNamePlural),value:"0"},{name:t,value:"1"},{name:n,value:"2"}]:[{name:Object(i.sprintf)(
54 -/* Translators: %s translates to the "yes" or "no" ,%s translates to the Post Label in plural form */
55 -Object(i.__)("%s (current default for %s)","wordpress-seo"),r,e.postTypeNamePlural),value:"default"},{name:n,value:"index"},{name:t,value:"noindex"}]}(r);return Object(o.createElement)(p.LocationConsumer,null,(function(e){return Object(o.createElement)(o.Fragment,null,a&&Object(o.createElement)(s.Alert,{type:"warning"},Object(i.__)("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(o.createElement)(s.Select,{label:Object(i.sprintf)(
56 -/* Translators: %s translates to the Post Label in singular form */
57 -Object(i.__)("Allow search engines to show this %s in search results?","wordpress-seo"),r.postTypeNameSingular),onChange:n,id:Object(c.join)(["yoast-meta-robots-noindex",e]),options:l,selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.allow_search_engines"],linkText:Object(i.__)("Learn more about the no-index setting on our help page.","wordpress-seo")}))}))};P.propTypes={noIndex:u.a.string.isRequired,onNoIndexChange:u.a.func.isRequired,editorContext:u.a.object.isRequired,isPrivateBlog:u.a.bool},P.defaultProps={isPrivateBlog:!1};var L=function(e){var t=e.noFollow,n=e.onNoFollowChange,r=e.postTypeName;return Object(o.createElement)(p.LocationConsumer,null,(function(e){var a=Object(c.join)(["yoast-meta-robots-nofollow",e]);return Object(o.createElement)(s.RadioButtonGroup,{id:a,options:[{value:"0",label:"Yes"},{value:"1",label:"No"}],label:Object(i.sprintf)(
58 -/* Translators: %s translates to the Post Label in singular form */
59 -Object(i.__)("Should search engines follow links on this %s","wordpress-seo"),r),groupName:a,onChange:n,selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.follow_links"],linkText:Object(i.__)("Learn more about the no-follow setting on our help page.","wordpress-seo")})}))};L.propTypes={noFollow:u.a.string.isRequired,onNoFollowChange:u.a.func.isRequired,postTypeName:u.a.string.isRequired};var D=function(e){var t=e.advanced,n=e.onAdvancedChange;return Object(o.createElement)(p.LocationConsumer,null,(function(e){var r=Object(c.join)(["yoast-meta-robots-advanced",e]),a="".concat(r,"-input");return Object(o.createElement)(s.MultiSelect,{label:Object(i.__)("Meta robots advanced","wordpress-seo"),onChange:n,id:r,inputId:a,options:[{name:Object(i.__)("No Image Index","wordpress-seo"),value:"noimageindex"},{name:Object(i.__)("No Archive","wordpress-seo"),value:"noarchive"},{name:Object(i.__)("No Snippet","wordpress-seo"),value:"nosnippet"}],selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.meta_robots"],linkText:Object(i.__)("Learn more about advanced meta robots settings on our help page.","wordpress-seo")})}))};D.propTypes={advanced:u.a.array.isRequired,onAdvancedChange:u.a.func.isRequired};var A=function(e){var t=e.breadcrumbsTitle,n=e.onBreadcrumbsTitleChange;return Object(o.createElement)(p.LocationConsumer,null,(function(e){return Object(o.createElement)(s.TextInput,{label:Object(i.__)("Breadcrumbs Title","wordpress-seo"),id:Object(c.join)(["yoast-breadcrumbs-title",e]),onChange:n,value:t,linkTo:wpseoAdminL10n["shortlinks.advanced.breadcrumbs_title"],linkText:Object(i.__)("Learn more about the breadcrumbs title setting on our help page.","wordpress-seo")})}))};A.propTypes={breadcrumbsTitle:u.a.string.isRequired,onBreadcrumbsTitleChange:u.a.func.isRequired};var I=function(e){var t=e.canonical,n=e.onCanonicalChange;return Object(o.createElement)(p.LocationConsumer,null,(function(e){return Object(o.createElement)(s.TextInput,{label:Object(i.__)("Canonical URL","wordpress-seo"),id:Object(c.join)(["yoast-canonical",e]),onChange:n,value:t,linkTo:"https://yoa.st/canonical-url",linkText:Object(i.__)("Learn more about canonical URLs on our help page.","wordpress-seo")})}))};I.propTypes={canonical:u.a.string.isRequired,onCanonicalChange:u.a.func.isRequired};var q=function(e){var t=e.wordproofTimestamp,n=e.onWordProofTimestampChange,r=e.postTypeName;return Object(o.createElement)(p.LocationConsumer,null,(function(e){return Object(o.createElement)(C,{id:Object(c.join)(["yoast-wordproof-timestamp",e]),isEnabled:t,onToggle:n,postTypeName:r})}))};q.propTypes={wordproofTimestamp:u.a.bool.isRequired,onWordProofTimestampChange:u.a.func.isRequired,postTypeName:u.a.string.isRequired};var M=function(e){var t=e.noIndex,n=e.noFollow,r=e.advanced,a=e.breadcrumbsTitle,i=e.canonical,s=e.wordproofTimestamp,c=e.onNoIndexChange,l=e.onNoFollowChange,u=e.onAdvancedChange,p=e.onBreadcrumbsTitleChange,d=e.onCanonicalChange,f=e.onWordProofTimestampChange,h=e.onLoad,m=e.isLoading,b=e.editorContext,g=e.isBreadcrumbsDisabled,y=e.isPrivateBlog,w=e.isWordProofIntegrationActive;Object(o.useEffect)((function(){setTimeout((function(){m&&h()}))}));var v={noIndex:t,onNoIndexChange:c,editorContext:b,isPrivateBlog:y},O={noFollow:n,onNoFollowChange:l,postTypeName:b.postTypeNameSingular},j={advanced:r,onAdvancedChange:u},E={breadcrumbsTitle:a,onBreadcrumbsTitleChange:p},k={canonical:i,onCanonicalChange:d},x={wordproofTimestamp:s,onWordProofTimestampChange:f,postTypeName:b.postTypeNameSingular};return m?null:Object(o.createElement)(o.Fragment,null,Object(o.createElement)(P,v),b.isPost&&Object(o.createElement)(L,O),b.isPost&&Object(o.createElement)(D,j),!g&&Object(o.createElement)(A,E),Object(o.createElement)(I,k),w&&Object(o.createElement)(q,x))};M.propTypes={noIndex:u.a.string.isRequired,canonical:u.a.string.isRequired,wordproofTimestamp:u.a.bool,onNoIndexChange:u.a.func.isRequired,onCanonicalChange:u.a.func.isRequired,onWordProofTimestampChange:u.a.func,onLoad:u.a.func.isRequired,isLoading:u.a.bool.isRequired,editorContext:u.a.object.isRequired,isBreadcrumbsDisabled:u.a.bool.isRequired,isPrivateBlog:u.a.bool,advanced:u.a.array,onAdvancedChange:u.a.func,noFollow:u.a.string,onNoFollowChange:u.a.func,breadcrumbsTitle:u.a.string,onBreadcrumbsTitleChange:u.a.func,isWordProofIntegrationActive:u.a.bool.isRequired},M.defaultProps={advanced:[],onAdvancedChange:function(){},noFollow:"",onNoFollowChange:function(){},breadcrumbsTitle:"",onBreadcrumbsTitleChange:function(){},isPrivateBlog:!1,onWordProofTimestampChange:function(){},wordproofTimestamp:!1};var F=M;t.a=Object(r.compose)([Object(a.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getNoIndex,r=t.getNoFollow,a=t.getAdvanced,o=t.getBreadcrumbsTitle,i=t.getCanonical,s=t.getWordProofTimestamp,c=t.getIsLoading,l=t.getEditorContext,u=(0,t.getPreferences)(),p=u.isBreadcrumbsDisabled,d=u.isPrivateBlog,f=u.isWordProofIntegrationActive;return{noIndex:n(),noFollow:r(),advanced:a(),breadcrumbsTitle:o(),canonical:i(),wordproofTimestamp:s(),isLoading:c(),editorContext:l(),isBreadcrumbsDisabled:p,isPrivateBlog:d,isWordProofIntegrationActive:f}})),Object(a.withDispatch)((function(e){var t=e("yoast-seo/editor");return{onNoIndexChange:t.setNoIndex,onNoFollowChange:t.setNoFollow,onAdvancedChange:t.setAdvanced,onBreadcrumbsTitleChange:t.setBreadcrumbsTitle,onCanonicalChange:t.setCanonical,onWordProofTimestampChange:t.setWordProofTimestamp,onLoad:t.loadAdvancedSettingsData}}))])(F)},function(e,t,n){"use strict";var r,a=n(17),o=n.n(a),i=n(0),s=n(23),c=n(7),l=n(2),u=n(1),p=n.n(u),d=n(29),f=n.n(d),h=n(18),m=n.n(h),b=n(6),g=n(24),y=n(9),w=n(39),v=n.n(w),O=n(8),j=n.n(O),E=n(90),k=n(88),x=j.a.div(r||(r=m()(["\n\tpadding: 16px;\n"]))),_=function(e,t,n){var r=e.find((function(e){return e.value===t}));return[{name:Object(l.sprintf)(
60 -/* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */
61 -Object(l.__)("Default for %1$s (%2$s)","wordpress-seo"),n,r?r.name:""),value:""}].concat(f()(e))},T=function(e){return Object(l.sprintf)(
62 -/* translators: %1$s expands to the plural name of the current post type, %2$s and %3$s expand to a link to the Search Appearance Settings page */
63 -Object(l.__)("You can change the default type for %1$s in your %2$sSearch Appearance Settings%3$s.","wordpress-seo"),e,"{{link}}","{{/link}}")},R=function(e){return Object(i.createElement)(b.FieldGroup,{label:e.helpTextTitle,linkTo:e.helpTextLink,linkText:Object(l.__)("Learn more about structured data with Schema.org","wordpress-seo"),description:e.helpTextDescription})};R.propTypes={helpTextTitle:p.a.string.isRequired,helpTextLink:p.a.string.isRequired,helpTextDescription:p.a.string.isRequired};var S=function(e){return Object(i.createElement)("p",null,e.helpTextDescription+" ",Object(i.createElement)("a",{href:e.helpTextLink},Object(l.__)("Read more about Schema.","wordpress-seo")))};S.propTypes={helpTextDescription:p.a.string.isRequired,helpTextLink:p.a.string.isRequired};var C=function(e){var t,n=_(e.pageTypeOptions,e.defaultPageType,e.postTypeName),r=_(e.articleTypeOptions,e.defaultArticleType,e.postTypeName),a=Object(k.isFeatureEnabled)("SCHEMA_BLOCKS");return Object(i.createElement)(i.Fragment,null,a?Object(i.createElement)(S,e):Object(i.createElement)(R,e),a&&Object(i.createElement)(g.Slot,{name:Object(y.join)(["yoast-schema-blocks-analysis",e.location])}),Object(i.createElement)(b.FieldGroup,{label:Object(l.__)("What type of page or content is this?","wordpress-seo"),linkTo:e.additionalHelpTextLink,linkText:Object(l.__)("Learn more about page or content types","wordpress-seo")}),Object(i.createElement)(b.Select,{id:Object(y.join)(["yoast-schema-page-type",e.location]),options:n,label:Object(l.__)("Page type","wordpress-seo"),onChange:e.schemaPageTypeChange,selected:e.schemaPageTypeSelected}),e.showArticleTypeInput&&Object(i.createElement)(b.Select,{id:Object(y.join)(["yoast-schema-article-type",e.location]),options:r,label:Object(l.__)("Article type","wordpress-seo"),onChange:e.schemaArticleTypeChange,selected:e.schemaArticleTypeSelected}),e.displayFooter&&Object(i.createElement)("p",null,(t=e.postTypeName,v()({mixedString:T(t),components:{link:Object(i.createElement)("a",{href:"/wp-admin/admin.php?page=wpseo_titles#top#post-types",target:"_blank"})}}))))};C.propTypes={schemaPageTypeChange:p.a.func,schemaPageTypeSelected:p.a.string,pageTypeOptions:E.b.isRequired,schemaArticleTypeChange:p.a.func,schemaArticleTypeSelected:p.a.string,articleTypeOptions:E.b.isRequired,showArticleTypeInput:p.a.bool.isRequired,additionalHelpTextLink:p.a.string.isRequired,helpTextLink:p.a.string.isRequired,helpTextTitle:p.a.string.isRequired,helpTextDescription:p.a.string.isRequired,postTypeName:p.a.string.isRequired,displayFooter:p.a.bool,defaultPageType:p.a.string.isRequired,defaultArticleType:p.a.string.isRequired,location:p.a.string.isRequired},C.defaultProps={schemaPageTypeChange:function(){},schemaPageTypeSelected:null,schemaArticleTypeChange:function(){},schemaArticleTypeSelected:null,displayFooter:!1};var P=function(e){return e.isMetabox?Object(i.createPortal)(Object(i.createElement)(x,null,Object(i.createElement)(C,e)),document.getElementById("wpseo-meta-section-schema")):Object(i.createElement)(C,e)};P.propTypes={showArticleTypeInput:p.a.bool,articleTypeLabel:p.a.string,additionalHelpTextLink:p.a.string,pageTypeLabel:p.a.string.isRequired,helpTextLink:p.a.string.isRequired,helpTextTitle:p.a.string.isRequired,helpTextDescription:p.a.string.isRequired,isMetabox:p.a.bool.isRequired,postTypeName:p.a.string.isRequired,displayFooter:p.a.bool,loadSchemaArticleData:p.a.func.isRequired,loadSchemaPageData:p.a.func.isRequired,location:p.a.string.isRequired},P.defaultProps={showArticleTypeInput:!1,articleTypeLabel:"",additionalHelpTextLink:"",displayFooter:!1};var L=P,D=n(91),A=n(60);function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var M=function(e){var t=null!==D.a.articleTypeInput;Object(i.useEffect)((function(){e.loadSchemaPageData(),t&&e.loadSchemaArticleData()}),[]);var n=window.wpseoScriptData.metabox.schema,r=n.pageTypeOptions,a=n.articleTypeOptions,o={articleTypeLabel:Object(l.__)("Article type","wordpress-seo"),pageTypeLabel:Object(l.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:Object(l.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:Object(l.__)("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:r,articleTypeOptions:a},s=q(q(q({},e),o),"metabox"===e.location?{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});return Object(i.createElement)(L,s)};M.propTypes={displayFooter:p.a.bool.isRequired,schemaPageTypeSelected:p.a.string.isRequired,schemaArticleTypeSelected:p.a.string.isRequired,defaultArticleType:p.a.string.isRequired,defaultPageType:p.a.string.isRequired,loadSchemaPageData:p.a.func.isRequired,loadSchemaArticleData:p.a.func.isRequired,schemaPageTypeChange:p.a.func.isRequired,schemaArticleTypeChange:p.a.func.isRequired,location:p.a.string.isRequired},t.a=Object(s.compose)([Object(c.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getPreferences,r=t.getPageType,a=t.getDefaultPageType,o=t.getArticleType,i=t.getDefaultArticleType;return{displayFooter:n().displaySchemaSettingsFooter,schemaPageTypeSelected:r(),schemaArticleTypeSelected:o(),defaultArticleType:i(),defaultPageType:a()}})),Object(c.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setPageType,r=t.setArticleType;return{loadSchemaPageData:t.getSchemaPageData,loadSchemaArticleData:t.getSchemaArticleData,schemaPageTypeChange:n,schemaArticleTypeChange:r}})),Object(A.a)()])(M)},function(e,t,n){"use strict";n.d(t,"b",(function(){return j})),n.d(t,"a",(function(){return E}));var r=n(29),a=n.n(r),o=n(10),i=n.n(o),s=n(12),c=n.n(s),l=n(21),u=n.n(l),p=n(22),d=n.n(p),f=n(13),h=n.n(f),m=n(0),b=n(24),g=n(26),y=n(83);var w=[],v=null,O=function(e){u()(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=h()(t);if(n){var a=h()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return d()(this,e)});function o(e){var t;return i()(this,o),(t=r.call(this,e)).state={registeredComponents:[]},t}return c()(o,[{key:"registerComponent",value:function(e,t){this.setState({registeredComponents:[].concat(a()(this.state.registeredComponents),[{key:e,Component:t}])})}},{key:"render",value:function(){return this.state.registeredComponents.map((function(e){var t=e.Component,n=e.key;return Object(m.createElement)(t,{key:n})}))}}]),o}(m.Component);function j(e,t){var n=Object(g.a)();v=Object(m.createRef)();var r={isRtl:n.isRtl};Object(m.render)(Object(m.createElement)(y.a,{theme:r,location:"sidebar"},Object(m.createElement)(b.SlotFillProvider,null,Object(m.createElement)(m.Fragment,null,t,Object(m.createElement)(O,{ref:v})))),document.getElementById(e)),w.forEach((function(e){v.current.registerComponent(e.key,e.Component)}))}function E(e,t){null===v||null===v.current?w.push({key:e,Component:t}):v.current.registerComponent(e,t)}},,,function(e,t){e.exports=window.yoast.searchMetadataPreviews},function(e,t,n){"use strict";var r=n(0),a=n(24),o=n(1),i=n.n(o),s=n(104),c=function(e){return Object(r.useEffect)((function(){setTimeout(e.onLoad)}),[]),e.isPremium?Object(r.createElement)(a.Slot,{name:"YoastTwitterPremium".concat(e.location.charAt(0).toUpperCase()+e.location.slice(1)),fillProps:e}):Object(r.createElement)(s.a,e)};c.propTypes={isPremium:i.a.bool.isRequired,onLoad:i.a.func.isRequired,location:i.a.string.isRequired},t.a=c},function(e,t,n){"use strict";var r=n(17),a=n.n(r),o=n(31),i=n.n(o),s=n(0),c=n(24),l=n(1),u=n.n(l),p=n(104);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(e){var t=Object(s.useState)(""),n=i()(t,2),r=n[0],a=n[1],o=Object(s.useCallback)((function(e){a(e.detail.metaTabId)}),[a]);Object(s.useEffect)((function(){return setTimeout(e.onLoad),window.addEventListener("YoastSEO:metaTabChange",o),function(){window.removeEventListener("YoastSEO:metaTabChange",o)}}),[]);var l=Object(s.useMemo)((function(){return f(f({},e),{},{activeMetaTabId:r})}),[e,r]);return e.isPremium?Object(s.createElement)(c.Slot,{name:"YoastFacebookPremium".concat(e.location.charAt(0).toUpperCase()+e.location.slice(1)),fillProps:l}):Object(s.createElement)(p.a,l)};h.propTypes={isPremium:u.a.bool.isRequired,onLoad:u.a.func.isRequired,location:u.a.string.isRequired},t.a=h},,function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(42),a=n.n(r),o=n(10),i=n.n(o),s=n(12),c=n.n(s),l=n(3),u=function(){function e(t){i()(this,e),this.refresh=t,this.loaded=!1,this.preloadThreshold=3e3,this.plugins={},this.modifications={},this._registerPlugin=this._registerPlugin.bind(this),this._ready=this._ready.bind(this),this._reloaded=this._reloaded.bind(this),this._registerModification=this._registerModification.bind(this),this._registerAssessment=this._registerAssessment.bind(this),this._applyModifications=this._applyModifications.bind(this),setTimeout(this._pollLoadingPlugins.bind(this),1500)}return c()(e,[{key:"_registerPlugin",value:function(e,t){return Object(l.isString)(e)?Object(l.isUndefined)(t)||Object(l.isObject)(t)?!1===this._validateUniqueness(e)?(console.error("Failed to register plugin. Plugin with name "+e+" already exists"),!1):(this.plugins[e]=t,!0):(console.error("Failed to register plugin "+e+". Expected parameters `options` to be a object."),!1):(console.error("Failed to register plugin. Expected parameter `pluginName` to be a string."),!1)}},{key:"_ready",value:function(e){return Object(l.isString)(e)?Object(l.isUndefined)(this.plugins[e])?(console.error("Failed to modify status for plugin "+e+". The plugin was not properly registered."),!1):(this.plugins[e].status="ready",!0):(console.error("Failed to modify status for plugin "+e+". Expected parameter `pluginName` to be a string."),!1)}},{key:"_reloaded",value:function(e){return Object(l.isString)(e)?Object(l.isUndefined)(this.plugins[e])?(console.error("Failed to reload Content Analysis for plugin "+e+". The plugin was not properly registered."),!1):(this.refresh(),!0):(console.error("Failed to reload Content Analysis for "+e+". Expected parameter `pluginName` to be a string."),!1)}},{key:"_registerModification",value:function(e,t,n,r){if(!Object(l.isString)(e))return console.error("Failed to register modification for plugin "+n+". Expected parameter `modification` to be a string."),!1;if(!Object(l.isFunction)(t))return console.error("Failed to register modification for plugin "+n+". Expected parameter `callable` to be a function."),!1;if(!Object(l.isString)(n))return console.error("Failed to register modification for plugin "+n+". Expected parameter `pluginName` to be a string."),!1;if(!1===this._validateOrigin(n))return console.error("Failed to register modification for plugin "+n+". The integration has not finished loading yet."),!1;var a={callable:t,origin:n,priority:Object(l.isNumber)(r)?r:10};return Object(l.isUndefined)(this.modifications[e])&&(this.modifications[e]=[]),this.modifications[e].push(a),!0}},{key:"_registerAssessment",value:function(e,t,n,r){return Object(l.isString)(t)?Object(l.isObject)(n)?Object(l.isString)(r)?(t=r+"-"+t,e.addAssessment(t,n),!0):(console.error("Failed to register assessment for plugin "+r+". Expected parameter `pluginName` to be a string."),!1):(console.error("Failed to register assessment for plugin "+r+". Expected parameter `assessment` to be a function."),!1):(console.error("Failed to register test for plugin "+r+". Expected parameter `name` to be a string."),!1)}},{key:"_applyModifications",value:function(e,t,n){var r=this.modifications[e];return!Object(l.isArray)(r)||r.length<1||((r=this._stripIllegalModifications(r)).sort((function(e,t){return e.priority-t.priority})),Object(l.forEach)(r,(function(r){var o=r.callable(t,n);a()(o)===a()(t)?t=o:console.error("Modification with name "+e+" performed by plugin with name "+r.origin+" was ignored because the data that was returned by it was of a different type than the data we had passed it.")}))),t}},{key:"_pollLoadingPlugins",value:function(e){e=Object(l.isUndefined)(e)?0:e,!0===this._allReady()?(this.loaded=!0,this.refresh()):e>=this.preloadThreshold?(this._pollTimeExceeded(),this.loaded=!0,this.refresh()):(e+=50,setTimeout(this._pollLoadingPlugins.bind(this,e),50))}},{key:"_allReady",value:function(){return Object(l.reduce)(this.plugins,(function(e,t){return e&&"ready"===t.status}),!0)}},{key:"_pollTimeExceeded",value:function(){Object(l.forEach)(this.plugins,(function(e,t){Object(l.isUndefined)(e.options)||"ready"===e.options.status||(console.error("Error: Plugin "+t+". did not finish loading in time."),delete this.plugins[t])}))}},{key:"_stripIllegalModifications",value:function(e){var t=this;return Object(l.forEach)(e,(function(n,r){!1===t._validateOrigin(n.origin)&&delete e[r]})),e}},{key:"_validateOrigin",value:function(e){return"ready"===this.plugins[e].status}},{key:"_validateUniqueness",value:function(e){return Object(l.isUndefined)(this.plugins[e])}}]),e}()},function(e,t,n){"use strict";n.r(t);var r=n(122);n.d(t,"DISMISS_ALERT",(function(){return r.DISMISS_ALERT}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=jQuery;function o(e,t,n,r){this._scriptUrl=r,this._options={usedKeywords:t.keyword_usage,searchUrl:t.search_url,postUrl:t.post_edit_url},this._keywordUsage=t.keyword_usage,this._postID=a("#post_ID, [name=tag_ID]").val(),this._taxonomy=a("[name=taxonomy]").val()||"",this._ajaxAction=e,this._refreshAnalysis=n,this._initialized=!1}o.prototype.init=function(){var e=this,t=window.YoastSEO.analysis.worker;this.requestKeywordUsage=Object(r.debounce)(this.requestKeywordUsage.bind(this),500),t.loadScript(this._scriptUrl).then((function(){t.sendMessage("initialize",e._options,"used-keywords-assessment")})).then((function(){e._initialized=!0,Object(r.isEqual)(e._options.usedKeywords,e._keywordUsage)?e._refreshAnalysis():t.sendMessage("updateKeywordUsage",e._keywordUsage,"used-keywords-assessment").then((function(){return e._refreshAnalysis()}))})).catch((function(e){return console.error(e)}))},o.prototype.setKeyword=function(e){Object(r.has)(this._keywordUsage,e)||this.requestKeywordUsage(e)},o.prototype.requestKeywordUsage=function(e){a.post(ajaxurl,{action:this._ajaxAction,post_id:this._postID,keyword:e,taxonomy:this._taxonomy},this.updateKeywordUsage.bind(this,e),"json")},o.prototype.updateKeywordUsage=function(e,t){var n=this,a=window.YoastSEO.analysis.worker;t&&Object(r.isArray)(t)&&(this._keywordUsage[e]=t,this._initialized&&a.sendMessage("updateKeywordUsage",this._keywordUsage,"used-keywords-assessment").then((function(){return n._refreshAnalysis()})))}},,,,function(e,t,n){"use strict";var r,a,o,i,s,c,l,u,p,d,f,h,m,b,g,y,w,v,O,j,E,k,x,_,T,R,S,C,P,L,D,A,I,q,M,F,N,W,U,z,K,B,H,V,Y,$,G,Z,Q=n(31),J=n.n(Q),X=n(0),ee=n(2),te=function(){return Object(X.createElement)(X.Fragment,null,Object(ee.sprintf)(
64 -/* Translators: %1$s expands to WordProof. %2$s expands to WordPress" */
65 -Object(ee.__)("Something went wrong authenticating your %1$s account with the %2$s site. Please try again or contact %1$s support.","wordpress-seo"),"WordProof","WordPress"))},ne=n(4);function re(){return(re=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ae(e){return ne.createElement("svg",re({"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 360"},e),r||(r=ne.createElement("circle",{cx:226,cy:211,r:149,fill:"#f0ecf0"})),a||(a=ne.createElement("path",{d:"M173.53 189.38s-35.47-5.3-41.78-11c-9.39-24.93-29.61-48-35.47-66.21-.71-2.24 3.72-11.39 3.53-15.41s-5.34-11.64-5.23-14-.09-15.27-.09-15.27l-4.75-.72s-5.13 6.07-3.56 9.87c-1.73-4.19 4.3 7.93.5 9.35 0 0-6-5.94-11.76-8.27s-19.57-3.65-19.57-3.65L43.19 73l-4.42.6L31 69.7l-2.85 5.12 7.53 5.29L40.86 92l17.19 10.2 10.2 10.56 9.86 3.56s26.49 79.67 45 92c17 11.33 37.23 15.92 37.23 15.92z",fill:"#fbd2a6"})),o||(o=ne.createElement("path",{d:"M270.52 345.13c2.76-14.59 15.94-35.73 30.24-54.58 16.22-21.39 14-79.66-33.19-91.46-17.3-4.32-52.25-1-59.85-3.41C186.54 189 170 187 168 190.17c-5 10.51-7.73 27.81-5.51 36.26 1.18 4.73 3.54 5.91 20.49 13.4-5.12 15-16.35 26.3-22.86 37s7.88 27.2 7.1 33.51c-.48 3.8-4.26 21.13-7.18 34.25a149.47 149.47 0 00110.3 8.66 25.66 25.66 0 01.18-8.12z",fill:"#a4286a"})),i||(i=ne.createElement("path",{d:"M206.76 66.43c-5 14.4-1.42 25.67-3.93 40.74-10 60.34-24.08 43.92-31.44 93.6 7.24-14.19 14.32-15.82 20.63-23.11-.83 3.09-10.25 13.75-8.05 34.81 9.85-8.51 6.35-8.75 11.86-8.54.36 3.25 3.53 3.22-3.59 10.53 2.52.69 17.42-14.32 20.16-12.66s0 5.72-6 7.76c2.15 2.2 30.47-3.87 43.81-14.71 4.93-4 10-13.16 13.38-18.2 7.17-10.62 12.38-24.77 17.71-36.6 8.94-19.87 15.09-39.34 16.11-61.31.53-10.44-3.41-18.44-4.41-28.86-2.57-27.8-67.63-37.26-86.24 16.55z",fill:"#9a5815"})),s||(s=ne.createElement("path",{d:"M277.74 179.06c.62-.79 1.24-1.59 1.84-2.39-.85 2.59-1.52 3.73-1.84 2.39z",fill:"#efb17c"})),c||(c=ne.createElement("path",{d:"M216.1 206.72c3.69-5.42 8.28-3.35 15.57-8.28 3.76-3.06 1.57-9.46 1.77-11.82 18.25 4.56 37.38-1.18 49.07-16 .62 5.16-2.77 22.27-.2 27 4.73 8.67 13.4 18.92 13.4 18.92-35.47-2.76-63.45 39-89.86 44.54 5.52-28.74-2.36-35.84 10.25-54.36z",fill:"#fbd2a6"})),l||(l=ne.createElement("path",{d:"M235.21 167.9l53.21-25.23s-3.65 24-6.5 32.72c-64.05 62.66-46.47-7.33-46.71-7.49z",fill:"#f6b488"})),u||(u=ne.createElement("path",{d:"M277.68 178.82z",fill:"#efb17c"})),p||(p=ne.createElement("path",{d:"M226.86 50.64C215 59.31 206.37 93.21 204 95.57c-19.46 19.47-3.59 41.39-3.94 51.24-.2 5.52-4.14 25.42 5.72 29.36 22.22 8.89 60-3.48 67.19-12.61 13.28-16.75 40.89-94.78 17.74-108.19-7.92-4.58-42.78-20.18-63.85-4.73z",fill:"#fbd2a6"})),d||(d=ne.createElement("path",{d:"M243.69 143.66c-10.7-6.16-8.56-6.73-19.76-12.71-3.86-2.07-3.94.64-6.32 0-2.91-.79-1.39-2.74-5.37-3.48-6.52-1.21-3.67 3.63-3.15 6 1.32 6.15-8.17 17.3 3.26 21.42 12.65 4.55 21.38-9.41 31.34-11.23z",fill:"#e5766c"})),f||(f=ne.createElement("path",{d:"M240.68 143.9c-11.49-5.53-11.65-8.17-24.64-11.69-8.6-2.32-5.53 1-5.69 4.42-.2 4.16-1.26 9.87 4.9 12.66 9 4.09 18.16-6.02 25.43-5.39zM241.38 103c-.16 1.26-.06 4.9 5.46 8.25 11.43-4.73 16.36-2.56 17-3.33 1.48-1.76-2-8.87-7.88-9.85-5.58-.94-14.14 1.24-14.58 4.93z",fill:"#fff"})),h||(h=ne.createElement("path",{d:"M263.53 108.19c-4.32-4.33-6.85-6.24-12.26-8.21-2.77-1-6.18.18-8.65 1.67a3.65 3.65 0 00-1.24 1.23h-.12a3.73 3.73 0 011-1.52 12.53 12.53 0 0111.93-3c4.73 1 9.43 4.63 9.42 9.82z",fill:"#000001"})),m||(m=ne.createElement("circle",{cx:254.13,cy:104.05,r:4.19,fill:"#000001"})),b||(b=ne.createElement("path",{d:"M225.26 99.22c-.29 1-6.6 3.45-10.92 1.48-1.15-3.24-5-6.43-5.25-6.71-.5-2.86 5.55-8 10.06-6.3a10.21 10.21 0 016.11 11.53z",fill:"#fff"})),g||(g=ne.createElement("path",{d:"M209.29 94.21c-.19-2.34 1.84-4.1 3.65-5.2 7-3.87 13.18 3 12.43 10h-.12c-.14-4-2.38-8.44-6.47-9.11a3.19 3.19 0 00-2.42.31c-1.37.85-2.38 2-3.89 2.56-1 .45-1.92.42-3 1.4h-.22z",fill:"#000001"})),y||(y=ne.createElement("circle",{cx:219.55,cy:95.28,r:4,fill:"#000001"})),w||(w=ne.createElement("path",{d:"M218.66 120.27a27.32 27.32 0 004.54 3.45c-2.29-.72-4.28-.69-6.32-2.27-2.53-2-3.39-5.16-.73-7.72 10.24-9.82 12.56-13.82 14.77-24.42-1 12.37-6 17.77-10.63 23.18-2.53 2.97-4.68 5.06-1.63 7.78z",fill:"#efb17c"})),v||(v=ne.createElement("path",{d:"M231.22 69.91c-.67-3.41-8.78-2.83-11.06-1.93-3.48 1.39-6.08 5.22-7.13 8.53 2.9-4.3 6.74-8.12 12.46-6 1.16.42 3.18 2.35 4.48 1.85s1.03-2.2 1.25-2.45zM263.38 78.47c-2.75-1.66-12.24-5.08-12.18.82 2.56.24 5-.19 7.64.95 11.22 4.76 12.77 17.61 12.85 17.86.2-.53.1 1.26.23.7-.02.2.95-12.12-8.54-20.33z",fill:"#a57c52"})),O||(O=ne.createElement("path",{d:"M53.43 250.73c6.29 0-.6-.17 7.34 0 1.89.05-2.38-.7 0-.69 4.54-4.2 12.48-.74 20.6-2.45 4.55.35 3.93 1.35 5.59 4.19 4.89 8.38 4.78 14.21 14 19.56 16.42 8.38 66 12.92 88.49 18.86 5.52.83 42.64-20.15 61-23.75 6.51 10.74 11.46 28.68 8.39 34.93-6.54 13.3-57.07 25.4-75.91 25.15C156.47 326.18 94 294 92.2 293c-.94-.57.7-.7-7.68 0s-10.15.72-17.47-1.4c-3-.87-4.61-1.33-6.33-3.54-2 .22-3.39.2-4.78-1-3.15-2.74-4.84-6.61-2.73-10.06h-.12c-3.35-2.48-6.54-7.69-3.08-11.72 1-1.18 6.06-1.94 7.77-2.28-1.58-.29-6.37.19-7.49-.72-3.06-2.5-4.96-11.55 3.14-11.55z",fill:"#fbd2a6"})),j||(j=ne.createElement("path",{d:"M303.22 237.52c-9.87-11.88-41.59 8.19-47.8 12.34s-14.89 17.95-14.89 17.95c6 9.43 8.36 31 5.65 46.34l30.51-3s18-15.62 22.59-28.7 6.3-42.54 6.3-42.54",fill:"#a4286a"})),E||(E=ne.createElement("path",{d:"M278.63 31.67c-6.08 0-22.91 4.07-22.93 12.91 0 11 47.9 38.38 16.14 85.85 10.21-.79 10.79-8.12 14.92-14.93-3.66 77-49.38 93.58-40.51 142.25 7.68-25.81 20.3-11.62 38.13-33.84 3.45 4.88 9 18.28-9.46 33.78 50-31.26 57.31-56.6 51.92-95C319.93 113.53 348.7 42 278.63 31.67z",fill:"#cb9833"})),k||(k=ne.createElement("path",{d:"M283.64 126.83c-2.42 9.67-8 15.76-1.48 16.46A21.26 21.26 0 00302 132.6c5.17-8.52 3.93-16.44-2.46-18s-13.48 2.56-15.9 12.23z",fill:"#fbd2a6"})),x||(x=ne.createElement("path",{d:"M38 73.45c1.92 2 4.25 9.21 6.32 10.91 2.25 1.85 5.71 2.12 8.1 4.45 3.66-2 6-8.72 10-9.31-2.59 1.31-4.42 3.5-6.93 4.88-1.42.8-3 1.31-4.38 2.25-2.16-1.46-4.27-1.77-6.26-3.38-2.52-2.02-5.31-8-6.85-9.8z",fill:"#efb17c"})),_||(_=ne.createElement("path",{d:"M39 74.4c4.83 1.1 12.52 6.44 15.89 10-3.22-1.34-14.73-6.15-15.89-10zM39.62 72.9c6.71-.79 18 1.54 23.29 5.9-3.85-.2-5.42-1.48-9-2.94-4.08-1.69-8.83-2.03-14.29-2.96zM86.05 87.48c-3.72-1.32-10.52-1.13-13.22 3.52 2-1.16 1.84-2.11 4.18-1.72-3.81-4.15 8.16-.74 11.6-.24M85.83 102.19c.56-3.29-8-7.81-10.58-9.17-6.25-3.29-12.16 1.36-19.33-4.53 5.94 6.1 14.23 2.5 19.55 5.76 3.06 1.88 8.65 6.09 9.35 9.38-.23-.4 1.29-1.44 1.01-1.44z",fill:"#efb17c"})),T||(T=ne.createElement("circle",{cx:38.13,cy:30.03,r:3.14,fill:"#b89ac8"})),R||(R=ne.createElement("circle",{cx:60.26,cy:39.96,r:3.14,fill:"#e31e0c"})),S||(S=ne.createElement("circle",{cx:50.29,cy:25.63,r:3.14,fill:"#3baa45"})),C||(C=ne.createElement("circle",{cx:22.19,cy:19.21,r:3.14,fill:"#2ca9e1"})),P||(P=ne.createElement("circle",{cx:22.19,cy:30.03,r:3.14,fill:"#e31e0c"})),L||(L=ne.createElement("circle",{cx:26.86,cy:8.28,r:3.14,fill:"#3baa45"})),D||(D=ne.createElement("circle",{cx:49.32,cy:39.99,r:3.14,fill:"#e31e0c"})),A||(A=ne.createElement("circle",{cx:63.86,cy:59.52,r:3.14,fill:"#f8ad39"})),I||(I=ne.createElement("circle",{cx:50.88,cy:50.72,r:3.14,fill:"#3baa45"})),q||(q=ne.createElement("circle",{cx:63.47,cy:76.17,r:3.14,fill:"#e31e0c"})),M||(M=ne.createElement("circle",{cx:38.34,cy:14.83,r:3.14,fill:"#2ca9e1"})),F||(F=ne.createElement("circle",{cx:44.44,cy:5.92,r:3.14,fill:"#f8ad39"})),N||(N=ne.createElement("circle",{cx:57.42,cy:10.24,r:3.14,fill:"#e31e0c"})),W||(W=ne.createElement("circle",{cx:66.81,cy:12.4,r:3.14,fill:"#2ca9e1"})),U||(U=ne.createElement("circle",{cx:77.95,cy:5.14,r:3.14,fill:"#b89ac8"})),z||(z=ne.createElement("circle",{cx:77.95,cy:30.34,r:3.14,fill:"#e31e0c"})),K||(K=ne.createElement("circle",{cx:80.97,cy:16.55,r:3.14,fill:"#f8ad39"})),B||(B=ne.createElement("circle",{cx:62.96,cy:27.27,r:3.14,fill:"#3baa45"})),H||(H=ne.createElement("circle",{cx:75.36,cy:48.67,r:3.14,fill:"#2ca9e1"})),V||(V=ne.createElement("circle",{cx:76.11,cy:65.31,r:3.14,fill:"#3baa45"})),Y||(Y=ne.createElement("path",{d:"M78.58 178.43C54.36 167.26 32 198.93 5 198.93c19.56 20.49 63.53 1.52 69 15.5 1.48-14.01 4.11-30.9 4.58-36z",fill:"#71b026"})),$||($=ne.createElement("path",{d:"M67.75 251.08c0-4.65 10.13-72.65 10.13-72.65h2.8l-9.09 72.3z",fill:"#074a67"})),G||(G=ne.createElement("ellipse",{cx:255.38,cy:103.18,rx:1.84,ry:1.77,fill:"#fff"})),Z||(Z=ne.createElement("ellipse",{cx:221.24,cy:94.75,rx:1.84,ry:1.77,fill:"#fff"})))}var oe=n(49),ie=n(6),se=n(1),ce=n.n(se),le=function(e){var t=e.closeModal;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)("div",{className:"yoast-wordproof-modal-image"},Object(X.createElement)(ae,{class:"yoast-wordproof-modal-svg__success"})),Object(X.createElement)("p",null,Object(ee.sprintf)(
66 -/* Translators: %s translates to the Post type in singular form */
67 -Object(ee.__)("Your %s is now protected via the blockchain!","wordpress-seo"),Object(oe.a)("current_post_type")),Object(X.createElement)("br",null),Object(X.createInterpolateElement)(Object(ee.sprintf)(Object(ee.__)(
68 -/** translators:
69 - * %1$s and %2$s are replaced by opening and closing <b> tags.
70 - * %3$s translates to the Post type in singular form.
1 +(()=>{var e={465(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),o.createElement("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"}))});e.exports=i},818(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),o.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))});e.exports=i},998(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),o.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))});e.exports=i},1609(e){"use strict";e.exports=window.React},2485(e,t){var s;!function(){"use strict";var o={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var r=typeof s;if("string"===r||"number"===r)e.push(s);else if(Array.isArray(s)){if(s.length){var n=i.apply(null,s);n&&e.push(n)}}else if("object"===r){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var a in s)o.call(s,a)&&s[a]&&e.push(a)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(s=function(){return i}.apply(t,[]))||(e.exports=s)}()},2514(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))});e.exports=i},3041(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),o.createElement("path",{d:"M15 8a3 3 0 10-2.977-2.63l-4.94 2.47a3 3 0 100 4.319l4.94 2.47a3 3 0 10.895-1.789l-4.94-2.47a3.027 3.027 0 000-.74l4.94-2.47C13.456 7.68 14.19 8 15 8z"}))});e.exports=i},3473(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))});e.exports=i},5074(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))});e.exports=i},5169(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),o.createElement("path",{d:"M11 3a1 1 0 10-2 0v1a1 1 0 102 0V3zM15.657 5.757a1 1 0 00-1.414-1.414l-.707.707a1 1 0 001.414 1.414l.707-.707zM18 10a1 1 0 01-1 1h-1a1 1 0 110-2h1a1 1 0 011 1zM5.05 6.464A1 1 0 106.464 5.05l-.707-.707a1 1 0 00-1.414 1.414l.707.707zM5 10a1 1 0 01-1 1H3a1 1 0 110-2h1a1 1 0 011 1zM8 16v-1h4v1a2 2 0 11-4 0zM12 14c.015-.34.208-.646.477-.859a4 4 0 10-4.954 0c.27.213.462.519.476.859h4.002z"}))});e.exports=i},5547(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),o.createElement("path",{d:"M2 11a1 1 0 011-1h2a1 1 0 011 1v5a1 1 0 01-1 1H3a1 1 0 01-1-1v-5zM8 7a1 1 0 011-1h2a1 1 0 011 1v9a1 1 0 01-1 1H9a1 1 0 01-1-1V7zM14 4a1 1 0 011-1h2a1 1 0 011 1v12a1 1 0 01-1 1h-2a1 1 0 01-1-1V4z"}))});e.exports=i},5687(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),o.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))});e.exports=i},6702(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))});e.exports=i},7656(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),o.createElement("path",{d:"M3 1a1 1 0 000 2h1.22l.305 1.222a.997.997 0 00.01.042l1.358 5.43-.893.892C3.74 11.846 4.632 14 6.414 14H15a1 1 0 000-2H6.414l1-1H14a1 1 0 00.894-.553l3-6A1 1 0 0017 3H6.28l-.31-1.243A1 1 0 005 1H3zM16 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM6.5 18a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"}))});e.exports=i},8290(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),o.createElement("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"}))});e.exports=i},8738(e,t,s){const o=s(1609),i=o.forwardRef(function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),o.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))});e.exports=i}},t={};function s(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,s),r.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};s.r(e),s.d(e,{DISMISS_ALERT:()=>Wa,NEW_REQUEST:()=>Ba,SNIPPET_EDITOR_FIND_CUSTOM_FIELDS:()=>$a,wistiaEmbedPermission:()=>Ka});var t={};s.r(t),s.d(t,{loadSnippetEditorData:()=>Ga,updateData:()=>za});var o={};s.r(o),s.d(o,{getSnippetEditorData:()=>il,getSnippetEditorSlug:()=>ol});var i={};s.r(i),s.d(i,{getAnalysisData:()=>ul});var r={};s.r(r),s.d(r,{getWincherPermalink:()=>Yl});var n={};s.r(n),s.d(n,{authorFirstName:()=>zl,authorLastName:()=>Gl,category:()=>Jl,categoryTitle:()=>ec,currentDate:()=>Zl,currentDay:()=>Ql,currentMonth:()=>Xl,currentYear:()=>tc,date:()=>sc,excerpt:()=>oc,focusKeyphrase:()=>ic,id:()=>rc,modified:()=>nc,name:()=>ac,page:()=>lc,pageNumber:()=>cc,pageTotal:()=>dc,permalink:()=>pc,postContent:()=>uc,postDay:()=>hc,postMonth:()=>gc,postTypeNamePlural:()=>yc,postTypeNameSingular:()=>wc,postYear:()=>mc,primaryCategory:()=>fc,searchPhrase:()=>bc,separator:()=>xc,siteDescription:()=>_c,siteName:()=>vc,tag:()=>kc,term404:()=>Sc,termDescription:()=>Rc,termHierarchy:()=>Tc,termTitle:()=>Ec,title:()=>jc,userDescription:()=>Cc});const a=window.wp.data,l=window.wp.hooks,c=window.lodash,d=window.yoast.analysis;class p{static get keyphraseElement(){var e;return document.getElementById(null!==(e=window.wpseoScriptData)&&void 0!==e&&e.isPost?"yoast_wpseo_focuskw":"hidden_wpseo_focuskw")}static get isCornerstoneElement(){var e;return document.getElementById(null!==(e=window.wpseoScriptData)&&void 0!==e&&e.isPost?"yoast_wpseo_is_cornerstone":"hidden_wpseo_is_cornerstone")}static get seoScoreElement(){var e;return document.getElementById(null!==(e=window.wpseoScriptData)&&void 0!==e&&e.isPost?"yoast_wpseo_linkdex":"hidden_wpseo_linkdex")}static get readabilityScoreElement(){var e;return document.getElementById(null!==(e=window.wpseoScriptData)&&void 0!==e&&e.isPost?"yoast_wpseo_content_score":"hidden_wpseo_content_score")}static get inclusiveLanguageScoreElement(){var e;return document.getElementById(null!==(e=window.wpseoScriptData)&&void 0!==e&&e.isPost?"yoast_wpseo_inclusive_language_score":"hidden_wpseo_inclusive_language_score")}static get seoTitleScoreElement(){var e;return document.getElementById(null!==(e=window.wpseoScriptData)&&void 0!==e&&e.isPost?"yoast_wpseo_seo_title_score":"hidden_wpseo_seo_title_score")}static get metaDescriptionScoreElement(){var e;return document.getElementById(null!==(e=window.wpseoScriptData)&&void 0!==e&&e.isPost?"yoast_wpseo_meta_description_score":"hidden_wpseo_meta_description_score")}static set keyphrase(e){p.keyphraseElement&&(p.keyphraseElement.value=e)}static get keyphrase(){var e,t;return null!==(e=null===(t=p.keyphraseElement)||void 0===t?void 0:t.value)&&void 0!==e?e:""}static set isCornerstone(e){p.isCornerstoneElement&&(p.isCornerstoneElement.value=e?"1":"0")}static get isCornerstone(){var e;return"1"===(null===(e=p.isCornerstoneElement)||void 0===e?void 0:e.value)}static set seoScore(e){p.seoScoreElement&&(p.seoScoreElement.value=e)}static get seoScore(){var e,t;return null!==(e=null===(t=p.seoScoreElement)||void 0===t?void 0:t.value)&&void 0!==e?e:""}static set readabilityScore(e){p.readabilityScoreElement&&(p.readabilityScoreElement.value=e)}static get readabilityScore(){var e,t;return null!==(e=null===(t=p.readabilityScoreElement)||void 0===t?void 0:t.value)&&void 0!==e?e:""}static set inclusiveLanguageScore(e){p.inclusiveLanguageScoreElement&&(p.inclusiveLanguageScoreElement.value=e)}static get inclusiveLanguageScore(){var e,t;return null!==(e=null===(t=p.inclusiveLanguageScoreElement)||void 0===t?void 0:t.value)&&void 0!==e?e:""}static set seoTitleScore(e){p.seoTitleScoreElement&&(p.seoTitleScoreElement.value=e)}static get seoTitleScore(){var e,t;return null!==(e=null===(t=p.seoTitleScoreElement)||void 0===t?void 0:t.value)&&void 0!==e?e:""}static set metaDescriptionScore(e){p.metaDescriptionScoreElement&&(p.metaDescriptionScoreElement.value=e)}static get metaDescriptionScore(){var e,t;return null!==(e=null===(t=p.metaDescriptionScoreElement)||void 0===t?void 0:t.value)&&void 0!==e?e:""}}const u=["titleWidth","keyphraseInSEOTitle"],h=["metaDescriptionKeyword","metaDescriptionLength"],g=(e,t)=>{const s=(e||[]).filter(e=>{var s,o;return t.includes(null==e?void 0:e._identifier)&&(null===(s=e.hasScore)||void 0===s?void 0:s.call(e))&&(null===(o=e.hasText)||void 0===o?void 0:o.call(e))}),o=s.reduce((e,t)=>e+t.getScore(),0);return Math.round(o/(9*s.length)*100)||0};function m(){}const y=window.yoast.externals.redux;function w(e){return e.sort((e,t)=>e._identifier.localeCompare(t._identifier))}function f(){return(0,c.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}function b(){const e=f();return(0,c.get)(e,"contentLocale","en_US")}function x(){const e=f();return!0===(0,c.get)(e,"contentAnalysisActive",!1)}function _(){const e=f();return!0===(0,c.get)(e,"keywordAnalysisActive",!1)}function v(){const e=f();return!0===(0,c.get)(e,"inclusiveLanguageAnalysisActive",!1)}const k=window.yoast.featureFlag;class S{constructor(e){this.refresh=e,this.loaded=!1,this.preloadThreshold=3e3,this.plugins={},this.modifications={},this._registerPlugin=this._registerPlugin.bind(this),this._ready=this._ready.bind(this),this._reloaded=this._reloaded.bind(this),this._registerModification=this._registerModification.bind(this),this._registerAssessment=this._registerAssessment.bind(this),this._applyModifications=this._applyModifications.bind(this),setTimeout(this._pollLoadingPlugins.bind(this),1500)}_registerPlugin(e,t){return(0,c.isString)(e)?(0,c.isUndefined)(t)||(0,c.isObject)(t)?!1===this._validateUniqueness(e)?(console.error("Failed to register plugin. Plugin with name "+e+" already exists"),!1):(this.plugins[e]=t,!0):(console.error("Failed to register plugin "+e+". Expected parameters `options` to be a object."),!1):(console.error("Failed to register plugin. Expected parameter `pluginName` to be a string."),!1)}_ready(e){return(0,c.isString)(e)?(0,c.isUndefined)(this.plugins[e])?(console.error("Failed to modify status for plugin "+e+". The plugin was not properly registered."),!1):(this.plugins[e].status="ready",!0):(console.error("Failed to modify status for plugin "+e+". Expected parameter `pluginName` to be a string."),!1)}_reloaded(e){return(0,c.isString)(e)?(0,c.isUndefined)(this.plugins[e])?(console.error("Failed to reload Content Analysis for plugin "+e+". The plugin was not properly registered."),!1):(this.refresh(),!0):(console.error("Failed to reload Content Analysis for "+e+". Expected parameter `pluginName` to be a string."),!1)}_registerModification(e,t,s,o){if(!(0,c.isString)(e))return console.error("Failed to register modification for plugin "+s+". Expected parameter `modification` to be a string."),!1;if(!(0,c.isFunction)(t))return console.error("Failed to register modification for plugin "+s+". Expected parameter `callable` to be a function."),!1;if(!(0,c.isString)(s))return console.error("Failed to register modification for plugin "+s+". Expected parameter `pluginName` to be a string."),!1;if(!1===this._validateOrigin(s))return console.error("Failed to register modification for plugin "+s+". The integration has not finished loading yet."),!1;const i={callable:t,origin:s,priority:(0,c.isNumber)(o)?o:10};return(0,c.isUndefined)(this.modifications[e])&&(this.modifications[e]=[]),this.modifications[e].push(i),!0}_registerAssessment(e,t,s,o){return(0,c.isString)(t)?(0,c.isObject)(s)?(0,c.isString)(o)?(t=o+"-"+t,e.addAssessment(t,s),!0):(console.error("Failed to register assessment for plugin "+o+". Expected parameter `pluginName` to be a string."),!1):(console.error("Failed to register assessment for plugin "+o+". Expected parameter `assessment` to be a function."),!1):(console.error("Failed to register test for plugin "+o+". Expected parameter `name` to be a string."),!1)}_applyModifications(e,t,s){let o=this.modifications[e];return!(0,c.isArray)(o)||o.length<1||(o=this._stripIllegalModifications(o),o.sort((e,t)=>e.priority-t.priority),(0,c.forEach)(o,function(o){const i=o.callable(t,s);typeof i==typeof t?t=i:console.error("Modification with name "+e+" performed by plugin with name "+o.origin+" was ignored because the data that was returned by it was of a different type than the data we had passed it.")})),t}_pollLoadingPlugins(e){e=(0,c.isUndefined)(e)?0:e,!0===this._allReady()?(this.loaded=!0,this.refresh()):e>=this.preloadThreshold?(this._pollTimeExceeded(),this.loaded=!0,this.refresh()):(e+=50,setTimeout(this._pollLoadingPlugins.bind(this,e),50))}_allReady(){return(0,c.reduce)(this.plugins,function(e,t){return e&&"ready"===t.status},!0)}_pollTimeExceeded(){(0,c.forEach)(this.plugins,function(e,t){(0,c.isUndefined)(e.options)||"ready"===e.options.status||(console.error("Error: Plugin "+t+". did not finish loading in time."),delete this.plugins[t])})}_stripIllegalModifications(e){return(0,c.forEach)(e,(t,s)=>{!1===this._validateOrigin(t.origin)&&delete e[s]}),e}_validateOrigin(e){return"ready"===this.plugins[e].status}_validateUniqueness(e){return(0,c.isUndefined)(this.plugins[e])}}let R=null;const T=()=>{if(null===R){const e=(0,a.dispatch)("yoast-seo/editor").runAnalysis;R=window.YoastSEO.app&&window.YoastSEO.app.pluggable?window.YoastSEO.app.pluggable:new S(e)}return R},E=e=>T()._ready(e),j=e=>T()._reloaded(e),C=(e,t,s,o)=>T()._registerModification(e,t,s,o),I=(e,t)=>T()._registerPlugin(e,t),L=(e,t,s)=>T().loaded?T()._applyModifications(e,t,s):t;function A(e,t){return e._properties.position.startOffset>t.length||e._properties.position.endOffset>t.length}function P(e,t,s){const o=e.dom;let i=e.getContent();if(i=d.markers.removeMarks(i),(0,c.isEmpty)(s))return void e.setContent(i);i=s[0].hasPosition()?function(e,t){if(!t)return"";for(let s=(e=(0,c.orderBy)(e,e=>e._properties.position.startOffset,["asc"])).length-1;s>=0;s--){const o=e[s];A(o,t)||(t=o.applyWithPosition(t))}return t}(s,i):function(e,t,s,o){const{fieldsToMark:i,selectedHTML:r}=d.languageProcessing.getFieldsToMark(s,o);return(0,c.forEach)(s,function(t){"acf_content"!==e.id&&(t._properties.marked=d.languageProcessing.normalizeHTML(t._properties.marked),t._properties.original=d.languageProcessing.normalizeHTML(t._properties.original)),i.length>0?r.forEach(e=>{const s=t.applyWithReplace(e);o=o.replace(e,s)}):o=t.applyWithReplace(o)}),o}(e,0,s,i),e.setContent(i),function(e){let t=e.getContent();t=t.replace(new RegExp("&lt;yoastmark.+?&gt;","g"),"").replace(new RegExp("&lt;/yoastmark&gt;","g"),""),e.setContent(t)}(e);const r=o.select("yoastmark");(0,c.forEach)(r,function(e){e.setAttribute("data-mce-bogus","1")})}function D(e){return window.test=e,P.bind(null,e)}c.noop,c.noop,c.noop;const O="content";function F(e){if("undefined"==typeof tinyMCE||void 0===tinyMCE.editors||0===tinyMCE.editors.length)return!1;const t=tinyMCE.get(e);return null!==t&&!t.isHidden()}window.wp.annotations;const q=window.wp.richText,M=/(<([a-z]|\/)[^<>]+>)/gi,{htmlEntitiesRegex:N}=d.helpers.htmlEntities,U=e=>{let t=0;return(0,c.forEachRight)(e,e=>{const[s]=e;let o=s.length;/^<\/?br/.test(s)&&(o-=1),t+=o}),t},W="<yoastmark class='yoast-text-mark'>",$="</yoastmark>",B='<yoastmark class="yoast-text-mark">';function K(e,t,s,o,i){const r=o.clientId,n=(0,q.create)({html:e,multilineTag:s.multilineTag,multilineWrapperTag:s.multilineWrapperTag}).text;return(0,c.flatMap)(i,s=>{let i;return i=s.hasBlockPosition&&s.hasBlockPosition()?function(e,t,s,o,i){if(t===e.getBlockClientId()){let t=e.getBlockPositionStart(),r=e.getBlockPositionEnd();if(e.isMarkForFirstBlockSection()){const e=((e,t,s)=>{const o="yoast/faq-block"===s?'<strong class="schema-faq-question">':'<strong class="schema-how-to-step-name">';return{blockStartOffset:e-=o.length,blockEndOffset:t-=o.length}})(t,r,s);t=e.blockStartOffset,r=e.blockEndOffset}if(o.slice(t,r)===i.slice(t,r))return[{startOffset:t,endOffset:r}];const n=((e,t,s)=>{const o=s.slice(0,e),i=s.slice(0,t),r=((e,t,s,o)=>{const i=[...e.matchAll(M)];s-=U(i);const r=[...t.matchAll(M)];return{blockStartOffset:s,blockEndOffset:o-=U(r)}})(o,i,e,t),n=((e,t,s,o)=>{let i=[...e.matchAll(N)];return(0,c.forEachRight)(i,e=>{const[,t]=e;s-=t.length}),i=[...t.matchAll(N)],(0,c.forEachRight)(i,e=>{const[,t]=e;o-=t.length}),{blockStartOffset:s,blockEndOffset:o}})(o,i,e=r.blockStartOffset,t=r.blockEndOffset);return{blockStartOffset:e=n.blockStartOffset,blockEndOffset:t=n.blockEndOffset}})(t,r,o);return[{startOffset:n.blockStartOffset,endOffset:n.blockEndOffset}]}return[]}(s,r,o.name,e,n):function(e,t){const s=t.getOriginal().replace(/(<([^>]+)>)/gi,""),o=t.getMarked().replace(/(<(?!\/?yoastmark)[^>]+>)/gi,""),i=function(e,t,s=!0){const o=[];if(0===e.length)return o;let i,r=0;for(s||(t=t.toLowerCase(),e=e.toLowerCase());(i=e.indexOf(t,r))>-1;)o.push(i),r=i+t.length;return o}(e,s);if(0===i.length)return[];const r=function(e){let t=e.indexOf(W);const s=t>=0;s||(t=e.indexOf(B));let o=null;const i=[];for(;t>=0;){if(o=(e=s?e.replace(W,""):e.replace(B,"")).indexOf($),o<t)return[];e=e.replace($,""),i.push({startOffset:t,endOffset:o}),t=s?e.indexOf(W):e.indexOf(B),o=null}return i}(o),n=[];return r.forEach(e=>{i.forEach(o=>{const i=o+e.startOffset;let r=o+e.endOffset;0===e.startOffset&&e.endOffset===t.getOriginal().length&&(r=o+s.length),n.push({startOffset:i,endOffset:r})})}),n}(n,s),i?i.map(e=>({...e,block:r,richTextIdentifier:t})):[]})}const H=e=>e[0].toUpperCase()+e.slice(1),V=(e,t,s,o,i)=>(e=e.map(e=>{const r=`${e.id}-${i[0]}`,n=`${e.id}-${i[1]}`,a=H(i[0]),l=H(i[1]),c=e[`json${a}`],d=e[`json${l}`],{marksForFirstSection:p,marksForSecondSection:u}=((e,t)=>({marksForFirstSection:e.filter(e=>e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&e.isMarkForFirstBlockSection():e),marksForSecondSection:e.filter(e=>e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&!e.isMarkForFirstBlockSection():e)}))(t,e),h=K(c,r,s,o,p),g=K(d,n,s,o,u);return h.concat(g)}),(0,c.flattenDeep)(e)),Y="yoast";let z=[];const G={"core/paragraph":[{key:"content"}],"core/list":[{key:"values",multilineTag:"li",multilineWrapperTag:["ul","ol"]}],"core/list-item":[{key:"content"}],"core/heading":[{key:"content"}],"core/audio":[{key:"caption"}],"core/embed":[{key:"caption"}],"core/gallery":[{key:"caption"}],"core/image":[{key:"caption"}],"core/table":[{key:"caption"}],"core/video":[{key:"caption"}],"yoast/faq-block":[{key:"questions"}],"yoast/how-to-block":[{key:"steps"},{key:"jsonDescription"}]};function Z(){const e=z.shift();e&&((0,a.dispatch)("core/annotations").__experimentalAddAnnotation(e),Q())}function Q(){(0,c.isFunction)(window.requestIdleCallback)?window.requestIdleCallback(Z,{timeout:1e3}):setTimeout(Z,150)}function X(e,t){return(0,c.flatMap)(e,e=>{const s=function(e){return e.innerBlocks.length>0}(e)?X(e.innerBlocks,t):[];return((e,t)=>{return(0,c.flatMap)((s=e.name,G.hasOwnProperty(s)?G[s]:[]),s=>"yoast/faq-block"===e.name?((e,t,s)=>{const o=t.attributes[e.key];return 0===o.length?[]:V(o,s,e,t,["question","answer"])})(s,e,t):"yoast/how-to-block"===e.name?((e,t,s)=>{const o=t.attributes[e.key];if(o&&0===o.length)return[];const i=[];return"steps"===e.key&&i.push(V(o,s,e,t,["name","text"])),"jsonDescription"===e.key&&(s=s.filter(e=>e.hasBlockPosition&&e.hasBlockPosition()?!e.getBlockAttributeId():e),i.push(K(o,"description",e,t,s))),(0,c.flattenDeep)(i)})(s,e,t):function(e,t,s){const o=e.key,i=((e,t)=>{const s=e.attributes[t];return"string"==typeof s?s:(s||"").toString()})(t,o);return K(i,o,e,t,s)}(s,e,t));var s})(e,t).concat(s)})}function J(e){z=[],(0,a.dispatch)("core/annotations").__experimentalRemoveAnnotationsBySource(Y);const t=function(e){return(0,c.uniq)((0,c.flatten)(e.map(e=>{if(!(0,c.isUndefined)(e.getFieldsToMark()))return e.getFieldsToMark()})))}(e);if(0===e.length)return;const s=(0,a.select)("core/block-editor"),o="template-locked"===(0,a.select)("core/editor").getRenderingMode(),i=s.getBlocksByName("core/post-content");let r=o&&null!=i&&i.length?s.getBlocks(i[0]):s.getBlocks();var n;t.length>0&&(r=r.filter(e=>t.some(t=>"core/"+t===e.name))),n=X(r,e),z=n.map(e=>({blockClientId:e.block,source:Y,richTextIdentifier:e.richTextIdentifier,range:{start:e.startOffset,end:e.endOffset}})),Q()}function ee(e,t){let s;F(O)&&((0,c.isUndefined)(s)&&(s=D(tinyMCE.get(O))),s(e,t)),(0,a.select)("core/editor")&&(0,a.select)("core/block-editor")&&(0,c.isFunction)((0,a.select)("core/block-editor").getBlocks)&&(0,a.select)("core/annotations")&&(0,c.isFunction)((0,a.dispatch)("core/annotations").__experimentalAddAnnotation)&&(function(e,t){tinyMCE.editors.map(e=>D(e)).forEach(s=>s(e,t))}(e,t),J(t)),(0,l.doAction)("yoast.analysis.applyMarks",t)}function te(){const e=(0,a.select)("yoast-seo/editor").isMarkingAvailable(),t=(0,a.select)("yoast-seo/editor").getMarkerPauseStatus();return!e||t?c.noop:ee}const se=(0,c.debounce)(async function(e,t){const{text:s,...o}=t,i=new d.Paper(s,o);try{const t=await e.analyze(i),{seo:s,readability:o,inclusiveLanguage:r}=t.result;if(s){const e=s[""];e.results.forEach(e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(i,e.marks)}),e.results=w(e.results),(0,a.dispatch)("yoast-seo/editor").setSeoResultsForKeyword(i.getKeyword(),e.results),(0,a.dispatch)("yoast-seo/editor").setOverallSeoScore(e.score,i.getKeyword()),(e=>{const t=(e=>g(e,u))(e);t>0&&(p.seoTitleScore=String(t));const s=(e=>g(e,h))(e);s>0&&(p.metaDescriptionScore=String(s))})(e.results)}o&&(o.results.forEach(e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(i,e.marks)}),o.results=w(o.results),(0,a.dispatch)("yoast-seo/editor").setReadabilityResults(o.results),(0,a.dispatch)("yoast-seo/editor").setOverallReadabilityScore(o.score)),r&&(r.results.forEach(e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(i,e.marks)}),r.results=w(r.results),(0,a.dispatch)("yoast-seo/editor").setInclusiveLanguageResults(r.results),(0,a.dispatch)("yoast-seo/editor").setOverallInclusiveLanguageScore(r.score)),(0,l.doAction)("yoast.analysis.run",t,{paper:i})}catch(e){}},500);function oe(){var e;const{getAnalysisData:t,getEditorDataTitle:s,getIsFrontPage:o}=(0,a.select)("yoast-seo/editor");let i=t();i={...i,textTitle:s(),isFrontPage:o(),shortcodes:Array.isArray(null===(e=window.wpseoScriptData.analysis.plugins.shortcodes)||void 0===e?void 0:e.wpseo_shortcode_tags)?window.wpseoScriptData.analysis.plugins.shortcodes.wpseo_shortcode_tags:[]};const r=function(e){return e.title=L("data_page_title",e.title),e.title=L("title",e.title),e.description=L("data_meta_desc",e.description),e.text=L("content",e.text),e}(i);return(0,l.applyFilters)("yoast.analysis.data",r)}const ie=()=>{const{getContentLocale:e}=(0,a.select)("yoast-seo/editor"),t=((...e)=>()=>e.map(e=>e()))(e,oe),s=(()=>{const{setEstimatedReadingTime:e,setFleschReadingEase:t,setTextLength:s}=(0,a.dispatch)("yoast-seo/editor"),o=(0,c.get)(window,"YoastSEO.analysis.worker.runResearch",c.noop);return()=>{const i=d.Paper.parse(oe());o("readingTime",i).then(t=>e(t.result)),o("getFleschReadingScore",i).then(e=>{e.result&&t(e.result)}),o("wordCountInText",i).then(e=>s(e.result))}})();return setTimeout(s,1500),((e,t)=>{let s=e();return()=>{const o=e();(0,c.isEqual)(o,s)||(s=o,t((0,c.clone)(o)))}})(t,s)},re=window.wp.components,ne=window.wp.element,ae=window.yoast.externals.contexts,le=window.yoast.propTypes;var ce=s.n(le);const de=window.yoast.styledComponents;var pe=s.n(de);const ue=window.ReactJSXRuntime,he=({theme:e,location:t,children:s})=>(0,ue.jsx)(ae.LocationProvider,{value:t,children:(0,ue.jsx)(de.ThemeProvider,{theme:e,children:s})});he.propTypes={theme:ce().object.isRequired,location:ce().oneOf(["sidebar","metabox","modal"]).isRequired,children:ce().node.isRequired};const ge=he,me=[];let ye=null;class we extends ne.Component{constructor(e){super(e),this.state={registeredComponents:[...me]}}registerComponent(e,t){this.setState(s=>({...s,registeredComponents:[...s.registeredComponents,{key:e,Component:t}]}))}render(){return this.state.registeredComponents.map(({Component:e,key:t})=>(0,ue.jsx)(e,{},t))}}function fe(e,t){null===ye||null===ye.current?me.push({key:e,Component:t}):ye.current.registerComponent(e,t)}const be=()=>!0;class xe extends $e.modules.hookUI.Base{constructor(e,t,s,o=be){super(),this.command=e,this.id=t,this.callback=s,this.conditions=o}getCommand(){return this.command}getId(){return this.id}getConditions(...e){return this.conditions(...e)}apply(...e){return this.callback(...e)}}class _e extends $e.modules.hookData.Base{constructor(e,t,s,o=be){super(),this.command=e,this.id=t,this.callback=s,this.conditions=o.bind(this)}getCommand(){return this.command}getId(){return this.id}getConditions(...e){return this.conditions(...e)}apply(...e){return this.callback(...e)}}function ve(e,t,s,o=be){return $e.hooks.registerUIAfter(new xe(e,t,s,o))}function ke(e,t,s,o=be){return $e.hooks.registerUIBefore(new xe(e,t,s,o))}function Se(e,t,s,o=be){return $e.hooks.registerDataAfter(new _e(e,t,s,o))}const Re=e=>{return parseInt(null===(t=document.getElementById("post_ID"))||void 0===t?void 0:t.value,10)===e;var t},Te=()=>{var e;return Re(null===(e=elementor.documents.getCurrent())||void 0===e?void 0:e.id)},Ee=["yoast_wpseo_linkdex","yoast_wpseo_content_score","yoast_wpseo_inclusive_language_score","yoast_wpseo_seo_title_score","yoast_wpseo_meta_description_score","yoast_wpseo_words_for_linking","yoast_wpseo_estimated-reading-time-minutes"],je=["yoast_wpseo_focuskeywords","hidden_wpseo_focuskeywords"],Ce=window.wp.i18n,Ie=e=>{let t="";e&&(t=(0,Ce.sprintf)(/* translators: %1$s translates to the Post Label in singular form */ /* translators: %1$s translates to the Post Label in singular form */
2 +(0,Ce.__)("Unfortunately we cannot save changes to your SEO settings while you are working on a draft of an already-published %1$s. If you want to save your SEO changes, make sure to click 'Update', or wait to make your SEO changes until you are ready to update the %1$s.","wordpress-seo"),wpseoAdminL10n.postTypeNameSingular.toLowerCase())),"draft"===elementor.settings.page.model.get("post_status")&&(t=""),(0,a.select)("yoast-seo/editor").getWarningMessage()!==t&&(0,a.dispatch)("yoast-seo/editor").setWarningMessage(t)},Le=(e,t,s)=>null===t?null:(0,ne.createPortal)(e,t,s),Ae=({id:e,children:t})=>{const s=(0,ne.useRef)(document.getElementById(e)),[o,i]=(0,ne.useState)(()=>Le(t,s.current,e)),r=(0,ne.useCallback)(()=>{const o=document.getElementById(e);o!==s.current&&(s.current=o,i(Le(t,o,e)))},[e,t]);return((e,t,s={childList:!0,subtree:!0})=>{(0,ne.useEffect)(()=>{const o=new MutationObserver(t);return o.observe(e,s),()=>o.disconnect()},[e,t])})(document.body,r),o},Pe=window.yoast.uiLibrary;s(6702);const De=(e,t)=>{try{return(0,ne.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}};ce().string.isRequired;var Oe=s(2514),Fe=s.n(Oe),qe=s(818),Me=s.n(qe);ce().string.isRequired,ce().string.isRequired,ce().shape({src:ce().string.isRequired,width:ce().string,height:ce().string}).isRequired,ce().shape({value:ce().bool.isRequired,status:ce().string.isRequired,set:ce().func.isRequired}).isRequired,ce().string,ce().string,ce().string;const Ne=({handleRefreshClick:e,supportLink:t})=>(0,ue.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,ue.jsx)(Pe.Button,{onClick:e,children:(0,Ce.__)("Refresh this page","wordpress-seo")}),(0,ue.jsx)(Pe.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,Ce.__)("Contact support","wordpress-seo")})]});Ne.propTypes={handleRefreshClick:ce().func.isRequired,supportLink:ce().string.isRequired};const Ue=({handleRefreshClick:e,supportLink:t})=>(0,ue.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,ue.jsx)(Pe.Button,{className:"yst-order-last",onClick:e,children:(0,Ce.__)("Refresh this page","wordpress-seo")}),(0,ue.jsx)(Pe.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,Ce.__)("Contact support","wordpress-seo")})]});Ue.propTypes={handleRefreshClick:ce().func.isRequired,supportLink:ce().string.isRequired};const We=({error:e,children:t=null})=>(0,ue.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,ue.jsx)(Pe.Title,{children:(0,Ce.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,ue.jsx)("p",{children:(0,Ce.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,ue.jsx)(Pe.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,Ce.__)("Undefined error message.","wordpress-seo")}),(0,ue.jsx)("p",{children:(0,Ce.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});We.propTypes={error:ce().object.isRequired,children:ce().node},We.VerticalButtons=Ue,We.HorizontalButtons=Ne;ce().string,ce().node.isRequired,ce().node.isRequired,ce().node,ce().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}));var Be=s(1609),Ke=s.n(Be);const He=window.ReactDOM;var Ve,Ye,ze;(Ye=Ve||(Ve={})).Pop="POP",Ye.Push="PUSH",Ye.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(ze||(ze={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const Ge=["post","put","patch","delete"],Ze=(new Set(Ge),["get",...Ge]);new Set(Ze),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),Be.Component,Be.startTransition,new Promise(()=>{}),Be.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var Qe,Xe,Je,et;new Map,Be.startTransition,He.flushSync,Be.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(et=Qe||(Qe={})).UseScrollRestoration="useScrollRestoration",et.UseSubmit="useSubmit",et.UseSubmitFetcher="useSubmitFetcher",et.UseFetcher="useFetcher",et.useViewTransitionState="useViewTransitionState",(Je=Xe||(Xe={})).UseFetcher="useFetcher",Je.UseFetchers="useFetchers",Je.UseScrollRestoration="useScrollRestoration",ce().string.isRequired,ce().string;const tt=({href:e,children:t=null,...s})=>(0,ue.jsxs)(Pe.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e,children:[t,(0,ue.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
3 +(0,Ce.__)("(Opens in a new browser tab)","wordpress-seo")})]});tt.propTypes={href:ce().string.isRequired,children:ce().node};var st=s(8738),ot=s.n(st);(0,Ce.__)("Create optimized SEO titles & meta descriptions in seconds","wordpress-seo"),(0,Ce.__)("Apply AI suggestions to improve content in 1 click","wordpress-seo"),(0,Ce.__)("Manage redirects with ease and without extra plugins","wordpress-seo"),(0,Ce.__)("Optimize pages for multiple keywords with guidance","wordpress-seo"),(0,Ce.__)("Add product details to help your listings stand out","wordpress-seo"),(0,Ce.__)("Make sure search engines show the right version of your product page","wordpress-seo"),(0,Ce.__)("Create optimized SEO titles & meta descriptions with AI","wordpress-seo"),(0,Ce.__)("Receive clear SEO and readability guidance to optimize your products","wordpress-seo"),(0,Ce.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,Ce.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,Ce.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,Ce.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,Ce.__)("Internal links and redirect management, easy","wordpress-seo"),(0,Ce.__)("Access to friendly help when you need it, day or night","wordpress-seo");var it=s(2485),rt=s.n(it);var nt;function at(){return at=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)({}).hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},at.apply(null,arguments)}ce().string.isRequired,ce().object.isRequired,ce().func.isRequired,ce().bool.isRequired,s(3473);const lt=e=>Be.createElement("svg",at({xmlns:"http://www.w3.org/2000/svg",fill:"none","aria-hidden":"true",viewBox:"0 0 16 12"},e),nt||(nt=Be.createElement("path",{fill:"#CD82AB",d:"M10.989 6.74 7.885.98v.002L7.882.98 4.778 6.74 0 3.32l1.126 7.702H14.64l1.126-7.703L10.99 6.74z"})));ce().string.isRequired,ce().object,ce().func.isRequired,ce().bool.isRequired,ce().string.isRequired,ce().object.isRequired,ce().string.isRequired,ce().func.isRequired,ce().bool.isRequired,s(5074),ce().bool.isRequired,ce().func,ce().func,ce().string.isRequired,ce().string.isRequired,ce().string.isRequired,ce().string.isRequired;window.yoast.reactHelmet;const ct="idle",dt="loading";ce().string.isRequired,ce().shape({src:ce().string.isRequired,width:ce().string,height:ce().string}).isRequired,ce().shape({value:ce().bool.isRequired,status:ce().string.isRequired,set:ce().func.isRequired}).isRequired,ce().bool,s(5687),ce().bool.isRequired,ce().func.isRequired,ce().func,ce().string;const pt="yoast-seo/editor",ut=((0,c.mapValues)({post:"title",term:"term_title"},e=>`%%${e}%%`),({children:e})=>(0,ue.jsx)("p",{className:"yst-mt-2",children:e}));ut.propTypes={children:ce().node.isRequired};const ht=(0,Ce.__)("Something went wrong","wordpress-seo"),gt=({linkStoreName:e=pt})=>{const t=(0,a.useSelect)(t=>t(e).selectLink("https://yoa.st/ai-common-errors"),[e]),s=(0,a.useSelect)(t=>t(e).selectAdminLink("?page=wpseo_page_support"),[e]);return(0,ue.jsx)(ut,{children:De((0,Ce.sprintf)(/* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */ /* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */
4 +(0,Ce.__)("Please try again later. If this issue persists, you can learn more about possible reasons for this error on our page about %1$scommon AI feature problems and errors%2$s. In case you need further help, please %3$scontact our support team%4$s.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,ue.jsx)(tt,{variant:"error",href:t}),a2:(0,ue.jsx)(tt,{variant:"error",href:s})})})};gt.propTypes={linkStoreName:ce().string};const mt=({linkStoreName:e=pt,className:t=""})=>(0,ue.jsxs)(Pe.Alert,{variant:"error",className:t,children:[(0,ue.jsx)("span",{className:"yst-block yst-font-medium",children:ht}),(0,ue.jsx)(gt,{linkStoreName:e})]});mt.propTypes={linkStoreName:ce().string,className:ce().string},(0,Ce.__)("Not enough content","wordpress-seo"),(0,Ce.__)("SEO analysis required","wordpress-seo"),(0,Ce.__)("You've reached the Yoast AI rate limit","wordpress-seo");const yt=window.wp.apiFetch;var wt=s.n(yt);(0,Ce.__)("Subscription required","wordpress-seo");ce().arrayOf(ce().string),ce().arrayOf(ce().string),(0,Ce.__)("Connection timeout","wordpress-seo"),(0,Ce.__)("Usage policy violation","wordpress-seo"),(0,Ce.__)("Something went wrong","wordpress-seo");ce().string,ce().string,(0,Ce.__)("Something went wrong","wordpress-seo");ce().bool,ce().func.isRequired,ce().func.isRequired,ce().bool,ce().bool,ce().func,ce().func,ce().bool,ce().bool,ce().func,ce().func,ce().string,ce().bool,ce().bool,ce().func,ce().func,ce().bool,ce().func,ce().bool,ce().func,ce().bool,ce().func,ce().bool,ce().func,ce().arrayOf(ce().string),ce().bool,ce().func,ce().bool,ce().func,(0,Ce.__)("Yoast AI cannot reach your site","wordpress-seo");ce().string,ce().bool,ce().func;ce().func.isRequired,ce().string.isRequired,ce().string.isRequired,ce().string.isRequired,ce().string.isRequired,ce().string.isRequired,ce().string.isRequired,ce().func.isRequired,ce().string.isRequired,ce().shape({termsOfService:ce().string,privacyPolicy:ce().string,learnMore:ce().string});const ft=({error:e})=>{const t=(0,ne.useCallback)(()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()},[]),s=(0,a.useSelect)(e=>e("yoast-seo/editor").selectLink("https://yoa.st/elementor-error-support"),[]),o=(0,a.useSelect)(e=>e("yoast-seo/editor").getPreference("isRtl",!1),[]);return(0,ue.jsx)(Pe.Root,{context:{isRtl:o},children:(0,ue.jsx)(We,{error:e,children:(0,ue.jsx)(We.VerticalButtons,{supportLink:s,handleRefreshClick:t})})})};function bt(){return(0,ue.jsx)(Pe.ErrorBoundary,{FallbackComponent:ft,children:(0,ue.jsx)(re.Slot,{name:"YoastElementor",children:e=>{return void 0===(t=e).length?t:(0,c.flatten)(t).sort((e,t)=>void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority);var t}})})}ft.propTypes={error:ce().object.isRequired};const xt=window.wp.compose;var _t=s(465),vt=s.n(_t);const kt=window.wp.url,St=({className:e="",...t})=>(0,ue.jsx)("span",{className:rt()("yst-grow yst-overflow-hidden yst-overflow-ellipsis yst-whitespace-nowrap yst-font-wp","yst-text-[#555] yst-text-base yst-leading-[normal] yst-subpixel-antialiased yst-text-start",e),...t});St.displayName="MetaboxButton.Text",St.propTypes={className:ce().string};const Rt=({className:e="",...t})=>(0,ue.jsx)("button",{type:"button",className:rt()("yst-flex yst-items-center yst-w-full yst-pt-4 yst-pb-4 yst-pe-4 yst-ps-6 yst-space-x-2 rtl:yst-space-x-reverse","yst-border-t yst-border-t-[rgb(0,0,0,0.2)] yst-rounded-none yst-transition-all hover:yst-bg-[#f0f0f0]","focus:yst-outline focus:yst-outline-[1px] focus:yst-outline-[color:#0066cd] focus:-yst-outline-offset-1 focus:yst-shadow-[0_0_3px_rgba(8,74,103,0.8)]",e),...t});Rt.propTypes={className:ce().string},Rt.Text=St;const Tt=window.yoast.componentsNew,Et=({onClick:e,title:t,id:s="",subTitle:o="",suffixIcon:i=null,SuffixHeroIcon:r=null,prefixIcon:n=null,children:a=null})=>(0,ue.jsx)("div",{className:"yoast components-panel__body",children:(0,ue.jsx)("h2",{className:"components-panel__body-title",children:(0,ue.jsxs)("button",{id:s,onClick:e,className:"components-button components-panel__body-toggle",type:"button",children:[n&&(0,ue.jsx)("span",{className:"yoast-icon-span",style:{fill:`${n&&n.color||""}`},children:(0,ue.jsx)(Tt.SvgIcon,{size:n.size,icon:n.icon})}),(0,ue.jsxs)("span",{className:"yoast-title-container",children:[(0,ue.jsx)("div",{className:"yoast-title",children:t}),(0,ue.jsx)("div",{className:"yoast-subtitle",children:o})]}),a,i&&(0,ue.jsx)(Tt.SvgIcon,{size:i.size,icon:i.icon}),r]})})}),jt=Et;var Ct,It;function Lt(){return Lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)({}).hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},Lt.apply(null,arguments)}Et.propTypes={onClick:ce().func.isRequired,title:ce().string.isRequired,id:ce().string,subTitle:ce().string,suffixIcon:ce().object,SuffixHeroIcon:ce().element,prefixIcon:ce().object,children:ce().node};const At=e=>Be.createElement("svg",Lt({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),Ct||(Ct=Be.createElement("path",{d:"M73 405.26a66.79 66.79 0 0 1-6.54-1.7 64.75 64.75 0 0 1-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 0 1-5.08-4.19 69.21 69.21 0 0 1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 0 1-3.44-5.64 68.29 68.29 0 0 1-8.29-32.55V142.13a68.26 68.26 0 0 1 8.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0 1 14.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0 1 73 75.09a68.75 68.75 0 0 1 13.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 0 0 0 142.13v196.09A86.84 86.84 0 0 0 86.75 425h11.32v-18.35H86.75A68.75 68.75 0 0 1 73 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 0 1 8.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 0 1 391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 0 1 8.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 0 0-56.45-81.28z"})),It||(It=Be.createElement("path",{stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81,d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 0 1 0 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z"})));var Pt=s(7656),Dt=s.n(Pt);const Ot=({isOpen:e,onClose:t,id:s,upsellLink:o,title:i="",description:r="",benefits:n=[],note:l="",ctbId:c="",modalTitle:d})=>{const{isBlackFriday:p,isWooCommerceActive:u,isProductEntity:h,isWooSEOActive:g}=(0,a.useSelect)(e=>{const t=e("yoast-seo/editor");return{isProductEntity:t.getIsProductEntity(),isWooCommerceActive:t.getIsWooCommerceActive(),isBlackFriday:t.isPromotionActive("black-friday-promotion"),isWooSEOActive:t.getIsWooSeoActive()}},[]),m=(0,ne.useMemo)(()=>u&&h,[u,h]),y=(0,ne.useRef)(null);return(0,ue.jsx)(Pe.Modal,{isOpen:e,onClose:t,id:s,initialFocus:y,children:(0,ue.jsx)(Pe.Modal.Panel,{className:"yst-max-w-md yst-p-0",hasCloseButton:!1,children:(0,ue.jsxs)(Pe.Modal.Container,{children:[(0,ue.jsxs)(Pe.Modal.Container.Header,{className:"yst-p-6 yst-border-b-slate-200 yst-border-b yst-flex yst-justify-start yst-gap-3 yst-items-center",children:[m?(0,ue.jsx)(Dt(),{className:"yst-text-woo-light yst-w-6 yst-h-6 yst-scale-x-[-1]"}):(0,ue.jsx)(At,{className:"yst-fill-primary-500 yst-w-5 yst-h-5"}),(0,ue.jsx)(Pe.Modal.Title,{as:"h3",className:rt()(m?"yst-text-woo-light":"yst-text-primary-500","yst-text-base yst-font-normal"),children:d}),(0,ue.jsx)(Pe.Modal.CloseButton,{className:"yst-top-2",onClick:t,screenReaderText:(0,Ce.__)("Close modal","wordpress-seo")})]}),(0,ue.jsxs)(Pe.Modal.Container.Content,{className:"yst-p-0",children:[p&&(0,ue.jsx)("div",{className:"yst-flex yst-font-semibold yst-items-center yst-text-lg yst-content-between yst-bg-black yst-text-amber-300 yst-h-9 yst-border-amber-300 yst-border-y yst-border-x-0 yst-border-solid yst-px-6",children:(0,ue.jsx)("div",{className:"yst-mx-auto",children:(0,Ce.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})}),(0,ue.jsxs)("div",{className:"yst-py-6 yst-px-12",children:[(0,ue.jsx)(Pe.Title,{as:"h3",className:"yst-mb-1 yst-leading-5 yst-text-sm yst-font-medium yst-text-slate-800",children:i}),(0,ue.jsx)("p",{className:"yst-mb-2",children:r}),Array.isArray(n)&&n.length>0&&(0,ue.jsx)("ul",{className:"yst-my-2",children:n.map((e,t)=>(0,ue.jsxs)("li",{className:"yst-flex yst-gap-1 yst-mb-2",children:[(0,ue.jsx)(ot(),{className:"yst-mr-1 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),(0,ue.jsx)("p",{className:"yst-text-slate-600",children:e})]},`${s}-upsell-benefit-${t}`))}),"function"==typeof n&&n(),(0,ue.jsxs)("div",{className:"yst-text-center",children:[(0,ue.jsxs)(Pe.Button,{as:"a",variant:"upsell",className:"yst-my-2 yst-gap-1.5 yst-w-full",href:o,target:"_blank","data-action":"load-nfd-ctb","data-ctb-id":c,ref:y,children:[(0,ue.jsx)(Fe(),{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"}),(0,Ce.sprintf)(/* translators: %s expands to 'Yoast SEO Premium' or 'Yoast Woocommerce SEO'. */ /* translators: %s expands to 'Yoast SEO Premium' or 'Yoast Woocommerce SEO'. */
5 +(0,Ce.__)("Explore %s","wordpress-seo"),m&&!g?"Yoast WooCommerce SEO":"Yoast SEO Premium"),(0,ue.jsx)("span",{className:"yst-sr-only",children:(0,Ce.__)("Opens in a new tab","wordpress-seo")})]}),(0,ue.jsx)("div",{className:"yst-italic yst-text-slate-500 yst-mt-1",children:l})]})]})]})]})})})},Ft=()=>{const[e,,,t,s]=(0,Pe.useToggleState)(!1),{locationContext:o}=(0,ae.useRootContext)(),i=(0,Pe.useSvgAria)(),r=o.includes("sidebar"),n=o.includes("metabox"),a=r?"sidebar":"metabox",l=wpseoAdminL10n[r?"shortlinks.upsell.sidebar.internal_linking_suggestions":"shortlinks.upsell.metabox.internal_linking_suggestions"];return(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)(Ot,{isOpen:e,onClose:s,id:`yoast-internal-linking-suggestions-upsell-${a}`,upsellLink:(0,kt.addQueryArgs)(l,{context:o}),modalTitle:(0,Ce.__)("Add smarter internal links with Premium","wordpress-seo"),title:(0,Ce.__)("Connect related content without the guesswork","wordpress-seo"),description:De((0,Ce.sprintf)(/* translators: %s expands to be tag. */ /* translators: %s expands to be tag. */
6 +(0,Ce.__)("Optimize for up to 5 keyphrases to shape your content around different themes, audiences, and angles. %sScans your content to:","wordpress-seo"),"<br />"),{br:(0,ue.jsx)("br",{})}),benefits:[(0,Ce.__)("Suggest internal links based on your content’s main topics","wordpress-seo"),(0,Ce.__)("Build relevant internal links faster","wordpress-seo"),(0,Ce.__)("Strengthen your site’s structure","wordpress-seo"),(0,Ce.__)("Keep visitors exploring longer","wordpress-seo")],note:(0,Ce.__)("Upgrade to link your content with ease","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"}),r&&(0,ue.jsx)(jt,{id:"yoast-internal-linking-suggestions-sidebar-modal-open-button",title:(0,Ce.__)("Internal linking suggestions","wordpress-seo"),onClick:t,children:(0,ue.jsx)("div",{className:"yst-root",children:(0,ue.jsx)(Pe.Badge,{size:"small",variant:"upsell",children:(0,ue.jsx)(vt(),{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...i})})})}),n&&(0,ue.jsx)("div",{className:"yst-root",children:(0,ue.jsxs)(Rt,{id:"yoast-internal-linking-suggestions-metabox-modal-open-button",onClick:t,children:[(0,ue.jsx)(Rt.Text,{children:(0,Ce.__)("Internal linking suggestions","wordpress-seo")}),(0,ue.jsxs)(Pe.Badge,{size:"small",variant:"upsell",children:[(0,ue.jsx)(vt(),{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...i}),(0,ue.jsx)("span",{children:"Premium"})]})]})})]})},qt=window.yoast.externals.components;function Mt(){return(0,xt.createHigherOrderComponent)(function(e){return(0,xt.pure)(function(t){const s=(0,ne.useContext)(ae.LocationContext);return(0,ne.createElement)(e,{...t,location:s})})},"withLocation")}const Nt=(0,xt.compose)([(0,a.withSelect)(e=>{const{isCornerstoneContent:t}=e("yoast-seo/editor");return{isCornerstone:t(),learnMoreUrl:wpseoAdminL10n["shortlinks.cornerstone_content_info"]}}),(0,a.withDispatch)(e=>{const{toggleCornerstoneContent:t}=e("yoast-seo/editor");return{onChange:t}}),Mt()])(qt.CollapsibleCornerstone);var Ut=s(998),Wt=s.n(Ut);const $t=({store:e="yoast-seo/editor",location:t="sidebar"})=>{const s="black-friday-promotion",o=(0,a.useSelect)(t=>t(e).getIsPremium(),[e]),i=(0,a.useSelect)(t=>t(e).selectLinkParams(),[e]),r=(0,a.useSelect)(t=>t(e).isPromotionActive(s),[e]),n=(0,a.useSelect)(t=>t(e).getIsWooCommerceActive(),[e]),l=(0,a.useSelect)(t=>t(e).isAlertDismissed(s),[e]),c=(0,ne.useCallback)(()=>{(0,a.dispatch)(e).dismissAlert(s)},[e,s]),d=(0,kt.addQueryArgs)("https://yoa.st/black-friday-sale",i),p=(0,Pe.useSvgAria)();return o||!r||l?null:(0,ue.jsx)("div",{className:"yst-root",children:(0,ue.jsxs)("div",{className:rt()("yst-border yst-rounded-lg yst-p-4 yst-max-w-md yst-relative yst-shadow-sm yst-mt-2",n?"yst-border-woo-light":"yst-border-primary-200"),children:[(0,ue.jsxs)(Pe.Badge,{size:"small",className:"yst-text-[10px] yst-bg-black yst-text-amber-300 yst-absolute yst--top-2",children:[(0,Ce.__)("BLACK FRIDAY","wordpress-seo")," "]}),(0,ue.jsxs)("button",{className:"yst-absolute yst-top-4 yst-end-4",onClick:c,children:[(0,ue.jsx)(Wt(),{className:"yst-w-4 yst-text-slate-400 yst-shrink-0 yst--mt-0.5"}),(0,ue.jsx)("div",{className:"yst-sr-only",children:(0,Ce.__)("Dismiss","wordpress-seo")})]}),(0,ue.jsxs)("div",{className:rt()("sidebar"===t?"":"yst-flex yst-justify-between yst-gap-3"),children:[(0,ue.jsxs)("div",{className:n?"yst-text-woo-light":"yst-text-primary-500",children:[(0,ue.jsx)("div",{className:"yst-text-2xl yst-font-bold",children:(0,Ce.__)("30% OFF","wordpress-seo")}),(0,ue.jsx)("div",{className:"yst-flex yst-gap-2 yst-font-semibold yst-text-tiny",children:n?(0,ue.jsxs)(ue.Fragment,{children:["Yoast WooCommerce SEO ",(0,ue.jsx)(Dt(),{className:"yst-w-4 yst-scale-x-[-1]",...p})]}):(0,ue.jsxs)(ue.Fragment,{children:[" Yoast SEO Premium ",(0,ue.jsx)(lt,{className:"yst-w-4",...p})]})})]}),(0,ue.jsx)("div",{className:"yst-flex yst-items-end",children:(0,ue.jsxs)(Pe.Button,{as:"a",className:rt()("sidebar"===t?"yst-w-full":"yst-w-[140px]","yst-flex yst-gap-1 yst-w-[140px] yst-h-7 yst-mt-4"),variant:"upsell",href:d,target:"_blank",rel:"noreferrer",children:[(0,Ce.__)("Buy now!","wordpress-seo"),(0,ue.jsx)(Me(),{className:"yst-w-4 rtl:yst-rotate-180",...p})]})})]})]})})};$t.propTypes={store:ce().string,location:ce().oneOf(["sidebar","metabox"]),inEditorIntro:ce().bool};const Bt=window.yoast.helpers,Kt=(0,xt.compose)([(0,a.withSelect)((e,t)=>{const{isAlertDismissed:s}=e(t.store||"yoast-seo/editor");return{isAlertDismissed:s(t.alertKey)}}),(0,a.withDispatch)((e,t)=>{const{dismissAlert:s}=e(t.store||"yoast-seo/editor");return{onDismissed:()=>s(t.alertKey)}})]),Ht=({children:e,id:t,hasIcon:s=!0,title:o,image:i=null,isAlertDismissed:r,onDismissed:n,className:a=""})=>r?null:(0,ue.jsxs)("div",{id:t,className:rt()("notice-yoast yoast is-dismissible",a),children:[(0,ue.jsxs)("div",{className:"notice-yoast__container",children:[(0,ue.jsxs)("div",{children:[(0,ue.jsxs)("div",{className:"notice-yoast__header",children:[s&&(0,ue.jsx)("span",{className:"yoast-icon"}),(0,ue.jsx)("h2",{className:"notice-yoast__header-heading yoast-notice-migrated-header",children:o})]}),(0,ue.jsx)("div",{className:"notice-yoast-content",children:(0,ue.jsx)("p",{children:e})})]}),i&&(0,ue.jsx)(i,{height:"60"})]}),(0,ue.jsx)("button",{type:"button",className:"notice-dismiss",onClick:n,children:(0,ue.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
7 +(0,Ce.__)("Dismiss this notice.","wordpress-seo")})})]});Ht.propTypes={children:ce().node.isRequired,id:ce().string.isRequired,hasIcon:ce().bool,title:ce().any.isRequired,image:ce().elementType,isAlertDismissed:ce().bool.isRequired,onDismissed:ce().func.isRequired,className:ce().string};const Vt=Kt(Ht),Yt="trustpilot-review-notification",zt="yoast-seo/editor";const Gt=()=>{const e=(0,a.useSelect)(e=>e(zt).getIsPremium(),[]),t=(0,a.useSelect)(e=>e(zt).isAlertDismissed(Yt),[]),{overallScore:s}=(0,a.useSelect)(e=>e(zt).getResultsForFocusKeyword(),[]),{dismissAlert:o}=(0,a.useDispatch)(zt),i=(0,ne.useCallback)(()=>o(Yt),[o]),[r,n]=(0,ne.useState)(!1);return(0,ne.useEffect)(()=>{var e,t;"good"===(null===(t=s,(0,c.isNil)(t)||(t/=10),e=function(e){switch(e){case"feedback":return{className:"na",screenReaderText:(0,Ce.__)("Not available","wordpress-seo"),screenReaderReadabilityText:(0,Ce.__)("Not available","wordpress-seo"),screenReaderInclusiveLanguageText:(0,Ce.__)("Not available","wordpress-seo")};case"bad":return{className:"bad",screenReaderText:(0,Ce.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:(0,Ce.__)("Needs improvement","wordpress-seo"),screenReaderInclusiveLanguageText:(0,Ce.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:(0,Ce.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:(0,Ce.__)("OK","wordpress-seo"),screenReaderInclusiveLanguageText:(0,Ce.__)("Potentially non-inclusive","wordpress-seo")};case"good":return{className:"good",screenReaderText:(0,Ce.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:(0,Ce.__)("Good","wordpress-seo"),screenReaderInclusiveLanguageText:(0,Ce.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""}}}(d.interpreters.scoreToRating(t)))||void 0===e?void 0:e.className)&&n(!0)},[s]),{shouldShow:!e&&!t&&r,dismiss:i}},Zt=(0,Bt.makeOutboundLink)(),Qt=e=>{const{shouldShow:t,dismiss:s}=Gt(),{locationContext:o}=(0,ae.useRootContext)(),i=(0,a.useSelect)(e=>e(zt).selectLink("https://yoa.st/trustpilot-review",{context:o}),[o]);return(0,ue.jsxs)(Ht,{alertKey:Yt,store:zt,id:Yt,title:(0,Ce.__)("Show Yoast SEO some love!","wordpress-seo"),hasIcon:!1,isAlertDismissed:!t,onDismissed:s,className:"yst-m-0",...e,children:[(0,Ce.__)("Happy with the plugin?","wordpress-seo")," ",(0,ue.jsx)(Zt,{href:i,rel:"noopener noreferrer",children:(0,Ce.__)("Leave a quick review","wordpress-seo")}),"."]})},Xt=({store:e="yoast-seo/editor",image:t=null,url:s,...o})=>(0,a.useSelect)(t=>t(e).getIsPremium())?null:(0,ue.jsxs)(Vt,{alertKey:"webinar-promo-notification",store:e,id:"webinar-promo-notification",title:(0,Ce.__)("Ready to boost your online visibility?","wordpress-seo"),image:t,url:s,...o,children:[De((0,Ce.sprintf)(/* translators: 1: bold open tag; 2: "FREE"; 3: bold close tag; 4: "Yoast SEO". */ /* translators: 1: bold open tag; 2: "FREE"; 3: bold close tag; 4: "Yoast SEO". */
8 +(0,Ce.__)("Access our %1$s%2$s%3$s webinars and podcasts to get started with %4$s and build the foundational skills and confidence needed for sustainable success.","wordpress-seo"),"<strong>","FREE","</strong>","Yoast SEO"),{strong:(0,ue.jsx)("strong",{})})," ",(0,ue.jsx)("a",{href:s,target:"_blank",rel:"noreferrer",children:(0,Ce.__)("Sign up today!","wordpress-seo")})]});Xt.propTypes={store:ce().string,image:ce().elementType,url:ce().string.isRequired};const Jt=Xt,es=(e="yoast-seo/editor")=>{const t=(0,a.select)(e).isPromotionActive("black-friday-promotion"),s=(0,a.select)(e).isAlertDismissed("black-friday-promotion");return!t||s};var ts=s(5169),ss=s.n(ts);const os=(e=null)=>(0,Be.useMemo)(()=>{const t={role:"img","aria-hidden":"true"};return null!==e&&(t.focusable=e?"true":"false"),t},[e]),is=({title:e="Yoast SEO",className:t="yoast yoast-gutenberg-modal",showYoastIcon:s=!0,children:o=null,additionalClassName:i="",...r})=>{const n=s?(0,ue.jsx)("span",{className:"yoast-icon"}):null;return(0,ue.jsx)(re.Modal,{title:e,className:`${t} ${i}`,icon:n,...r,children:o})};is.propTypes={title:ce().node,className:ce().string,showYoastIcon:ce().bool,children:ce().oneOfType([ce().node,ce().arrayOf(ce().node)]),additionalClassName:ce().string};const rs=is,ns=({id:e,postTypeName:t,children:s,title:o,isOpen:i,open:r,close:n,shouldCloseOnClickOutside:a=!0,showChangesWarning:l=!0,SuffixHeroIcon:c=null,titleHelpLink:d=null})=>(0,ue.jsxs)(ne.Fragment,{children:[i&&(0,ue.jsx)(ae.LocationProvider,{value:"modal",children:(0,ue.jsxs)(rs,{title:d?(0,ue.jsxs)(ue.Fragment,{children:[o,d]}):o,contentLabel:d?o:null,onRequestClose:n,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal",id:"id",shouldCloseOnClickOutside:a,children:[(0,ue.jsx)("div",{className:"yoast-content-container",children:(0,ue.jsx)("div",{className:"yoast-modal-content",children:s})}),(0,ue.jsxs)("div",{className:"yoast-notice-container",children:[(0,ue.jsx)("hr",{}),(0,ue.jsxs)("div",{className:"yoast-button-container",children:[l&&(0,ue.jsx)("p",{children:/* Translators: %s translates to the Post Label in singular form */ /* Translators: %s translates to the Post Label in singular form */
9 +(0,Ce.sprintf)((0,Ce.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),t)}),(0,ue.jsx)("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:n,children:/* Translators: %s translates to the Post Label in singular form */ /* Translators: %s translates to the Post Label in singular form */
10 +(0,Ce.sprintf)((0,Ce.__)("Return to your %s","wordpress-seo"),t)})]})]})]})}),(0,ue.jsx)(jt,{id:e+"-open-button",title:o,SuffixHeroIcon:c,suffixIcon:c?null:{size:"20px",icon:"pencil-square"},onClick:r})]});ns.propTypes={id:ce().string.isRequired,postTypeName:ce().string.isRequired,children:ce().oneOfType([ce().node,ce().arrayOf(ce().node)]).isRequired,title:ce().string.isRequired,isOpen:ce().bool.isRequired,open:ce().func.isRequired,close:ce().func.isRequired,shouldCloseOnClickOutside:ce().bool,showChangesWarning:ce().bool,SuffixHeroIcon:ce().element,titleHelpLink:ce().element};const as=ns,ls=(0,xt.compose)([(0,a.withSelect)((e,t)=>{const{getPostOrPageString:s,getIsModalOpen:o}=e("yoast-seo/editor");return{postTypeName:s(),isOpen:o(t.id)}}),(0,a.withDispatch)((e,t)=>{const{openEditorModal:s,closeEditorModal:o}=e("yoast-seo/editor");return{open:()=>s(t.id),close:o}})])(as),cs=()=>{const e=(0,a.useSelect)(e=>e("yoast-seo/editor").getEstimatedReadingTime(),[]),t=(0,ne.useMemo)(()=>(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-estimated_reading_time",""),[]);return(0,ue.jsx)(Tt.InsightsCard,{amount:e,unit:(0,Ce._n)("minute","minutes",e,"wordpress-seo"),title:(0,Ce.__)("Reading time","wordpress-seo"),linkTo:t
11 +/* translators: Hidden accessibility text. */,linkText:(0,Ce.__)("Learn more about reading time","wordpress-seo")})},ds=(0,Bt.makeOutboundLink)();function ps(e,t){return-1===e?(0,Ce.__)("Your text should be slightly longer to calculate your Flesch reading ease score.","wordpress-seo"):(0,Ce.sprintf)(
12 +/* Translators: %1$s expands to the numeric Flesch reading ease score,
13 + %2$s expands to the easiness of reading (e.g. 'easy' or 'very difficult') */
14 +/* Translators: %1$s expands to the numeric Flesch reading ease score,
15 + %2$s expands to the easiness of reading (e.g. 'easy' or 'very difficult') */
16 +(0,Ce.__)("The copy scores %1$s in the test, which is considered %2$s to read.","wordpress-seo"),e,function(e){switch(e){case d.DIFFICULTY.NO_DATA:return(0,Ce.__)("no data","wordpress-seo");case d.DIFFICULTY.VERY_EASY:return(0,Ce.__)("very easy","wordpress-seo");case d.DIFFICULTY.EASY:return(0,Ce.__)("easy","wordpress-seo");case d.DIFFICULTY.FAIRLY_EASY:return(0,Ce.__)("fairly easy","wordpress-seo");case d.DIFFICULTY.OKAY:return(0,Ce.__)("okay","wordpress-seo");case d.DIFFICULTY.FAIRLY_DIFFICULT:return(0,Ce.__)("fairly difficult","wordpress-seo");case d.DIFFICULTY.DIFFICULT:return(0,Ce.__)("difficult","wordpress-seo");case d.DIFFICULTY.VERY_DIFFICULT:return(0,Ce.__)("very difficult","wordpress-seo")}}(t))}const us=()=>{let e=(0,a.useSelect)(e=>e("yoast-seo/editor").getFleschReadingEaseScore(),[]);const t=(0,ne.useMemo)(()=>(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease",""),[]),s=(0,a.useSelect)(e=>e("yoast-seo/editor").getFleschReadingEaseDifficulty(),[e]),o=(0,ne.useMemo)(()=>{const t=(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease_article","");return function(e,t,s){const o=function(e){switch(e){case d.DIFFICULTY.FAIRLY_DIFFICULT:case d.DIFFICULTY.DIFFICULT:case d.DIFFICULTY.VERY_DIFFICULT:return(0,Ce.__)("Try to make shorter sentences, using less difficult words to improve readability","wordpress-seo");case d.DIFFICULTY.NO_DATA:return(0,Ce.__)("Continue writing to get insight into the readability of your text!","wordpress-seo");default:return(0,Ce.__)("Good job!","wordpress-seo")}}(t);return(0,ue.jsxs)("span",{children:[ps(e,t)," ",t>=d.DIFFICULTY.FAIRLY_DIFFICULT?(0,ue.jsx)(ds,{href:s,children:o+"."}):o]})}(e,s,t)},[e,s]);return-1===e&&(e="?"),(0,ue.jsx)(Tt.InsightsCard,{amount:e,unit:(0,Ce.__)("out of 100","wordpress-seo"),title:(0,Ce.__)("Flesch reading ease","wordpress-seo"),linkTo:t
17 +/* translators: Hidden accessibility text. */,linkText:(0,Ce.__)("Learn more about Flesch reading ease","wordpress-seo"),description:o})},hs=({data:e=[],itemScreenReaderText:t="",className:s="",...o})=>{const i=(0,ne.useMemo)(()=>{var t,s;return null!==(t=null===(s=(0,c.maxBy)(e,"number"))||void 0===s?void 0:s.number)&&void 0!==t?t:0},[e]);return(0,ue.jsx)("ul",{className:rt()("yoast-data-model",s),...o,children:e.map(({name:e,number:s})=>(0,ue.jsxs)("li",{style:{"--yoast-width":s/i*100+"%"},children:[e,(0,ue.jsx)("span",{children:s}),t&&(0,ue.jsx)("span",{className:"screen-reader-text",children:(0,Ce.sprintf)(t,s)})]},`${e}_dataItem`))})};hs.propTypes={data:ce().arrayOf(ce().shape({name:ce().string.isRequired,number:ce().number.isRequired})),itemScreenReaderText:ce().string,className:ce().string};const gs=hs,ms=(0,Bt.makeOutboundLink)(),ys=({location:e})=>{const t=(0,a.useSelect)(e=>{var t,s;return null===(t=null===(s=e("yoast-seo-premium/editor"))||void 0===s?void 0:s.getPreference("isProminentWordsAvailable",!1))||void 0===t||t},[]),s=(0,a.useSelect)(e=>e("yoast-seo/editor").getPreference("shouldUpsell",!1),[]),o=(0,ne.useMemo)(()=>(0,c.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${e}-prominent_words`,""),[e]),i=(0,ne.useMemo)(()=>{const e=(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-keyword_research_link","");return De((0,Ce.sprintf)(
18 +// translators: %1$s and %2$s are replaced by opening and closing <a> tags.
19 +// translators: %1$s and %2$s are replaced by opening and closing <a> tags.
20 +(0,Ce.__)("Read our %1$sultimate guide to keyword research%2$s to learn more about keyword research and keyword strategy.","wordpress-seo"),"<a>","</a>"),{a:(0,ue.jsx)(ms,{href:e})})},[]),r=(0,ne.useMemo)(()=>De((0,Ce.sprintf)(
21 +// 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`.
22 +// 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`.
23 +(0,Ce.__)("With %1$s%3$s%2$s, this section will show you which words occur most often in your text. By checking these prominent words against your intended keyword(s), you'll know how to edit your text to be more focused.","wordpress-seo"),"<b>","</b>","Yoast SEO Premium"),{b:(0,ue.jsx)("b",{})}),[]),n=(0,a.useSelect)(e=>{var t,s;return null!==(t=null===(s=e("yoast-seo-premium/editor"))||void 0===s?void 0:s.getProminentWords())&&void 0!==t?t:[]},[]),l=(0,ne.useMemo)(()=>{const e=(0,Ce.sprintf)(
24 +// translators: %1$s expands to Yoast SEO Premium.
25 +// translators: %1$s expands to Yoast SEO Premium.
26 +(0,Ce.__)("Get %s to enjoy the benefits of prominent words","wordpress-seo"),"Yoast SEO Premium").split(/\s+/);return e.map((t,s)=>({name:t,number:e.length-s}))},[]),d=(0,ne.useMemo)(()=>s?l:n.map(({word:e,occurrence:t})=>({name:e,number:t})),[n,l]);if(!t)return null;const{locationContext:p}=(0,ae.useRootContext)();return(0,ue.jsxs)("div",{className:"yoast-prominent-words",children:[(0,ue.jsx)("div",{className:"yoast-field-group__title",children:(0,ue.jsx)("b",{children:(0,Ce.__)("Prominent words","wordpress-seo")})}),!s&&(0,ue.jsx)("p",{children:0===d.length?(0,Ce.__)("Once you add a bit more copy, we'll give you a list of words that occur the most in the content. These give an indication of what your content focuses on.","wordpress-seo"):(0,Ce.__)("The following words occur the most in the content. These give an indication of what your content focuses on. If the words differ a lot from your topic, you might want to rewrite your content accordingly.","wordpress-seo")}),s&&(0,ue.jsx)("p",{children:r}),s&&(0,ue.jsxs)(ms,{href:(0,kt.addQueryArgs)(o,{context:p}),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",className:"yoast-button yoast-button-upsell",children:[(0,Ce.sprintf)(
27 +// translators: %s expands to `Premium` (part of add-on name).
28 +// translators: %s expands to `Premium` (part of add-on name).
29 +(0,Ce.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,ue.jsx)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})]}),(0,ue.jsx)("p",{children:i}),(0,ue.jsx)(gs,{data:d,itemScreenReaderText:/* translators: Hidden accessibility text; %d expands to the number of occurrences. */ /* translators: Hidden accessibility text; %d expands to the number of occurrences. */
30 +(0,Ce.__)("%d occurrences","wordpress-seo"),"aria-label":(0,Ce.__)("Prominent words","wordpress-seo"),className:s?"yoast-data-model--upsell":null})]})};ys.propTypes={location:ce().string.isRequired};const ws=ys,fs=(0,Bt.makeOutboundLink)(),bs=({location:e})=>{const t=(0,ne.useMemo)(()=>(0,c.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${e}-text_formality`,""),[e]),s=(0,ne.useMemo)(()=>De((0,Ce.sprintf)(
31 +// 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`.
32 +// 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`.
33 +(0,Ce.__)("%1$s%3$s%2$s will help you assess the formality level of your text.","wordpress-seo"),"<b>","</b>","Yoast SEO Premium"),{b:(0,ue.jsx)("b",{})}),[]);return(0,ue.jsx)(ne.Fragment,{children:(0,ue.jsxs)("div",{children:[(0,ue.jsx)("p",{children:s}),(0,ue.jsxs)(fs,{href:t,className:"yoast-button yoast-button-upsell",children:[(0,Ce.sprintf)(
34 +// Translators: %s expands to `Premium` (part of add-on name).
35 +// Translators: %s expands to `Premium` (part of add-on name).
36 +(0,Ce.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,ue.jsx)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})]})]})})};bs.propTypes={location:ce().string.isRequired};const xs=bs,_s=({location:e,name:t})=>{const s=(0,a.useSelect)(e=>e("yoast-seo/editor").isFormalitySupported(),[]),o=f().isPremium,i=o?(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_premium",""):(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_free",""),r=(0,Ce.__)("Read more about text formality.","wordpress-seo");return s?(0,ue.jsxs)("div",{className:"yoast-text-formality",children:[(0,ue.jsxs)("div",{className:"yoast-field-group__title",children:[(0,ue.jsx)("b",{children:(0,Ce.__)("Text formality","wordpress-seo")}),(0,ue.jsx)(Tt.HelpIcon,{linkTo:i,linkText:r})]}),o?(0,ue.jsx)(re.Slot,{name:t}):(0,ue.jsx)(xs,{location:e})]}):null};_s.propTypes={location:ce().string.isRequired,name:ce().string.isRequired};const vs=_s,ks=()=>{const e=(0,a.useSelect)(e=>e("yoast-seo/editor").getTextLength(),[]),t=(0,ne.useMemo)(()=>(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-word_count",""),[]);let s=(0,Ce._n)("word","words",e.count,"wordpress-seo"),o=(0,Ce.__)("Word count","wordpress-seo"),i=(0,Ce.__)("Learn more about word count","wordpress-seo");return"character"===e.unit&&(s=(0,Ce._n)("character","characters",e.count,"wordpress-seo"),o=(0,Ce.__)("Character count","wordpress-seo"),
37 +/* translators: Hidden accessibility text. */
38 +i=(0,Ce.__)("Learn more about character count","wordpress-seo")),(0,ue.jsx)(Tt.InsightsCard,{amount:e.count,unit:s,title:o,linkTo:t,linkText:i})},Ss=pe()(ss())`
39 + width: 18px;
40 + height: 18px;
41 + margin: 3px;
42 +`,Rs=({location:e="sidebar"})=>{const t=(0,a.useSelect)(e=>e("yoast-seo/editor").getIsElementorEditor(),[]),s=(0,a.useSelect)(e=>e("yoast-seo/editor").isFleschReadingEaseAvailable(),[]),o=os();return(0,ue.jsx)(ls,{title:(0,Ce.__)("Insights","wordpress-seo"),id:`yoast-insights-modal-${e}`,shouldCloseOnClickOutside:!t,showChangesWarning:!1,SuffixHeroIcon:(0,ue.jsx)(Ss,{className:"yst-text-slate-500",...o}),children:(0,ue.jsxs)("div",{className:"yoast-insights yoast-modal-content--columns",children:[(0,ue.jsx)(ws,{location:e}),(0,ue.jsxs)("div",{children:[s&&(0,ue.jsx)("div",{className:"yoast-insights-row",children:(0,ue.jsx)(us,{})}),(0,ue.jsxs)("div",{className:"yoast-insights-row yoast-insights-row--columns",children:[(0,ue.jsx)(cs,{}),(0,ue.jsx)(ks,{})]}),(0,k.isFeatureEnabled)("TEXT_FORMALITY")&&(0,ue.jsx)(vs,{location:e,name:"YoastTextFormalityMetabox"})]})]})})};Rs.propTypes={location:ce().string};const Ts=Rs;function Es(e){return 0===e.message.length?null:(0,ue.jsx)(Tt.Alert,{type:e.type,children:e.message})}Es.propTypes={message:ce().oneOfType([ce().array,ce().string]).isRequired,type:ce().string.isRequired};const js=(0,a.withSelect)(e=>{const{getWarningMessage:t}=e("yoast-seo/editor");return{message:t(),type:"info"}})(Es),Cs=({children:e})=>(0,ue.jsx)("div",{children:e});Cs.propTypes={renderPriority:ce().number.isRequired,children:ce().node.isRequired};const Is=Cs;var Ls=s(8290),As=s.n(Ls);const Ps=window.yoast.searchMetadataPreviews,Ds=pe()(Tt.StyledSection)`
43 + &${Tt.StyledSectionBase} {
44 + padding: 0;
45 +
46 + & ${Tt.StyledHeading} {
47 + ${(0,Bt.getDirectionalStyle)("padding-left","padding-right")}: 20px;
48 + margin-left: ${(0,Bt.getDirectionalStyle)("0","20px")};
49 + }
50 + }
51 +`,Os=({children:e=null,title:t="",icon:s="",hasPaperStyle:o=!0,shoppingData:i=null})=>(0,ue.jsx)(Ds,{headingLevel:3,headingText:t,headingIcon:s,headingIconColor:"#555",hasPaperStyle:o,shoppingData:i,children:e});Os.propTypes={children:ce().element,title:ce().string,icon:ce().string,hasPaperStyle:ce().bool,shoppingData:ce().object};const Fs=Os,qs=window.wp.sanitize,{stripHTMLTags:Ms}=Bt.strings;function Ns(e,t=156){return(e=(e=(0,qs.stripTags)(e)).trim()).length<=t||(e=e.substring(0,t),/\s/.test(e)&&(e=e.substring(0,e.lastIndexOf(" ")))),e}const Us=(0,c.memoize)((e,t)=>0===e?c.noop:(0,c.debounce)(s=>t(s,e),500)),Ws=({link:e,text:t})=>(0,ue.jsxs)(Pe.Root,{children:[(0,ue.jsx)("p",{children:t}),(0,ue.jsxs)(Pe.Button,{href:e,as:"a",className:"yst-gap-2 yst-mb-5 yst-mt-2",variant:"upsell",target:"_blank",rel:"noopener",children:[(0,ue.jsx)(Fe(),{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"}),(0,Ce.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */ /* translators: %1$s expands to Yoast WooCommerce SEO. */
52 +(0,Ce.__)("Unlock with %1$s","wordpress-seo"),"Yoast WooCommerce SEO")]})]});Ws.propTypes={link:ce().string.isRequired,text:ce().string.isRequired};const $s=Ws,Bs=function(e,t){let s=0;return t.shortenedBaseUrl&&"string"==typeof t.shortenedBaseUrl&&(s=t.shortenedBaseUrl.length),e.url=e.url.replace(/\s+/g,"-"),"-"===e.url[e.url.length-1]&&(e.url=e.url.slice(0,-1)),"-"===e.url[s]&&(e.url=e.url.slice(0,s)+e.url.slice(s+1)),function(e){const t=(0,c.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!(0,c.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){const t=(0,c.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],c.identity);return{url:e.url,title:Ms(t(e.title)),description:Ms(t(e.description)),filteredSEOTitle:e.filteredSEOTitle?Ms(t(e.filteredSEOTitle)):""}}(e);const s=t._applyModifications.bind(t);return{url:e.url,title:Ms(s("data_page_title",e.title)),description:Ms(s("data_meta_desc",e.description)),filteredSEOTitle:e.filteredSEOTitle?Ms(s("data_page_title",e.filteredSEOTitle)):""}}(e)},Ks=(0,xt.compose)([(0,a.withSelect)(function(e){const{getBaseUrlFromSettings:t,getDateFromSettings:s,getFocusKeyphrase:o,getRecommendedReplaceVars:i,getReplaceVars:r,getShoppingData:n,getSiteIconUrlFromSettings:a,getSnippetEditorData:l,getSnippetEditorMode:c,getSnippetEditorPreviewImageUrl:d,getSnippetEditorWordsToHighlight:p,isCornerstoneContent:u,getIsTerm:h,getContentLocale:g,getSiteName:m}=e("yoast-seo/editor"),y=r();return y.forEach(e=>{""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(e.value="%%"+e.name+"%%")}),{baseUrl:t(),data:l(),date:s(),faviconSrc:a(),keyword:o(),mobileImageSrc:d(),mode:c(),recommendedReplacementVariables:i(),replacementVariables:y,shoppingData:n(),wordsToHighlight:p(),isCornerstone:u(),isTaxonomy:h(),locale:g(),siteName:m()}}),(0,a.withDispatch)(function(e,t,{select:s}){const{updateData:o,switchMode:i,updateAnalysisData:r,findCustomFields:n}=e("yoast-seo/editor"),a=e("core/editor"),l=s("yoast-seo/editor").getPostId();return{onChange:(e,t)=>{switch(e){case"mode":i(t);break;case"slug":o({slug:t}),a&&a.editPost({slug:t});break;default:o({[e]:t})}},onChangeAnalysisData:r,onReplacementVariableSearchChange:Us(l,n)}})])(e=>{const t=(0,a.useSelect)(e=>e("yoast-seo/editor").selectLink("https://yoa.st/product-google-preview-metabox"),[]),s=(0,a.useSelect)(e=>e("yoast-seo/editor").getIsWooSeoUpsell(),[]),o=(0,Ce.__)("Want an enhanced Google preview of how your WooCommerce products look in the search results?","wordpress-seo");return(0,ue.jsx)(ae.LocationConsumer,{children:i=>(0,ue.jsx)(Fs,{icon:"eye",hasPaperStyle:e.hasPaperStyle,children:(0,ue.jsxs)(ue.Fragment,{children:[s&&(0,ue.jsx)($s,{link:t,text:o}),(0,ue.jsx)(Ps.SnippetEditor,{...e,descriptionPlaceholder:(0,Ce.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:Bs,showCloseButton:!1,idSuffix:i})]})})})}),{stripHTMLTags:Hs}=Bt.strings,Vs=(e,t)=>{const s=(0,a.select)("yoast-seo/editor").getSnippetEditorTemplates();""===e.title&&(e.title=s.title),""===e.description&&(e.description=s.description);let o=0;return t.shortenedBaseUrl&&"string"==typeof t.shortenedBaseUrl&&(o=t.shortenedBaseUrl.length),e.url=e.url.replace(/\s+/g,"-"),"-"===e.url[e.url.length-1]&&(e.url=e.url.slice(0,-1)),"-"===e.url[o]&&(e.url=e.url.slice(0,o)+e.url.slice(o+1)),{url:e.url,title:Hs(L("data_page_title",e.title)),description:Hs(L("data_meta_desc",e.description)),filteredSEOTitle:Hs(L("data_page_title",e.filteredSEOTitle))}},Ys=({isLoading:e,onLoad:t,location:s,...o})=>((0,ne.useEffect)(()=>{setTimeout(()=>{e&&t()})}),e?null:(0,ue.jsx)(Fs,{icon:"eye",hasPaperStyle:o.hasPaperStyle,children:(0,ue.jsx)(Ps.SnippetEditor,{...o,descriptionPlaceholder:(0,Ce.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:Vs,showCloseButton:!1,idSuffix:s})}));Ys.propTypes={isLoading:ce().bool.isRequired,onLoad:ce().func.isRequired,hasPaperStyle:ce().bool.isRequired,location:ce().string.isRequired};const zs=(0,xt.compose)([(0,a.withSelect)(e=>{const{getBaseUrlFromSettings:t,getDateFromSettings:s,getEditorDataImageUrl:o,getFocusKeyphrase:i,getRecommendedReplaceVars:r,getSiteIconUrlFromSettings:n,getSnippetEditorData:a,getSnippetEditorIsLoading:l,getSnippetEditorMode:c,getSnippetEditorWordsToHighlight:d,isCornerstoneContent:p,getContentLocale:u,getSiteName:h,getReplaceVars:g}=e("yoast-seo/editor");return{baseUrl:t(),data:a(),date:s(),faviconSrc:n(),isLoading:l(),keyword:i(),mobileImageSrc:o(),mode:c(),recommendedReplacementVariables:r(),replacementVariables:g(),wordsToHighlight:d(),isCornerstone:p(),locale:u(),siteName:h()}}),(0,a.withDispatch)(e=>{const{updateData:t,switchMode:s,updateAnalysisData:o,loadSnippetEditorData:i}=e("yoast-seo/editor");return{onChange:(e,o)=>{switch(e){case"mode":s(o);break;case"slug":t({slug:o});break;default:t({[e]:o})}},onChangeAnalysisData:o,onLoad:i}}),Mt()])(Ys),Gs=pe()(As())`
53 + width: 18px;
54 + height: 18px;
55 + margin: 3px;
56 +`,Zs=()=>{const e=os(),t=(0,a.useSelect)(e=>e("yoast-seo/editor").getIsElementorEditor(),[]);return(0,ue.jsxs)(ls,{title:(0,Ce.__)("Search appearance","wordpress-seo"),id:"yoast-search-appearance-modal",shouldCloseOnClickOutside:!1,SuffixHeroIcon:(0,ue.jsx)(Gs,{className:"yst-text-slate-500",...e}),children:[!0===t&&(0,ue.jsx)(zs,{showCloseButton:!1,hasPaperStyle:!1}),!1===t&&(0,ue.jsx)(Ks,{showCloseButton:!1,hasPaperStyle:!1})]})};var Qs=s(3041),Xs=s.n(Qs);const Js=pe().p`
57 + color: #606770;
58 + flex-shrink: 0;
59 + font-size: 12px;
60 + line-height: 16px;
61 + overflow: hidden;
62 + padding: 0;
63 + text-overflow: ellipsis;
64 + text-transform: uppercase;
65 + white-space: nowrap;
66 + margin: 0;
67 + position: ${e=>"landscape"===e.mode?"relative":"static"};
68 +`,eo=e=>{const{siteUrl:t}=e;return(0,ue.jsxs)(Be.Fragment,{children:[(0,ue.jsx)("span",{className:"screen-reader-text",children:t}),(0,ue.jsx)(Js,{"aria-hidden":"true",children:(0,ue.jsx)("span",{children:t})})]})};eo.propTypes={siteUrl:ce().string.isRequired};const to=eo,so=window.yoast.socialMetadataForms,oo=window.yoast.styleGuide,io=pe().img`
69 + && {
70 + max-width: ${e=>e.width}px;
71 + height: ${e=>e.height}px;
72 + position: absolute;
73 + top: 50%;
74 + left: 50%;
75 + transform: translate(-50%, -50%);
76 + max-width: none;
77 + }
78 +`,ro=pe().img`
79 + && {
80 + height: 100%;
81 + position: absolute;
82 + width: 100%;
83 + object-fit: cover;
84 + }
85 +`,no=pe().div`
86 + padding-bottom: ${e=>e.aspectRatio}%;
87 +`,ao=({imageProps:e,width:t,height:s,imageMode:o="landscape"})=>"landscape"===o?(0,ue.jsx)(no,{aspectRatio:e.aspectRatio,children:(0,ue.jsx)(ro,{src:e.src,alt:e.alt})}):(0,ue.jsx)(io,{src:e.src,alt:e.alt,width:t,height:s,imageProperties:e});function lo(e,t,s){return"landscape"===s?{widthRatio:t.width/e.landscapeWidth,heightRatio:t.height/e.landscapeHeight}:"portrait"===s?{widthRatio:t.width/e.portraitWidth,heightRatio:t.height/e.portraitHeight}:{widthRatio:t.width/e.squareWidth,heightRatio:t.height/e.squareHeight}}function co(e,t){return t.widthRatio<=t.heightRatio?{width:Math.round(e.width/t.widthRatio),height:Math.round(e.height/t.widthRatio)}:{width:Math.round(e.width/t.heightRatio),height:Math.round(e.height/t.heightRatio)}}async function po(e,t,s=!1){const o=await function(e){return new Promise((t,s)=>{const o=new Image;o.onload=()=>{t({width:o.width,height:o.height})},o.onerror=s,o.src=e})}(e);let i=s?"landscape":"square";"Facebook"===t&&(i=(0,so.determineFacebookImageMode)(o));const r=function(e){return"Twitter"===e?so.TWITTER_IMAGE_SIZES:so.FACEBOOK_IMAGE_SIZES}(t),n=function(e,t,s){return"square"===s&&t.width===t.height?{width:e.squareWidth,height:e.squareHeight}:co(t,lo(e,t,s))}(r,o,i);return{mode:i,height:n.height,width:n.width}}async function uo(e,t,s=!1){try{return{imageProperties:await po(e,t,s),status:"loaded"}}catch(e){return{imageProperties:null,status:"errored"}}}ao.propTypes={imageProps:ce().shape({src:ce().string.isRequired,alt:ce().string.isRequired,aspectRatio:ce().number.isRequired}).isRequired,width:ce().number.isRequired,height:ce().number.isRequired,imageMode:ce().string};const ho=pe().div`
88 + position: relative;
89 + ${e=>"landscape"===e.mode?`max-width: ${e.dimensions.width}`:`min-width: ${e.dimensions.width}; height: ${e.dimensions.height}`};
90 + overflow: hidden;
91 + background-color: ${oo.colors.$color_white};
92 +`,go=pe().div`
93 + box-sizing: border-box;
94 + max-width: ${so.FACEBOOK_IMAGE_SIZES.landscapeWidth}px;
95 + height: ${so.FACEBOOK_IMAGE_SIZES.landscapeHeight}px;
96 + background-color: ${oo.colors.$color_grey};
97 + border-style: dashed;
98 + border-width: 1px;
99 + // We're not using standard colors to increase contrast for accessibility.
100 + color: #006DAC;
101 + // We're not using standard colors to increase contrast for accessibility.
102 + background-color: #f1f1f1;
103 + display: flex;
104 + justify-content: center;
105 + align-items: center;
106 + text-decoration: underline;
107 + font-size: 14px;
108 + cursor: pointer;
109 +`;class mo extends Be.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 uo(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:so.FACEBOOK_IMAGE_SIZES.squareHeight+"px",width:so.FACEBOOK_IMAGE_SIZES.squareWidth+"px"};case"portrait":return{height:so.FACEBOOK_IMAGE_SIZES.portraitHeight+"px",width:so.FACEBOOK_IMAGE_SIZES.portraitWidth+"px"};case"landscape":return{height:so.FACEBOOK_IMAGE_SIZES.landscapeHeight+"px",width:so.FACEBOOK_IMAGE_SIZES.landscapeWidth+"px"}}}render(){const{imageProperties:e,status:t}=this.state;if("loading"===t||""===this.props.src||"errored"===t)return(0,ue.jsx)(go,{onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,Ce.__)("Select image","wordpress-seo")});const s=this.retrieveContainerDimensions(e.mode);return(0,ue.jsx)(ho,{mode:e.mode,dimensions:s,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onClick:this.props.onImageClick,children:(0,ue.jsx)(ao,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:so.FACEBOOK_IMAGE_SIZES.aspectRatio},width:e.width,height:e.height,imageMode:e.mode})})}}mo.propTypes={src:ce().string,alt:ce().string,onImageLoaded:ce().func,onImageClick:ce().func,onMouseEnter:ce().func,onMouseLeave:ce().func},mo.defaultProps={src:"",alt:"",onImageLoaded:c.noop,onImageClick:c.noop,onMouseEnter:c.noop,onMouseLeave:c.noop};const yo=mo,wo=pe().span`
110 + line-height: ${20}px;
111 + min-height : ${20}px;
112 + color: #1d2129;
113 + font-weight: 600;
114 + overflow: hidden;
115 + font-size: 16px;
116 + margin: 3px 0 0;
117 + letter-spacing: normal;
118 + white-space: normal;
119 + flex-shrink: 0;
120 + cursor: pointer;
121 + display: -webkit-box;
122 + -webkit-line-clamp: ${e=>e.lineCount};
123 + -webkit-box-orient: vertical;
124 + overflow: hidden;
125 +`,fo=pe().p`
126 + line-height: ${16}px;
127 + min-height : ${16}px;
128 + color: #606770;
129 + font-size: 14px;
130 + padding: 0;
131 + text-overflow: ellipsis;
132 + margin: 3px 0 0 0;
133 + display: -webkit-box;
134 + cursor: pointer;
135 + -webkit-line-clamp: ${e=>e.lineCount};
136 + -webkit-box-orient: vertical;
137 + overflow: hidden;
138 +
139 + @media all and ( max-width: ${e=>e.maxWidth} ) {
140 + display: none;
141 + }
142 +`,bo=e=>{switch(e){case"landscape":return"527px";case"square":case"portrait":return"369px";default:return"476px"}},xo=pe().div`
143 + box-sizing: border-box;
144 + display: flex;
145 + flex-direction: ${e=>"landscape"===e.mode?"column":"row"};
146 + background-color: #f2f3f5;
147 + max-width: 527px;
148 +`,_o=pe().div`
149 + box-sizing: border-box;
150 + background-color: #f2f3f5;
151 + margin: 0;
152 + padding: 10px 12px;
153 + position: relative;
154 + border-bottom: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
155 + border-top: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
156 + border-right: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
157 + border: ${e=>"landscape"===e.mode?"1px solid #dddfe2":""};
158 + display: flex;
159 + flex-direction: column;
160 + flex-grow: 1;
161 + justify-content: ${e=>"landscape"===e.mode?"flex-start":"center"};
162 + font-size: 12px;
163 + overflow: hidden;
164 +`;class vo extends Be.Component{constructor(e){super(e),this.state={imageMode:null,maxLineCount:0,descriptionLineCount:0},this.facebookTitleRef=Ke().createRef(),this.onImageLoaded=this.onImageLoaded.bind(this),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}onImageLoaded(e){this.setState({imageMode:e})}getTitleLineCount(){return this.facebookTitleRef.current.offsetHeight/20}maybeSetMaxLineCount(){const{imageMode:e,maxLineCount:t}=this.state,s="landscape"===e?2:5;s!==t&&this.setState({maxLineCount:s})}maybeSetDescriptionLineCount(){const{descriptionLineCount:e,maxLineCount:t,imageMode:s}=this.state,o=this.getTitleLineCount();let i=t-o;"portrait"===s&&(i=5===o?0:4),i!==e&&this.setState({descriptionLineCount:i})}componentDidUpdate(){this.maybeSetMaxLineCount(),this.maybeSetDescriptionLineCount()}render(){const{imageMode:e,maxLineCount:t,descriptionLineCount:s}=this.state;return(0,ue.jsxs)(xo,{id:"facebookPreview",mode:e,children:[(0,ue.jsx)(yo,{src:this.props.imageUrl||this.props.imageFallbackUrl,alt:this.props.alt,onImageLoaded:this.onImageLoaded,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,ue.jsxs)(_o,{mode:e,children:[(0,ue.jsx)(to,{siteUrl:this.props.siteUrl,mode:e}),(0,ue.jsx)(wo,{ref:this.facebookTitleRef,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,lineCount:t,children:this.props.title}),s>0&&(0,ue.jsx)(fo,{maxWidth:bo(e),onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,lineCount:s,children:this.props.description})]})]})}}vo.propTypes={siteUrl:ce().string.isRequired,title:ce().string.isRequired,description:ce().string,imageUrl:ce().string,imageFallbackUrl:ce().string,alt:ce().string,onSelect:ce().func,onImageClick:ce().func,onMouseHover:ce().func},vo.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{}};const ko=vo,So=pe().div`
165 + text-transform: lowercase;
166 + color: rgb(83, 100, 113);
167 + white-space: nowrap;
168 + overflow: hidden;
169 + text-overflow: ellipsis;
170 + margin: 0;
171 + fill: currentcolor;
172 + display: flex;
173 + flex-direction: row;
174 + align-items: flex-end;
175 +`,Ro=e=>(0,ue.jsx)(So,{children:(0,ue.jsx)("span",{children:e.siteUrl})});Ro.propTypes={siteUrl:ce().string.isRequired};const To=Ro,Eo=(e,t=!0)=>e?`\n\t\t\tmax-width: ${so.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: ${so.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`,jo=pe().div`
176 + position: relative;
177 + box-sizing: content-box;
178 + overflow: hidden;
179 + background-color: #e1e8ed;
180 + flex-shrink: 0;
181 + ${e=>Eo(e.isLarge)}
182 +`,Co=pe().div`
183 + display: flex;
184 + justify-content: center;
185 + align-items: center;
186 + box-sizing: border-box;
187 + max-width: 100%;
188 + margin: 0;
189 + padding: 1em;
190 + text-align: center;
191 + font-size: 1rem;
192 + ${e=>Eo(e.isLarge,!1)}
193 +`,Io=pe()(Co)`
194 + ${e=>e.isLarge&&`height: ${so.TWITTER_IMAGE_SIZES.landscapeHeight}px;`}
195 + border-top-left-radius: 14px;
196 + ${e=>e.isLarge?"border-top-right-radius":"border-bottom-left-radius"}: 14px;
197 + border-style: dashed;
198 + border-width: 1px;
199 + // We're not using standard colors to increase contrast for accessibility.
200 + color: #006DAC;
201 + // We're not using standard colors to increase contrast for accessibility.
202 + background-color: #f1f1f1;
203 + text-decoration: underline;
204 + font-size: 14px;
205 + cursor: pointer;
206 +`;class Lo extends Ke().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 uo(this.props.src,this.socialMedium,this.props.isLarge);this.setState(e)}componentDidUpdate(e){e.src!==this.props.src&&this.handleTwitterImage()}componentDidMount(){this.handleTwitterImage()}render(){const{status:e,imageProperties:t}=this.state;return"loading"===e||""===this.props.src||"errored"===e?(0,ue.jsx)(Io,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,Ce.__)("Select image","wordpress-seo")}):(0,ue.jsx)(jo,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,ue.jsx)(ao,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:so.TWITTER_IMAGE_SIZES.aspectRatio},width:t.width,height:t.height,imageMode:t.mode})})}}Lo.propTypes={isLarge:ce().bool.isRequired,src:ce().string,alt:ce().string,onImageClick:ce().func,onMouseEnter:ce().func,onMouseLeave:ce().func},Lo.defaultProps={src:"",alt:"",onMouseEnter:c.noop,onImageClick:c.noop,onMouseLeave:c.noop};const Ao=pe().div`
207 + display: flex;
208 + flex-direction: column;
209 + padding: 12px;
210 + justify-content: center;
211 + margin: 0;
212 + box-sizing: border-box;
213 + flex: auto;
214 + min-width: 0px;
215 + gap:2px;
216 + > * {
217 + line-height:20px;
218 + min-height:20px;
219 + font-size:15px;
220 + }
221 +`,Po=e=>(0,ue.jsx)(Ao,{children:e.children});Po.propTypes={children:ce().array.isRequired};const Do=Po,Oo=pe().p`
222 + white-space: nowrap;
223 + overflow: hidden;
224 + text-overflow: ellipsis;
225 + margin: 0;
226 + color: rgb(15, 20, 25);
227 + cursor: pointer;
228 +`,Fo=pe().p`
229 + max-height: 55px;
230 + overflow: hidden;
231 + text-overflow: ellipsis;
232 + margin: 0;
233 + color: rgb(83, 100, 113);
234 + display: -webkit-box;
235 + cursor: pointer;
236 + -webkit-line-clamp: 2;
237 + -webkit-box-orient: vertical;
238 +
239 + @media all and ( max-width: ${so.TWITTER_IMAGE_SIZES.landscapeWidth}px ) {
240 + display: none;
241 + }
242 +`,qo=pe().div`
243 + font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
244 + font-size: 15px;
245 + font-weight: 400;
246 + line-height: 20px;
247 + max-width: 507px;
248 + border: 1px solid #E1E8ED;
249 + box-sizing: border-box;
250 + border-radius: 14px;
251 + color: #292F33;
252 + background: #FFFFFF;
253 + text-overflow: ellipsis;
254 + display: flex;
255 +
256 + &:hover {
257 + background: #f5f8fa;
258 + border: 1px solid rgba(136,153,166,.5);
259 + }
260 +`,Mo=pe()(qo)`
261 + flex-direction: column;
262 + max-height: 370px;
263 +`,No=pe()(qo)`
264 + flex-direction: row;
265 + height: 125px;
266 +`;class Uo extends Be.Component{constructor(e){super(e),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}render(){const{isLarge:e,imageUrl:t,imageFallbackUrl:s,alt:o,title:i,description:r,siteUrl:n}=this.props,a=e?Mo:No;return(0,ue.jsxs)(a,{id:"twitterPreview",children:[(0,ue.jsx)(Lo,{src:t||s,alt:o,isLarge:e,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,ue.jsxs)(Do,{children:[(0,ue.jsx)(To,{siteUrl:n}),(0,ue.jsx)(Oo,{onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,children:i}),(0,ue.jsx)(Fo,{onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,children:r})]})]})}}Uo.propTypes={siteUrl:ce().string.isRequired,title:ce().string.isRequired,description:ce().string,isLarge:ce().bool,imageUrl:ce().string,imageFallbackUrl:ce().string,alt:ce().string,onSelect:ce().func,onImageClick:ce().func,onMouseHover:ce().func},Uo.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{},isLarge:!0};const Wo=Uo,$o=window.yoast.replacementVariableEditor;class Bo extends Be.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.SocialPreview="Social"===e.socialMediumName?ko:Wo,this.setHoveredField=this.setHoveredField.bind(this),this.setActiveField=this.setActiveField.bind(this),this.setEditorRef=this.setEditorRef.bind(this),this.setEditorFocus=this.setEditorFocus.bind(this)}setHoveredField(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}setActiveField(e){e!==this.state.activeField&&this.setState({activeField:e},()=>this.setEditorFocus(e))}setEditorFocus(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}setEditorRef(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}render(){const{onDescriptionChange:e,onTitleChange:t,onSelectImageClick:s,onRemoveImageClick:o,socialMediumName:i,imageWarnings:r,siteUrl:n,description:a,descriptionInputPlaceholder:l,descriptionPreviewFallback:c,imageUrl:d,imageFallbackUrl:p,alt:u,title:h,titleInputPlaceholder:g,titlePreviewFallback:m,replacementVariables:y,recommendedReplacementVariables:w,applyReplacementVariables:f,onReplacementVariableSearchChange:b,isPremium:x,isLarge:_,socialPreviewLabel:v,idSuffix:k,activeMetaTabId:S}=this.props,R=f({title:h||m,description:a||c});return(0,ue.jsxs)(Ke().Fragment,{children:[v&&(0,ue.jsx)(Tt.SimulatedLabel,{children:v}),(0,ue.jsx)(this.SocialPreview,{onMouseHover:this.setHoveredField,onSelect:this.setActiveField,onImageClick:s,siteUrl:n,title:R.title,description:R.description,imageUrl:d,imageFallbackUrl:p,alt:u,isLarge:_,activeMetaTabId:S}),(0,ue.jsx)(so.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:i,title:h,titleInputPlaceholder:g,onRemoveImageClick:o,imageSelected:!!d,imageUrl:d,imageFallbackUrl:p,onTitleChange:t,onSelectImageClick:s,description:a,descriptionInputPlaceholder:l,imageWarnings:r,replacementVariables:y,recommendedReplacementVariables:w,onReplacementVariableSearchChange:b,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:x,setEditorRef:this.setEditorRef,idSuffix:k})]})}}Bo.propTypes={title:ce().string.isRequired,onTitleChange:ce().func.isRequired,description:ce().string.isRequired,onDescriptionChange:ce().func.isRequired,imageUrl:ce().string.isRequired,imageFallbackUrl:ce().string.isRequired,onSelectImageClick:ce().func.isRequired,onRemoveImageClick:ce().func.isRequired,socialMediumName:ce().string.isRequired,alt:ce().string,isPremium:ce().bool,imageWarnings:ce().array,isLarge:ce().bool,siteUrl:ce().string,descriptionInputPlaceholder:ce().string,titleInputPlaceholder:ce().string,descriptionPreviewFallback:ce().string,titlePreviewFallback:ce().string,replacementVariables:$o.replacementVariablesShape,recommendedReplacementVariables:$o.recommendedReplacementVariablesShape,applyReplacementVariables:ce().func,onReplacementVariableSearchChange:ce().func,socialPreviewLabel:ce().string,idSuffix:ce().string,activeMetaTabId:ce().string},Bo.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,isLarge:!0,siteUrl:"",descriptionInputPlaceholder:"",titleInputPlaceholder:"",descriptionPreviewFallback:"",titlePreviewFallback:"",alt:"",applyReplacementVariables:e=>e,onReplacementVariableSearchChange:null,socialPreviewLabel:"",idSuffix:"",activeMetaTabId:""};const Ko={},Ho=(e,t,{log:s=console.warn}={})=>{Ko[e]||(Ko[e]=!0,s(t))},Vo=(e,t=c.noop)=>{const s={};for(const o in e)Object.hasOwn(e,o)&&Object.defineProperty(s,o,{set:s=>{e[o]=s,t("set",o,s)},get:()=>(t("get",o),e[o])});return s};Vo({squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},(e,t)=>Ho(`@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.`)),Vo({squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}},(e,t)=>Ho(`@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 Yo=pe().div`
267 + max-width: calc(527px + 1.5rem);
268 +`,zo=e=>{const t="X"===e.socialMediumName?(0,Ce.__)("X share preview","wordpress-seo"):(0,Ce.__)("Social share preview","wordpress-seo"),{locationContext:s}=(0,Pe.useRootContext)();return(0,ue.jsx)(Pe.Root,{children:(0,ue.jsx)(Yo,{children:(0,ue.jsx)(Pe.FeatureUpsell,{shouldUpsell:!0,variant:"card",cardLink:(0,kt.addQueryArgs)(wpseoAdminL10n["shortlinks.upsell.social_preview."+e.socialMediumName.toLowerCase()],{context:s}),cardText:(0,Ce.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */ /* translators: %1$s expands to Yoast SEO Premium. */
269 +(0,Ce.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",children:(0,ue.jsxs)("div",{className:"yst-grayscale yst-opacity-50",children:[(0,ue.jsx)(Pe.Label,{children:t}),(0,ue.jsx)(ko,{title:"",description:"",siteUrl:"",imageUrl:"",imageFallbackUrl:"",alt:"",onSelect:c.noop,onImageClick:c.noop,onMouseHover:c.noop})]})})})})};zo.propTypes={socialMediumName:ce().oneOf(["Social","Twitter","X"]).isRequired};const Go=zo;class Zo extends ne.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.setHoveredField=this.setHoveredField.bind(this),this.setActiveField=this.setActiveField.bind(this),this.setEditorRef=this.setEditorRef.bind(this),this.setEditorFocus=this.setEditorFocus.bind(this)}setHoveredField(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}setActiveField(e){e!==this.state.activeField&&this.setState({activeField:e},()=>this.setEditorFocus(e))}setEditorFocus(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}setEditorRef(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}render(){const{onDescriptionChange:e,onTitleChange:t,onSelectImageClick:s,onRemoveImageClick:o,socialMediumName:i,imageWarnings:r,description:n,descriptionInputPlaceholder:a,imageUrl:l,imageFallbackUrl:c,alt:d,title:p,titleInputPlaceholder:u,replacementVariables:h,recommendedReplacementVariables:g,onReplacementVariableSearchChange:m,isPremium:y,location:w}=this.props;return(0,ue.jsxs)(ne.Fragment,{children:[(0,ue.jsx)(Go,{socialMediumName:i}),(0,ue.jsx)(so.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:i,title:p,titleInputPlaceholder:u,onRemoveImageClick:o,imageSelected:!!l,imageUrl:l,imageFallbackUrl:c,imageAltText:d,onTitleChange:t,onSelectImageClick:s,description:n,descriptionInputPlaceholder:a,imageWarnings:r,replacementVariables:h,recommendedReplacementVariables:g,onReplacementVariableSearchChange:m,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:y,setEditorRef:this.setEditorRef,idSuffix:w})]})}}Zo.propTypes={title:ce().string.isRequired,onTitleChange:ce().func.isRequired,description:ce().string.isRequired,onDescriptionChange:ce().func.isRequired,imageUrl:ce().string.isRequired,imageFallbackUrl:ce().string,onSelectImageClick:ce().func.isRequired,onRemoveImageClick:ce().func.isRequired,socialMediumName:ce().string.isRequired,isPremium:ce().bool,imageWarnings:ce().array,descriptionInputPlaceholder:ce().string,titleInputPlaceholder:ce().string,replacementVariables:$o.replacementVariablesShape,recommendedReplacementVariables:$o.recommendedReplacementVariablesShape,onReplacementVariableSearchChange:ce().func,location:ce().string,alt:ce().string},Zo.defaultProps={imageWarnings:[],imageFallbackUrl:"",recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",onReplacementVariableSearchChange:null,location:"",alt:""};const Qo=Zo,Xo=(e,t,s)=>{const[o,i]=(0,ne.useState)(!1),r=(0,Ce.sprintf)(
270 +/* Translators: %1$s expands to the jpg format, %2$s expands to the png format,
271 + %3$s expands to the webp format, %4$s expands to the gif format. */
272 +/* Translators: %1$s expands to the jpg format, %2$s expands to the png format,
273 + %3$s expands to the webp format, %4$s expands to the gif format. */
274 +(0,Ce.__)("No image was found that we can automatically set as your social image. Please use %1$s, %2$s, %3$s or %4$s formats to ensure it displays correctly on social media.","wordpress-seo"),"JPG","PNG","WEBP","GIF");return(0,ne.useEffect)(()=>{i(""===t&&e.toLowerCase().endsWith(".avif"))},[e,t]),o?[r]:s},Jo=({isPremium:e,onLoad:t,location:s,imageFallbackUrl:o="",imageUrl:i="",imageWarnings:r=[],...n})=>{const[a,l]=(0,ne.useState)(""),c=Xo(o,i,r),d=(0,ne.useCallback)(e=>{l(e.detail.metaTabId)},[l]);(0,ne.useEffect)(()=>(setTimeout(t),window.addEventListener("YoastSEO:metaTabChange",d),()=>{window.removeEventListener("YoastSEO:metaTabChange",d)}),[]);const p={isPremium:e,onLoad:t,location:s,imageFallbackUrl:o,imageUrl:i,imageWarnings:c,activeMetaTabId:a,...n};return e?(0,ue.jsx)(re.Slot,{name:`YoastFacebookPremium${s.charAt(0).toUpperCase()+s.slice(1)}`,fillProps:p}):(0,ue.jsx)(Qo,{...p})};Jo.propTypes={isPremium:ce().bool.isRequired,onLoad:ce().func.isRequired,location:ce().string.isRequired,imageFallbackUrl:ce().string,imageUrl:ce().string,imageWarnings:ce().array};const ei=Jo;function ti(e){(function(e){const t=window.wp.media();return t.on("select",()=>{const s=t.state().get("selection").first();var o;e({type:(o=s.attributes).subtype,width:o.width,height:o.height,url:o.url,id:o.id,sizes:o.sizes,alt:o.alt||o.title||o.name})}),t})(e).open()}const si=()=>{ti(e=>(0,a.dispatch)("yoast-seo/editor").setFacebookPreviewImage((e=>{const{width:t,height:s}=e,o=(0,so.determineFacebookImageMode)({width:t,height:s}),i=so.FACEBOOK_IMAGE_SIZES[o+"Width"],r=so.FACEBOOK_IMAGE_SIZES[o+"Height"],n=Object.values(e.sizes).find(e=>e.width>=i&&e.height>=r);return{url:n?n.url:e.url,id:e.id,warnings:(0,Bt.validateFacebookImage)(e),alt:e.alt||""}})(e)))},oi=(0,xt.compose)([(0,a.withSelect)(e=>{const{getFacebookDescription:t,getDescription:s,getFacebookTitle:o,getSeoTitle:i,getFacebookImageUrl:r,getImageFallback:n,getFacebookWarnings:a,getRecommendedReplaceVars:l,getReplaceVars:c,getSiteUrl:d,getSeoTitleTemplate:p,getSeoTitleTemplateNoFallback:u,getSocialTitleTemplate:h,getSeoDescriptionTemplate:g,getSocialDescriptionTemplate:m,getReplacedExcerpt:y,getFacebookAltText:w}=e("yoast-seo/editor");return{imageUrl:r(),imageFallbackUrl:n(),recommendedReplacementVariables:l(),replacementVariables:c(),description:t(),descriptionPreviewFallback:m()||s()||g()||y()||"",title:o(),titlePreviewFallback:h()||i()||u()||p()||"",imageWarnings:a(),siteUrl:d(),isPremium:!!f().isPremium,titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Social",alt:w()}}),(0,a.withDispatch)((e,t,{select:s})=>{const{setFacebookPreviewTitle:o,setFacebookPreviewDescription:i,clearFacebookPreviewImage:r,loadFacebookPreviewData:n,findCustomFields:a}=e("yoast-seo/editor"),l=s("yoast-seo/editor").getPostId();return{onSelectImageClick:si,onRemoveImageClick:r,onDescriptionChange:i,onTitleChange:o,onLoad:n,onReplacementVariableSearchChange:Us(l,a)}}),Mt()])(ei),ii=({isPremium:e,onLoad:t,location:s,imageFallbackUrl:o="",imageUrl:i="",imageWarnings:r=[],...n})=>{const a=Xo(o,i,r);(0,ne.useEffect)(()=>{setTimeout(t)},[]);const l={isPremium:e,onLoad:t,location:s,imageFallbackUrl:o,imageUrl:i,imageWarnings:a,...n};return e?(0,ue.jsx)(re.Slot,{name:`YoastTwitterPremium${s.charAt(0).toUpperCase()+s.slice(1)}`,fillProps:l}):(0,ue.jsx)(Qo,{...l})};ii.propTypes={isPremium:ce().bool.isRequired,onLoad:ce().func.isRequired,location:ce().string.isRequired,imageFallbackUrl:ce().string,imageUrl:ce().string,imageWarnings:ce().array};const ri=ii,ni=()=>{ti(e=>(0,a.dispatch)("yoast-seo/editor").setTwitterPreviewImage((e=>{const t="summary"!==(0,c.get)(window,"wpseoScriptData.metabox.twitterCardType")?"landscape":"square",s=so.TWITTER_IMAGE_SIZES[t+"Width"],o=so.TWITTER_IMAGE_SIZES[t+"Height"],i=Object.values(e.sizes).find(e=>e.width>=s&&e.height>=o);return{url:i?i.url:e.url,id:e.id,warnings:(0,Bt.validateTwitterImage)(e),alt:e.alt||""}})(e)))},ai=(0,xt.compose)([(0,a.withSelect)(e=>{const{getTwitterDescription:t,getTwitterTitle:s,getTwitterImageUrl:o,getFacebookImageUrl:i,getFacebookTitle:r,getFacebookDescription:n,getDescription:a,getSeoTitle:l,getTwitterWarnings:c,getTwitterImageType:d,getImageFallback:p,getRecommendedReplaceVars:u,getReplaceVars:h,getSiteUrl:g,getSeoTitleTemplate:m,getSeoTitleTemplateNoFallback:y,getSocialTitleTemplate:w,getSeoDescriptionTemplate:b,getSocialDescriptionTemplate:x,getReplacedExcerpt:_,getTwitterAltText:v}=e("yoast-seo/editor");return{imageUrl:o(),imageFallbackUrl:i()||p(),recommendedReplacementVariables:u(),replacementVariables:h(),description:t(),descriptionPreviewFallback:x()||n()||a()||b()||_()||"",title:s(),titlePreviewFallback:w()||r()||l()||y()||m()||"",imageWarnings:c(),siteUrl:g(),isPremium:!!f().isPremium,isLarge:"summary"!==d(),titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"X",alt:v()}}),(0,a.withDispatch)((e,t,{select:s})=>{const{setTwitterPreviewTitle:o,setTwitterPreviewDescription:i,clearTwitterPreviewImage:r,loadTwitterPreviewData:n,findCustomFields:a}=e("yoast-seo/editor"),l=s("yoast-seo/editor").getPostId();return{onSelectImageClick:ni,onRemoveImageClick:r,onDescriptionChange:i,onTitleChange:o,onLoad:n,onReplacementVariableSearchChange:Us(l,a)}}),Mt()])(ri),li=pe()(Tt.Collapsible)`
275 + h2 > button {
276 + padding-left: 0;
277 + padding-top: 16px;
278 +
279 + &:hover {
280 + background-color: #f0f0f0;
281 + }
282 + }
283 +
284 + div[class^="collapsible_content"] {
285 + padding: 24px 0;
286 + margin: 0 24px;
287 + border-top: 1px solid rgba(0,0,0,0.2);
288 + }
289 +
290 +`,ci=e=>(0,ue.jsx)(li,{hasPadding:!1,hasSeparator:!0,...e}),di=(0,Bt.makeOutboundLink)(pe().a`
291 + display: inline-block;
292 + position: relative;
293 + outline: none;
294 + text-decoration: none;
295 + border-radius: 100%;
296 + width: 24px;
297 + height: 24px;
298 + margin: -4px 0;
299 + vertical-align: middle;
300 +
301 + color: ${oo.colors.$color_help_text};
302 +
303 + &:hover,
304 + &:focus {
305 + color: ${oo.colors.$color_snippet_focus};
306 + }
307 +
308 + // Overwrite the default blue active color for links.
309 + &:active {
310 + color: ${oo.colors.$color_help_text};
311 + }
312 +
313 + &::before {
314 + position: absolute;
315 + top: 0;
316 + left: 0;
317 + padding: 2px;
318 + content: "\f223";
319 + }
320 +`),pi=pe()(di)`
321 + margin-block: 0;
322 + margin-inline: 8px 0;
323 +`,ui=()=>(0,ue.jsx)(pi,{href:wpseoAdminL10n["shortlinks.social_previews_info"],className:"dashicons",children:(0,ue.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
324 +(0,Ce.__)("Learn more about social previews","wordpress-seo")})}),hi=pe().legend`
325 + margin: 16px 0;
326 + padding: 0;
327 + color: ${oo.colors.$color_headings};
328 + font-size: 12px;
329 + font-weight: 300;
330 +`,gi=pe().legend`
331 + margin: 0 0 16px;
332 + padding: 0;
333 + color: ${oo.colors.$color_headings};
334 + font-size: 12px;
335 + font-weight: 300;
336 +`,mi=pe()(Xs())`
337 + width: 18px;
338 + height: 18px;
339 + margin: 3px;
340 +`,yi=e=>{const{useOpenGraphData:t,useTwitterData:s}=e;if(!t&&!s)return;const o=os();return(0
341 +/* translators: Social media appearance refers to a preview of how a page will be represented on social media. */,ue.jsxs)(ls,{title:(0,Ce.__)("Social media appearance","wordpress-seo"),id:"yoast-social-appearance-modal",shouldCloseOnClickOutside:!1,SuffixHeroIcon:(0,ue.jsx)(mi,{className:"yst-text-slate-500",...o}),titleHelpLink:t?(0,ue.jsx)(ui,{}):null,children:[t&&(0,ue.jsxs)(ne.Fragment,{children:[(0,ue.jsx)(gi,{children:(0,Ce.__)("Determine how your post should look on social media like Facebook, X, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")}),(0,ue.jsx)(oi,{}),s&&(0,ue.jsx)(hi,{children:(0,Ce.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below. If you leave these settings untouched, the 'Social media appearance' settings mentioned above will also be applied for sharing on X.","wordpress-seo")})]}),t&&s&&(0,ue.jsx)(ci,{title:(0,Ce.__)("X appearance","wordpress-seo"),hasSeparator:!0,initialIsOpen:!1,children:(0,ue.jsx)(ai,{})}),!t&&s&&(0,ue.jsxs)(ne.Fragment,{children:[(0,ue.jsx)(gi,{children:(0,Ce.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below.","wordpress-seo")}),(0,ue.jsx)(ai,{})]})]})};yi.propTypes={useOpenGraphData:ce().bool.isRequired,useTwitterData:ce().bool.isRequired};const wi=yi,fi=({title:e,children:t,id:s=null,prefixIcon:o=null,subTitle:i="",hasBetaBadgeLabel:r=!1,hasNewBadgeLabel:n=!1,buttonId:a=null,renderNewBadgeLabel:l=()=>{},initialIsOpen:c=!1})=>{const[d,p]=(0,ne.useState)(c),u=(0,ne.useRef)(null);(0,ne.useEffect)(()=>{c&&u.current&&u.current.focus()},[]);const h=(0,ne.useCallback)(()=>{p(e=>!e)},[p]);return(0,ue.jsxs)("div",{id:s,className:"yoast components-panel__body "+(d?"is-opened":""),children:[(0,ue.jsx)("h2",{className:"components-panel__body-title",children:(0,ue.jsxs)("button",{ref:u,onClick:h,className:"components-button components-panel__body-toggle",type:"button",id:a,children:[(0,ue.jsx)("span",{className:"yoast-icon-span",style:{fill:`${o&&o.color||""}`},children:o&&(0,ue.jsx)(Tt.SvgIcon,{icon:o.icon,color:o.color,size:o.size})}),!n&&(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsxs)("span",{className:"yoast-title-container",children:[(0,ue.jsx)("div",{className:"yoast-title",children:e}),i&&(0,ue.jsx)("div",{className:"yoast-subtitle",children:i})]}),r&&(0,ue.jsx)(Tt.BetaBadge,{})]}),n&&(0,ue.jsxs)("div",{className:"yst-flex-grow yst-flex yst-items-center yst-gap-2",children:[(0,ue.jsxs)("span",{className:"yst-overflow-x-hidden yst-leading-normal",children:[(0,ue.jsx)("div",{className:"yoast-title",children:e}),i&&(0,ue.jsx)("div",{className:"yoast-subtitle",children:i})]}),l()]}),(0,ue.jsx)("span",{className:"yoast-chevron","aria-hidden":"true"})]})}),d&&t]})},bi=fi;fi.propTypes={title:ce().string.isRequired,children:ce().oneOfType([ce().node,ce().arrayOf(ce().node)]).isRequired,id:ce().string,prefixIcon:ce().object,subTitle:ce().string,hasBetaBadgeLabel:ce().bool,hasNewBadgeLabel:ce().bool,buttonId:ce().string,renderNewBadgeLabel:ce().func,initialIsOpen:ce().bool};const xi=(0,Bt.makeOutboundLink)(),_i=pe().div`
342 + padding: 16px;
343 +`,vi="yoast-seo/editor";function ki({location:e,show:t}){return t?(0,ue.jsxs)(Tt.Alert,{type:"info",children:[(0,Ce.sprintf)(/* translators: %s Expands to "Yoast News SEO" */ /* translators: %s Expands to "Yoast News SEO" */
344 +(0,Ce.__)("Are you working on a news article? %s helps you optimize your site for Google News.","wordpress-seo"),"Yoast News SEO")+" ",(0,ue.jsx)(xi,{href:window.wpseoAdminL10n[`shortlinks.upsell.${e}.news`],children:(0,Ce.sprintf)(/* translators: %s: Expands to "Yoast News SEO". */ /* translators: %s: Expands to "Yoast News SEO". */
345 +(0,Ce.__)("Buy %s now!","wordpress-seo"),"Yoast News SEO")})]}):null}ki.propTypes={show:ce().bool.isRequired,location:ce().string.isRequired};const Si=(e,t,s)=>{const o=(0,a.useSelect)(e=>e(vi).getIsProduct(),[]),i=(0,a.useSelect)(e=>e(vi).getIsWooSeoActive(),[]),r=o&&i?{name:(0,Ce.__)("Item Page","wordpress-seo"),value:"ItemPage"}:e.find(e=>e.value===t);return[{name:(0,Ce.sprintf)(/* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */ /* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */
346 +(0,Ce.__)("Default for %1$s (%2$s)","wordpress-seo"),s,r?r.name:""),value:""},...e]},Ri=(e,t)=>De((e=>(0,Ce.sprintf)(/* translators: %1$s expands to the plural name of the current post type, %2$s and %3$s expand to a link to the Settings page */ /* translators: %1$s expands to the plural name of the current post type, %2$s and %3$s expand to a link to the Settings page */
347 +(0,Ce.__)("You can change the default type for %1$s under Content types in the %2$sSettings%3$s.","wordpress-seo"),e,"<link>","</link>"))(e),{link:(0,ue.jsx)("a",{href:t,target:"_blank",rel:"noreferrer"})}),Ti=({helpTextTitle:e,helpTextLink:t,helpTextDescription:s})=>(0,ue.jsx)(Tt.FieldGroup,{label:e,linkTo:t
348 +/* translators: Hidden accessibility text. */,linkText:(0,Ce.__)("Learn more about structured data with Schema.org","wordpress-seo"),description:s});Ti.propTypes={helpTextTitle:ce().string.isRequired,helpTextLink:ce().string.isRequired,helpTextDescription:ce().string.isRequired};const Ei=({schemaPageTypeChange:e=c.noop,schemaPageTypeSelected:t=null,pageTypeOptions:s,schemaArticleTypeChange:o=c.noop,schemaArticleTypeSelected:i=null,articleTypeOptions:r,showArticleTypeInput:n,additionalHelpTextLink:l,helpTextLink:d,helpTextTitle:p,helpTextDescription:u,postTypeName:h,displayFooter:g=!1,defaultPageType:m,defaultArticleType:y,location:w,isNewsEnabled:f=!1})=>{const b=Si(s,m,h),x=Si(r,y,h),_=(0,a.useSelect)(e=>e(vi).selectLink("https://yoa.st/product-schema-metabox"),[]),v=(0,a.useSelect)(e=>e(vi).getIsWooSeoUpsell(),[]),[k,S]=(0,ne.useState)(i),R=(0,Ce.__)("Want your products stand out in search results with rich results like price, reviews and more?","wordpress-seo"),T=(0,a.useSelect)(e=>e(vi).getIsProduct(),[]),E=(0,a.useSelect)(e=>e(vi).getIsWooSeoActive(),[]),j=(0,a.useSelect)(e=>e(vi).selectAdminLink("?page=wpseo_page_settings"),[]),C=T&&E,I=(0,ne.useCallback)((e,t)=>{S(t)},[]);return(0,ne.useEffect)(()=>{I(null,i)},[i]),(0,ue.jsxs)(ne.Fragment,{children:[(0,ue.jsx)(Ti,{helpTextLink:d,helpTextTitle:p,helpTextDescription:u}),(0,ue.jsx)(Tt.FieldGroup,{label:(0,Ce.__)("What type of page or content is this?","wordpress-seo"),linkTo:l
349 +/* translators: Hidden accessibility text. */,linkText:(0,Ce.__)("Learn more about page or content types","wordpress-seo")}),v&&(0,ue.jsx)($s,{link:_,text:R}),(0,ue.jsx)(Tt.Select,{id:(0,Bt.join)(["yoast-schema-page-type",w]),options:b,label:(0,Ce.__)("Page type","wordpress-seo"),onChange:e,selected:C?"ItemPage":t,disabled:C}),n&&(0,ue.jsx)(Tt.Select,{id:(0,Bt.join)(["yoast-schema-article-type",w]),options:x,label:(0,Ce.__)("Article type","wordpress-seo"),onChange:o,selected:i,onOptionFocus:I}),(0,ue.jsx)(ki,{location:w,show:!f&&(L=k,A=y,"NewsArticle"===L||""===L&&"NewsArticle"===A)}),g&&!C&&(0,ue.jsx)("p",{children:Ri(h,j)}),C&&(0,ue.jsx)("p",{children:(0,Ce.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */ /* translators: %1$s expands to Yoast WooCommerce SEO. */
350 +(0,Ce.__)("You have %1$s activated on your site, automatically setting the Page type for your products to 'Item Page'. As a result, the Page type selection is disabled.","wordpress-seo"),"Yoast WooCommerce SEO")})]});var L,A},ji=ce().arrayOf(ce().shape({name:ce().string,value:ce().string}));Ei.propTypes={schemaPageTypeChange:ce().func,schemaPageTypeSelected:ce().string,pageTypeOptions:ji.isRequired,schemaArticleTypeChange:ce().func,schemaArticleTypeSelected:ce().string,articleTypeOptions:ji.isRequired,showArticleTypeInput:ce().bool.isRequired,additionalHelpTextLink:ce().string.isRequired,helpTextLink:ce().string.isRequired,helpTextTitle:ce().string.isRequired,helpTextDescription:ce().string.isRequired,postTypeName:ce().string.isRequired,displayFooter:ce().bool,defaultPageType:ce().string.isRequired,defaultArticleType:ce().string.isRequired,location:ce().string.isRequired,isNewsEnabled:ce().bool};const Ci=({isMetabox:e,showArticleTypeInput:t=!1,articleTypeLabel:s="",additionalHelpTextLink:o="",pageTypeLabel:i,helpTextLink:r,helpTextTitle:n,helpTextDescription:a,postTypeName:l,displayFooter:c=!1,loadSchemaArticleData:d,loadSchemaPageData:p,location:u,...h})=>{const g=(0,ue.jsx)(Ei,{showArticleTypeInput:t,articleTypeLabel:s,additionalHelpTextLink:o,pageTypeLabel:i,helpTextLink:r,helpTextTitle:n,helpTextDescription:a,postTypeName:l,displayFooter:c,loadSchemaArticleData:d,loadSchemaPageData:p,location:u,...h});return e?(0,ne.createPortal)((0,ue.jsx)(_i,{children:g}),document.getElementById("wpseo-meta-section-schema")):g};Ci.propTypes={isMetabox:ce().bool.isRequired,showArticleTypeInput:ce().bool,articleTypeLabel:ce().string,additionalHelpTextLink:ce().string,pageTypeLabel:ce().string.isRequired,helpTextLink:ce().string.isRequired,helpTextTitle:ce().string.isRequired,helpTextDescription:ce().string.isRequired,postTypeName:ce().string.isRequired,displayFooter:ce().bool,loadSchemaArticleData:ce().func.isRequired,loadSchemaPageData:ce().func.isRequired,location:ce().string.isRequired};const Ii=Ci;class Li{static get articleTypeInput(){return document.getElementById("yoast_wpseo_schema_article_type")}static get defaultArticleType(){return Li.articleTypeInput.getAttribute("data-default")}static get articleType(){return Li.articleTypeInput.value}static set articleType(e){Li.articleTypeInput.value=e}static get pageTypeInput(){return document.getElementById("yoast_wpseo_schema_page_type")}static get defaultPageType(){return Li.pageTypeInput.getAttribute("data-default")}static get pageType(){return Li.pageTypeInput.value}static set pageType(e){Li.pageTypeInput.value=e}}const Ai=e=>{const t=null!==Li.articleTypeInput;(0,ne.useEffect)(()=>{e.loadSchemaPageData(),t&&e.loadSchemaArticleData()},[]);const{pageTypeOptions:s,articleTypeOptions:o}=window.wpseoScriptData.metabox.schema,i={articleTypeLabel:(0,Ce.__)("Article type","wordpress-seo"),pageTypeLabel:(0,Ce.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:(0,Ce.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:(0,Ce.__)("This helps search engines understand your website and your content. You can change some of your settings for this page below.","wordpress-seo"),showArticleTypeInput:t,pageTypeOptions:s,articleTypeOptions:o},r={...e,...i,...(n=e.location,"metabox"===n?{helpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.page_type"],isMetabox:!0}:{helpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.page_type"],isMetabox:!1})};var n;return(0,ue.jsx)(Ii,{...r})};Ai.propTypes={displayFooter:ce().bool.isRequired,schemaPageTypeSelected:ce().string.isRequired,schemaArticleTypeSelected:ce().string.isRequired,defaultArticleType:ce().string.isRequired,defaultPageType:ce().string.isRequired,loadSchemaPageData:ce().func.isRequired,loadSchemaArticleData:ce().func.isRequired,schemaPageTypeChange:ce().func.isRequired,schemaArticleTypeChange:ce().func.isRequired,location:ce().string.isRequired};const Pi=(0,xt.compose)([(0,a.withSelect)(e=>{const{getPreferences:t,getPageType:s,getDefaultPageType:o,getArticleType:i,getDefaultArticleType:r}=e("yoast-seo/editor"),{displaySchemaSettingsFooter:n,isNewsEnabled:a}=t();return{displayFooter:n,isNewsEnabled:a,schemaPageTypeSelected:s(),schemaArticleTypeSelected:i(),defaultArticleType:r(),defaultPageType:o()}}),(0,a.withDispatch)(e=>{const{setPageType:t,setArticleType:s,getSchemaPageData:o,getSchemaArticleData:i}=e("yoast-seo/editor");return{loadSchemaPageData:o,loadSchemaArticleData:i,schemaPageTypeChange:t,schemaArticleTypeChange:s}}),Mt()])(Ai),Di=({noIndex:e,onNoIndexChange:t,editorContext:s,isPrivateBlog:o=!1})=>{const i=(e=>{const t=(0,Ce.__)("No","wordpress-seo"),s=(0,Ce.__)("Yes","wordpress-seo"),o=e.noIndex?t:s;return window.wpseoScriptData.isPost?[{name:(0,Ce.sprintf)(/* translators: %1$s translates to "yes" or "no", %2$s translates to the content type label in plural form */ /* translators: %1$s translates to "yes" or "no", %2$s translates to the content type label in plural form */
351 +(0,Ce.__)("%1$s (current default for %2$s)","wordpress-seo"),o,e.postTypeNamePlural),value:"0"},{name:t,value:"1"},{name:s,value:"2"}]:[{name:(0,Ce.sprintf)(/* translators: %1$s translates to "yes" or "no", %2$s translates to the content type label in plural form */ /* translators: %1$s translates to "yes" or "no", %2$s translates to the content type label in plural form */
352 +(0,Ce.__)("%1$s (current default for %2$s)","wordpress-seo"),o,e.postTypeNamePlural),value:"default"},{name:s,value:"index"},{name:t,value:"noindex"}]})(s);return(0,ue.jsx)(ae.LocationConsumer,{children:s=>(0,ue.jsxs)(ne.Fragment,{children:[o&&(0,ue.jsx)(Tt.Alert,{type:"warning",children:(0,Ce.__)("Even though you can set the meta robots setting here, the entire site is set to noindex in the sitewide privacy settings, so these settings won't have an effect.","wordpress-seo")}),(0,ue.jsx)(Tt.Select,{label:(0,Ce.__)("Allow search engines to show this content in search results?","wordpress-seo"),onChange:t,id:(0,Bt.join)(["yoast-meta-robots-noindex",s]),options:i,selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.allow_search_engines"]
353 +/* translators: Hidden accessibility text. */,linkText:(0,Ce.__)("Learn more about the no-index setting on our help page.","wordpress-seo")})]})})};Di.propTypes={noIndex:ce().string.isRequired,onNoIndexChange:ce().func.isRequired,editorContext:ce().object.isRequired,isPrivateBlog:ce().bool};const Oi=({noFollow:e,onNoFollowChange:t})=>(0,ue.jsx)(ae.LocationConsumer,{children:s=>{const o=(0,Bt.join)(["yoast-meta-robots-nofollow",s]);return(0,ue.jsx)(Tt.RadioButtonGroup,{id:o,options:[{value:"0",label:"Yes"},{value:"1",label:"No"}],label:(0,Ce.__)("Should search engines follow links on this content?","wordpress-seo"),groupName:o,onChange:t,selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.follow_links"]
354 +/* translators: Hidden accessibility text. */,linkText:(0,Ce.__)("Learn more about the no-follow setting on our help page.","wordpress-seo")})}});Oi.propTypes={noFollow:ce().string.isRequired,onNoFollowChange:ce().func.isRequired};const Fi=({advanced:e,onAdvancedChange:t})=>(0,ue.jsx)(ae.LocationConsumer,{children:s=>{const o=(0,Bt.join)(["yoast-meta-robots-advanced",s]),i=`${o}-input`;return(0,ue.jsx)(Tt.MultiSelect,{label:(0,Ce.__)("Meta robots advanced","wordpress-seo"),onChange:t,id:o,inputId:i,options:[{name:(0,Ce.__)("No Image Index","wordpress-seo"),value:"noimageindex"},{name:(0,Ce.__)("No Archive","wordpress-seo"),value:"noarchive"},{name:(0,Ce.__)("No Snippet","wordpress-seo"),value:"nosnippet"}],selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.meta_robots"]
355 +/* translators: Hidden accessibility text. */,linkText:(0,Ce.__)("Learn more about advanced meta robots settings on our help page.","wordpress-seo")})}});Fi.propTypes={advanced:ce().array.isRequired,onAdvancedChange:ce().func.isRequired};const qi=({breadcrumbsTitle:e,onBreadcrumbsTitleChange:t})=>(0,ue.jsx)(ae.LocationConsumer,{children:s=>(0,ue.jsx)(Tt.TextInput,{label:(0,Ce.__)("Breadcrumbs Title","wordpress-seo"),id:(0,Bt.join)(["yoast-breadcrumbs-title",s]),onChange:t,value:e,linkTo:wpseoAdminL10n["shortlinks.advanced.breadcrumbs_title"]
356 +/* translators: Hidden accessibility text. */,linkText:(0,Ce.__)("Learn more about the breadcrumbs title setting on our help page.","wordpress-seo")})});qi.propTypes={breadcrumbsTitle:ce().string.isRequired,onBreadcrumbsTitleChange:ce().func.isRequired};const Mi=({canonical:e,onCanonicalChange:t})=>(0,ue.jsx)(ae.LocationConsumer,{children:s=>(0,ue.jsx)(Tt.TextInput,{label:(0,Ce.__)("Canonical URL","wordpress-seo"),id:(0,Bt.join)(["yoast-canonical",s]),onChange:t,value:e,linkTo:"https://yoa.st/canonical-url"
357 +/* translators: Hidden accessibility text. */,linkText:(0,Ce.__)("Learn more about canonical URLs on our help page.","wordpress-seo")})});Mi.propTypes={canonical:ce().string.isRequired,onCanonicalChange:ce().func.isRequired};const Ni=({noIndex:e,canonical:t,onNoIndexChange:s,onCanonicalChange:o,onLoad:i,isLoading:r,editorContext:n,isBreadcrumbsDisabled:a,advanced:l=[],onAdvancedChange:d=c.noop,noFollow:p="",onNoFollowChange:u=c.noop,breadcrumbsTitle:h="",onBreadcrumbsTitleChange:g=c.noop,isPrivateBlog:m=!1})=>{(0,ne.useEffect)(()=>{setTimeout(()=>{r&&i()})});const y={noIndex:e,onNoIndexChange:s,editorContext:n,isPrivateBlog:m},w={noFollow:p,onNoFollowChange:u},f={advanced:l,onAdvancedChange:d},b={breadcrumbsTitle:h,onBreadcrumbsTitleChange:g},x={canonical:t,onCanonicalChange:o};return r?null:(0,ue.jsxs)(ne.Fragment,{children:[(0,ue.jsx)(Di,{...y}),n.isPost&&(0,ue.jsx)(Oi,{...w}),n.isPost&&(0,ue.jsx)(Fi,{...f}),!a&&(0,ue.jsx)(qi,{...b}),(0,ue.jsx)(Mi,{...x})]})};Ni.propTypes={noIndex:ce().string.isRequired,canonical:ce().string.isRequired,onNoIndexChange:ce().func.isRequired,onCanonicalChange:ce().func.isRequired,onLoad:ce().func.isRequired,isLoading:ce().bool.isRequired,editorContext:ce().object.isRequired,isBreadcrumbsDisabled:ce().bool.isRequired,isPrivateBlog:ce().bool,advanced:ce().array,onAdvancedChange:ce().func,noFollow:ce().string,onNoFollowChange:ce().func,breadcrumbsTitle:ce().string,onBreadcrumbsTitleChange:ce().func};const Ui=Ni,Wi=(0,xt.compose)([(0,a.withSelect)(e=>{const{getNoIndex:t,getNoFollow:s,getAdvanced:o,getBreadcrumbsTitle:i,getCanonical:r,getIsLoading:n,getEditorContext:a,getPreferences:l}=e("yoast-seo/editor"),{isBreadcrumbsDisabled:c,isPrivateBlog:d}=l();return{noIndex:t(),noFollow:s(),advanced:o(),breadcrumbsTitle:i(),canonical:r(),isLoading:n(),editorContext:a(),isBreadcrumbsDisabled:c,isPrivateBlog:d}}),(0,a.withDispatch)(e=>{const{setNoIndex:t,setNoFollow:s,setAdvanced:o,setBreadcrumbsTitle:i,setCanonical:r,loadAdvancedSettingsData:n}=e("yoast-seo/editor");return{onNoIndexChange:t,onNoFollowChange:s,onAdvancedChange:o,onBreadcrumbsTitleChange:i,onCanonicalChange:r,onLoad:n}})])(Ui),$i=window.yoast.relatedKeyphraseSuggestions;function Bi({requestLimitReached:e,isSuccess:t,response:s,requestHasData:o,relatedKeyphrases:i}){return e?"requestLimitReached":!t&&function(e){return"invalid_json"===(null==e?void 0:e.code)||"fetch_error"===(null==e?void 0:e.code)||!(0,c.isEmpty)(e)&&"error"in e}(s)?"requestFailed":o?function(e){return e&&e.length>=4}(i)?"maxRelatedKeyphrases":null:"requestEmpty"}function Ki({keyphrase:e="",relatedKeyphrases:t=[],renderAction:s=null,requestLimitReached:o=!1,countryCode:i,setCountry:r,newRequest:n,response:a={},isRtl:l=!1,userLocale:c="en_US",isPending:d=!1,isSuccess:p=!1,requestHasData:u=!0,isPremium:h=!1,semrushUpsellLink:g="",premiumUpsellLink:m=""}){var y,w;const[f,b]=(0,ne.useState)(i),x=(0,ne.useCallback)(async()=>{n(i,e),b(i)},[i,e,n]);return(0,ue.jsxs)(Pe.Root,{context:{isRtl:l},children:[!o&&!h&&(0,ue.jsx)($i.PremiumUpsell,{url:m,className:"yst-mb-4"}),!o&&(0,ue.jsx)($i.CountrySelector,{countryCode:i,activeCountryCode:f,onChange:r,onClick:x,className:"yst-mb-4",userLocale:c.split("_")[0]}),!d&&(0,ue.jsx)($i.UserMessage,{variant:Bi({requestLimitReached:o,isSuccess:p,response:a,requestHasData:u,relatedKeyphrases:t}),upsellLink:g}),(0,ue.jsx)($i.KeyphrasesTable,{relatedKeyphrases:t,columnNames:null==a||null===(y=a.results)||void 0===y?void 0:y.columnNames,data:null==a||null===(w=a.results)||void 0===w?void 0:w.rows,isPending:d,renderButton:s,className:"yst-mt-4"})]})}Ki.propTypes={keyphrase:ce().string,relatedKeyphrases:ce().array,renderAction:ce().func,requestLimitReached:ce().bool,countryCode:ce().string.isRequired,setCountry:ce().func.isRequired,newRequest:ce().func.isRequired,response:ce().object,isRtl:ce().bool,userLocale:ce().string,isPending:ce().bool,isSuccess:ce().bool,requestHasData:ce().bool,isPremium:ce().bool,semrushUpsellLink:ce().string,premiumUpsellLink:ce().string};const Hi=(0,xt.compose)([(0,a.withSelect)(e=>{const{getFocusKeyphrase:t,getSEMrushSelectedCountry:s,getSEMrushRequestLimitReached:o,getSEMrushRequestResponse:i,getSEMrushRequestIsSuccess:r,getSEMrushIsRequestPending:n,getSEMrushRequestHasData:a,getPreference:l,getIsPremium:c,selectLinkParams:d}=e("yoast-seo/editor");return{keyphrase:t(),countryCode:s(),requestLimitReached:o(),response:i(),isSuccess:r(),isPending:n(),requestHasData:a(),isRtl:l("isRtl",!1),userLocale:l("userLocale","en_US"),isPremium:c(),semrushUpsellLink:(0,kt.addQueryArgs)("https://yoa.st/semrush-prices",d()),premiumUpsellLink:(0,kt.addQueryArgs)("https://yoa.st/413",d())}}),(0,a.withDispatch)(e=>{const{setSEMrushChangeCountry:t,setSEMrushNewRequest:s}=e("yoast-seo/editor");return{setCountry:e=>{t(e)},newRequest:(e,t)=>{s(e,t)}}})])(Ki);var Vi=s(5547),Yi=s.n(Vi);const zi=pe().div`
358 + min-width: 600px;
359 +
360 + @media screen and ( max-width: 680px ) {
361 + min-width: 0;
362 + width: 86vw;
363 + }
364 +`,Gi=(pe().div`
365 + @media screen and ( min-width: 600px ) {
366 + max-width: 420px;
367 + }
368 +`,pe()(Tt.Icon)`
369 + float: ${(0,Bt.getDirectionalStyle)("right","left")};
370 + margin: ${(0,Bt.getDirectionalStyle)("0 0 16px 16px","0 16px 16px 0")};
371 +
372 + && {
373 + width: 150px;
374 + height: 150px;
375 +
376 + @media screen and ( max-width: 680px ) {
377 + width: 80px;
378 + height: 80px;
379 + }
380 + }
381 +`,window.moment);var Zi=s.n(Gi);async function Qi(e,t,s,o=200){try{const i=await e();return!!i&&(i.status===o?t(i):s(i))}catch(e){console.error(e.message)}}async function Xi(e){try{return await wt()(e)}catch(e){return e.error&&e.status?e:e instanceof Response&&await e.json()}}async function Ji(e){return(0,c.isArray)(e)||(e=[e]),await Xi({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:e}})}const er=({data:e,mapChartDataToTableData:t=null,dataTableCaption:s,dataTableHeaderLabels:o,isDataTableVisuallyHidden:i=!0})=>e.length!==o.length?(0,ue.jsx)("p",{children:(0,Ce.__)("The number of headers and header labels don't match.","wordpress-seo")}):(0,ue.jsx)("div",{className:i?"screen-reader-text":null,children:(0,ue.jsxs)("table",{children:[(0,ue.jsx)("caption",{children:s}),(0,ue.jsx)("thead",{children:(0,ue.jsx)("tr",{children:o.map((e,t)=>(0,ue.jsx)("th",{children:e},t))})}),(0,ue.jsx)("tbody",{children:(0,ue.jsx)("tr",{children:e.map((e,s)=>(0,ue.jsx)("td",{children:t(e.y)},s))})})]})});er.propTypes={data:ce().arrayOf(ce().shape({x:ce().number,y:ce().number})).isRequired,mapChartDataToTableData:ce().func,dataTableCaption:ce().string.isRequired,dataTableHeaderLabels:ce().array.isRequired,isDataTableVisuallyHidden:ce().bool};const tr=er,sr=({data:e,width:t,height:s,fillColor:o=null,strokeColor:i="#000000",strokeWidth:r=1,className:n="",mapChartDataToTableData:a=null,dataTableCaption:l,dataTableHeaderLabels:c,isDataTableVisuallyHidden:d=!0})=>{const p=Math.max(1,Math.max(...e.map(e=>e.x))),u=Math.max(1,Math.max(...e.map(e=>e.y))),h=s-r,g=e.map(e=>`${e.x/p*t},${h-e.y/u*h+r}`).join(" "),m=`0,${h+r} `+g+` ${t},${h+r}`;return(0,ue.jsxs)(ne.Fragment,{children:[(0,ue.jsxs)("svg",{width:t,height:s,viewBox:`0 0 ${t} ${s}`,className:n,role:"img","aria-hidden":"true",focusable:"false",children:[(0,ue.jsx)("polygon",{fill:o,points:m}),(0,ue.jsx)("polyline",{fill:"none",stroke:i,strokeWidth:r,strokeLinejoin:"round",strokeLinecap:"round",points:g})]}),a&&(0,ue.jsx)(tr,{data:e,mapChartDataToTableData:a,dataTableCaption:l,dataTableHeaderLabels:c,isDataTableVisuallyHidden:d})]})};sr.propTypes={data:ce().arrayOf(ce().shape({x:ce().number,y:ce().number})).isRequired,width:ce().number.isRequired,height:ce().number.isRequired,fillColor:ce().string,strokeColor:ce().string,strokeWidth:ce().number,className:ce().string,mapChartDataToTableData:ce().func,dataTableCaption:ce().string.isRequired,dataTableHeaderLabels:ce().array.isRequired,isDataTableVisuallyHidden:ce().bool};const or=sr,ir=()=>(0,ue.jsxs)("p",{className:"yoast-wincher-seo-performance-modal__loading-message",children:[(0,Ce.__)("Tracking the ranking position…","wordpress-seo")," ",(0,ue.jsx)(Tt.SvgIcon,{icon:"loading-spinner"})]}),rr=pe()(Tt.SvgIcon)`
382 + margin-left: 2px;
383 + flex-shrink: 0;
384 + rotate: ${e=>e.isImproving?"-90deg":"90deg"};
385 +`,nr=pe().span`
386 + color: ${e=>e.isImproving?"#69AB56":"#DC3332"};
387 + font-size: 13px;
388 + font-weight: 600;
389 + line-height: 20px;
390 + margin-right: 2px;
391 + margin-left: 12px;
392 +`,ar=pe().td`
393 + padding-right: 0 !important;
394 +
395 + & > div {
396 + margin: 0px;
397 + }
398 +`,lr=pe().td`
399 + padding-left: 2px !important;
400 +`,cr=pe().td.attrs({className:"yoast-table--nopadding"})`
401 + & > div {
402 + justify-content: center;
403 + }
404 +`,dr=pe().div`
405 + display: flex;
406 + align-items: center;
407 + & > a {
408 + box-sizing: border-box;
409 + }
410 +`,pr=pe().button`
411 + background: none;
412 + color: inherit;
413 + border: none;
414 + padding: 0;
415 + font: inherit;
416 + cursor: pointer;
417 + outline: inherit;
418 + display: flex;
419 + align-items: center;
420 +`,ur=pe().tr`
421 + background-color: ${e=>e.isEnabled?"#FFFFFF":"#F9F9F9"} !important;
422 +`;function hr(e){return Math.round(100*e)}function gr({chartData:e={}}){if((0,c.isEmpty)(e)||(0,c.isEmpty)(e.position))return"?";const t=function(e){return Array.from({length:e.position.history.length},(e,t)=>t+1).map(e=>(0,Ce.sprintf)((0,Ce._n)("%d day","%d days",e,"wordpress-seo"),e))}(e),s=e.position.history.map((e,t)=>({x:t,y:31-e.value}));return(0,ue.jsx)(or,{width:66,height:24,data:s,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",mapChartDataToTableData:hr,dataTableCaption:(0,Ce.__)("Keyphrase position in the last 90 days on a scale from 0 to 30.","wordpress-seo"),dataTableHeaderLabels:t})}function mr({keyphrase:e,isEnabled:t,toggleAction:s,isLoading:o}){return o?(0,ue.jsx)(Tt.SvgIcon,{icon:"loading-spinner"}):(0,ue.jsx)(Tt.Toggle,{id:`toggle-keyphrase-tracking-${e}`,className:"wincher-toggle",isEnabled:t,onSetToggleState:s,showToggleStateLabel:!1})}function yr(e){return!e||!e.position||e.position.value>30?"> 30":e.position.value}gr.propTypes={chartData:ce().object};const wr=({rowData:e={}})=>{var t;if(null==e||null===(t=e.position)||void 0===t||!t.change)return(0,ue.jsx)(gr,{chartData:e});const s=e.position.change<0;return(0,ue.jsxs)(ne.Fragment,{children:[(0,ue.jsx)(gr,{chartData:e}),(0,ue.jsx)(nr,{isImproving:s,children:Math.abs(e.position.change)}),(0,ue.jsx)(rr,{icon:"caret-right",color:s?"#69AB56":"#DC3332",size:"14px",isImproving:s})]})};function fr({rowData:e,websiteId:t,keyphrase:s,onSelectKeyphrases:o}){const i=(0,ne.useCallback)(()=>{o([s])},[o,s]),r=!(0,c.isEmpty)(e),n=e&&e.updated_at&&Zi()(e.updated_at)>=Zi()().subtract(7,"days"),a=e?`https://app.wincher.com/websites/${t}/keywords?serp=${e.id}&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast`:null;return r?n?(0,ue.jsxs)(ne.Fragment,{children:[(0,ue.jsx)("td",{children:(0,ue.jsxs)(dr,{children:[yr(e),(0,ue.jsx)(Tt.ButtonStyledLink,{variant:"secondary",href:a,style:{height:28,marginLeft:12},rel:"noopener",target:"_blank",children:(0,Ce.__)("View","wordpress-seo")})]})}),(0,ue.jsx)("td",{className:"yoast-table--nopadding",children:(0,ue.jsx)(pr,{type:"button",onClick:i,children:(0,ue.jsx)(wr,{rowData:e})})}),(0,ue.jsx)("td",{children:(l=e.updated_at,Zi()(l).fromNow())})]}):(0,ue.jsx)("td",{className:"yoast-table--nopadding",colSpan:"3",children:(0,ue.jsx)(ir,{})}):(0,ue.jsx)("td",{className:"yoast-table--nopadding",colSpan:"3",children:(0,ue.jsx)("i",{children:(0,Ce.__)("Activate tracking to show the ranking position","wordpress-seo")})});var l}function br({keyphrase:e,rowData:t={},onTrackKeyphrase:s=c.noop,onUntrackKeyphrase:o=c.noop,isFocusKeyphrase:i=!1,isDisabled:r=!1,isLoading:n=!1,websiteId:a="",isSelected:l,onSelectKeyphrases:d}){var p;const u=!(0,c.isEmpty)(t),h=!(0,c.isEmpty)(null==t||null===(p=t.position)||void 0===p?void 0:p.history),g=(0,ne.useCallback)(()=>{r||(u?o(e,t.id):s(e))},[e,s,o,u,t,r]),m=(0,ne.useCallback)(()=>{d(t=>l?t.filter(t=>t!==e):t.concat(e))},[d,l,e]);return(0,ue.jsxs)(ur,{isEnabled:u,children:[(0,ue.jsx)(ar,{children:h&&(0,ue.jsx)(Tt.Checkbox,{id:"select-"+e,onChange:m,checked:l,label:""})}),(0,ue.jsxs)(lr,{children:[e,i&&(0,ue.jsx)("span",{children:"*"})]}),fr({rowData:t,websiteId:a,keyphrase:e,onSelectKeyphrases:d}),(0,ue.jsx)(cr,{children:mr({keyphrase:e,isEnabled:u,toggleAction:g,isLoading:n})})]})}wr.propTypes={rowData:ce().object},br.propTypes={rowData:ce().object,keyphrase:ce().string.isRequired,onTrackKeyphrase:ce().func,onUntrackKeyphrase:ce().func,isFocusKeyphrase:ce().bool,isDisabled:ce().bool,isLoading:ce().bool,websiteId:ce().string,isSelected:ce().bool.isRequired,onSelectKeyphrases:ce().func.isRequired};const xr=(0,Bt.makeOutboundLink)(),_r=pe().span`
423 + display: block;
424 + font-style: italic;
425 +
426 + @media (min-width: 782px) {
427 + display: inline;
428 + position: absolute;
429 + ${(0,Bt.getDirectionalStyle)("right","left")}: 8px;
430 + }
431 +`,vr=pe().div`
432 + width: 100%;
433 + overflow-y: auto;
434 +`,kr=pe().th`
435 + pointer-events: ${e=>e.isDisabled?"none":"initial"};
436 + padding-right: 0 !important;
437 +
438 + & > div {
439 + margin: 0px;
440 + }
441 +`,Sr=pe().th`
442 + padding-left: 2px !important;
443 +`,Rr=e=>{const t=(0,ne.useRef)();return(0,ne.useEffect)(()=>{t.current=e}),t.current},Tr=({addTrackedKeyphrase:e,isLoggedIn:t=!1,isNewlyAuthenticated:s=!1,keyphrases:o=[],newRequest:i,removeTrackedKeyphrase:r,setRequestFailed:n,setKeyphraseLimitReached:a,setRequestSucceeded:l,setTrackedKeyphrases:d,setHasTrackedAll:p,trackAll:u=!1,trackedKeyphrases:h=null,websiteId:g="",permalink:m,focusKeyphrase:y="",startAt:w=null,selectedKeyphrases:f,onSelectKeyphrases:b})=>{const x=(0,ne.useRef)(),_=(0,ne.useRef)(),v=(0,ne.useRef)(!1),[k,S]=(0,ne.useState)([]),R=(0,ne.useCallback)(e=>{const t=e.toLowerCase();return h&&!(0,c.isEmpty)(h)&&Object.prototype.hasOwnProperty.call(h,t)?h[t]:null},[h]),T=(0,ne.useMemo)(()=>async()=>{await Qi(()=>{var e;return _.current&&_.current.abort(),_.current="undefined"==typeof AbortController?null:new AbortController,async function(e=null,t=null,s=null,o){return await Xi({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:e,permalink:s,startAt:t},signal:o})}(o,w,m,null===(e=_.current)||void 0===e?void 0:e.signal)},e=>{l(e),d(e.results)},e=>{n(e)})},[l,n,d,o,m,w]),E=(0,ne.useCallback)(async t=>{const s=(Array.isArray(t)?t:[t]).map(e=>e.toLowerCase());S(e=>[...e,...s]),await Qi(()=>Ji(s),t=>{l(t),e(t.results),T()},e=>{400===e.status&&e.limit&&a(e.limit),n(e)},201),S(e=>(0,c.without)(e,...s))},[l,n,a,e,T]),j=(0,ne.useCallback)(async(e,t)=>{e=e.toLowerCase(),S(t=>[...t,e]),await Qi(()=>async function(e){return await Xi({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:e}})}(t),t=>{l(t),r(e)},e=>{n(e)}),S(t=>(0,c.without)(t,e))},[l,r,n]),C=(0,ne.useCallback)(async e=>{i(),await E(e)},[i,E]),I=Rr(m),L=Rr(o),A=Rr(w),P=m&&w;(0,ne.useEffect)(()=>{t&&P&&(m!==I||(0,c.difference)(o,L).length||w!==A)&&T()},[t,m,I,o,L,T,P,w,A]),(0,ne.useEffect)(()=>{if(t&&u&&null!==h){const e=o.filter(e=>!R(e));e.length&&E(e),p()}},[t,u,h,E,p,R,o]),(0,ne.useEffect)(()=>{s&&!v.current&&(T(),v.current=!0)},[s,T]),(0,ne.useEffect)(()=>{if(t&&!(0,c.isEmpty)(h))return(0,c.filter)(h,e=>(0,c.isEmpty)(e.updated_at)).length>0&&(x.current=setInterval(()=>{T()},1e4)),()=>{clearInterval(x.current)}},[t,h,T]);const D=t&&null===h,O=(0,ne.useMemo)(()=>(0,c.isEmpty)(h)?[]:Object.values(h).filter(e=>{var t;return!(0,c.isEmpty)(null==e||null===(t=e.position)||void 0===t?void 0:t.history)}).map(e=>e.keyword),[h]),F=(0,ne.useMemo)(()=>f.length>0&&O.length>0&&O.every(e=>f.includes(e)),[f,O]),q=(0,ne.useCallback)(()=>{b(F?[]:O)},[b,F,O]),M=(0,ne.useMemo)(()=>(0,c.orderBy)(o,[e=>Object.values(h||{}).map(e=>e.keyword).includes(e)],["desc"]),[o,h]);return o&&!(0,c.isEmpty)(o)&&(0,ue.jsxs)(ne.Fragment,{children:[(0,ue.jsx)(vr,{children:(0,ue.jsxs)("table",{className:"yoast yoast-table",children:[(0,ue.jsx)("thead",{children:(0,ue.jsxs)("tr",{children:[(0,ue.jsx)(kr,{isDisabled:0===O.length,children:(0,ue.jsx)(Tt.Checkbox,{id:"select-all",onChange:q,checked:F,label:""})}),(0,ue.jsx)(Sr,{scope:"col",abbr:(0,Ce.__)("Keyphrase","wordpress-seo"),children:(0,Ce.__)("Keyphrase","wordpress-seo")}),(0,ue.jsx)("th",{scope:"col",abbr:(0,Ce.__)("Position","wordpress-seo"),children:(0,Ce.__)("Position","wordpress-seo")}),(0,ue.jsx)("th",{scope:"col",abbr:(0,Ce.__)("Position over time","wordpress-seo"),children:(0,Ce.__)("Position over time","wordpress-seo")}),(0,ue.jsx)("th",{scope:"col",abbr:(0,Ce.__)("Last updated","wordpress-seo"),children:(0,Ce.__)("Last updated","wordpress-seo")}),(0,ue.jsx)("th",{scope:"col",abbr:(0,Ce.__)("Tracking","wordpress-seo"),children:(0,Ce.__)("Tracking","wordpress-seo")})]})}),(0,ue.jsx)("tbody",{children:M.map((e,s)=>(0,ue.jsx)(br,{keyphrase:e,onTrackKeyphrase:C,onUntrackKeyphrase:j,rowData:R(e),isFocusKeyphrase:e===y.trim().toLowerCase(),websiteId:g,isDisabled:!t,isLoading:D||k.indexOf(e.toLowerCase())>=0,isSelected:f.includes(e),onSelectKeyphrases:b},`trackable-keyphrase-${s}`))})]})}),(0,ue.jsxs)("p",{style:{marginBottom:0,position:"relative"},children:[(0,ue.jsx)(xr,{href:wpseoAdminGlobalL10n["links.wincher.login"],children:(0,Ce.sprintf)(/* translators: %s expands to Wincher */ /* translators: %s expands to Wincher */
444 +(0,Ce.__)("Get more insights over at %s","wordpress-seo"),"Wincher")}),(0,ue.jsx)(_r,{children:(0,Ce.__)("* focus keyphrase","wordpress-seo")})]})]})};Tr.propTypes={addTrackedKeyphrase:ce().func.isRequired,isLoggedIn:ce().bool,isNewlyAuthenticated:ce().bool,keyphrases:ce().array,newRequest:ce().func.isRequired,removeTrackedKeyphrase:ce().func.isRequired,setRequestFailed:ce().func.isRequired,setKeyphraseLimitReached:ce().func.isRequired,setRequestSucceeded:ce().func.isRequired,setTrackedKeyphrases:ce().func.isRequired,setHasTrackedAll:ce().func.isRequired,trackAll:ce().bool,trackedKeyphrases:ce().object,websiteId:ce().string,permalink:ce().string.isRequired,focusKeyphrase:ce().string,startAt:ce().string,selectedKeyphrases:ce().arrayOf(ce().string).isRequired,onSelectKeyphrases:ce().func.isRequired};const Er=Tr,jr=(0,xt.compose)([(0,a.withSelect)(e=>{const{getWincherWebsiteId:t,getWincherTrackableKeyphrases:s,getWincherLoginStatus:o,getWincherPermalink:i,getFocusKeyphrase:r,isWincherNewlyAuthenticated:n,shouldWincherTrackAll:a}=e("yoast-seo/editor");return{focusKeyphrase:r(),keyphrases:s(),isLoggedIn:o(),trackAll:a(),websiteId:t(),isNewlyAuthenticated:n(),permalink:i()}}),(0,a.withDispatch)(e=>{const{setWincherNewRequest:t,setWincherRequestSucceeded:s,setWincherRequestFailed:o,setWincherSetKeyphraseLimitReached:i,setWincherTrackedKeyphrases:r,setWincherTrackingForKeyphrase:n,setWincherTrackAllKeyphrases:a,unsetWincherTrackingForKeyphrase:l}=e("yoast-seo/editor");return{newRequest:()=>{t()},setRequestSucceeded:e=>{s(e)},setRequestFailed:e=>{o(e)},setKeyphraseLimitReached:e=>{i(e)},addTrackedKeyphrase:e=>{n(e)},removeTrackedKeyphrase:e=>{l(e)},setTrackedKeyphrases:e=>{r(e)},setHasTrackedAll:()=>{a(!1)}}})])(Er);class Cr{constructor(e,t={},s={}){this.url=e,this.origin=new URL(e).origin,this.eventHandlers=Object.assign({success:{type:"",callback:()=>{}},error:{type:"",callback:()=>{}}},t),this.options=Object.assign({height:570,width:340,title:""},s),this.popup=null,this.createPopup=this.createPopup.bind(this),this.messageHandler=this.messageHandler.bind(this),this.getPopup=this.getPopup.bind(this)}createPopup(){const{height:e,width:t,title:s}=this.options,o=["top="+(window.top.outerHeight/2+window.top.screenY-e/2),"left="+(window.top.outerWidth/2+window.top.screenX-t/2),"width="+t,"height="+e,"resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(this.url,s,o.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}async messageHandler(e){const{data:t,source:s,origin:o}=e;o===this.origin&&this.popup===s&&(t.type===this.eventHandlers.success.type&&(this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),await this.eventHandlers.success.callback(t)),t.type===this.eventHandlers.error.type&&(this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),await this.eventHandlers.error.callback(t)))}getPopup(){return this.popup}isClosed(){return!this.popup||this.popup.closed}focus(){this.isClosed()||this.popup.focus()}}const Ir=()=>(0,ue.jsx)(Tt.Alert,{type:"info",children:(0,Ce.sprintf)(/* translators: %s: Expands to "Wincher". */ /* translators: %s: Expands to "Wincher". */
445 +(0,Ce.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher")}),Lr=()=>(0,ue.jsx)(Tt.Alert,{type:"success",children:(0,Ce.sprintf)(/* translators: %s: Expands to "Wincher". */ /* translators: %s: Expands to "Wincher". */
446 +(0,Ce.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher")}),Ar=()=>(0,ue.jsx)(Tt.Alert,{type:"info",children:(0,Ce.sprintf)(/* translators: %s: Expands to "Wincher". */ /* translators: %s: Expands to "Wincher". */
447 +(0,Ce.__)("%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")}),Pr=(0,Bt.makeOutboundLink)(),Dr=(0,Bt.makeOutboundLink)(),Or=()=>{const e=(0,Ce.sprintf)(/* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */ /* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */
448 +(0,Ce.__)("With %1$s you can track the ranking position of your page in the search results based on your keyphrase(s). %2$s","wordpress-seo"),"<wincherLink/>","<wincherReadMoreLink/>");return(0,ue.jsx)("p",{children:De(e,{wincherLink:(0,ue.jsx)(Pr,{href:wpseoAdminGlobalL10n["links.wincher.website"],children:"Wincher"}),wincherReadMoreLink:(0,ue.jsx)(Dr,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"],children:(0,Ce.__)("Read more about keyphrase tracking with Wincher","wordpress-seo")})})})},Fr=(0,Bt.makeOutboundLink)(),qr=({limit:e=10})=>{const t=(0,Ce.sprintf)(/* translators: %1$d expands to the amount of allowed keyphrases on a free account, %2$s expands to a link to Wincher plans. */ /* translators: %1$d expands to the amount of allowed keyphrases on a free account, %2$s expands to a link to Wincher plans. */
449 +(0,Ce.__)("You've reached the maximum amount of %1$d keyphrases you can add to your Wincher account. If you wish to add more keyphrases, please %2$s.","wordpress-seo"),e,"<UpdateWincherPlanLink/>");return(0,ue.jsx)(Tt.Alert,{type:"error",children:De(t,{UpdateWincherPlanLink:(0,ue.jsx)(Fr,{href:wpseoAdminGlobalL10n["links.wincher.pricing"],children:(0,Ce.sprintf)(/* translators: %s : Expands to "Wincher". */ /* translators: %s : Expands to "Wincher". */
450 +(0,Ce.__)("upgrade your %s plan","wordpress-seo"),"Wincher")})})})};qr.propTypes={limit:ce().number};const Mr=qr,Nr=()=>(0,ue.jsx)(Tt.Alert,{type:"error",children:(0,Ce.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo")}),Ur=()=>(0,ue.jsx)(Tt.Alert,{type:"error",children:(0,Ce.__)("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")}),Wr=({onReconnect:e,className:t=""})=>{const s=(0,Ce.sprintf)(/* translators: %s expands to a link to open the Wincher login popup. */ /* translators: %s expands to a link to open the Wincher login popup. */
451 +(0,Ce.__)("It seems like something went wrong when retrieving your website's data. Please %s and try again.","wordpress-seo"),"<reconnectToWincher/>","Wincher");return(0,ue.jsx)(Tt.Alert,{type:"error",className:t,children:De(s,{reconnectToWincher:(0,ue.jsx)("a",{href:"#",onClick:t=>{t.preventDefault(),e()},children:(0,Ce.sprintf)(/* translators: %s : Expands to "Wincher". */ /* translators: %s : Expands to "Wincher". */
452 +(0,Ce.__)("reconnect to %s","wordpress-seo"),"Wincher")})})})};Wr.propTypes={onReconnect:ce().func.isRequired,className:ce().string};const $r=Wr,Br=()=>(0,ue.jsx)(Tt.Alert,{type:"error",children:(0,Ce.__)("Something went wrong while tracking the ranking position(s) of your page. Please try again later.","wordpress-seo")}),Kr=pe().p`
453 + color: ${oo.colors.$color_pink_dark};
454 + font-size: 14px;
455 + font-weight: 700;
456 + margin: 13px 0 10px;
457 +`,Hr=pe()(Tt.SvgIcon)`
458 + margin-right: 5px;
459 + vertical-align: middle;
460 +`,Vr=pe().button`
461 + position: absolute;
462 + top: 9px;
463 + right: 9px;
464 + border: none;
465 + background: none;
466 + cursor: pointer;
467 +`,Yr=pe().p`
468 + font-size: 13px;
469 + font-weight: 500;
470 + margin: 10px 0 13px;
471 +`,zr=pe().div`
472 + position: relative;
473 + background: ${e=>e.isTitleShortened?"#f5f7f7":"transparent"};
474 + border: 1px solid #c7c7c7;
475 + border-left: 4px solid${oo.colors.$color_pink_dark};
476 + padding: 0 16px;
477 + margin-bottom: 1.5em;
478 +`,Gr=({limit:e,usage:t,isTitleShortened:s=!1,isFreeAccount:o=!1})=>{const i=(0,Ce.sprintf)(
479 +/* Translators: %1$s expands to the number of used keywords.
480 + * %2$s expands to the account keywords limit.
71 481 */
72 -"The %3$s will automatically be timestamped every time you %1$supdate%2$s or %1$spublish%2$s.","wordpress-seo"),"<b>","</b>",Object(oe.a)("current_post_type")),{b:Object(X.createElement)("b",null)})),Object(X.createElement)("div",{className:"yoast-wordproof-modal-action"},Object(X.createElement)(ie.NewButton,{variant:"primary",onClick:t},"Continue")))};le.propTypes={closeModal:ce.a.func.isRequired};var ue,pe=le;function de(){return(de=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function fe(e){return ne.createElement("svg",de({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 752 247",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",fill:"#fff",fillRule:"evenodd","aria-hidden":"true"},e),ue||(ue=ne.createElement("g",{stroke:"none",className:"connection-assistant_svg__B"},ne.createElement("path",{d:"M307.671 13.343C314.3 6.76 322.367.552 332.022-.127c5.029-.88 10.204-.124 15.012 1.447 3.588 1.147 6.294 3.893 8.763 6.605 3.333-1.582 7.09-1.837 10.73-1.803 3.35-.13 6.796.842 9.52 2.803 4.045 3.932 7.322 8.847 8.678 14.367.711 3.808 1.084 7.888-.22 11.616.824 2.334 4.61 2.746 3.96 5.628-.706 2.373-2.616 4.209-4.356 5.898l-.61.543c-2.532.644-4.605 2.203-5.888 4.474-.322-1.92-2.644-1.864-3.955-2.842-5.977-3.813-10.734-9.52-13.356-16.119-1.266-3.435-2.768-6.938-2.475-10.684-2.983.661-6 1.86-8.068 4.198-2.977 2.887-4.452 6.831-6.819 10.164-1.746 2.334-1.825 5.453-3.56 7.786-1.118 1.7-3 2.599-4.587 3.774 1.378.305 2.898.373 4.073 1.243 1.113.944.673 2.898-.632 3.424-2.255.288-4.577-.26-6.803.305-2.825.898-4.994 3.023-7.011 5.09-.91 1.035-2.61-.22-2.441-1.418-.192-1.406.955-2.412 1.66-3.48-2.7.898-5.525 1.21-8.316 1.593-1.508 1.243-2.819 2.763-4.022 4.306-1.537-1.345-3.057-3.22-5.34-2.91 1.204 1.7 2.86 2.989 4.475 4.271.249 5.39 1.774 10.594 3.271 15.74.616 2.266 2.52 3.809 4.334 5.137 3.542 2.22 7.497 3.74 10.995 6.022 1.819 3.029 3.35 6.255 4.469 9.616.559 1.373 1.005 3.046 2.503 3.684 4.638 2.6 9.808 4 14.712 6.006 3.955-2.068 7.695-4.52 11.531-6.791.616-.463 1.503-.785 1.718-1.605 1.056-3.847 1.74-7.785 2.746-11.638.74-2.645 2.96-4.447 4.706-6.436 2.266-2.65 5.565-4.457 7-7.774.255-5.853.294-11.746-.621-17.554 1.294-1.633 2.508-3.328 3.797-4.96.05 3.101.536 6.163.983 9.226.26 3.66.35 7.339.712 10.988.067.746.242 1.498.683 2.114 2.334 3.045 7.08 3.785 10.311 1.762-1 3.289-3.932 5.362-6.226 7.707-.073.655.237 1.271.396 1.898 1.096 2.554 1.163 5.752-1.164 7.65.943 2.051 1.689 4.322 1.14 6.6-.208 1.463-1.536 2.287-2.604 3.118.175 2.079 1.04 4.26.181 6.294-1.113 1.842-3.266 2.599-5.175 3.328-.413 1.66-.769 3.457-2.04 4.706-1.034 1.18-2.723 1.153-4.13 1.492-1.13 2.248-2.537 4.655-4.96 5.678-2.125.548-4.25-.34-6.34-.673-1.525 1.6-3.101 3.385-5.373 3.86-2.39.796-4.712-.6-6.78-1.645-1.638 1.215-3.423 2.6-5.599 2.334-2.344.146-3.972-1.633-5.53-3.074-2.12 1.08-4.566 2-6.945 1.198-2.209-.537-3.356-2.656-4.604-4.35-2.825-.029-5.978-.029-8.226-2.006-1.695-1.322-2.362-3.424-3.034-5.368-1.916-.305-4.142-.367-5.526-1.932-1.35-1.605-2.31-3.554-2.83-5.588-.566-2.305.638-4.497 1.028-6.723-.95-1.085-2.43-1.565-3.582-2.418-3.136-1.577-3.548-5.6-2.424-8.571-1.565-1.107-2.836-2.548-4.22-3.853 3.463-.023 7.056-1.904 8.028-5.424.847-2.21.802-4.616.599-6.938-.43-4.531-1.509-8.967-2.435-13.413-.464-2.074-3.023-2.011-4.447-3.136-2.265-1.644-4.593-4.119-4.102-7.147 1.125-1.881 3.102-3.266 3.47-5.56-2.792-4.276-1.882-9.565-.927-14.26 1.44-5.215 3.83-10.328 7.768-14.13zm22.78 19.356c-2.655 2.78-4.39 6.238-6.282 9.543 2.271-.904 3.955-2.808 5.661-4.492 3.656-3.966 7.775-8.073 9.006-13.509-3.254 2.35-5.746 5.475-8.384 8.458zm3.74 8.317c-1.027 1.621-2.383 2.989-3.423 4.599 3.955-2.147 7.057-6.271 7.373-10.82-1.61 1.882-2.469 4.25-3.95 6.221zm18.42 7.673c4.3-2.515 10.073-3.125 14.322-.136 1.492.588 2.13 2.848.605 3.774-1.396 1.102-2.74-.424-4.074-.797-3.864-1.028-7.786.543-11.108 2.435-.853-.457-2.045-1.017-1.994-2.163-.215-1.498 1.232-2.34 2.249-3.113z",fill:"#f17523"}),ne.createElement("path",{d:"M349.757 26.004c2.068-2.339 5.085-3.537 8.068-4.198-.293 3.746 1.21 7.25 2.475 10.684 2.622 6.6 7.379 12.306 13.356 16.12 1.311.977 3.633.92 3.955 2.841-2.084 2.876-4.356 5.622-6.361 8.554-1.899.644-3.809 1.266-5.78 1.656-1.402-4.707-7.797-6.023-11.47-3.193-.966.87-1.593 2.034-2.18 3.176-1.424-1.3-3.006-2.86-5.108-2.667-2.994.21-5.362 2.44-7.057 4.74-.796-2.859-3.43-5.13-6.452-5.09-3.893-.435-7.384 2.79-8.045 6.503-1.842.079-3.701.316-5.537.107-3.012-1.808-5.684-4.147-8.322-6.446 1.203-1.543 2.514-3.063 4.022-4.306 2.791-.384 5.616-.695 8.317-1.593-.706 1.068-1.853 2.074-1.661 3.48-.17 1.198 1.53 2.452 2.44 1.418 2.018-2.067 4.187-4.192 7.012-5.09 2.226-.565 4.548-.017 6.803-.305 1.305-.526 1.745-2.48.632-3.424-1.175-.87-2.695-.938-4.073-1.243 1.587-1.175 3.469-2.073 4.588-3.774 1.734-2.333 1.813-5.452 3.559-7.786 2.367-3.333 3.842-7.277 6.82-10.164zm2.853 22.685c-1.017.774-2.463 1.615-2.248 3.113-.051 1.147 1.141 1.706 1.994 2.164 3.322-1.893 7.243-3.464 11.108-2.435 1.333.372 2.678 1.898 4.074.796 1.525-.926.887-3.186-.605-3.774-4.249-2.989-10.023-2.379-14.322.136zm-22.158-15.99c2.638-2.983 5.13-6.107 8.384-8.458-1.232 5.436-5.35 9.543-9.006 13.51-1.706 1.683-3.39 3.587-5.661 4.491 1.893-3.305 3.627-6.763 6.283-9.543zm3.74 8.317c1.48-1.972 2.339-4.34 3.95-6.22-.317 4.548-3.419 8.672-7.374 10.819 1.04-1.61 2.396-2.978 3.424-4.599zm49.307 5.96l.61-.542c1.678-.53 3.339.921 4.09 2.34 2.656 4.208 3.39 9.44 2.367 14.271-1.04 3.509-2.638 7.503-6.508 8.616l-.085.266c-.44-.616-.616-1.368-.684-2.113-.361-3.65-.452-7.328-.711-10.99-.447-3.062-.933-6.124-.984-9.226a37.81 37.81 0 001.905-2.621zm-84.11 8.357c.542-.526 1.203-1.622 2.073-.893 1.424 1.125 3.983 1.062 4.447 3.136.926 4.446 2.005 8.882 2.435 13.413.203 2.322.248 4.729-.6 6.938-1.49-.243-3.044-.548-4.203-1.582-4.497-3.695-6.599-9.74-6.119-15.464.243-1.932.532-4.096 1.967-5.548zm74.019 5.085l4.39-5.86c.915 5.809.876 11.702.621 17.555-1.435 3.317-4.734 5.124-7 7.774-1.746 1.989-3.966 3.791-4.706 6.436-1.006 3.853-1.69 7.79-2.746 11.638-.215.82-1.102 1.142-1.718 1.605-3.836 2.271-7.576 4.723-11.531 6.791-4.904-2.006-10.074-3.407-14.712-6.006-1.498-.638-1.944-2.31-2.503-3.684-1.119-3.361-2.65-6.587-4.47-9.616-3.497-2.282-7.452-3.802-10.994-6.022-1.814-1.328-3.718-2.87-4.334-5.136-1.497-5.147-3.022-10.35-3.27-15.74 3.135 2.203 5.559 5.44 9.112 7.016 1.882.108 3.763-.056 5.645-.079.135 3.147 1.943 6.334 4.966 7.498 2.085.712 4.723.96 6.492-.627 2.322-1.786 3.164-4.78 3.435-7.577 1.768-2.05 3.3-4.723 6.147-5.367 2.35-.452 3.825 1.808 5.158 3.339-.17 2.4.678 4.774 2.187 6.627 2.83 3.656 9.644 2.729 11.283-1.633.841-1.74.66-3.717.683-5.593 2.181-.548 4.362-1.13 6.475-1.921.661-.215.96-.921 1.39-1.418zm-26.12 21.47c-2.717.372-5.231-1.865-7.96-1.244 2.011 1.955 4.678 3.424 7.401 4.029 3.158-.887 5.927-3 7.904-5.582-2.69.079-4.938 1.796-7.345 2.796zm13.577 1.423c-6.751 2.22-13.3 5.175-20.306 6.526.678.808 1.74.955 2.746.78 5.515-.78 10.65-3.029 15.876-4.831 1.69-.684 3.48-1.424 4.65-2.893-1.005.034-2.017.085-2.966.418zm43.905 73.37c2.842-.673 6.017-1.232 8.746.146 2.498 1.385 5.147 2.577 7.323 4.464 2.638 2.316 4.655 5.232 6.514 8.192 1.57 2.65 2.147 5.73 2.316 8.769.305 1.56.3 3.158.085 4.734-.503 3.752-.361 7.814-2.249 11.21-2.18 2.418-5.243 3.768-7.802 5.729-2.729 2.011-6.407 1.457-9.243-.023-2.497 2.56-7.198 3.983-10.046 1.226-2.09.3-4.096 1.407-6.248.96-1.718-.084-3.085-1.327-4.142-2.57-1.062-1.418-.232-3.181-.028-4.729 1.164-7.707 2.04-15.492 4.096-23.029-4.972.678-10.238 1.09-15.085-.458-1.746-.61-3.82-1.248-4.43-3.22-1.237-2.074-.395-5.136 2.09-5.752 3.905-.214 7.747 1.814 11.657 1.096 5.316-2.599 10.695-5.226 16.446-6.746zm-95.906 18.96c3.344-1.18 6.966-2.457 10.525-1.44 2.272 1.395 4.266 3.277 5.86 5.412 3.485 4.701 6.717 9.588 9.508 14.741.802 1.48 2.04 3.147 1.215 4.904-.746 2.068-3.147 2.356-5.029 2.622-1.938.339-3.345-1.322-4.446-2.656-3.627-4.887-6.232-10.672-10.921-14.684 2.463 4.226 4.7 8.594 6.616 13.102 1.005 2.385 1.231 4.99 2.067 7.419.673 1.542.385 3.598-1.27 4.372-2.357.61-4.837 1.097-7.278.78-1.215-.135-2.175-1.05-3.373-1.22-1.542.424-2.96 1.237-4.542 1.537-2.588.632-5.277-.13-7.87.497-2.882.678-5.877.101-8.594-.927-3.17-1.265-5.345-4.113-6.848-7.073a20.88 20.88 0 01-1.565-3.955 31.05 31.05 0 01-.367-8.916c.209-2.158 2.215-3.322 3.893-4.305 7.367-3.627 14.418-8.063 22.419-10.21z",fill:"#fccda3"}),ne.createElement("path",{d:"M377.611 51.451c1.283-2.27 3.356-3.83 5.888-4.474l-1.904 2.621-3.797 4.96-4.39 5.86c-.43.497-.73 1.203-1.39 1.418-2.113.79-4.294 1.373-6.475 1.92l-.073-2.095c1.972-.39 3.881-1.012 5.78-1.656 2.005-2.932 4.277-5.678 6.361-8.554zm-71.652 4.43c2.283-.31 3.803 1.565 5.34 2.91 2.638 2.3 5.31 4.638 8.322 6.446 1.836.21 3.695-.028 5.537-.107l.034 1.96c-1.882.023-3.763.187-5.645.08-3.553-1.577-5.977-4.814-9.113-7.018-1.616-1.282-3.271-2.57-4.475-4.271zm33.696 7.836c1.695-2.3 4.063-4.53 7.057-4.74 2.102-.192 3.684 1.367 5.108 2.667l-.43 2.712c-1.333-1.531-2.808-3.791-5.158-3.34-2.848.645-4.379 3.317-6.147 5.368l-.43-2.667z",fill:"#847972"}),ne.createElement("path",{d:"M354 58.468c3.673-2.83 10.069-1.514 11.47 3.193l.073 2.096c-.022 1.876.158 3.853-.683 5.593-1.639 4.362-8.453 5.289-11.283 1.633-1.509-1.853-2.356-4.226-2.187-6.627.096-.91.243-1.814.43-2.712.587-1.141 1.214-2.305 2.18-3.175zm5.181 5.888c-2.565 1.294-3.452 5.328-1.367 7.424 2.656 1.91 5.865-1.362 5.464-4.142.542-2.328-2.046-3.96-4.097-3.282zm-34.023.774c.66-3.712 4.152-6.938 8.045-6.503 3.023-.04 5.656 2.231 6.452 5.09.164.882.305 1.774.43 2.667-.272 2.797-1.113 5.791-3.435 7.577-1.769 1.587-4.407 1.338-6.492.627-3.023-1.164-4.83-4.35-4.966-7.498l-.034-1.96zm7.627 1.525c-3.034 1.486-2.842 7.368.955 7.644 3.424.006 4.977-4.508 3.345-7.141-1.074-1.141-2.984-1.401-4.3-.503zm27.77-.43c1.316-.615 1.779 2.153.316 1.848-.933.125-1.215-1.672-.317-1.847zm-25.889 2.26c.758-1.344 2.515.61 1.34 1.317-.82.95-1.712-.565-1.34-1.316z"}),ne.createElement("path",{d:"M359.181 64.356c2.051-.678 4.639.955 4.097 3.282.4 2.78-2.808 6.051-5.464 4.142-2.085-2.096-1.198-6.13 1.367-7.424zm1.373 1.87c-.898.175-.615 1.972.317 1.847 1.463.305 1-2.463-.317-1.847zm-27.769.43c1.316-.9 3.226-.64 4.3.502 1.633 2.633.079 7.147-3.345 7.141-3.797-.276-3.989-6.158-.955-7.644zm1.881 1.83c-.372.751.52 2.265 1.34 1.316 1.175-.706-.582-2.661-1.34-1.316zm337.48 82.296l79.115-9.526v4.74l-58.228 7.097-81.867 9.379L505.74 175.94c-10.77 1.684-21.623 2.718-32.437 4.023l-21.203 1.723c-7.447.469-14.877 1.401-22.346 1.3.215-1.577.22-3.176-.085-4.735 6.26.005 12.492-.616 18.735-1.068 11.984-1.006 24.024-1.605 35.928-3.407 14.955-1.3 29.724-4.102 44.606-5.994 47.645-6.385 95.432-11.656 143.208-17.001zm-299.213 21.696l6.074-1.176c4.848 1.549 10.113 1.136 15.085.458-2.056 7.537-2.932 15.323-4.096 23.029-3.695.814-7.424 1.463-11.13 2.226-.441-1.667-.718-3.379-1.238-5.023-1.938-.293-3.994.769-6.011.803-1.271-.034-3.328.672-3.91-.899-.621-.875.26-1.887 1.017-2.3 2.463-1.293 5.311-1.446 7.893-2.417l-1.446-5.854c-3.074.39-6.08 1.543-9.204 1.305-1.373-.491-1.525-2.678-.232-3.327 2.582-1.294 5.52-1.605 8.238-2.56l-1.04-4.265zm-47.685 7.135l15.334-2.005c2.164 7.717 3.509 15.639 4.684 23.56-6.916 1.69-13.955 2.915-21.007 3.892-.836-2.429-1.062-5.034-2.067-7.418-1.916-4.508-4.153-8.876-6.616-13.102 4.689 4.012 7.294 9.797 10.92 14.684 1.102 1.334 2.51 2.995 4.447 2.656 1.882-.266 4.283-.554 5.029-2.622.824-1.757-.413-3.424-1.215-4.904-2.791-5.153-6.023-10.04-9.509-14.74zM249.545 200.7c7.695-.706 15.447-.413 23.142-1.153 3.402-.3 6.814-.53 10.232-.474.379 1.367.915 2.689 1.565 3.955-3.361.118-6.723.31-10.062.706-8.43 1.118-16.955 1.079-25.425 1.785-12.045.989-24.153.554-36.204 1.458l-1.023.424c-.723-.356-1.525-.39-2.31-.328-10.165.763-20.363.435-30.55.593l-75.685.011c-27.877-.101-55.754.266-83.624-.305-6.701-.712-13.464-1.135-20.1-2.339v-2.904l18.964.69 25.99.112 140.653-.062c8.809-.005 17.634-.079 26.425-.52 12.639-1.163 25.368-.548 38.012-1.65z",fill:"#3e2723"}),ne.createElement("path",{d:"M347.288 81.887c2.407-1 4.656-2.717 7.345-2.796-1.977 2.582-4.746 4.695-7.904 5.582-2.723-.605-5.39-2.074-7.401-4.029 2.729-.621 5.243 1.616 7.96 1.243zm13.577 1.424c.95-.333 1.96-.384 2.966-.418-1.17 1.469-2.96 2.21-4.65 2.893-5.226 1.802-10.362 4.05-15.876 4.83-1.005.175-2.068.029-2.746-.78 7.006-1.35 13.554-4.305 20.306-6.525z",fill:"#dba378"}),ne.createElement("path",{d:"M388.453 83.294c10.408.7 20.865 1.057 31.16 2.893 14.006 2.57 27.938 5.548 41.797 8.842 4.837 1.073 9.47 2.864 14.159 4.435 3.277 1.136 6.633 2.074 9.757 3.616 5.537 2.678 11.684 4.31 16.526 8.26 5.61 4.215 9.52 10.385 11.944 16.905 1.859 6.474 1.367 13.43-.265 19.893-.701 4.198-2.684 8.17-5.594 11.271-3.684 3.56-8.107 6.227-12.373 9.012-3.446 2.356-7.43 3.695-11.232 5.356-11.904 1.802-23.944 2.401-35.928 3.407-6.243.452-12.475 1.073-18.735 1.068-.17-3.04-.745-6.12-2.316-8.769-1.859-2.96-3.876-5.876-6.514-8.192-2.176-1.887-4.825-3.08-7.323-4.464-2.729-1.378-5.904-.819-8.746-.146-5.751 1.52-11.13 4.147-16.446 6.745-3.91.718-7.752-1.31-11.656-1.096-2.486.616-3.328 3.678-2.09 5.752.61 1.972 2.683 2.61 4.429 3.22-2.045.294-4.063.74-6.074 1.176.367 1.412.712 2.836 1.04 4.265-2.718.955-5.656 1.266-8.238 2.56-1.294.65-1.141 2.836.232 3.327 3.124.238 6.13-.915 9.204-1.305.525 1.938.988 3.893 1.446 5.854-2.582.971-5.43 1.124-7.893 2.418-.757.412-1.639 1.424-1.017 2.3.582 1.57 2.639.864 3.91.898 2.017-.034 4.073-1.096 6.011-.803.52 1.644.797 3.356 1.238 5.023l11.13-2.226c-.204 1.548-1.034 3.31.028 4.729 1.057 1.243 2.424 2.486 4.142 2.57 2.152.447 4.158-.66 6.248-.96 2.848 2.757 7.549 1.334 10.046-1.226 2.836 1.48 6.514 2.034 9.243.023 2.56-1.96 5.622-3.311 7.802-5.73 1.888-3.395 1.746-7.457 2.25-11.209 7.468.102 14.898-.83 22.344-1.3.35 7.77 1.153 15.504 1.554 23.262-.028 4.14.757 8.226.785 12.361.187 9.718-.073 19.436-.05 29.148-65.155-.028-130.31.006-195.464-.017l.95-16.633c.112-5.08.05-10.158.073-15.238-6.588 1.707-13.487 2.034-20.25 1.498-9.808-.605-19.616-3.35-27.927-8.667l1.023-.424c12.051-.904 24.159-.47 36.204-1.458 8.47-.706 16.995-.667 25.425-1.785 3.339-.396 6.7-.588 10.062-.706 1.503 2.96 3.678 5.808 6.848 7.073 2.717 1.028 5.712 1.605 8.593.927 2.594-.627 5.283.135 7.87-.497 1.583-.3 3-1.113 4.543-1.537 1.198.17 2.158 1.085 3.373 1.22 2.44.317 4.921-.17 7.277-.78 1.656-.774 1.944-2.83 1.271-4.372 7.052-.978 14.091-2.204 21.007-3.893-1.175-7.921-2.52-15.843-4.684-23.56l-15.334 2.005c-1.593-2.135-3.587-4.017-5.859-5.412-3.56-1.017-7.18.26-10.525 1.44-8 2.147-15.052 6.583-22.42 10.21-1.677.983-3.683 2.147-3.892 4.305a31.05 31.05 0 00.367 8.916c-3.418-.057-6.83.175-10.232.474-7.695.74-15.447.447-23.142 1.153-12.644 1.102-25.373.486-38.012 1.65a63.323 63.323 0 00-5.48-.057c-4.289-4.35-7.035-10.006-8.283-15.95-.497-2.904.39-5.762 1.005-8.576 1.012-5.17 3.712-9.803 6.628-14.12 3.18-4.677 7.492-8.384 11.424-12.395 2.237-2.622 4.57-5.204 7.39-7.22 4.548-3.6 9.226-7.03 13.983-10.357 10.04-7.26 20.696-13.593 31.075-20.345 4.712-3.266 10.085-5.345 15.153-7.972 5.034-2.379 9.927-5.124 15.266-6.786a44.715 44.715 0 006.667-2.796c1.152.853 2.632 1.333 3.582 2.418-.39 2.226-1.594 4.418-1.029 6.723.52 2.034 1.48 3.983 2.83 5.588 1.385 1.565 3.611 1.627 5.527 1.932.672 1.944 1.339 4.046 3.034 5.368 2.248 1.977 5.4 1.977 8.226 2.005 1.248 1.695 2.395 3.814 4.604 4.35 2.379.803 4.825-.118 6.944-1.197 1.56 1.44 3.187 3.22 5.531 3.074 2.176.265 3.96-1.12 5.6-2.334 2.067 1.045 4.39 2.44 6.78 1.644 2.27-.474 3.847-2.26 5.372-3.859 2.09.334 4.215 1.22 6.34.673 2.423-1.023 3.83-3.43 4.96-5.678 1.407-.34 3.096-.311 4.13-1.492 1.271-1.249 1.627-3.045 2.04-4.706 1.91-.73 4.062-1.486 5.175-3.328.859-2.034-.006-4.215-.18-6.294 1.067-.83 2.395-1.656 2.604-3.119.548-2.277-.198-4.548-1.141-6.599 2.327-1.898 2.26-5.096 1.163-7.65z",fill:"#bf360c"}))))}var he=n(47),me=function(e){var t=e.closeModal,n=Object(X.useCallback)((function(e){t(),e.preventDefault(),Object(oe.c)()}));return Object(X.createElement)("div",null,Object(X.createElement)("div",{className:"yoast-wordproof-modal-image"},Object(X.createElement)(fe,{className:"yoast-wordproof-modal-svg__webhook-failed"})),Object(X.createElement)("div",null,Object(ee.__)("There was a connection problem. This could be because your third party connections are blocked.","wordpress-seo"),Object(X.createElement)("br",null),Object(he.a)(Object(ee.sprintf)(Object(ee.__)("Find possible solutions in this %1$sArticle%2$s.","wordpress-seo"),"<a>","</a>"),"https://help.wordproof.com/en/articles/4823201-how-do-i-whitelist-wordproof-in-cloudflare")),Object(X.createElement)("div",{className:"yoast-wordproof-modal-action"},Object(X.createElement)(ie.NewButton,{variant:"secondary",onClick:n},Object(ee.__)("Try again","wordpress-seo"))),Object(X.createElement)("div",null,Object(he.a)(Object(ee.sprintf)(// translators: %1$s and %2$s are replaced by opening and closing <a> tags. %3$s expands to WordProof.
73 -Object(ee.__)("Not working? %1$sContact %3$s support%2$s.","wordpress-seo"),"<a>","</a>","WordProof"),"https://help.wordproof.com")))};me.propTypes={closeModal:ce.a.func.isRequired};var be=me,ge=n(56);t.a=function(){var e=Object(X.useState)(null),t=J()(e,2),n=t[0],r=t[1],a=Object(X.useCallback)((function(){r("oauth:failed")})),o=Object(X.useCallback)((function(){r("webhook:failed")})),i=Object(X.useCallback)((function(){r("oauth:success")})),s=Object(X.useCallback)((function(){r(null)}));Object(X.useEffect)((function(){return window.addEventListener("wordproof:oauth:success",i,!1),window.addEventListener("wordproof:oauth:failed",a,!1),window.addEventListener("wordproof:webhook:failed",o,!1),function(){window.removeEventListener("wordproof:oauth:success",i,!1),window.removeEventListener("wordproof:oauth:failed",a,!1),window.removeEventListener("wordproof:webhook:failed",o,!1)}}),[]);var c=Object(X.useCallback)((function(){switch(n){case"webhook:failed":return Object(ee.__)("Connection failed","wordpress-seo");case"oauth:success":return Object(ee.__)("Connected to WordProof","wordpress-seo");default:return Object(ee.__)("WordProof authentication","wordpress-seo")}}));return Object(X.createElement)(X.Fragment,null,n&&Object(X.createElement)(ge.a,{onRequestClose:s,additionalClassName:"yoast-wordproof-modal",title:c()},"oauth:success"===n&&Object(X.createElement)(pe,{closeModal:s}),"oauth:failed"===n&&Object(X.createElement)(te,null),"webhook:failed"===n&&Object(X.createElement)(be,{closeModal:s})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(19),a=n.n(r),o=n(5),i=n.n(o),s=n(51),c=n(48),l=n(105),u=n(59),p=wp.data.dispatch;function d(){var e=p("wordproof"),t=e.setIsAuthenticated,n=e.setSelectedPostTypes,r=Object(c.a)("popup_redirect_authentication_url"),o=Object(c.a)("popup_redirect_settings_url"),d=null,f=function(e,t){(d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:800,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:680,o=e.top.outerHeight/2+e.top.screenY-a/2,i=e.top.outerWidth/2+e.top.screenX-r/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=".concat(r,",\n\t\theight=").concat(a,",\n\t\ttop=").concat(o,",\n\t\tleft=").concat(i))}(window,e,t))&&d.focus(),window.addEventListener("message",h,!1)},h=function(){var e=a()(i.a.mark((function e(t){var n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.data,r=t.source,t.origin===Object(c.a)("origin")&&d===r){e.next=3;break}return e.abrupt("return");case 3:e.t0=n.type,e.next="wordproof:oauth:granted"===e.t0?6:"wordproof:oauth:failed"===e.t0?13:"wordproof:oauth:denied"===e.t0?16:"wordproof:webhook:success"===e.t0?19:"wordproof:webhook:failed"===e.t0?22:"wordproof:settings:updated"===e.t0?25:"wordproof:oauth:destroy"===e.t0?30:"wordproof:oauth:retry"===e.t0?33:"wordproof:oauth:close"===e.t0?36:38;break;case 6:return e.next=8,g(n);case 8:if(e.t1=e.sent,!1!==e.t1){e.next=12;break}return e.next=12,m("wordproof:oauth:failed",!1);case 12:return e.abrupt("break",38);case 13:return e.next=15,m("wordproof:oauth:failed",!1);case 15:return e.abrupt("break",38);case 16:return e.next=18,m("wordproof:oauth:denied",!1);case 18:return e.abrupt("break",38);case 19:return e.next=21,m("wordproof:oauth:success",!0);case 21:return e.abrupt("break",38);case 22:return e.next=24,m("wordproof:webhook:failed",!1);case 24:return e.abrupt("break",38);case 25:return e.next=27,m("wordproof:settings:updated");case 27:return e.next=29,y(n);case 29:return e.abrupt("break",38);case 30:return e.next=32,m("wordproof:oauth:destroy",!1);case 32:return e.abrupt("break",38);case 33:return e.next=35,m("wordproof:open_authentication",!1);case 35:return e.abrupt("break",38);case 36:return b(),e.abrupt("break",38);case 38:case"end":return e.stop()}}),e)})));return function(_x){return e.apply(this,arguments)}}(),m=function(){var e=a()(i.a.mark((function e(n){var r,a=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=a.length>1&&void 0!==a[1]?a[1]:null,b(),Object(l.a)(n),!1!==r){e.next=7;break}return e.next=6,Object(s.b)();case 6:t(!1);case 7:!0===r&&t(!0);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),b=function(){window.removeEventListener("message",h,!1),d.close()},g=function(){var e=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(s.c)((function(){return Object(u.e)(t)}),function(){var e=a()(i.a.mark((function e(t){var n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={type:"wordproof:sdk:access-token",source_id:t.source_id},d.postMessage(n,Object(c.a)("origin")),e.abrupt("return",!0);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)}))));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),y=function(){var e=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(s.c)((function(){return Object(u.f)(t)}),a()(i.a.mark((function e(){var r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.settings).selectedPostTypes&&n(r.selectedPostTypes),e.abrupt("return",!0);case 3:case"end":return e.stop()}}),e)}))),a()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)}))));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();window.addEventListener("wordproof:open_authentication",(function(e){e.preventDefault(),f(r,"WordProof_Authentication")}),!1),window.addEventListener("wordproof:open_settings",(function(e){e.preventDefault(),f(o,"WordProof_Settings")}),!1)}},,,,,,function(e,t,n){"use strict";var r=n(7),a=n(23),o=n(0),i=n(2),s=n(1),c=n.n(s),l=n(27),u=n(113),p=n(56),d=n(123),f=n(94),h=n(95),m=n(111);function b(e){var t=e.keyphrases,n=e.onNoKeyphraseSet,r=e.onOpen,a=e.location;if(!t.length)return document.querySelector("#focus-keyword-input-sidebar").focus(),void n();r(a)}function g(e,t){Object(f.b)(t)&&e.onClose()}function y(e){var t=e.location,n=e.whichModalOpen,r=Object(o.useCallback)((function(){b(e)}),[b,e]),a=Object(o.useCallback)((function(t){g(e,t)}),[g,e]),s=Object(i.__)("Track SEO performance","wordpress-seo");return Object(o.createElement)(o.Fragment,null,n===t&&Object(o.createElement)(p.a,{title:s,onRequestClose:a,icon:Object(o.createElement)(d.a,null),additionalClassName:"yoast-wincher-seo-performance-modal"},Object(o.createElement)(u.a,{className:"yoast-gutenberg-modal__content yoast-wincher-seo-performance-modal__content"},Object(o.createElement)(m.a,null))),"sidebar"===t&&Object(o.createElement)(h.a,{id:"wincher-open-button-".concat(t),title:s,suffixIcon:{size:"20px",icon:"pencil-square"},prefixIcon:{icon:"chart-square-bar",color:l.colors.$color_grey_medium_dark},onClick:r}))}y.propTypes={location:c.a.string,whichModalOpen:c.a.oneOf(["none","metabox","sidebar","postpublish"])},y.defaultProps={location:"",whichModalOpen:"none"},t.a=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getWincherModalOpen;return{keyphrases:(0,t.getWincherTrackableKeyphrases)(),whichModalOpen:n()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setWincherOpenModal,r=t.setWincherDismissModal,a=t.setWincherNoKeyphrase;return{onOpen:function(e){n(e)},onClose:function(){r()},onNoKeyphraseSet:function(){a()}}}))])(y)},,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(7),a=n(3),o=n(32);function i(e,t){window.YoastSEO.analysis.worker.runResearch("readingTime",new o.Paper(e,{locale:t})).then((function(e){Object(r.dispatch)("yoast-seo/editor").setEstimatedReadingTime(e.result)}))}var s=Object(a.debounce)(i,1500,{maxWait:3e3}),c="",l="",u=null;function p(){var e=Object(r.select)("core/editor").getCurrentPostId(),t=Object(r.select)("core/editor").getCurrentPostType(),n=Object(r.select)("core").getEditedEntityRecord("postType",t,e);if(u!==n){u=n;var a=Object(r.select)("core/editor").getEditedPostAttribute("content"),o=Object(r.select)("yoast-seo/editor").getContentLocale();c===a&&l===o||(c=a,l=o,i(a,o))}}function d(){var e=Object(r.select)("yoast-seo/editor").getEditorDataContent(),t=Object(r.select)("yoast-seo/editor").getContentLocale();c===e&&l===t||(c=e,l=t,i(e,t))}function f(){var e,t,n;!1!==Object(a.get)(window,"wpseoScriptData.analysis.estimatedReadingTimeEnabled",!1)&&(Object(r.dispatch)("yoast-seo/editor").loadEstimatedReadingTime(),"1"===window.wpseoScriptData.isElementorEditor?Object(r.subscribe)(Object(a.debounce)(d,1500,{maxWait:3e3})):"1"===window.wpseoScriptData.isBlockEditor?Object(r.subscribe)(Object(a.debounce)(p,1500,{maxWait:3e3})):(e=["input","change","cut","paste"],t="1"===Object(a.get)(window,"wpseoScriptData.isPost","0")?"content":"description",n=Object(r.select)("yoast-seo/editor").getContentLocale(),jQuery(document).on("tinymce-editor-init",(function(r,a){a.id===t&&e.forEach((function(e){a.on(e,(function(){s(a.getContent(),n)}))}))}))))}},,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(19),a=n.n(r),o=n(5),i=n.n(o),s=n(59),c=n(48),l=n(1),u=n.n(l),p=n(105),d=function(e){var t=e.response,n=e.createSuccessNotice,r=e.createErrorNotice,a=e.postId;if(null!==t&&200!==t.status){var o={id:"wordproof-timestamp-notice"};if(t&&201===t.status)0===t.balance?(o.actions=[{label:Object(c.a)("translations.open_settings_button_text"),onClick:function(){Object(p.a)("wordproof:open_settings")},variant:"link"}],r(Object(c.a)("translations.no_balance"),o)):(n(Object(c.a)("translations.timestamp_success"),{type:"snackbar",id:"wordproof-timestamp-notice"}),f(a,t.hash,r,o));else if(t.error)switch(t.error){case"not_authenticated":o.type="snackbar",o.actions=[{label:Object(c.a)("translations.open_authentication_button_text"),onClick:function(){Object(p.a)("wordproof:open_authentication")},variant:"link"}],r(Object(c.a)("translations.not_authenticated"),o);break;case"timestamp_failed":default:r(Object(c.a)("translations.timestamp_failed"),o)}}},f=function(){var e=a()(i.a.mark((function e(t,n,r,o){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:setTimeout(a()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(s.c)(t);case 2:e.sent.hash!==n&&(o.type="snackbar",r(Object(c.a)("translations.webhook_failed"),o));case 4:case"end":return e.stop()}}),e)}))),1e4);case 1:case"end":return e.stop()}}),e)})));return function(_x,t,n,r){return e.apply(this,arguments)}}();d.proptypes={timestampResponse:u.a.any.isRequired,createSuccessNotice:u.a.func.isRequired,createErrorNotice:u.a.func.isRequired,postId:u.a.number.isRequired};var h=lodash.debounce,m=wp.hooks.applyFilters;function b(e,t,n){e(h(a()(i.a.mark((function e(){var r,a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!m("wordproof.timestamp",!0)){e.next=6;break}return r=Object(c.a)("current_post_id"),e.next=4,Object(s.g)(r);case 4:a=e.sent,d({response:a,createSuccessNotice:t,createErrorNotice:n,postId:r});case 6:case"end":return e.stop()}}),e)}))),500))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"authorFirstName",(function(){return be})),n.d(r,"authorLastName",(function(){return ge})),n.d(r,"currentDate",(function(){return ye})),n.d(r,"currentDay",(function(){return we})),n.d(r,"currentMonth",(function(){return ve})),n.d(r,"category",(function(){return Oe})),n.d(r,"categoryTitle",(function(){return je})),n.d(r,"currentYear",(function(){return Ee})),n.d(r,"date",(function(){return ke})),n.d(r,"excerpt",(function(){return xe})),n.d(r,"focusKeyphrase",(function(){return _e})),n.d(r,"id",(function(){return Te})),n.d(r,"modified",(function(){return Re})),n.d(r,"name",(function(){return Se})),n.d(r,"page",(function(){return Ce})),n.d(r,"pageNumber",(function(){return Pe})),n.d(r,"pageTotal",(function(){return Le})),n.d(r,"permalink",(function(){return De})),n.d(r,"postContent",(function(){return Ae})),n.d(r,"postDay",(function(){return Ie})),n.d(r,"postMonth",(function(){return qe})),n.d(r,"postYear",(function(){return Me})),n.d(r,"postTypeNamePlural",(function(){return Fe})),n.d(r,"postTypeNameSingular",(function(){return Ne})),n.d(r,"primaryCategory",(function(){return We})),n.d(r,"searchPhrase",(function(){return Ue})),n.d(r,"separator",(function(){return ze})),n.d(r,"siteDescription",(function(){return Ke})),n.d(r,"siteName",(function(){return Be})),n.d(r,"tag",(function(){return He})),n.d(r,"term404",(function(){return Ve})),n.d(r,"termDescription",(function(){return Ye})),n.d(r,"termHierarchy",(function(){return Ge})),n.d(r,"termTitle",(function(){return Ze})),n.d(r,"title",(function(){return Qe})),n.d(r,"userDescription",(function(){return Je}));var a={};n.r(a),n.d(a,"getAnalysisData",(function(){return Zt}));var o={};n.r(o),n.d(o,"updateData",(function(){return tn})),n.d(o,"loadSnippetEditorData",(function(){return nn}));var i=n(7),s=n(129),c=n(144),l=null,u=function(){if(null===l){var e=Object(i.dispatch)("yoast-seo/editor").runAnalysis;l=new c.a(e)}return l},p=function(e){return u()._ready(e)},d=function(e){return u()._reloaded(e)},f=function(e,t,n,r){return u()._registerModification(e,t,n,r)},h=function(e,t){return u()._registerPlugin(e,t)},m=function(e,t,n){return u().loaded?u()._applyModifications(e,t,n):t},b=n(46),g=n.n(b),y=n(16),w=n.n(y),v=n(5),O=n.n(v),j=n(3),E=n(32),k=n(112),x=n(76),_=n(92),T=n(130);function R(){return(R=w()(O.a.mark((function e(t,n){var r,a,o,s,c,l,u,p;return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.text,a=g()(n,["text"]),o=new E.Paper(r,a),e.prev=2,e.next=5,t.analyze(o);case 5:s=e.sent,c=s.result,l=c.seo,u=c.readability,l&&((p=l[""]).results=Object(_.sortResultsByIdentifier)(p.results),Object(i.dispatch)("yoast-seo/editor").setSeoResultsForKeyword(o.getKeyword(),p.results),Object(i.dispatch)("yoast-seo/editor").setOverallSeoScore(p.score,o.getKeyword())),u&&(u.results=Object(_.sortResultsByIdentifier)(u.results),Object(i.dispatch)("yoast-seo/editor").setReadabilityResults(u.results),Object(i.dispatch)("yoast-seo/editor").setOverallReadabilityScore(u.score)),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(2),Object(x.a)();case 14:case"end":return e.stop()}}),e,null,[[2,11]])})))).apply(this,arguments)}var S=Object(j.debounce)((function(_x,e){return R.apply(this,arguments)}),k.refreshDelay);function C(){var e=function(e){return e.title=m("data_page_title",e.title),e.title=m("title",e.title),e.description=m("data_meta_desc",e.description),e.text=m("content",e.text),e}((0,Object(i.select)("yoast-seo/editor").getAnalysisData)());return Object(s.applyFilters)("yoast.analysis.data",e)}var P=n(0),L=n(2),D=n(8),A=n(10),I=n.n(A),q=n(12),M=n.n(q),F=n(21),N=n.n(F),W=n(22),U=n.n(W),z=n(13),K=n.n(z);function B(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=K()(e);if(t){var a=K()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return U()(this,n)}}var H=function(e){N()(n,e);var t=B(n);function n(e,r,a){var o;return I()(this,n),(o=t.call(this)).hook=e,o.id=r,o.callback=a,o}return M()(n,[{key:"getCommand",value:function(){return this.hook}},{key:"getId",value:function(){return this.id}},{key:"apply",value:function(){return this.callback()}}]),n}($e.modules.hookUI.Base),V=function(e){N()(n,e);var t=B(n);function n(e,r,a){var o;return I()(this,n),(o=t.call(this)).hook=e,o.id=r,o.callback=a,o}return M()(n,[{key:"getCommand",value:function(){return this.hook}},{key:"getId",value:function(){return this.id}},{key:"apply",value:function(){return this.callback()}}]),n}($e.modules.hookData.Base);function Y(e,t,n){$e.hooks.registerUIAfter(new H(e,t,n))}var $=n(137),G=n(24),Z=n(132);function Q(){return Object(P.createElement)(G.Slot,{name:"YoastElementor"},(function(e){return Object(Z.a)(e)}))}var J=n(23),X=n(1),ee=n.n(X),te=n(131),ne=n(6);function re(e){return 0===e.message.length?null:Object(P.createElement)(ne.Alert,{type:e.type},e.message)}re.propTypes={message:ee.a.oneOfType([ee.a.array,ee.a.string]).isRequired,type:ee.a.string.isRequired};var ae=Object(i.withSelect)((function(e){return{message:(0,e("yoast-seo/editor").getWarningMessage)(),type:"info"}}))(re),oe=n(68),ie=n(41),se=n(89),ce=n(17),le=n.n(ce),ue=n(30),pe=n.n(ue),de=n(140),fe=n(124),he=n(60),me=n(9),be={name:"author_first_name",label:"Author first name",placeholder:"%%author_first_name%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_first_name","")},regexp:new RegExp("%%author_first_name%%","g")},ge={name:"author_last_name",label:"Author last name",placeholder:"%%author_last_name%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_last_name","")},regexp:new RegExp("%%author_last_name%%","g")},ye={name:"currentdate",label:"Current date",placeholder:"%%currentdate%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentdate","")},regexp:new RegExp("%%currentdate%%","g")},we={name:"currentday",label:"Current day",placeholder:"%%currentday%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentday","")},regexp:new RegExp("%%currentday%%","g")},ve={name:"currentmonth",label:"Current month",placeholder:"%%currentmonth%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentmonth","")},regexp:new RegExp("%%currentmonth%%","g")},Oe={name:"category",label:"Category",placeholder:"%%category%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category","")},regexp:new RegExp("%%category%%","g")},je={name:"category_title",label:"Category Title",placeholder:"%%category_title%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category_title","")},regexp:new RegExp("%%category_title%%","g")},Ee={name:"currentyear",label:"Current year",placeholder:"%%currentyear%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentyear","")},regexp:new RegExp("%%currentyear%%","g")},ke={name:"date",label:"Date",placeholder:"%%date%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.date","")},regexp:new RegExp("%%date%%","g")},xe={name:"excerpt",label:"Excerpt",placeholder:"%%excerpt%%",aliases:[{name:"excerpt_only",label:"Excerpt only",placeholder:"%%excerpt_only%%"}],getReplacement:function(){return Object(i.select)("yoast-seo/editor").getEditorDataExcerptWithFallback()},regexp:new RegExp("%%excerpt%%|%%excerpt_only%%","g")},_e={name:"focuskw",label:"Focus keyphrase",placeholder:"%%focuskw%%",aliases:[],getReplacement:function(){return Object(i.select)("yoast-seo/editor").getFocusKeyphrase()},regexp:new RegExp("%%focuskw%%|%%keyword%%","g")},Te={name:"id",label:"ID",placeholder:"%%id%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.id","")},regexp:new RegExp("%%id%%","g")},Re={name:"modified",label:"Modified",placeholder:"%%modified%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.modified","")},regexp:new RegExp("%%modified%%","g")},Se={name:"name",label:"Name",placeholder:"%%name%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.name","")},regexp:new RegExp("%%name%%","g")},Ce={name:"page",label:"Page",placeholder:"%%page%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.page","")},regexp:new RegExp("%%page%%","g")},Pe={name:"pagenumber",label:"Pagenumber",placeholder:"%%pagenumber%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagenumber","")},regexp:new RegExp("%%pagenumber%%","g")},Le={name:"pagetotal",label:"Pagetotal",placeholder:"%%pagetotal%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagetotal","")},regexp:new RegExp("%%pagetotal%%","g")},De={name:"permalink",label:"Permalink",placeholder:"%%permalink%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.permalink","")},regexp:new RegExp("%%permalink%%","g")},Ae={name:"post_content",label:"Post Content",placeholder:"%%post_content%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_content","")},regexp:new RegExp("%%post_content%%","g")},Ie={name:"post_day",label:"Post Day",placeholder:"%%post_day%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_day","")},regexp:new RegExp("%%post_day%%","g")},qe={name:"post_month",label:"Post Month",placeholder:"%%post_month%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_month","")},regexp:new RegExp("%%post_month%%","g")},Me={name:"post_year",label:"Post Year",placeholder:"%%post_year%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_year","")},regexp:new RegExp("%%post_year%%","g")},Fe={name:"pt_plural",label:"Post type (plural)",placeholder:"%%pt_plural%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_plural","")},regexp:new RegExp("%%pt_plural%%","g")},Ne={name:"pt_single",label:"Post type (singular)",placeholder:"%%pt_single%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_single","")},regexp:new RegExp("%%pt_single%%","g")},We={name:"primary_category",label:"Primary category",placeholder:"%%primary_category%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.primary_category","")},regexp:new RegExp("%%primary_category%%","g")},Ue={name:"searchphrase",label:"Search phrase",placeholder:"%%searchphrase%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.searchphrase","")},regexp:new RegExp("%%searchphrase%%","g")},ze={name:"sep",label:"Separator",placeholder:"%%sep%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sep","")},regexp:new RegExp("%%sep%%(\\s*%%sep%%)*","g")},Ke={name:"sitedesc",label:"Tagline",placeholder:"%%sitedesc%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitedesc","")},regexp:new RegExp("%%sitedesc%%","g")},Be={name:"sitename",label:"Site title",placeholder:"%%sitename%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitename","")},regexp:new RegExp("%%sitename%%","g")},He={name:"tag",label:"Tag",placeholder:"%%tag%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.tag","")},regexp:new RegExp("%%tag%%","g")},Ve={name:"term404",label:"Term404",placeholder:"%%term404%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term404","")},regexp:new RegExp("%%term404%%","g")},Ye={name:"term_description",label:"Term description",placeholder:"%%term_description%%",aliases:[{name:"tag_description",label:"Tag description",placeholder:"%%tag_description%%"},{name:"category_description",label:"Category description",placeholder:"%%category_description%%"}],getReplacement:function(){return Object(j.get)(window,"YoastSEO.app.rawData.text","")},regexp:new RegExp("%%term_description%%|%%tag_description%%|%%category_description%%","g")},Ge={name:"term_hierarchy",label:"Term hierarchy",placeholder:"%%term_hierarchy%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_hierarchy","")},regexp:new RegExp("%%term_hierarchy%%","g")},Ze={name:"term_title",label:"Term title",placeholder:"%%term_title%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_title","")},regexp:new RegExp("%%term_title%%","g")},Qe={name:"title",label:"Title",placeholder:"%%title%%",aliases:[],getReplacement:function(){return Object(i.select)("yoast-seo/editor").getEditorDataTitle()},regexp:new RegExp("%%title%%","g")},Je={name:"user_description",label:"User description",placeholder:"%%user_description%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.user_description","")},regexp:new RegExp("%%user_description%%","g")},Xe=n(36),et=null,tt=null,nt=function(e){["content","title","snippet_title","snippet_meta","primary_category","data_page_title","data_meta_desc","excerpt"].forEach((function(t){f(t,e,"replaceVariablePlugin",10)}))},rt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(""===e&&(e=Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.scope","")),e){case"post":case"page":return["authorFirstName","authorLastName","category","categoryTitle","currentDate","currentDay","currentMonth","currentYear","date","excerpt","id","focusKeyphrase","modified","name","page","primaryCategory","pageNumber","pageTotal","permalink","postContent","postDay","postMonth","postYear","postTypeNamePlural","postTypeNameSingular","searchPhrase","separator","siteDescription","siteName","tag","title","userDescription"]}return[]},at=function(e){return nt((function(t){return t.replace(new RegExp(e.placeholder,"g"),e.replacement)}))},ot=function(){if(null===tt){tt=[];var e=Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.hidden_replace_vars",[]);(null===et&&(et=rt().map((function(e){return r[e]}))),et).forEach((function(t){var n=e.includes(t.name);tt.push({name:t.name,label:t.label,value:t.placeholder,hidden:n}),t.aliases.forEach((function(e){tt.push({name:e.name,label:e.label,value:e.placeholder,hidden:n})}))}))}return tt};var it=me.strings.stripHTMLTags,st=function(e,t){var n=Object(i.select)("yoast-seo/editor").getSnippetEditorTemplates();""===e.title&&(e.title=n.title),""===e.description&&(e.description=n.description);var r=0;return t.shortenedBaseUrl&&"string"==typeof t.shortenedBaseUrl&&(r=t.shortenedBaseUrl.length),e.url=e.url.replace(/\s+/g,"-"),"-"===e.url[e.url.length-1]&&(e.url=e.url.slice(0,-1)),"-"===e.url[r]&&(e.url=e.url.slice(0,r)+e.url.slice(r+1)),{url:e.url,title:it(m("data_page_title",e.title)),description:it(m("data_meta_desc",e.description))}},ct=function(e){var t=e.isLoading,n=e.onLoad,r=e.location,a=g()(e,["isLoading","onLoad","location"]);return Object(P.useEffect)((function(){setTimeout((function(){t&&n()}))})),t?null:Object(P.createElement)(fe.a,{icon:"eye",hasPaperStyle:a.hasPaperStyle},Object(P.createElement)(de.SnippetEditor,pe()({},a,{descriptionPlaceholder:Object(L.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:st,showCloseButton:!1,idSuffix:r})))};ct.propTypes={isLoading:ee.a.bool.isRequired,onLoad:ee.a.func.isRequired,hasPaperStyle:ee.a.bool.isRequired,location:ee.a.string.isRequired};var lt=Object(J.compose)([Object(i.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getBaseUrlFromSettings,r=t.getDateFromSettings,a=t.getEditorDataImageUrl,o=t.getFocusKeyphrase,i=t.getRecommendedReplaceVars,s=t.getSiteIconUrlFromSettings,c=t.getSnippetEditorData,l=t.getSnippetEditorIsLoading,u=t.getSnippetEditorMode,p=t.getSnippetEditorWordsToHighlight,d=t.isCornerstoneContent,f=t.getContentLocale;return{baseUrl:n(),data:c(),date:r(),faviconSrc:s(),isLoading:l(),keyword:o(),mobileImageSrc:a(),mode:u(),recommendedReplacementVariables:i(),replacementVariables:ot(),wordsToHighlight:p(),isCornerstone:d(),locale:f()}})),Object(i.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.updateData,r=t.switchMode,a=t.updateAnalysisData;return{onChange:function(e,t){switch(e){case"mode":r(t);break;case"slug":n({slug:t});break;default:n(le()({},e,t))}},onChangeAnalysisData:function(e){a(e)},onLoad:t.loadSnippetEditorData}})),Object(he.a)()])(ct),ut=function(){return Object(P.createElement)(se.a,{title:Object(L.__)("Google preview","wordpress-seo"),id:"yoast-google-preview-modal"},Object(P.createElement)(lt,{showCloseButton:!1,hasPaperStyle:!1}))},pt=n(141),dt=n(26),ft=n(53),ht=function(){Object(ft.b)((function(e){return Object(i.dispatch)("yoast-seo/editor").setTwitterPreviewImage(Object(ft.d)(e))}))},mt=Object(J.compose)([Object(i.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getTwitterDescription,r=t.getTwitterTitle,a=t.getTwitterImageUrl,o=t.getFacebookImageUrl,i=t.getFacebookTitle,s=t.getFacebookDescription,c=t.getDescription,l=t.getSeoTitle,u=t.getTwitterWarnings,p=t.getTwitterImageType,d=t.getEditorDataImageFallback,f=t.getRecommendedReplaceVars,h=t.getSiteUrl,m=t.getSeoTitleTemplate,b=t.getSeoTitleTemplateNoFallback,g=t.getSocialTitleTemplate,y=t.getSeoDescriptionTemplate,w=t.getSocialDescriptionTemplate,v=t.getEditorDataExcerptWithFallback,O=t.getTwitterAltText;return{imageUrl:a(),imageFallbackUrl:o()||d(),recommendedReplacementVariables:f(),replacementVariables:ot(),description:n(),descriptionPreviewFallback:w()||s()||c()||y()||v()||"",title:r(),titlePreviewFallback:g()||i()||l()||b()||m()||"",imageWarnings:u(),siteUrl:h(),isPremium:!!Object(dt.a)().isPremium,isLarge:"summary"!==p(),titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Twitter",alt:O()}})),Object(i.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setTwitterPreviewTitle,r=t.setTwitterPreviewDescription,a=t.clearTwitterPreviewImage,o=t.loadTwitterPreviewData;return{onSelectImageClick:ht,onRemoveImageClick:a,onDescriptionChange:r,onTitleChange:n,onLoad:o}})),Object(he.a)()])(pt.a),bt=function(){return Object(P.createElement)(se.a,{title:Object(L.__)("Twitter preview","wordpress-seo"),id:"yoast-twitter-preview-modal"},Object(P.createElement)(mt,null))},gt=n(142),yt=function(){Object(ft.b)((function(e){return Object(i.dispatch)("yoast-seo/editor").setFacebookPreviewImage(Object(ft.c)(e))}))},wt=Object(J.compose)([Object(i.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getFacebookDescription,r=t.getDescription,a=t.getFacebookTitle,o=t.getSeoTitle,i=t.getFacebookImageUrl,s=t.getEditorDataImageFallback,c=t.getFacebookWarnings,l=t.getRecommendedReplaceVars,u=t.getSiteUrl,p=t.getSeoTitleTemplate,d=t.getSeoTitleTemplateNoFallback,f=t.getSocialTitleTemplate,h=t.getSeoDescriptionTemplate,m=t.getSocialDescriptionTemplate,b=t.getEditorDataExcerptWithFallback,g=t.getFacebookAltText;return{imageUrl:i(),imageFallbackUrl:s(),recommendedReplacementVariables:l(),replacementVariables:ot(),description:n(),descriptionPreviewFallback:m()||r()||h()||b()||"",title:a(),titlePreviewFallback:f()||o()||d()||p()||"",imageWarnings:c(),siteUrl:u(),isPremium:!!Object(dt.a)().isPremium,titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Facebook",alt:g()}})),Object(i.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setFacebookPreviewTitle,r=t.setFacebookPreviewDescription,a=t.clearFacebookPreviewImage,o=t.loadFacebookPreviewData;return{onSelectImageClick:yt,onRemoveImageClick:a,onDescriptionChange:r,onTitleChange:n,onLoad:o}})),Object(he.a)()])(gt.a),vt=function(){return Object(P.createElement)(se.a,{title:Object(L.__)("Facebook preview","wordpress-seo"),id:"yoast-facebook-preview-modal"},Object(P.createElement)(wt,null))},Ot=n(85),jt=n(136),Et=n(135),kt=n(126),xt=n(157),_t=n(49),Tt=n(150);function Rt(e){var t=e.isLoading,n=e.onLoad,r=e.settings;return Object(P.useEffect)((function(){setTimeout((function(){t&&n()}))})),t?null:Object(P.createElement)(P.Fragment,null,Object(_t.b)()&&Object(P.createElement)(Tt.a,null),Object(P.createElement)(G.Fill,{name:"YoastElementor"},Object(P.createElement)(ie.a,{renderPriority:1},Object(P.createElement)(ae,null)),r.isKeywordAnalysisActive&&Object(P.createElement)(ie.a,{renderPriority:8},Object(P.createElement)(oe.KeywordInput,{isSEMrushIntegrationActive:r.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&Object(P.createElement)(G.Fill,{name:"YoastRelatedKeyphrases"},Object(P.createElement)(kt.a,null))),Object(P.createElement)(ie.a,{renderPriority:23},Object(P.createElement)(ut,null)),r.displayFacebook&&Object(P.createElement)(ie.a,{renderPriority:24},Object(P.createElement)(vt,null)),r.displayTwitter&&Object(P.createElement)(ie.a,{renderPriority:25},Object(P.createElement)(bt,null)),r.displaySchemaSettings&&Object(P.createElement)(ie.a,{renderPriority:26},Object(P.createElement)(Ot.a,{title:Object(L.__)("Schema","wordpress-seo")},Object(P.createElement)(jt.a,null))),r.displayAdvancedTab&&Object(P.createElement)(ie.a,{renderPriority:27},Object(P.createElement)(Ot.a,{title:Object(L.__)("Advanced","wordpress-seo")},Object(P.createElement)(Et.a,{location:"sidebar"}))),r.isContentAnalysisActive&&Object(P.createElement)(ie.a,{renderPriority:10},Object(P.createElement)(oe.ReadabilityAnalysis,null)),r.isKeywordAnalysisActive&&Object(P.createElement)(ie.a,{renderPriority:20},Object(P.createElement)(oe.SeoAnalysis,{shouldUpsell:r.shouldUpsell,shouldUpsellWordFormRecognition:r.isWordFormRecognitionActive})),r.isKeywordAnalysisActive&&r.isWincherIntegrationActive&&Object(P.createElement)(ie.a,{key:"wincher-seo-performance",renderPriority:21},Object(P.createElement)(xt.a,{location:"sidebar"})),r.isCornerstoneActive&&Object(P.createElement)(ie.a,{renderPriority:30},Object(P.createElement)(te.a,null))))}Rt.propTypes={isLoading:ee.a.bool.isRequired,onLoad:ee.a.func.isRequired,settings:ee.a.object.isRequired};var St,Ct=Object(J.compose)([Object(i.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getPreferences,r=t.getSnippetEditorIsLoading;return{settings:n(),isLoading:r()}})),Object(i.withDispatch)((function(e){return{onLoad:e("yoast-seo/editor").loadSnippetEditorData}}))])(Rt),Pt=!1;function Lt(e){e.oldValue=e.value}function Dt(){St.forEach((function(e){return Lt(e)}))}var At=Object(j.debounce)((function(){var e;Pt&&(
74 -/* Translators: %1$s translates to the Post Label in singular form */
75 -e=Object(L.sprintf)(Object(L.__)("Unfortunately we cannot save changes to your SEO settings while you are working on a draft of an already-published %1$s. If you want to save your SEO changes, make sure to click 'Update', or wait to make your SEO changes until you are ready to update the %1$s.","wordpress-seo"),window.wpseoAdminL10n.postTypeNameSingular.toLowerCase())),"draft"===window.elementor.settings.page.model.get("post_status")&&(e=""),Object(i.dispatch)("yoast-seo/editor").setWarningMessage(e)}),500,{trailing:!0});function It(e){"yoast_wpseo_linkdex"!==e.name&&"yoast_wpseo_content_score"!==e.name&&"yoast_wpseo_words_for_linking"!==e.name&&e.value!==e.oldValue&&(Pt=!0,At(),window.$e.internal("document/save/set-is-modified",{status:!0}),Lt(e))}function qt(e){Pt=!1;var t=jQuery(e).serializeArray().reduce((function(e,t){var n=t.name,r=t.value;return e[n]=r,e}),{});jQuery.post(e.getAttribute("action"),t,(function(e,n,r){var a=e.success,o=e.data;a?(Object(s.doAction)("yoast.elementor.save.success",r),o.slug&&o.slug!==t.slug&&Object(i.dispatch)("yoast-seo/editor").updateData({slug:o.slug}),Dt(),At()):Pt=!0}))}function Mt(){setTimeout((function(){Object($.b)("elementor-panel-page-settings-controls",Object(P.createElement)(D.StyleSheetManager,{target:document.getElementById("elementor-panel-inner")},Object(P.createElement)("div",{className:"yoast yoast-elementor-panel__fills"},Object(P.createElement)(Q,null),Object(P.createElement)(Ct,null))))}),200)}function Ft(){window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=$.a,window.elementor.settings.page.model.on("change",(function(e){e.changed&&e.changed.post_status&&At()}));var e,t=qt.bind(null,document.getElementById("yoast-form"));e=function(){window.elementor.config.document.id===window.elementor.config.document.revisions.current_id&&t()},$e.hooks.registerDataAfter(new V("document/save/save","yoast-seo-save",e)),window.elementor.modules.layouts.panel.pages.menu.Menu.addItem({name:"yoast",icon:"yoast yoast-element-menu-icon",title:"Yoast SEO",type:"page",callback:function(){try{window.$e.route("panel/page-settings/yoast-tab")}catch(e){window.$e.route("panel/page-settings/settings"),window.$e.route("panel/page-settings/yoast-tab")}Mt()}},"more"),jQuery(document).on("click",'[data-tab="yoast-tab"]:not(.elementor-active) > a',Mt),St=document.querySelectorAll("input[name^='yoast']"),Dt(),setInterval((function(){return St.forEach(It)}),500)}var Nt=n(169),Wt=n(20),Ut=n(96),zt=Wt.selectors.getBaseUrlFromSettings,Kt=Wt.selectors.getContentLocale,Bt=Wt.selectors.getEditorDataContent,Ht=Wt.selectors.getFocusKeyphrase,Vt=Wt.selectors.getSnippetEditorDescriptionWithTemplate,Yt=Wt.selectors.getSnippetEditorSlug,$t=Wt.selectors.getSnippetEditorTitleWithTemplate,Gt=Wt.selectors.getDateFromSettings,Zt=function(e){var t=$t(e),n=Vt(e),r=Yt(e),a=zt(e);return t=me.strings.stripHTMLTags(m("data_page_title",t)),n=me.strings.stripHTMLTags(m("data_meta_desc",n)),r=r.trim().replace(/\s+/g,"-"),{text:Bt(e),title:t,keyword:Ht(e),description:n,locale:Kt(e),titleWidth:Object(Ut.a)(t),url:r,permalink:a+r,date:Gt(e)}},Qt=n(145),Jt=function(){function e(){I()(this,e)}return M()(e,null,[{key:"titleElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_title":"hidden_wpseo_title")}},{key:"descriptionElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_metadesc":"hidden_wpseo_desc")}},{key:"slugElement",get:function(){return document.getElementById("yoast_wpseo_slug")}},{key:"title",get:function(){return e.titleElement.value},set:function(t){e.titleElement.value=t}},{key:"description",get:function(){return e.descriptionElement.value},set:function(t){e.descriptionElement.value=t}},{key:"slug",get:function(){return e.slugElement.value},set:function(t){e.slugElement.value=t}}]),e}(),Xt=Wt.actions.UPDATE_DATA,en=Wt.actions.LOAD_SNIPPET_EDITOR_DATA;function tn(e){if(e.hasOwnProperty("title")){var t=e.title;e.title===Object(j.get)(window,"wpseoScriptData.metabox.title_template","")&&(t=""),Jt.title=t}if(e.hasOwnProperty("description")){var n=e.description;e.description===Object(j.get)(window,"wpseoScriptData.metabox.metadesc_template","")&&(n=""),Jt.description=n}return e.hasOwnProperty("slug")&&(Jt.slug=e.slug),{type:Xt,data:e}}var nn=function(){var e=Object(j.get)(window,"wpseoScriptData.metabox.title_template",""),t=Object(j.get)(window,"wpseoScriptData.metabox.metadesc_template","");return{type:en,data:{title:Jt.title||e,description:Jt.description||t,slug:Jt.slug},templates:{title:e,description:t}}};function rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function an(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(n),!0).forEach((function(t){le()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var on=n(146),sn={content:"",title:"",excerpt:"",slug:"",imageUrl:""};function cn(e){var t=window.elementor.settings.page.model.get("post_featured_image"),n=Object(j.get)(t,"url","");return""===n?function(e){var t=E.languageProcessing.imageInText(e),n="";if(0===t.length)return"";do{var r=t.shift(),a=(r=jQuery(r)).prop("src");a&&(n=a)}while(""===n&&t.length>0);return n}(e):n}var ln=Object(j.debounce)((function(){var e=window.elementor.documents.getCurrent();if(["wp-post","wp-page"].includes(e.config.type)){var t,n={content:t=function(e){var t=[];return e.$element.find(".elementor-widget-container").each((function(e,n){t.push(n.innerHTML.trim())})),t.join("")}(e),title:window.elementor.settings.page.model.get("post_title"),excerpt:window.elementor.settings.page.model.get("post_excerpt")||"",imageUrl:cn(t)};n.content!==sn.content&&(sn.content=n.content,Object(i.dispatch)("yoast-seo/editor").setEditorDataContent(sn.content)),n.title!==sn.title&&(sn.title=n.title,Object(i.dispatch)("yoast-seo/editor").setEditorDataTitle(sn.title)),n.excerpt!==sn.excerpt&&(sn.excerpt=n.excerpt,Object(i.dispatch)("yoast-seo/editor").setEditorDataExcerpt(sn.excerpt)),n.imageUrl!==sn.imageUrl&&(sn.imageUrl=n.imageUrl,Object(i.dispatch)("yoast-seo/editor").setEditorDataImageUrl(sn.imageUrl))}}),500);function un(e,t){var n=Object(i.dispatch)("yoast-seo/editor").updateWordsToHighlight;e("morphology",new E.Paper("",{keyword:t})).then((function(e){var t=e.result.keyphraseForms;n(Object(j.uniq)(Object(j.flatten)(t)))})).catch((function(){n([])}))}var pn=Object(j.debounce)(un,500),dn=n(181),fn=n(151),hn=n(33),mn=n.n(hn),bn=n(34),gn=n.n(bn),yn=n(35),wn=n.n(yn),vn=n(37),On=n.n(vn),jn=n(28),En=n.n(jn);$e.modules.hookUI.Base;var kn=function(e){wn()(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=En()(t);if(n){var a=En()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return On()(this,e)});function a(e,t,n){var o;return mn()(this,a),(o=r.call(this)).hook=e,o.id=t,o.callback=n,o}return gn()(a,[{key:"getCommand",value:function(){return this.hook}},{key:"getId",value:function(){return this.id}},{key:"apply",value:function(){return this.callback()}}]),a}($e.modules.hookData.Base);function xn(e,t){var n=null;t.actions&&(n=[],t.actions.forEach((function(e){n.push({name:"wordproof_notice_button",text:e.label,callback:function(){e.onClick()}})}))),window.elementor.notifications.showToast({message:e,buttons:n})}function Tn(e){!function(e,t,n){$e&&$e.hooks.registerDataAfter(new kn("document/save/save","wordproof/timestamper",n))}(0,0,(function(){window.setTimeout(e,1e3)}))}function Rn(){var e,t,n,c;window.YoastSEO=window.YoastSEO||{},window.YoastSEO.store=(function(e){e.dispatch(Wt.actions.loadCornerstoneContent()),e.dispatch(Wt.actions.loadFocusKeyword()),e.dispatch(Wt.actions.setMarkerStatus("hidden")),e.dispatch(Wt.actions.setSettings({socialPreviews:{sitewideImage:window.wpseoScriptData.metabox.sitewide_social_image,siteName:window.wpseoScriptData.metabox.site_name,contentImage:window.wpseoScriptData.metabox.first_content_image,twitterCardType:window.wpseoScriptData.metabox.twitterCardType},snippetEditor:{baseUrl:window.wpseoScriptData.metabox.base_url,date:window.wpseoScriptData.metabox.metaDescriptionDate,recommendedReplacementVariables:window.wpseoScriptData.analysis.plugins.replaceVars.recommended_replace_vars,siteIconUrl:window.wpseoScriptData.metabox.siteIconUrl}}));var t=window.wpseoScriptData.metabox.showSocial,n=t.facebook,r=t.twitter;n&&e.dispatch(Wt.actions.loadFacebookPreviewData()),r&&e.dispatch(Wt.actions.loadTwitterPreviewData()),e.dispatch(Wt.actions.setSEMrushChangeCountry(window.wpseoScriptData.metabox.countryCode)),e.dispatch(Wt.actions.setSEMrushLoginStatus(window.wpseoScriptData.metabox.SEMrushLoginStatus)),e.dispatch(Wt.actions.setWincherLoginStatus(window.wpseoScriptData.metabox.wincherLoginStatus,!1)),e.dispatch(Wt.actions.setWincherWebsiteId(window.wpseoScriptData.metabox.wincherWebsiteId)),e.dispatch(Wt.actions.setWincherAutomaticKeyphaseTracking(window.wpseoScriptData.metabox.wincherAutoAddKeyphrases))}(c=Object(i.registerStore)("yoast-seo/editor",{reducer:Object(i.combineReducers)(Wt.reducers),selectors:an(an({},Wt.selectors),a),actions:Object(j.pickBy)(an(an({},Wt.actions),o),(function(e){return"function"==typeof e})),controls:Qt})),c),Y("editor/documents/attach-preview","yoast-seo-content-scraper-attach-preview",ln),Y("document/save/set-is-modified","yoast-seo-content-scraper-on-modified",ln),window.YoastSEO.pluginReady=p,window.YoastSEO.pluginReloaded=d,window.YoastSEO.registerModification=f,window.YoastSEO.registerPlugin=h,window.YoastSEO.applyModifications=m,window.YoastSEO.analysis=window.YoastSEO.analysis||{},window.YoastSEO.analysis.run=Object(i.dispatch)("yoast-seo/editor").runAnalysis,window.YoastSEO.analysis.worker=function(){var e=Object(i.select)("yoast-seo/editor"),t=e.getAnalysisTimestamp,n=e.isCornerstoneContent,r=Object(T.a)();r.initialize(Object(T.b)({useCornerstone:n()})).catch(x.a);var a=C(),o=n(),s=t();return Object(i.subscribe)((function(){var e=n(),i=C(),c=t();if(e!==o)return o=e,a=i,void r.initialize({useCornerstone:e}).then((function(){return S(r,i)})).catch(x.a);c===s&&!1!==Object(j.isEqual)(i,a)||(a=i,s=c,S(r,i))})),r}(),window.YoastSEO.analysis.collectData=C,h("replaceVariablePlugin",{status:"ready"}),rt().forEach((function(e){var t,n,a,o=(n=(t=r[e]).getReplacement,a=t.regexp,function(e){return e.replace(a,n())});nt(o)})),window.YoastSEO.wp=window.YoastSEO.wp||{},window.YoastSEO.wp.replaceVarsPlugin={addReplacement:at,ReplaceVar:Xe.a},function(){var e=Object(dt.a)(),t=Object(j.get)(window,["wpseoScriptData","analysis","worker","keywords_assessment_url"],"used-keywords-assessment.js"),n=new on.a("get_focus_keyword_usage",e,Object(i.dispatch)("yoast-seo/editor").runAnalysis,t);n.init();var r="";Object(i.subscribe)((function(){var e=Object(i.select)("yoast-seo/editor").getFocusKeyphrase();e!==r&&(r=e,n.setKeyword(e))}))}(),Object(Nt.a)(),e=window.YoastSEO.analysis.worker.runResearch,t=Object(i.select)("yoast-seo/editor").getFocusKeyphrase,n=t(),un(e,n),Object(i.subscribe)((function(){var r=t();n!==r&&(n=r,pn(e,r))})),function(){if(!0!==window.elementor.config.user.introduction["yoast-introduction"]){var e=new window.elementorModules.editor.utils.Introduction({introductionKey:"yoast-introduction",dialogOptions:{id:"yoast-introduction",className:"elementor-right-click-introduction",headerMessage:Object(L.__)("New: Yoast SEO for Elementor","wordpress-seo"),message:Object(L.__)("Get started with Yoast SEO's content analysis for Elementor!","wordpress-seo"),position:{my:"left top",at:"right top",autoRefresh:!0},hide:{onOutsideClick:!1}},onDialogInitCallback:function(t){window.$e.routes.on("run:after",(function(e,n){"panel/menu"===n&&t.getElements("ok").trigger("click")})),t.addButton({name:"ok",text:Object(L.__)("Got it","wordpress-seo"),callback:function(){return e.setViewed()}}),t.getElements("ok").addClass("elementor-button elementor-button-success")}});setTimeout((function t(){try{e.show(window.elementor.getPanelView().header.currentView.ui.menuButton[0])}catch(e){setTimeout(t,100)}}),100)}}(),Ft(),Object(_t.b)()&&(Object(fn.a)(),Object(dn.a)(Tn,xn,xn)),Object(s.doAction)("yoast.elementor.loaded")}jQuery(window).on("elementor:init",(function(){window.elementor.on("panel:init",(function(){setTimeout(Rn)}))}))}]);
482 +/* Translators: %1$s expands to the number of used keywords.
483 + * %2$s expands to the account keywords limit.
484 + */
485 +(0,Ce.__)("Your are tracking %1$s out of %2$s keyphrases included in your free account.","wordpress-seo"),t,e),r=(0,Ce.sprintf)(
486 +/* Translators: %1$s expands to the number of used keywords.
487 + * %2$s expands to the account keywords limit.
488 + */
489 +/* Translators: %1$s expands to the number of used keywords.
490 + * %2$s expands to the account keywords limit.
491 + */
492 +(0,Ce.__)("Your are tracking %1$s out of %2$s keyphrases included in your account.","wordpress-seo"),t,e),n=o?i:r,a=(0,Ce.sprintf)(
493 +/* Translators: %1$s expands to the number of used keywords.
494 + * %2$s expands to the account keywords limit.
495 + */
496 +/* Translators: %1$s expands to the number of used keywords.
497 + * %2$s expands to the account keywords limit.
498 + */
499 +(0,Ce.__)("Keyphrases tracked: %1$s/%2$s","wordpress-seo"),t,e),l=s?a:n;return(0,ue.jsxs)(Kr,{children:[s&&(0,ue.jsx)(Hr,{icon:"exclamation-triangle",color:oo.colors.$color_pink_dark,size:"14px"}),l]})};Gr.propTypes={limit:ce().number.isRequired,usage:ce().number.isRequired,isTitleShortened:ce().bool,isFreeAccount:ce().bool};const Zr=(0,Bt.makeOutboundLink)(),Qr=({discount:e,months:t})=>{const s=(0,ue.jsx)(Zr,{href:wpseoAdminGlobalL10n["links.wincher.upgrade"],style:{fontWeight:600},children:(0,Ce.sprintf)(/* Translators: %s : Expands to "Wincher". */ /* Translators: %s : Expands to "Wincher". */
500 +(0,Ce.__)("Click here to upgrade your %s plan","wordpress-seo"),"Wincher")});if(!e||!t)return(0,ue.jsx)(Yr,{children:s});const o=100*e,i=(0,Ce.sprintf)(
501 +/* Translators: %1$s expands to upgrade account link.
502 + * %2$s expands to the upgrade discount value.
503 + * %3$s expands to the upgrade discount duration e.g. 2 months.
504 + */
505 +/* Translators: %1$s expands to upgrade account link.
506 + * %2$s expands to the upgrade discount value.
507 + * %3$s expands to the upgrade discount duration e.g. 2 months.
508 + */
509 +(0,Ce.__)("%1$s and get an exclusive %2$s discount for %3$s month(s).","wordpress-seo"),"<wincherAccountUpgradeLink/>",o+"%",t);return(0,ue.jsx)(Yr,{children:De(i,{wincherAccountUpgradeLink:s})})};Qr.propTypes={discount:ce().number,months:ce().number};const Xr=({onClose:e=null,isTitleShortened:t=!1,trackingInfo:s=null})=>{const o=(()=>{const[e,t]=(0,ne.useState)(null);return(0,ne.useEffect)(()=>{e||async function(){return await Xi({path:"yoast/v1/wincher/account/upgrade-campaign",method:"GET"})}().then(e=>t(e))},[e]),e})();if(null===s)return null;const{limit:i,usage:r}=s;if(!(i&&r/i>=.8))return null;const n=Boolean(null==o?void 0:o.discount);return(0,ue.jsxs)(zr,{isTitleShortened:t,children:[e&&(0,ue.jsx)(Vr,{type:"button","aria-label":(0,Ce.__)("Close the upgrade callout","wordpress-seo"),onClick:e,children:(0,ue.jsx)(Tt.SvgIcon,{icon:"times-circle",color:oo.colors.$color_pink_dark,size:"14px"})}),(0,ue.jsx)(Gr,{...s,isTitleShortened:t,isFreeAccount:n}),(0,ue.jsx)(Qr,{discount:null==o?void 0:o.discount,months:null==o?void 0:o.months})]})};Xr.propTypes={onClose:ce().func,isTitleShortened:ce().bool,trackingInfo:ce().object};const Jr=Xr,en=window.yoast["chart.js"],tn="label";function sn(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function on(e,t){e.labels=t}function rn(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tn;const o=[];e.datasets=t.map(t=>{const i=e.datasets.find(e=>e[s]===t[s]);return i&&t.data&&!o.includes(i)?(o.push(i),Object.assign(i,t),i):{...t}})}function nn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tn;const s={labels:[],datasets:[]};return on(s,e.labels),rn(s,e.datasets,t),s}function an(e,t){const{height:s=150,width:o=300,redraw:i=!1,datasetIdKey:r,type:n,data:a,options:l,plugins:c=[],fallbackContent:d,updateMode:p,...u}=e,h=(0,Be.useRef)(null),g=(0,Be.useRef)(),m=()=>{h.current&&(g.current=new en.Chart(h.current,{type:n,data:nn(a,r),options:l&&{...l},plugins:c}),sn(t,g.current))},y=()=>{sn(t,null),g.current&&(g.current.destroy(),g.current=null)};return(0,Be.useEffect)(()=>{!i&&g.current&&l&&function(e,t){const s=e.options;s&&t&&Object.assign(s,t)}(g.current,l)},[i,l]),(0,Be.useEffect)(()=>{!i&&g.current&&on(g.current.config.data,a.labels)},[i,a.labels]),(0,Be.useEffect)(()=>{!i&&g.current&&a.datasets&&rn(g.current.config.data,a.datasets,r)},[i,a.datasets]),(0,Be.useEffect)(()=>{g.current&&(i?(y(),setTimeout(m)):g.current.update(p))},[i,l,a.labels,a.datasets,p]),(0,Be.useEffect)(()=>{g.current&&(y(),setTimeout(m))},[n]),(0,Be.useEffect)(()=>(m(),()=>y()),[]),Be.createElement("canvas",Object.assign({ref:h,role:"img",height:s,width:o},u),d)}const ln=(0,Be.forwardRef)(an);function cn(e,t){return en.Chart.register(t),(0,Be.forwardRef)((t,s)=>Be.createElement(ln,Object.assign({},t,{ref:s,type:e})))}const dn=cn("line",en.LineController),pn={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};en._adapters._date.override("function"==typeof Zi()?{_id:"moment",formats:function(){return pn},parse:function(e,t){return"string"==typeof e&&"string"==typeof t?e=Zi()(e,t):e instanceof Zi()||(e=Zi()(e)),e.isValid()?e.valueOf():null},format:function(e,t){return Zi()(e).format(t)},add:function(e,t,s){return Zi()(e).add(t,s).valueOf()},diff:function(e,t,s){return Zi()(e).diff(Zi()(t),s)},startOf:function(e,t,s){return e=Zi()(e),"isoWeek"===t?(s=Math.trunc(Math.min(Math.max(0,s),6)),e.isoWeekday(s).startOf("day").valueOf()):e.startOf(t).valueOf()},endOf:function(e,t){return Zi()(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 un=["top","right","bottom","left"];function hn(e,t,s){const o={};s=s?"-"+s:"";for(let i=0;i<4;i++){const r=un[i];o[r]=parseFloat(e[t+"-"+r+s])||0}return o.width=o.left+o.right,o.height=o.top+o.bottom,o}!function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}}(),en.Chart.register(en.CategoryScale,en.LineController,en.LineElement,en.PointElement,en.LinearScale,en.TimeScale,en.Legend,en.Tooltip);const gn=["#ff983b","#ffa3f7","#3798ff","#ff3b3b","#acce81","#b51751","#3949ab","#26c6da","#ccb800","#de66ff","#4db6ac","#ffab91","#45f5f1","#77f210","#90a4ae","#ffd54f","#006b5e","#8ec7d2","#b1887c","#cc9300"];function mn({datasets:e,isChartShown:t,keyphrases:s}){if(!t)return null;const o=(0,ne.useMemo)(()=>Object.fromEntries([...s].sort().map((e,t)=>[e,gn[t%gn.length]])),[s]),i=e.map(e=>{const t=o[e.label];return{...e,data:e.data.map(({datetime:e,value:t})=>({x:e,y:t})),lineTension:0,pointRadius:1,pointHoverRadius:4,borderWidth:2,pointHitRadius:6,backgroundColor:t,borderColor:t}}).filter(e=>!1!==e.selected);return(0,ue.jsx)(dn,{height:100,data:{datasets:i},options:{plugins:{legend:{display:!0,position:"bottom",labels:{color:"black",usePointStyle:!0,boxHeight:7,boxWidth:7},onClick:c.noop},tooltip:{enabled:!0,callbacks:{title:e=>Zi()(e[0].raw.x).utc().format("YYYY-MM-DD")},titleAlign:"center",mode:"xPoint",position:"nearest",usePointStyle:!0,boxHeight:7,boxWidth:7,boxPadding:2}},scales:{x:{bounds:"ticks",type:"time",time:{unit:"day",minUnit:"day"},grid:{display:!1},ticks:{autoSkipPadding:50,maxRotation:0,color:"black"}},y:{bounds:"ticks",offset:!0,reverse:!0,ticks:{precision:0,color:"black"},max:31}}}})}en.Interaction.modes.xPoint=(e,t,s,o)=>{const i=function(e,t){if("native"in e)return e;const{canvas:s,currentDevicePixelRatio:o}=t,i=(h=s).ownerDocument.defaultView.getComputedStyle(h,null),r="border-box"===i.boxSizing,n=hn(i,"padding"),a=hn(i,"border","width"),{x:l,y:c,box:d}=function(e,t){const s=e.touches,o=s&&s.length?s[0]:e,{offsetX:i,offsetY:r}=o;let n,a,l=!1;if(((e,t,s)=>(e>0||t>0)&&(!s||!s.shadowRoot))(i,r,e.target))n=i,a=r;else{const e=t.getBoundingClientRect();n=o.clientX-e.left,a=o.clientY-e.top,l=!0}return{x:n,y:a,box:l}}(e,s),p=n.left+(d&&a.left),u=n.top+(d&&a.top);var h;let{width:g,height:m}=t;return r&&(g-=n.width+a.width,m-=n.height+a.height),{x:Math.round((l-p)/g*s.width/o),y:Math.round((c-u)/m*s.height/o)}}(t,e);let r=[];if(en.Interaction.evaluateInteractionItems(e,"x",i,(e,t,s)=>{e.inXRange(i.x,o)&&r.push({element:e,datasetIndex:t,index:s})}),0===r.length)return r;const n=r.reduce((e,t)=>Math.abs(i.x-e.element.x)<Math.abs(i.x-t.element.x)?e:t).element.x;return r=r.filter(e=>e.element.x===n),r.some(e=>Math.abs(e.element.y-i.y)<10)?r:[]},mn.propTypes={datasets:ce().arrayOf(ce().shape({label:ce().string.isRequired,data:ce().arrayOf(ce().shape({datetime:ce().string.isRequired,value:ce().number.isRequired})).isRequired,selected:ce().bool})).isRequired,isChartShown:ce().bool.isRequired,keyphrases:ce().array.isRequired};const yn=({response:e,onLogin:t})=>[401,403,404].includes(e.status)?(0,ue.jsx)($r,{onReconnect:t}):(0,ue.jsx)(Br,{});yn.propTypes={response:ce().object.isRequired,onLogin:ce().func.isRequired};const wn=({isSuccess:e,response:t={},allKeyphrasesMissRanking:s,onLogin:o,keyphraseLimitReached:i,limit:r})=>i?(0,ue.jsx)(Mr,{limit:r}):(0,c.isEmpty)(t)||e?s?(0,ue.jsx)(Ar,{}):null:(0,ue.jsx)(yn,{response:t,onLogin:o});wn.propTypes={isSuccess:ce().bool.isRequired,allKeyphrasesMissRanking:ce().bool.isRequired,response:ce().object,onLogin:ce().func.isRequired,keyphraseLimitReached:ce().bool.isRequired,limit:ce().number.isRequired};let fn=null;const bn=async({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:o,addTrackedKeyphrase:i,setKeyphraseLimitReached:r})=>{if(fn&&!fn.isClosed())return void fn.focus();const{url:n}=await async function(){return await Xi({path:"yoast/v1/wincher/authorization-url",method:"GET"})}();fn=new Cr(n,{success:{type:"wincher:oauth:success",callback:n=>(async({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:o,addTrackedKeyphrase:i,setKeyphraseLimitReached:r},n)=>{await Qi(()=>async function(e){const{code:t,websiteId:s}=e;return await Xi({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:t,websiteId:s}})}(n),async a=>{e(!0,!0,n.websiteId.toString()),t(a);const l=(Array.isArray(o)?o:[o]).map(e=>e.toLowerCase());await Qi(()=>Ji(l),e=>{t(e),i(e.results)},e=>{400===e.status&&e.limit&&r(e.limit),s(e)},201);const c=fn.getPopup();c&&c.close()},async e=>s(e))})({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:o,addTrackedKeyphrase:i,setKeyphraseLimitReached:r},n)},error:{type:"wincher:oauth:error",callback:()=>e(!1,!1)}},{title:"Wincher_login",width:500,height:700}),fn.createPopup()},xn=e=>e.isLoggedIn?null:(0,ue.jsx)("p",{children:(0,ue.jsx)(Tt.NewButton,{onClick:e.onLogin,variant:"primary",children:(0,Ce.sprintf)(/* translators: %s expands to Wincher */ /* translators: %s expands to Wincher */
510 +(0,Ce.__)("Connect with %s","wordpress-seo"),"Wincher")})});xn.propTypes={isLoggedIn:ce().bool.isRequired,onLogin:ce().func.isRequired};const vn=pe().div`
511 + p {
512 + margin: 1em 0;
513 + }
514 +`,kn=pe().div`
515 + ${e=>e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"};
516 +`,Sn=pe().div`
517 + font-weight: var(--yoast-font-weight-bold);
518 + color: var(--yoast-color-label);
519 + font-size: var(--yoast-font-size-default);
520 +`,Rn=pe().div.attrs({className:"yoast-field-group"})`
521 + display: flex;
522 + justify-content: space-between;
523 + align-items: center;
524 + margin-bottom: 14px;
525 +`,Tn=pe().div`
526 + margin: 8px 0;
527 +`,En=Zi().utc().startOf("day"),jn=[{name:(0,Ce.__)("Last day","wordpress-seo"),value:Zi()(En).subtract(1,"days").format(),defaultIndex:1},{name:(0,Ce.__)("Last week","wordpress-seo"),value:Zi()(En).subtract(1,"week").format(),defaultIndex:2},{name:(0,Ce.__)("Last month","wordpress-seo"),value:Zi()(En).subtract(1,"month").format(),defaultIndex:3},{name:(0,Ce.__)("Last year","wordpress-seo"),value:Zi()(En).subtract(1,"year").format(),defaultIndex:0}],Cn=({onSelect:e,selected:t=null,options:s,isLoggedIn:o})=>o?s.length<1?null:(0,ue.jsx)("select",{className:"components-select-control__input",id:"wincher-period-picker",value:(null==t?void 0:t.value)||s[0].value,onChange:e,children:s.map(e=>(0,ue.jsx)("option",{value:e.value,children:e.name},e.name))}):null;Cn.propTypes={onSelect:ce().func.isRequired,selected:ce().object,options:ce().array.isRequired,isLoggedIn:ce().bool.isRequired};const In=({trackedKeyphrases:e=null,isLoggedIn:t,keyphrases:s,shouldTrackAll:o,permalink:i,historyDaysLimit:r=0})=>{if(!i&&t)return(0,ue.jsx)(Ur,{});if(0===s.length)return(0,ue.jsx)(Nr,{});const n=Zi()(En).subtract(r,"days"),a=jn.filter(e=>Zi()(e.value).isSameOrAfter(n)),l=(0,c.orderBy)(a,e=>e.defaultIndex,"desc")[0],[d,p]=(0,ne.useState)(l),[u,h]=(0,ne.useState)([]),g=u.length>0,m=(0,xt.usePrevious)(e);(0,ne.useEffect)(()=>{if(!(0,c.isEmpty)(e)&&(0,c.difference)(Object.keys(e),Object.keys(m||[])).length){const t=Object.values(e).map(e=>e.keyword);h(t)}},[e,m]),(0,ne.useEffect)(()=>{p(l)},[null==l?void 0:l.name]);const y=(0,ne.useCallback)(e=>{const t=jn.find(t=>t.value===e.target.value);t&&p(t)},[p]),w=(0,ne.useMemo)(()=>(0,c.isEmpty)(u)||(0,c.isEmpty)(e)?[]:Object.values(e).filter(e=>{var t;return!(null==e||null===(t=e.position)||void 0===t||!t.history)}).map(e=>{var t;return{label:e.keyword,data:e.position.history,selected:u.includes(e.keyword)&&!(0,c.isEmpty)(null===(t=e.position)||void 0===t?void 0:t.history)}}),[u,e]);return(0,ue.jsxs)(kn,{isDisabled:!t,children:[(0,ue.jsx)("p",{children:(0,Ce.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")}),t&&o&&(0,ue.jsx)(Ir,{}),(0,ue.jsx)(Rn,{children:(0,ue.jsx)(Cn,{selected:d,onSelect:y,options:a,isLoggedIn:t})}),(0,ue.jsx)(Tn,{children:(0,ue.jsx)(mn,{isChartShown:g,datasets:w,keyphrases:s})}),(0,ue.jsx)(jr,{startAt:null==d?void 0:d.value,selectedKeyphrases:u,onSelectKeyphrases:h,trackedKeyphrases:e})]})};function Ln({trackedKeyphrases:e=null,addTrackedKeyphrase:t,isLoggedIn:s=!1,isNewlyAuthenticated:o=!1,keyphrases:i=[],response:r={},shouldTrackAll:n=!1,permalink:a="",allKeyphrasesMissRanking:l,isSuccess:c,keyphraseLimitReached:d,limit:p,setRequestSucceeded:u,setRequestFailed:h,setKeyphraseLimitReached:g,onAuthentication:m}){const y=(0,ne.useCallback)(()=>{bn({onAuthentication:m,setRequestSucceeded:u,setRequestFailed:h,keyphrases:i,addTrackedKeyphrase:t,setKeyphraseLimitReached:g})},[bn,m,u,h,i,t,g]),w=(e=>{const[t,s]=(0,ne.useState)(null);return(0,ne.useEffect)(()=>{e&&!t&&async function(){return await Xi({path:"yoast/v1/wincher/account/limit",method:"GET"})}().then(e=>s(e))},[t]),t})(s);return(0,ue.jsxs)(vn,{children:[o&&(0,ue.jsx)(Lr,{}),s&&(0,ue.jsx)(Jr,{trackingInfo:w}),(0,ue.jsxs)(Sn,{children:[(0,Ce.__)("SEO performance","wordpress-seo"),(0,ue.jsx)(Tt.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"]
528 +/* translators: Hidden accessibility text. */,linkText:(0,Ce.__)("Learn more about the SEO performance feature.","wordpress-seo")})]}),(0,ue.jsx)(Or,{}),(0,ue.jsx)(xn,{isLoggedIn:s,onLogin:y}),(0,ue.jsx)(wn,{isSuccess:c,response:r,allKeyphrasesMissRanking:l,keyphraseLimitReached:d,limit:p,onLogin:y}),(0,ue.jsx)(In,{trackedKeyphrases:e,isLoggedIn:s,keyphrases:i,shouldTrackAll:n,permalink:a,historyDaysLimit:(null==w?void 0:w.historyDays)||31})]})}In.propTypes={trackedKeyphrases:ce().object,keyphrases:ce().array.isRequired,isLoggedIn:ce().bool.isRequired,shouldTrackAll:ce().bool.isRequired,permalink:ce().string.isRequired,historyDaysLimit:ce().number},Ln.propTypes={trackedKeyphrases:ce().object,addTrackedKeyphrase:ce().func.isRequired,isLoggedIn:ce().bool,isNewlyAuthenticated:ce().bool,keyphrases:ce().array,response:ce().object,shouldTrackAll:ce().bool,permalink:ce().string,allKeyphrasesMissRanking:ce().bool.isRequired,isSuccess:ce().bool.isRequired,keyphraseLimitReached:ce().bool.isRequired,limit:ce().number.isRequired,setRequestSucceeded:ce().func.isRequired,setRequestFailed:ce().func.isRequired,setKeyphraseLimitReached:ce().func.isRequired,onAuthentication:ce().func.isRequired};const An=(0,xt.compose)([(0,a.withSelect)(e=>{const{isWincherNewlyAuthenticated:t,getWincherKeyphraseLimitReached:s,getWincherLimit:o,getWincherLoginStatus:i,getWincherRequestIsSuccess:r,getWincherRequestResponse:n,getWincherTrackableKeyphrases:a,getWincherTrackedKeyphrases:l,getWincherAllKeyphrasesMissRanking:c,getWincherPermalink:d,shouldWincherAutomaticallyTrackAll:p}=e("yoast-seo/editor");return{keyphrases:a(),trackedKeyphrases:l(),allKeyphrasesMissRanking:c(),isLoggedIn:i(),isNewlyAuthenticated:t(),isSuccess:r(),keyphraseLimitReached:s(),limit:o(),response:n(),shouldTrackAll:p(),permalink:d()}}),(0,a.withDispatch)(e=>{const{setWincherWebsiteId:t,setWincherRequestSucceeded:s,setWincherRequestFailed:o,setWincherTrackingForKeyphrase:i,setWincherSetKeyphraseLimitReached:r,setWincherLoginStatus:n}=e("yoast-seo/editor");return{setRequestSucceeded:e=>{s(e)},setRequestFailed:e=>{o(e)},addTrackedKeyphrase:e=>{i(e)},setKeyphraseLimitReached:e=>{r(e)},onAuthentication:(e,s,o)=>{t(o),n(e,s)}}})])(Ln),Pn=pe()(Yi())`
529 + width: 18px;
530 + height: 18px;
531 + margin: 3px;
532 +`;function Dn({keyphrases:e,onNoKeyphraseSet:t,onOpen:s,location:o}){if(!e.length){let e=document.querySelector("#focus-keyword-input-metabox");return e||(e=document.querySelector("#focus-keyword-input-sidebar")),e.focus(),void t()}s(o)}function On({location:e="",whichModalOpen:t="none",shouldCloseOnClickOutside:s=!0,keyphrases:o,onNoKeyphraseSet:i,onOpen:r,onClose:n}){const a=(0,ne.useCallback)(()=>{Dn({keyphrases:o,onNoKeyphraseSet:i,onOpen:r,location:e})},[Dn,o,i,r,e]),l=(0,Ce.__)("Track SEO performance","wordpress-seo"),c=os();return(0,ue.jsxs)(ne.Fragment,{children:[t===e&&(0,ue.jsx)(rs,{title:l,onRequestClose:n,icon:(0,ue.jsx)(At,{}),additionalClassName:"yoast-wincher-seo-performance-modal yoast-gutenberg-modal__no-padding",shouldCloseOnClickOutside:s,children:(0,ue.jsx)(zi,{className:"yoast-gutenberg-modal__content yoast-wincher-seo-performance-modal__content",children:(0,ue.jsx)(An,{})})}),"sidebar"===e&&(0,ue.jsx)(jt,{id:`wincher-open-button-${e}`,title:l,SuffixHeroIcon:(0,ue.jsx)(Pn,{className:"yst-text-slate-500",...c}),onClick:a}),"metabox"===e&&(0,ue.jsx)("div",{className:"yst-root",children:(0,ue.jsxs)(Rt,{id:`wincher-open-button-${e}`,onClick:a,children:[(0,ue.jsx)(Rt.Text,{children:l}),(0,ue.jsx)(Yi(),{className:"yst-h-5 yst-w-5 yst-text-slate-500",...c})]})})]})}On.propTypes={location:ce().string,whichModalOpen:ce().oneOf(["none","metabox","sidebar","postpublish"]),shouldCloseOnClickOutside:ce().bool,keyphrases:ce().array.isRequired,onNoKeyphraseSet:ce().func.isRequired,onOpen:ce().func.isRequired,onClose:ce().func.isRequired};const Fn=(0,xt.compose)([(0,a.withSelect)(e=>{const{getWincherModalOpen:t,getWincherTrackableKeyphrases:s}=e("yoast-seo/editor");return{keyphrases:s(),whichModalOpen:t()}}),(0,a.withDispatch)(e=>{const{setWincherOpenModal:t,setWincherDismissModal:s,setWincherNoKeyphrase:o}=e("yoast-seo/editor");return{onOpen:e=>{t(e)},onClose:()=>{s()},onNoKeyphraseSet:()=>{o()}}})])(On),qn=({isOpen:e,closeModal:t,id:s,upsellLink:o})=>(0,ue.jsx)(Ot,{isOpen:e,onClose:t,id:s,upsellLink:o,title:(0,Ce.__)("Cover more search intent with related keyphrases","wordpress-seo"),description:(0,Ce.__)("Optimize for up to 5 keyphrases to shape your content around different themes, audiences, and angles - helping it get discovered by a wider audience.","wordpress-seo"),note:(0,Ce.__)("Fine-tune your content for every audience","wordpress-seo"),modalTitle:(0,Ce.__)("Add more keyphrases with Premium","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"}),Mn=()=>{const[e,,,t,s]=(0,Pe.useToggleState)(!1),o=(0,ne.useContext)(ae.LocationContext),{locationContext:i}=(0,ae.useRootContext)(),r=(0,Pe.useSvgAria)(),n=wpseoAdminL10n["sidebar"===o.toLowerCase()?"shortlinks.upsell.sidebar.additional_button":"shortlinks.upsell.metabox.additional_button"];return(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)(qn,{isOpen:e,closeModal:s,upsellLink:(0,kt.addQueryArgs)(n,{context:i}),id:`yoast-additional-keyphrases-modal-${o}`}),"sidebar"===o&&(0,ue.jsx)(jt,{id:"yoast-additional-keyphrase-modal-open-button",title:(0,Ce.__)("Add related keyphrase","wordpress-seo"),prefixIcon:{icon:"plus",color:oo.colors.$color_grey_medium_dark},onClick:t,children:(0,ue.jsx)("div",{className:"yst-root",children:(0,ue.jsx)(Pe.Badge,{size:"small",variant:"upsell",children:(0,ue.jsx)(vt(),{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...r})})})}),"metabox"===o&&(0,ue.jsx)("div",{className:"yst-root",children:(0,ue.jsxs)(Rt,{id:"yoast-additional-keyphrase-metabox-modal-open-button",onClick:t,children:[(0,ue.jsx)(Tt.SvgIcon,{icon:"plus",color:oo.colors.$color_grey_medium_dark}),(0,ue.jsx)(Rt.Text,{children:(0,Ce.__)("Add related keyphrase","wordpress-seo")}),(0,ue.jsxs)(Pe.Badge,{size:"small",variant:"upsell",children:[(0,ue.jsx)(vt(),{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...r}),(0,ue.jsx)("span",{children:"Premium"})]})]})})]})};var Nn;function Un(){return Un=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)({}).hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},Un.apply(null,arguments)}const Wn=e=>Be.createElement("svg",Un({xmlns:"http://www.w3.org/2000/svg",fill:"none","aria-hidden":"true",viewBox:"0 0 54 24"},e),Nn||(Nn=Be.createElement("path",{fill:"currentColor",d:"M17.854 5.72c-4.173 0-5.842 2.798-5.842 5.913 0 3.116 1.645 6.036 5.842 6.036 4.196 0 5.831-2.93 5.824-5.846-.01-3.551-1.809-6.104-5.824-6.104v.001zm-2.528 6.09c.101-4.169 3.306-4.165 4.377-2.672.976 1.36 1.176 6.013-1.85 5.98-1.392-.016-2.486-.956-2.527-3.309zm36.371 2.968V8.74h2.161V6.117h-2.16V2.951H48.36v3.166h-1.694V8.74h1.694v5.696c0 3.239 2.26 5.162 4.643 5.56l.997-2.68c-1.39-.176-2.29-1.214-2.303-2.537zm-16.84-.957v-4.54c0-.165-.01-.32-.026-.472-.29-3.668-5.503-3.66-9.54-2.252l1.166 2.346c2.63-1.248 4.203-.926 4.753-.311.014.016.028.031.04.048l.005.007c.28.379.213.975.213 1.445-3.436 0-7.093.455-7.093 4.22 0 2.862 3.59 4.703 7.34 1.976l.556 1.341h3.215c-.286-1.575-.63-2.925-.63-3.808h.002zm-3.362-.025c-2.643 2.955-5.064.174-2.585-1.04.73-.248 1.72-.26 2.585-.26v1.3zm8.492-4.759c0-1.118 1.792-1.64 4.619-.351l.977-2.371c-3.804-1.15-8.998-1.252-9.033 2.722-.016 1.905 1.208 2.93 2.969 3.585 1.22.453 2.98.687 2.975 1.657-.006 1.268-2.736 1.463-5.221-.243l-1.004 2.572c3.39 1.686 9.692 1.733 9.66-2.49-.034-4.176-5.94-3.46-5.94-5.08h-.002zM10.638 0 5.783 13.471 3.46 6.196H0l3.872 9.935c.33.846.33 1.784 0 2.63-.433 1.11-1.153 2.057-2.908 2.294V24c3.418 0 5.265-2.1 6.913-6.699L14.337 0h-3.7z"}))),$n=({children:e})=>(0,ue.jsxs)("div",{className:"yst-p-4 yst-flex yst-flex-col yst-gap-3",children:[(0,ue.jsx)(Wn,{className:"yst-w-14 yst-text-primary-500"}),e]}),Bn=({withPromptForContentSuggestions:e,className:t})=>(0,ue.jsx)("p",{className:rt()("yst-text-slate-600 yst-my-0",t),children:e?(0,Ce.__)("Optimize your content for discovery or get new content suggestions.","wordpress-seo"):(0,Ce.__)("Optimize your content for discovery.","wordpress-seo")});function Kn({isLoading:e,onLoad:t,settings:s}){const o=(({webinarIntroUrl:e})=>{const{shouldShow:t}=Gt(),s=(e=>{for(const t of e)if(null!=t&&t.getIsEligible())return t;return null})([{getIsEligible:()=>t,component:Qt},{getIsEligible:es,component:t=>(0,ue.jsx)(Jt,{hasIcon:!1,image:null,url:e,className:"yst-m-0",...t})},{getIsEligible:()=>!0,component:e=>(0,ue.jsx)($t,{...e})}]);return(null==s?void 0:s.component)||null})({webinarIntroUrl:(0,a.useSelect)(e=>e("yoast-seo/editor").selectLink("https://yoa.st/webinar-intro-elementor"),[])});return(0,ne.useEffect)(()=>{setTimeout(()=>{e&&t()})}),e?null:(0,ue.jsx)(ue.Fragment,{children:(0,ue.jsxs)(re.Fill,{name:"YoastElementor",children:[(0,ue.jsx)(Is,{renderPriority:0,children:(0,ue.jsxs)($n,{children:[o&&(0,ue.jsx)(o,{}),(0,ue.jsx)(Bn,{withPromptForContentSuggestions:!1})]})},"editor-intro"),(0,ue.jsx)(Is,{renderPriority:1,children:(0,ue.jsx)(js,{})}),s.isKeywordAnalysisActive&&(0,ue.jsxs)(Is,{renderPriority:8,children:[(0,ue.jsx)(qt.TopicInputs,{isSEMrushIntegrationActive:s.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&(0,ue.jsx)(re.Fill,{name:"YoastRelatedKeyphrases",children:(0,ue.jsx)(Hi,{})})]}),s.isKeywordAnalysisActive&&(0,ue.jsx)(Is,{renderPriority:10,children:(0,ue.jsx)(ne.Fragment,{children:(0,ue.jsx)(qt.SeoAnalysis,{shouldUpsell:s.shouldUpsell,shouldUpsellHighlighting:s.shouldUpsell})})}),s.isContentAnalysisActive&&(0,ue.jsx)(Is,{renderPriority:15,children:(0,ue.jsx)(qt.ReadabilityAnalysis,{shouldUpsell:s.shouldUpsell,shouldUpsellHighlighting:s.shouldUpsell})}),s.isInclusiveLanguageAnalysisActive&&(0,ue.jsx)(Is,{renderPriority:19,children:(0,ue.jsx)(qt.InclusiveLanguageAnalysis,{shouldUpsellHighlighting:s.shouldUpsell})}),s.isKeywordAnalysisActive&&(0,ue.jsx)(Is,{renderPriority:22,children:s.shouldUpsell&&(0,ue.jsx)(Mn,{})},"additional-keywords-upsell"),s.isKeywordAnalysisActive&&s.isWincherIntegrationActive&&(0,ue.jsx)(Is,{renderPriority:23,children:(0,ue.jsx)(Fn,{location:"sidebar",shouldCloseOnClickOutside:!1})},"wincher-seo-performance"),s.shouldUpsell&&(0,ue.jsx)(Is,{renderPriority:24,children:(0,ue.jsx)(Ft,{})},"internal-linking-suggestions-upsell"),(0,ue.jsx)(Is,{renderPriority:25,children:(0,ue.jsx)(Zs,{})}),(s.useOpenGraphData||s.useTwitterData)&&(0,ue.jsx)(Is,{renderPriority:26,children:(0,ue.jsx)(wi,{useOpenGraphData:s.useOpenGraphData,useTwitterData:s.useTwitterData})},"social-appearance"),s.displaySchemaSettings&&(0,ue.jsx)(Is,{renderPriority:28,children:(0,ue.jsx)(bi,{title:(0,Ce.__)("Schema","wordpress-seo"),children:(0,ue.jsx)(Pi,{})})}),s.displayAdvancedTab&&(0,ue.jsx)(Is,{renderPriority:29,children:(0,ue.jsx)(bi,{title:(0,Ce.__)("Advanced","wordpress-seo"),buttonId:"yoast-seo-elementor-advanced-button",children:(0,ue.jsx)(Wi,{location:"sidebar"})})}),s.isCornerstoneActive&&(0,ue.jsx)(Is,{renderPriority:30,children:(0,ue.jsx)(Nt,{})}),s.isInsightsEnabled&&(0,ue.jsx)(Is,{renderPriority:32,children:(0,ue.jsx)(Ts,{location:"elementor"})})]})})}Kn.propTypes={isLoading:ce().bool.isRequired,onLoad:ce().func.isRequired,settings:ce().object.isRequired};const Hn=(0,xt.compose)([(0,a.withSelect)(e=>{const{getPreferences:t,getSnippetEditorIsLoading:s}=e("yoast-seo/editor");return{settings:t(),isLoading:s()}}),(0,a.withDispatch)(e=>{const{loadSnippetEditorData:t}=e("yoast-seo/editor");return{onLoad:t}})])(Kn),Vn=window.jQuery;var Yn=s.n(Vn);const zn=window.Marionette,Gn="#elementor-panel-elements-search-area",Zn=s.n(zn)().ItemView.extend({template:!1,id:"yoast-elementor-react-panel",className:"yoast yoast-elementor-panel__fills",initialize(){Yn()(Gn).hide()},onShow(){ea()},onDestroy(){Yn()(Gn).show()}}),Qn="yoast-seo-tab",Xn="panel/elements",Jn="yoast-elementor-react-panel",ea=()=>{let e=document.getElementById(Jn);if(!e){const t=document.getElementById("elementor-panel-elements-navigation");if(!t)return;e=document.createElement("div"),e.id=Jn,e.className="yoast yoast-elementor-panel__content",t.parentNode.insertBefore(e,t.nextSibling)}e.style.display="block";const t=document.getElementById("elementor-panel-elements-search-area");t&&(t.style.display="none")},ta=()=>{const e=window.$e.components.get(Xn);e.hasTab(Qn)||e.addTab(Qn,{title:"Yoast SEO"})},sa=e=>(e[Qn]={region:e.global.region,view:Zn,options:{}},e),oa="yoast-elementor-react-tab",ia="yoast-seo-tab",ra="Yoast SEO",na="panel/page-settings",aa=()=>{const{settings:e}=elementor.documents.getCurrent().config;e.tabs[ia]||(e.tabs=(0,c.reduce)(e.tabs,(e,t,s)=>(e[s]=t,"settings"===s&&(e[ia]=ra),e),{})),$e.components.get(na).hasTab(ia)||$e.components.get(na).addTab(ia,{title:ra})};let la=!1,ca=!1;const da=(0,c.debounce)(Ie,500,{trailing:!0}),pa=()=>{const e=document.getElementById("yoast-form");if(!e)return void console.error("Yoast form not found!");window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=fe,(()=>{const e=document.createElement("div");e.id="yoast-elementor-react-root",document.body.appendChild(e),function(e,t){const s=f();ye=(0,ne.createRef)();const o={isRtl:s.isRtl};(0,ne.createRoot)(document.getElementById(e)).render((0,ue.jsx)(ge,{theme:o,location:"sidebar",children:(0,ue.jsx)(re.SlotFillProvider,{children:(0,ue.jsxs)(ne.Fragment,{children:[t,(0,ue.jsx)(we,{ref:ye})]})})}))}(e.id,(0,ue.jsxs)(ae.Root,{context:{locationContext:"elementor-sidebar"},children:[(0,ue.jsxs)(Ae,{id:oa,children:[(0,ue.jsx)(bt,{}),(0,ue.jsx)(Hn,{})]}),(0,ue.jsxs)(Ae,{id:Jn,children:[(0,ue.jsx)(bt,{}),(0,ue.jsx)(Hn,{})]})]}))})(),Se("editor/documents/load","yoast-seo/register-tab",aa,({config:e})=>Re(e.id)),$e.routes.on("run:after",(e,t)=>{t===`${na}/${ia}`&&(()=>{if(document.getElementById(oa))return;const e=document.getElementById("elementor-panel-page-settings-controls");if(!e)return;const t=e.querySelector(".elementor-control-yoast-seo-section");t&&(t.style.display="none");const s=document.createElement("div");s.id=oa,s.className="yoast yoast-elementor-panel__fills",e.appendChild(s)})()}),aa(),elementor.getPanelView().getPages("menu").view.addItem({name:"yoast",icon:"yoast yoast-element-menu-icon",title:ra,type:"page",callback:()=>{try{$e.route(`${na}/${ia}`)}catch(e){$e.route(`${na}/settings`),$e.route(`${na}/${ia}`)}}},"more"),((e,t=500)=>{const s=(0,c.debounce)(e,t,{trailing:!0});ve("document/elements/settings","yoast-seo/document/post-status",({settings:e})=>s(e.post_status),({container:e,settings:t})=>{var s;return!!Re((null==e||null===(s=e.document)||void 0===s?void 0:s.id)||elementor.documents.getCurrent().id)&&Boolean(null==t?void 0:t.post_status)})})(()=>da(la));const t=((e,t=500)=>{const s={},o=Array.from(e.querySelectorAll("input[name^='yoast']")),i=o.reduce((e,{name:t,value:s})=>(e[t]=s,e),{}),r={...i},n=new MutationObserver((0,c.debounce)(e=>{const t=[];e.forEach(e=>{"value"===e.attributeName&&e.target.name.startsWith("yoast")&&e.target.value!==i[e.target.name]&&(t.push({input:e.target,name:e.target.name,value:e.target.value,previousValue:i[e.target.name],snapshotValue:r[e.target.name]}),i[e.target.name]=e.target.value)}),t.length>0&&(0,c.forEach)(s,e=>e(t))},t));return{start:()=>n.observe(e,{attributes:!0,subtree:!0}),stop:()=>n.disconnect(),subscribe:e=>{const t=(0,c.uniqueId)("yoast-form-listener");return s[t]=e,()=>delete s[t]},takeSnapshot:()=>{o.forEach(({name:e,value:t})=>{r[e]=t})},restoreSnapshot:()=>{o.forEach(e=>{e.value=r[e.name],i[e.name]=r[e.name]})}}})(e);t.subscribe(e=>{e.some(e=>{return t=e.name,s=e.value,o=e.previousValue,!(Ee.includes(t)||je.includes(t)&&((e,t)=>{if(t===e)return!0;if(""===t||""===e)return!1;let s,o;try{s=JSON.parse(t),o=JSON.parse(e)}catch(e){return!0}return s.length===o.length&&s.every((e,t)=>e.keyword===o[t].keyword)})(o,s)||s===o);var t,s,o})&&(la=!0,da(la),$e.internal("document/save/set-is-modified",{status:!0}))}),t.start(),ke("editor/documents/open","yoast-seo/document/open",()=>{YoastSEO.store._freeze(!1),t.start(),(0,l.doAction)("yoast.elementor.toggleFreeze",{isFreeze:!1,isDiscard:!1})},({id:e})=>Re(e)),ve("editor/documents/close","yoast-seo/document/close",(0,c.throttle)(({mode:e})=>{t.stop(),"discard"===e&&(YoastSEO.store._restoreSnapshot(),t.restoreSnapshot(),la=!1,Ie(la));const s=()=>{YoastSEO.store._freeze(!0),(0,l.doAction)("yoast.elementor.toggleFreeze",{isFreeze:!0,isDiscard:"discard"===e}),(0,l.removeAction)("yoast.elementor.save.success","yoast/yoast-seo/finishClosingDocument"),(0,l.removeAction)("yoast.elementor.save.failure","yoast/yoast-seo/finishClosingDocument")};if(ca)return(0,l.addAction)("yoast.elementor.save.success","yoast/yoast-seo/finishClosingDocument",s),void(0,l.addAction)("yoast.elementor.save.failure","yoast/yoast-seo/finishClosingDocument",s);s()},500,{leading:!0,trailing:!1}),({id:e})=>Re(e)),Se("document/save/save","yoast-seo/document/save",async({document:s})=>{if(ca=!0,!Re(s.id))return;if(s.id!==elementor.config.document.revisions.current_id)return;la=!1;const{success:o,formData:i,data:r,xhr:n}=await(e=>new Promise(t=>{const s=jQuery(e).serializeArray().reduce((e,{name:t,value:s})=>(e[t]=s,e),{});jQuery.post(e.getAttribute("action"),s).done(({success:e,data:o},i,r)=>t({success:e,formData:s,data:o,xhr:r})).fail(e=>t({success:!1,formData:s,xhr:e}))}))(e);if(!o)return la=!0,ca=!1,void(0,l.doAction)("yoast.elementor.save.failure");r.slug&&r.slug!==i.slug&&(0,a.dispatch)("yoast-seo/editor").updateData({slug:r.slug}),(0,a.dispatch)("yoast-seo/editor").setEditorDataSlug(r.slug),Ie(la),(0,l.doAction)("yoast.elementor.save.success",n),YoastSEO.store._takeSnapshot(),t.takeSnapshot(),ca=!1},({document:e})=>Re((null==e?void 0:e.id)||elementor.documents.getCurrent().id)),setTimeout(()=>{YoastSEO.store._takeSnapshot(),t.takeSnapshot()},2e3)},ua=window.yoast.reduxJsToolkit,ha="adminUrl",ga=(0,ua.createSlice)({name:ha,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),ma=(ga.getInitialState,{selectAdminUrl:e=>(0,c.get)(e,ha,"")});ma.selectAdminLink=(0,ua.createSelector)([ma.selectAdminUrl,(e,t)=>t],(e,t="")=>{try{return new URL(t,e).href}catch(t){return e}}),ga.actions,ga.reducer;const ya="replacementVariables",wa=(0,ua.createSlice)({name:ya,initialState:(fa={},{recommended:(0,c.get)(fa,"recommended",{}),shared:(0,c.get)(fa,"shared",[]),specific:(0,c.get)(fa,"specific",{}),variables:(0,c.get)(fa,"variables",[])}),reducers:{}});var fa;const ba=(0,ua.createSelector)([e=>(0,c.get)(e,[ya,"shared"],[]),e=>(0,c.get)(e,[ya,"specific"],{}),(e,t)=>t,(e,t,s)=>s],(e,t,s,o)=>[...e,...(0,c.get)(t,s,(0,c.get)(t,o,[]))]),xa=((0,ua.createSelector)([e=>(0,c.get)(e,[ya,"variables"],[]),ba],(e,t)=>(0,c.filter)(e,({name:e})=>(0,c.includes)(t,e))),(0,ua.createSelector)([e=>(0,c.get)(e,[ya,"recommended"],{}),(e,t)=>t,(e,t,s)=>s],(e,t,s)=>(0,c.get)(e,t,(0,c.get)(e,s,[]))),wa.actions,wa.reducer,"hasConsent"),_a=(0,ua.createSlice)({name:xa,initialState:{hasConsent:!1,endpoint:""},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),va=(_a.getInitialState,_a.actions,_a.reducer,"linkParams"),ka=(0,ua.createSlice)({name:va,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),Sa=(ka.getInitialState,{selectLinkParam:(e,t,s={})=>(0,c.get)(e,`${va}.${t}`,s),selectLinkParams:e=>(0,c.get)(e,va,{})});Sa.selectLink=(0,ua.createSelector)([Sa.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],(e,t,s)=>(0,kt.addQueryArgs)(t,{...e,...s})),ka.actions,ka.reducer;const Ra=(0,ua.createSlice)({name:"myyoastConnection",initialState:{isAvailable:!1,canConnect:!1,connectUrl:null,learnMoreUrl:""},reducers:{}}),Ta=(Ra.getInitialState,Ra.actions,Ra.reducer,"notifications"),Ea=(0,ua.createSlice)({name:Ta,initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:s="default",title:o,description:i})=>({payload:{id:e||(0,ua.nanoid)(),variant:t,size:s,title:o||"",description:i}})},removeNotification:(e,{payload:t})=>(0,c.omit)(e,t)}}),ja=(Ea.getInitialState,Ea.actions,Ea.reducer,"optInNotification"),Ca=(0,ua.createSlice)({name:ja,initialState:{seen:{}},reducers:{hideOptInNotification(e,t){const s=t.payload;e.seen[s]=!0}}}),Ia=(Ca.getInitialState,Ca.actions,Ca.reducer,"pluginUrl"),La=(0,ua.createSlice)({name:Ia,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),Aa=(La.getInitialState,{selectPluginUrl:e=>(0,c.get)(e,Ia,"")});Aa.selectImageLink=(0,ua.createSelector)([Aa.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],(e,t,s)=>[(0,c.trimEnd)(e,"/"),(0,c.trim)(t,"/"),(0,c.trimStart)(s,"/")].join("/")),La.actions,La.reducer;const Pa="wistiaEmbedPermission",Da=(0,ua.createSlice)({name:Pa,initialState:{value:!1,status:ct,error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${Pa}/request`,e=>{e.status=dt}),e.addCase(`${Pa}/success`,(e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)}),e.addCase(`${Pa}/error`,(e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,c.get)(t,"error.code",500),message:(0,c.get)(t,"error.message","Unknown")}})}}),Oa=(Da.getInitialState,{selectWistiaEmbedPermission:e=>(0,c.get)(e,Pa,{value:!1,status:ct}),selectWistiaEmbedPermissionValue:e=>(0,c.get)(e,[Pa,"value"],!1),selectWistiaEmbedPermissionStatus:e=>(0,c.get)(e,[Pa,"status"],ct),selectWistiaEmbedPermissionError:e=>(0,c.get)(e,[Pa,"error"],{})}),Fa=(Da.actions,{[Pa]:async({payload:e})=>wt()({path:"/yoast/v1/wistia_embed_permission",method:"POST",data:{value:Boolean(e)}})});var qa;Da.reducer;const Ma="documentTitle",Na=(0,ua.createSlice)({name:Ma,initialState:(0,c.defaultTo)(null===(qa=document)||void 0===qa?void 0:qa.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}}),Ua=(Na.getInitialState,{selectDocumentTitle:e=>(0,c.get)(e,Ma,""),selectDocumentFullTitle:(e,{prefix:t=""}={})=>{const s=(0,c.get)(e,Ma,"");return s.startsWith(t)?s:`${t} ‹ ${s}`}});function Wa({alertKey:e}){return new Promise(t=>wpseoApi.post("alerts/dismiss",{key:e},()=>t()))}function $a({query:e,postId:t}){return new Promise(s=>{wpseoApi.get("meta/search",{query:e,post_id:t},e=>{s(e.meta)})})}Na.actions,Na.reducer;const Ba=async({countryCode:e,keyphrase:t})=>(wt()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}}),wt()({path:(0,kt.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:t,country_code:e})})),Ka=Fa[Pa];class Ha{static get titleElement(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_title":"hidden_wpseo_title")}static get descriptionElement(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_metadesc":"hidden_wpseo_desc")}static get slugElement(){return document.getElementById("yoast_wpseo_slug")}static get title(){return Ha.titleElement.value}static set title(e){Ha.titleElement.value=e}static get description(){return Ha.descriptionElement.value}static set description(e){Ha.descriptionElement.value=e}static get slug(){return Ha.slugElement.value}static set slug(e){Ha.slugElement.value=e}}const{UPDATE_DATA:Va,LOAD_SNIPPET_EDITOR_DATA:Ya}=y.actions;function za(e){if(e.hasOwnProperty("title")){let t=e.title;e.title===(0,c.get)(window,"wpseoScriptData.metabox.title_template","")&&(t=""),Ha.title=t}if(e.hasOwnProperty("description")){let t=e.description;e.description===(0,c.get)(window,"wpseoScriptData.metabox.metadesc_template","")&&(t=""),Ha.description=t}return e.hasOwnProperty("slug")&&(Ha.slug=e.slug),{type:Va,data:e}}const Ga=()=>{const e=(0,c.get)(window,"wpseoScriptData.metabox.title_template",""),t=(0,c.get)(window,"wpseoScriptData.metabox.metadesc_template","");return{type:Ya,data:{title:Ha.title||e,description:Ha.description||t,slug:Ha.slug},templates:{title:e,description:t}}},Za="yoast-measurement-element";function Qa(e){let t=document.getElementById(Za);return t||(t=function(){const e=document.createElement("div");return e.id=Za,e.style.position="absolute",e.style.left="-9999em",e.style.top=0,e.style.height=0,e.style.overflow="hidden",e.style.fontFamily="arial, sans-serif",e.style.fontSize="20px",e.style.fontWeight="400",document.body.appendChild(e),e}()),t.innerText=e,t.offsetWidth}const{getEditorDataSlug:Xa,getEditorDataTitle:Ja,getSnippetEditorDescription:el,getSnippetEditorSlug:tl,getSnippetEditorTitle:sl}=y.selectors,ol=(0,ua.createSelector)([Xa,tl,Ja,()=>(0,c.get)(window,"elementor.documents.currentDocument.id",0)],(e,t,s,o)=>t||e||(0,kt.cleanForSlug)(s)||String(o)),il=(0,ua.createSelector)([sl,el,ol],(e,t,s)=>({title:e,description:t,slug:s})),{getBaseUrlFromSettings:rl,getContentLocale:nl,getEditorDataContent:al,getFocusKeyphrase:ll,getSnippetEditorDescriptionWithTemplate:cl,getSnippetEditorTitleWithTemplate:dl,getDateFromSettings:pl}=y.selectors,ul=e=>{let t=dl(e),s=cl(e),o=ol(e);const i=rl(e);return t=Bt.strings.stripHTMLTags(L("data_page_title",t)),s=Bt.strings.stripHTMLTags(L("data_meta_desc",s)),o=o.trim().replace(/\s+/g,"-"),{text:al(e),title:t,keyword:ll(e),description:s,locale:nl(e),titleWidth:Qa(t),slug:o,permalink:i+o,date:pl(e)}};function hl(e){return(0,c.get)(e,"editorContext.postType")}const gl=(0,ua.createSelector)([hl],e=>"product"===e),ml=(0,ua.createSelector)([hl],e=>["product_cat","product_tag"].includes(e)),yl=(0,ua.createSelector)([gl,ml],(e,t)=>e||t),wl=e=>{let t=(0,c.get)(e,"editorData.excerpt","");if(""===t){const s="ja"===b()?80:156;t=Ns((0,c.get)(e,"editorData.content",""),s)}return t},fl=e=>(0,c.get)(e,"analysisData.snippet.title",""),bl=e=>(0,c.get)(e,"analysisData.snippet.description",""),xl=()=>(0,c.get)(window,"wpseoScriptData.metabox.title_template",""),_l=()=>(0,c.get)(window,"wpseoScriptData.metabox.title_template_no_fallback",""),vl=()=>(0,c.get)(window,"wpseoScriptData.metabox.social_title_template",""),kl=()=>(0,c.get)(window,"wpseoScriptData.metabox.metadesc_template",""),Sl=()=>(0,c.get)(window,"wpseoScriptData.metabox.social_description_template",""),Rl=e=>{let t="";return(0,c.get)(e,"snippetEditor.replacementVariables",[]).forEach(e=>{"excerpt"===e.name&&(t=e.value)}),t},Tl=e=>(0,c.get)(e,"facebookEditor.title",""),El=e=>(0,c.get)(e,"facebookEditor.description",""),jl=(0,ua.createSelector)([vl,fl,_l,xl],(...e)=>e.find(Boolean)||""),Cl=((0,ua.createSelector)([Tl,jl],(e,t)=>e||t),(0,ua.createSelector)([Sl,bl,kl,Rl,wl],(...e)=>{var t;return null!==(t=e.find(Boolean))&&void 0!==t?t:""})),Il=((0,ua.createSelector)([El,Cl],(e,t)=>e||t),(e,t,s=null)=>(0,c.get)(e,`preferences.${t}`,s)),Ll=e=>Il(e,"isWooCommerceActive",!1),Al=e=>Il(e,"isWooCommerceSeoActive",!1);(0,ua.createSelector)([Al,Ll,yl],(e,t,s)=>!e&&t&&s),(0,ua.createSelector)([Al,Ll,ml],(e,t,s)=>!e&&t&&s),(0,ua.createSelector)([yl,Ll],(e,t)=>t&&e);const Pl=(0,ua.createSelector)([vl,Tl,fl,_l,xl],(...e)=>e.find(Boolean)||""),Dl=((0,ua.createSelector)([e=>(0,c.get)(e,"twitterEditor.title",""),Pl],(e,t)=>e||t),(0,ua.createSelector)([Sl,El,bl,kl,Rl,wl],(...e)=>{var t;return null!==(t=e.find(Boolean))&&void 0!==t?t:""}));(0,ua.createSelector)([e=>(0,c.get)(e,"twitterEditor.description",""),Dl],(e,t)=>e||t);const{selectAdminUrl:Ol,selectAdminLink:Fl}=ma,{selectLinkParams:ql,selectLinkParam:Ml,selectLink:Nl}=Sa,{selectDocumentFullTitle:Ul}=Ua,{selectPluginUrl:Wl,selectImageLink:$l}=Aa,{selectWistiaEmbedPermission:Bl,selectWistiaEmbedPermissionValue:Kl,selectWistiaEmbedPermissionStatus:Hl,selectWistiaEmbedPermissionError:Vl}=Oa,Yl=(0,ua.createSelector)([e=>(0,c.get)(e,"settings.snippetEditor.baseUrl",""),ol],(e,t)=>e+t),zl={name:"author_first_name",label:"Author first name",placeholder:"%%author_first_name%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_first_name","")},regexp:new RegExp("%%author_first_name%%","g")},Gl={name:"author_last_name",label:"Author last name",placeholder:"%%author_last_name%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_last_name","")},regexp:new RegExp("%%author_last_name%%","g")},Zl={name:"currentdate",label:"Current date",placeholder:"%%currentdate%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentdate","")},regexp:new RegExp("%%currentdate%%","g")},Ql={name:"currentday",label:"Current day",placeholder:"%%currentday%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentday","")},regexp:new RegExp("%%currentday%%","g")},Xl={name:"currentmonth",label:"Current month",placeholder:"%%currentmonth%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentmonth","")},regexp:new RegExp("%%currentmonth%%","g")},Jl={name:"category",label:"Category",placeholder:"%%category%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category","")},regexp:new RegExp("%%category%%","g")},ec={name:"category_title",label:"Category Title",placeholder:"%%category_title%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category_title","")},regexp:new RegExp("%%category_title%%","g")},tc={name:"currentyear",label:"Current year",placeholder:"%%currentyear%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentyear","")},regexp:new RegExp("%%currentyear%%","g")},sc={name:"date",label:"Date",placeholder:"%%date%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.date","")},regexp:new RegExp("%%date%%","g")},oc={name:"excerpt",label:"Excerpt",placeholder:"%%excerpt%%",aliases:[{name:"excerpt_only",label:"Excerpt only",placeholder:"%%excerpt_only%%"}],getReplacement:function(){return(0,a.select)("yoast-seo/editor").getEditorDataExcerptWithFallback()},regexp:new RegExp("%%excerpt%%|%%excerpt_only%%","g")},ic={name:"focuskw",label:"Focus keyphrase",placeholder:"%%focuskw%%",aliases:[],getReplacement:function(){return(0,a.select)("yoast-seo/editor").getFocusKeyphrase()},regexp:new RegExp("%%focuskw%%|%%keyword%%","g")},rc={name:"id",label:"ID",placeholder:"%%id%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.id","")},regexp:new RegExp("%%id%%","g")},nc={name:"modified",label:"Modified",placeholder:"%%modified%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.modified","")},regexp:new RegExp("%%modified%%","g")},ac={name:"name",label:"Name",placeholder:"%%name%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.name","")},regexp:new RegExp("%%name%%","g")},lc={name:"page",label:"Page",placeholder:"%%page%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.page","")},regexp:new RegExp("%%page%%","g")},cc={name:"pagenumber",label:"Pagenumber",placeholder:"%%pagenumber%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagenumber","")},regexp:new RegExp("%%pagenumber%%","g")},dc={name:"pagetotal",label:"Pagetotal",placeholder:"%%pagetotal%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagetotal","")},regexp:new RegExp("%%pagetotal%%","g")},pc={name:"permalink",label:"Permalink",placeholder:"%%permalink%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.permalink","")},regexp:new RegExp("%%permalink%%","g")},uc={name:"post_content",label:"Post Content",placeholder:"%%post_content%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_content","")},regexp:new RegExp("%%post_content%%","g")},hc={name:"post_day",label:"Post Day",placeholder:"%%post_day%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_day","")},regexp:new RegExp("%%post_day%%","g")},gc={name:"post_month",label:"Post Month",placeholder:"%%post_month%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_month","")},regexp:new RegExp("%%post_month%%","g")},mc={name:"post_year",label:"Post Year",placeholder:"%%post_year%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_year","")},regexp:new RegExp("%%post_year%%","g")},yc={name:"pt_plural",label:"Post type (plural)",placeholder:"%%pt_plural%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_plural","")},regexp:new RegExp("%%pt_plural%%","g")},wc={name:"pt_single",label:"Post type (singular)",placeholder:"%%pt_single%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_single","")},regexp:new RegExp("%%pt_single%%","g")},fc={name:"primary_category",label:"Primary category",placeholder:"%%primary_category%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.primary_category","")},regexp:new RegExp("%%primary_category%%","g")},bc={name:"searchphrase",label:"Search phrase",placeholder:"%%searchphrase%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.searchphrase","")},regexp:new RegExp("%%searchphrase%%","g")},xc={name:"sep",label:"Separator",placeholder:"%%sep%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sep","")},regexp:new RegExp("%%sep%%(\\s*%%sep%%)*","g")},_c={name:"sitedesc",label:"Tagline",placeholder:"%%sitedesc%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitedesc","")},regexp:new RegExp("%%sitedesc%%","g")},vc={name:"sitename",label:"Site title",placeholder:"%%sitename%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitename","")},regexp:new RegExp("%%sitename%%","g")},kc={name:"tag",label:"Tag",placeholder:"%%tag%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.tag","")},regexp:new RegExp("%%tag%%","g")},Sc={name:"term404",label:"Term404",placeholder:"%%term404%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term404","")},regexp:new RegExp("%%term404%%","g")},Rc={name:"term_description",label:"Term description",placeholder:"%%term_description%%",aliases:[{name:"tag_description",label:"Tag description",placeholder:"%%tag_description%%"},{name:"category_description",label:"Category description",placeholder:"%%category_description%%"}],getReplacement:function(){return(0,c.get)(window,"YoastSEO.app.rawData.text","")},regexp:new RegExp("%%term_description%%|%%tag_description%%|%%category_description%%","g")},Tc={name:"term_hierarchy",label:"Term hierarchy",placeholder:"%%term_hierarchy%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_hierarchy","")},regexp:new RegExp("%%term_hierarchy%%","g")},Ec={name:"term_title",label:"Term title",placeholder:"%%term_title%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_title","")},regexp:new RegExp("%%term_title%%","g")},jc={name:"title",label:"Title",placeholder:"%%title%%",aliases:[],getReplacement:function(){return(0,a.select)("yoast-seo/editor").getEditorDataTitle()},regexp:new RegExp("%%title%%","g")},Cc={name:"user_description",label:"User description",placeholder:"%%user_description%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.user_description","")},regexp:new RegExp("%%user_description%%","g")};var Ic={source:"wpseoScriptData.analysis.plugins.replaceVars",scope:[],aliases:[]},Lc=function(e,t,s){this.placeholder=e,this.replacement=t,this.options=(0,c.defaults)(s,Ic)};Lc.prototype.getPlaceholder=function(e){return(e=e||!1)&&this.hasAlias()?this.placeholder+"|"+this.getAliases().join("|"):this.placeholder},Lc.prototype.setSource=function(e){this.options.source=e},Lc.prototype.hasScope=function(){return!(0,c.isEmpty)(this.options.scope)},Lc.prototype.addScope=function(e){this.hasScope()||(this.options.scope=[]),this.options.scope.push(e)},Lc.prototype.inScope=function(e){return!this.hasScope()||(0,c.indexOf)(this.options.scope,e)>-1},Lc.prototype.hasAlias=function(){return!(0,c.isEmpty)(this.options.aliases)},Lc.prototype.addAlias=function(e){this.hasAlias()||(this.options.aliases=[]),this.options.aliases.push(e)},Lc.prototype.getAliases=function(){return this.options.aliases};const Ac=Lc,Pc="replaceVariablePlugin";let Dc=null,Oc=null;const Fc=e=>{["content","title","snippet_title","snippet_meta","primary_category","data_page_title","data_meta_desc","excerpt"].forEach(t=>{C(t,e,Pc,10)})},qc=(e="")=>{switch(""===e&&(e=(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.scope","")),e){case"post":case"page":return["authorFirstName","authorLastName","category","categoryTitle","currentDate","currentDay","currentMonth","currentYear","date","excerpt","id","focusKeyphrase","modified","name","page","primaryCategory","pageNumber","pageTotal","permalink","postContent","postDay","postMonth","postYear","postTypeNamePlural","postTypeNameSingular","searchPhrase","separator","siteDescription","siteName","tag","title","userDescription"]}return[]},Mc=e=>Fc(t=>t.replace(new RegExp(e.placeholder,"g"),e.replacement)),Nc=()=>{if(null===Oc){Oc=[];const e=(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.hidden_replace_vars",[]);(null===Dc&&(Dc=qc().map(e=>null==n?void 0:n[e]).filter(Boolean)),Dc).forEach(t=>{const s=e.includes(t.name);Oc.push({name:t.name,label:t.label,value:t.placeholder,hidden:s}),t.aliases.forEach(e=>{Oc.push({name:e.name,label:e.label,value:e.placeholder,hidden:s})})})}return Oc};const Uc={content:"",title:"",excerpt:"",slug:"",imageUrl:"",featuredImage:"",contentImage:"",excerptOnly:""};function Wc(e=elementor.documents.getCurrent()){var t,s;let o=null===(t=e.$element)||void 0===t?void 0:t.find(".elementor-widget-container");var i;return null!==(s=o)&&void 0!==s&&s.length||(o=null===(i=e.$element)||void 0===i?void 0:i.find(".elementor-widget").children().not(".elementor-background-overlay, .elementor-element-overlay, .ui-resizable-handle")),o}function $c(e,t=!1){let s=elementor.settings.page.model.get("post_excerpt");return t?s||"":(s||(s=Ns(e,"ja"===b()?80:156)),s)}function Bc(){const e=elementor.documents.getCurrent();if(!Te())return;if(!["wp-post","wp-page"].includes(e.config.type))return;if((0,a.select)("yoast-seo/editor").getActiveMarker())return;const t=function(e){const t=function(e){var t;const s=[];return null===(t=Wc(e))||void 0===t||t.each((e,t)=>{const o=t.innerHTML.replace(/[\n\t]/g,"").trim();s.push(o)}),s.join("")}(e),s=(0,c.get)(elementor.settings.page.model.get("post_featured_image"),"url",""),o=function(e){const t=d.languageProcessing.imageInText(e);if(0===t.length)return"";const s=jQuery.parseHTML(t.join(""));for(const e of s)if(e.src)return e.src;return""}(t);return{content:t,title:elementor.settings.page.model.get("post_title"),excerpt:$c(t),excerptOnly:$c(t,!0),imageUrl:s||o,featuredImage:s,contentImage:o,status:elementor.settings.page.model.get("post_status")}}(e);t.content!==Uc.content&&(Uc.content=t.content,(0,a.dispatch)("yoast-seo/editor").setEditorDataContent(Uc.content)),t.title!==Uc.title&&(Uc.title=t.title,(0,a.dispatch)("yoast-seo/editor").setEditorDataTitle(Uc.title)),t.excerpt!==Uc.excerpt&&(Uc.excerpt=t.excerpt,Uc.excerptOnly=t.excerptOnly,(0,a.dispatch)("yoast-seo/editor").setEditorDataExcerpt(Uc.excerpt),(0,a.dispatch)("yoast-seo/editor").updateReplacementVariable("excerpt",Uc.excerpt),(0,a.dispatch)("yoast-seo/editor").updateReplacementVariable("excerpt_only",Uc.excerptOnly)),t.imageUrl!==Uc.imageUrl&&(Uc.imageUrl=t.imageUrl,(0,a.dispatch)("yoast-seo/editor").setEditorDataImageUrl(Uc.imageUrl)),t.contentImage!==Uc.contentImage&&(Uc.contentImage=t.contentImage,(0,a.dispatch)("yoast-seo/editor").setContentImage(Uc.contentImage)),t.featuredImage!==Uc.featuredImage&&(Uc.featuredImage=t.featuredImage,(0,a.dispatch)("yoast-seo/editor").updateData({snippetPreviewImageURL:Uc.featuredImage}))}function Kc(){Wc().each((e,t)=>{-1!==t.innerHTML.indexOf("<yoastmark")&&(t.innerHTML=d.markers.removeMarks(t.innerHTML))}),(0,a.dispatch)("yoast-seo/editor").setActiveMarker(null),(0,a.dispatch)("yoast-seo/editor").setMarkerPauseStatus(!1),YoastSEO.analysis.applyMarks(new d.Paper("",{}),[])}const Hc=(0,c.debounce)(Bc,500);function Vc(e,t){const{updateWordsToHighlight:s}=(0,a.dispatch)("yoast-seo/editor");e("morphology",new d.Paper("",{keyword:t})).then(({result:{keyphraseForms:e}})=>{s((0,c.uniq)((0,c.flatten)(e)))}).catch(()=>{s([])})}const Yc=(0,c.debounce)(Vc,500);var zc=jQuery;function Gc(e,t,s,o,i){this._scriptUrl=o,this._options={usedKeywords:t.keyword_usage,usedKeywordsPostTypes:t.keyword_usage_post_types,searchUrl:t.search_url,postUrl:t.post_edit_url},this._keywordUsage=t.keyword_usage,this._usedKeywordsPostTypes=t.keyword_usage_post_types,this._postID=zc("#post_ID, [name=tag_ID]").val(),this._taxonomy=zc("[name=taxonomy]").val()||"",this._nonce=i,this._ajaxAction=e,this._refreshAnalysis=s,this._initialized=!1}function Zc(){window.YoastSEO=window.YoastSEO||{},window.YoastSEO.store=function(){const{snapshotReducer:s,takeSnapshot:n,restoreSnapshot:l}=(e=>{let t,s=!1,o=!1;return{snapshotReducer:(o=void 0,i)=>s?(s=!1,t):e(o,i),takeSnapshot:(e,s)=>{s({type:"CREATE_SNAPSHOT"}),t=(0,c.cloneDeep)(e()),o=!0},restoreSnapshot:e=>{o&&(s=!0,e({type:"RESTORE_SNAPSHOT"}))}}})((0,a.combineReducers)(y.reducers)),{freezeReducer:d,toggleFreeze:p}=(e=>{let t=!1,s=null;return{freezeReducer:(o=void 0,i)=>t?s:e(o,i),toggleFreeze:(e,o=!t)=>{s=o?(0,c.cloneDeep)(e()):null,t=Boolean(o)}}})(s),u=(0,a.registerStore)("yoast-seo/editor",{reducer:d,selectors:{...y.selectors,...i,...o,...r},actions:(0,c.pickBy)({...y.actions,...t},e=>"function"==typeof e),controls:e,initialState:{snippetEditor:{mode:"mobile",data:{title:"",description:"",slug:""},wordsToHighlight:[],replacementVariables:[{name:"date",label:(0,Ce.__)("Date","wordpress-seo"),value:""},{name:"id",label:(0,Ce.__)("ID","wordpress-seo"),value:""},{name:"page",label:(0,Ce.__)("Page","wordpress-seo"),value:""},{name:"searchphrase",label:(0,Ce.__)("Search phrase","wordpress-seo"),value:""},{name:"sitedesc",label:(0,Ce.__)("Tagline","wordpress-seo"),value:""},{name:"sitename",label:(0,Ce.__)("Site title","wordpress-seo"),value:""},{name:"category",label:(0,Ce.__)("Category","wordpress-seo"),value:""},{name:"focuskw",label:(0,Ce.__)("Focus keyphrase","wordpress-seo"),value:""},{name:"title",label:(0,Ce.__)("Title","wordpress-seo"),value:""},{name:"parent_title",label:(0,Ce.__)("Parent title","wordpress-seo"),value:""},{name:"excerpt",label:(0,Ce.__)("Excerpt","wordpress-seo"),value:""},{name:"primary_category",label:(0,Ce.__)("Primary category","wordpress-seo"),value:""},{name:"sep",label:(0,Ce.__)("Separator","wordpress-seo"),value:""},{name:"excerpt_only",label:(0,Ce.__)("Excerpt only","wordpress-seo"),value:""},{name:"category_description",label:(0,Ce.__)("Category description","wordpress-seo"),value:""},{name:"tag_description",label:(0,Ce.__)("Tag description","wordpress-seo"),value:""},{name:"term_description",label:(0,Ce.__)("Term description","wordpress-seo"),value:""},{name:"currentyear",label:(0,Ce.__)("Current year","wordpress-seo"),value:""}],uniqueRefreshValue:"",templates:{title:"",description:""},isLoading:!0,replacementVariables:Nc()}}});return(e=>{e.dispatch(y.actions.loadCornerstoneContent()),e.dispatch(y.actions.loadFocusKeyword()),e.dispatch(y.actions.setMarkerStatus(window.wpseoScriptData.metabox.elementorMarkerStatus)),e.dispatch(y.actions.setSettings({socialPreviews:{sitewideImage:window.wpseoScriptData.sitewideSocialImage,siteName:window.wpseoScriptData.metabox.site_name,contentImage:window.wpseoScriptData.metabox.first_content_image,twitterCardType:window.wpseoScriptData.metabox.twitterCardType},snippetEditor:{baseUrl:window.wpseoScriptData.metabox.base_url,date:window.wpseoScriptData.metabox.metaDescriptionDate,recommendedReplacementVariables:window.wpseoScriptData.analysis.plugins.replaceVars.recommended_replace_vars,siteIconUrl:window.wpseoScriptData.metabox.siteIconUrl}}));const{facebook:t,twitter:s}=window.wpseoScriptData.metabox.showSocial;t&&e.dispatch(y.actions.loadFacebookPreviewData()),s&&e.dispatch(y.actions.loadTwitterPreviewData()),e.dispatch(y.actions.setSEMrushChangeCountry(window.wpseoScriptData.metabox.countryCode)),e.dispatch(y.actions.setSEMrushLoginStatus(window.wpseoScriptData.metabox.SEMrushLoginStatus)),e.dispatch(y.actions.setWincherLoginStatus(window.wpseoScriptData.metabox.wincherLoginStatus,!1)),e.dispatch(y.actions.setWincherWebsiteId(window.wpseoScriptData.metabox.wincherWebsiteId)),e.dispatch(y.actions.setWincherAutomaticKeyphaseTracking(window.wpseoScriptData.metabox.wincherAutoAddKeyphrases)),e.dispatch(y.actions.setDismissedAlerts((0,c.get)(window,"wpseoScriptData.dismissedAlerts",{}))),e.dispatch(y.actions.setCurrentPromotions((0,c.get)(window,"wpseoScriptData.currentPromotions",{}))),e.dispatch(y.actions.setIsPremium(Boolean((0,c.get)(window,"wpseoScriptData.metabox.isPremium",!1)))),e.dispatch(y.actions.setAdminUrl((0,c.get)(window,"wpseoScriptData.adminUrl",""))),e.dispatch(y.actions.setLinkParams((0,c.get)(window,"wpseoScriptData.linkParams",{}))),e.dispatch(y.actions.setPluginUrl((0,c.get)(window,"wpseoScriptData.pluginUrl",""))),e.dispatch(y.actions.setWistiaEmbedPermissionValue("1"===(0,c.get)(window,"wpseoScriptData.wistiaEmbedPermission",!1)));const o=document.getElementById("yoast_wpseo_slug");o&&e.dispatch(y.actions.setEditorDataSlug(o.value))})(u),u._freeze=p.bind(null,u.getState),u._takeSnapshot=n.bind(null,u.getState,u.dispatch),u._restoreSnapshot=l.bind(null,u.dispatch),u}(),function(){var e;const t=null===(e=window.wpseoScriptData)||void 0===e?void 0:e.isElementorV4Atomic;return!0===t||"1"===t}()||function(){ke("panel/editor/open","yoast-seo/marks/reset-on-edit",(0,c.debounce)(Kc,500),Te),ke("document/save/save","yoast-seo/marks/reset-on-save",Kc,({document:e})=>Re((null==e?void 0:e.id)||elementor.documents.getCurrent().id));const e=(e=>{const t=new MutationObserver(e);return(e=document)=>(t.observe(e,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),()=>t.disconnect())})(Hc);let t=c.noop;ve("editor/documents/close","yoast-seo/content-scraper/stop",()=>{t(),t=c.noop,Hc.cancel()},({id:e})=>Re(e)),ve("editor/documents/attach-preview","yoast-seo/content-scraper/start",()=>{t=e()},Te),ve("document/save/set-is-modified","yoast-seo/content-scraper/on-modified",Hc,({document:e})=>Re((null==e?void 0:e.id)||elementor.documents.getCurrent().id)),Bc()}(),window.YoastSEO.pluginReady=E,window.YoastSEO.pluginReloaded=j,window.YoastSEO.registerModification=C,window.YoastSEO.registerPlugin=I,window.YoastSEO.applyModifications=L,window.YoastSEO.analysis=window.YoastSEO.analysis||{},window.YoastSEO.analysis.run=(0,a.dispatch)("yoast-seo/editor").runAnalysis,window.YoastSEO.analysis.worker=function(){const{getAnalysisTimestamp:e,isCornerstoneContent:t}=(0,a.select)("yoast-seo/editor"),s=function(){const e=(0,c.get)(window,["wpseoScriptData","analysis","worker","url"],"analysis-worker.js"),t=(0,d.createWorker)(e),s=(0,c.get)(window,["wpseoScriptData","analysis","worker","dependencies"],[]),o=[];for(const e in s){if(!Object.prototype.hasOwnProperty.call(s,e))continue;const t=window.document.getElementById(`${e}-js-translations`);if(!t)continue;const i=t.innerHTML.slice(214),r=i.indexOf(","),n=i.slice(0,r-1);try{const e=/}}\s*\);/.exec(i).index+2,t=JSON.parse(i.slice(r+1,e));o.push([n,t])}catch(t){console.warn(`Failed to parse translation data for ${e} to send to the Yoast SEO worker`);continue}}return t.postMessage({dependencies:s,translations:o}),new d.AnalysisWorkerWrapper(t)}();s.initialize(function(e={}){const t={locale:b(),contentAnalysisActive:x(),keywordAnalysisActive:_(),inclusiveLanguageAnalysisActive:v(),defaultQueryParams:(0,c.get)(window,["wpseoAdminL10n","default_query_params"],{}),logLevel:(0,c.get)(window,["wpseoScriptData","analysis","worker","log_level"],"ERROR"),enabledFeatures:(0,k.enabledFeatures)()};return(0,c.merge)(t,e)}({useCornerstone:t(),marker:te()})).catch(m),window.YoastSEO.analysis.applyMarks=(e,t)=>te()(e,t);let o=oe(),i=t(),r=e();return(0,a.subscribe)(()=>{const n=t(),a=oe(),l=e();if(n!==i)return i=n,o=a,void s.initialize({useCornerstone:n}).then(()=>se(s,a)).catch(m);l===r&&!1!==(0,c.isEqual)(a,o)||(o=a,r=l,se(s,a))}),s}(),window.YoastSEO.analysis.collectData=oe,I(Pc,{status:"ready"}),qc().forEach(e=>{const t=null==n?void 0:n[e];if(t){const e=(({getReplacement:e,regexp:t})=>s=>s.replace(t,e()))(t);Fc(e)}}),window.YoastSEO.wp=window.YoastSEO.wp||{},window.YoastSEO.wp.replaceVarsPlugin={addReplacement:Mc,ReplaceVar:Ac},function(){const e=f(),t=(0,c.get)(window,["wpseoScriptData","analysis","worker","keywords_assessment_url"],"used-keywords-assessment.js"),s=(0,c.get)(window,["wpseoScriptData","usedKeywordsNonce"],""),o=new Gc("get_focus_keyword_usage_and_post_types",e,(0,a.dispatch)("yoast-seo/editor").runAnalysis,t,s);o.init();let i="";(0,a.subscribe)(()=>{const e=(0,a.select)("yoast-seo/editor").getFocusKeyphrase();e!==i&&(i=e,o.setKeyword(e))})}(),(()=>{if((0,a.select)("yoast-seo/editor").getPreference("isInsightsEnabled",!1))(0,a.dispatch)("yoast-seo/editor").loadEstimatedReadingTime(),(0,a.subscribe)((0,c.debounce)(ie(),1500,{maxWait:3e3}))})(),function(e){const{getFocusKeyphrase:t}=(0,a.select)("yoast-seo/editor");let s=t();Vc(e,s),(0,a.subscribe)(()=>{const o=t();s!==o&&(s=o,Yc(e,o))})}(window.YoastSEO.analysis.worker.runResearch),"1"===window.wpseoScriptData.isAlwaysIntroductionV2||window.elementorFrontend.config.experimentalFeatures.editor_v2?function(){var e,t,s,o;const i="yoast-introduction-editor-v2";if(null!==(e=window.elementor)&&void 0!==e&&null!==(t=e.config)&&void 0!==t&&null!==(s=t.user)&&void 0!==s&&null!==(o=s.introduction)&&void 0!==o&&o[i])return;const r=new window.elementorModules.editor.utils.Introduction({introductionKey:i,dialogType:"buttons",dialogOptions:{id:i,className:"elementor-right-click-introduction yoast-elementor-introduction",headerMessage:(0,Ce.__)("Yoast SEO for Elementor","wordpress-seo"),message:(0,Ce.__)("Get started with Yoast SEO's content analysis for Elementor!","wordpress-seo"),position:{my:"center top",at:"center bottom+12",autoRefresh:!0,using(e,t){const s=t.target.left-t.element.left+t.target.width/2-8;this.style.setProperty("--yoast-elementor-introduction-arrow",s+"px");const o=t.target.element.closest("#elementor-panel-inner header"),i=o?o.offsetHeight:0;i&&i>e.top-12?this.style.top=i+20+"px":this.style.top=e.top+"px",this.style.left=e.left+"px"}},hide:{onOutsideClick:!1}},onDialogInitCallback(e){window.$e.routes.on("run:after",(t,s)=>{r.introductionViewed||"panel/elements/yoast-seo-tab"!==s&&s.startsWith("panel/elements")||(e.hide(),r.setViewed())}),window.elementor.channels.dataEditMode.on("switch",t=>{"preview"!==t||r.introductionViewed||(e.hide(),r.setViewed())}),e.addButton({name:"ok",text:(0,Ce.__)("Got it","wordpress-seo"),classes:"elementor-button elementor-button-success",callback:()=>{e.hide(),r.setViewed()}})}});setTimeout(function e(){if(r.introductionViewed)return;const t=document.querySelector("button[data-tab='yoast-seo-tab']");t?(r.getDialog().setSettings("position",{...r.getDialog().getSettings("position"),of:t}),r.show(t)):setTimeout(e,100)},100)}():function(){if(!0===window.elementor.config.user.introduction["yoast-introduction"])return;const e=new window.elementorModules.editor.utils.Introduction({introductionKey:"yoast-introduction",dialogOptions:{id:"yoast-introduction",className:"elementor-right-click-introduction yoast-elementor-introduction",headerMessage:(0,Ce.__)("New: Yoast SEO for Elementor","wordpress-seo"),message:(0,Ce.__)("Get started with Yoast SEO's content analysis for Elementor!","wordpress-seo"),position:{my:"left top",at:"right top",autoRefresh:!0},hide:{onOutsideClick:!1}},onDialogInitCallback:t=>{window.$e.routes.on("run:after",function(e,s){"panel/menu"===s&&t.getElements("ok").trigger("click")}),t.addButton({name:"ok",text:(0,Ce.__)("Got it","wordpress-seo"),callback:()=>e.setViewed()}),t.getElements("ok").addClass("elementor-button elementor-button-success")}});setTimeout(function t(){try{e.show(window.elementor.getPanelView().header.currentView.ui.menuButton[0])}catch(e){setTimeout(t,100)}},100)}(),pa(),Se("editor/documents/load","yoast-seo/add-elements-tab",ta,({config:e})=>Re(e.id)),window.elementor.hooks.addFilter("panel/elements/regionViews",sa),window.$e&&window.$e.routes&&window.$e.routes.on("run:after",(e,t)=>{t===`${Xn}/${Qn}`&&ea()}),ta(),(0,l.doAction)("yoast.elementor.loaded")}Gc.prototype.init=function(){const{worker:e}=window.YoastSEO.analysis;this.requestKeywordUsage=(0,c.debounce)(this.requestKeywordUsage.bind(this),500),e.loadScript(this._scriptUrl).then(()=>{e.sendMessage("initialize",this._options,"used-keywords-assessment")}).then(()=>{this._initialized=!0,(0,c.isEqual)(this._options.usedKeywords,this._keywordUsage)?this._refreshAnalysis():e.sendMessage("updateKeywordUsage",this._keywordUsage,"used-keywords-assessment").then(()=>this._refreshAnalysis())}).catch(e=>console.error(e))},Gc.prototype.setKeyword=function(e){(0,c.has)(this._keywordUsage,e)||this.requestKeywordUsage(e)},Gc.prototype.requestKeywordUsage=function(e){zc.post(ajaxurl,{action:this._ajaxAction,post_id:this._postID,keyword:e,taxonomy:this._taxonomy,nonce:this._nonce},this.updateKeywordUsage.bind(this,e),"json")},Gc.prototype.updateKeywordUsage=function(e,t){const{worker:s}=window.YoastSEO.analysis,o=t.keyword_usage,i=t.post_types;o&&(0,c.isArray)(o)&&(this._keywordUsage[e]=o,this._usedKeywordsPostTypes[e]=i,this._initialized&&s.sendMessage("updateKeywordUsage",{usedKeywords:this._keywordUsage,usedKeywordsPostTypes:this._usedKeywordsPostTypes},"used-keywords-assessment").then(()=>this._refreshAnalysis()))},jQuery(window).on("elementor:init",()=>{window.elementor.on("panel:init",()=>{setTimeout(Zc)})})})()})();