%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/businessmultisite/wp-content/plugins/wordpress-seo/js/dist/
Upload File :
Create Path :
Current File : /var/www/businessmultisite/wp-content/plugins/wordpress-seo/js/dist/elementor.js

!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=207)}([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.yoast.componentsNew},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.yoast.styledComponents},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.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=window.regeneratorRuntime},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.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},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),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=window.yoast.helpers},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.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(46);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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(34).default,a=n(10);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return a(e)},e.exports.__esModule=!0,e.exports.default=e.exports},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},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=window.yoast.externals.redux},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.wp.components},,function(e,t){e.exports=window.yoast.styleGuide},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,n){var r=n(70),a=n(71),o=n(41),i=n(72);e.exports=function(e){return r(e)||a(e)||o(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},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},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(60),a=n(61),o=n(41),i=n(62);e.exports=function(e,t){return r(e)||a(e,t)||o(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=window.yoast.analysis},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){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(96)),i=s(n(99));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,h,m,f=[],g={};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}f.push(n[p.value])}else f.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),h=e(t.slice(l+1,u),n),s=a.default.cloneElement(i,{},h),f.push(s),u<t.length-1&&(m=e(t.slice(u+1),n),f=f.concat(m))),1===f.length?f[0]:(f.forEach((function(e,t){e&&(g["interpolation-child-"+t]=e)})),(0,o.default)(g))}(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(15),a=n.n(r),o=n(9),i=n.n(o),s=n(38),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 e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},,function(e,t){e.exports=window.yoast.replacementVariableEditor},function(e,t,n){var r=n(84);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},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=window.wp.apiFetch},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},,function(e,t,n){var r=n(39);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},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 h})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return b}));var r=n(15),a=n.n(r),o=n(9),i=n.n(o),s=n(3),c=n(32);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 h(){return m.apply(this,arguments)}function m(){return(m=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 f(e){return g.apply(this,arguments)}function g(){return(g=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 b(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(14),i=n(12),s=n.n(i),c=n(13),l=n.n(c),u=n(10),p=n.n(u),d=n(16),h=n.n(d),m=n(17),f=n.n(m),g=n(11),b=n.n(g),y=n(8),w=n.n(y),v=n(0),O=n(4),j=n.n(O),x=n(1),k=n.n(x),E=n(7),_=n.n(E),R=_.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"})),T=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)(R,{"aria-hidden":"true"},Object(v.createElement)("span",null,t)))};T.propTypes={siteUrl:k.a.string.isRequired};var S,C,P,D=T,L=n(15),A=n.n(L),I=n(9),q=n.n(I),M=n(2),F=n(23),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})),U=_.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"]))),W=_.a.div(P||(P=w()(["\n\tpadding-bottom: ","%;\n"])),(function(e){return e.aspectRatio})),K=function(e){var t=e.imageProps,n=e.width,r=e.height;return"landscape"===e.imageMode?Object(v.createElement)(W,{aspectRatio:t.aspectRatio},Object(v.createElement)(U,{src:t.src,alt:t.alt})):Object(v.createElement)(N,{src:t.src,alt:t.alt,width:n,height:r,imageProperties:t})};K.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},K.defaultProps={imageMode:"landscape"};var H,B,V={squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},Y={squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}};function z(e){var t=Y.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?V:Y}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=z(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(H||(H=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"])),Y.landscapeWidth,Y.landscapeHeight,F.colors.$color_grey),re=function(e){h()(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=b()(n);if(r){var a=b()(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return f()(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:Y.squareHeight+"px",width:Y.squareWidth+"px"};case"portrait":return{height:Y.portraitHeight+"px",width:Y.portraitWidth+"px"};case"landscape":return{height:Y.landscapeHeight+"px",width:Y.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)(K,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:Y.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"})),he=_.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"})),me=function(e){h()(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=b()(t);if(n){var a=b()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return f()(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)(he,{mode:t},Object(v.createElement)(D,{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);me.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},me.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:function(){},onImageClick:function(){},onMouseHover:function(){}};var fe,ge=me,be=_.a.div(fe||(fe=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)(be,null,Object(v.createElement)("span",null,e.siteUrl))};ye.propTypes={siteUrl:k.a.string.isRequired};var we,ve,Oe,je=ye;var xe,ke=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e?"\n\t\t\tmax-width: ".concat(V.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(V.squareWidth,"px;\n\t\t").concat(t?"border-right: 1px solid #E1E8ED;":"","\n\t\tborder-radius: 14px 0 0 14px;\n\t\t")},Ee=_.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)})),Re=_()(_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(V.landscapeHeight,"px;")}),(function(e){return e.isLarge?"border-top-right-radius":"border-bottom-left-radius"})),Te=function(e){h()(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=b()(n);if(r){var a=b()(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return f()(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)(Re,{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)(Ee,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},Object(v.createElement)(K,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:V.aspectRatio},width:n.width,height:n.height,imageMode:n.mode}))}}]),o}(j.a.Component);Te.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},Te.defaultProps={src:"",alt:"",onMouseEnter:a.noop,onImageClick:a.noop,onMouseLeave:a.noop};var Se=_.a.div(xe||(xe=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,De,Le,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(De||(De=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"])),V.landscapeWidth);var Ne=_.a.div(Le||(Le=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']))),Ue=_()(Ne)(Ae||(Ae=w()(["\n\tflex-direction: column;\n\tmax-height: 370px;\n"]))),We=_()(Ne)(Ie||(Ie=w()(["\n\tflex-direction: row;\n\theight: 125px;\n"]))),Ke=function(e){h()(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=b()(t);if(n){var a=b()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return f()(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?Ue:We;return Object(v.createElement)(c,{id:"twitterPreview"},Object(v.createElement)(Te,{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);Ke.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},Ke.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:function(){},onImageClick:function(){},onMouseHover:function(){},isLarge:!0};var He=Ke,Be=n(5),Ve=n(63),Ye=n(36);var ze=function(e){h()(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=b()(t);if(n){var a=b()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return f()(this,e)});function a(e){var t;return s()(this,a),(t=r.call(this,e)).state={activeField:"",hoveredField:""},t.SocialPreview="Facebook"===e.socialMediumName?ge:He,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,h=e.alt,m=e.title,f=e.titleInputPlaceholder,g=e.titlePreviewFallback,b=e.replacementVariables,y=e.recommendedReplacementVariables,w=e.applyReplacementVariables,O=e.isPremium,x=e.isLarge,k=e.socialPreviewLabel,E=e.idSuffix,_=e.activeMetaTabId,R=w({title:m||g,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:R.title,description:R.description,imageUrl:p,imageFallbackUrl:d,alt:h,isLarge:x,activeMetaTabId:_}),Object(v.createElement)(Ve.SocialMetadataPreviewForm,{onDescriptionChange:t,socialMediumName:o,title:m,titleInputPlaceholder:f,onRemoveImageClick:a,imageSelected:!!p,imageUrl:p,onTitleChange:n,onSelectImageClick:r,description:c,descriptionInputPlaceholder:l,imageWarnings:i,replacementVariables:b,recommendedReplacementVariables:y,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:O,setEditorRef:this.setEditorRef,idSuffix:E}))}}]),a}(O.Component);ze.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:Ye.replacementVariablesShape,recommendedReplacementVariables:Ye.recommendedReplacementVariablesShape,applyReplacementVariables:k.a.func,socialPreviewLabel:k.a.string,idSuffix:k.a.string,activeMetaTabId:k.a.string},ze.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=z({width:e.width,height:e.height}),n=Y[t+"Width"],r=Y[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=V[t+"Width"],r=V[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){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(18),a=n.n(r),o=n(20),i=n(0),s=n(30);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(24),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 R}));var r=n(26),a=n.n(r),o=n(37),i=n.n(o),s=n(18),c=n.n(s),l=n(12),u=n.n(l),p=n(13),d=n.n(p),h=n(10),m=n.n(h),f=n(16),g=n.n(f),b=n(17),y=n.n(b),w=n(11),v=n.n(w),O=n(0),j=n(1),x=n.n(j),k=["children"];function E(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 _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var R=x.a.shape({value:x.a.string.isRequired,onChange:x.a.func.isRequired});t.a=function(e){return function(t){return function(n){g()(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(m()(n),t)})})),n.state=r,n}return d()(l,[{key:"onChange",value:function(e,t){var n=this;this.setState(_(_({},this.state),{},c()({},e,_(_({},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,k);return Object(O.createElement)(t,a()({},r,this.state),n)}}],[{key:"propTypes",get:function(){return{children:x.a.node}}}]),l}(O.Component)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return d}));var r=n(26),a=n.n(r),o=n(37),i=n.n(o),s=n(0),c=n(1),l=n.n(c),u=n(21),p=["title","className","showYoastIcon","additionalClassName"],d="yoast yoast-gutenberg-modal",h=function(e){var t=e.title,n=e.className,r=e.showYoastIcon,o=e.additionalClassName,c=i()(e,p),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)};h.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},h.defaultProps={title:"Yoast SEO",className:d,showYoastIcon:!0,children:null,additionalClassName:""},t.a=h},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=n(24);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(8),o=n.n(a),i=n(23),s=n(14),c=n(7),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},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],_n=!0,i=!1;try{for(n=n.call(e);!(_n=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);_n=!0);}catch(e){i=!0,a=e}finally{try{_n||null==n.return||n.return()}finally{if(i)throw a}}return o}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=window.yoast.socialMetadataForms},,function(e,t,n){"use strict";var r=n(25),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,h=e.dataTableHeaderLabels,m=e.isDataTableVisuallyHidden,f=Math.max(1,Math.max.apply(Math,a()(t.map((function(e){return e.x}))))),g=Math.max(1,Math.max.apply(Math,a()(t.map((function(e){return e.y}))))),b=r-c,y=t.map((function(e){var t=e.x/f*n,r=b-e.y/g*b+c;return"".concat(t,",").concat(r)})).join(" "),w="0,".concat(b+c," ")+y+" ".concat(n,",").concat(b+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:h,isDataTableVisuallyHidden:m}))};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(24),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,n){var r=n(39);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),i=n(7),s=n(30),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(27),a=n.n(r),o=n(0),i=n(5),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(20),a=n(6),o=n(85);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(18),a=n.n(r),o=n(12),i=n.n(o),s=n(13),c=n.n(s),l=n(10),u=n.n(l),p=n(16),d=n.n(p),h=n(17),m=n.n(h),f=n(11),g=n.n(f),b=n(0),y=n(2),w=n(5),v=n(1),O=n.n(v),j=n(53);var x=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=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 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(b.createElement)(b.Fragment,null,Object(b.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)(
/* translators: %1$s expands to an indexable object's name, e.g. Posts or Pages. */
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(b.createElement)(w.Alert,{type:"warning"},Object(y.sprintf)(
/* translators: %1$s expands to an indexable object's name, e.g. Posts or Pages. */
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(b.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(b.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}(b.Component),k=O.a.arrayOf(O.a.shape({name:O.a.string,value:O.a.string}));x.propTypes={postType:O.a.string.isRequired,postTypeName:O.a.string.isRequired,pageType:j.b.isRequired,articleType:j.b,pageTypeOptions:k.isRequired,articleTypeOptions:k.isRequired},x.defaultProps={articleType:null},t.a=Object(j.a)((function(e){return[{name:"pageType",fieldId:e.pageTypeFieldId},{name:"articleType",fieldId:e.articleTypeFieldId}]}))(x)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(12),a=n.n(r),o=n(13),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(19),a=n(66),o=n(52),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},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.d(t,"b",(function(){return p}));var r=n(0),a=n(2),o=n(54),i=n(1),s=n.n(i),c=n(3),l=n(86),u=n(30),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,h=e.open,m=e.shouldCloseOnClickOutside,f=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:f,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal",id:"id",shouldCloseOnClickOutside:m},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,
/* Translators: %s translates to the Post Label in singular form */
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:f},
/* Translators: %s translates to the Post Label in singular form */
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:h}))};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,shouldCloseOnClickOutside:s.a.bool},d.defaultProps={shouldCloseOnClickOutside:!0},t.a=d},function(e,t,n){"use strict";var r=n(0),a=n(5),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 g})),n.d(t,"c",(function(){return b})),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(74),l=n.n(c),u=n(5),p=n(14),d=n(65),h=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"}))},m=Object(p.makeOutboundLink)();function f(e){return Math.round(100*e)}function g(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){
/* translators: %d expands to the amount of days */
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:f,dataTableCaption:Object(i.__)("Keyphrase position in the last 90 days on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:n})}function b(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,f=!Object(s.isEmpty)(n),y=Object(r.useCallback)((function(){p||(f?o(t,n.id):a(t))}),[t,a,o,f,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:f,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,b(t)),Object(r.createElement)("td",{className:"yoast-table--nopadding"},Object(r.createElement)(g,{chartData:t})),Object(r.createElement)("td",{className:"yoast-table--nobreak"},Object(r.createElement)(m,{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)(h,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))}g.propTypes={chartData:o.a.object},g.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(15),a=n.n(r),o=n(12),i=n.n(o),s=n(13),c=n.n(s),l=n(9),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(31),c=n.n(s),l=n(5),u=function(e){var t=Object(i.sprintf)(
/* translators: %s expands to a link to open the Wincher login popup. */
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)(
/* translators: %s : Expands to "Wincher". */
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(12),o=n.n(a),i=n(13),s=n.n(i),c=n(10),l=n.n(c),u=n(16),p=n.n(u),d=n(17),h=n.n(d),m=n(11),f=n.n(m),g=n(0),b=n(1),y=n.n(b),w=n(8),v=n.n(w),O=n(7),j=n.n(O),x=n(31),k=n.n(x),E=n(2),_=n(5),R=n(14),T=j()(_.Alert)(r||(r=v()(["\n\tp {\n\t\tmargin: 0;\n\t}\n"]))),S=Object(R.makeOutboundLink)(),C=function(e){var t=Object(E.sprintf)(
/* Translators: %s expands to the social medium name, which is either Twitter or Facebook. %s expands to Yoast SEO Premium */
Object(E.__)("Want to see how your content will look when it’s shared on %s?","wordpress-seo"),e.socialMediumName),n=Object(E.sprintf)(
/* Translators: %s expands to Yoast SEO Premium */
Object(E.__)("Get %s to unlock social previews!","wordpress-seo"),"Yoast SEO Premium");return Object(g.createElement)(g.Fragment,null,Object(g.createElement)(T,{type:"info"},k()({mixedString:t,components:{strong:Object(g.createElement)("b",null)}}),Object(g.createElement)("br",null),Object(g.createElement)(S,{href:wpseoAdminL10n["shortlinks.upsell.social_previews"]},Object(g.createElement)("p",null,n))))};C.propTypes={socialMediumName:y.a.oneOf(["Twitter","Facebook"]).isRequired};var P=C,D=n(63),L=n(36);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=f()(t);if(n){var a=f()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return h()(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,h=e.replacementVariables,m=e.recommendedReplacementVariables,f=e.isPremium,b=e.location;return Object(g.createElement)(g.Fragment,null,Object(g.createElement)(P,{socialMediumName:o}),Object(g.createElement)(D.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:h,recommendedReplacementVariables:m,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:f,setEditorRef:this.setEditorRef,idSuffix:b}))}}]),a}(g.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:L.replacementVariablesShape,recommendedReplacementVariables:L.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";var r=n(4),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(68),i=n(97),s=n(98),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,h,m=f,f=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)};function g(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function b(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=g.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 h=0;h<t.length;h++)p+=e(s=t[h],d+l(s,h),r,o);else{var m=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(m)for(var f,g=m.call(t),b=0;!(f=g.next()).done;)p+=e(s=f.value,d+l(s,b++),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,b,u),g.release(u)}g.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)},(h=g).instancePool=[],h.getPooled=d||m,h.poolSize||(h.poolSize=10),h.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(68);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(31),i=n.n(o),s=n(14),c=Object(s.makeOutboundLink)(),l=Object(s.makeOutboundLink)();t.a=function(){var e=Object(a.sprintf)(Object(a.__)(
/* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */
"With %1$s you can track the ranking position of your page in the search results based on your keyphrase(s). %2$s","wordpress-seo"),"{{wincherLink/}}","{{wincherReadMoreLink/}}");return Object(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(6),a=n(20),o=n(26),i=n.n(o),s=n(8),c=n.n(s),l=n(15),u=n.n(l),p=n(0),d=n(9),h=n.n(d),m=n(2),f=n(1),g=n.n(f),b=n(3),y=n(7),w=n.n(y),v=n(5),O=n(14),j=n(31),x=n.n(j),k=Object(O.makeOutboundLink)(),E=function(e){var t=Object(m.sprintf)(
/* translators: %d expands to the amount of allowed keyphrases on a free account, %s expands to a link to Wincher plans. */
Object(m.__)("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"},x()({mixedString:t,components:{updateWincherPlanLink:Object(p.createElement)(k,{href:wpseoAdminGlobalL10n["links.wincher.pricing"]},Object(m.sprintf)(
/* translators: %s : Expands to "Wincher". */
Object(m.__)("upgrade your %s plan","wordpress-seo"),"Wincher"))}}))};E.propTypes={limit:g.a.number},E.defaultProps={limit:10};var _,R,T,S=E,C=function(){return Object(p.createElement)(v.Alert,{type:"error"},Object(m.__)("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(m.sprintf)(
/* translators: %s: Expands to "Wincher". */
Object(m.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher"))},D=function(){return Object(p.createElement)(v.Alert,{type:"info"},Object(m.sprintf)(
/* translators: %s: Expands to "Wincher". */
Object(m.__)("%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"))},L=n(25),A=n.n(L),I=n(27),q=n.n(I),M=n(88),F=n(42),N=n(32),U=Object(O.makeOutboundLink)(),W=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")),K=w.a.th(R||(R=c()(["\n\tmin-width: 60px;\n"]))),H=w.a.div(T||(T=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},V=Object(b.debounce)(F.c,500,{leading:!0}),Y=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,f=e.trackAll,g=e.trackedKeyphrases,y=e.isNewlyAuthenticated,w=e.websiteId,v=e.focusKeyphrase,O=e.newRequest,j=Object(p.useRef)(),x=Object(p.useRef)(),k=Object(p.useRef)(!1),E=Object(p.useState)([]),_=q()(E,2),R=_[0],T=_[1],S=Object(p.useCallback)((function(e){var t=e.toLowerCase();return g&&!Object(b.isEmpty)(g)&&g.hasOwnProperty(t)?g[t]:null}),[g]),C=Object(p.useMemo)((function(){return u()(h.a.mark((function e(){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(N.b)((function(){return x.current&&x.current.abort(),x.current="undefined"==typeof AbortController?null:new AbortController,V(r,a,x.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()(h.a.mark((function e(n){var r;return h.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()})),T((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:T((function(e){return b.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]),D=Object(p.useCallback)(function(){var e=u()(h.a.mark((function e(t,n){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=t.toLowerCase(),T((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:T((function(e){return Object(b.without)(e,t)}));case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[c,o,s]),L=Object(p.useCallback)(function(){var e=u()(h.a.mark((function e(t){return h.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),Y=B(r);Object(p.useEffect)((function(){n&&a&&(a!==I||Object(b.difference)(r,Y).length)&&C()}),[n,a,I,r,Y,C]),Object(p.useEffect)((function(){if(n&&f&&null!==g){var e=r.filter((function(e){return!S(e)}));e.length&&P(e),d()}}),[n,f,g,P,d,S,r]),Object(p.useEffect)((function(){y&&!k.current&&(C(),k.current=!0)}),[y,C]),Object(p.useEffect)((function(){if(n&&!Object(b.isEmpty)(g))return Object(b.filter)(g,(function(e){return Object(b.isEmpty)(e.updated_at)})).length>0&&(j.current=setInterval((function(){C()}),1e4)),function(){clearInterval(j.current)}}),[n,g,C]);var z=n&&null===g;return r&&!Object(b.isEmpty)(r)&&Object(p.createElement)(p.Fragment,null,Object(p.createElement)(H,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(m.__)("Tracking","wordpress-seo")},Object(m.__)("Tracking","wordpress-seo")),Object(p.createElement)("th",{scope:"col",abbr:Object(m.__)("Keyphrase","wordpress-seo")},Object(m.__)("Keyphrase","wordpress-seo")),Object(p.createElement)("th",{scope:"col",abbr:Object(m.__)("Position","wordpress-seo")},Object(m.__)("Position","wordpress-seo")),Object(p.createElement)("th",{scope:"col",abbr:Object(m.__)("Position over time","wordpress-seo")},Object(m.__)("Position over time","wordpress-seo")),Object(p.createElement)(K,{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:L,onUntrackKeyphrase:D,rowData:S(e),isFocusKeyphrase:e===v.trim(),websiteId:w,isDisabled:!n,isLoading:z||R.indexOf(e.toLowerCase())>=0})}))))),Object(p.createElement)("p",{style:{marginBottom:0,position:"relative"}},Object(p.createElement)(U,{href:wpseoAdminGlobalL10n["links.wincher.login"]},Object(m.sprintf)(
/* translators: %s expands to Wincher */
Object(m.__)("Get more insights over at %s","wordpress-seo"),"Wincher")),Object(p.createElement)(W,null,Object(m.__)("* focus keyphrase","wordpress-seo"))))};Y.propTypes={addTrackedKeyphrase:g.a.func.isRequired,isLoggedIn:g.a.bool,isNewlyAuthenticated:g.a.bool,keyphrases:g.a.array,newRequest:g.a.func.isRequired,removeTrackedKeyphrase:g.a.func.isRequired,setRequestFailed:g.a.func.isRequired,setKeyphraseLimitReached:g.a.func.isRequired,setRequestSucceeded:g.a.func.isRequired,setTrackedKeyphrases:g.a.func.isRequired,setHasTrackedAll:g.a.func.isRequired,trackAll:g.a.bool,trackedKeyphrases:g.a.object,websiteId:g.a.string,permalink:g.a.string.isRequired,focusKeyphrase:g.a.string},Y.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],trackAll:!1,trackedKeyphrases:null,websiteId:"",focusKeyphrase:""};var z,$,G,Z=Y,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(100),X=function(){return Object(p.createElement)(v.Alert,{type:"error"},Object(m.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo"))},ee=function(){return Object(p.createElement)(v.Alert,{type:"info"},Object(m.sprintf)(
/* translators: %s: Expands to "Wincher". */
Object(m.__)("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(92),ne=n(93),re=function(){return Object(p.createElement)(v.Alert,{type:"error"},Object(m.__)("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:g.a.object.isRequired,onLogin:g.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(b.isEmpty)(n)||t?r?Object(p.createElement)(D,null):null:Object(p.createElement)(ae,{response:n,onLogin:a})};oe.propTypes={isSuccess:g.a.bool.isRequired,allKeyphrasesMissRanking:g.a.bool.isRequired,response:g.a.object,onLogin:g.a.func.isRequired,keyphraseLimitReached:g.a.bool.isRequired,limit:g.a.number.isRequired},oe.defaultProps={response:{}};var ie=null,se=function(){var e=u()(h.a.mark((function e(t,n){var r,a,o;return h.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()(h.a.mark((function e(t){var o;return h.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()(h.a.mark((function e(t){return h.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()(h.a.mark((function e(t){var n,r;return h.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(m.sprintf)(
/* translators: %s expands to Wincher */
Object(m.__)("Connect with %s","wordpress-seo"),"Wincher")))};le.propTypes={isLoggedIn:g.a.bool.isRequired,onLogin:g.a.func.isRequired};var ue=w.a.div(z||(z=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"]))),he=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(m.__)("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 me(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(m.__)("SEO performance","wordpress-seo"),Object(p.createElement)(v.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"],linkText:Object(m.__)("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)(he,e))}he.propTypes={keyphrases:g.a.array.isRequired,isLoggedIn:g.a.bool.isRequired,shouldTrackAll:g.a.bool.isRequired,permalink:g.a.string.isRequired},me.propTypes={isLoggedIn:g.a.bool,isNewlyAuthenticated:g.a.bool,keyphrases:g.a.array,response:g.a.object,shouldTrackAll:g.a.bool,permalink:g.a.string},me.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)}}}))])(me)},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(8),i=n.n(o),s=n(7),c=n.n(s),l=n(5),u=n(14),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(24);function o(){var e=Object(a.a)();return Object(r.get)(e,"translations",{domain:"wordpress-seo",locale_data:{"wordpress-seo":{"":{}}}})}},,,,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(8),o=n.n(a),i=n(0),s=n(1),c=n.n(s),l=n(7),u=n.n(l),p=n(5),d=n(14),h=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")),m=function(e){var t=e.children,n=e.title,r=e.icon,a=e.hasPaperStyle,o=e.shoppingData;return Object(i.createElement)(h,{headingLevel:3,headingText:n,headingIcon:r,headingIconColor:"#555",hasPaperStyle:a,shoppingData:o},t)};m.propTypes={children:c.a.element,title:c.a.string,icon:c.a.string,hasPaperStyle:c.a.bool,shoppingData:c.a.object},m.defaultProps={hasPaperStyle:!0,shoppingData:null},t.a=m},,function(e,t,n){"use strict";var r=n(6),a=n(20),o=n(0),i=n(2),s=n(1),c=n.n(s),l=n(3),u=n(5),p=function(){return Object(o.createElement)("p",{className:"yoast-related-keyphrases-modal__loading-message"},Object(i.sprintf)(
/* translators: %1$s expands to "Yoast SEO", %2$s expands to "Semrush". */
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(14),h=Object(d.makeOutboundLink)(),m=function(){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,Object(i.sprintf)(
/* translators: %s : Expands to "Semrush". */
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)(h,{href:window.wpseoAdminL10n["shortlinks.semrush.prices"],className:"yoast-button-upsell"},Object(i.sprintf)(
/* translators: %s : Expands to "Semrush". */
Object(i.__)("Upgrade your %s plan","wordpress-seo"),"Semrush"),Object(o.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})))},f=n(15),g=n.n(f),b=n(12),y=n.n(b),w=n(13),v=n.n(w),O=n(10),j=n.n(O),x=n(16),k=n.n(x),E=n(17),_=n.n(E),R=n(11),T=n.n(R),S=n(9),C=n.n(S),P=n(38),D=n.n(P),L=n(44);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=T()(r);if(a){var n=T()(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){D()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}})}},{key:"relatedKeyphrasesRequest",value:(n=g()(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=g()(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,D()({path:Object(L.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(65),N=n(56);var U=Object(d.makeOutboundLink)(),W=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=T()(t);if(n){var a=T()(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)(U,{href:u},Object(i.sprintf)(
/* translators: %s expands to Semrush */
Object(i.__)("Get more insights at %s","wordpress-seo"),"Semrush"))))}}]),a}(o.Component);W.propTypes={data:c.a.object,keyphrase:c.a.string,relatedKeyphrases:c.a.array,countryCode:c.a.string,renderAction:c.a.func},W.defaultProps={data:{},keyphrase:"",relatedKeyphrases:[],countryCode:"us",renderAction:null};var K=W,H=Object(d.makeOutboundLink)(),B=function(){return Object(o.createElement)(u.Alert,{type:"info"},Object(i.sprintf)(
/* translators: %s: Expands to "Yoast SEO". */
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)(H,{href:window.wpseoAdminL10n["shortlinks.semrush.premium_landing_page"]},Object(i.sprintf)(
/* translators: %s: Expands to "Yoast SEO Premium". */
Object(i.__)("Check out %s!","wordpress-seo"),"Yoast SEO Premium")))},V=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"))},Y=function(){return Object(o.createElement)(u.Alert,{type:"warning"},Object(i.sprintf)(
/* translators: %s: Expands to "Yoast SEO". */
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"))},z=n(24);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,h=e.setRequestFailed,f=e.setNoResultsFound,g=e.relatedKeyphrases,b=e.setRequestSucceeded,y=e.setRequestLimitReached,w=Object(z.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}(g)&&Object(o.createElement)(Y,null),Object(o.createElement)(M,{countryCode:u,setCountry:s,newRequest:a,keyphrase:r,setRequestFailed:h,setNoResultsFound:f,setRequestSucceeded:b,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)(m,null):!r&&function(e){return!Object(l.isEmpty)(e)&&"error"in e}(a)?Object(o.createElement)(V,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)(K,{keyphrase:r,relatedKeyphrases:g,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(28),o=n(55);function i(){return Object(r.get)(window,["wpseoAdminL10n","default_query_params"],{})}var s=n(106),c=n(67),l=n(51),u=n(78);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(20),a=n(6),o=n(58),i=n(49);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,a=n(18),o=n.n(a),i=n(0),s=n(20),c=n(6),l=n(2),u=n(1),p=n.n(u),d=n(25),h=n.n(d),m=n(8),f=n.n(m),g=n(5),b=n(21),y=n(14),w=n(31),v=n.n(w),O=n(7),j=n.n(O),x=n(81),k=n(78),E=j.a.div(r||(r=f()(["\n\tpadding: 16px;\n"]))),_=function(e,t,n){var r=e.find((function(e){return e.value===t}));return[{name:Object(l.sprintf)(
/* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */
Object(l.__)("Default for %1$s (%2$s)","wordpress-seo"),n,r?r.name:""),value:""}].concat(h()(e))},R=function(e){return Object(l.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 Search Appearance Settings page */
Object(l.__)("You can change the default type for %1$s in your %2$sSearch Appearance Settings%3$s.","wordpress-seo"),e,"{{link}}","{{/link}}")},T=function(e){return Object(i.createElement)(g.FieldGroup,{label:e.helpTextTitle,linkTo:e.helpTextLink,linkText:Object(l.__)("Learn more about structured data with Schema.org","wordpress-seo"),description:e.helpTextDescription})};T.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)(T,e),a&&Object(i.createElement)(b.Slot,{name:Object(y.join)(["yoast-schema-blocks-analysis",e.location])}),Object(i.createElement)(g.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)(g.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)(g.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:R(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:x.b.isRequired,schemaArticleTypeChange:p.a.func,schemaArticleTypeSelected:p.a.string,articleTypeOptions:x.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)(E,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 D=P,L=n(82),A=n(49);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!==L.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)(D,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";var r=n(20),a=n(6),o=n(0),i=n(2),s=n(5),c=n(14),l=n(1),u=n.n(l),p=n(30),d=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)(
/* Translators: %s translates to "yes" or "no", %s translates to the Post Label in plural form */
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)(
/* Translators: %s translates to the "yes" or "no" ,%s translates to the Post Label in plural form */
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)(
/* Translators: %s translates to the Post Label in singular form */
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")}))}))};d.propTypes={noIndex:u.a.string.isRequired,onNoIndexChange:u.a.func.isRequired,editorContext:u.a.object.isRequired,isPrivateBlog:u.a.bool},d.defaultProps={isPrivateBlog:!1};var h=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)(
/* Translators: %s translates to the Post Label in singular form */
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")})}))};h.propTypes={noFollow:u.a.string.isRequired,onNoFollowChange:u.a.func.isRequired,postTypeName:u.a.string.isRequired};var m=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")})}))};m.propTypes={advanced:u.a.array.isRequired,onAdvancedChange:u.a.func.isRequired};var f=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")})}))};f.propTypes={breadcrumbsTitle:u.a.string.isRequired,onBreadcrumbsTitleChange:u.a.func.isRequired};var g=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")})}))};g.propTypes={canonical:u.a.string.isRequired,onCanonicalChange:u.a.func.isRequired};var b=function(e){var t=e.noIndex,n=e.noFollow,r=e.advanced,a=e.breadcrumbsTitle,i=e.canonical,s=e.onNoIndexChange,c=e.onNoFollowChange,l=e.onAdvancedChange,u=e.onBreadcrumbsTitleChange,p=e.onCanonicalChange,b=e.onLoad,y=e.isLoading,w=e.editorContext,v=e.isBreadcrumbsDisabled,O=e.isPrivateBlog;Object(o.useEffect)((function(){setTimeout((function(){y&&b()}))}));var j={noIndex:t,onNoIndexChange:s,editorContext:w,isPrivateBlog:O},x={noFollow:n,onNoFollowChange:c,postTypeName:w.postTypeNameSingular},k={advanced:r,onAdvancedChange:l},E={breadcrumbsTitle:a,onBreadcrumbsTitleChange:u},_={canonical:i,onCanonicalChange:p};return y?null:Object(o.createElement)(o.Fragment,null,Object(o.createElement)(d,j),w.isPost&&Object(o.createElement)(h,x),w.isPost&&Object(o.createElement)(m,k),!v&&Object(o.createElement)(f,E),Object(o.createElement)(g,_))};b.propTypes={noIndex:u.a.string.isRequired,canonical:u.a.string.isRequired,onNoIndexChange:u.a.func.isRequired,onCanonicalChange:u.a.func.isRequired,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},b.defaultProps={advanced:[],onAdvancedChange:function(){},noFollow:"",onNoFollowChange:function(){},breadcrumbsTitle:"",onBreadcrumbsTitleChange:function(){},isPrivateBlog:!1};var y=b;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.getIsLoading,c=t.getEditorContext,l=(0,t.getPreferences)(),u=l.isBreadcrumbsDisabled,p=l.isPrivateBlog;return{noIndex:n(),noFollow:r(),advanced:a(),breadcrumbsTitle:o(),canonical:i(),isLoading:s(),editorContext:c(),isBreadcrumbsDisabled:u,isPrivateBlog:p}})),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,onLoad:t.loadAdvancedSettingsData}}))])(y)},function(e,t,n){"use strict";n.d(t,"b",(function(){return j})),n.d(t,"a",(function(){return x}));var r=n(25),a=n.n(r),o=n(12),i=n.n(o),s=n(13),c=n.n(s),l=n(16),u=n.n(l),p=n(17),d=n.n(p),h=n(11),m=n.n(h),f=n(0),g=n(21),b=n(24),y=n(73);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=m()(t);if(n){var a=m()(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(f.createElement)(t,{key:n})}))}}]),o}(f.Component);function j(e,t){var n=Object(b.a)();v=Object(f.createRef)();var r={isRtl:n.isRtl};Object(f.render)(Object(f.createElement)(y.a,{theme:r,location:"sidebar"},Object(f.createElement)(g.SlotFillProvider,null,Object(f.createElement)(f.Fragment,null,t,Object(f.createElement)(O,{ref:v})))),document.getElementById(e)),w.forEach((function(e){v.current.registerComponent(e.key,e.Component)}))}function x(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(21),o=n(1),i=n.n(o),s=n(95),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(18),a=n.n(r),o=n(27),i=n.n(o),s=n(0),c=n(21),l=n(1),u=n.n(l),p=n(95);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 h(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 m=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 h(h({},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)};m.propTypes={isPremium:u.a.bool.isRequired,onLoad:u.a.func.isRequired,location:u.a.string.isRequired},t.a=m},,function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(34),a=n.n(r),o=n(12),i=n.n(o),s=n(13),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(110);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=n(6),a=n(20),o=n(0),i=n(2),s=n(1),c=n.n(s),l=n(23),u=n(103),p=n(54),d=n(111),h=n(85),m=n(86),f=n(101);function g(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 b(e,t){Object(h.b)(t)&&e.onClose()}function y(e){var t=e.location,n=e.whichModalOpen,r=e.shouldCloseOnClickOutside,a=Object(o.useCallback)((function(){g(e)}),[g,e]),s=Object(o.useCallback)((function(t){b(e,t)}),[b,e]),c=Object(i.__)("Track SEO performance","wordpress-seo");return Object(o.createElement)(o.Fragment,null,n===t&&Object(o.createElement)(p.a,{title:c,onRequestClose:s,icon:Object(o.createElement)(d.a,null),additionalClassName:"yoast-wincher-seo-performance-modal",shouldCloseOnClickOutside:r},Object(o.createElement)(u.a,{className:"yoast-gutenberg-modal__content yoast-wincher-seo-performance-modal__content"},Object(o.createElement)(f.a,null))),"sidebar"===t&&Object(o.createElement)(m.a,{id:"wincher-open-button-".concat(t),title:c,suffixIcon:{size:"20px",icon:"pencil-square"},prefixIcon:{icon:"chart-square-bar",color:l.colors.$color_grey_medium_dark},onClick:a}))}y.propTypes={location:c.a.string,whichModalOpen:c.a.oneOf(["none","metabox","sidebar","postpublish"]),shouldCloseOnClickOutside:c.a.bool},y.defaultProps={location:"",whichModalOpen:"none",shouldCloseOnClickOutside:!0},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 h}));var r=n(6),a=n(3),o=n(28);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 h(){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.r(t);var r={};n.r(r),n.d(r,"authorFirstName",(function(){return be})),n.d(r,"authorLastName",(function(){return ye})),n.d(r,"currentDate",(function(){return we})),n.d(r,"currentDay",(function(){return ve})),n.d(r,"currentMonth",(function(){return Oe})),n.d(r,"category",(function(){return je})),n.d(r,"categoryTitle",(function(){return xe})),n.d(r,"currentYear",(function(){return ke})),n.d(r,"date",(function(){return Ee})),n.d(r,"excerpt",(function(){return _e})),n.d(r,"focusKeyphrase",(function(){return Re})),n.d(r,"id",(function(){return Te})),n.d(r,"modified",(function(){return Se})),n.d(r,"name",(function(){return Ce})),n.d(r,"page",(function(){return Pe})),n.d(r,"pageNumber",(function(){return De})),n.d(r,"pageTotal",(function(){return Le})),n.d(r,"permalink",(function(){return Ae})),n.d(r,"postContent",(function(){return Ie})),n.d(r,"postDay",(function(){return qe})),n.d(r,"postMonth",(function(){return Me})),n.d(r,"postYear",(function(){return Fe})),n.d(r,"postTypeNamePlural",(function(){return Ne})),n.d(r,"postTypeNameSingular",(function(){return Ue})),n.d(r,"primaryCategory",(function(){return We})),n.d(r,"searchPhrase",(function(){return Ke})),n.d(r,"separator",(function(){return He})),n.d(r,"siteDescription",(function(){return Be})),n.d(r,"siteName",(function(){return Ve})),n.d(r,"tag",(function(){return Ye})),n.d(r,"term404",(function(){return ze})),n.d(r,"termDescription",(function(){return Ge})),n.d(r,"termHierarchy",(function(){return Ze})),n.d(r,"termTitle",(function(){return Qe})),n.d(r,"title",(function(){return Je})),n.d(r,"userDescription",(function(){return Xe}));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(6),s=n(116),c=n(131),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)},h=function(e,t,n,r){return u()._registerModification(e,t,n,r)},m=function(e,t){return u()._registerPlugin(e,t)},f=function(e,t,n){return u().loaded?u()._applyModifications(e,t,n):t},g=n(37),b=n.n(g),y=n(15),w=n.n(y),v=n(9),O=n.n(v),j=n(3),x=n(28),k=n(102),E=n(66),_=n(83),R=n(117),T=["text"];function S(){return(S=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=b()(n,T),o=new x.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(E.a)();case 14:case"end":return e.stop()}}),e,null,[[2,11]])})))).apply(this,arguments)}var C=Object(j.debounce)((function(_x,e){return S.apply(this,arguments)}),k.refreshDelay);function P(){var e=function(e){return e.title=f("data_page_title",e.title),e.title=f("title",e.title),e.description=f("data_meta_desc",e.description),e.text=f("content",e.text),e}((0,Object(i.select)("yoast-seo/editor").getAnalysisData)());return Object(s.applyFilters)("yoast.analysis.data",e)}var D=n(0),L=n(2),A=n(7),I=n(12),q=n.n(I),M=n(13),F=n.n(M),N=n(16),U=n.n(N),W=n(17),K=n.n(W),H=n(11),B=n.n(H);function V(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=B()(e);if(t){var a=B()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return K()(this,n)}}var Y=function(e){U()(n,e);var t=V(n);function n(e,r,a){var o;return q()(this,n),(o=t.call(this)).hook=e,o.id=r,o.callback=a,o}return F()(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),z=function(e){U()(n,e);var t=V(n);function n(e,r,a){var o;return q()(this,n),(o=t.call(this)).hook=e,o.id=r,o.callback=a,o}return F()(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 $(e,t,n){$e.hooks.registerUIAfter(new Y(e,t,n))}var G=n(124),Z=n(21),Q=n(119);function J(){return Object(D.createElement)(Z.Slot,{name:"YoastElementor"},(function(e){return Object(Q.a)(e)}))}var X=n(20),ee=n(1),te=n.n(ee),ne=n(118),re=n(5);function ae(e){return 0===e.message.length?null:Object(D.createElement)(re.Alert,{type:e.type},e.message)}ae.propTypes={message:te.a.oneOfType([te.a.array,te.a.string]).isRequired,type:te.a.string.isRequired};var oe=Object(i.withSelect)((function(e){return{message:(0,e("yoast-seo/editor").getWarningMessage)(),type:"info"}}))(ae),ie=n(58),se=n(33),ce=n(79),le=n(18),ue=n.n(le),pe=n(26),de=n.n(pe),he=n(127),me=n(112),fe=n(49),ge=n(14),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")},ye={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")},we={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")},ve={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")},Oe={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")},je={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")},xe={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")},ke={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")},Ee={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")},_e={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")},Re={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")},Se={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")},Ce={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")},Pe={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")},De={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")},Ae={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")},Ie={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")},qe={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")},Me={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")},Fe={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")},Ne={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")},Ue={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")},Ke={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")},He={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")},Be={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")},Ve={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")},Ye={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")},ze={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")},Ge={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")},Ze={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")},Qe={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")},Je={name:"title",label:"Title",placeholder:"%%title%%",aliases:[],getReplacement:function(){return Object(i.select)("yoast-seo/editor").getEditorDataTitle()},regexp:new RegExp("%%title%%","g")},Xe={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")},et=n(29),tt=null,nt=null,rt=function(e){["content","title","snippet_title","snippet_meta","primary_category","data_page_title","data_meta_desc","excerpt"].forEach((function(t){h(t,e,"replaceVariablePlugin",10)}))},at=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[]},ot=function(e){return rt((function(t){return t.replace(new RegExp(e.placeholder,"g"),e.replacement)}))},it=function(){if(null===nt){nt=[];var e=Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.hidden_replace_vars",[]);(null===tt&&(tt=at().map((function(e){return r[e]}))),tt).forEach((function(t){var n=e.includes(t.name);nt.push({name:t.name,label:t.label,value:t.placeholder,hidden:n}),t.aliases.forEach((function(e){nt.push({name:e.name,label:e.label,value:e.placeholder,hidden:n})}))}))}return nt};var st=["isLoading","onLoad","location"],ct=ge.strings.stripHTMLTags,lt=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:ct(f("data_page_title",e.title)),description:ct(f("data_meta_desc",e.description))}},ut=function(e){var t=e.isLoading,n=e.onLoad,r=e.location,a=b()(e,st);return Object(D.useEffect)((function(){setTimeout((function(){t&&n()}))})),t?null:Object(D.createElement)(me.a,{icon:"eye",hasPaperStyle:a.hasPaperStyle},Object(D.createElement)(he.SnippetEditor,de()({},a,{descriptionPlaceholder:Object(L.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:lt,showCloseButton:!1,idSuffix:r})))};ut.propTypes={isLoading:te.a.bool.isRequired,onLoad:te.a.func.isRequired,hasPaperStyle:te.a.bool.isRequired,location:te.a.string.isRequired};var pt=Object(X.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,h=t.getContentLocale;return{baseUrl:n(),data:c(),date:r(),faviconSrc:s(),isLoading:l(),keyword:o(),mobileImageSrc:a(),mode:u(),recommendedReplacementVariables:i(),replacementVariables:it(),wordsToHighlight:p(),isCornerstone:d(),locale:h()}})),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(ue()({},e,t))}},onChangeAnalysisData:function(e){a(e)},onLoad:t.loadSnippetEditorData}})),Object(fe.a)()])(ut),dt=function(){return Object(D.createElement)(ce.a,{title:Object(L.__)("Google preview","wordpress-seo"),id:"yoast-google-preview-modal",shouldCloseOnClickOutside:!1},Object(D.createElement)(pt,{showCloseButton:!1,hasPaperStyle:!1}))},ht=n(128),mt=n(24),ft=n(43),gt=function(){Object(ft.b)((function(e){return Object(i.dispatch)("yoast-seo/editor").setTwitterPreviewImage(Object(ft.d)(e))}))},bt=Object(X.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,h=t.getRecommendedReplaceVars,m=t.getSiteUrl,f=t.getSeoTitleTemplate,g=t.getSeoTitleTemplateNoFallback,b=t.getSocialTitleTemplate,y=t.getSeoDescriptionTemplate,w=t.getSocialDescriptionTemplate,v=t.getEditorDataExcerptWithFallback,O=t.getTwitterAltText;return{imageUrl:a(),imageFallbackUrl:o()||d(),recommendedReplacementVariables:h(),replacementVariables:it(),description:n(),descriptionPreviewFallback:w()||s()||c()||y()||v()||"",title:r(),titlePreviewFallback:b()||i()||l()||g()||f()||"",imageWarnings:u(),siteUrl:m(),isPremium:!!Object(mt.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:gt,onRemoveImageClick:a,onDescriptionChange:r,onTitleChange:n,onLoad:o}})),Object(fe.a)()])(ht.a),yt=function(){return Object(D.createElement)(ce.a,{title:Object(L.__)("Twitter preview","wordpress-seo"),id:"yoast-twitter-preview-modal",shouldCloseOnClickOutside:!1},Object(D.createElement)(bt,null))},wt=n(129),vt=function(){Object(ft.b)((function(e){return Object(i.dispatch)("yoast-seo/editor").setFacebookPreviewImage(Object(ft.c)(e))}))},Ot=Object(X.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,h=t.getSocialTitleTemplate,m=t.getSeoDescriptionTemplate,f=t.getSocialDescriptionTemplate,g=t.getEditorDataExcerptWithFallback,b=t.getFacebookAltText;return{imageUrl:i(),imageFallbackUrl:s(),recommendedReplacementVariables:l(),replacementVariables:it(),description:n(),descriptionPreviewFallback:f()||r()||m()||g()||"",title:a(),titlePreviewFallback:h()||o()||d()||p()||"",imageWarnings:c(),siteUrl:u(),isPremium:!!Object(mt.a)().isPremium,titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Facebook",alt:b()}})),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:vt,onRemoveImageClick:a,onDescriptionChange:r,onTitleChange:n,onLoad:o}})),Object(fe.a)()])(wt.a),jt=function(){return Object(D.createElement)(ce.a,{title:Object(L.__)("Facebook preview","wordpress-seo"),id:"yoast-facebook-preview-modal",shouldCloseOnClickOutside:!1},Object(D.createElement)(Ot,null))},xt=n(75),kt=n(122),Et=n(123),_t=n(114),Rt=n(142);function Tt(e){var t=e.isLoading,n=e.onLoad,r=e.settings;return Object(D.useEffect)((function(){setTimeout((function(){t&&n()}))})),t?null:Object(D.createElement)(D.Fragment,null,Object(D.createElement)(Z.Fill,{name:"YoastElementor"},Object(D.createElement)(se.a,{renderPriority:1},Object(D.createElement)(oe,null)),r.isKeywordAnalysisActive&&Object(D.createElement)(se.a,{renderPriority:8},Object(D.createElement)(ie.KeywordInput,{isSEMrushIntegrationActive:r.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&Object(D.createElement)(Z.Fill,{name:"YoastRelatedKeyphrases"},Object(D.createElement)(_t.a,null))),Object(D.createElement)(se.a,{renderPriority:23},Object(D.createElement)(dt,null)),r.displayFacebook&&Object(D.createElement)(se.a,{renderPriority:24},Object(D.createElement)(jt,null)),r.displayTwitter&&Object(D.createElement)(se.a,{renderPriority:25},Object(D.createElement)(yt,null)),r.displaySchemaSettings&&Object(D.createElement)(se.a,{renderPriority:26},Object(D.createElement)(xt.a,{title:Object(L.__)("Schema","wordpress-seo")},Object(D.createElement)(kt.a,null))),r.displayAdvancedTab&&Object(D.createElement)(se.a,{renderPriority:27},Object(D.createElement)(xt.a,{title:Object(L.__)("Advanced","wordpress-seo")},Object(D.createElement)(Et.a,{location:"sidebar"}))),r.isContentAnalysisActive&&Object(D.createElement)(se.a,{renderPriority:10},Object(D.createElement)(ie.ReadabilityAnalysis,null)),r.isKeywordAnalysisActive&&Object(D.createElement)(se.a,{renderPriority:20},Object(D.createElement)(ie.SeoAnalysis,{shouldUpsell:r.shouldUpsell,shouldUpsellWordFormRecognition:r.isWordFormRecognitionActive})),r.isKeywordAnalysisActive&&r.isWincherIntegrationActive&&Object(D.createElement)(se.a,{key:"wincher-seo-performance",renderPriority:21},Object(D.createElement)(Rt.a,{location:"sidebar",shouldCloseOnClickOutside:!1})),r.isCornerstoneActive&&Object(D.createElement)(se.a,{renderPriority:30},Object(D.createElement)(ne.a,null))))}Tt.propTypes={isLoading:te.a.bool.isRequired,onLoad:te.a.func.isRequired,settings:te.a.object.isRequired};var St,Ct=Object(X.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}}))])(Tt),Pt=!1;function Dt(e){e.oldValue=e.value}function Lt(){St.forEach((function(e){return Dt(e)}))}var At=Object(j.debounce)((function(){var e;Pt&&(
/* Translators: %1$s translates to the Post Label in singular form */
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}),Dt(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}),Lt(),At()):Pt=!0}))}function Mt(){setTimeout((function(){Object(G.b)("elementor-panel-page-settings-controls",Object(D.createElement)(A.StyleSheetManager,{target:document.getElementById("elementor-panel-inner")},Object(D.createElement)("div",{className:"yoast yoast-elementor-panel__fills"},Object(D.createElement)(J,null),Object(D.createElement)(Ct,null))))}),200)}function Ft(){window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=G.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 z("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']"),Lt(),setInterval((function(){return St.forEach(It)}),500)}var Nt=n(155),Ut=n(19),Wt=n(87),Kt=Ut.selectors.getBaseUrlFromSettings,Ht=Ut.selectors.getContentLocale,Bt=Ut.selectors.getEditorDataContent,Vt=Ut.selectors.getFocusKeyphrase,Yt=Ut.selectors.getSnippetEditorDescriptionWithTemplate,zt=Ut.selectors.getSnippetEditorSlug,$t=Ut.selectors.getSnippetEditorTitleWithTemplate,Gt=Ut.selectors.getDateFromSettings,Zt=function(e){var t=$t(e),n=Yt(e),r=zt(e),a=Kt(e);return t=ge.strings.stripHTMLTags(f("data_page_title",t)),n=ge.strings.stripHTMLTags(f("data_meta_desc",n)),r=r.trim().replace(/\s+/g,"-"),{text:Bt(e),title:t,keyword:Vt(e),description:n,locale:Ht(e),titleWidth:Object(Wt.a)(t),url:r,permalink:a+r,date:Gt(e)}},Qt=n(132),Jt=function(){function e(){q()(this,e)}return F()(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=Ut.actions.UPDATE_DATA,en=Ut.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){ue()(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(133),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=x.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 x.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);function dn(){var e,t,n,c;window.YoastSEO=window.YoastSEO||{},window.YoastSEO.store=(function(e){e.dispatch(Ut.actions.loadCornerstoneContent()),e.dispatch(Ut.actions.loadFocusKeyword()),e.dispatch(Ut.actions.setMarkerStatus("hidden")),e.dispatch(Ut.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(Ut.actions.loadFacebookPreviewData()),r&&e.dispatch(Ut.actions.loadTwitterPreviewData()),e.dispatch(Ut.actions.setSEMrushChangeCountry(window.wpseoScriptData.metabox.countryCode)),e.dispatch(Ut.actions.setSEMrushLoginStatus(window.wpseoScriptData.metabox.SEMrushLoginStatus)),e.dispatch(Ut.actions.setWincherLoginStatus(window.wpseoScriptData.metabox.wincherLoginStatus,!1)),e.dispatch(Ut.actions.setWincherWebsiteId(window.wpseoScriptData.metabox.wincherWebsiteId)),e.dispatch(Ut.actions.setWincherAutomaticKeyphaseTracking(window.wpseoScriptData.metabox.wincherAutoAddKeyphrases))}(c=Object(i.registerStore)("yoast-seo/editor",{reducer:Object(i.combineReducers)(Ut.reducers),selectors:an(an({},Ut.selectors),a),actions:Object(j.pickBy)(an(an({},Ut.actions),o),(function(e){return"function"==typeof e})),controls:Qt})),c),$("editor/documents/attach-preview","yoast-seo-content-scraper-attach-preview",ln),$("document/save/set-is-modified","yoast-seo-content-scraper-on-modified",ln),window.YoastSEO.pluginReady=p,window.YoastSEO.pluginReloaded=d,window.YoastSEO.registerModification=h,window.YoastSEO.registerPlugin=m,window.YoastSEO.applyModifications=f,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(R.a)();r.initialize(Object(R.b)({useCornerstone:n()})).catch(E.a);var a=P(),o=n(),s=t();return Object(i.subscribe)((function(){var e=n(),i=P(),c=t();if(e!==o)return o=e,a=i,void r.initialize({useCornerstone:e}).then((function(){return C(r,i)})).catch(E.a);c===s&&!1!==Object(j.isEqual)(i,a)||(a=i,s=c,C(r,i))})),r}(),window.YoastSEO.analysis.collectData=P,m("replaceVariablePlugin",{status:"ready"}),at().forEach((function(e){var t,n,a,o=(n=(t=r[e]).getReplacement,a=t.regexp,function(e){return e.replace(a,n())});rt(o)})),window.YoastSEO.wp=window.YoastSEO.wp||{},window.YoastSEO.wp.replaceVarsPlugin={addReplacement:ot,ReplaceVar:et.a},function(){var e=Object(mt.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(s.doAction)("yoast.elementor.loaded")}jQuery(window).on("elementor:init",(function(){window.elementor.on("panel:init",(function(){setTimeout(dn)}))}))}]);

Zerion Mini Shell 1.0