Version Description
Release Date: March 16th, 2021
Yoast SEO 16.0: The Sweet Sixteen release is out! It comes with several fixes and improvements. Happy updating and thank you for using Yoast SEO! Read more about whats new in Yoast SEO 16.0 in our release post!
Bugfixes:
- Fixes a bug where invalid breadcrumbs would show PHP warnings.
- Fixes a bug where a fatal error would be thrown when a post ancestor was not an indexable.
- Fixes a bug where a fatal error would be thrown when both Yoast SEO and Polylang for WooCommerce were installed, and the site contained WooCommerce variable products. Props to manooweb.
Other:
- Sets the WordPress tested up to version to 5.7 and minimum supported WordPress version to 5.6.
Download this release
Release Info
Developer | Yoast |
Plugin | Yoast SEO |
Version | 16.0 |
Comparing to | |
See all releases |
Code changes from version 15.9.2 to 16.0
- admin/ajax.php +0 -22
- admin/class-admin-asset-manager.php +5 -13
- admin/class-admin-init.php +1 -59
- admin/class-admin.php +20 -2
- admin/class-config.php +5 -3
- admin/class-export.php +0 -28
- admin/class-plugin-compatibility.php +0 -148
- admin/class-product-upsell-notice.php +1 -2
- admin/class-yoast-form.php +1 -1
- admin/class-yoast-notification-center.php +9 -0
- admin/config-ui/components/class-component-suggestions.php +2 -2
- admin/formatter/class-metabox-formatter.php +1 -1
- admin/formatter/class-post-metabox-formatter.php +1 -1
- admin/google_search_console/class-gsc.php +1 -101
- admin/google_search_console/views/gsc-display.php +1 -5
- admin/metabox/class-metabox.php +4 -25
- admin/views/licenses.php +1 -1
- admin/watchers/class-slug-change-watcher.php +1 -1
- css/dist/{admin-global-1592-rtl.css → admin-global-1600-rtl.css} +0 -0
- css/dist/{admin-global-1592.css → admin-global-1600.css} +0 -0
- css/dist/{adminbar-1592-rtl.css → adminbar-1600-rtl.css} +0 -0
- css/dist/{adminbar-1592.css → adminbar-1600.css} +0 -0
- css/dist/{alerts-1592-rtl.css → alerts-1600-rtl.css} +0 -0
- css/dist/{alerts-1592.css → alerts-1600.css} +0 -0
- css/dist/{badge-1592-rtl.css → badge-1600-rtl.css} +0 -0
- css/dist/{badge-1592.css → badge-1600.css} +0 -0
- css/dist/{dashboard-1592-rtl.css → dashboard-1600-rtl.css} +0 -0
- css/dist/{dashboard-1592.css → dashboard-1600.css} +0 -0
- css/dist/{edit-page-1592-rtl.css → edit-page-1600-rtl.css} +0 -0
- css/dist/{edit-page-1592.css → edit-page-1600.css} +0 -0
- css/dist/{elementor-1592-rtl.css → elementor-1600-rtl.css} +0 -0
- css/dist/{elementor-1592.css → elementor-1600.css} +0 -0
- css/dist/{featured-image-1592-rtl.css → featured-image-1600-rtl.css} +0 -0
- css/dist/{featured-image-1592.css → featured-image-1600.css} +0 -0
- css/dist/{filter-explanation-1592-rtl.css → filter-explanation-1600-rtl.css} +0 -0
- css/dist/{filter-explanation-1592.css → filter-explanation-1600.css} +0 -0
- css/dist/{icons-1592-rtl.css → icons-1600-rtl.css} +0 -0
- css/dist/{icons-1592.css → icons-1600.css} +0 -0
- css/dist/{inside-editor-1592-rtl.css → inside-editor-1600-rtl.css} +0 -0
- css/dist/{inside-editor-1592.css → inside-editor-1600.css} +0 -0
- css/dist/{metabox-1592-rtl.css → metabox-1600-rtl.css} +0 -0
- css/dist/{metabox-1592.css → metabox-1600.css} +0 -0
- css/dist/{metabox-primary-category-1592-rtl.css → metabox-primary-category-1600-rtl.css} +0 -0
- css/dist/{metabox-primary-category-1592.css → metabox-primary-category-1600.css} +0 -0
- css/dist/{modal-1592-rtl.css → modal-1600-rtl.css} +0 -0
- css/dist/{modal-1592.css → modal-1600.css} +0 -0
- css/dist/{monorepo-1592-rtl.css → monorepo-1600-rtl.css} +0 -0
- css/dist/{monorepo-1592.css → monorepo-1600.css} +0 -0
- css/dist/{notifications-1592-rtl.css → notifications-1600-rtl.css} +0 -0
- css/dist/{notifications-1592.css → notifications-1600.css} +0 -0
- css/dist/{schema-blocks-1592-rtl.css → schema-blocks-1600-rtl.css} +0 -0
- css/dist/{schema-blocks-1592.css → schema-blocks-1600.css} +0 -0
- css/dist/{score_icon-1592-rtl.css → score_icon-1600-rtl.css} +0 -0
- css/dist/{score_icon-1592.css → score_icon-1600.css} +0 -0
- css/dist/{search-appearance-1592-rtl.css → search-appearance-1600-rtl.css} +0 -0
- css/dist/{search-appearance-1592.css → search-appearance-1600.css} +0 -0
- css/dist/{structured-data-blocks-1592-rtl.css → structured-data-blocks-1600-rtl.css} +0 -0
- css/dist/{structured-data-blocks-1592.css → structured-data-blocks-1600.css} +0 -0
- css/dist/{toggle-switch-1592-rtl.css → toggle-switch-1600-rtl.css} +0 -0
- css/dist/{toggle-switch-1592.css → toggle-switch-1600.css} +0 -0
- css/dist/{wpseo-dismissible-1592-rtl.css → wpseo-dismissible-1600-rtl.css} +0 -0
- css/dist/{wpseo-dismissible-1592.css → wpseo-dismissible-1600.css} +0 -0
- css/dist/{yoast-components-1592-rtl.css → yoast-components-1600-rtl.css} +0 -0
- css/dist/{yoast-components-1592.css → yoast-components-1600.css} +0 -0
- css/dist/{yoast-extensions-1592-rtl.css → yoast-extensions-1600-rtl.css} +0 -0
- css/dist/{yoast-extensions-1592.css → yoast-extensions-1600.css} +0 -0
- css/dist/{yst_plugin_tools-1592-rtl.css → yst_plugin_tools-1600-rtl.css} +0 -0
- css/dist/{yst_plugin_tools-1592.css → yst_plugin_tools-1600.css} +0 -0
- css/dist/{yst_seo_score-1592-rtl.css → yst_seo_score-1600-rtl.css} +0 -0
- css/dist/{yst_seo_score-1592.css → yst_seo_score-1600.css} +0 -0
- inc/class-addon-manager.php +1 -1
- inc/class-wpseo-features.php +12 -2
- inc/class-wpseo-meta.php +1 -1
- inc/class-wpseo-shortlinker.php +1 -1
- inc/class-wpseo-utils.php +5 -1
- inc/options/class-wpseo-options.php +0 -13
- inc/sitemaps/class-post-type-sitemap-provider.php +0 -44
- js/dist/{admin-global-1592.js → admin-global-1600.js} +1 -1
- js/dist/{analysis-1592.js → analysis-1600.js} +0 -0
- js/dist/{analysis-worker-1592.js → analysis-worker-1600.js} +0 -0
- js/dist/{api-client-1592.js → api-client-1600.js} +1 -1
- js/dist/{babel-polyfill-1592.js → babel-polyfill-1600.js} +0 -0
- js/dist/block-editor-1592.js +0 -1
- js/dist/block-editor-1600.js +1 -0
- js/dist/{bulk-editor-1592.js → bulk-editor-1600.js} +1 -1
- js/dist/classic-editor-1592.js +0 -1
- js/dist/classic-editor-1600.js +1 -0
- js/dist/{commons-1592.js → commons-1600.js} +0 -0
- js/dist/configuration-wizard-1592.js +0 -5
- js/dist/configuration-wizard-1600.js +5 -0
admin/ajax.php
CHANGED
@@ -316,28 +316,6 @@ new WPSEO_Taxonomy_Columns();
|
|
316 |
|
317 |
/* ********************* DEPRECATED FUNCTIONS ********************* */
|
318 |
|
319 |
-
/**
|
320 |
-
* Used in the editor to replace vars for the snippet preview.
|
321 |
-
*
|
322 |
-
* @deprecated 11.9
|
323 |
-
* @codeCoverageIgnore
|
324 |
-
*/
|
325 |
-
function wpseo_ajax_replace_vars() {
|
326 |
-
_deprecated_function( __METHOD__, 'WPSEO 11.9' );
|
327 |
-
|
328 |
-
global $post;
|
329 |
-
check_ajax_referer( 'wpseo-replace-vars' );
|
330 |
-
|
331 |
-
$post = get_post( intval( filter_input( INPUT_POST, 'post_id' ) ) );
|
332 |
-
global $wp_query;
|
333 |
-
$wp_query->queried_object = $post;
|
334 |
-
$wp_query->queried_object_id = $post->ID;
|
335 |
-
|
336 |
-
$omit = [ 'excerpt', 'excerpt_only', 'title' ];
|
337 |
-
echo wpseo_replace_vars( stripslashes( filter_input( INPUT_POST, 'string' ) ), $post, $omit );
|
338 |
-
die;
|
339 |
-
}
|
340 |
-
|
341 |
/**
|
342 |
* Hides the default tagline notice for a specific user.
|
343 |
*
|
316 |
|
317 |
/* ********************* DEPRECATED FUNCTIONS ********************* */
|
318 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
319 |
/**
|
320 |
* Hides the default tagline notice for a specific user.
|
321 |
*
|
admin/class-admin-asset-manager.php
CHANGED
@@ -259,6 +259,8 @@ class WPSEO_Admin_Asset_Manager {
|
|
259 |
'jquery-ui-core',
|
260 |
'jquery-ui-progressbar',
|
261 |
'wp-api',
|
|
|
|
|
262 |
self::PREFIX . 'yoast-components',
|
263 |
self::PREFIX . 'helpers',
|
264 |
self::PREFIX . 'replacement-variable-editor',
|
@@ -310,6 +312,7 @@ class WPSEO_Admin_Asset_Manager {
|
|
310 |
'wp-i18n',
|
311 |
'wp-plugins',
|
312 |
'wp-rich-text',
|
|
|
313 |
self::PREFIX . 'yoast-components',
|
314 |
self::PREFIX . 'legacy-components',
|
315 |
self::PREFIX . 'search-metadata-previews',
|
@@ -327,6 +330,7 @@ class WPSEO_Admin_Asset_Manager {
|
|
327 |
'wp-components',
|
328 |
'wp-compose',
|
329 |
'wp-element',
|
|
|
330 |
self::PREFIX . 'redux',
|
331 |
self::PREFIX . 'yoast-components',
|
332 |
self::PREFIX . 'legacy-components',
|
@@ -799,6 +803,7 @@ class WPSEO_Admin_Asset_Manager {
|
|
799 |
'wp-sanitize',
|
800 |
'wp-api-fetch',
|
801 |
'wp-hooks',
|
|
|
802 |
self::PREFIX . 'components',
|
803 |
self::PREFIX . 'analysis',
|
804 |
self::PREFIX . 'commons',
|
@@ -949,17 +954,4 @@ class WPSEO_Admin_Asset_Manager {
|
|
949 |
|
950 |
return $this->asset_location->get_url( $asset, $type );
|
951 |
}
|
952 |
-
|
953 |
-
/* ********************* DEPRECATED METHODS ********************* */
|
954 |
-
|
955 |
-
/**
|
956 |
-
* This function is needed for backwards compatibility with Local SEO 12.5.
|
957 |
-
*
|
958 |
-
* @deprecated 12.8
|
959 |
-
* @codeCoverageIgnore
|
960 |
-
*
|
961 |
-
* @return void
|
962 |
-
*/
|
963 |
-
public function register_wp_assets() {
|
964 |
-
}
|
965 |
}
|
259 |
'jquery-ui-core',
|
260 |
'jquery-ui-progressbar',
|
261 |
'wp-api',
|
262 |
+
'wp-data',
|
263 |
+
'yoast-seo-api',
|
264 |
self::PREFIX . 'yoast-components',
|
265 |
self::PREFIX . 'helpers',
|
266 |
self::PREFIX . 'replacement-variable-editor',
|
312 |
'wp-i18n',
|
313 |
'wp-plugins',
|
314 |
'wp-rich-text',
|
315 |
+
'yoast-seo-api',
|
316 |
self::PREFIX . 'yoast-components',
|
317 |
self::PREFIX . 'legacy-components',
|
318 |
self::PREFIX . 'search-metadata-previews',
|
330 |
'wp-components',
|
331 |
'wp-compose',
|
332 |
'wp-element',
|
333 |
+
'yoast-seo-api',
|
334 |
self::PREFIX . 'redux',
|
335 |
self::PREFIX . 'yoast-components',
|
336 |
self::PREFIX . 'legacy-components',
|
803 |
'wp-sanitize',
|
804 |
'wp-api-fetch',
|
805 |
'wp-hooks',
|
806 |
+
'yoast-seo-api',
|
807 |
self::PREFIX . 'components',
|
808 |
self::PREFIX . 'analysis',
|
809 |
self::PREFIX . 'commons',
|
954 |
|
955 |
return $this->asset_location->get_url( $asset, $type );
|
956 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
957 |
}
|
admin/class-admin-init.php
CHANGED
@@ -253,7 +253,7 @@ class WPSEO_Admin_Init {
|
|
253 |
* @return void
|
254 |
*/
|
255 |
private function register_premium_upsell_admin_block() {
|
256 |
-
if ( !
|
257 |
$upsell_block = new WPSEO_Premium_Upsell_Admin_Block( 'wpseo_admin_promo_footer' );
|
258 |
$upsell_block->register_hooks();
|
259 |
}
|
@@ -485,64 +485,6 @@ class WPSEO_Admin_Init {
|
|
485 |
|
486 |
/* ********************* DEPRECATED METHODS ********************* */
|
487 |
|
488 |
-
/**
|
489 |
-
* Add an alert if outdated versions of Yoast SEO plugins are running.
|
490 |
-
*
|
491 |
-
* @deprecated 12.3
|
492 |
-
* @codeCoverageIgnore
|
493 |
-
*/
|
494 |
-
public function yoast_plugin_compatibility_notification() {
|
495 |
-
_deprecated_function( __METHOD__, 'WPSEO 12.3' );
|
496 |
-
}
|
497 |
-
|
498 |
-
/**
|
499 |
-
* Creates a WordPress upgrade notification in the notification center.
|
500 |
-
*
|
501 |
-
* @deprecated 12.5
|
502 |
-
* @codeCoverageIgnore
|
503 |
-
*
|
504 |
-
* @return void
|
505 |
-
*/
|
506 |
-
public function wordpress_upgrade_notice() {
|
507 |
-
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
|
508 |
-
}
|
509 |
-
|
510 |
-
/**
|
511 |
-
* Shows a notice to the user if they have Google Analytics for WordPress 5.4.3 installed because it causes an error
|
512 |
-
* on the google search console page.
|
513 |
-
*
|
514 |
-
* @deprecated 12.5
|
515 |
-
*
|
516 |
-
* @codeCoverageIgnore
|
517 |
-
*/
|
518 |
-
public function ga_compatibility_notice() {
|
519 |
-
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
|
520 |
-
}
|
521 |
-
|
522 |
-
/**
|
523 |
-
* Display notice to disable comment pagination.
|
524 |
-
*
|
525 |
-
* @deprecated 12.8
|
526 |
-
* @codeCoverageIgnore
|
527 |
-
*/
|
528 |
-
public function page_comments_notice() {
|
529 |
-
_deprecated_function( __METHOD__, 'WPSEO 12.8' );
|
530 |
-
}
|
531 |
-
|
532 |
-
/**
|
533 |
-
* Are page comments enabled.
|
534 |
-
*
|
535 |
-
* @deprecated 12.8
|
536 |
-
* @codeCoverageIgnore
|
537 |
-
*
|
538 |
-
* @return bool
|
539 |
-
*/
|
540 |
-
public function has_page_comments() {
|
541 |
-
_deprecated_function( __METHOD__, 'WPSEO 12.8' );
|
542 |
-
|
543 |
-
return get_option( 'page_comments' ) === '1';
|
544 |
-
}
|
545 |
-
|
546 |
/**
|
547 |
* Notify about the default tagline if the user hasn't changed it.
|
548 |
*
|
253 |
* @return void
|
254 |
*/
|
255 |
private function register_premium_upsell_admin_block() {
|
256 |
+
if ( ! YoastSEO()->helpers->product->is_premium() ) {
|
257 |
$upsell_block = new WPSEO_Premium_Upsell_Admin_Block( 'wpseo_admin_promo_footer' );
|
258 |
$upsell_block->register_hooks();
|
259 |
}
|
485 |
|
486 |
/* ********************* DEPRECATED METHODS ********************* */
|
487 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
488 |
/**
|
489 |
* Notify about the default tagline if the user hasn't changed it.
|
490 |
*
|
admin/class-admin.php
CHANGED
@@ -52,6 +52,7 @@ class WPSEO_Admin {
|
|
52 |
}
|
53 |
|
54 |
add_filter( 'plugin_action_links_' . WPSEO_BASENAME, [ $this, 'add_action_link' ], 10, 2 );
|
|
|
55 |
|
56 |
add_action( 'admin_enqueue_scripts', [ $this, 'config_page_scripts' ] );
|
57 |
add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_global_style' ] );
|
@@ -218,7 +219,13 @@ class WPSEO_Admin {
|
|
218 |
*/
|
219 |
public function add_action_link( $links, $file ) {
|
220 |
if ( WPSEO_BASENAME === $file && WPSEO_Capability_Utils::current_user_can( 'wpseo_manage_options' ) ) {
|
221 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
array_unshift( $links, $settings_link );
|
223 |
}
|
224 |
|
@@ -227,7 +234,18 @@ class WPSEO_Admin {
|
|
227 |
array_unshift( $links, $faq_link );
|
228 |
|
229 |
$addon_manager = new WPSEO_Addon_Manager();
|
230 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
231 |
if ( $addon_manager->has_valid_subscription( WPSEO_Addon_Manager::PREMIUM_SLUG ) ) {
|
232 |
return $links;
|
233 |
}
|
52 |
}
|
53 |
|
54 |
add_filter( 'plugin_action_links_' . WPSEO_BASENAME, [ $this, 'add_action_link' ], 10, 2 );
|
55 |
+
add_filter( 'network_admin_plugin_action_links_' . WPSEO_BASENAME, [ $this, 'add_action_link' ], 10, 2 );
|
56 |
|
57 |
add_action( 'admin_enqueue_scripts', [ $this, 'config_page_scripts' ] );
|
58 |
add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_global_style' ] );
|
219 |
*/
|
220 |
public function add_action_link( $links, $file ) {
|
221 |
if ( WPSEO_BASENAME === $file && WPSEO_Capability_Utils::current_user_can( 'wpseo_manage_options' ) ) {
|
222 |
+
if ( is_network_admin() ) {
|
223 |
+
$settings_url = network_admin_url( 'admin.php?page=' . self::PAGE_IDENTIFIER );
|
224 |
+
}
|
225 |
+
else {
|
226 |
+
$settings_url = admin_url( 'admin.php?page=' . self::PAGE_IDENTIFIER );
|
227 |
+
}
|
228 |
+
$settings_link = '<a href="' . esc_url( $settings_url ) . '">' . __( 'Settings', 'wordpress-seo' ) . '</a>';
|
229 |
array_unshift( $links, $settings_link );
|
230 |
}
|
231 |
|
234 |
array_unshift( $links, $faq_link );
|
235 |
|
236 |
$addon_manager = new WPSEO_Addon_Manager();
|
237 |
+
if ( YoastSEO()->helpers->product->is_premium() ) {
|
238 |
+
|
239 |
+
// Remove Free 'deactivate' link if Premium is active as well. We don't want users to deactivate Free when Premium is active.
|
240 |
+
unset( $links['deactivate'] );
|
241 |
+
$no_deactivation_explanation = '<span style="color: #32373c">' . sprintf(
|
242 |
+
/* translators: %s expands to Yoast SEO Premium. */
|
243 |
+
__( 'Deactivate %s first', 'wordpress-seo' ),
|
244 |
+
'Yoast SEO Premium'
|
245 |
+
) . '</span>';
|
246 |
+
|
247 |
+
array_unshift( $links, $no_deactivation_explanation );
|
248 |
+
|
249 |
if ( $addon_manager->has_valid_subscription( WPSEO_Addon_Manager::PREMIUM_SLUG ) ) {
|
250 |
return $links;
|
251 |
}
|
admin/class-config.php
CHANGED
@@ -78,8 +78,12 @@ class WPSEO_Admin_Pages {
|
|
78 |
wp_enqueue_script( 'dashboard' );
|
79 |
wp_enqueue_script( 'thickbox' );
|
80 |
|
|
|
|
|
|
|
81 |
$script_data = [
|
82 |
'userLanguageCode' => WPSEO_Language_Utils::get_language( \get_user_locale() ),
|
|
|
83 |
];
|
84 |
|
85 |
$page = filter_input( INPUT_GET, 'page' );
|
@@ -163,9 +167,7 @@ class WPSEO_Admin_Pages {
|
|
163 |
* @return bool Whether the Local SEO upsell should be shown.
|
164 |
*/
|
165 |
private function should_show_local_seo_upsell() {
|
166 |
-
|
167 |
-
|
168 |
-
return ! WPSEO_Utils::is_yoast_seo_premium()
|
169 |
&& ! ( defined( 'WPSEO_LOCAL_FILE' ) );
|
170 |
}
|
171 |
|
78 |
wp_enqueue_script( 'dashboard' );
|
79 |
wp_enqueue_script( 'thickbox' );
|
80 |
|
81 |
+
$alert_dismissal_action = YoastSEO()->classes->get( \Yoast\WP\SEO\Actions\Alert_Dismissal_Action::class );
|
82 |
+
$dismissed_alerts = $alert_dismissal_action->all_dismissed();
|
83 |
+
|
84 |
$script_data = [
|
85 |
'userLanguageCode' => WPSEO_Language_Utils::get_language( \get_user_locale() ),
|
86 |
+
'dismissedAlerts' => $dismissed_alerts,
|
87 |
];
|
88 |
|
89 |
$page = filter_input( INPUT_GET, 'page' );
|
167 |
* @return bool Whether the Local SEO upsell should be shown.
|
168 |
*/
|
169 |
private function should_show_local_seo_upsell() {
|
170 |
+
return ! YoastSEO()->helpers->product->is_premium()
|
|
|
|
|
171 |
&& ! ( defined( 'WPSEO_LOCAL_FILE' ) );
|
172 |
}
|
173 |
|
admin/class-export.php
CHANGED
@@ -146,32 +146,4 @@ class WPSEO_Export {
|
|
146 |
}
|
147 |
$this->write_line( $key . ' = ' . $val );
|
148 |
}
|
149 |
-
|
150 |
-
/* ********************* DEPRECATED METHODS ********************* */
|
151 |
-
|
152 |
-
/**
|
153 |
-
* Returns true when the property error has a value.
|
154 |
-
*
|
155 |
-
* @deprecated 11.9 Obsolete since the export setting refactor in 9.2.
|
156 |
-
*
|
157 |
-
* @codeCoverageIgnore
|
158 |
-
*
|
159 |
-
* @return bool
|
160 |
-
*/
|
161 |
-
public function has_error() {
|
162 |
-
_deprecated_function( __METHOD__, 'WPSEO 11.9' );
|
163 |
-
|
164 |
-
return false;
|
165 |
-
}
|
166 |
-
|
167 |
-
/**
|
168 |
-
* Sets the error hook, to display the error to the user.
|
169 |
-
*
|
170 |
-
* @deprecated 11.9 Obsolete since the export setting refactor in 9.2.
|
171 |
-
*
|
172 |
-
* @codeCoverageIgnore
|
173 |
-
*/
|
174 |
-
public function set_error_hook() {
|
175 |
-
_deprecated_function( __METHOD__, 'WPSEO 11.9' );
|
176 |
-
}
|
177 |
}
|
146 |
}
|
147 |
$this->write_line( $key . ' = ' . $val );
|
148 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
}
|
admin/class-plugin-compatibility.php
DELETED
@@ -1,148 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* WPSEO plugin file.
|
4 |
-
*
|
5 |
-
* @package WPSEO\Plugin_Compatibility
|
6 |
-
*/
|
7 |
-
|
8 |
-
/**
|
9 |
-
* Class WPSEO_Plugin_Compatibility.
|
10 |
-
*
|
11 |
-
* @codeCoverageIgnore
|
12 |
-
* @deprecated 12.3
|
13 |
-
*/
|
14 |
-
class WPSEO_Plugin_Compatibility {
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Holds the current WPSEO version.
|
18 |
-
*
|
19 |
-
* @var string
|
20 |
-
*/
|
21 |
-
protected $current_wpseo_version;
|
22 |
-
|
23 |
-
/**
|
24 |
-
* Holds the availability checker.
|
25 |
-
*
|
26 |
-
* @var WPSEO_Plugin_Availability
|
27 |
-
*/
|
28 |
-
protected $availability_checker;
|
29 |
-
|
30 |
-
/**
|
31 |
-
* Holds the installed plugins.
|
32 |
-
*
|
33 |
-
* @var array
|
34 |
-
*/
|
35 |
-
protected $installed_plugins;
|
36 |
-
|
37 |
-
/**
|
38 |
-
* WPSEO_Plugin_Compatibility constructor.
|
39 |
-
*
|
40 |
-
* @deprecated 12.3
|
41 |
-
* @codeCoverageIgnore
|
42 |
-
*
|
43 |
-
* @param string $version The version to check against.
|
44 |
-
* @param null|class $availability_checker The checker to use.
|
45 |
-
*/
|
46 |
-
public function __construct( $version, $availability_checker = null ) {
|
47 |
-
_deprecated_function( __METHOD__, '12.3' );
|
48 |
-
|
49 |
-
// We trim off the patch version, as this shouldn't break the comparison.
|
50 |
-
$this->current_wpseo_version = $this->get_major_minor_version( $version );
|
51 |
-
$this->availability_checker = $this->retrieve_availability_checker( $availability_checker );
|
52 |
-
$this->installed_plugins = $this->availability_checker->get_installed_plugins();
|
53 |
-
}
|
54 |
-
|
55 |
-
/**
|
56 |
-
* Retrieves the availability checker.
|
57 |
-
*
|
58 |
-
* @deprecated 12.3
|
59 |
-
* @codeCoverageIgnore
|
60 |
-
*
|
61 |
-
* @param null|object $checker The checker to set.
|
62 |
-
*
|
63 |
-
* @return WPSEO_Plugin_Availability The checker to use.
|
64 |
-
*/
|
65 |
-
private function retrieve_availability_checker( $checker ) {
|
66 |
-
_deprecated_function( __METHOD__, '12.3' );
|
67 |
-
|
68 |
-
if ( is_null( $checker ) || ! is_object( $checker ) ) {
|
69 |
-
$checker = new WPSEO_Plugin_Availability();
|
70 |
-
$checker->register();
|
71 |
-
}
|
72 |
-
|
73 |
-
return $checker;
|
74 |
-
}
|
75 |
-
|
76 |
-
/**
|
77 |
-
* Wraps the availability checker's get_installed_plugins method.
|
78 |
-
*
|
79 |
-
* @deprecated 12.3
|
80 |
-
* @codeCoverageIgnore
|
81 |
-
*
|
82 |
-
* @return array Array containing all the installed plugins.
|
83 |
-
*/
|
84 |
-
public function get_installed_plugins() {
|
85 |
-
_deprecated_function( __METHOD__, '12.3' );
|
86 |
-
|
87 |
-
return $this->installed_plugins;
|
88 |
-
}
|
89 |
-
|
90 |
-
/**
|
91 |
-
* Creates a list of installed plugins and whether or not they are compatible.
|
92 |
-
*
|
93 |
-
* @deprecated 12.3
|
94 |
-
* @codeCoverageIgnore
|
95 |
-
*
|
96 |
-
* @return array Array containing the installed plugins and compatibility.
|
97 |
-
*/
|
98 |
-
public function get_installed_plugins_compatibility() {
|
99 |
-
_deprecated_function( __METHOD__, '12.3' );
|
100 |
-
|
101 |
-
foreach ( $this->installed_plugins as $key => $plugin ) {
|
102 |
-
|
103 |
-
$this->installed_plugins[ $key ]['compatible'] = $this->is_compatible( $key );
|
104 |
-
}
|
105 |
-
|
106 |
-
return $this->installed_plugins;
|
107 |
-
}
|
108 |
-
|
109 |
-
/**
|
110 |
-
* Checks whether or not a plugin is compatible.
|
111 |
-
*
|
112 |
-
* @deprecated 12.3
|
113 |
-
* @codeCoverageIgnore
|
114 |
-
*
|
115 |
-
* @param string $plugin The plugin to look for and match.
|
116 |
-
*
|
117 |
-
* @return bool Whether or not the plugin is compatible.
|
118 |
-
*/
|
119 |
-
public function is_compatible( $plugin ) {
|
120 |
-
_deprecated_function( __METHOD__, '12.3' );
|
121 |
-
|
122 |
-
$plugin = $this->availability_checker->get_plugin( $plugin );
|
123 |
-
|
124 |
-
// If we are not syncing versions, we are always compatible.
|
125 |
-
if ( ! isset( $plugin['version_sync'] ) || $plugin['version_sync'] !== true ) {
|
126 |
-
return true;
|
127 |
-
}
|
128 |
-
|
129 |
-
$plugin_version = $this->availability_checker->get_version( $plugin );
|
130 |
-
return $this->get_major_minor_version( $plugin_version ) === $this->current_wpseo_version;
|
131 |
-
}
|
132 |
-
|
133 |
-
/**
|
134 |
-
* Gets the major/minor version of the plugin for easier comparing.
|
135 |
-
*
|
136 |
-
* @deprecated 12.3
|
137 |
-
* @codeCoverageIgnore
|
138 |
-
*
|
139 |
-
* @param string $version The version to trim.
|
140 |
-
*
|
141 |
-
* @return string The major/minor version of the plugin.
|
142 |
-
*/
|
143 |
-
protected function get_major_minor_version( $version ) {
|
144 |
-
_deprecated_function( __METHOD__, '12.3' );
|
145 |
-
|
146 |
-
return substr( $version, 0, 3 );
|
147 |
-
}
|
148 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/class-product-upsell-notice.php
CHANGED
@@ -121,8 +121,7 @@ class WPSEO_Product_Upsell_Notice {
|
|
121 |
* @return string
|
122 |
*/
|
123 |
protected function get_premium_upsell_section() {
|
124 |
-
|
125 |
-
if ( $features->is_free() ) {
|
126 |
return sprintf(
|
127 |
/* translators: %1$s expands anchor to premium plugin page, %2$s expands to </a> */
|
128 |
__( 'By the way, did you know we also have a %1$sPremium plugin%2$s? It offers advanced features, like a redirect manager and support for multiple keyphrases. It also comes with 24/7 personal support.', 'wordpress-seo' ),
|
121 |
* @return string
|
122 |
*/
|
123 |
protected function get_premium_upsell_section() {
|
124 |
+
if ( ! YoastSEO()->helpers->product->is_premium() ) {
|
|
|
125 |
return sprintf(
|
126 |
/* translators: %1$s expands anchor to premium plugin page, %2$s expands to </a> */
|
127 |
__( 'By the way, did you know we also have a %1$sPremium plugin%2$s? It offers advanced features, like a redirect manager and support for multiple keyphrases. It also comes with 24/7 personal support.', 'wordpress-seo' ),
|
admin/class-yoast-form.php
CHANGED
@@ -184,7 +184,7 @@ class Yoast_Form {
|
|
184 |
public function admin_sidebar() {
|
185 |
// No banners in Premium.
|
186 |
$addon_manager = new WPSEO_Addon_Manager();
|
187 |
-
if (
|
188 |
return;
|
189 |
}
|
190 |
|
184 |
public function admin_sidebar() {
|
185 |
// No banners in Premium.
|
186 |
$addon_manager = new WPSEO_Addon_Manager();
|
187 |
+
if ( YoastSEO()->helpers->product->is_premium() && $addon_manager->has_valid_subscription( WPSEO_Addon_Manager::PREMIUM_SLUG ) ) {
|
188 |
return;
|
189 |
}
|
190 |
|
admin/class-yoast-notification-center.php
CHANGED
@@ -5,6 +5,8 @@
|
|
5 |
* @package WPSEO\Admin\Notifications
|
6 |
*/
|
7 |
|
|
|
|
|
8 |
/**
|
9 |
* Handles notifications storage and display.
|
10 |
*/
|
@@ -789,6 +791,13 @@ class Yoast_Notification_Center {
|
|
789 |
unset( $notification_data['options']['nonce'] );
|
790 |
}
|
791 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
792 |
return new Yoast_Notification(
|
793 |
$notification_data['message'],
|
794 |
$notification_data['options']
|
5 |
* @package WPSEO\Admin\Notifications
|
6 |
*/
|
7 |
|
8 |
+
use Yoast\WP\SEO\Presenters\Abstract_Presenter;
|
9 |
+
|
10 |
/**
|
11 |
* Handles notifications storage and display.
|
12 |
*/
|
791 |
unset( $notification_data['options']['nonce'] );
|
792 |
}
|
793 |
|
794 |
+
if (
|
795 |
+
isset( $notification_data['message'] ) &&
|
796 |
+
\is_subclass_of( $notification_data['message'], Abstract_Presenter::class, false )
|
797 |
+
) {
|
798 |
+
$notification_data['message'] = $notification_data['message']->present();
|
799 |
+
}
|
800 |
+
|
801 |
return new Yoast_Notification(
|
802 |
$notification_data['message'],
|
803 |
$notification_data['options']
|
admin/config-ui/components/class-component-suggestions.php
CHANGED
@@ -28,7 +28,7 @@ class WPSEO_Config_Component_Suggestions implements WPSEO_Config_Component {
|
|
28 |
$field = new WPSEO_Config_Field_Suggestions();
|
29 |
|
30 |
// Only show Premium upsell when we are not inside a Premium install.
|
31 |
-
if ( !
|
32 |
$field->add_suggestion(
|
33 |
/* translators: %s resolves to Yoast SEO Premium */
|
34 |
sprintf( __( 'Outrank the competition with %s', 'wordpress-seo' ), 'Yoast SEO Premium' ),
|
@@ -73,7 +73,7 @@ class WPSEO_Config_Component_Suggestions implements WPSEO_Config_Component {
|
|
73 |
);
|
74 |
|
75 |
// When we are running in Yoast SEO Premium and don't have Local SEO installed, show Local SEO as suggestion.
|
76 |
-
if (
|
77 |
$field->add_suggestion(
|
78 |
__( 'Attract more customers near you', 'wordpress-seo' ),
|
79 |
/* translators: %1$s resolves to Local SEO */
|
28 |
$field = new WPSEO_Config_Field_Suggestions();
|
29 |
|
30 |
// Only show Premium upsell when we are not inside a Premium install.
|
31 |
+
if ( ! YoastSEO()->helpers->product->is_premium() ) {
|
32 |
$field->add_suggestion(
|
33 |
/* translators: %s resolves to Yoast SEO Premium */
|
34 |
sprintf( __( 'Outrank the competition with %s', 'wordpress-seo' ), 'Yoast SEO Premium' ),
|
73 |
);
|
74 |
|
75 |
// When we are running in Yoast SEO Premium and don't have Local SEO installed, show Local SEO as suggestion.
|
76 |
+
if ( YoastSEO()->helpers->product->is_premium() && ! defined( 'WPSEO_LOCAL_FILE' ) ) {
|
77 |
$field->add_suggestion(
|
78 |
__( 'Attract more customers near you', 'wordpress-seo' ),
|
79 |
/* translators: %1$s resolves to Local SEO */
|
admin/formatter/class-metabox-formatter.php
CHANGED
@@ -76,7 +76,7 @@ class WPSEO_Metabox_Formatter {
|
|
76 |
'semrushIntegrationActive' => WPSEO_Options::get( 'semrush_integration_active', true ) ? 1 : 0,
|
77 |
'intl' => $this->get_content_analysis_component_translations(),
|
78 |
'isRtl' => is_rtl(),
|
79 |
-
'isPremium' =>
|
80 |
'wordFormRecognitionActive' => YoastSEO()->helpers->language->is_word_form_recognition_active( WPSEO_Language_Utils::get_language( get_locale() ) ),
|
81 |
'siteIconUrl' => get_site_icon_url(),
|
82 |
'countryCode' => WPSEO_Options::get( 'semrush_country_code', false ),
|
76 |
'semrushIntegrationActive' => WPSEO_Options::get( 'semrush_integration_active', true ) ? 1 : 0,
|
77 |
'intl' => $this->get_content_analysis_component_translations(),
|
78 |
'isRtl' => is_rtl(),
|
79 |
+
'isPremium' => YoastSEO()->helpers->product->is_premium(),
|
80 |
'wordFormRecognitionActive' => YoastSEO()->helpers->language->is_word_form_recognition_active( WPSEO_Language_Utils::get_language( get_locale() ) ),
|
81 |
'siteIconUrl' => get_site_icon_url(),
|
82 |
'countryCode' => WPSEO_Options::get( 'semrush_country_code', false ),
|
admin/formatter/class-post-metabox-formatter.php
CHANGED
@@ -131,7 +131,7 @@ class WPSEO_Post_Metabox_Formatter implements WPSEO_Metabox_Formatter_Interface
|
|
131 |
$keyword = WPSEO_Meta::get_value( 'focuskw', $this->post->ID );
|
132 |
$usage = [ $keyword => $this->get_keyword_usage_for_current_post( $keyword ) ];
|
133 |
|
134 |
-
if (
|
135 |
return $this->get_premium_keywords( $usage );
|
136 |
}
|
137 |
|
131 |
$keyword = WPSEO_Meta::get_value( 'focuskw', $this->post->ID );
|
132 |
$usage = [ $keyword => $this->get_keyword_usage_for_current_post( $keyword ) ];
|
133 |
|
134 |
+
if ( YoastSEO()->helpers->product->is_premium() ) {
|
135 |
return $this->get_premium_keywords( $usage );
|
136 |
}
|
137 |
|
admin/google_search_console/class-gsc.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
/**
|
9 |
* Class WPSEO_GSC.
|
10 |
*/
|
11 |
-
class WPSEO_GSC
|
12 |
|
13 |
/**
|
14 |
* The option where data will be stored.
|
@@ -25,104 +25,4 @@ class WPSEO_GSC implements WPSEO_WordPress_Integration {
|
|
25 |
public function display() {
|
26 |
require_once WPSEO_PATH . 'admin/google_search_console/views/gsc-display.php';
|
27 |
}
|
28 |
-
|
29 |
-
/**
|
30 |
-
* Registers the hooks.
|
31 |
-
*
|
32 |
-
* @deprecated 12.5
|
33 |
-
*
|
34 |
-
* @codeCoverageIgnore
|
35 |
-
*
|
36 |
-
* @return void
|
37 |
-
*/
|
38 |
-
public function register_hooks() {
|
39 |
-
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
|
40 |
-
}
|
41 |
-
|
42 |
-
/**
|
43 |
-
* Handles the dashboard notification.
|
44 |
-
*
|
45 |
-
* If the Google Search Console has no credentials, show a notification
|
46 |
-
* for the user to give them a heads up. This message is dismissable.
|
47 |
-
*
|
48 |
-
* @deprecated 12.5
|
49 |
-
*
|
50 |
-
* @codeCoverageIgnore
|
51 |
-
*
|
52 |
-
* @return void
|
53 |
-
*/
|
54 |
-
public function register_gsc_notification() {
|
55 |
-
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
|
56 |
-
}
|
57 |
-
|
58 |
-
/**
|
59 |
-
* Makes sure the settings will be registered, so data can be stored.
|
60 |
-
*
|
61 |
-
* @deprecated 12.5
|
62 |
-
*
|
63 |
-
* @codeCoverageIgnore
|
64 |
-
*
|
65 |
-
* @return void
|
66 |
-
*/
|
67 |
-
public function register_settings() {
|
68 |
-
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
|
69 |
-
}
|
70 |
-
|
71 |
-
/**
|
72 |
-
* Displays the table.
|
73 |
-
*
|
74 |
-
* @deprecated 12.5
|
75 |
-
*
|
76 |
-
* @codeCoverageIgnore
|
77 |
-
*
|
78 |
-
* @return void
|
79 |
-
*/
|
80 |
-
public function display_table() {
|
81 |
-
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
|
82 |
-
}
|
83 |
-
|
84 |
-
/**
|
85 |
-
* Loads the admin redirects scripts.
|
86 |
-
*
|
87 |
-
* @deprecated 12.5
|
88 |
-
*
|
89 |
-
* @codeCoverageIgnore
|
90 |
-
*
|
91 |
-
* @return void
|
92 |
-
*/
|
93 |
-
public function page_scripts() {
|
94 |
-
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
|
95 |
-
}
|
96 |
-
|
97 |
-
/**
|
98 |
-
* Sets the screen options.
|
99 |
-
*
|
100 |
-
* @deprecated 12.5
|
101 |
-
*
|
102 |
-
* @codeCoverageIgnore
|
103 |
-
*
|
104 |
-
* @param string $status Status string.
|
105 |
-
* @param string $option Option key.
|
106 |
-
* @param string $value Value to return.
|
107 |
-
*
|
108 |
-
* @return mixed The screen option value. False when not errors_per_page.
|
109 |
-
*/
|
110 |
-
public function set_screen_option( $status, $option, $value ) {
|
111 |
-
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
|
112 |
-
|
113 |
-
return false;
|
114 |
-
}
|
115 |
-
|
116 |
-
/**
|
117 |
-
* Sets the tab help on top of the screen.
|
118 |
-
*
|
119 |
-
* @deprecated 12.5
|
120 |
-
*
|
121 |
-
* @codeCoverageIgnore
|
122 |
-
*
|
123 |
-
* @return void
|
124 |
-
*/
|
125 |
-
public function set_help() {
|
126 |
-
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
|
127 |
-
}
|
128 |
}
|
8 |
/**
|
9 |
* Class WPSEO_GSC.
|
10 |
*/
|
11 |
+
class WPSEO_GSC {
|
12 |
|
13 |
/**
|
14 |
* The option where data will be stored.
|
25 |
public function display() {
|
26 |
require_once WPSEO_PATH . 'admin/google_search_console/views/gsc-display.php';
|
27 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
}
|
admin/google_search_console/views/gsc-display.php
CHANGED
@@ -9,11 +9,7 @@
|
|
9 |
Yoast_Form::get_instance()->admin_header( false, 'wpseo-gsc', false, 'yoast_wpseo_gsc_options' );
|
10 |
|
11 |
// GSC Error notification.
|
12 |
-
$
|
13 |
-
$gsc_url = 'https://search.google.com/search-console/index';
|
14 |
-
if ( $gsc_profile !== '' ) {
|
15 |
-
$gsc_url .= '?resource_id=' . rawurlencode( $gsc_profile );
|
16 |
-
}
|
17 |
$gsc_post_url = 'https://yoa.st/google-search-console-deprecated';
|
18 |
$gsc_style_alert = '
|
19 |
display: flex;
|
9 |
Yoast_Form::get_instance()->admin_header( false, 'wpseo-gsc', false, 'yoast_wpseo_gsc_options' );
|
10 |
|
11 |
// GSC Error notification.
|
12 |
+
$gsc_url = 'https://search.google.com/search-console/index';
|
|
|
|
|
|
|
|
|
13 |
$gsc_post_url = 'https://yoa.st/google-search-console-deprecated';
|
14 |
$gsc_style_alert = '
|
15 |
display: flex;
|
admin/metabox/class-metabox.php
CHANGED
@@ -893,6 +893,9 @@ class WPSEO_Metabox extends WPSEO_Meta {
|
|
893 |
'enabled_features' => WPSEO_Utils::retrieve_enabled_features(),
|
894 |
];
|
895 |
|
|
|
|
|
|
|
896 |
$script_data = [
|
897 |
// @todo replace this translation with JavaScript translations.
|
898 |
'media' => [ 'choose_image' => __( 'Use Image', 'wordpress-seo' ) ],
|
@@ -905,6 +908,7 @@ class WPSEO_Metabox extends WPSEO_Meta {
|
|
905 |
'worker' => $worker_script_data,
|
906 |
'estimatedReadingTimeEnabled' => $this->estimated_reading_time_conditional->is_met(),
|
907 |
],
|
|
|
908 |
];
|
909 |
|
910 |
if ( post_type_supports( get_post_type(), 'thumbnail' ) ) {
|
@@ -1112,29 +1116,4 @@ class WPSEO_Metabox extends WPSEO_Meta {
|
|
1112 |
protected function get_product_title() {
|
1113 |
return YoastSEO()->helpers->product->get_product_name();
|
1114 |
}
|
1115 |
-
|
1116 |
-
/* ********************* DEPRECATED METHODS ********************* */
|
1117 |
-
|
1118 |
-
/**
|
1119 |
-
* Outputs a tab in the Yoast SEO Metabox.
|
1120 |
-
*
|
1121 |
-
* @deprecated 12.2
|
1122 |
-
* @codeCoverageIgnore
|
1123 |
-
*
|
1124 |
-
* @param string $id CSS ID of the tab.
|
1125 |
-
* @param string $heading Heading for the tab.
|
1126 |
-
* @param string $content Content of the tab. This content should be escaped.
|
1127 |
-
*/
|
1128 |
-
public function do_tab( $id, $heading, $content ) {
|
1129 |
-
_deprecated_function( __METHOD__, '12.2' );
|
1130 |
-
|
1131 |
-
?>
|
1132 |
-
<div id="<?php echo esc_attr( 'wpseo_' . $id ); ?>" class="wpseotab wpseo-form <?php echo esc_attr( $id ); ?>">
|
1133 |
-
<?php
|
1134 |
-
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: deprecated function.
|
1135 |
-
echo $content;
|
1136 |
-
?>
|
1137 |
-
</div>
|
1138 |
-
<?php
|
1139 |
-
}
|
1140 |
}
|
893 |
'enabled_features' => WPSEO_Utils::retrieve_enabled_features(),
|
894 |
];
|
895 |
|
896 |
+
$alert_dismissal_action = YoastSEO()->classes->get( \Yoast\WP\SEO\Actions\Alert_Dismissal_Action::class );
|
897 |
+
$dismissed_alerts = $alert_dismissal_action->all_dismissed();
|
898 |
+
|
899 |
$script_data = [
|
900 |
// @todo replace this translation with JavaScript translations.
|
901 |
'media' => [ 'choose_image' => __( 'Use Image', 'wordpress-seo' ) ],
|
908 |
'worker' => $worker_script_data,
|
909 |
'estimatedReadingTimeEnabled' => $this->estimated_reading_time_conditional->is_met(),
|
910 |
],
|
911 |
+
'dismissedAlerts' => $dismissed_alerts,
|
912 |
];
|
913 |
|
914 |
if ( post_type_supports( get_post_type(), 'thumbnail' ) ) {
|
1116 |
protected function get_product_title() {
|
1117 |
return YoastSEO()->helpers->product->get_product_name();
|
1118 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1119 |
}
|
admin/views/licenses.php
CHANGED
@@ -86,7 +86,7 @@ if ( YoastSEO()->helpers->woocommerce->is_active() ) {
|
|
86 |
}
|
87 |
|
88 |
$addon_manager = new WPSEO_Addon_Manager();
|
89 |
-
$has_valid_premium_subscription =
|
90 |
|
91 |
/* translators: %1$s expands to Yoast SEO. */
|
92 |
$wpseo_extensions_header = sprintf( __( '%1$s Extensions', 'wordpress-seo' ), 'Yoast SEO' );
|
86 |
}
|
87 |
|
88 |
$addon_manager = new WPSEO_Addon_Manager();
|
89 |
+
$has_valid_premium_subscription = YoastSEO()->helpers->product->is_premium() && $addon_manager->has_valid_subscription( WPSEO_Addon_Manager::PREMIUM_SLUG );
|
90 |
|
91 |
/* translators: %1$s expands to Yoast SEO. */
|
92 |
$wpseo_extensions_header = sprintf( __( '%1$s Extensions', 'wordpress-seo' ), 'Yoast SEO' );
|
admin/watchers/class-slug-change-watcher.php
CHANGED
@@ -17,7 +17,7 @@ class WPSEO_Slug_Change_Watcher implements WPSEO_WordPress_Integration {
|
|
17 |
*/
|
18 |
public function register_hooks() {
|
19 |
// If the current plugin is Yoast SEO Premium, stop registering.
|
20 |
-
if (
|
21 |
return;
|
22 |
}
|
23 |
|
17 |
*/
|
18 |
public function register_hooks() {
|
19 |
// If the current plugin is Yoast SEO Premium, stop registering.
|
20 |
+
if ( YoastSEO()->helpers->product->is_premium() ) {
|
21 |
return;
|
22 |
}
|
23 |
|
css/dist/{admin-global-1592-rtl.css → admin-global-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{admin-global-1592.css → admin-global-1600.css}
RENAMED
File without changes
|
css/dist/{adminbar-1592-rtl.css → adminbar-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{adminbar-1592.css → adminbar-1600.css}
RENAMED
File without changes
|
css/dist/{alerts-1592-rtl.css → alerts-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{alerts-1592.css → alerts-1600.css}
RENAMED
File without changes
|
css/dist/{badge-1592-rtl.css → badge-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{badge-1592.css → badge-1600.css}
RENAMED
File without changes
|
css/dist/{dashboard-1592-rtl.css → dashboard-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{dashboard-1592.css → dashboard-1600.css}
RENAMED
File without changes
|
css/dist/{edit-page-1592-rtl.css → edit-page-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{edit-page-1592.css → edit-page-1600.css}
RENAMED
File without changes
|
css/dist/{elementor-1592-rtl.css → elementor-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{elementor-1592.css → elementor-1600.css}
RENAMED
File without changes
|
css/dist/{featured-image-1592-rtl.css → featured-image-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{featured-image-1592.css → featured-image-1600.css}
RENAMED
File without changes
|
css/dist/{filter-explanation-1592-rtl.css → filter-explanation-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{filter-explanation-1592.css → filter-explanation-1600.css}
RENAMED
File without changes
|
css/dist/{icons-1592-rtl.css → icons-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{icons-1592.css → icons-1600.css}
RENAMED
File without changes
|
css/dist/{inside-editor-1592-rtl.css → inside-editor-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{inside-editor-1592.css → inside-editor-1600.css}
RENAMED
File without changes
|
css/dist/{metabox-1592-rtl.css → metabox-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{metabox-1592.css → metabox-1600.css}
RENAMED
File without changes
|
css/dist/{metabox-primary-category-1592-rtl.css → metabox-primary-category-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{metabox-primary-category-1592.css → metabox-primary-category-1600.css}
RENAMED
File without changes
|
css/dist/{modal-1592-rtl.css → modal-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{modal-1592.css → modal-1600.css}
RENAMED
File without changes
|
css/dist/{monorepo-1592-rtl.css → monorepo-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{monorepo-1592.css → monorepo-1600.css}
RENAMED
File without changes
|
css/dist/{notifications-1592-rtl.css → notifications-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{notifications-1592.css → notifications-1600.css}
RENAMED
File without changes
|
css/dist/{schema-blocks-1592-rtl.css → schema-blocks-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{schema-blocks-1592.css → schema-blocks-1600.css}
RENAMED
File without changes
|
css/dist/{score_icon-1592-rtl.css → score_icon-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{score_icon-1592.css → score_icon-1600.css}
RENAMED
File without changes
|
css/dist/{search-appearance-1592-rtl.css → search-appearance-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{search-appearance-1592.css → search-appearance-1600.css}
RENAMED
File without changes
|
css/dist/{structured-data-blocks-1592-rtl.css → structured-data-blocks-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{structured-data-blocks-1592.css → structured-data-blocks-1600.css}
RENAMED
File without changes
|
css/dist/{toggle-switch-1592-rtl.css → toggle-switch-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{toggle-switch-1592.css → toggle-switch-1600.css}
RENAMED
File without changes
|
css/dist/{wpseo-dismissible-1592-rtl.css → wpseo-dismissible-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{wpseo-dismissible-1592.css → wpseo-dismissible-1600.css}
RENAMED
File without changes
|
css/dist/{yoast-components-1592-rtl.css → yoast-components-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{yoast-components-1592.css → yoast-components-1600.css}
RENAMED
File without changes
|
css/dist/{yoast-extensions-1592-rtl.css → yoast-extensions-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{yoast-extensions-1592.css → yoast-extensions-1600.css}
RENAMED
File without changes
|
css/dist/{yst_plugin_tools-1592-rtl.css → yst_plugin_tools-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{yst_plugin_tools-1592.css → yst_plugin_tools-1600.css}
RENAMED
File without changes
|
css/dist/{yst_seo_score-1592-rtl.css → yst_seo_score-1600-rtl.css}
RENAMED
File without changes
|
css/dist/{yst_seo_score-1592.css → yst_seo_score-1600.css}
RENAMED
File without changes
|
inc/class-addon-manager.php
CHANGED
@@ -450,7 +450,7 @@ class WPSEO_Addon_Manager {
|
|
450 |
$addons = self::$addons;
|
451 |
|
452 |
// Yoast SEO Free isn't an addon, but we needed it in Premium to fetch translations.
|
453 |
-
if (
|
454 |
$addons['wp-seo.php'] = self::FREE_SLUG;
|
455 |
}
|
456 |
|
450 |
$addons = self::$addons;
|
451 |
|
452 |
// Yoast SEO Free isn't an addon, but we needed it in Premium to fetch translations.
|
453 |
+
if ( YoastSEO()->helpers->product->is_premium() ) {
|
454 |
$addons['wp-seo.php'] = self::FREE_SLUG;
|
455 |
}
|
456 |
|
inc/class-wpseo-features.php
CHANGED
@@ -7,24 +7,34 @@
|
|
7 |
|
8 |
/**
|
9 |
* Class containing method for WPSEO Features.
|
|
|
|
|
10 |
*/
|
11 |
class WPSEO_Features {
|
12 |
|
13 |
/**
|
14 |
* Checks if the premium constant exists to make sure if plugin is the premium one.
|
15 |
*
|
|
|
|
|
|
|
16 |
* @return bool
|
17 |
*/
|
18 |
public function is_premium() {
|
19 |
-
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* Checks if using the free version of the plugin.
|
24 |
*
|
|
|
|
|
|
|
25 |
* @return bool
|
26 |
*/
|
27 |
public function is_free() {
|
28 |
-
|
|
|
29 |
}
|
30 |
}
|
7 |
|
8 |
/**
|
9 |
* Class containing method for WPSEO Features.
|
10 |
+
*
|
11 |
+
* @deprecated 16.0
|
12 |
*/
|
13 |
class WPSEO_Features {
|
14 |
|
15 |
/**
|
16 |
* Checks if the premium constant exists to make sure if plugin is the premium one.
|
17 |
*
|
18 |
+
* @deprecated 16.0
|
19 |
+
* @codeCoverageIgnore
|
20 |
+
*
|
21 |
* @return bool
|
22 |
*/
|
23 |
public function is_premium() {
|
24 |
+
_deprecated_function( __FUNCTION__, '16.0', 'YoastSEO()->helpers->product->is_premium' );
|
25 |
+
return YoastSEO()->helpers->product->is_premium();
|
26 |
}
|
27 |
|
28 |
/**
|
29 |
* Checks if using the free version of the plugin.
|
30 |
*
|
31 |
+
* @deprecated 16.0
|
32 |
+
* @codeCoverageIgnore
|
33 |
+
*
|
34 |
* @return bool
|
35 |
*/
|
36 |
public function is_free() {
|
37 |
+
_deprecated_function( __FUNCTION__, '16.0', 'YoastSEO()->helpers->product->is_premium' );
|
38 |
+
return true;
|
39 |
}
|
40 |
}
|
inc/class-wpseo-meta.php
CHANGED
@@ -1022,7 +1022,7 @@ class WPSEO_Meta {
|
|
1022 |
* In that case there's no use for an additional query as we already know
|
1023 |
* that the keyword has been used multiple times before.
|
1024 |
*/
|
1025 |
-
if (
|
1026 |
$query = [
|
1027 |
'meta_query' => [
|
1028 |
[
|
1022 |
* In that case there's no use for an additional query as we already know
|
1023 |
* that the keyword has been used multiple times before.
|
1024 |
*/
|
1025 |
+
if ( YoastSEO()->helpers->product->is_premium() && count( $post_ids ) < 2 ) {
|
1026 |
$query = [
|
1027 |
'meta_query' => [
|
1028 |
[
|
inc/class-wpseo-shortlinker.php
CHANGED
@@ -97,7 +97,7 @@ class WPSEO_Shortlinker {
|
|
97 |
* @return string The software name + activation state.
|
98 |
*/
|
99 |
private function get_software() {
|
100 |
-
if (
|
101 |
return 'premium';
|
102 |
}
|
103 |
|
97 |
* @return string The software name + activation state.
|
98 |
*/
|
99 |
private function get_software() {
|
100 |
+
if ( YoastSEO()->helpers->product->is_premium() ) {
|
101 |
return 'premium';
|
102 |
}
|
103 |
|
inc/class-wpseo-utils.php
CHANGED
@@ -693,10 +693,14 @@ class WPSEO_Utils {
|
|
693 |
/**
|
694 |
* Checks if we are in the premium or free plugin.
|
695 |
*
|
|
|
|
|
|
|
696 |
* @return bool True when we are in the premium plugin.
|
697 |
*/
|
698 |
public static function is_yoast_seo_premium() {
|
699 |
-
|
|
|
700 |
}
|
701 |
|
702 |
/**
|
693 |
/**
|
694 |
* Checks if we are in the premium or free plugin.
|
695 |
*
|
696 |
+
* @deprecated 16.0
|
697 |
+
* @codeCoverageIgnore
|
698 |
+
*
|
699 |
* @return bool True when we are in the premium plugin.
|
700 |
*/
|
701 |
public static function is_yoast_seo_premium() {
|
702 |
+
_deprecated_function( __FUNCTION__, '16.0', 'YoastSEO()->helpers->product->is_premium' );
|
703 |
+
return YoastSEO()->helpers->product->is_premium();
|
704 |
}
|
705 |
|
706 |
/**
|
inc/options/class-wpseo-options.php
CHANGED
@@ -586,17 +586,4 @@ class WPSEO_Options {
|
|
586 |
|
587 |
return $pattern_table;
|
588 |
}
|
589 |
-
|
590 |
-
/* ********************* DEPRECATED METHODS ********************* */
|
591 |
-
|
592 |
-
/**
|
593 |
-
* Fills our option cache.
|
594 |
-
*
|
595 |
-
* @deprecated 12.8.1
|
596 |
-
* @codeCoverageIgnore
|
597 |
-
*/
|
598 |
-
public static function fill_cache() {
|
599 |
-
_deprecated_function( __METHOD__, 'WPSEO 12.8.1', '::clear_cache' );
|
600 |
-
static::clear_cache();
|
601 |
-
}
|
602 |
}
|
586 |
|
587 |
return $pattern_table;
|
588 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
589 |
}
|
inc/sitemaps/class-post-type-sitemap-provider.php
CHANGED
@@ -654,48 +654,4 @@ class WPSEO_Post_Type_Sitemap_Provider implements WPSEO_Sitemap_Provider {
|
|
654 |
|
655 |
return $url;
|
656 |
}
|
657 |
-
|
658 |
-
/* ********************* DEPRECATED METHODS ********************* */
|
659 |
-
|
660 |
-
/**
|
661 |
-
* Get Home URL.
|
662 |
-
*
|
663 |
-
* @deprecated 11.5
|
664 |
-
* @codeCoverageIgnore
|
665 |
-
*
|
666 |
-
* @return string
|
667 |
-
*/
|
668 |
-
protected function get_home_url() {
|
669 |
-
_deprecated_function( __METHOD__, 'WPSEO 11.5', 'WPSEO_Utils::home_url' );
|
670 |
-
|
671 |
-
return YoastSEO()->helpers->url->home();
|
672 |
-
}
|
673 |
-
|
674 |
-
/**
|
675 |
-
* Get front page ID.
|
676 |
-
*
|
677 |
-
* @deprecated 11.5
|
678 |
-
* @codeCoverageIgnore
|
679 |
-
*
|
680 |
-
* @return int
|
681 |
-
*/
|
682 |
-
protected function get_page_on_front_id() {
|
683 |
-
_deprecated_function( __METHOD__, 'WPSEO 11.5' );
|
684 |
-
|
685 |
-
return (int) get_option( 'page_on_front' );
|
686 |
-
}
|
687 |
-
|
688 |
-
/**
|
689 |
-
* Get page for posts ID.
|
690 |
-
*
|
691 |
-
* @deprecated 11.5
|
692 |
-
* @codeCoverageIgnore
|
693 |
-
*
|
694 |
-
* @return int
|
695 |
-
*/
|
696 |
-
protected function get_page_for_posts_id() {
|
697 |
-
_deprecated_function( __METHOD__, 'WPSEO 11.5' );
|
698 |
-
|
699 |
-
return (int) get_option( 'page_for_posts' );
|
700 |
-
}
|
701 |
}
|
654 |
|
655 |
return $url;
|
656 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
657 |
}
|
js/dist/{admin-global-1592.js → admin-global-1600.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[1],{
|
1 |
+
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[1],{373:function(o,t,a){"use strict";!function(o){function t(o,t,a){jQuery.post(ajaxurl,{action:"wpseo_set_ignore",option:o,_wpnonce:a},function(a){a&&(jQuery("#"+t).hide(),jQuery("#hidden_ignore_"+o).val("ignore"))})}function a(){o("#wp-admin-bar-root-default > li").off("mouseenter.yoastalertpopup mouseleave.yoastalertpopup"),o(".yoast-issue-added").fadeOut(200)}function s(t,a){if(o(".yoast-notification-holder").off("click",".restore").off("click",".dismiss"),void 0!==a.html){a.html&&(t.closest(".yoast-container").html(a.html),n());var s=o("#wp-admin-bar-wpseo-menu"),e=s.find(".yoast-issue-counter");e.length||(s.find("> a:first-child").append('<div class="yoast-issue-counter"/>'),e=s.find(".yoast-issue-counter")),e.html(a.total),0===a.total?e.hide():e.show(),o("#toplevel_page_wpseo_dashboard .update-plugins").removeClass().addClass("update-plugins count-"+a.total),o("#toplevel_page_wpseo_dashboard .plugin-count").html(a.total)}}function n(){var t=o(".yoast-notification-holder");t.on("click",".dismiss",function(){var t=o(this),a=t.closest(".yoast-notification-holder");t.closest(".yoast-container").append('<div class="yoast-container-disabled"/>'),o.post(ajaxurl,{action:"yoast_dismiss_notification",notification:a.attr("id"),nonce:a.data("nonce"),data:t.data("json")||a.data("json")},s.bind(this,a),"json")}),t.on("click",".restore",function(){var t=o(this),a=t.closest(".yoast-notification-holder");t.closest(".yoast-container").append('<div class="yoast-container-disabled"/>'),o.post(ajaxurl,{action:"yoast_restore_notification",notification:a.attr("id"),nonce:a.data("nonce"),data:a.data("json")},s.bind(this,a),"json")})}function e(o){o.is(":hidden")||(o.outerWidth()>o.parent().outerWidth()?(o.data("scrollHint").addClass("yoast-has-scroll"),o.data("scrollContainer").addClass("yoast-has-scroll")):(o.data("scrollHint").removeClass("yoast-has-scroll"),o.data("scrollContainer").removeClass("yoast-has-scroll")))}function i(){window.wpseoScrollableTables=o(".yoast-table-scrollable"),window.wpseoScrollableTables.length&&window.wpseoScrollableTables.each(function(){var t=o(this);if(!t.data("scrollContainer")){var a=o("<div />",{class:"yoast-table-scrollable__hintwrapper",html:"<span class='yoast-table-scrollable__hint' aria-hidden='true' />"}).insertBefore(t),s=o("<div />",{class:"yoast-table-scrollable__container",html:"<div class='yoast-table-scrollable__inner' />"}).insertBefore(t);a.find(".yoast-table-scrollable__hint").text(wpseoAdminGlobalL10n.scrollable_table_hint),t.data("scrollContainer",s),t.data("scrollHint",a),t.appendTo(s.find(".yoast-table-scrollable__inner")),e(t)}})}jQuery(document).ready(function(){jQuery(".yoast-dismissible").on("click",".yoast-notice-dismiss",function(){var o=jQuery(this).parent();return jQuery.post(ajaxurl,{action:o.attr("id").replace(/-/g,"_"),_wpnonce:o.data("nonce"),data:o.data("json")}),jQuery.post(ajaxurl,{action:"yoast_dismiss_notification",notification:o.attr("id"),nonce:o.data("nonce"),data:o.data("json")}),o.fadeTo(100,0,function(){o.slideUp(100,function(){o.remove()})}),!1}),jQuery(".yoast-help-button").on("click",function(){var o=jQuery(this),t=jQuery("#"+o.attr("aria-controls")),a=t.is(":visible");jQuery(t).slideToggle(200,function(){o.attr("aria-expanded",!a)})}),jQuery("#robotsmessage button").on("click",function(){t("search_engines_discouraged_notice","robotsmessage",jQuery(this).data("nonce"))})}),window.wpseoSetIgnore=t,window.wpseoDismissLink=function(o){return jQuery('<a href="'+o+'" type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></a>')},o(window).on("wp-window-resized orientationchange",function(){window.wpseoScrollableTables&&window.wpseoScrollableTables.length&&function(t){t.each(function(){e(o(this))})}(window.wpseoScrollableTables)}),o(window).on({"Yoast:YoastTabsMounted":function(){setTimeout(function(){i()},100)},"Yoast:YoastTabsSelected":function(){setTimeout(function(){i()},100)}}),o(document).ready(function(){o(".yoast-issue-added").on("mouseenter mouseleave",function(o){o.stopPropagation(),a()}).fadeIn(),o("#wp-admin-bar-root-default > li").on("mouseenter.yoastalertpopup mouseleave.yoastalertpopup",a),setTimeout(a,3e3),n(),function(){var o=jQuery(".wpseo-js-premium-indicator"),t=o.find("svg");if(o.hasClass("wpseo-premium-indicator--no")){var a=t.find("path"),s=o.css("backgroundColor");a.css("fill",s)}t.css("display","block"),o.css({backgroundColor:"transparent",width:"20px",height:"20px"})}(),i()})}(jQuery)}},[[373,0]]]);
|
js/dist/{analysis-1592.js → analysis-1600.js}
RENAMED
File without changes
|
js/dist/{analysis-worker-1592.js → analysis-worker-1600.js}
RENAMED
File without changes
|
js/dist/{api-client-1592.js → api-client-1600.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[2],{
|
1 |
+
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[2],{374:function(t,e,n){"use strict";!function(t,e){window.wpseoApi={get:function(t,e,n,o){this.request("GET",t,e,n,o)},post:function(t,e,n,o){this.request("POST",t,e,n,o)},put:function(t,e,n,o){this.request("PUT",t,e,n,o)},patch:function(t,e,n,o){this.request("PATCH",t,e,n,o)},delete:function(t,e,n,o){this.request("DELETE",t,e,n,o)},request:function(n,o,i,s,u){t.isFunction(i)&&void 0===u&&(u=s,s=i,i={}),"POST"!==n&&"GET"!==n&&(i._method=n,n="POST"),t.ajax({url:e.root+"yoast/v1/"+o,method:n,beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",e.nonce)},data:i}).done(s).fail(u)}}}(jQuery,wpApiSettings)}},[[374,0]]]);
|
js/dist/{babel-polyfill-1592.js → babel-polyfill-1600.js}
RENAMED
File without changes
|
js/dist/block-editor-1592.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[3],[function(e,t){e.exports=window.lodash},function(e,t,n){e.exports=n(22)()},function(e,t){e.exports=React},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.yoast.componentsNew},function(e,t){e.exports=window.yoast.helpers},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.yoast.styledComponents},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return(0,r.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})};var r=n(0)},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.yoast.analysis},function(e,t){e.exports=window.wp.components},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LOAD_SNIPPET_EDITOR_DATA=t.UPDATE_WORDS_TO_HIGHLIGHT=t.REFRESH=t.REMOVE_REPLACEMENT_VARIABLE=t.UPDATE_REPLACEMENT_VARIABLE=t.UPDATE_DATA=t.SWITCH_MODE=void 0,t.switchMode=function(e){return{type:o,mode:e}},t.updateData=function(e){return{type:a,data:e}},t.updateReplacementVariable=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o="string"==typeof t?(0,r.decodeHTML)(t):t;return{type:i,name:e,value:o,label:n}},t.updateWordsToHighlight=function(e){return{type:u,wordsToHighlight:e}},t.removeReplacementVariable=function(e){return{type:s,name:e}},t.refreshSnippetEditor=function(){return{type:l,time:(new Date).getMilliseconds()}};var r=n(6),o=t.SWITCH_MODE="SNIPPET_EDITOR_SWITCH_MODE",a=t.UPDATE_DATA="SNIPPET_EDITOR_UPDATE_DATA",i=t.UPDATE_REPLACEMENT_VARIABLE="SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLE",s=t.REMOVE_REPLACEMENT_VARIABLE="SNIPPET_EDITOR_REMOVE_REPLACEMENT_VARIABLE",l=t.REFRESH="SNIPPET_EDITOR_REFRESH",u=t.UPDATE_WORDS_TO_HIGHLIGHT="SNIPPET_EDITOR_UPDATE_WORDS_TO_HIGHLIGHT";t.LOAD_SNIPPET_EDITOR_DATA="LOAD_SNIPPET_EDITOR_DATA"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocationConsumer=t.LocationProvider=t.LocationContext=void 0;var r=n(4),o=t.LocationContext=(0,r.createContext)();t.LocationProvider=o.Provider,t.LocationConsumer=o.Consumer},function(e,t){e.exports=window.yoast.components},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setSeoResultsForKeyword=t.setReadabilityResults=t.setOverallSeoScore=t.setOverallReadabilityScore=void 0;var r=n(43);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var o=n(44);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var a=n(69);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})});var i=n(35);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})});var s=n(70);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})});var l=n(71);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})});var u=n(45);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}})});var c=n(36);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})});var d=n(29);Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}})});var p=n(46);Object.keys(p).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}})});var f=n(47);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}})});var m=n(48);Object.keys(m).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}})});var y=n(50);Object.keys(y).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}})});var h=n(73);Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}})});var _=n(51);Object.keys(_).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}})});var g=n(37);Object.keys(g).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}})});var v=n(13);Object.keys(v).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}})});var w=n(52);Object.keys(w).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}})});var b=n(53);Object.keys(b).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}})});var E=n(54);Object.keys(E).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return E[e]}})});var T=n(15);Object.defineProperty(t,"setReadabilityResults",{enumerable:!0,get:function(){return T.setReadabilityResults}}),Object.defineProperty(t,"setSeoResultsForKeyword",{enumerable:!0,get:function(){return T.setSeoResultsForKeyword}});var k=function(e){return e&&e.__esModule?e:{default:e}}(n(26));t.setOverallReadabilityScore=function(e){return k.default.readabilityScore=e,(0,T.setOverallReadabilityScore)(e)},t.setOverallSeoScore=function(e,t){return k.default.seoScore=e,(0,T.setOverallSeoScore)(e,t)}},function(e,t){e.exports=window.yoast.reactRedux},function(e,t){e.exports=window.yoast.styleGuide},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=n(4),o=function(e){return e&&e.__esModule?e:{default:e}}(n(1));function a(e){var t=e.target,n=e.children,o=t;return"string"==typeof t&&(o=document.getElementById(t)),o?(0,r.createPortal)(n,o):null}a.propTypes={target:o.default.oneOfType([o.default.string,o.default.object]).isRequired,children:o.default.node.isRequired}},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},o=s(n(2)),a=s(n(78)),i=s(n(81));function s(e){return e&&e.__esModule?e:{default:e}}var l=void 0;function u(e,t){var n,i,s,c,d,p,f,m,y=[],h={};for(p=0;p<e.length;p++)if("string"!==(d=e[p]).type){if(!t.hasOwnProperty(d.value)||void 0===t[d.value])throw new Error("Invalid interpolation, missing component node: `"+d.value+"`");if("object"!==r(t[d.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+d.value+"`","\n> "+l);if("componentClose"===d.type)throw new Error("Missing opening component token: `"+d.value+"`");if("componentOpen"===d.type){n=t[d.value],s=p;break}y.push(t[d.value])}else y.push(d.value);return n&&(c=function(e,t){var n,r,o=t[e],a=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===o.value){if("componentOpen"===n.type){a++;continue}if("componentClose"===n.type){if(0===a)return r;a--}}throw new Error("Missing closing component token `"+o.value+"`")}(s,e),f=u(e.slice(s+1,c),t),i=o.default.cloneElement(n,{},f),y.push(i),c<e.length-1&&(m=u(e.slice(c+1),t),y=y.concat(m))),1===y.length?y[0]:(y.forEach(function(e,t){e&&(h["interpolation-child-"+t]=e)}),(0,a.default)(h))}t.default=function(e){var t=e.mixedString,n=e.components,o=e.throwErrors;if(l=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var a=(0,i.default)(t);try{return u(a,n)}catch(e){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},,function(e,t,n){"use strict";var r=n(23),o=n(24),a=n(25);e.exports=function(){function e(e,t,n,r,i,s){s!==a&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,o,a,i,s,l){if(r(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,a,i,s,l],d=0;(u=new Error(t.replace(/%s/g,function(){return c[d++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"keyphraseElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_focuskw":"hidden_wpseo_focuskw")}},{key:"isCornerstoneElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_is_cornerstone":"hidden_wpseo_is_cornerstone")}},{key:"seoScoreElement",get:function(){return document.getElementById("yoast_wpseo_linkdex")}},{key:"readabilityScoreElement",get:function(){return document.getElementById("yoast_wpseo_content_score")}},{key:"keyphrase",set:function(t){e.keyphraseElement.value=t},get:function(){return e.keyphraseElement.value}},{key:"isCornerstone",set:function(t){e.isCornerstoneElement.value=t?"1":"0"},get:function(){return"1"===e.isCornerstoneElement.value}},{key:"seoScore",set:function(t){e.seoScoreElement.value=t},get:function(){return e.seoScoreElement.value}},{key:"readabilityScore",set:function(t){e.readabilityScoreElement.value=t},get:function(){return e.readabilityScoreElement.value}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.isNil)(e)||(e/=10);return function(e){switch(e){case"feedback":return{className:"na",screenReaderText:(0,r.__)("Feedback","wordpress-seo"),screenReaderReadabilityText:""};case"bad":return{className:"bad",screenReaderText:(0,r.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:(0,r.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("OK","wordpress-seo")};case"good":return{className:"good",screenReaderText:(0,r.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:""}}}(o.helpers.scoreToRating(e))};var r=n(3),o=n(11),a=n(0)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIconForScore=function(e){var t={icon:"seo-score-none",color:o.colors.$color_grey_disabled};switch(e){case"loading":t={icon:"loading-spinner",color:o.colors.$color_green_medium_light};break;case"good":t={icon:"seo-score-good",color:o.colors.$color_green_medium};break;case"ok":t={icon:"seo-score-ok",color:o.colors.$color_ok};break;case"bad":t={icon:"seo-score-bad",color:o.colors.$color_red}}return t},t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n={errorsResults:[],problemsResults:[],improvementsResults:[],goodResults:[],considerationsResults:[]};if(!e)return n;for(var r=0;r<e.length;r++){var o=e[r];if(o.text){var a=i(o,t);n=s(a,n)}}return n};var r=n(11),o=n(18),a=r.helpers.scoreToRating;function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.getIdentifier(),r={score:e.score,rating:a(e.score),hasMarks:e.hasMarks(),marker:e.getMarker(),id:n,text:e.text,markerId:t.length>0?t+":"+n:n};return"ok"===r.rating&&(r.rating="OK"),r}function s(e,t){switch(e.rating){case"error":t.errorsResults.push(e);break;case"feedback":t.considerationsResults.push(e);break;case"bad":t.problemsResults.push(e);break;case"OK":t.improvementsResults.push(e);break;case"good":t.goodResults.push(e)}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=t.SET_MARKER_STATUS="WPSEO_SET_MARKER_STATUS";t.setMarkerStatus=function(e){return{type:r,marksButtonStatus:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyReplaceUsingPlugin=t.nonReplaceVars=void 0;var r=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};t.fillReplacementVariables=function(e,t){(0,o.forEach)(e,function(e,n){l.includes(n)||t.dispatch((0,a.updateReplacementVariable)(n,e))})},t.handlePrefixes=u,t.createLabelFromName=c,t.pushNewReplaceVar=function(e,t){return e.push({name:t.name,label:t.label||c(t.name),value:t.value}),e},t.replaceSpaces=d,t.prepareCustomFieldForDispatch=p,t.prepareCustomTaxonomyForDispatch=f,t.mapCustomTaxonomies=function(e,t){if(!e.custom_taxonomies)return e;return(0,o.forEach)(e.custom_taxonomies,function(e,n){var r=f(n),o=r.name,i=r.label,s=r.descriptionName,l=r.descriptionLabel;t.dispatch((0,a.updateReplacementVariable)(o,e.name,i)),t.dispatch((0,a.updateReplacementVariable)(s,e.description,l))}),(0,o.omit)(r({},e),"custom_taxonomies")},t.mapCustomFields=function(e,t){if(!e.custom_fields)return e;return(0,o.forEach)(e.custom_fields,function(e,n){var r=p(n),o=r.name,i=r.label;t.dispatch((0,a.updateReplacementVariable)(o,e,i))}),(0,o.omit)(r({},e),"custom_fields")},t.excerptFromContent=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:156;if((e=(e=wp.sanitize.stripTags(e)).trim()).length<=t)return e;return(e=e.substring(0,t)).substring(0,e.lastIndexOf(" "))};var o=n(0),a=n(13),i=n(40),s=n(6).strings.stripHTMLTags,l=t.nonReplaceVars=["slug","content","contentImage","snippetPreviewImageURL"];function u(e){if(!["ct_","cf_","pt_"].includes(e.substr(0,3)))return e.replace(/_/g," ");var t=e.slice(0,3);switch(-1!==(e=e.slice(3)).indexOf("desc_")&&(e=e.slice(5)+" description"),t){case"ct_":e+=" (custom taxonomy)";break;case"cf_":e+=" (custom field)";break;case"pt_":e="Post type ("+(e=e.replace("single","singular"))+")"}return e}function c(e){return e=u(e),(0,i.firstToUpperCase)(e)}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e.replace(/\s/g,t)}function p(e){return{name:"cf_"+d(e),label:(0,i.firstToUpperCase)(e+" (custom field)")}}function f(e){var t=d(e);return{name:"ct_"+t,label:(0,i.firstToUpperCase)(e+" (custom taxonomy)"),descriptionName:"ct_desc_"+t,descriptionLabel:(0,i.firstToUpperCase)(e+" description (custom taxonomy)")}}t.applyReplaceUsingPlugin=function(e){var t=(0,o.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!(0,o.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){var t=(0,o.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],o.identity);return{url:e.url,title:s(t(e.title)),description:s(t(e.description))}}(e);var n=t._applyModifications.bind(t);return{url:e.url,title:s(n("data_page_title",e.title)),description:s(n("data_meta_desc",e.description))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=n(4),a=n(5),i=function(e){return e&&e.__esModule?e:{default:e}}(n(1));var s=function(e){var t=(0,o.useState)(!1),n=r(t,2),i=n[0],s=n[1],l=e.prefixIcon;return wp.element.createElement("div",{className:"yoast components-panel__body "+(i?"is-opened":"")},wp.element.createElement("h2",{className:"components-panel__body-title"},wp.element.createElement("button",{onClick:function(){s(!i)},className:"components-button components-panel__body-toggle"},wp.element.createElement("span",{className:"yoast-icon-span",style:{fill:""+(l&&l.color||"")}},l&&wp.element.createElement(a.SvgIcon,{icon:l.icon,color:l.color,size:l.size})),wp.element.createElement("span",{className:"yoast-title-container"},wp.element.createElement("div",{className:"yoast-title"},e.title),wp.element.createElement("div",{className:"yoast-subtitle"},e.subTitle)),wp.element.createElement("span",{className:"yoast-chevron","aria-hidden":"true"}))),i&&e.children)};t.default=s,s.propTypes={title:i.default.string.isRequired,children:i.default.oneOfType([i.default.node,i.default.arrayOf(i.default.node)]).isRequired,prefixIcon:i.default.object,subTitle:i.default.string},s.defaultProps={prefixIcon:null,subTitle:""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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};t.default=function(){return(0,o.createHigherOrderComponent)(function(e){return(0,o.pure)(function(t){var n=(0,a.useContext)(i.LocationContext);return(0,a.createElement)(e,r({},t,{location:n}))})},"withLocation")};var o=n(10),a=n(4),i=n(14)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18),o=n(6),a=function(e){return e&&e.__esModule?e:{default:e}}(n(8));var i=(0,o.makeOutboundLink)(a.default.a.withConfig({displayName:"HelpLink",componentId:"qyhmof-0"})(["display:inline-block;position:relative;outline:none;text-decoration:none;border-radius:100%;width:24px;height:24px;margin:-4px 0;vertical-align:middle;color:",";&:hover,&:focus{color:",";}&:active{color:",';}&::before{position:absolute;top:0;left:0;padding:2px;content:"\f223";}'],r.colors.$color_help_text,r.colors.$color_snippet_focus,r.colors.$color_help_text));t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},o=n(5);var a=(0,function(e){return e&&e.__esModule?e:{default:e}}(n(8)).default)(o.Collapsible).withConfig({displayName:"MetaboxCollapsible__StyledMetaboxCollapsible",componentId:"k2tood-0"})(['h2 > button{padding-left:24px;padding-top:16px;&:hover{background-color:#f0f0f0;}}div[class^="collapsible_content"]{padding:24px 0;margin:0 24px;border-top:1px solid rgba(0,0,0,0.2);}']);t.default=function(e){return wp.element.createElement(a,r({hasPadding:!0,hasSeparator:!0},e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toggleCornerstoneContent=t.setCornerstoneContent=t.loadCornerstoneContent=t.SET_CORNERSTONE_CONTENT=t.TOGGLE_CORNERSTONE_CONTENT=t.LOAD_CORNERSTONE_CONTENT=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(26));t.LOAD_CORNERSTONE_CONTENT="WPSEO_LOAD_CORNERSTONE_CONTENT";var o=t.TOGGLE_CORNERSTONE_CONTENT="WPSEO_TOGGLE_CORNERSTONE_CONTENT",a=t.SET_CORNERSTONE_CONTENT="WPSEO_SET_CORNERSTONE_CONTENT";t.loadCornerstoneContent=function(){return{type:a,isCornerstone:r.default.isCornerstone}},t.setCornerstoneContent=function(e){return r.default.isCornerstone=e,{type:a,isCornerstone:e}},t.toggleCornerstoneContent=function(){return r.default.isCornerstone=!r.default.isCornerstone,{type:o}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setFocusKeyword=t.loadFocusKeyword=t.SET_FOCUS_KEYWORD=t.LOAD_FOCUS_KEYWORD=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(26));var o=t.LOAD_FOCUS_KEYWORD="WPSEO_LOAD_FOCUS_KEYWORD",a=t.SET_FOCUS_KEYWORD="WPSEO_SET_FOCUS_KEYWORD";t.loadFocusKeyword=function(){return{type:o,keyword:r.default.keyphrase}},t.setFocusKeyword=function(e){return r.default.keyphrase=e,{type:a,keyword:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=t.SET_SETTINGS="SET_SETTINGS",o=t.SET_CONTENT_IMAGE="SET_CONTENT_IMAGE";t.setSettings=function(e){return{type:r,settings:e}},t.setContentImage=function(e){return{type:o,src:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultModalClassName=void 0;var r=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},o=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),a=n(12);var i=t.defaultModalClassName="yoast yoast-gutenberg-modal",s=function(e){var t=e.title,n=e.className,o=e.showYoastIcon,i=e.additionalClassName,s=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["title","className","showYoastIcon","additionalClassName"]),l=o?wp.element.createElement("span",{className:"yoast-icon"}):null;return wp.element.createElement(a.Modal,r({title:t,className:n+" "+i,icon:l},s),e.children)};s.propTypes={title:o.default.string,className:o.default.string,showYoastIcon:o.default.bool,children:o.default.oneOfType([o.default.node,o.default.arrayOf(o.default.node)]),additionalClassName:o.default.string},s.defaultProps={title:"Yoast SEO",className:i,showYoastIcon:!0,children:null,additionalClassName:""},t.default=s},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.firstToUpperCase=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.stripHTML=function(e){var t=document.createElement("DIV");return t.innerHTML=e,t.textContent||t.innerText||""}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setActiveMarker=function(e){return{type:r,activeMarker:e}};var r=t.SET_ACTIVE_MARKER="WPSEO_SET_ACTIVE_MARKER"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadAdvancedSettingsData=t.setCanonical=t.setBreadcrumbsTitle=t.setAdvanced=t.setNoFollow=t.setNoIndex=t.LOAD_ADVANCED_SETTINGS=t.SET_CANONICAL_URL=t.SET_BREADCRUMBS_TITLE=t.SET_ADVANCED=t.SET_NO_FOLLOW=t.SET_NO_INDEX=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(68));var o=t.SET_NO_INDEX="SET_NO_INDEX",a=t.SET_NO_FOLLOW="SET_NO_FOLLOW",i=t.SET_ADVANCED="SET_ADVANCED",s=t.SET_BREADCRUMBS_TITLE="SET_BREADCRUMBS_TITLE",l=t.SET_CANONICAL_URL="SET_CANONICAL_URL",u=t.LOAD_ADVANCED_SETTINGS="LOAD_ADVANCED_SETTINGS";t.setNoIndex=function(e){return r.default.noIndex=e,{type:o,value:e}},t.setNoFollow=function(e){return r.default.noFollow=e,{type:a,value:e}},t.setAdvanced=function(e){return r.default.advanced=e.join(","),{type:i,value:e}},t.setBreadcrumbsTitle=function(e){return r.default.breadcrumbsTitle=e,{type:s,value:e}},t.setCanonical=function(e){return r.default.canonical=e,{type:l,value:e}},t.loadAdvancedSettingsData=function(){return{type:u,settings:{noIndex:r.default.noIndex,noFollow:r.default.noFollow,advanced:r.default.advanced.split(","),breadcrumbsTitle:r.default.breadcrumbsTitle,canonical:r.default.canonical,isLoading:!1}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LOAD_ESTIMATED_READING_TIME=t.SET_ESTIMATED_READING_TIME=void 0,t.setEstimatedReadingTime=function(e){return r.default.estimatedReadingTime=e,{type:o,estimatedReadingTime:e}},t.loadEstimatedReadingTime=function(){return{type:a,estimatedReadingTime:r.default.estimatedReadingTime}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(72));var o=t.SET_ESTIMATED_READING_TIME="SET_ESTIMATED_READING_TIME",a=t.LOAD_ESTIMATED_READING_TIME="LOAD_ESTIMATED_READING_TIME"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setMarkerPauseStatus=function(e){return{type:r,isMarkerPaused:e}};var r=t.SET_MARKER_PAUSE_STATUS="WPSEO_SET_MARKER_PAUSE_STATUS"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=t.SET_PRIMARY_TAXONOMY="WPSEO_SET_PRIMARY_TAXONOMY";t.setPrimaryTaxonomyId=function(e,t){return{type:r,taxonomy:e,termId:t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaArticleData=t.getSchemaPageData=t.setArticleType=t.setPageType=t.GET_SCHEMA_ARTICLE_DATA=t.GET_SCHEMA_PAGE_DATA=t.SET_ARTICLE_TYPE=t.SET_PAGE_TYPE=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(49));var o=t.SET_PAGE_TYPE="SET_PAGE_TYPE",a=t.SET_ARTICLE_TYPE="SET_ARTICLE_TYPE",i=t.GET_SCHEMA_PAGE_DATA="GET_SCHEMA_PAGE_DATA",s=t.GET_SCHEMA_ARTICLE_DATA="GET_SCHEMA_ARTICLE_DATA";t.setPageType=function(e){return r.default.pageType=e,{type:o,pageType:e}},t.setArticleType=function(e){return r.default.articleType=e,{type:a,articleType:e}},t.getSchemaPageData=function(){return{type:i,pageType:r.default.pageType,defaultPageType:r.default.defaultPageType}},t.getSchemaArticleData=function(){return{type:s,articleType:r.default.articleType,defaultArticleType:r.default.defaultArticleType}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(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}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addBlockValidation=function(e){return{type:r,validation:e}},t.resetBlockValidation=function(){return{type:o}};var r=t.ADD_BLOCK_VALIDATION="WPSEO_ADD_BLOCK_VALIDATION",o=t.RESET_BLOCK_VALIDATIONS="WPSEO_CLEAR_BLOCK_VALIDATIONS"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setSEMrushNewRequest=function(e,t){return{type:s,countryCode:e,keyphrase:t}},t.setSEMrushRequestSucceeded=function(e){return{type:o,response:e}},t.setSEMrushRequestFailed=function(e){return{type:a,response:e}},t.setSEMrushSetRequestLimitReached=function(){return{type:i}},t.setSEMrushChangeCountry=function(e){return{type:r,countryCode:e}},t.setSEMrushNoResultsFound=function(){return{type:l}},t.setSEMrushLoginStatus=function(e){return{type:u,loginStatus:e}};var r=t.CHANGE_COUNTRY="CHANGE_COUNTRY",o=t.SET_REQUEST_SUCCEEDED="SET_REQUEST_SUCCEEDED",a=t.SET_REQUEST_FAILED="SET_REQUEST_FAILED",i=t.SET_REQUEST_LIMIT_REACHED="SET_LIMIT_REACHED",s=t.NEW_REQUEST="NEW_REQUEST",l=t.NO_DATA_FOUND="NO_DATA_FOUND",u=t.SET_LOGIN_STATUS="SET_LOGIN_STATUS"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadTwitterPreviewData=t.clearTwitterPreviewImage=t.setTwitterPreviewImage=t.setTwitterPreviewDescription=t.setTwitterPreviewTitle=t.LOAD_TWITTER_PREVIEW=t.CLEAR_TWITTER_IMAGE=t.SET_TWITTER_IMAGE=t.SET_TWITTER_DESCRIPTION=t.SET_TWITTER_TITLE=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(74));var o=t.SET_TWITTER_TITLE="SET_TWITTER_TITLE",a=t.SET_TWITTER_DESCRIPTION="SET_TWITTER_DESCRIPTION",i=t.SET_TWITTER_IMAGE="SET_TWITTER_IMAGE",s=t.CLEAR_TWITTER_IMAGE="CLEAR_TWITTER_IMAGE",l=t.LOAD_TWITTER_PREVIEW="LOAD_TWITTER_PREVIEW";t.setTwitterPreviewTitle=function(e){return r.default.title=e,{type:o,title:e}},t.setTwitterPreviewDescription=function(e){return r.default.description=e,{type:a,description:e}},t.setTwitterPreviewImage=function(e){return r.default.imageId=e.id,r.default.imageUrl=e.url,{type:i,image:e}},t.clearTwitterPreviewImage=function(){return r.default.imageId="",r.default.imageUrl="",{type:s}},t.loadTwitterPreviewData=function(){return{type:l,imageId:r.default.imageId,imageUrl:r.default.imageUrl,description:r.default.description,title:r.default.title}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadFacebookPreviewData=t.clearFacebookPreviewImage=t.setFacebookPreviewImage=t.setFacebookPreviewDescription=t.setFacebookPreviewTitle=t.LOAD_FACEBOOK_PREVIEW=t.CLEAR_FACEBOOK_IMAGE=t.SET_FACEBOOK_IMAGE=t.SET_FACEBOOK_DESCRIPTION=t.SET_FACEBOOK_TITLE=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(75));var o=t.SET_FACEBOOK_TITLE="SET_FACEBOOK_TITLE",a=t.SET_FACEBOOK_DESCRIPTION="SET_FACEBOOK_DESCRIPTION",i=t.SET_FACEBOOK_IMAGE="SET_FACEBOOK_IMAGE",s=t.CLEAR_FACEBOOK_IMAGE="CLEAR_FACEBOOK_IMAGE",l=t.LOAD_FACEBOOK_PREVIEW="LOAD_FACEBOOK_PREVIEW";t.setFacebookPreviewTitle=function(e){return r.default.title=e,{type:o,title:e}},t.setFacebookPreviewDescription=function(e){return r.default.description=e,{type:a,description:e}},t.setFacebookPreviewImage=function(e){return r.default.imageUrl=e.url,r.default.imageId=e.id,{type:i,image:e}},t.clearFacebookPreviewImage=function(){return r.default.imageId="",r.default.imageUrl="",{type:s}},t.loadFacebookPreviewData=function(){return{type:l,imageId:r.default.imageId,imageUrl:r.default.imageUrl,description:r.default.description,title:r.default.title}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setWarningMessage=function(e){return{type:r,message:e}};var r=t.SET_WARNING_MESSAGE="SET_WARNING_MESSAGE"},function(e,t){e.exports=window.wp.apiFetch},function(e,t){e.exports=window.wp.url},,,function(e,t){e.exports=window.yoast.replacementVariableEditor},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),o=n(10),a=function(e){return e&&e.__esModule?e:{default:e}}(n(114));t.default=(0,o.compose)([(0,r.withSelect)(function(e){return{activeMarker:(0,e("yoast-seo/editor").getActiveMarker)()}}),(0,r.withDispatch)(function(e){var t=e("yoast-seo/editor");return{setActiveMarker:t.setActiveMarker,setMarkerPauseStatus:t.setMarkerPauseStatus}})])(a.default)},,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"noIndexElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_meta-robots-noindex":"hidden_wpseo_noindex")}},{key:"noFollowElement",get:function(){return document.getElementById("yoast_wpseo_meta-robots-nofollow")}},{key:"advancedElement",get:function(){return document.getElementById("yoast_wpseo_meta-robots-adv")}},{key:"breadcrumbsTitleElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_bctitle":"hidden_wpseo_bctitle")}},{key:"canonicalElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_canonical":"hidden_wpseo_canonical")}},{key:"noIndex",get:function(){return e.noIndexElement&&e.noIndexElement.value||""},set:function(t){e.noIndexElement.value=t}},{key:"noFollow",get:function(){return e.noFollowElement&&e.noFollowElement.value||""},set:function(t){e.noFollowElement.value=t}},{key:"advanced",get:function(){return e.advancedElement&&e.advancedElement.value||""},set:function(t){e.advancedElement.value=t}},{key:"breadcrumbsTitle",get:function(){return e.breadcrumbsTitleElement&&e.breadcrumbsTitleElement.value||""},set:function(t){e.breadcrumbsTitleElement.value=t}},{key:"canonical",get:function(){return e.canonicalElement&&e.canonicalElement.value||""},set:function(t){e.canonicalElement.value=t}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateAnalysisData=function(e){return{type:r,data:e}},t.runAnalysis=function(){return{type:o,timestamp:Date.now()}};var r=t.UPDATE_SNIPPET_DATA="SNIPPET_EDITOR_UPDATE_ANALYSIS_DATA",o=t.RUN_ANALYSIS="RUN_ANALYSIS"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setEditorDataContent=function(e){return{type:r,content:e}},t.setEditorDataTitle=function(e){return{type:o,title:e}},t.setEditorDataExcerpt=function(e){return{type:a,excerpt:e}},t.setEditorDataImageUrl=function(e){return{type:i,imageUrl:e}};var r=t.SET_EDITOR_DATA_CONTENT="SET_EDITOR_DATA_CONTENT",o=t.SET_EDITOR_DATA_TITLE="SET_EDITOR_DATA_TITLE",a=t.SET_EDITOR_DATA_EXCERPT="SET_EDITOR_DATA_EXCERPT",i=t.SET_EDITOR_DATA_IMAGE_URL="SET_EDITOR_DATA_IMAGE_URL"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openEditorModal=function(e){return{type:r,modalKey:e}},t.closeEditorModal=function(){return{type:o}};var r=t.OPEN_EDITOR_MODAL="OPEN_MODAL",o=t.CLOSE_EDITOR_MODAL="CLOSE_MODAL"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"estimatedReadingTimeElement",get:function(){return document.getElementById("yoast_wpseo_estimated-reading-time-minutes")}},{key:"estimatedReadingTime",get:function(){return e.estimatedReadingTimeElement&&e.estimatedReadingTimeElement.value||""},set:function(t){e.estimatedReadingTimeElement.value=t}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setSEMrushDismissModal=function(){return{type:r}},t.setSEMrushOpenModal=function(e){return{type:o,location:e}},t.setSEMrushNoKeyphraseMessage=function(){return{type:a}};var r=t.MODAL_DISMISS="MODAL_DISMISS",o=t.MODAL_OPEN="MODAL_OPEN",a=t.MODAL_OPEN_NO_KEYPHRASE="MODAL_OPEN_NO_KEYPHRASE"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"titleElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_twitter-title":"hidden_wpseo_twitter-title")}},{key:"descriptionElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_twitter-description":"hidden_wpseo_twitter-description")}},{key:"imageIdElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_twitter-image-id":"hidden_wpseo_twitter-image-id")}},{key:"imageUrlElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_twitter-image":"hidden_wpseo_twitter-image")}},{key:"title",get:function(){return e.titleElement.value},set:function(t){e.titleElement.value=t}},{key:"description",set:function(t){e.descriptionElement.value=t},get:function(){return e.descriptionElement.value}},{key:"imageId",set:function(t){e.imageIdElement.value=t},get:function(){return e.imageIdElement.value}},{key:"imageUrl",set:function(t){e.imageUrlElement.value=t},get:function(){return e.imageUrlElement.value}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"titleElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_opengraph-title":"hidden_wpseo_opengraph-title")}},{key:"descriptionElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_opengraph-description":"hidden_wpseo_opengraph-description")}},{key:"imageIdElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_opengraph-image-id":"hidden_wpseo_opengraph-image-id")}},{key:"imageUrlElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_opengraph-image":"hidden_wpseo_opengraph-image")}},{key:"title",get:function(){return e.titleElement.value},set:function(t){e.titleElement.value=t}},{key:"description",set:function(t){e.descriptionElement.value=t},get:function(){return e.descriptionElement.value}},{key:"imageId",set:function(t){e.imageIdElement.value=t},get:function(){return e.imageIdElement.value}},{key:"imageUrl",set:function(t){e.imageUrlElement.value=t},get:function(){return e.imageUrlElement.value}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCloseEvent=void 0;var r=n(3),o=n(4),a=u(n(38)),i=u(n(1)),s=u(n(113)),l=n(14);function u(e){return e&&e.__esModule?e:{default:e}}var c=t.isCloseEvent=function(e){return"blur"!==e.type||!(!e.relatedTarget||!e.relatedTarget.querySelector(".components-modal__screen-overlay"))},d=function(e){var t=e.id,n=e.postTypeName,i=e.children,u=e.title,d=e.isOpen,p=e.close,f=e.open,m=(0,o.useCallback)(function(e){c(e)&&p()},[p]);return wp.element.createElement(o.Fragment,null,d&&wp.element.createElement(l.LocationProvider,{value:"modal"},wp.element.createElement(a.default,{title:u,onRequestClose:m,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal"},wp.element.createElement("div",{className:"yoast-content-container"},wp.element.createElement("div",{className:"yoast-modal-content"},i)),wp.element.createElement("div",{className:"yoast-notice-container"},wp.element.createElement("hr",null),wp.element.createElement("div",{className:"yoast-button-container"},wp.element.createElement("p",null,(0,r.sprintf)((0,r.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),n)),wp.element.createElement("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:m},(0,r.sprintf)((0,r.__)("Return to your %s","wordpress-seo"),n)))))),wp.element.createElement(s.default,{id:t+"-open-button",title:u,suffixIcon:{size:"20px",icon:"pencil-square"},onClick:f}))};d.propTypes={id:i.default.string.isRequired,postTypeName:i.default.string.isRequired,children:i.default.oneOfType([i.default.node,i.default.arrayOf(i.default.node)]).isRequired,title:i.default.string.isRequired,isOpen:i.default.bool.isRequired,open:i.default.func.isRequired,close:i.default.func.isRequired},t.default=d},function(e,t){e.exports=window.yoast.analysisReport},function(e,t,n){"use strict";var r=n(2),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,a=n(39),i=n(79),s=n(80),l=".",u=":",c="function"==typeof Symbol&&Symbol.iterator,d="@@iterator";function p(e,t){return e&&"object"==typeof e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function f(e,t,n,r){var a,s=typeof e;if("undefined"!==s&&"boolean"!==s||(e=null),null===e||"string"===s||"number"===s||"object"===s&&e.$$typeof===o)return n(r,e,""===t?l+p(e,0):t),1;var m=0,y=""===t?l:t+u;if(Array.isArray(e))for(var h=0;h<e.length;h++)m+=f(a=e[h],y+p(a,h),n,r);else{var _=function(e){var t=e&&(c&&e[c]||e[d]);if("function"==typeof t)return t}(e);if(_){0;for(var g,v=_.call(e),w=0;!(g=v.next()).done;)m+=f(a=g.value,y+p(a,w++),n,r)}else if("object"===s){0;var b=""+e;i(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===b?"object with keys {"+Object.keys(e).join(", ")+"}":b,"")}}return m}var m=/\/+/g;function y(e){return(""+e).replace(m,"$&/")}var h=_,_=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)},g=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)};function v(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function w(e,t,n){var o=e.result,i=e.keyPrefix,s=e.func,l=e.context,u=s.call(l,t,e.count++);Array.isArray(u)?b(u,o,n,a.thatReturnsArgument):null!=u&&(r.isValidElement(u)&&(u=function(e,t){return r.cloneElement(e,{key:t},void 0!==e.props?e.props.children:void 0)}(u,i+(!u.key||t&&t.key===u.key?"":y(u.key)+"/")+n)),o.push(u))}function b(e,t,n,r,o){var a="";null!=n&&(a=y(n)+"/");var i=v.getPooled(t,a,r,o);!function(e,t,n){null==e||f(e,"",t,n)}(e,w,i),v.release(i)}v.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},function(e,t){var n=e;n.instancePool=[],n.getPooled=t||h,n.poolSize||(n.poolSize=10),n.release=g}(v,function(e,t,n,r){if(this.instancePool.length){var o=this.instancePool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)});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)b(e[n],t,n,a.thatReturnsArgument);return t}},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,o,a,i,s,l){if(r(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,a,i,s,l],d=0;(u=new Error(t.replace(/%s/g,function(){return c[d++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";var r=n(39);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";Object.defineProperty(t,"__esModule",{value:!0});var r=n(10),o=n(7),a=function(e){return e&&e.__esModule?e:{default:e}}(n(76));t.default=(0,r.compose)([(0,o.withSelect)(function(e,t){var n=e("yoast-seo/editor"),r=n.getPostOrPageString,o=n.getIsModalOpen;return{postTypeName:r(),isOpen:o(t.id)}}),(0,o.withDispatch)(function(e,t){var n=e("yoast-seo/editor"),r=n.openEditorModal;return{open:function(){return r(t.id)},close:n.closeEditorModal}})])(a.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openMedia=function(e){return function(e){var t=null;return(t=window.wp.media()).on("select",function(){var n=t.state().get("selection").first(),r={type:n.attributes.subtype,width:n.attributes.width,height:n.attributes.height,url:n.attributes.url,id:n.attributes.id};e(r)}),t}(e).open()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.linkFieldsShape=void 0;var r=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},o=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(4),i=function(e){return e&&e.__esModule?e:{default:e}}(n(1));t.linkFieldsShape=i.default.shape({value:i.default.string.isRequired,onChange:i.default.func.isRequired});t.default=function(e){return function(t){return function(n){function s(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,t));n.elements={};var r={};return n.fields=e(t),n.fields.forEach(function(e){var t=e.name,o=e.fieldId,a=document.getElementById(o);a&&(n.elements[t]=a,r[t]={value:a.value,onChange:n.onChange.bind(n,t)})}),n.state=r,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,a.Component),o(s,[{key:"onChange",value:function(e,t){var n=this;this.setState(r({},this.state,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,r({},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,o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children"]);return wp.element.createElement(t,r({},o,this.state),n)}}],[{key:"propTypes",get:function(){return{children:i.default.node}}}]),s}()}}},,,,,,,,,,function(e,t){e.exports=window.wp.richText},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModalIcon=t.ModalContainer=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(8)),o=n(5),a=n(6);t.ModalContainer=r.default.div.withConfig({displayName:"Container__ModalContainer",componentId:"sc-1onoh63-0"})(["min-width:600px;@media screen and ( max-width:680px ){min-width:0;width:86vw;}"]),t.ModalIcon=(0,r.default)(o.Icon).withConfig({displayName:"Container__ModalIcon",componentId:"sc-1onoh63-1"})(["float:",";margin:",";&&{width:150px;height:150px;@media screen and ( max-width:680px ){width:80px;height:80px;}}"],(0,a.getDirectionalStyle)("right","left"),(0,a.getDirectionalStyle)("0 0 16px 16px","0 16px 16px 0"))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),o=s(n(1)),a=n(28),i=s(n(19));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){var t=e.target,n=e.scoreIndicator;return wp.element.createElement(i.default,{target:t},wp.element.createElement(r.SvgIcon,(0,a.getIconForScore)(n)))};l.propTypes={target:o.default.string.isRequired,scoreIndicator:o.default.string.isRequired},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(4),a=u(n(20)),i=u(n(1)),s=u(n(8)),l=n(6);function u(e){return e&&e.__esModule?e:{default:e}}var c=s.default.ul.withConfig({displayName:"UpsellBox__StyledList",componentId:"gjf66g-0"})(['list-style:none;margin:0 0 16px;padding:0;li{margin:5px 0 0 0;padding-left:16px;}span[aria-hidden="true"]:before{margin:0 8px 0 -16px;font-weight:bold;content:"+";}']),d=s.default.small.withConfig({displayName:"UpsellBox__ButtonLabel",componentId:"gjf66g-1"})(["display:block;"]),p=(0,l.makeOutboundLink)(),f=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Component),r(t,[{key:"createBenefitsList",value:function(e){return e.length>0&&wp.element.createElement(c,{role:"list"},e.map(function(e,t){return wp.element.createElement("li",{key:t},wp.element.createElement("span",{"aria-hidden":"true"}),(0,a.default)({mixedString:e.replace("<strong>","{{strong}}").replace("</strong>","{{/strong}}"),components:{strong:wp.element.createElement("strong",null)}}))}))}},{key:"createInfoParagraphs",value:function(e){return e.map(function(e,t){return wp.element.createElement("p",{key:t},e)})}},{key:"render",value:function(){return wp.element.createElement("div",null,this.createInfoParagraphs(this.props.infoParagraphs),this.createBenefitsList(this.props.benefits),wp.element.createElement(p,this.props.upsellButton,this.props.upsellButtonText,this.props.upsellButtonHasCaret&&wp.element.createElement("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})),wp.element.createElement(d,{id:this.props.upsellButton["aria-describedby"]},this.props.upsellButtonLabel))}}]),t}();f.propTypes={benefits:i.default.array,infoParagraphs:i.default.array,upsellButton:i.default.object,upsellButtonText:i.default.string.isRequired,upsellButtonLabel:i.default.string,upsellButtonHasCaret:i.default.bool},f.defaultProps={infoParagraphs:[],benefits:[],upsellButton:{href:"",className:"button button-primary"},upsellButtonLabel:"",upsellButtonHasCaret:!0},t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1));var o=function(e){var t=e.children;return wp.element.createElement("div",null,t)};o.propTypes={renderPriority:r.default.number.isRequired,children:r.default.node.isRequired},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(4),a=u(n(1)),i=u(n(172)),s=n(173),l=n(59);function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={activeField:"",hoveredField:""},n.setHoveredField=n.setHoveredField.bind(n),n.setActiveField=n.setActiveField.bind(n),n.setEditorRef=n.setEditorRef.bind(n),n.setEditorFocus=n.setEditorFocus.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Component),r(t,[{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,l=e.socialMediumName,u=e.imageWarnings,c=e.description,d=e.descriptionInputPlaceholder,p=e.imageUrl,f=e.title,m=e.titleInputPlaceholder,y=e.replacementVariables,h=e.recommendedReplacementVariables,_=e.isPremium,g=e.location;return wp.element.createElement(o.Fragment,null,wp.element.createElement(i.default,{socialMediumName:l}),wp.element.createElement(s.SocialMetadataPreviewForm,{onDescriptionChange:t,socialMediumName:l,title:f,titleInputPlaceholder:m,onRemoveImageClick:a,imageSelected:!!p,imageUrl:p,onTitleChange:n,onSelectImageClick:r,description:c,descriptionInputPlaceholder:d,imageWarnings:u,replacementVariables:y,recommendedReplacementVariables:h,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:_,setEditorRef:this.setEditorRef,idSuffix:g}))}}]),t}();c.propTypes={title:a.default.string.isRequired,onTitleChange:a.default.func.isRequired,description:a.default.string.isRequired,onDescriptionChange:a.default.func.isRequired,imageUrl:a.default.string.isRequired,onSelectImageClick:a.default.func.isRequired,onRemoveImageClick:a.default.func.isRequired,socialMediumName:a.default.string.isRequired,isPremium:a.default.bool,imageWarnings:a.default.array,descriptionInputPlaceholder:a.default.string,titleInputPlaceholder:a.default.string,replacementVariables:l.replacementVariablesShape,recommendedReplacementVariables:l.recommendedReplacementVariablesShape,location:a.default.string},c.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",location:""},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),o=n(17),a=n(8),i=n(14);var s=function(e){var t=e.store,n=e.theme,r=e.location,s=e.children;return wp.element.createElement(i.LocationProvider,{value:r},wp.element.createElement(a.ThemeProvider,{theme:n},wp.element.createElement(o.Provider,{store:t},s)))};s.propTypes={store:r.default.object.isRequired,theme:r.default.object.isRequired,location:r.default.oneOf(["sidebar","metabox","modal"]).isRequired,children:r.default.element.isRequired},t.default=s},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),o=function(e){return e&&e.__esModule?e:{default:e}}(n(1));var a=function(e){return wp.element.createElement("div",{className:"yoast components-panel__body"},wp.element.createElement("h2",{className:"components-panel__body-title"},wp.element.createElement("button",{id:e.id,onClick:e.onClick,className:"components-button components-panel__body-toggle"},wp.element.createElement("span",{className:"yoast-title-container"},wp.element.createElement("div",{className:"yoast-title"},e.title),wp.element.createElement("div",{className:"yoast-subtitle"},e.subTitle)),e.suffixIcon&&wp.element.createElement(r.SvgIcon,{size:e.suffixIcon.size,icon:e.suffixIcon.icon}))))};t.default=a,a.propTypes={onClick:o.default.func.isRequired,title:o.default.string.isRequired,id:o.default.string,subTitle:o.default.string,suffixIcon:o.default.object},a.defaultProps={id:"",suffixIcon:null,subTitle:""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=u(n(1)),a=n(77),i=n(4),s=n(11),l=u(n(28));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=n.props.results;return n.state={mappedResults:{}},null!==r&&(n.state={mappedResults:(0,l.default)(r,n.props.keywordKey)}),n.handleMarkButtonClick=n.handleMarkButtonClick.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),r(t,[{key:"componentDidUpdate",value:function(e){null!==this.props.results&&this.props.results!==e.results&&this.setState({mappedResults:(0,l.default)(this.props.results,this.props.keywordKey)})}},{key:"handleMarkButtonClick",value:function(e,t){var n=this.props.keywordKey.length>0?this.props.keywordKey+":"+e:e;n===this.props.activeMarker?(this.props.setActiveMarker(null),this.props.setMarkerPauseStatus(!1),this.removeMarkers()):(this.props.setActiveMarker(n),t())}},{key:"removeMarkers",value:function(){window.YoastSEO.analysis.applyMarks(new s.Paper("",{}),[])}},{key:"render",value:function(){var e=this.state.mappedResults,t=e.errorsResults,n=e.improvementsResults,r=e.goodResults,o=e.considerationsResults,s=e.problemsResults;return wp.element.createElement(i.Fragment,null,wp.element.createElement(a.ContentAnalysis,{errorsResults:t,problemsResults:s,improvementsResults:n,considerationsResults:o,goodResults:r,activeMarker:this.props.activeMarker,onMarkButtonClick:this.handleMarkButtonClick,marksButtonClassName:this.props.marksButtonClassName,marksButtonStatus:this.props.marksButtonStatus,headingLevel:3,keywordKey:this.props.keywordKey}))}}]),t}();c.propTypes={results:o.default.array,marksButtonClassName:o.default.string,marksButtonStatus:o.default.string,setActiveMarker:o.default.func.isRequired,setMarkerPauseStatus:o.default.func.isRequired,activeMarker:o.default.string,keywordKey:o.default.string},c.defaultProps={results:null,marksButtonStatus:"enabled",marksButtonClassName:"",activeMarker:null,keywordKey:""},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(1)),o=s(n(8)),a=n(5),i=n(6);function s(e){return e&&e.__esModule?e:{default:e}}var l=(0,o.default)(a.StyledSection).withConfig({displayName:"SnippetPreviewSection__Section",componentId:"gjy5w5-0"})(["&","{padding:0;& ","{",":20px;margin-left:",";}}"],a.StyledSectionBase,a.StyledHeading,(0,i.getDirectionalStyle)("padding-left","padding-right"),(0,i.getDirectionalStyle)("0","20px")),u=function(e){var t=e.children,n=e.title,r=e.icon,o=e.hasPaperStyle;return wp.element.createElement(l,{headingLevel:3,headingText:n,headingIcon:r,headingIconColor:"#555",hasPaperStyle:o},t)};u.propTypes={children:r.default.element,title:r.default.string,icon:r.default.string,hasPaperStyle:r.default.bool},u.defaultProps={hasPaperStyle:!0},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schemaTypeOptionsPropType=void 0;var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(4),a=n(3),i=n(5),s=c(n(1)),l=n(84),u=c(l);function c(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.initialPageType=e.pageType.value,n.initialArticleType=e.articleType?e.articleType.value:"None",n.state={schema_page_type:n.initialPageType,schema_article_type:n.initialArticleType},n.handleOptionFocus=n.handleOptionFocus.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Component),r(t,[{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(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,t))}},{key:"render",value:function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(i.FieldGroup,{label:(0,a.__)("Schema settings","wordpress-seo"),linkTo:"https://yoa.st/404",linkText:(0,a.__)("Learn more about the schema settings","wordpress-seo"),description:(0,a.sprintf)((0,a.__)("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()&&wp.element.createElement(i.Alert,{type:"warning"},(0,a.sprintf)((0,a._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)),wp.element.createElement(i.Select,{id:"schema-page-type-"+this.props.postType,name:"schema_page_type",options:this.props.pageTypeOptions,label:(0,a.__)("Default Page type","wordpress-seo"),onChange:this.props.pageType.onChange,selected:this.props.pageType.value,onOptionFocus:this.handleOptionFocus}),this.props.articleType&&wp.element.createElement(i.Select,{id:"schema-article-type-"+this.props.postType,name:"schema_article_type",options:this.props.articleTypeOptions,label:(0,a.__)("Default Article type","wordpress-seo"),onChange:this.props.articleType.onChange,onOptionFocus:this.handleOptionFocus,selected:this.props.articleType.value}))}}]),t}(),p=t.schemaTypeOptionsPropType=s.default.arrayOf(s.default.shape({name:s.default.string,value:s.default.string}));d.propTypes={postType:s.default.string.isRequired,postTypeName:s.default.string.isRequired,pageType:l.linkFieldsShape.isRequired,articleType:l.linkFieldsShape,pageTypeOptions:p.isRequired,articleTypeOptions:p.isRequired},d.defaultProps={articleType:null},t.default=(0,u.default)(function(e){return[{name:"pageType",fieldId:e.pageTypeFieldId},{name:"articleType",fieldId:e.articleTypeFieldId}]})(d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),o=n(10),a=function(e){return e&&e.__esModule?e:{default:e}}(n(118));t.default=(0,o.compose)([(0,r.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.getFocusKeyphrase,r=t.getSEMrushSelectedCountry,o=t.getSEMrushRequestLimitReached,a=t.getSEMrushRequestResponse,i=t.getSEMrushRequestIsSuccess,s=t.getSEMrushIsRequestPending,l=t.getSEMrushRequestHasData,u=t.getSEMrushRequestKeyphrase;return{keyphrase:n(),countryCode:r(),requestLimitReached:o(),response:a(),isSuccess:i(),isPending:s(),requestHasData:l(),lastRequestKeyphrase:u()}}),(0,r.withDispatch)(function(e){var t=e("yoast-seo/editor"),n=t.setSEMrushChangeCountry,r=t.setSEMrushNewRequest,o=t.setSEMrushRequestSucceeded,a=t.setSEMrushRequestFailed,i=t.setSEMrushSetRequestLimitReached,s=t.setSEMrushNoResultsFound;return{setCountry:function(e){n(e)},newRequest:function(e,t){r(e,t)},setRequestSucceeded:function(e){o(e)},setRequestFailed:function(e){a(e)},setRequestLimitReached:function(){i()},setNoResultsFound:function(){s()}}})])(a.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasError=h,t.getUserMessage=_,t.hasMaximumRelatedKeyphrases=g,t.default=v;var r=n(4),o=n(3),a=y(n(1)),i=n(0),s=y(n(119)),l=y(n(120)),u=y(n(121)),c=y(n(122)),d=y(n(125)),p=y(n(126)),f=y(n(127)),m=y(n(9));function y(e){return e&&e.__esModule?e:{default:e}}function h(e){return!(0,i.isEmpty)(e)&&"error"in e}function _(e){var t=e.isPending,n=e.requestLimitReached,r=e.isSuccess,a=e.response,i=e.requestHasData;return t?wp.element.createElement(s.default,null):n?wp.element.createElement(l.default,null):!r&&h(a)?wp.element.createElement(p.default,null):i?void 0:wp.element.createElement("p",null,(0,o.__)("Sorry, there's no data available for that keyphrase/country combination.","wordpress-seo"))}function g(e){return e&&e.length>=4}function v(e){var t=e.response,n=e.lastRequestKeyphrase,o=e.keyphrase,a=e.newRequest,i=e.setCountry,s=e.renderAction,l=e.countryCode,p=e.requestLimitReached,y=e.setRequestFailed,h=e.setNoResultsFound,v=e.relatedKeyphrases,w=e.setRequestSucceeded,b=e.setRequestLimitReached,E=(0,m.default)().isPremium;return wp.element.createElement(r.Fragment,null,!p&&wp.element.createElement(r.Fragment,null,!E&&wp.element.createElement(d.default,null),E&&g(v)&&wp.element.createElement(f.default,null),wp.element.createElement(u.default,{countryCode:l,setCountry:i,newRequest:a,keyphrase:o,setRequestFailed:y,setNoResultsFound:h,setRequestSucceeded:w,setRequestLimitReached:b,response:t,lastRequestKeyphrase:n})),_(e),wp.element.createElement(c.default,{keyphrase:o,relatedKeyphrases:v,countryCode:l,renderAction:s,data:t}))}v.propTypes={keyphrase:a.default.string,relatedKeyphrases:a.default.array,renderAction:a.default.func,requestLimitReached:a.default.bool,countryCode:a.default.string.isRequired,setCountry:a.default.func.isRequired,newRequest:a.default.func.isRequired,setRequestSucceeded:a.default.func.isRequired,setRequestLimitReached:a.default.func.isRequired,setRequestFailed:a.default.func.isRequired,setNoResultsFound:a.default.func.isRequired,response:a.default.object,lastRequestKeyphrase:a.default.string},v.defaultProps={keyphrase:"",relatedKeyphrases:[],renderAction:null,requestLimitReached:!1,response:{},lastRequestKeyphrase:""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(5);t.default=function(){return wp.element.createElement("p",{className:"yoast-related-keyphrases-modal__loading-message"},(0,r.sprintf)((0,r.__)("Please wait while %1$s connects to %2$s to get related keyphrases...","wordpress-seo"),"Yoast SEO","SEMrush")," ",wp.element.createElement(o.SvgIcon,{icon:"loading-spinner"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(4),a=(0,n(6).makeOutboundLink)();t.default=function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement("p",null,(0,r.sprintf)((0,r.__)("You've reached your request limit for today. Check back tomorrow or upgrade your plan over at %s.","wordpress-seo"),"SEMrush")),wp.element.createElement(a,{href:window.wpseoAdminL10n["shortlinks.semrush.prices"],className:"yoast-button-upsell"},(0,r.sprintf)((0,r.__)("Upgrade your %s plan","wordpress-seo"),"SEMrush"),wp.element.createElement("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SEMrushCountrySelector=void 0;var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=c(n(1)),a=n(4),i=c(n(55)),s=n(56),l=n(3),u=n(5);function c(e){return e&&e.__esModule?e:{default:e}}function d(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){return function r(o,a){try{var i=t[o](a),s=i.value}catch(e){return void n(e)}if(!i.done)return Promise.resolve(s).then(function(e){r("next",e)},function(e){r("throw",e)});e(s)}("next")})}}var p="yoast-semrush-country-selector",f=[{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"}],m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.relatedKeyphrasesRequest=n.relatedKeyphrasesRequest.bind(n),n.onChangeHandler=n.onChangeHandler.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Component),r(t,[{key:"componentDidMount",value:function(){this.props.response&&this.props.keyphrase===this.props.lastRequestKeyphrase||this.relatedKeyphrasesRequest()}},{key:"storeCountryCode",value:function(e){(0,i.default)({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}})}},{key:"relatedKeyphrasesRequest",value:function(){var e=d(regeneratorRuntime.mark(function e(){var t,n,r,o;return regeneratorRuntime.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!==(o=e.sent).status){e.next=9;break}return this.handleSuccessResponse(o),e.abrupt("return");case 9:this.handleFailedResponse(o);case 10:case"end":return e.stop()}},e,this)}));return function(){return e.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:function(){var e=d(regeneratorRuntime.mark(function e(t,n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.default)({path:(0,s.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,this)}));return function(t,n){return e.apply(this,arguments)}}()},{key:"onChangeHandler",value:function(e){this.props.setCountry(e)}},{key:"render",value:function(){return wp.element.createElement("div",{id:p},wp.element.createElement(u.SingleSelect,{id:p+"-select",label:(0,l.__)("Show results for:","wordpress-seo"),name:"semrush-country-code",options:f,selected:this.props.countryCode,onChange:this.onChangeHandler,wrapperClassName:"yoast-field-group yoast-field-group--inline"}),wp.element.createElement(u.NewButton,{id:p+"-button",variant:"secondary",onClick:this.relatedKeyphrasesRequest},(0,l.__)("Select country","wordpress-seo")))}}]),t}();m.propTypes={keyphrase:o.default.string,countryCode:o.default.string,response:o.default.object,lastRequestKeyphrase:o.default.string,setCountry:o.default.func.isRequired,newRequest:o.default.func.isRequired,setNoResultsFound:o.default.func.isRequired,setRequestSucceeded:o.default.func.isRequired,setRequestLimitReached:o.default.func.isRequired,setRequestFailed:o.default.func.isRequired},m.defaultProps={keyphrase:"",countryCode:"us",response:{},lastRequestKeyphrase:""};t.SEMrushCountrySelector=function(e){return wp.element.createElement(u.ErrorBoundary,null,wp.element.createElement(m,e))},t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=d(n(1)),a=n(4),i=n(3),s=n(0),l=n(6),u=d(n(123)),c=d(n(33));function d(e){return e&&e.__esModule?e:{default:e}}var p=(0,l.makeOutboundLink)(),f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.transformTrendDataToChartPoints=n.transformTrendDataToChartPoints.bind(n),n.getAreaChartDataTableHeaderLabels=n.getAreaChartDataTableHeaderLabels.bind(n),n.mapAreaChartDataToTableData=n.mapAreaChartDataToTableData.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Component),r(t,[{key:"transformTrendDataToChartPoints",value:function(e){return e.split(",").map(function(e,t){return{x:t,y:parseFloat(e)}})}},{key:"getAreaChartDataTableHeaderLabels",value:function(){return[(0,i.__)("Twelve months ago","wordpress-seo"),(0,i.__)("Eleven months ago","wordpress-seo"),(0,i.__)("Ten months ago","wordpress-seo"),(0,i.__)("Nine months ago","wordpress-seo"),(0,i.__)("Eight months ago","wordpress-seo"),(0,i.__)("Seven months ago","wordpress-seo"),(0,i.__)("Six months ago","wordpress-seo"),(0,i.__)("Five months ago","wordpress-seo"),(0,i.__)("Four months ago","wordpress-seo"),(0,i.__)("Three months ago","wordpress-seo"),(0,i.__)("Two months ago","wordpress-seo"),(0,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,o=t.countryCode,l=t.data,d=t.renderAction,f="https://www.semrush.com/analytics/keywordoverview/?q="+encodeURIComponent(n)+"&db="+encodeURIComponent(o);return l&&!(0,s.isEmpty)(l.results)&&wp.element.createElement(a.Fragment,null,wp.element.createElement("table",{className:"yoast yoast-table"},wp.element.createElement("thead",null,wp.element.createElement("tr",null,wp.element.createElement("th",{scope:"col",className:"yoast-table--primary"},(0,i.__)("Related keyphrase","wordpress-seo")),wp.element.createElement("th",{scope:"col",abbr:(0,i.__)("Volume","wordpress-seo")},(0,i.__)("Volume","wordpress-seo"),wp.element.createElement(c.default,{href:window.wpseoAdminL10n["shortlinks.semrush.volume_help"],className:"dashicons"},wp.element.createElement("span",{className:"screen-reader-text"},(0,i.__)("Learn more about the related keyphrases volume","wordpress-seo")))),wp.element.createElement("th",{scope:"col",abbr:(0,i.__)("Trend","wordpress-seo")},(0,i.__)("Trend","wordpress-seo"),wp.element.createElement(c.default,{href:window.wpseoAdminL10n["shortlinks.semrush.trend_help"],className:"dashicons"},wp.element.createElement("span",{className:"screen-reader-text"},(0,i.__)("Learn more about the related keyphrases trend","wordpress-seo")))),d&&wp.element.createElement("td",{className:"yoast-table--nobreak"}))),wp.element.createElement("tbody",null,l.results.rows.map(function(t,n){var o=t[0],a=e.transformTrendDataToChartPoints(t[2]),s=e.getAreaChartDataTableHeaderLabels();return wp.element.createElement("tr",{key:n},wp.element.createElement("td",null,o),wp.element.createElement("td",null,t[1]),wp.element.createElement("td",{className:"yoast-table--nopadding"},wp.element.createElement(u.default,{width:66,height:24,data:a,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:e.mapAreaChartDataToTableData,dataTableCaption:(0,i.__)("Keyphrase volume in the last 12 months on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:s})),d&&wp.element.createElement("td",{className:"yoast-table--nobreak"},d(o,r)))}))),wp.element.createElement("p",{style:{marginBottom:0}},wp.element.createElement(p,{href:f},(0,i.sprintf)((0,i.__)("Get more insights at %s","wordpress-seo"),"SEMrush"))))}}]),t}();f.propTypes={data:o.default.object,keyphrase:o.default.string,relatedKeyphrases:o.default.array,countryCode:o.default.string,renderAction:o.default.func},f.defaultProps={data:{},keyphrase:"",relatedKeyphrases:[],countryCode:"us",renderAction:null},t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(1)),o=n(4),a=i(n(124));function i(e){return e&&e.__esModule?e:{default:e}}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var l=function(e){var t=e.data,n=e.width,r=e.height,i=e.fillColor,l=e.strokeColor,u=e.strokeWidth,c=e.className,d=e.mapChartDataToTableData,p=e.dataTableCaption,f=e.dataTableHeaderLabels,m=e.isDataTableVisuallyHidden,y=Math.max(1,Math.max.apply(Math,s(t.map(function(e){return e.x})))),h=Math.max(1,Math.max.apply(Math,s(t.map(function(e){return e.y})))),_=r-u,g=t.map(function(e){return e.x/y*n+","+(_-e.y/h*_+u)}).join(" "),v="0,"+(_+u)+" "+g+" "+n+","+(_+u);return wp.element.createElement(o.Fragment,null,wp.element.createElement("svg",{width:n,height:r,viewBox:"0 0 "+n+" "+r,className:c,role:"img","aria-hidden":"true",focusable:"false"},wp.element.createElement("polygon",{fill:i,points:v}),wp.element.createElement("polyline",{fill:"none",stroke:l,strokeWidth:u,strokeLinejoin:"round",strokeLinecap:"round",points:g})),d&&wp.element.createElement(a.default,{data:t,mapChartDataToTableData:d,dataTableCaption:p,dataTableHeaderLabels:f,isDataTableVisuallyHidden:m}))};l.propTypes={data:r.default.arrayOf(r.default.shape({x:r.default.number,y:r.default.number})).isRequired,width:r.default.number.isRequired,height:r.default.number.isRequired,fillColor:r.default.string,strokeColor:r.default.string,strokeWidth:r.default.number,className:r.default.string,mapChartDataToTableData:r.default.func,dataTableCaption:r.default.string.isRequired,dataTableHeaderLabels:r.default.array.isRequired,isDataTableVisuallyHidden:r.default.bool},l.defaultProps={fillColor:null,strokeColor:"#000000",strokeWidth:1,className:"",mapChartDataToTableData:null,isDataTableVisuallyHidden:!0},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),o=n(3);var a=function(e){var t=e.data,n=e.mapChartDataToTableData,r=e.dataTableCaption,a=e.dataTableHeaderLabels,i=e.isDataTableVisuallyHidden;return t.length!==a.length?wp.element.createElement("p",null,(0,o.__)("The number of headers and header labels don't match.","wordpress-seo")):wp.element.createElement("div",{className:i?"screen-reader-text":null},wp.element.createElement("table",null,wp.element.createElement("caption",null,r),wp.element.createElement("thead",null,wp.element.createElement("tr",null,a.map(function(e,t){return wp.element.createElement("th",{key:t},e)}))),wp.element.createElement("tbody",null,wp.element.createElement("tr",null,t.map(function(e,t){return wp.element.createElement("td",{key:t},n(e.y))})))))};a.propTypes={data:r.default.arrayOf(r.default.shape({x:r.default.number,y:r.default.number})).isRequired,mapChartDataToTableData:r.default.func,dataTableCaption:r.default.string.isRequired,dataTableHeaderLabels:r.default.array.isRequired,isDataTableVisuallyHidden:r.default.bool},a.defaultProps={mapChartDataToTableData:null,isDataTableVisuallyHidden:!0},t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(5),a=(0,n(6).makeOutboundLink)();t.default=function(){return wp.element.createElement(o.Alert,{type:"info"},(0,r.sprintf)((0,r.__)("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")+" ",wp.element.createElement(a,{href:window.wpseoAdminL10n["shortlinks.semrush.premium_landing_page"]},(0,r.sprintf)((0,r.__)("Check out %s!","wordpress-seo"),"Yoast SEO Premium")))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(5);t.default=function(){return wp.element.createElement(o.Alert,{type:"error"},(0,r.__)("We've encountered a problem trying to get related keyphrases. Please try again later.","wordpress-seo"))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(5);t.default=function(){return wp.element.createElement(o.Alert,{type:"warning"},(0,r.sprintf)((0,r.__)("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"))}},,,,,,,,,,,,,function(e,t){e.exports=window.wp.blocks},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(10),o=n(7),a=s(n(159)),i=s(n(32));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,r.compose)([(0,o.withSelect)(function(e){return{isCornerstone:(0,e("yoast-seo/editor").isCornerstoneContent)(),learnMoreUrl:wpseoAdminL10n["shortlinks.cornerstone_content_info"]}}),(0,o.withDispatch)(function(e){return{onChange:e("yoast-seo/editor").toggleCornerstoneContent}}),(0,i.default)()])(a.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeywordInput=void 0;var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(4),a=n(12),i=n(3),s=y(n(1)),l=n(17),u=n(15),c=y(n(8)),d=n(16),p=y(n(33)),f=n(14),m=y(n(161));function y(e){return e&&e.__esModule?e:{default:e}}var h=c.default.div.withConfig({displayName:"KeywordInput__KeywordInputContainer",componentId:"sc-16tnggn-0"})(["padding:16px;border-bottom:1px solid transparent;"]),_=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.validate=n.validate.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Component),r(t,[{key:"validate",value:function(){var e=[];return 0===this.props.keyword.trim().length&&this.props.displayNoKeyphraseMessage&&e.push((0,i.__)("Please enter a focus keyphrase first to get related keyphrases","wordpress-seo")),this.props.keyword.includes(",")&&e.push((0,i.__)("Are you trying to use multiple keyphrases? You should add them separately below.","wordpress-seo")),this.props.keyword.length>191&&e.push((0,i.__)("Your keyphrase is too long. It can be a maximum of 191 characters.","wordpress-seo")),e}},{key:"render",value:function(){var e=this,n=this.validate();return wp.element.createElement(f.LocationConsumer,null,function(r){return wp.element.createElement("div",{style:"sidebar"===r?{borderBottom:"1px solid #f0f0f0"}:{}},wp.element.createElement(h,{location:r},wp.element.createElement(u.KeywordInput,{id:"focus-keyword-input-"+r,onChange:e.props.onFocusKeywordChange,keyword:e.props.keyword,label:(0,i.__)("Focus keyphrase","wordpress-seo"),helpLink:t.renderHelpLink(),onBlurKeyword:e.props.onBlurKeyword,onFocusKeyword:e.props.onFocusKeyword,hasError:n.length>0,errorMessages:n}),e.props.isSEMrushIntegrationActive&&wp.element.createElement(m.default,{location:r,keyphrase:e.props.keyword})),wp.element.createElement(a.Slot,{name:"YoastAfterKeywordInput"+(r.charAt(0).toUpperCase()+r.slice(1))}))})}}],[{key:"renderHelpLink",value:function(){return wp.element.createElement(p.default,{href:wpseoAdminL10n["shortlinks.focus_keyword_info"],className:"dashicons"},wp.element.createElement("span",{className:"screen-reader-text"},(0,i.__)("Help on choosing the perfect focus keyphrase","wordpress-seo")))}}]),t}();_.propTypes={keyword:s.default.string,onFocusKeywordChange:s.default.func.isRequired,onFocusKeyword:s.default.func.isRequired,onBlurKeyword:s.default.func.isRequired,isSEMrushIntegrationActive:s.default.bool,displayNoKeyphraseMessage:s.default.bool},_.defaultProps={keyword:"",isSEMrushIntegrationActive:!1,displayNoKeyphraseMessage:!1},t.KeywordInput=_,t.default=(0,l.connect)(function(e){return{keyword:e.focusKeyword,displayNoKeyphraseMessage:e.SEMrushModal.displayNoKeyphraseMessage}},function(e){return{onFocusKeywordChange:function(t){e((0,d.setFocusKeyword)(t))},onFocusKeyword:function(){e((0,d.setMarkerPauseStatus)(!0))},onBlurKeyword:function(){e((0,d.setMarkerPauseStatus)(!1))}}})(_)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},o=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(4),i=n(7),s=v(n(1)),l=v(n(8)),u=n(3),c=n(0),d=v(n(96)),p=v(n(61)),f=v(n(31)),m=v(n(27)),y=n(28),h=n(14),_=v(n(33)),g=v(n(164));function v(e){return e&&e.__esModule?e:{default:e}}var w=l.default.span.withConfig({displayName:"ReadabilityAnalysis__AnalysisHeader",componentId:"z9f9eh-0"})(["font-size:1em;font-weight:bold;margin:0 0 8px;display:block;"]),b=l.default.div.withConfig({displayName:"ReadabilityAnalysis__ReadabilityResultsTabContainer",componentId:"z9f9eh-1"})(["padding:16px;"]),E=(0,l.default)(_.default).withConfig({displayName:"ReadabilityAnalysis__StyledHelpLink",componentId:"z9f9eh-2"})(["margin:-8px 0 -4px 4px;"]),T=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Component),o(t,[{key:"renderResults",value:function(){return wp.element.createElement(a.Fragment,null,wp.element.createElement(w,null,(0,u.__)("Analysis results","wordpress-seo"),wp.element.createElement(E,{href:wpseoAdminL10n["shortlinks.readability_analysis_info"],className:"dashicons"},wp.element.createElement("span",{className:"screen-reader-text"},(0,u.__)("Learn more about the readability analysis","wordpress-seo")))),wp.element.createElement(p.default,{results:this.props.results,marksButtonClassName:"yoast-tooltip yoast-tooltip-w",marksButtonStatus:this.props.marksButtonStatus}))}},{key:"render",value:function(){var e=this,t=(0,m.default)(this.props.overallScore);return(0,c.isNil)(this.props.overallScore)&&(t.className="loading"),wp.element.createElement(h.LocationConsumer,null,function(n){return"sidebar"===n?wp.element.createElement(f.default,{title:(0,u.__)("Readability analysis","wordpress-seo"),titleScreenReaderText:t.screenReaderReadabilityText,prefixIcon:(0,y.getIconForScore)(t.className),prefixIconCollapsed:(0,y.getIconForScore)(t.className),id:"yoast-readability-analysis-collapsible-"+n},e.renderResults()):"metabox"===n?wp.element.createElement(g.default,{target:"wpseo-metabox-readability-root"},wp.element.createElement(b,null,wp.element.createElement(d.default,{target:"wpseo-readability-score-icon",scoreIndicator:t.className}),e.renderResults())):void 0})}}]),t}();T.propTypes={results:s.default.array.isRequired,marksButtonStatus:s.default.string.isRequired,overallScore:s.default.number},T.defaultProps={overallScore:null},t.default=(0,i.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.getReadabilityResults,o=t.getMarkButtonStatus;return r({},n(),{marksButtonStatus:o()})})(T)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(4),a=k(n(1)),i=n(17),s=k(n(8)),l=n(3),u=n(5),c=n(18),d=k(n(96)),p=k(n(31)),f=k(n(34)),m=k(n(61)),y=k(n(27)),h=n(28),_=k(n(165)),g=k(n(166)),v=k(n(167)),w=n(14),b=k(n(168)),E=n(95),T=k(n(169));function k(e){return e&&e.__esModule?e:{default:e}}var O=s.default.span.withConfig({displayName:"SeoAnalysis__AnalysisHeader",componentId:"sc-18qlxmf-0"})(["font-size:1em;font-weight:bold;margin:1.5em 0 1em;display:block;"]),S=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Component),r(t,[{key:"renderSynonymsUpsell",value:function(e){var t={classes:{openButton:"wpseo-keyword-synonyms button-link"},labels:{open:"+ "+(0,l.__)("Add synonyms","wordpress-seo"),modalAriaLabel:(0,l.sprintf)((0,l.__)("Get %s","wordpress-seo"),"Yoast SEO Premium"),heading:(0,l.sprintf)((0,l.__)("Get %s","wordpress-seo"),"Yoast SEO Premium")}},n=wpseoAdminL10n["shortlinks.upsell.metabox.focus_keyword_synonyms_link"],r=wpseoAdminL10n["shortlinks.upsell.metabox.focus_keyword_synonyms_button"];return"sidebar"===e.toLowerCase()&&(n=wpseoAdminL10n["shortlinks.upsell.sidebar.focus_keyword_synonyms_link"],r=wpseoAdminL10n["shortlinks.upsell.sidebar.focus_keyword_synonyms_button"]),wp.element.createElement(g.default,t,wp.element.createElement(E.ModalContainer,null,wp.element.createElement(E.ModalIcon,{icon:u.YoastSeoIcon}),wp.element.createElement("h2",null,(0,l.__)("Would you like to add keyphrase synonyms?","wordpress-seo")),wp.element.createElement(_.default,{link:n,buyLink:r})))}},{key:"renderMultipleKeywordsUpsell",value:function(e){var t={classes:{openButton:"wpseo-multiple-keywords button-link"},labels:{open:"+ "+(0,l.__)("Add related keyphrase","wordpress-seo"),modalAriaLabel:(0,l.sprintf)((0,l.__)("Get %s","wordpress-seo"),"Yoast SEO Premium"),heading:(0,l.sprintf)((0,l.__)("Get %s","wordpress-seo"),"Yoast SEO Premium")}},n=wpseoAdminL10n["shortlinks.upsell.metabox.focus_keyword_additional_link"],r=wpseoAdminL10n["shortlinks.upsell.metabox.focus_keyword_additional_button"];return"sidebar"===e.toLowerCase()&&(n=wpseoAdminL10n["shortlinks.upsell.sidebar.focus_keyword_additional_link"],r=wpseoAdminL10n["shortlinks.upsell.sidebar.focus_keyword_additional_button"]),wp.element.createElement(g.default,t,wp.element.createElement(E.ModalContainer,null,wp.element.createElement(E.ModalIcon,{icon:u.YoastSeoIcon}),wp.element.createElement("h2",null,(0,l.__)("Would you like to add a related keyphrase?","wordpress-seo")),wp.element.createElement(v.default,{link:n,buyLink:r})))}},{key:"renderKeywordUpsell",value:function(e){var t=wpseoAdminL10n["shortlinks.upsell.metabox.additional_link"],n=wpseoAdminL10n["shortlinks.upsell.metabox.additional_button"],r=f.default;return"sidebar"===e.toLowerCase()&&(t=wpseoAdminL10n["shortlinks.upsell.sidebar.additional_link"],n=wpseoAdminL10n["shortlinks.upsell.sidebar.additional_button"],r=p.default),wp.element.createElement(r,{prefixIcon:{icon:"plus",color:c.colors.$color_grey_medium_dark},prefixIconCollapsed:{icon:"plus",color:c.colors.$color_grey_medium_dark},title:(0,l.__)("Add related keyphrase","wordpress-seo"),id:"yoast-additional-keyphrase-collapsible-"+e},wp.element.createElement(v.default,{link:t,buyLink:n}))}},{key:"renderWordFormsUpsell",value:function(e){return wp.element.createElement(b.default,{url:"sidebar"===e?wpseoAdminL10n["shortlinks.upsell.sidebar.morphology_upsell_sidebar"]:wpseoAdminL10n["shortlinks.upsell.sidebar.morphology_upsell_metabox"],alignment:"sidebar"===e?"vertical":"horizontal"})}},{key:"renderTabIcon",value:function(e,t){return"metabox"!==e?null:wp.element.createElement(d.default,{target:"wpseo-seo-score-icon",scoreIndicator:t})}},{key:"render",value:function(){var e=this,t=(0,y.default)(this.props.overallScore);return"loading"!==t.className&&""===this.props.keyword&&(t.className="na",t.screenReaderReadabilityText=(0,l.__)("Enter a focus keyphrase to calculate the SEO score","wordpress-seo")),wp.element.createElement(w.LocationConsumer,null,function(n){var r="metabox"===n?f.default:p.default;return wp.element.createElement(o.Fragment,null,wp.element.createElement(r,{title:(0,l.__)("SEO analysis","wordpress-seo"),titleScreenReaderText:t.screenReaderReadabilityText,prefixIcon:(0,h.getIconForScore)(t.className),prefixIconCollapsed:(0,h.getIconForScore)(t.className),subTitle:e.props.keyword,id:"yoast-seo-analysis-collapsible-"+n},wp.element.createElement(T.default,{location:n}),e.props.shouldUpsell&&wp.element.createElement(o.Fragment,null,e.renderSynonymsUpsell(n),e.renderMultipleKeywordsUpsell(n)),e.props.shouldUpsellWordFormRecognition&&e.renderWordFormsUpsell(n),wp.element.createElement(O,null,(0,l.__)("Analysis results","wordpress-seo")),wp.element.createElement(m.default,{results:e.props.results,marksButtonClassName:"yoast-tooltip yoast-tooltip-w",marksButtonStatus:e.props.marksButtonStatus})),e.props.shouldUpsell&&e.renderKeywordUpsell(n),e.renderTabIcon(n,t.className))})}}]),t}();S.propTypes={results:a.default.array,marksButtonStatus:a.default.string,keyword:a.default.string,shouldUpsell:a.default.bool,shouldUpsellWordFormRecognition:a.default.bool,overallScore:a.default.number},S.defaultProps={results:[],marksButtonStatus:null,keyword:"",shouldUpsell:!1,shouldUpsellWordFormRecognition:!1,overallScore:null},t.default=(0,i.connect)(function(e,t){var n=t.hideMarksButtons?"disabled":e.marksButtonStatus,r=e.focusKeyword,o=[],a=null;return e.analysis.seo[r]&&(o=e.analysis.seo[r].results,a=e.analysis.seo[r].overallScore),{results:o,marksButtonStatus:n,keyword:r,overallScore:a}})(S)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},o=n(10),a=n(7),i=n(4),s=n(3),l=p(n(1)),u=p(n(175)),c=p(n(49)),d=p(n(32));function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){var t=null!==c.default.articleTypeInput;(0,i.useEffect)(function(){e.loadSchemaPageData(),t&&e.loadSchemaArticleData()},[]);var n=window.wpseoScriptData.metabox.schema,o=n.pageTypeOptions,a=n.articleTypeOptions,l={articleTypeLabel:(0,s.__)("Article type","wordpress-seo"),pageTypeLabel:(0,s.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:(0,s.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:(0,s.__)("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:o,articleTypeOptions:a},d=r({},e,l,function(e){return"metabox"===e?{helpTextLink:"https://yoa.st/400",additionalHelpTextLink:"https://yoa.st/402",isMetabox:!0}:{helpTextLink:"https://yoa.st/401",additionalHelpTextLink:"https://yoa.st/403",isMetabox:!1}}(e.location));return wp.element.createElement(u.default,d)};f.propTypes={displayFooter:l.default.bool.isRequired,schemaPageTypeSelected:l.default.string.isRequired,schemaArticleTypeSelected:l.default.string.isRequired,defaultArticleType:l.default.string.isRequired,defaultPageType:l.default.string.isRequired,loadSchemaPageData:l.default.func.isRequired,loadSchemaArticleData:l.default.func.isRequired,schemaPageTypeChange:l.default.func.isRequired,schemaArticleTypeChange:l.default.func.isRequired,location:l.default.string.isRequired},t.default=(0,o.compose)([(0,a.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.getPreferences,r=t.getPageType,o=t.getDefaultPageType,a=t.getArticleType,i=t.getDefaultArticleType;return{displayFooter:n().displaySchemaSettingsFooter,schemaPageTypeSelected:r(),schemaArticleTypeSelected:a(),defaultArticleType:i(),defaultPageType:o()}}),(0,a.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}}),(0,d.default)()])(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(10),o=n(7),a=function(e){return e&&e.__esModule?e:{default:e}}(n(176));t.default=(0,r.compose)([(0,o.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.getNoIndex,r=t.getNoFollow,o=t.getAdvanced,a=t.getBreadcrumbsTitle,i=t.getCanonical,s=t.getIsLoading,l=t.getEditorContext,u=(0,t.getPreferences)(),c=u.isBreadcrumbsDisabled,d=u.isPrivateBlog;return{noIndex:n(),noFollow:r(),advanced:o(),breadcrumbsTitle:a(),canonical:i(),isLoading:s(),editorContext:l(),isBreadcrumbsDisabled:c,isPrivateBlog:d}}),(0,o.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}})])(a.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(void 0===e.length)return e;return(0,r.flatten)(e).sort(function(e,t){return void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority})};var r=n(0)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.END_MARK=t.START_MARK=void 0;var r=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};t.isAnnotationAvailable=function(){return(0,i.select)("core/editor")&&(0,o.isFunction)((0,i.select)("core/editor").getBlocks)&&(0,i.select)("core/annotations")&&(0,o.isFunction)((0,i.dispatch)("core/annotations").__experimentalAddAnnotation)},t.getYoastmarkOffsets=y,t.getIndicesOf=h,t.calculateAnnotationsForTextFormat=_,t.applyAsAnnotations=function(e,t){if(c=[],(0,i.dispatch)("core/annotations").__experimentalRemoveAnnotationsBySource(s),0===t.length)return;var n=(0,i.select)("core/editor").getBlocks();w((0,o.flatMap)(n,function(e){return(0,o.flatMap)(g(e.name),function(n){return v(n,e,t)})})),m()},t.reapplyAnnotationsForSelectedBlock=function(){var e=(0,i.select)("core/editor").getSelectedBlock(),t=(0,i.select)("yoast-seo/editor").getActiveMarker();if(!e||!t)return;!function(e){(0,i.select)("core/annotations").__experimentalGetAnnotations().filter(function(t){return t.blockClientId===e&&t.source===s}).forEach(function(e){(0,i.dispatch)("core/annotations").__experimentalRemoveAnnotation(e.id)})}(e.clientId);var n=(0,i.select)("yoast-seo/editor").getResultById(t);if(void 0===n)return;var r=n.marks;w((0,o.flatMap)(g(e.name),function(t){return v(t,e,r)})),m()};var o=n(0),a=n(94),i=n(7),s="yoast",l=t.START_MARK="<yoastmark class='yoast-text-mark'>",u=t.END_MARK="</yoastmark>",c=[],d={"core/quote":[{key:"value",multilineTag:"p"},{key:"citation"}],"core/paragraph":[{key:"content"}],"core/list":[{key:"values",multilineTag:"li",multilineWrapperTag:["ul","ol"]}],"core/heading":[{key:"content"}]},p={singleH1:{"core/heading":[{key:"content",filter:function(e){return 1===e.level}}]}};function f(){var e=c.shift();e&&((0,i.dispatch)("core/annotations").__experimentalAddAnnotation(e),m())}function m(){(0,o.isFunction)(window.requestIdleCallback)?window.requestIdleCallback(f,{timeout:1e3}):setTimeout(f,150)}function y(e){for(var t=e.indexOf(l),n=null,r=[];t>=0;){if((n=(e=e.replace(l,"")).indexOf(u))<t)return[];e=e.replace(u,""),r.push({startOffset:t,endOffset:n}),t=e.indexOf(l),n=null}return r}function h(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=[];if(0===e.length)return r;var o=0,a=void 0;for(n||(t=t.toLowerCase(),e=e.toLowerCase());(a=e.indexOf(t,o))>-1;)r.push(a),o=a+t.length;return r}function _(e,t){var n=t.getOriginal().replace(/(<([^>]+)>)/gi,""),r=t.getMarked().replace(/(<(?!\/?yoastmark)[^>]+>)/gi,""),o=h(e,n);if(0===o.length)return[];var a=[];return y(r).forEach(function(e){o.forEach(function(r){var o=r+e.startOffset,i=r+e.endOffset;0===e.startOffset&&e.endOffset===t.getOriginal().length&&(i=r+n.length),a.push({startOffset:o,endOffset:i})})}),a}function g(e){var t=(0,i.select)("yoast-seo/editor").getActiveMarker(),n=p[t]||d;return n.hasOwnProperty(e)?n[e]:[]}function v(e,t,n){var i=e.key,s=t.attributes,l=s[i];if(e.filter&&!e.filter(s))return[];var u=(0,a.create)({html:l,multilineTag:e.multilineTag,multilineWrapperTag:e.multilineWrapperTag}).text;return(0,o.flatMap)(n,function(e){var n=_(u,e);return n?n.map(function(e){return r({},e,{block:t.clientId,richTextIdentifier:i})}):[]})}function w(e){c=e.map(function(e){return{blockClientId:e.block,source:s,richTextIdentifier:e.richTextIdentifier,range:{start:e.startOffset,end:e.endOffset}}})}},,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var r=n(3),o=n(5),a=n(6),i=c(n(1)),s=c(n(160)),l=c(n(34)),u=c(n(31));function c(e){return e&&e.__esModule?e:{default:e}}var d=(0,a.makeOutboundLink)();function p(e){var t=e.isCornerstone,n=e.onChange,i=e.learnMoreUrl,c=e.location,p="metabox"===c?l.default:u.default;return wp.element.createElement(p,{id:(0,a.join)(["yoast-cornerstone-collapsible",c]),title:(0,r.__)("Cornerstone content","wordpress-seo")},wp.element.createElement(o.HelpText,null,(0,r.__)("Cornerstone content should be the most important and extensive articles on your site.","wordpress-seo")+" ",wp.element.createElement(d,{href:i},(0,r.__)("Learn more about Cornerstone Content.","wordpress-seo"))),wp.element.createElement(s.default,{id:(0,a.join)(["yoast-cornerstone",c]),isEnabled:t,onToggle:n}))}p.propTypes={isCornerstone:i.default.bool,onChange:i.default.func,learnMoreUrl:i.default.string.isRequired,location:i.default.string},p.defaultProps={isCornerstone:!0,onChange:function(){},location:""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(4),a=u(n(1)),i=u(n(8)),s=n(5),l=n(3);function u(e){return e&&e.__esModule?e:{default:e}}var c=i.default.div.withConfig({displayName:"CornerstoneToggle__Cornerstone",componentId:"sc-5dq4y-0"})(["display:flex;margin-top:8px;"]),d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Component),r(t,[{key:"render",value:function(){return wp.element.createElement(c,null,wp.element.createElement(s.Toggle,{id:this.props.id,labelText:(0,l.__)("Mark as cornerstone content","wordpress-seo"),isEnabled:this.props.isEnabled,onSetToggleState:this.props.onToggle,onToggleDisabled:this.props.onToggleDisabled}))}}]),t}();d.propTypes={id:a.default.string,isEnabled:a.default.bool,onToggle:a.default.func,onToggleDisabled:a.default.func},d.defaultProps={id:"cornerstone-toggle",isEnabled:!0,onToggle:function(){},onToggleDisabled:function(){}},t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),o=n(10),a=function(e){return e&&e.__esModule?e:{default:e}}(n(162));t.default=(0,o.compose)([(0,r.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.getSEMrushModalOpen,r=t.getSEMrushLoginStatus;return{whichModalOpen:n(),isLoggedIn:r()}}),(0,r.withDispatch)(function(e){var t=e("yoast-seo/editor"),n=t.setSEMrushNoKeyphraseMessage,r=t.setSEMrushOpenModal,o=t.setSEMrushDismissModal,a=t.setSEMrushLoginStatus;return{onOpenWithNoKeyphrase:function(){n()},onOpen:function(e){r(e)},onClose:function(){o()},onAuthentication:function(e){a(e)}}})])(a.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(4),a=n(12),i=m(n(55)),s=n(3),l=m(n(1)),u=n(5),c=n(95),d=m(n(38)),p=m(n(163)),f=n(76);function m(e){return e&&e.__esModule?e:{default:e}}function y(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){return function r(o,a){try{var i=t[o](a),s=i.value}catch(e){return void n(e)}if(!i.done)return Promise.resolve(s).then(function(e){r("next",e)},function(e){r("throw",e)});e(s)}("next")})}}var h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onModalOpen=n.onModalOpen.bind(n),n.onModalClose=n.onModalClose.bind(n),n.onLinkClick=n.onLinkClick.bind(n),n.listenToMessages=n.listenToMessages.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Component),r(t,[{key:"onModalOpen",value:function(){this.props.keyphrase.trim()?this.props.onOpen(this.props.location):this.props.onOpenWithNoKeyphrase()}},{key:"onModalClose",value:function(e){(0,f.isCloseEvent)(e)&&this.props.onClose()}},{key:"onLinkClick",value:function(e){if(e.preventDefault(),this.props.keyphrase.trim()){var t=e.target.href,n=["top="+(window.top.outerHeight/2+window.top.screenY-285),"left="+(window.top.outerWidth/2+window.top.screenX-170),"width=340","height=570","resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(t,"SEMrush_login",n.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.listenToMessages,!1)}else this.props.onOpenWithNoKeyphrase()}},{key:"listenToMessages",value:function(){var e=y(regeneratorRuntime.mark(function e(t){var n,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.data,r=t.source,"https://oauth.semrush.com"===t.origin&&this.popup===r){e.next=3;break}return e.abrupt("return");case 3:if("semrush:oauth:success"!==n.type){e.next=8;break}return this.popup.close(),window.removeEventListener("message",this.listenToMessages,!1),e.next=8,this.performAuthenticationRequest(n);case 8:"semrush:oauth:denied"===n.type&&(this.popup.close(),window.removeEventListener("message",this.listenToMessages,!1),this.props.onAuthentication(!1));case 9:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"performAuthenticationRequest",value:function(){var e=y(regeneratorRuntime.mark(function e(t){var n,r,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=new URL(t.url),r=n.searchParams.get("code"),e.next=5,(0,i.default)({path:"yoast/v1/semrush/authenticate",method:"POST",data:{code:r}});case 5:200===(o=e.sent).status?(this.props.onAuthentication(!0),this.onModalOpen(),this.popup.close()):console.error(o.error),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),console.error(e.t0.message);case 12:case"end":return e.stop()}},e,this,[[0,9]])}));return function(t){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this.props,t=e.keyphrase,n=e.location,r=e.whichModalOpen,i=e.isLoggedIn;return wp.element.createElement(o.Fragment,null,i&&wp.element.createElement("div",{className:"yoast"},wp.element.createElement(u.NewButton,{variant:"secondary",id:"yoast-get-related-keyphrases-"+n,onClick:this.onModalOpen},(0,s.__)("Get related keyphrases","wordpress-seo"))),t&&r===n&&wp.element.createElement(d.default,{title:(0,s.__)("Related keyphrases","wordpress-seo"),onRequestClose:this.onModalClose,icon:wp.element.createElement(p.default,null),additionalClassName:"yoast-related-keyphrases-modal"},wp.element.createElement(c.ModalContainer,{className:"yoast-gutenberg-modal__content yoast-related-keyphrases-modal__content"},wp.element.createElement(a.Slot,{name:"YoastRelatedKeyphrases"}))),!i&&wp.element.createElement("div",{className:"yoast"},wp.element.createElement(u.ButtonStyledLink,{variant:"secondary",id:"yoast-get-related-keyphrases-"+n,href:"https://oauth.semrush.com/oauth2/authorize?ref=1513012826&client_id=yoast&redirect_uri=https%3A%2F%2Foauth.semrush.com%2Foauth2%2Fyoast%2Fsuccess&response_type=code&scope=user.id",onClick:this.onLinkClick},(0,s.__)("Get related keyphrases","wordpress-seo"),wp.element.createElement("span",{className:"screen-reader-text"},(0,s.__)("(Opens in a new browser window)","wordpress-seo")))))}}]),t}();h.propTypes={keyphrase:l.default.string,location:l.default.string,whichModalOpen:l.default.oneOf(["none","metabox","sidebar"]),isLoggedIn:l.default.bool,onOpen:l.default.func.isRequired,onOpenWithNoKeyphrase:l.default.func.isRequired,onClose:l.default.func.isRequired,onAuthentication:l.default.func.isRequired},h.defaultProps={keyphrase:"",location:"",whichModalOpen:"none",isLoggedIn:!1},t.default=h},function(e,t,n){var r=n(2);function o(e){return r.createElement("svg",e,[r.createElement("path",{d:"M73 405.26a66.79 66.79 0 0 1-6.54-1.7 64.75 64.75 0 0 1-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 0 1-5.08-4.19 69.21 69.21 0 0 1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 0 1-3.44-5.64 68.29 68.29 0 0 1-8.29-32.55V142.13a68.26 68.26 0 0 1 8.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0 1 14.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0 1 73 75.09a68.75 68.75 0 0 1 13.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 0 0 0 142.13v196.09A86.84 86.84 0 0 0 86.75 425h11.32v-18.35H86.75A68.75 68.75 0 0 1 73 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 0 1 8.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 0 1 391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 0 1 8.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 0 0-56.45-81.28z",key:0}),r.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 0 1 0 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z",stroke:"#000",strokeMiterlimit:"10",strokeWidth:"3.81",key:1})])}o.defaultProps={viewBox:"0 0 425 456.27",role:"img","aria-hidden":"true",focusable:"false"},e.exports=o,o.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=a(n(19)),o=a(n(1));function a(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.target,n=e.children;return wp.element.createElement(r.default,{target:t},n)}i.propTypes={target:o.default.string.isRequired,children:o.default.node.isRequired}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(20)),o=n(3),a=n(6),i=l(n(1)),s=l(n(97));function l(e){return e&&e.__esModule?e:{default:e}}var u=(0,a.makeOutboundLink)(),c=function(e){var t=(0,o.sprintf)((0,o.__)("Great news: you can, with %1$s!","wordpress-seo"),"{{link}}Yoast SEO Premium{{/link}}"),n=(0,r.default)({mixedString:t,components:{link:wp.element.createElement(u,{href:e.link})}}),a=["<strong>"+(0,o.__)("Rank better with synonyms & related keyphrases","wordpress-seo")+"</strong>",(0,o.sprintf)((0,o.__)("%1$sNo more dead links%2$s: easy redirect manager","wordpress-seo"),"<strong>","</strong>"),"<strong>"+(0,o.__)("Superfast internal linking suggestions","wordpress-seo")+"</strong>",(0,o.sprintf)((0,o.__)("%1$sSocial media preview%2$s: Facebook & Twitter","wordpress-seo"),"<strong>","</strong>"),"<strong>"+(0,o.__)("24/7 email support","wordpress-seo")+"</strong>","<strong>"+(0,o.__)("No ads!","wordpress-seo")+"</strong>"],i=(0,o.sprintf)((0,o.__)("Other benefits of %s for you:","wordpress-seo"),"Yoast SEO Premium");return wp.element.createElement(s.default,{infoParagraphs:[n,i],benefits:a,upsellButtonText:(0,o.sprintf)((0,o.__)("Get %s","wordpress-seo"),"Yoast SEO Premium"),upsellButton:{href:e.buyLink,className:"yoast-button-upsell",rel:null},upsellButtonLabel:(0,o.__)("1 year free support and updates included!","wordpress-seo")})};c.propTypes={link:i.default.string.isRequired,buyLink:i.default.string.isRequired},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=n(38),a=d(o),i=n(4),s=d(n(1)),l=d(n(8)),u=n(3),c=n(5);function d(e){return e&&e.__esModule?e:{default:e}}var p=l.default.button.withConfig({displayName:"SeoAnalysisModal__StyledButton",componentId:"sc-62v5uw-0"})(["&&{display:flex;align-items:center;}.yoast-svg-icon{margin:1px 7px 0 0;fill:currentColor;}"]),f={open:(0,u.__)("Open","wordpress-seo"),heading:"",closeIconButton:(0,u.__)("Close","wordpress-seo"),closeButton:""},m=function(e){var t=(0,i.useState)(!1),n=r(t,2),o=n[0],s=n[1],l=Object.assign({},f,e.labels),u=(0,i.useCallback)(function(){return s(!1)},[]),d=(0,i.useCallback)(function(){return s(!0)},[]);return wp.element.createElement(i.Fragment,null,wp.element.createElement(p,{type:"button",onClick:d,className:e.classes.openButton+" yoast-modal__button-open"},e.openButtonIcon&&wp.element.createElement(c.SvgIcon,{icon:e.openButtonIcon,size:"13px"}),l.open),o&&wp.element.createElement(a.default,{onRequestClose:u,className:e.className,title:l.heading},e.children))};m.propTypes={openButtonIcon:s.default.string,labels:s.default.shape({open:s.default.string,modalAriaLabel:s.default.string.isRequired,heading:s.default.string,closeIconButton:s.default.string,closeButton:s.default.string}).isRequired,classes:s.default.shape({openButton:s.default.string,closeIconButton:s.default.string,closeButton:s.default.string}),className:s.default.string,children:s.default.any.isRequired},m.defaultProps={className:o.defaultModalClassName,openButtonIcon:"",classes:{}},t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(20)),o=n(6),a=n(3),i=l(n(97)),s=l(n(1));function l(e){return e&&e.__esModule?e:{default:e}}var u=(0,o.makeOutboundLink)(),c=function(e){var t=(0,a.sprintf)((0,a.__)("Great news: you can, with %s!","wordpress-seo"),"{{link}}Yoast SEO Premium{{/link}}"),n=[(0,a.sprintf)((0,a.__)("%1$sNo more dead links%2$s: easy redirect manager","wordpress-seo"),"<strong>","</strong>"),"<strong>"+(0,a.__)("Superfast internal linking suggestions","wordpress-seo")+"</strong>",(0,a.sprintf)((0,a.__)("%1$sSocial media preview%2$s: Facebook & Twitter","wordpress-seo"),"<strong>","</strong>"),"<strong>"+(0,a.__)("24/7 email support","wordpress-seo")+"</strong>","<strong>"+(0,a.__)("No ads!","wordpress-seo")+"</strong>"],o=(0,r.default)({mixedString:t,components:{link:wp.element.createElement(u,{href:e.link})}}),s=(0,a.sprintf)((0,a.__)("Other benefits of %s for you:","wordpress-seo"),"Yoast SEO Premium");return wp.element.createElement(i.default,{infoParagraphs:[o,s],benefits:n,upsellButtonText:(0,a.sprintf)((0,a.__)("Get %s","wordpress-seo"),"Yoast SEO Premium"),upsellButton:{href:e.buyLink,className:"yoast-button-upsell",rel:null},upsellButtonLabel:(0,a.__)("1 year free support and updates included!","wordpress-seo")})};c.propTypes={link:s.default.string.isRequired,buyLink:s.default.string.isRequired},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(1)),o=u(n(8)),a=n(3),i=n(6),s=n(18),l=n(5);function u(e){return e&&e.__esModule?e:{default:e}}var c=o.default.p.withConfig({displayName:"AnalysisUpsell__TextContainer",componentId:"sc-1qakqs0-0"})(["color:",";margin:0;padding-right:8px;"],s.colors.$color_upsell_text),d=o.default.div.withConfig({displayName:"AnalysisUpsell__Container",componentId:"sc-1qakqs0-1"})(["font-size:1em;display:flex;flex-direction:",";",":4px solid ",";margin:16px 0;padding:0 0 0 8px;max-width:600px;> ","{margin-bottom:",";}"],function(e){return"horizontal"===e.alignment?"row":"column"},(0,i.getDirectionalStyle)("border-left","border-right"),s.colors.$color_pink_dark,c,function(e){return"vertical"===e.alignment&&"16px"}),p=(0,o.default)(l.SvgIcon).withConfig({displayName:"AnalysisUpsell__Caret",componentId:"sc-1qakqs0-2"})(["margin:",";transform:",";"],(0,i.getDirectionalStyle)("0 0 0 4px","0 4px 0 0"),(0,i.getDirectionalStyle)("rotate(0deg)","rotate(180deg)")),f=(0,i.makeOutboundLink)(l.UpsellLinkButton),m=function(e){var t=e.alignment,n=e.url;return wp.element.createElement(d,{alignment:t},wp.element.createElement(c,null,(0,a.sprintf)((0,a.__)("Did you know %s also analyzes the different word forms of your keyphrase, like plurals and past tenses?","wordpress-seo"),"Yoast SEO Premium")),wp.element.createElement("div",null,wp.element.createElement(f,{href:n,className:"UpsellLinkButton"},(0,a.sprintf)((0,a.__)("Go %s!","wordpress-seo"),"Premium"),wp.element.createElement(p,{icon:"arrow-right",size:"8px",color:s.colors.$color_black}))))};m.propTypes={alignment:r.default.oneOf(["horizontal","vertical"]),url:r.default.string.isRequired},m.defaultProps={alignment:"vertical"},t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=n(12),o=function(e){return e&&e.__esModule?e:{default:e}}(n(1));function a(e){var t=e.location;return wp.element.createElement(r.Slot,{name:"yoast-synonyms-"+t})}a.propTypes={location:o.default.string.isRequired}},function(e,t){e.exports=window.yoast.searchMetadataPreviews},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(12),a=s(n(1)),i=s(n(99));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){return(0,r.useEffect)(function(){setTimeout(e.onLoad)},[]),e.isPremium?wp.element.createElement(o.Slot,{name:"YoastTwitterPremium"+(e.location.charAt(0).toUpperCase()+e.location.slice(1)),fillProps:e}):wp.element.createElement(i.default,e)};l.propTypes={isPremium:a.default.bool.isRequired,onLoad:a.default.func.isRequired,location:a.default.string.isRequired},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=c(n(8)),a=c(n(20)),i=c(n(1)),s=n(3),l=n(5),u=n(6);function c(e){return e&&e.__esModule?e:{default:e}}var d=(0,o.default)(l.Alert).withConfig({displayName:"SocialUpsell__PremiumInfoText",componentId:"sc-113ceom-0"})(["p{margin:0;}"]),p=(0,u.makeOutboundLink)(),f=function(e){var t=(0,s.sprintf)((0,s.__)("Do you want to preview what it will look like if people share this post on %s? You can, with %s.","wordpress-seo"),e.socialMediumName," {{strong}}Yoast SEO Premium{{/strong}}"),n=(0,s.sprintf)((0,s.__)("Find out why you should upgrade to %s","wordpress-seo"),"Yoast SEO Premium");return wp.element.createElement(r.Fragment,null,wp.element.createElement(d,{type:"info"},(0,a.default)({mixedString:t,components:{strong:wp.element.createElement("b",null)}}),wp.element.createElement("br",null),wp.element.createElement(p,{href:"https://yoast.com/reasons-to-upgrade/"},wp.element.createElement("p",null,n))))};f.propTypes={socialMediumName:i.default.oneOf(["Twitter","Facebook"]).isRequired},t.default=f},function(e,t){e.exports=window.yoast.socialMetadataForms},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(12),a=s(n(1)),i=s(n(99));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){return(0,r.useEffect)(function(){setTimeout(e.onLoad)},[]),e.isPremium?wp.element.createElement(o.Slot,{name:"YoastFacebookPremium"+(e.location.charAt(0).toUpperCase()+e.location.slice(1)),fillProps:e}):wp.element.createElement(i.default,e)};l.propTypes={isPremium:a.default.bool.isRequired,onLoad:a.default.func.isRequired,location:a.default.string.isRequired},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(3),a=n(5),i=n(6),s=d(n(20)),l=d(n(1)),u=d(n(8)),c=n(116);function d(e){return e&&e.__esModule?e:{default:e}}var p=u.default.div.withConfig({displayName:"SchemaTab__SchemaContainer",componentId:"sc-166btxs-0"})(["padding:16px;"]),f=function(e,t,n){var r=e.find(function(e){return e.value===t});return[{name:(0,o.sprintf)((0,o.__)("Default for %1$s (%2$s)","wordpress-seo"),n,r?r.name:""),value:""}].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e))},m=function(e){return(0,s.default)({mixedString:function(e){return(0,o.sprintf)((0,o.__)("You can change the default type for %1$s in your %2$sSearch Appearance Settings%3$s.","wordpress-seo"),e,"{{link}}","{{/link}}")}(e),components:{link:wp.element.createElement("a",{href:"/wp-admin/admin.php?page=wpseo_titles#top#post-types",target:"_blank"})}})},y=function(e){var t=f(e.pageTypeOptions,e.defaultPageType,e.postTypeName),n=f(e.articleTypeOptions,e.defaultArticleType,e.postTypeName);return wp.element.createElement(r.Fragment,null,wp.element.createElement(a.FieldGroup,{label:e.helpTextTitle,linkTo:e.helpTextLink,linkText:(0,o.__)("Learn more about structured data with Schema.org","wordpress-seo"),description:e.helpTextDescription}),wp.element.createElement(a.FieldGroup,{label:(0,o.__)("What type of page or content is this?","wordpress-seo"),linkTo:e.additionalHelpTextLink,linkText:(0,o.__)("Learn more about page or content types","wordpress-seo")}),wp.element.createElement(a.Select,{id:(0,i.join)(["yoast-schema-page-type",e.location]),options:t,label:(0,o.__)("Page type","wordpress-seo"),onChange:e.schemaPageTypeChange,selected:e.schemaPageTypeSelected}),e.showArticleTypeInput&&wp.element.createElement(a.Select,{id:(0,i.join)(["yoast-schema-article-type",e.location]),options:n,label:(0,o.__)("Article type","wordpress-seo"),onChange:e.schemaArticleTypeChange,selected:e.schemaArticleTypeSelected}),e.displayFooter&&wp.element.createElement("p",null,m(e.postTypeName)))};y.propTypes={schemaPageTypeChange:l.default.func,schemaPageTypeSelected:l.default.string,pageTypeOptions:c.schemaTypeOptionsPropType.isRequired,schemaArticleTypeChange:l.default.func,schemaArticleTypeSelected:l.default.string,articleTypeOptions:c.schemaTypeOptionsPropType.isRequired,showArticleTypeInput:l.default.bool.isRequired,additionalHelpTextLink:l.default.string.isRequired,helpTextLink:l.default.string.isRequired,helpTextTitle:l.default.string.isRequired,helpTextDescription:l.default.string.isRequired,postTypeName:l.default.string.isRequired,displayFooter:l.default.bool,defaultPageType:l.default.string.isRequired,defaultArticleType:l.default.string.isRequired,location:l.default.string.isRequired},y.defaultProps={schemaPageTypeChange:function(){},schemaPageTypeSelected:null,schemaArticleTypeChange:function(){},schemaArticleTypeSelected:null,displayFooter:!1};var h=function(e){return e.isMetabox?(0,r.createPortal)(wp.element.createElement(p,null,wp.element.createElement(y,e)),document.getElementById("wpseo-meta-section-schema")):wp.element.createElement(y,e)};h.propTypes={showArticleTypeInput:l.default.bool,articleTypeLabel:l.default.string,additionalHelpTextLink:l.default.string,pageTypeLabel:l.default.string.isRequired,helpTextLink:l.default.string.isRequired,helpTextTitle:l.default.string.isRequired,helpTextDescription:l.default.string.isRequired,isMetabox:l.default.bool.isRequired,postTypeName:l.default.string.isRequired,displayFooter:l.default.bool,loadSchemaArticleData:l.default.func.isRequired,loadSchemaPageData:l.default.func.isRequired,location:l.default.string.isRequired},h.defaultProps={showArticleTypeInput:!1,articleTypeLabel:"",additionalHelpTextLink:"",displayFooter:!1},t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(3),a=n(5),i=n(6),s=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),l=n(14);var u=function(e){var t=(0,o.__)("No","wordpress-seo"),n=(0,o.__)("Yes","wordpress-seo"),r=e.noIndex?t:n;return window.wpseoScriptData.isPost?[{name:(0,o.sprintf)((0,o.__)("%s (current default for %s)","wordpress-seo"),r,e.postTypeNamePlural),value:"0"},{name:t,value:"1"},{name:n,value:"2"}]:[{name:(0,o.sprintf)((0,o.__)("%s (current default for %s)","wordpress-seo"),r,e.postTypeNamePlural),value:"default"},{name:n,value:"index"},{name:t,value:"noindex"}]},c=function(e){var t=e.noIndex,n=e.onNoIndexChange,s=e.editorContext,c=e.isPrivateBlog,d=u(s);return wp.element.createElement(l.LocationConsumer,null,function(e){return wp.element.createElement(r.Fragment,null,c&&wp.element.createElement(a.Alert,{type:"warning"},(0,o.__)("Even though you can set the meta robots setting here, the entire site is set to noindex in the sitewide privacy settings, so these settings won't have an effect.","wordpress-seo")),wp.element.createElement(a.Select,{label:(0,o.sprintf)((0,o.__)("Allow search engines to show this %s in search results?","wordpress-seo"),s.postTypeNameSingular),onChange:n,id:(0,i.join)(["yoast-meta-robots-noindex",e]),options:d,selected:t,linkTo:"https://yoa.st/allow-search-engines",linkText:(0,o.__)("Learn more about the no-index setting on our help page.","wordpress-seo")}))})};c.propTypes={noIndex:s.default.string.isRequired,onNoIndexChange:s.default.func.isRequired,editorContext:s.default.object.isRequired,isPrivateBlog:s.default.bool},c.defaultProps={isPrivateBlog:!1};var d=function(e){var t=e.noFollow,n=e.onNoFollowChange,r=e.postTypeName;return wp.element.createElement(l.LocationConsumer,null,function(e){var s=(0,i.join)(["yoast-meta-robots-nofollow",e]);return wp.element.createElement(a.RadioButtonGroup,{id:s,options:[{value:"0",label:"Yes"},{value:"1",label:"No"}],label:(0,o.sprintf)((0,o.__)("Should search engines follow links on this %s","wordpress-seo"),r),groupName:s,onChange:n,selected:t,linkTo:"https://yoa.st/follow-links",linkText:(0,o.__)("Learn more about the no-follow setting on our help page.","wordpress-seo")})})};d.propTypes={noFollow:s.default.string.isRequired,onNoFollowChange:s.default.func.isRequired,postTypeName:s.default.string.isRequired};var p=function(e){var t=e.advanced,n=e.onAdvancedChange;return wp.element.createElement(l.LocationConsumer,null,function(e){var r=(0,i.join)(["yoast-meta-robots-advanced",e]),s=r+"-input";return wp.element.createElement(a.MultiSelect,{label:(0,o.__)("Meta robots advanced","wordpress-seo"),onChange:n,id:r,inputId:s,options:[{name:(0,o.__)("No Image Index","wordpress-seo"),value:"noimageindex"},{name:(0,o.__)("No Archive","wordpress-seo"),value:"noarchive"},{name:(0,o.__)("No Snippet","wordpress-seo"),value:"nosnippet"}],selected:t,linkTo:"https://yoa.st/meta-robots-advanced",linkText:(0,o.__)("Learn more about advanced meta robots settings on our help page.","wordpress-seo")})})};p.propTypes={advanced:s.default.array.isRequired,onAdvancedChange:s.default.func.isRequired};var f=function(e){var t=e.breadcrumbsTitle,n=e.onBreadcrumbsTitleChange;return wp.element.createElement(l.LocationConsumer,null,function(e){return wp.element.createElement(a.TextInput,{label:(0,o.__)("Breadcrumbs Title","wordpress-seo"),id:(0,i.join)(["yoast-breadcrumbs-title",e]),onChange:n,value:t,linkTo:"https://yoa.st/breadcrumbs-title",linkText:(0,o.__)("Learn more about the breadcrumbs title setting on our help page.","wordpress-seo")})})};f.propTypes={breadcrumbsTitle:s.default.string.isRequired,onBreadcrumbsTitleChange:s.default.func.isRequired};var m=function(e){var t=e.canonical,n=e.onCanonicalChange;return wp.element.createElement(l.LocationConsumer,null,function(e){return wp.element.createElement(a.TextInput,{label:(0,o.__)("Canonical URL","wordpress-seo"),id:(0,i.join)(["yoast-canonical",e]),onChange:n,value:t,linkTo:"https://yoa.st/canonical-url",linkText:(0,o.__)("Learn more about canonical URLs on our help page.","wordpress-seo")})})};m.propTypes={canonical:s.default.string.isRequired,onCanonicalChange:s.default.func.isRequired};var y=function(e){var t=e.noIndex,n=e.noFollow,o=e.advanced,a=e.breadcrumbsTitle,i=e.canonical,s=e.onNoIndexChange,l=e.onNoFollowChange,u=e.onAdvancedChange,y=e.onBreadcrumbsTitleChange,h=e.onCanonicalChange,_=e.onLoad,g=e.isLoading,v=e.editorContext,w=e.isBreadcrumbsDisabled,b=e.isPrivateBlog;(0,r.useEffect)(function(){setTimeout(function(){g&&_()})});var E={noIndex:t,onNoIndexChange:s,editorContext:v,isPrivateBlog:b},T={noFollow:n,onNoFollowChange:l,postTypeName:v.postTypeNameSingular},k={advanced:o,onAdvancedChange:u},O={breadcrumbsTitle:a,onBreadcrumbsTitleChange:y},S={canonical:i,onCanonicalChange:h};return g?null:wp.element.createElement(r.Fragment,null,wp.element.createElement(c,E),v.isPost&&wp.element.createElement(d,T),v.isPost&&wp.element.createElement(p,k),!w&&wp.element.createElement(f,O),wp.element.createElement(m,S))};y.propTypes={noIndex:s.default.string.isRequired,canonical:s.default.string.isRequired,onNoIndexChange:s.default.func.isRequired,onCanonicalChange:s.default.func.isRequired,onLoad:s.default.func.isRequired,isLoading:s.default.bool.isRequired,editorContext:s.default.object.isRequired,isBreadcrumbsDisabled:s.default.bool.isRequired,isPrivateBlog:s.default.bool,advanced:s.default.array,onAdvancedChange:s.default.func,noFollow:s.default.string,onNoFollowChange:s.default.func,breadcrumbsTitle:s.default.string,onBreadcrumbsTitleChange:s.default.func},y.defaultProps={advanced:[],onAdvancedChange:function(){},noFollow:"",onNoFollowChange:function(){},breadcrumbsTitle:"",onBreadcrumbsTitleChange:function(){},isPrivateBlog:!1},t.default=y},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),o=n(5);t.default=(0,r.connect)(function(e){return{message:e.warning.message}})(o.Warning)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapEditorDataToPreview=void 0;var r=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};t.mapStateToProps=f,t.mapDispatchToProps=m;var o=n(17),a=n(170),i=n(3),s=n(7),l=n(14),u=n(16),c=function(e){return e&&e.__esModule?e:{default:e}}(n(115)),d=n(30);var p=t.mapEditorDataToPreview=function(e,t){var n=0;return t.shortenedBaseUrl&&"string"==typeof t.shortenedBaseUrl&&(n=t.shortenedBaseUrl.length),e.url=e.url.replace(/\s+/g,"-"),"-"===e.url[e.url.length-1]&&(e.url=e.url.slice(0,-1)),"-"===e.url[n]&&(e.url=e.url.slice(0,n)+e.url.slice(n+1)),(0,d.applyReplaceUsingPlugin)(e)};function f(e){return e.snippetEditor.replacementVariables.forEach(function(e){""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(e.value="%%"+e.name+"%%")}),r({},e.snippetEditor,{keyword:e.focusKeyword,baseUrl:e.settings.snippetEditor.baseUrl,date:e.settings.snippetEditor.date,recommendedReplacementVariables:e.settings.snippetEditor.recommendedReplacementVariables,faviconSrc:e.settings.snippetEditor.siteIconUrl,mobileImageSrc:e.snippetEditor.data.snippetPreviewImageURL})}function m(e){return{onChange:function(t,n){var r=(0,u.updateData)(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n));if("mode"===t&&(r=(0,u.switchMode)(n)),e(r),"slug"===t){var o=(0,s.dispatch)("core/editor");o&&o.editPost({slug:n})}},onChangeAnalysisData:function(t){e((0,u.updateAnalysisData)(t))}}}t.default=(0,o.connect)(f,m)(function(e){return wp.element.createElement(l.LocationConsumer,null,function(t){return wp.element.createElement(c.default,{icon:"eye",hasPaperStyle:e.hasPaperStyle},wp.element.createElement(a.SnippetEditor,r({},e,{descriptionPlaceholder:(0,i.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:p,showCloseButton:!1,idSuffix:t})))})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(10),o=n(7),a=n(3),i=n(6),s=d(n(171)),l=d(n(9)),u=d(n(32)),c=n(83);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){(0,o.dispatch)("yoast-seo/editor").setTwitterPreviewImage({url:e.url,id:e.id,warnings:(0,i.validateTwitterImage)(e)})},f=function(){(0,c.openMedia)(p)};t.default=(0,r.compose)([(0,o.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.getTwitterDescription,r=t.getTwitterTitle,o=t.getTwitterImageUrl,i=t.getFacebookImageUrl,s=t.getFacebookTitle,u=t.getFacebookDescription,c=t.getDescriptionFallback,d=t.getTitleFallback,p=t.getTwitterWarnings,f=t.getTwitterImageType,m=t.getImageFallback,y=t.getRecommendedReplaceVars,h=t.getReplaceVars,_=t.getSiteUrl,g=t.getAuthorName,v=(0,a.sprintf)((0,a.__)("Modify your %s title by editing it right here...","wordpress-seo"),"Twitter"),w=(0,a.sprintf)((0,a.__)("Modify your %s description by editing it right here...","wordpress-seo"),"Twitter");return{imageUrl:o(),imageFallbackUrl:i()||m(),recommendedReplacementVariables:y(),replacementVariables:h(),description:n(),descriptionPreviewFallback:u()||c()||w,title:r(),titlePreviewFallback:s()||d()||v,imageWarnings:p(),authorName:g(),siteUrl:_(),isPremium:!!(0,l.default)().isPremium,isLarge:"summary"!==f(),titleInputPlaceholder:v,descriptionInputPlaceholder:w,socialMediumName:"Twitter"}}),(0,o.withDispatch)(function(e){var t=e("yoast-seo/editor"),n=t.setTwitterPreviewTitle,r=t.setTwitterPreviewDescription,o=t.clearTwitterPreviewImage,a=t.loadTwitterPreviewData;return{onSelectImageClick:f,onRemoveImageClick:o,onDescriptionChange:r,onTitleChange:n,onLoad:a}}),(0,u.default)()])(s.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(10),o=n(7),a=n(3),i=n(6),s=d(n(174)),l=d(n(9)),u=d(n(32)),c=n(83);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){(0,o.dispatch)("yoast-seo/editor").setFacebookPreviewImage({url:e.url,id:e.id,warnings:(0,i.validateFacebookImage)(e)})},f=function(){(0,c.openMedia)(p)};t.default=(0,r.compose)([(0,o.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.getFacebookDescription,r=t.getDescriptionFallback,o=t.getFacebookTitle,i=t.getTitleFallback,s=t.getFacebookImageUrl,u=t.getImageFallback,c=t.getFacebookWarnings,d=t.getRecommendedReplaceVars,p=t.getReplaceVars,f=t.getSiteUrl,m=t.getAuthorName,y=(0,a.sprintf)((0,a.__)("Modify your %s title by editing it right here...","wordpress-seo"),"Facebook"),h=(0,a.sprintf)((0,a.__)("Modify your %s description by editing it right here...","wordpress-seo"),"Facebook");return{imageUrl:s(),imageFallbackUrl:u(),recommendedReplacementVariables:d(),replacementVariables:p(),description:n(),descriptionPreviewFallback:r()||h,title:o(),titlePreviewFallback:i()||y,imageWarnings:c(),authorName:m(),siteUrl:f(),isPremium:!!(0,l.default)().isPremium,titleInputPlaceholder:y,descriptionInputPlaceholder:h,socialMediumName:"Facebook"}}),(0,o.withDispatch)(function(e){var t=e("yoast-seo/editor"),n=t.setFacebookPreviewTitle,r=t.setFacebookPreviewDescription,o=t.clearFacebookPreviewImage,a=t.loadFacebookPreviewData;return{onSelectImageClick:f,onRemoveImageClick:o,onDescriptionChange:r,onTitleChange:n,onLoad:a}}),(0,u.default)()])(s.default)},,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=s(n(1)),o=s(n(257)),a=s(n(258)),i=s(n(19));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=e.target,n=e.store,r=e.theme;return wp.element.createElement(i.default,{target:t},wp.element.createElement(o.default,{store:n,theme:r}),wp.element.createElement(a.default,{store:n,theme:r}))}l.propTypes={target:r.default.string.isRequired,store:r.default.object,theme:r.default.object}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.store,n=e.theme;return wp.element.createElement(a.default,{store:t,theme:n,location:"metabox"},wp.element.createElement(r.Slot,{name:"YoastMetabox"},function(e){return(0,o.default)(e)}))};var r=n(12),o=i(n(147)),a=i(n(100));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(259)),o=n(17);t.default=(0,o.connect)(function(e,t){return{settings:e.preferences,store:t.store}})(r.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=v;var r=n(12),o=n(3),a=g(n(1)),i=g(n(141)),s=g(n(238)),l=g(n(237)),u=g(n(142)),c=g(n(143)),d=g(n(144)),p=g(n(34)),f=g(n(98)),m=g(n(146)),y=g(n(260)),h=g(n(145)),_=g(n(117));function g(e){return e&&e.__esModule?e:{default:e}}function v(e){var t=e.settings;return wp.element.createElement(r.Fill,{name:"YoastMetabox"},wp.element.createElement(f.default,{renderPriority:1},wp.element.createElement(l.default,null)),t.isKeywordAnalysisActive&&wp.element.createElement(f.default,{renderPriority:8},wp.element.createElement(u.default,{isSEMrushIntegrationActive:t.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&wp.element.createElement(r.Fill,{name:"YoastRelatedKeyphrases"},wp.element.createElement(_.default,null))),wp.element.createElement(f.default,{renderPriority:9},wp.element.createElement(p.default,{id:"yoast-snippet-editor-metabox",title:(0,o.__)("Google preview","wordpress-seo"),initialIsOpen:!0},wp.element.createElement(s.default,{hasPaperStyle:!1}))),t.isContentAnalysisActive&&wp.element.createElement(f.default,{renderPriority:10},wp.element.createElement(c.default,null)),t.isKeywordAnalysisActive&&wp.element.createElement(f.default,{renderPriority:20},wp.element.createElement(d.default,{shouldUpsell:t.shouldUpsell,shouldUpsellWordFormRecognition:t.isWordFormRecognitionActive})),t.isCornerstoneActive&&wp.element.createElement(f.default,{renderPriority:30},wp.element.createElement(i.default,null)),t.displayAdvancedTab&&wp.element.createElement(f.default,{renderPriority:40},wp.element.createElement(p.default,{id:"collapsible-advanced-settings",title:(0,o.__)("Advanced","wordpress-seo")},wp.element.createElement(m.default,null))),t.displaySchemaSettings&&wp.element.createElement(f.default,{renderPriority:50},wp.element.createElement(h.default,null)),wp.element.createElement(f.default,{renderPriority:-1},wp.element.createElement(y.default,{target:"wpseo-section-social"})))}v.propTypes={settings:a.default.object.isRequired}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=i(n(1)),o=i(n(261)),a=i(n(19));function i(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=e.target;return wp.element.createElement(a.default,{target:t},wp.element.createElement(o.default,null))}s.propTypes={target:r.default.string.isRequired}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),o=function(e){return e&&e.__esModule?e:{default:e}}(n(262));t.default=(0,r.withSelect)(function(e){var t=(0,e("yoast-seo/editor").getPreferences)();return{displayFacebook:t.displayFacebook,displayTwitter:t.displayTwitter}})(o.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=u(n(34)),a=n(3),i=u(n(1)),s=u(n(240)),l=u(n(239));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){var t=e.displayFacebook,n=e.displayTwitter;return wp.element.createElement(r.Fragment,null,t&&wp.element.createElement(o.default,{hasSeparator:!1,title:(0,a.sprintf)((0,a.__)("%s preview","wordpress-seo"),"Facebook"),initialIsOpen:!0},wp.element.createElement(s.default,null)),n&&wp.element.createElement(o.default,{title:(0,a.sprintf)((0,a.__)("%s preview","wordpress-seo"),"Twitter"),hasSeparator:t,initialIsOpen:!0},wp.element.createElement(l.default,null)))};c.propTypes={displayFacebook:i.default.bool.isRequired,displayTwitter:i.default.bool.isRequired},t.default=c},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},o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=n(4);function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var s=void 0,l=void 0,u=void 0,c=void 0,d=/<(\/)?(\w+)\s*(\/)?>/g;function p(e,t,n,r,o){return{element:e,tokenStart:t,tokenLength:n,prevOffset:r,leadingTextStart:o,children:[]}}function f(){var e=s.length-l;0!==e&&u.push(s.substr(l,e))}function m(e){var t=e.element,n=e.tokenStart,r=e.tokenLength,o=e.prevOffset,l=e.children,u=c[c.length-1],d=s.substr(u.prevOffset,n-u.prevOffset);d&&u.children.push(d),u.children.push(a.cloneElement.apply(void 0,[t,null].concat(i(l)))),u.prevOffset=o||n+r}function y(e){var t=function(){var e=d.exec(s);if(null===e)return["no-more-tokens"];var t=e.index,n=o(e,4),r=n[0],a=n[1],i=n[2],l=n[3],u=r.length;return l?["self-closed",i,t,u]:a?["closer",i,t,u]:["opener",i,t,u]}(),n=o(t,4),r=n[0],y=n[1],h=n[2],_=n[3],g=c.length,v=h>l?l:null;if(!e[y])return f(),!1;switch(r){case"no-more-tokens":if(0!==g){var w=c.pop(),b=w.leadingTextStart,E=w.tokenStart;u.push(s.substr(b,E))}return f(),!1;case"self-closed":return 0===g?(null!==v&&u.push(s.substr(v,h-v)),u.push(e[y]),l=h+_,!0):(m(p(e[y],h,_)),l=h+_,!0);case"opener":return c.push(p(e[y],h,_,h+_,v)),l=h+_,!0;case"closer":if(1===g)return function(e){var t=c.pop(),n=t.element,r=t.leadingTextStart,o=t.prevOffset,l=t.tokenStart,d=t.children,p=e?s.substr(o,e-o):s.substr(o);p&&d.push(p),null!==r&&u.push(s.substr(r,l-r)),u.push(a.cloneElement.apply(void 0,[n,null].concat(i(d))))}(h),l=h+_,!0;var T=c.pop(),k=s.substr(T.prevOffset,h-T.prevOffset);T.children.push(k),T.prevOffset=h+_;var O=p(T.element,T.tokenStart,T.tokenLength,h+_);return O.children=T.children,m(O),l=h+_,!0;default:return f(),!1}}t.default=function(e,t){if(s=e,l=0,u=[],c=[],d.lastIndex=0,!function(e){var t="object"===(void 0===e?"undefined":r(e)),n=t&&Object.values(e);return t&&n.length&&n.every(function(e){return(0,a.isValidElement)(e)})}(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(y(t));return a.createElement.apply(void 0,[a.Fragment,null].concat(i(u)))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},o=a(n(1));function a(e){return e&&e.__esModule?e:{default:e}}var i=a(n(8)).default.svg.withConfig({displayName:"PluginIcon__PluginIconSVG",componentId:"kdw68a-0"})(["width:","px;height:","px;&&& path{fill:",";}&&& circle.yoast-icon-readability-score{fill:",";display:",";}&&& circle.yoast-icon-seo-score{fill:",";display:",";}"],function(e){return e.size},function(e){return e.size},function(e){return e.color},function(e){return e.readabilityScoreColor},function(e){return e.isContentAnalysisActive?"inline":"none"},function(e){return e.seoScoreColor},function(e){return e.isKeywordAnalysisActive?"inline":"none"}),s=function(e){return wp.element.createElement(i,r({},e,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 646.66 456.27"}),wp.element.createElement("path",{d:"M73,405.26a68.53,68.53,0,0,1-12.82-4c-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.92q-2.64-2-5.08-4.19a68.26,68.26,0,0,1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24q-1.84-2.73-3.44-5.64a68.26,68.26,0,0,1-8.29-32.55V142.13a68.29,68.29,0,0,1,8.29-32.55,58.6,58.6,0,0,1,3.44-5.64,57.53,57.53,0,0,1,4-5.27A69.64,69.64,0,0,1,48.56,85.42,56.06,56.06,0,0,1,54.2,82,67.78,67.78,0,0,1,73,75.09,69.79,69.79,0,0,1,86.75,73.7H256.41L263,55.39H86.75A86.84,86.84,0,0,0,0,142.13V338.22A86.83,86.83,0,0,0,86.75,425H98.07V406.65H86.75A68.31,68.31,0,0,1,73,405.26ZM368.55,60.85l-1.41-.53L360.73,77.5l1.41.53a68.58,68.58,0,0,1,8.66,4,58.65,58.65,0,0,1,5.65,3.43A69.49,69.49,0,0,1,391,98.67c1.4,1.68,2.72,3.46,3.95,5.27s2.39,3.72,3.44,5.64a68.32,68.32,0,0,1,8.29,32.55V406.65H233.55l-.44.76c-3.07,5.37-6.26,10.48-9.49,15.19L222,425H425V142.13A87.19,87.19,0,0,0,368.55,60.85Z",fill:"#000001"}),wp.element.createElement("path",{d:"M303.66,0l-96.8,268.87-47.58-149H101.1l72.72,186.78a73.61,73.61,0,0,1,0,53.73c-7.07,18.07-19.63,39.63-54.36,46l-1.56.29v49.57l2-.08c29-1.14,51.57-10.72,70.89-30.14,19.69-19.79,36.55-50.52,53-96.68L366.68,0Z",fill:"#000001"}),wp.element.createElement("circle",{className:"yoast-icon-readability-score",cx:"561.26",cy:"142.43",r:"85.04",fill:"#000001",stroke:"#181716",strokeMiterlimit:"10",strokeWidth:"0.72"}),wp.element.createElement("circle",{className:"yoast-icon-seo-score",cx:"561.26",cy:"341.96",r:"85.04",fill:"#000001",stroke:"#181716",strokeMiterlimit:"10",strokeWidth:"0.72"}))};s.propTypes={readabilityScoreColor:o.default.string,isContentAnalysisActive:o.default.bool,seoScoreColor:o.default.string,isKeywordAnalysisActive:o.default.bool,size:o.default.number,color:o.default.string},s.defaultProps={readabilityScoreColor:"#000000",isContentAnalysisActive:!1,seoScoreColor:"#000000",isKeywordAnalysisActive:!1,size:20,color:"#000001"},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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};t.default=c;var o=u(n(1)),a=n(3),i=n(4),s=n(5),l=u(n(387));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){var t=e.checklist,n=e.onClick,o=t.every(function(e){return"good"===e.score});return wp.element.createElement(i.Fragment,null,t.map(function(e){return wp.element.createElement(l.default,r({key:e.label},e))}),wp.element.createElement("br",null),!o&&wp.element.createElement(s.Button,{onClick:n},(0,a.__)("Improve your post with Yoast SEO","wordpress-seo")))}c.propTypes={checklist:o.default.array.isRequired,onClick:o.default.func.isRequired}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.maybeAddFocusKeyphraseCheck=function(e,t){t.getFocusKeyphrase()||e.push({label:(0,r.__)("No focus keyword was entered","wordpress-seo"),score:"bad"})},t.maybeAddReadabilityCheck=function(e,t){if(t.getPreferences().isKeywordAnalysisActive){var n=(0,o.default)(t.getReadabilityResults().overallScore);e.push({label:(0,r.__)("Readability analysis:","wordpress-seo"),score:n.className,scoreValue:n.screenReaderReadabilityText})}},t.maybeAddSEOCheck=function(e,t){if(t.getPreferences().isContentAnalysisActive){var n=(0,o.default)(t.getResultsForFocusKeyword().overallScore);e.push({label:(0,r.__)("SEO analysis:","wordpress-seo"),score:n.className,scoreValue:n.screenReaderReadabilityText})}},t.maybeAddSchemaBlocksValidationCheck=function(e,t,n){if(!function(e){return e.some(function(e){return Object.keys(e.attributes).includes("yoast-schema")})}(n.getBlocks()))return;var o=t.getSchemaBlocksValidationResults(),a=Object.values(o);if(a&&a.length>0){var i=a.every(function(e){return e.result<=0});e.push({label:(0,r.__)("Schema analysis:","wordpress-seo"),score:i?"good":"bad",scoreValue:i?(0,r.__)("Good","wordpress-seo"):(0,r.__)("Needs improvement","wordpress-seo")})}};var r=n(3),o=function(e){return e&&e.__esModule?e:{default:e}}(n(27))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=a(n(371)),o=a(n(393));function a(e){return e&&e.__esModule?e:{default:e}}window.yoast=window.yoast||{},window.yoast.initEditorIntegration=r.default,window.yoast.EditorData=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(function(e){var t=(0,E.default)(),n=t.isPremium,u=n?"Yoast SEO Premium":"Yoast SEO",c=wp.element.createElement(T.default,null);(0,i.updateCategory)("yoast-structured-data-blocks",{icon:c}),(0,i.updateCategory)("yoast-internal-linking-blocks",{icon:c});var y={isRtl:t.isRtl},h=e.getState().preferences,g=h.isKeywordAnalysisActive||h.isContentAnalysisActive,k=h.isZapierIntegrationActive&&!h.isZapierConnected;(0,s.select)("core/edit-post").getPreferences().panels["yoast-seo/document-panel"]||(0,s.dispatch)("core/edit-post").toggleEditorPanelOpened("yoast-seo/document-panel");(0,o.registerPlugin)("yoast-seo",{render:function(){return wp.element.createElement(a.Fragment,null,wp.element.createElement(r.PluginSidebarMoreMenuItem,{target:"seo-sidebar",icon:wp.element.createElement(p.default,null)},u),wp.element.createElement(r.PluginSidebar,{name:"seo-sidebar",title:u},wp.element.createElement(_.default,{store:e,theme:y})),wp.element.createElement(a.Fragment,null,wp.element.createElement(f.default,{store:e,theme:y}),wp.element.createElement(m.default,{target:"wpseo-metabox-root",store:e,theme:y})),g&&wp.element.createElement(r.PluginPrePublishPanel,{className:"yoast-seo-sidebar-panel",title:(0,l.__)("Yoast SEO","wordpress-seo"),initialOpen:!0,icon:wp.element.createElement(a.Fragment,null)},wp.element.createElement(v.default,null)),n&&k&&wp.element.createElement(r.PluginPrePublishPanel,{className:"yoast-seo-sidebar-panel",title:"Zapier",initialOpen:!0,icon:wp.element.createElement(a.Fragment,null)},wp.element.createElement(d.Slot,{name:"YoastZapierPrePublish"})),wp.element.createElement(r.PluginPostPublishPanel,{className:"yoast-seo-sidebar-panel",title:(0,l.__)("Yoast SEO","wordpress-seo"),initialOpen:!0,icon:wp.element.createElement(a.Fragment,null)},wp.element.createElement(b.default,null)),g&&wp.element.createElement(r.PluginDocumentSettingPanel,{name:"document-panel",className:"yoast-seo-sidebar-panel",title:(0,l.__)("Yoast SEO","wordpress-seo"),icon:wp.element.createElement(a.Fragment,null)},wp.element.createElement(w.default,null)))},icon:wp.element.createElement(p.default,null)})})(e),"function"==typeof(0,c.get)(window,"wp.blockEditor.__experimentalLinkControl")?[g.link].forEach(function(e){var t=e.name,n=e.replaces,r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["name","replaces"]);n&&(0,s.dispatch)("core/rich-text").removeFormatTypes(n),t&&(0,u.registerFormatType)(t,r)}):console.warn((0,l.__)("Marking links with nofollow/sponsored has been disabled for WordPress installs < 5.4.","wordpress-seo")+" "+(0,l.sprintf)((0,l.__)("Please upgrade your WordPress version or install the Gutenberg plugin to get this %1$s feature.","wordpress-seo"),"Yoast SEO")),function(e){(0,h.isAnnotationAvailable)()&&e.dispatch((0,y.setMarkerStatus)("enabled"))}(e)};var r=n(372),o=n(373),a=n(4),i=n(140),s=n(7),l=n(3),u=n(94),c=n(0),d=n(12),p=k(n(374)),f=k(n(375)),m=k(n(256)),y=n(16),h=n(148),_=k(n(380)),g=n(381),v=k(n(385)),w=k(n(388)),b=k(n(389)),E=k(n(9)),T=k(n(318));function k(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports=window.wp.editPost},function(e,t){e.exports=window.wp.plugins},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),o=n(10),a=n(18),i=l(n(27)),s=l(n(318));function l(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.compose)([(0,r.withSelect)(function(e){var t=e("yoast-seo/editor"),n=(0,i.default)(t.getResultsForFocusKeyword().overallScore),r=(0,i.default)(t.getReadabilityResults().overallScore),o=t.getPreferences(),s=o.isKeywordAnalysisActive,l=o.isContentAnalysisActive,u=void 0;switch(r.className){case"good":u=a.colors.$color_good;break;case"ok":u=a.colors.$color_ok;break;case"bad":u=a.colors.$color_bad;break;default:u=a.colors.$color_score_icon}var c=void 0;switch(n.className){case"good":c=a.colors.$color_good;break;case"ok":c=a.colors.$color_ok;break;case"bad":c=a.colors.$color_bad;break;default:c=a.colors.$color_score_icon}return{readabilityScoreColor:u,seoScoreColor:c,isKeywordAnalysisActive:s,isContentAnalysisActive:l}})])(s.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(376)),o=n(17);t.default=(0,o.connect)(function(e,t){return{settings:e.preferences,store:t.store}})(r.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=w;var r=n(12),o=n(4),a=v(n(1)),i=n(3),s=v(n(141)),l=v(n(237)),u=v(n(142)),c=v(n(143)),d=v(n(144)),p=v(n(98)),f=v(n(377)),m=v(n(378)),y=v(n(379)),h=v(n(145)),_=v(n(31)),g=v(n(146));function v(e){return e&&e.__esModule?e:{default:e}}function w(e){var t=e.settings;return wp.element.createElement(o.Fragment,null,wp.element.createElement(r.Fill,{name:"YoastSidebar"},wp.element.createElement(p.default,{renderPriority:1},wp.element.createElement(l.default,null)),t.isKeywordAnalysisActive&&wp.element.createElement(p.default,{renderPriority:8},wp.element.createElement(u.default,{isSEMrushIntegrationActive:t.isSEMrushIntegrationActive})),wp.element.createElement(p.default,{renderPriority:23},wp.element.createElement(f.default,null)),t.displayFacebook&&wp.element.createElement(p.default,{renderPriority:24},wp.element.createElement(y.default,null)),t.displayTwitter&&wp.element.createElement(p.default,{renderPriority:25},wp.element.createElement(m.default,null)),t.displaySchemaSettings&&wp.element.createElement(p.default,{renderPriority:26},wp.element.createElement(_.default,{title:(0,i.__)("Schema","wordpress-seo")},wp.element.createElement(h.default,null))),t.displayAdvancedTab&&wp.element.createElement(p.default,{renderPriority:27},wp.element.createElement(_.default,{title:(0,i.__)("Advanced","wordpress-seo")},wp.element.createElement(g.default,null))),t.isContentAnalysisActive&&wp.element.createElement(p.default,{renderPriority:10},wp.element.createElement(c.default,null)),t.isKeywordAnalysisActive&&wp.element.createElement(p.default,{renderPriority:20},wp.element.createElement(d.default,{shouldUpsell:t.shouldUpsell,shouldUpsellWordFormRecognition:t.isWordFormRecognitionActive})),t.isCornerstoneActive&&wp.element.createElement(p.default,{renderPriority:30},wp.element.createElement(s.default,null))))}w.propTypes={settings:a.default.object.isRequired}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=i(n(82)),a=i(n(238));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(){return wp.element.createElement(o.default,{title:(0,r.__)("Google preview","wordpress-seo"),id:"yoast-google-preview-modal"},wp.element.createElement(a.default,{showCloseButton:!1,hasPaperStyle:!1}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=i(n(82)),a=i(n(239));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(){return wp.element.createElement(o.default,{title:(0,r.__)("Twitter preview","wordpress-seo"),id:"yoast-twitter-preview-modal"},wp.element.createElement(a.default,null))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=i(n(82)),a=i(n(240));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(){return wp.element.createElement(o.default,{title:(0,r.__)("Facebook preview","wordpress-seo"),id:"yoast-facebook-preview-modal"},wp.element.createElement(a.default,null))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.store,n=e.theme;return wp.element.createElement(a.default,{store:t,theme:n,location:"sidebar"},wp.element.createElement(r.Slot,{name:"YoastSidebar"},function(e){return(0,o.default)(e)}))};var r=n(12),o=i(n(147)),a=i(n(100));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.link=void 0;var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(3),a=n(4),i=n(12),s=n(94),l=n(56),u=n(382),c=function(e){return e&&e.__esModule?e:{default:e}}(n(383));var d="core/link",p=(0,o.__)("Link","wordpress-seo");t.link={name:d,title:p,tagName:"a",className:null,attributes:{url:"href",target:"target",rel:"rel"},replaces:"core/link",__unstablePasteRule:function(e,t){var n=t.html,r=t.plainText;if((0,s.isCollapsed)(e))return e;var o=(n||r).replace(/<[^>]+>/g,"").trim();return(0,l.isURL)(o)?(window.console.log("Created link:\n\n",o),(0,s.applyFormat)(e,{type:d,attributes:{url:(0,u.decodeEntities)(o)}})):e},edit:(0,i.withSpokenMessages)(function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.addLink=e.addLink.bind(e),e.stopAddingLink=e.stopAddingLink.bind(e),e.onRemoveFormat=e.onRemoveFormat.bind(e),e.state={addingLink:!1},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Component),r(t,[{key:"addLink",value:function(){var e=this.props,t=e.value,n=e.onChange,r=(0,s.getTextContent)((0,s.slice)(t));r&&(0,l.isURL)(r)?n((0,s.applyFormat)(t,{type:d,attributes:{url:r}})):r&&(0,l.isEmail)(r)?n((0,s.applyFormat)(t,{type:d,attributes:{url:"mailto:"+r}})):this.setState({addingLink:!0})}},{key:"stopAddingLink",value:function(){this.setState({addingLink:!1}),this.props.onFocus()}},{key:"onRemoveFormat",value:function(){var e=this.props,t=e.value,n=e.onChange,r=e.speak;n((0,s.removeFormat)(t,d)),r((0,o.__)("Link removed.","wordpress-seo"),"assertive")}},{key:"render",value:function(){var e=this.props,t=e.isActive,n=e.activeAttributes,r=e.value,i=e.onChange,s=window.wp.blockEditor,l=s.RichTextToolbarButton,u=s.RichTextShortcut;return wp.element.createElement(a.Fragment,null,wp.element.createElement(u,{type:"primary",character:"k",onUse:this.addLink}),wp.element.createElement(u,{type:"primaryShift",character:"k",onUse:this.onRemoveFormat}),t&&wp.element.createElement(l,{name:"link",icon:"editor-unlink",title:(0,o.__)("Unlink","wordpress-seo"),onClick:this.onRemoveFormat,isActive:t,shortcutType:"primaryShift",shortcutCharacter:"k"}),!t&&wp.element.createElement(l,{name:"link",icon:"admin-links",title:p,onClick:this.addLink,isActive:t,shortcutType:"primary",shortcutCharacter:"k"}),(this.state.addingLink||t)&&wp.element.createElement(c.default,{addingLink:this.state.addingLink,stopAddingLink:this.stopAddingLink,isActive:t,activeAttributes:n,value:r,onChange:i}))}}]),t}())}},function(e,t){e.exports=window.wp.htmlEntities},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=n(0),i=n(4),s=n(3),l=n(12),u=n(56),c=n(94),d=n(384),p=m(n(33)),f=m(n(263));function m(e){return e&&e.__esModule?e:{default:e}}t.default=(0,l.withSpokenMessages)(function(e){var t=e.isActive,n=e.activeAttributes,m=e.addingLink,y=e.value,h=e.onChange,_=e.speak,g=e.stopAddingLink,v=(0,i.useMemo)(a.uniqueId,[m]),w=(0,i.useState)(),b=o(w,2),E=b[0],T=b[1],k=(0,i.useMemo)(function(){var e=window.getSelection();if(e.rangeCount){var n=e.getRangeAt(0);if(m&&!t)return n;var r=n.startContainer;for(r=r.nextElementSibling||r;r.nodeType!==window.Node.ELEMENT_NODE;)r=r.parentNode;return r.closest("a")}},[m,y.start,y.end]),O=r({url:n.url,type:n.type,id:n.id,opensInNewTab:"_blank"===n.target,noFollow:n.rel&&n.rel.split(" ").includes("nofollow"),sponsored:n.rel&&n.rel.split(" ").includes("sponsored")},E),S=wp.element.createElement(p.default,{href:window.wpseoAdminL10n["shortlinks.nofollow_sponsored"],className:"dashicons"},wp.element.createElement("span",{className:"screen-reader-text"},(0,s.__)("Learn more about marking a link as nofollow or sponsored.","wordpress-seo"))),P=(0,f.default)((0,s.sprintf)((0,s.__)("Search engines should ignore this link (mark as %1$snofollow%2$s)%3$s","wordpress-seo"),"<code>","</code>","<helplink />"),{code:wp.element.createElement("code",null),helplink:S}),R=(0,f.default)((0,s.sprintf)((0,s.__)("This is a sponsored link or advert (mark as %1$ssponsored%2$s)%3$s","wordpress-seo"),"<code>","</code>","<helplink />"),{code:wp.element.createElement("code",null),helplink:S}),C=[{id:"opensInNewTab",title:(0,s.__)("Open in new tab","wordpress-seo")},{id:"noFollow",title:P},{id:"sponsored",title:R}],A=window.wp.blockEditor.__experimentalLinkControl;return wp.element.createElement(l.Popover,{key:v,anchorRef:k,focusOnMount:!!m&&"firstElement",onClose:g,position:"bottom center"},wp.element.createElement(A,{value:O,onChange:function(e){e=r({},E,e);var n=O.url===e.url&&O.opensInNewTab!==e.opensInNewTab||O.noFollow!==e.noFollow||O.sponsored!==e.sponsored;n&&!0===e.sponsored&&!0!==O.sponsored&&(e.noFollow=!0),n&&!1===e.noFollow&&!1!==O.noFollow&&(e.sponsored=!1);var o=n&&void 0===e.url;if(T(o?e:void 0),!o){var a=(0,u.prependHTTP)(e.url),i=(0,d.createLinkFormat)({url:a,type:e.type,id:void 0!==e.id&&null!==e.id?String(e.id):void 0,opensInNewWindow:e.opensInNewTab,noFollow:e.noFollow,sponsored:e.sponsored});if((0,c.isCollapsed)(y)&&!t){var l=e.title||a,p=(0,c.applyFormat)((0,c.create)({text:l}),i,0,l.length);h((0,c.insert)(y,p))}else{var f=(0,c.applyFormat)(y,i);f.start=f.end,f.activeFormats=[],h(f)}n||g(),(0,d.isValidHref)(a)?_(t?(0,s.__)("Link edited.","wordpress-seo"):(0,s.__)("Link inserted.","wordpress-seo"),"assertive"):_((0,s.__)("Warning: the link has been inserted but may have errors. Please test it."),"assertive")}},forceIsEditingLink:m,settings:C}))})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidHref=function(e){if(!e)return!1;var t=e.trim();if(!t)return!1;if(/^\S+:/.test(t)){var n=(0,o.getProtocol)(t);if(!(0,o.isValidProtocol)(n))return!1;if((0,r.startsWith)(n,"http")&&!/^https?:\/\/[^\/\s]/i.test(t))return!1;var a=(0,o.getAuthority)(t);if(!(0,o.isValidAuthority)(a))return!1;var i=(0,o.getPath)(t);if(i&&!(0,o.isValidPath)(i))return!1;var s=(0,o.getQueryString)(t);if(s&&!(0,o.isValidQueryString)(s))return!1;var l=(0,o.getFragment)(t);if(l&&!(0,o.isValidFragment)(l))return!1}if((0,r.startsWith)(t,"#")&&!(0,o.isValidFragment)(t))return!1;return!0},t.createLinkFormat=function(e){var t=e.url,n=e.opensInNewWindow,o=e.noFollow,a=e.sponsored,i=(e.text,{type:"core/link",attributes:{url:t}}),s=[];n&&(i.attributes.target="_blank",s.push("noreferrer noopener"));a&&(s.push("sponsored"),s.push("nofollow"));o&&s.push("nofollow");s.length>0&&(s=(0,r.uniq)(s),i.attributes.rel=s.join(" "));return i};var r=n(0),o=(n(3),n(56))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapSelectToProps=s,t.mapDispatchToProps=l;var r=n(7),o=n(10),a=function(e){return e&&e.__esModule?e:{default:e}}(n(386)),i=n(320);function s(e){var t=e("yoast-seo/editor"),n=e("core/editor"),r=[];return(0,i.maybeAddFocusKeyphraseCheck)(r,t),(0,i.maybeAddReadabilityCheck)(r,t),(0,i.maybeAddSEOCheck)(r,t),(0,i.maybeAddSchemaBlocksValidationCheck)(r,t,n),{checklist:r}}function l(e){var t=e("core/edit-post"),n=t.closePublishSidebar,r=t.openGeneralSidebar;return{onClick:function(){n(),r("yoast-seo/seo-sidebar")}}}t.default=(0,o.compose)([(0,r.withSelect)(s),(0,r.withDispatch)(l)])(a.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=s(n(1)),o=n(4),a=n(3),i=s(n(319));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=e.checklist,n=e.onClick,r=void 0;return r=t.every(function(e){return"good"===e.score})?(0,a.__)("We've analyzed your post. Everything looks good. Well done!","wordpress-seo"):(0,a.__)("We've analyzed your post. There is still room for improvement!","wordpress-seo"),wp.element.createElement(o.Fragment,null,wp.element.createElement("p",null,r),wp.element.createElement(i.default,{checklist:t,onClick:n}))}l.propTypes={checklist:r.default.array.isRequired,onClick:r.default.func.isRequired}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(5),o=n(28),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));function i(e){var t=e.score,n=e.label,a=e.scoreValue;return wp.element.createElement("div",null,wp.element.createElement(r.SvgIcon,(0,o.getIconForScore)(t)),wp.element.createElement("span",null," ",n," ",a&&wp.element.createElement("strong",null,a)))}i.propTypes={score:a.string.isRequired,label:a.string.isRequired,scoreValue:a.string},i.defaultProps={scoreValue:""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapSelectToProps=s,t.mapDispatchToProps=l;var r=n(7),o=n(10),a=function(e){return e&&e.__esModule?e:{default:e}}(n(319)),i=n(320);function s(e){var t=e("yoast-seo/editor"),n=e("core/editor"),r=[];return(0,i.maybeAddReadabilityCheck)(r,t),(0,i.maybeAddSEOCheck)(r,t),(0,i.maybeAddSchemaBlocksValidationCheck)(r,t,n),{checklist:r}}function l(e){var t=e("core/edit-post").openGeneralSidebar;return{onClick:function(){t("yoast-seo/seo-sidebar")}}}t.default=(0,o.compose)([(0,r.withSelect)(s),(0,r.withDispatch)(l)])(a.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),o=n(10),a=function(e){return e&&e.__esModule?e:{default:e}}(n(390));t.default=(0,o.compose)([(0,r.withSelect)(function(e){return{permalink:e("core/editor").getPermalink()}})])(a.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var r=l(n(1)),o=n(3),a=n(4),i=l(n(391)),s=l(n(392));function l(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=e.permalink,n=encodeURI(t);return wp.element.createElement(a.Fragment,null,wp.element.createElement("div",null,(0,o.__)("Share your post!","wordpress-seo")),wp.element.createElement("ul",{className:"yoast-seo-social-share-buttons"},wp.element.createElement("li",null,wp.element.createElement("a",{href:"https://www.facebook.com/sharer/sharer.php?u="+n,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(i.default,null))),wp.element.createElement("li",null,wp.element.createElement("a",{href:"https://twitter.com/share?url="+n,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(s.default,null)))))}u.propTypes={permalink:r.default.string.isRequired}},function(e,t,n){var r=n(2);function o(e){return r.createElement("svg",e,r.createElement("g",{fill:"none",fillRule:"evenodd"},[r.createElement("path",{fill:"#1877f2",d:"M1600 800a800 800 0 1 0-925 790v-559H472V800h203V624c0-201 119-311 302-311 88 0 179 15 179 15v197h-101c-99 0-130 62-130 125v150h222l-36 231H925v559a800 800 0 0 0 675-790",key:0}),r.createElement("path",{fill:"#fff",d:"M1147 800H925V650c0-63 31-125 130-125h101V328s-91-15-179-15c-183 0-302 110-302 311v176H472v231h203v559a806 806 0 0 0 250 0v-559h186z",key:1})]))}o.defaultProps={viewBox:"0 0 1600 1600",role:"img","aria-hidden":"true",focusable:"false"},e.exports=o,o.default=o},function(e,t,n){var r=n(2);function o(e){return r.createElement("svg",e,[r.createElement("circle",{cx:"200",cy:"200",r:"200",fill:"#1da1f2",key:0}),r.createElement("path",{d:"M163.4 305.5c88.7 0 137.2-73.5 137.2-137.2 0-2.1 0-4.2-.1-6.2 9.4-6.8 17.6-15.3 24.1-25-8.6 3.8-17.9 6.4-27.7 7.6 10-6 17.6-15.4 21.2-26.7-9.3 5.5-19.6 9.5-30.6 11.7-8.8-9.4-21.3-15.2-35.2-15.2-26.6 0-48.2 21.6-48.2 48.2 0 3.8.4 7.5 1.3 11-40.1-2-75.6-21.2-99.4-50.4-4.1 7.1-6.5 15.4-6.5 24.2 0 16.7 8.5 31.5 21.5 40.1-7.9-.2-15.3-2.4-21.8-6v.6c0 23.4 16.6 42.8 38.7 47.3-4 1.1-8.3 1.7-12.7 1.7-3.1 0-6.1-.3-9.1-.9 6.1 19.2 23.9 33.1 45 33.5-16.5 12.9-37.3 20.6-59.9 20.6-3.9 0-7.7-.2-11.5-.7 21.1 13.8 46.5 21.8 73.7 21.8",fill:"#fff",key:1})])}o.defaultProps={viewBox:"0 0 400 400",role:"img","aria-hidden":"true",focusable:"false"},e.exports=o,o.default=o},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r=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},o=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),i=n(11),s=n(7),l=n(13),u=n(37),c=n(30),d=n(148);var p=e.jQuery,f=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._refresh=t,this._store=n,this._data={},this.getPostAttribute=this.getPostAttribute.bind(this),this.refreshYoastSEO=this.refreshYoastSEO.bind(this)}return o(e,[{key:"initialize",value:function(e){this._data=this.getInitialData(e),(0,c.fillReplacementVariables)(this._data,this._store),this.subscribeToGutenberg(),this.subscribeToYoastSEO()}},{key:"getInitialData",value:function(e){var t=this.collectGutenbergData(this.getPostAttribute);return e=(0,c.mapCustomFields)(e,this._store),e=(0,c.mapCustomTaxonomies)(e,this._store),r({},e,t)}},{key:"setRefresh",value:function(e){this._refresh=e}},{key:"isShallowEqual",value:function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e.hasOwnProperty(n)&&(!(n in t)||e[n]!==t[n]))return!1;return!0}},{key:"getMediaById",value:function(e){return this._coreDataSelect||(this._coreDataSelect=(0,s.select)("core")),this._coreDataSelect.getMedia(e)}},{key:"getPostAttribute",value:function(e){return this._coreEditorSelect||(this._coreEditorSelect=(0,s.select)("core/editor")),this._coreEditorSelect.getEditedPostAttribute(e)}},{key:"getSlug",value:function(){if("auto-draft"===this.getPostAttribute("status"))return"";var e=this.getPostAttribute("generated_slug")||"";"auto-draft"===e&&(e="");var t=this.getPostAttribute("slug")||e;return decodeURIComponent(t)}},{key:"collectGutenbergData",value:function(){return{content:this.getPostAttribute("content"),title:this.getPostAttribute("title")||"",slug:this.getSlug(),excerpt:this.getExcerpt(),excerpt_only:this.getExcerpt(!1),snippetPreviewImageURL:this.getFeaturedImage()||this.getContentImage(),contentImage:this.getContentImage()}}},{key:"getFeaturedImage",value:function(){var e=this.getPostAttribute("featured_media");if(e){var t=this.getMediaById(e);if(t)return t.source_url}return null}},{key:"getContentImage",value:function(){var e=this._coreEditorSelect.getEditedPostContent(),t=i.string.imageInText(e),n="";if(0===t.length)return"";do{var r=t.shift(),o=(r=p(r)).prop("src");o&&(n=o)}while(""===n&&t.length>0);return n}},{key:"handleEditorChange",value:function(e){this._data.title!==e.title&&this._store.dispatch((0,l.updateReplacementVariable)("title",e.title)),this._data.excerpt!==e.excerpt&&(this._store.dispatch((0,l.updateReplacementVariable)("excerpt",e.excerpt)),this._store.dispatch((0,l.updateReplacementVariable)("excerpt_only",e.excerpt_only))),this._data.slug!==e.slug&&this._store.dispatch((0,l.updateData)({slug:e.slug})),this._data.snippetPreviewImageURL!==e.snippetPreviewImageURL&&this._store.dispatch((0,l.updateData)({snippetPreviewImageURL:e.snippetPreviewImageURL})),this._data.contentImage!==e.contentImage&&this._store.dispatch((0,u.setContentImage)(e.contentImage))}},{key:"getExcerpt",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.getPostAttribute("excerpt")||"";return""!==t||!1===e?t:(0,c.excerptFromContent)(this.getPostAttribute("content"))}},{key:"reapplyMarkers",value:function(){var e=(0,s.select)("yoast-seo/editor"),t=e.getActiveMarker,n=e.getMarkerPauseStatus,r=t(),o=n();r&&!o&&(0,d.reapplyAnnotationsForSelectedBlock)()}},{key:"refreshYoastSEO",value:function(){var e=this.collectGutenbergData();!this.isShallowEqual(this._data,e)&&(this.handleEditorChange(e),this._data=e,this._refresh())}},{key:"areNewAnalysisResultsAvailable",value:function(){var e=(0,s.select)("yoast-seo/editor"),t=e.getReadabilityResults(),n=e.getResultsForFocusKeyword();return(this._previousReadabilityResults!==t||this._previousSeoResults!==n)&&(this._previousReadabilityResults=t,this._previousSeoResults=n,!0)}},{key:"onNewAnalysisResultsAvailable",value:function(){this.reapplyMarkers()}},{key:"subscribeToGutenberg",value:function(){this.subscriber=(0,a.debounce)(this.refreshYoastSEO,500),(0,s.subscribe)(this.subscriber)}},{key:"subscribeToYoastSEO",value:function(){var e=this;this.yoastSubscriber=function(){e.areNewAnalysisResultsAvailable()&&e.onNewAnalysisResultsAvailable()},(0,s.subscribe)(this.yoastSubscriber)}},{key:"getData",value:function(){return this._data}}]),e}();t.default=f}).call(this,n(101))}],[[370,0]]]);
|
|
js/dist/block-editor-1600.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[3],[function(e,t){e.exports=window.lodash},function(e,t,n){e.exports=n(22)()},function(e,t){e.exports=React},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.yoast.componentsNew},function(e,t){e.exports=window.yoast.helpers},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.yoast.styledComponents},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return(0,r.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})};var r=n(0)},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.yoast.analysis},function(e,t){e.exports=window.wp.components},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LOAD_SNIPPET_EDITOR_DATA=t.UPDATE_WORDS_TO_HIGHLIGHT=t.REFRESH=t.REMOVE_REPLACEMENT_VARIABLE=t.UPDATE_REPLACEMENT_VARIABLE=t.UPDATE_DATA=t.SWITCH_MODE=void 0,t.switchMode=function(e){return{type:o,mode:e}},t.updateData=function(e){return{type:a,data:e}},t.updateReplacementVariable=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o="string"==typeof t?(0,r.decodeHTML)(t):t;return{type:i,name:e,value:o,label:n}},t.updateWordsToHighlight=function(e){return{type:u,wordsToHighlight:e}},t.removeReplacementVariable=function(e){return{type:s,name:e}},t.refreshSnippetEditor=function(){return{type:l,time:(new Date).getMilliseconds()}};var r=n(6),o=t.SWITCH_MODE="SNIPPET_EDITOR_SWITCH_MODE",a=t.UPDATE_DATA="SNIPPET_EDITOR_UPDATE_DATA",i=t.UPDATE_REPLACEMENT_VARIABLE="SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLE",s=t.REMOVE_REPLACEMENT_VARIABLE="SNIPPET_EDITOR_REMOVE_REPLACEMENT_VARIABLE",l=t.REFRESH="SNIPPET_EDITOR_REFRESH",u=t.UPDATE_WORDS_TO_HIGHLIGHT="SNIPPET_EDITOR_UPDATE_WORDS_TO_HIGHLIGHT";t.LOAD_SNIPPET_EDITOR_DATA="LOAD_SNIPPET_EDITOR_DATA"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocationConsumer=t.LocationProvider=t.LocationContext=void 0;var r=n(4),o=t.LocationContext=(0,r.createContext)();t.LocationProvider=o.Provider,t.LocationConsumer=o.Consumer},function(e,t){e.exports=window.yoast.components},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setSeoResultsForKeyword=t.setReadabilityResults=t.setOverallSeoScore=t.setOverallReadabilityScore=void 0;var r=n(44);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var o=n(45);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var a=n(70);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})});var i=n(36);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})});var s=n(71);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})});var l=n(72);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})});var u=n(46);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}})});var c=n(37);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})});var d=n(29);Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}})});var p=n(47);Object.keys(p).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}})});var f=n(33);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}})});var m=n(48);Object.keys(m).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}})});var y=n(49);Object.keys(y).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}})});var h=n(51);Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}})});var _=n(74);Object.keys(_).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}})});var g=n(52);Object.keys(g).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}})});var v=n(38);Object.keys(v).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}})});var w=n(13);Object.keys(w).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}})});var b=n(53);Object.keys(b).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}})});var E=n(54);Object.keys(E).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return E[e]}})});var T=n(55);Object.keys(T).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return T[e]}})});var k=n(15);Object.defineProperty(t,"setReadabilityResults",{enumerable:!0,get:function(){return k.setReadabilityResults}}),Object.defineProperty(t,"setSeoResultsForKeyword",{enumerable:!0,get:function(){return k.setSeoResultsForKeyword}});var O=function(e){return e&&e.__esModule?e:{default:e}}(n(26));t.setOverallReadabilityScore=function(e){return O.default.readabilityScore=e,(0,k.setOverallReadabilityScore)(e)},t.setOverallSeoScore=function(e,t){return O.default.seoScore=e,(0,k.setOverallSeoScore)(e,t)}},function(e,t){e.exports=window.yoast.reactRedux},function(e,t){e.exports=window.yoast.styleGuide},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=n(4),o=function(e){return e&&e.__esModule?e:{default:e}}(n(1));function a(e){var t=e.target,n=e.children,o=t;return"string"==typeof t&&(o=document.getElementById(t)),o?(0,r.createPortal)(n,o):null}a.propTypes={target:o.default.oneOfType([o.default.string,o.default.object]).isRequired,children:o.default.node.isRequired}},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},o=s(n(2)),a=s(n(79)),i=s(n(82));function s(e){return e&&e.__esModule?e:{default:e}}var l=void 0;function u(e,t){var n,i,s,c,d,p,f,m,y=[],h={};for(p=0;p<e.length;p++)if("string"!==(d=e[p]).type){if(!t.hasOwnProperty(d.value)||void 0===t[d.value])throw new Error("Invalid interpolation, missing component node: `"+d.value+"`");if("object"!==r(t[d.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+d.value+"`","\n> "+l);if("componentClose"===d.type)throw new Error("Missing opening component token: `"+d.value+"`");if("componentOpen"===d.type){n=t[d.value],s=p;break}y.push(t[d.value])}else y.push(d.value);return n&&(c=function(e,t){var n,r,o=t[e],a=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===o.value){if("componentOpen"===n.type){a++;continue}if("componentClose"===n.type){if(0===a)return r;a--}}throw new Error("Missing closing component token `"+o.value+"`")}(s,e),f=u(e.slice(s+1,c),t),i=o.default.cloneElement(n,{},f),y.push(i),c<e.length-1&&(m=u(e.slice(c+1),t),y=y.concat(m))),1===y.length?y[0]:(y.forEach(function(e,t){e&&(h["interpolation-child-"+t]=e)}),(0,a.default)(h))}t.default=function(e){var t=e.mixedString,n=e.components,o=e.throwErrors;if(l=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var a=(0,i.default)(t);try{return u(a,n)}catch(e){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},,function(e,t,n){"use strict";var r=n(23),o=n(24),a=n(25);e.exports=function(){function e(e,t,n,r,i,s){s!==a&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,o,a,i,s,l){if(r(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,a,i,s,l],d=0;(u=new Error(t.replace(/%s/g,function(){return c[d++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"keyphraseElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_focuskw":"hidden_wpseo_focuskw")}},{key:"isCornerstoneElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_is_cornerstone":"hidden_wpseo_is_cornerstone")}},{key:"seoScoreElement",get:function(){return document.getElementById("yoast_wpseo_linkdex")}},{key:"readabilityScoreElement",get:function(){return document.getElementById("yoast_wpseo_content_score")}},{key:"keyphrase",set:function(t){e.keyphraseElement.value=t},get:function(){return e.keyphraseElement.value}},{key:"isCornerstone",set:function(t){e.isCornerstoneElement.value=t?"1":"0"},get:function(){return"1"===e.isCornerstoneElement.value}},{key:"seoScore",set:function(t){e.seoScoreElement.value=t},get:function(){return e.seoScoreElement.value}},{key:"readabilityScore",set:function(t){e.readabilityScoreElement.value=t},get:function(){return e.readabilityScoreElement.value}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.isNil)(e)||(e/=10);return function(e){switch(e){case"feedback":return{className:"na",screenReaderText:(0,r.__)("Feedback","wordpress-seo"),screenReaderReadabilityText:""};case"bad":return{className:"bad",screenReaderText:(0,r.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:(0,r.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("OK","wordpress-seo")};case"good":return{className:"good",screenReaderText:(0,r.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:""}}}(o.helpers.scoreToRating(e))};var r=n(3),o=n(11),a=n(0)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIconForScore=function(e){var t={icon:"seo-score-none",color:o.colors.$color_grey_disabled};switch(e){case"loading":t={icon:"loading-spinner",color:o.colors.$color_green_medium_light};break;case"good":t={icon:"seo-score-good",color:o.colors.$color_green_medium};break;case"ok":t={icon:"seo-score-ok",color:o.colors.$color_ok};break;case"bad":t={icon:"seo-score-bad",color:o.colors.$color_red}}return t},t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n={errorsResults:[],problemsResults:[],improvementsResults:[],goodResults:[],considerationsResults:[]};if(!e)return n;for(var r=0;r<e.length;r++){var o=e[r];if(o.text){var a=i(o,t);n=s(a,n)}}return n};var r=n(11),o=n(18),a=r.helpers.scoreToRating;function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.getIdentifier(),r={score:e.score,rating:a(e.score),hasMarks:e.hasMarks(),marker:e.getMarker(),id:n,text:e.text,markerId:t.length>0?t+":"+n:n};return"ok"===r.rating&&(r.rating="OK"),r}function s(e,t){switch(e.rating){case"error":t.errorsResults.push(e);break;case"feedback":t.considerationsResults.push(e);break;case"bad":t.problemsResults.push(e);break;case"OK":t.improvementsResults.push(e);break;case"good":t.goodResults.push(e)}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=t.SET_MARKER_STATUS="WPSEO_SET_MARKER_STATUS";t.setMarkerStatus=function(e){return{type:r,marksButtonStatus:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyReplaceUsingPlugin=t.nonReplaceVars=void 0;var r=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};t.fillReplacementVariables=function(e,t){(0,o.forEach)(e,function(e,n){l.includes(n)||t.dispatch((0,a.updateReplacementVariable)(n,e))})},t.handlePrefixes=u,t.createLabelFromName=c,t.pushNewReplaceVar=function(e,t){return e.push({name:t.name,label:t.label||c(t.name),value:t.value}),e},t.replaceSpaces=d,t.prepareCustomFieldForDispatch=p,t.prepareCustomTaxonomyForDispatch=f,t.mapCustomTaxonomies=function(e,t){if(!e.custom_taxonomies)return e;return(0,o.forEach)(e.custom_taxonomies,function(e,n){var r=f(n),o=r.name,i=r.label,s=r.descriptionName,l=r.descriptionLabel;t.dispatch((0,a.updateReplacementVariable)(o,e.name,i)),t.dispatch((0,a.updateReplacementVariable)(s,e.description,l))}),(0,o.omit)(r({},e),"custom_taxonomies")},t.mapCustomFields=function(e,t){if(!e.custom_fields)return e;return(0,o.forEach)(e.custom_fields,function(e,n){var r=p(n),o=r.name,i=r.label;t.dispatch((0,a.updateReplacementVariable)(o,e,i))}),(0,o.omit)(r({},e),"custom_fields")},t.excerptFromContent=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:156;if((e=(e=wp.sanitize.stripTags(e)).trim()).length<=t)return e;return(e=e.substring(0,t)).substring(0,e.lastIndexOf(" "))};var o=n(0),a=n(13),i=n(41),s=n(6).strings.stripHTMLTags,l=t.nonReplaceVars=["slug","content","contentImage","snippetPreviewImageURL"];function u(e){if(!["ct_","cf_","pt_"].includes(e.substr(0,3)))return e.replace(/_/g," ");var t=e.slice(0,3);switch(-1!==(e=e.slice(3)).indexOf("desc_")&&(e=e.slice(5)+" description"),t){case"ct_":e+=" (custom taxonomy)";break;case"cf_":e+=" (custom field)";break;case"pt_":e="Post type ("+(e=e.replace("single","singular"))+")"}return e}function c(e){return e=u(e),(0,i.firstToUpperCase)(e)}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e.replace(/\s/g,t)}function p(e){return{name:"cf_"+d(e),label:(0,i.firstToUpperCase)(e+" (custom field)")}}function f(e){var t=d(e);return{name:"ct_"+t,label:(0,i.firstToUpperCase)(e+" (custom taxonomy)"),descriptionName:"ct_desc_"+t,descriptionLabel:(0,i.firstToUpperCase)(e+" description (custom taxonomy)")}}t.applyReplaceUsingPlugin=function(e){var t=(0,o.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!(0,o.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){var t=(0,o.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],o.identity);return{url:e.url,title:s(t(e.title)),description:s(t(e.description))}}(e);var n=t._applyModifications.bind(t);return{url:e.url,title:s(n("data_page_title",e.title)),description:s(n("data_meta_desc",e.description))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=n(4),a=n(5),i=function(e){return e&&e.__esModule?e:{default:e}}(n(1));var s=function(e){var t=(0,o.useState)(!1),n=r(t,2),i=n[0],s=n[1],l=e.prefixIcon;return wp.element.createElement("div",{className:"yoast components-panel__body "+(i?"is-opened":"")},wp.element.createElement("h2",{className:"components-panel__body-title"},wp.element.createElement("button",{onClick:function(){s(!i)},className:"components-button components-panel__body-toggle"},wp.element.createElement("span",{className:"yoast-icon-span",style:{fill:""+(l&&l.color||"")}},l&&wp.element.createElement(a.SvgIcon,{icon:l.icon,color:l.color,size:l.size})),wp.element.createElement("span",{className:"yoast-title-container"},wp.element.createElement("div",{className:"yoast-title"},e.title),wp.element.createElement("div",{className:"yoast-subtitle"},e.subTitle)),wp.element.createElement("span",{className:"yoast-chevron","aria-hidden":"true"}))),i&&e.children)};t.default=s,s.propTypes={title:i.default.string.isRequired,children:i.default.oneOfType([i.default.node,i.default.arrayOf(i.default.node)]).isRequired,prefixIcon:i.default.object,subTitle:i.default.string},s.defaultProps={prefixIcon:null,subTitle:""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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};t.default=function(){return(0,o.createHigherOrderComponent)(function(e){return(0,o.pure)(function(t){var n=(0,a.useContext)(i.LocationContext);return(0,a.createElement)(e,r({},t,{location:n}))})},"withLocation")};var o=n(10),a=n(4),i=n(14)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dismissAlert=i;var r=regeneratorRuntime.mark(i),o=t.DISMISS_ALERT="DISMISS_ALERT",a=t.DISMISS_ALERT_SUCCESS="DISMISS_ALERT_SUCCESS";function i(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:o,alertKey:e};case 2:return t.abrupt("return",{type:a,alertKey:e});case 3:case"end":return t.stop()}},r,this)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18),o=n(6),a=function(e){return e&&e.__esModule?e:{default:e}}(n(8));var i=(0,o.makeOutboundLink)(a.default.a.withConfig({displayName:"HelpLink",componentId:"qyhmof-0"})(["display:inline-block;position:relative;outline:none;text-decoration:none;border-radius:100%;width:24px;height:24px;margin:-4px 0;vertical-align:middle;color:",";&:hover,&:focus{color:",";}&:active{color:",';}&::before{position:absolute;top:0;left:0;padding:2px;content:"\f223";}'],r.colors.$color_help_text,r.colors.$color_snippet_focus,r.colors.$color_help_text));t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},o=n(5);var a=(0,function(e){return e&&e.__esModule?e:{default:e}}(n(8)).default)(o.Collapsible).withConfig({displayName:"MetaboxCollapsible__StyledMetaboxCollapsible",componentId:"k2tood-0"})(['h2 > button{padding-left:24px;padding-top:16px;&:hover{background-color:#f0f0f0;}}div[class^="collapsible_content"]{padding:24px 0;margin:0 24px;border-top:1px solid rgba(0,0,0,0.2);}']);t.default=function(e){return wp.element.createElement(a,r({hasPadding:!0,hasSeparator:!0},e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toggleCornerstoneContent=t.setCornerstoneContent=t.loadCornerstoneContent=t.SET_CORNERSTONE_CONTENT=t.TOGGLE_CORNERSTONE_CONTENT=t.LOAD_CORNERSTONE_CONTENT=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(26));t.LOAD_CORNERSTONE_CONTENT="WPSEO_LOAD_CORNERSTONE_CONTENT";var o=t.TOGGLE_CORNERSTONE_CONTENT="WPSEO_TOGGLE_CORNERSTONE_CONTENT",a=t.SET_CORNERSTONE_CONTENT="WPSEO_SET_CORNERSTONE_CONTENT";t.loadCornerstoneContent=function(){return{type:a,isCornerstone:r.default.isCornerstone}},t.setCornerstoneContent=function(e){return r.default.isCornerstone=e,{type:a,isCornerstone:e}},t.toggleCornerstoneContent=function(){return r.default.isCornerstone=!r.default.isCornerstone,{type:o}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setFocusKeyword=t.loadFocusKeyword=t.SET_FOCUS_KEYWORD=t.LOAD_FOCUS_KEYWORD=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(26));var o=t.LOAD_FOCUS_KEYWORD="WPSEO_LOAD_FOCUS_KEYWORD",a=t.SET_FOCUS_KEYWORD="WPSEO_SET_FOCUS_KEYWORD";t.loadFocusKeyword=function(){return{type:o,keyword:r.default.keyphrase}},t.setFocusKeyword=function(e){return r.default.keyphrase=e,{type:a,keyword:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=t.SET_SETTINGS="SET_SETTINGS",o=t.SET_CONTENT_IMAGE="SET_CONTENT_IMAGE";t.setSettings=function(e){return{type:r,settings:e}},t.setContentImage=function(e){return{type:o,src:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultModalClassName=void 0;var r=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},o=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),a=n(12);var i=t.defaultModalClassName="yoast yoast-gutenberg-modal",s=function(e){var t=e.title,n=e.className,o=e.showYoastIcon,i=e.additionalClassName,s=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["title","className","showYoastIcon","additionalClassName"]),l=o?wp.element.createElement("span",{className:"yoast-icon"}):null;return wp.element.createElement(a.Modal,r({title:t,className:n+" "+i,icon:l},s),e.children)};s.propTypes={title:o.default.string,className:o.default.string,showYoastIcon:o.default.bool,children:o.default.oneOfType([o.default.node,o.default.arrayOf(o.default.node)]),additionalClassName:o.default.string},s.defaultProps={title:"Yoast SEO",className:i,showYoastIcon:!0,children:null,additionalClassName:""},t.default=s},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.firstToUpperCase=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.stripHTML=function(e){var t=document.createElement("DIV");return t.innerHTML=e,t.textContent||t.innerText||""}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setActiveMarker=function(e){return{type:r,activeMarker:e}};var r=t.SET_ACTIVE_MARKER="WPSEO_SET_ACTIVE_MARKER"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadAdvancedSettingsData=t.setCanonical=t.setBreadcrumbsTitle=t.setAdvanced=t.setNoFollow=t.setNoIndex=t.LOAD_ADVANCED_SETTINGS=t.SET_CANONICAL_URL=t.SET_BREADCRUMBS_TITLE=t.SET_ADVANCED=t.SET_NO_FOLLOW=t.SET_NO_INDEX=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(69));var o=t.SET_NO_INDEX="SET_NO_INDEX",a=t.SET_NO_FOLLOW="SET_NO_FOLLOW",i=t.SET_ADVANCED="SET_ADVANCED",s=t.SET_BREADCRUMBS_TITLE="SET_BREADCRUMBS_TITLE",l=t.SET_CANONICAL_URL="SET_CANONICAL_URL",u=t.LOAD_ADVANCED_SETTINGS="LOAD_ADVANCED_SETTINGS";t.setNoIndex=function(e){return r.default.noIndex=e,{type:o,value:e}},t.setNoFollow=function(e){return r.default.noFollow=e,{type:a,value:e}},t.setAdvanced=function(e){return r.default.advanced=e.join(","),{type:i,value:e}},t.setBreadcrumbsTitle=function(e){return r.default.breadcrumbsTitle=e,{type:s,value:e}},t.setCanonical=function(e){return r.default.canonical=e,{type:l,value:e}},t.loadAdvancedSettingsData=function(){return{type:u,settings:{noIndex:r.default.noIndex,noFollow:r.default.noFollow,advanced:r.default.advanced.split(","),breadcrumbsTitle:r.default.breadcrumbsTitle,canonical:r.default.canonical,isLoading:!1}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LOAD_ESTIMATED_READING_TIME=t.SET_ESTIMATED_READING_TIME=void 0,t.setEstimatedReadingTime=function(e){return r.default.estimatedReadingTime=e,{type:o,estimatedReadingTime:e}},t.loadEstimatedReadingTime=function(){return{type:a,estimatedReadingTime:r.default.estimatedReadingTime}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(73));var o=t.SET_ESTIMATED_READING_TIME="SET_ESTIMATED_READING_TIME",a=t.LOAD_ESTIMATED_READING_TIME="LOAD_ESTIMATED_READING_TIME"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setMarkerPauseStatus=function(e){return{type:r,isMarkerPaused:e}};var r=t.SET_MARKER_PAUSE_STATUS="WPSEO_SET_MARKER_PAUSE_STATUS"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=t.SET_PRIMARY_TAXONOMY="WPSEO_SET_PRIMARY_TAXONOMY";t.setPrimaryTaxonomyId=function(e,t){return{type:r,taxonomy:e,termId:t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaArticleData=t.getSchemaPageData=t.setArticleType=t.setPageType=t.GET_SCHEMA_ARTICLE_DATA=t.GET_SCHEMA_PAGE_DATA=t.SET_ARTICLE_TYPE=t.SET_PAGE_TYPE=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(50));var o=t.SET_PAGE_TYPE="SET_PAGE_TYPE",a=t.SET_ARTICLE_TYPE="SET_ARTICLE_TYPE",i=t.GET_SCHEMA_PAGE_DATA="GET_SCHEMA_PAGE_DATA",s=t.GET_SCHEMA_ARTICLE_DATA="GET_SCHEMA_ARTICLE_DATA";t.setPageType=function(e){return r.default.pageType=e,{type:o,pageType:e}},t.setArticleType=function(e){return r.default.articleType=e,{type:a,articleType:e}},t.getSchemaPageData=function(){return{type:i,pageType:r.default.pageType,defaultPageType:r.default.defaultPageType}},t.getSchemaArticleData=function(){return{type:s,articleType:r.default.articleType,defaultArticleType:r.default.defaultArticleType}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(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}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addBlockValidation=function(e){return{type:r,validation:e}},t.resetBlockValidation=function(){return{type:o}};var r=t.ADD_BLOCK_VALIDATION="WPSEO_ADD_BLOCK_VALIDATION",o=t.RESET_BLOCK_VALIDATIONS="WPSEO_CLEAR_BLOCK_VALIDATIONS"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setSEMrushNewRequest=function(e,t){return{type:s,countryCode:e,keyphrase:t}},t.setSEMrushRequestSucceeded=function(e){return{type:o,response:e}},t.setSEMrushRequestFailed=function(e){return{type:a,response:e}},t.setSEMrushSetRequestLimitReached=function(){return{type:i}},t.setSEMrushChangeCountry=function(e){return{type:r,countryCode:e}},t.setSEMrushNoResultsFound=function(){return{type:l}},t.setSEMrushLoginStatus=function(e){return{type:u,loginStatus:e}};var r=t.CHANGE_COUNTRY="CHANGE_COUNTRY",o=t.SET_REQUEST_SUCCEEDED="SET_REQUEST_SUCCEEDED",a=t.SET_REQUEST_FAILED="SET_REQUEST_FAILED",i=t.SET_REQUEST_LIMIT_REACHED="SET_LIMIT_REACHED",s=t.NEW_REQUEST="NEW_REQUEST",l=t.NO_DATA_FOUND="NO_DATA_FOUND",u=t.SET_LOGIN_STATUS="SET_LOGIN_STATUS"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadTwitterPreviewData=t.clearTwitterPreviewImage=t.setTwitterPreviewImage=t.setTwitterPreviewDescription=t.setTwitterPreviewTitle=t.LOAD_TWITTER_PREVIEW=t.CLEAR_TWITTER_IMAGE=t.SET_TWITTER_IMAGE=t.SET_TWITTER_DESCRIPTION=t.SET_TWITTER_TITLE=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(75));var o=t.SET_TWITTER_TITLE="SET_TWITTER_TITLE",a=t.SET_TWITTER_DESCRIPTION="SET_TWITTER_DESCRIPTION",i=t.SET_TWITTER_IMAGE="SET_TWITTER_IMAGE",s=t.CLEAR_TWITTER_IMAGE="CLEAR_TWITTER_IMAGE",l=t.LOAD_TWITTER_PREVIEW="LOAD_TWITTER_PREVIEW";t.setTwitterPreviewTitle=function(e){return r.default.title=e,{type:o,title:e}},t.setTwitterPreviewDescription=function(e){return r.default.description=e,{type:a,description:e}},t.setTwitterPreviewImage=function(e){return r.default.imageId=e.id,r.default.imageUrl=e.url,{type:i,image:e}},t.clearTwitterPreviewImage=function(){return r.default.imageId="",r.default.imageUrl="",{type:s}},t.loadTwitterPreviewData=function(){return{type:l,imageId:r.default.imageId,imageUrl:r.default.imageUrl,description:r.default.description,title:r.default.title}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadFacebookPreviewData=t.clearFacebookPreviewImage=t.setFacebookPreviewImage=t.setFacebookPreviewDescription=t.setFacebookPreviewTitle=t.LOAD_FACEBOOK_PREVIEW=t.CLEAR_FACEBOOK_IMAGE=t.SET_FACEBOOK_IMAGE=t.SET_FACEBOOK_DESCRIPTION=t.SET_FACEBOOK_TITLE=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(76));var o=t.SET_FACEBOOK_TITLE="SET_FACEBOOK_TITLE",a=t.SET_FACEBOOK_DESCRIPTION="SET_FACEBOOK_DESCRIPTION",i=t.SET_FACEBOOK_IMAGE="SET_FACEBOOK_IMAGE",s=t.CLEAR_FACEBOOK_IMAGE="CLEAR_FACEBOOK_IMAGE",l=t.LOAD_FACEBOOK_PREVIEW="LOAD_FACEBOOK_PREVIEW";t.setFacebookPreviewTitle=function(e){return r.default.title=e,{type:o,title:e}},t.setFacebookPreviewDescription=function(e){return r.default.description=e,{type:a,description:e}},t.setFacebookPreviewImage=function(e){return r.default.imageUrl=e.url,r.default.imageId=e.id,{type:i,image:e}},t.clearFacebookPreviewImage=function(){return r.default.imageId="",r.default.imageUrl="",{type:s}},t.loadFacebookPreviewData=function(){return{type:l,imageId:r.default.imageId,imageUrl:r.default.imageUrl,description:r.default.description,title:r.default.title}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setWarningMessage=function(e){return{type:r,message:e}};var r=t.SET_WARNING_MESSAGE="SET_WARNING_MESSAGE"},function(e,t){e.exports=window.wp.apiFetch},function(e,t){e.exports=window.wp.url},,,function(e,t){e.exports=window.yoast.replacementVariableEditor},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),o=n(10),a=function(e){return e&&e.__esModule?e:{default:e}}(n(115));t.default=(0,o.compose)([(0,r.withSelect)(function(e){return{activeMarker:(0,e("yoast-seo/editor").getActiveMarker)()}}),(0,r.withDispatch)(function(e){var t=e("yoast-seo/editor");return{setActiveMarker:t.setActiveMarker,setMarkerPauseStatus:t.setMarkerPauseStatus}})])(a.default)},,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"noIndexElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_meta-robots-noindex":"hidden_wpseo_noindex")}},{key:"noFollowElement",get:function(){return document.getElementById("yoast_wpseo_meta-robots-nofollow")}},{key:"advancedElement",get:function(){return document.getElementById("yoast_wpseo_meta-robots-adv")}},{key:"breadcrumbsTitleElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_bctitle":"hidden_wpseo_bctitle")}},{key:"canonicalElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_canonical":"hidden_wpseo_canonical")}},{key:"noIndex",get:function(){return e.noIndexElement&&e.noIndexElement.value||""},set:function(t){e.noIndexElement.value=t}},{key:"noFollow",get:function(){return e.noFollowElement&&e.noFollowElement.value||""},set:function(t){e.noFollowElement.value=t}},{key:"advanced",get:function(){return e.advancedElement&&e.advancedElement.value||""},set:function(t){e.advancedElement.value=t}},{key:"breadcrumbsTitle",get:function(){return e.breadcrumbsTitleElement&&e.breadcrumbsTitleElement.value||""},set:function(t){e.breadcrumbsTitleElement.value=t}},{key:"canonical",get:function(){return e.canonicalElement&&e.canonicalElement.value||""},set:function(t){e.canonicalElement.value=t}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateAnalysisData=function(e){return{type:r,data:e}},t.runAnalysis=function(){return{type:o,timestamp:Date.now()}};var r=t.UPDATE_SNIPPET_DATA="SNIPPET_EDITOR_UPDATE_ANALYSIS_DATA",o=t.RUN_ANALYSIS="RUN_ANALYSIS"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setEditorDataContent=function(e){return{type:r,content:e}},t.setEditorDataTitle=function(e){return{type:o,title:e}},t.setEditorDataExcerpt=function(e){return{type:a,excerpt:e}},t.setEditorDataImageUrl=function(e){return{type:i,imageUrl:e}};var r=t.SET_EDITOR_DATA_CONTENT="SET_EDITOR_DATA_CONTENT",o=t.SET_EDITOR_DATA_TITLE="SET_EDITOR_DATA_TITLE",a=t.SET_EDITOR_DATA_EXCERPT="SET_EDITOR_DATA_EXCERPT",i=t.SET_EDITOR_DATA_IMAGE_URL="SET_EDITOR_DATA_IMAGE_URL"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openEditorModal=function(e){return{type:r,modalKey:e}},t.closeEditorModal=function(){return{type:o}};var r=t.OPEN_EDITOR_MODAL="OPEN_MODAL",o=t.CLOSE_EDITOR_MODAL="CLOSE_MODAL"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"estimatedReadingTimeElement",get:function(){return document.getElementById("yoast_wpseo_estimated-reading-time-minutes")}},{key:"estimatedReadingTime",get:function(){return e.estimatedReadingTimeElement&&e.estimatedReadingTimeElement.value||""},set:function(t){e.estimatedReadingTimeElement.value=t}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setSEMrushDismissModal=function(){return{type:r}},t.setSEMrushOpenModal=function(e){return{type:o,location:e}},t.setSEMrushNoKeyphraseMessage=function(){return{type:a}};var r=t.MODAL_DISMISS="MODAL_DISMISS",o=t.MODAL_OPEN="MODAL_OPEN",a=t.MODAL_OPEN_NO_KEYPHRASE="MODAL_OPEN_NO_KEYPHRASE"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"titleElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_twitter-title":"hidden_wpseo_twitter-title")}},{key:"descriptionElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_twitter-description":"hidden_wpseo_twitter-description")}},{key:"imageIdElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_twitter-image-id":"hidden_wpseo_twitter-image-id")}},{key:"imageUrlElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_twitter-image":"hidden_wpseo_twitter-image")}},{key:"title",get:function(){return e.titleElement.value},set:function(t){e.titleElement.value=t}},{key:"description",set:function(t){e.descriptionElement.value=t},get:function(){return e.descriptionElement.value}},{key:"imageId",set:function(t){e.imageIdElement.value=t},get:function(){return e.imageIdElement.value}},{key:"imageUrl",set:function(t){e.imageUrlElement.value=t},get:function(){return e.imageUrlElement.value}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"titleElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_opengraph-title":"hidden_wpseo_opengraph-title")}},{key:"descriptionElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_opengraph-description":"hidden_wpseo_opengraph-description")}},{key:"imageIdElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_opengraph-image-id":"hidden_wpseo_opengraph-image-id")}},{key:"imageUrlElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_opengraph-image":"hidden_wpseo_opengraph-image")}},{key:"title",get:function(){return e.titleElement.value},set:function(t){e.titleElement.value=t}},{key:"description",set:function(t){e.descriptionElement.value=t},get:function(){return e.descriptionElement.value}},{key:"imageId",set:function(t){e.imageIdElement.value=t},get:function(){return e.imageIdElement.value}},{key:"imageUrl",set:function(t){e.imageUrlElement.value=t},get:function(){return e.imageUrlElement.value}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCloseEvent=void 0;var r=n(3),o=n(4),a=u(n(39)),i=u(n(1)),s=u(n(114)),l=n(14);function u(e){return e&&e.__esModule?e:{default:e}}var c=t.isCloseEvent=function(e){return"blur"!==e.type||!(!e.relatedTarget||!e.relatedTarget.querySelector(".components-modal__screen-overlay"))},d=function(e){var t=e.id,n=e.postTypeName,i=e.children,u=e.title,d=e.isOpen,p=e.close,f=e.open,m=(0,o.useCallback)(function(e){c(e)&&p()},[p]);return wp.element.createElement(o.Fragment,null,d&&wp.element.createElement(l.LocationProvider,{value:"modal"},wp.element.createElement(a.default,{title:u,onRequestClose:m,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal"},wp.element.createElement("div",{className:"yoast-content-container"},wp.element.createElement("div",{className:"yoast-modal-content"},i)),wp.element.createElement("div",{className:"yoast-notice-container"},wp.element.createElement("hr",null),wp.element.createElement("div",{className:"yoast-button-container"},wp.element.createElement("p",null,(0,r.sprintf)((0,r.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),n)),wp.element.createElement("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:m},(0,r.sprintf)((0,r.__)("Return to your %s","wordpress-seo"),n)))))),wp.element.createElement(s.default,{id:t+"-open-button",title:u,suffixIcon:{size:"20px",icon:"pencil-square"},onClick:f}))};d.propTypes={id:i.default.string.isRequired,postTypeName:i.default.string.isRequired,children:i.default.oneOfType([i.default.node,i.default.arrayOf(i.default.node)]).isRequired,title:i.default.string.isRequired,isOpen:i.default.bool.isRequired,open:i.default.func.isRequired,close:i.default.func.isRequired},t.default=d},function(e,t){e.exports=window.yoast.analysisReport},function(e,t,n){"use strict";var r=n(2),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,a=n(40),i=n(80),s=n(81),l=".",u=":",c="function"==typeof Symbol&&Symbol.iterator,d="@@iterator";function p(e,t){return e&&"object"==typeof e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function f(e,t,n,r){var a,s=typeof e;if("undefined"!==s&&"boolean"!==s||(e=null),null===e||"string"===s||"number"===s||"object"===s&&e.$$typeof===o)return n(r,e,""===t?l+p(e,0):t),1;var m=0,y=""===t?l:t+u;if(Array.isArray(e))for(var h=0;h<e.length;h++)m+=f(a=e[h],y+p(a,h),n,r);else{var _=function(e){var t=e&&(c&&e[c]||e[d]);if("function"==typeof t)return t}(e);if(_){0;for(var g,v=_.call(e),w=0;!(g=v.next()).done;)m+=f(a=g.value,y+p(a,w++),n,r)}else if("object"===s){0;var b=""+e;i(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===b?"object with keys {"+Object.keys(e).join(", ")+"}":b,"")}}return m}var m=/\/+/g;function y(e){return(""+e).replace(m,"$&/")}var h=_,_=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)},g=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)};function v(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function w(e,t,n){var o=e.result,i=e.keyPrefix,s=e.func,l=e.context,u=s.call(l,t,e.count++);Array.isArray(u)?b(u,o,n,a.thatReturnsArgument):null!=u&&(r.isValidElement(u)&&(u=function(e,t){return r.cloneElement(e,{key:t},void 0!==e.props?e.props.children:void 0)}(u,i+(!u.key||t&&t.key===u.key?"":y(u.key)+"/")+n)),o.push(u))}function b(e,t,n,r,o){var a="";null!=n&&(a=y(n)+"/");var i=v.getPooled(t,a,r,o);!function(e,t,n){null==e||f(e,"",t,n)}(e,w,i),v.release(i)}v.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},function(e,t){var n=e;n.instancePool=[],n.getPooled=t||h,n.poolSize||(n.poolSize=10),n.release=g}(v,function(e,t,n,r){if(this.instancePool.length){var o=this.instancePool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)});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)b(e[n],t,n,a.thatReturnsArgument);return t}},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,o,a,i,s,l){if(r(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,a,i,s,l],d=0;(u=new Error(t.replace(/%s/g,function(){return c[d++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";var r=n(40);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";Object.defineProperty(t,"__esModule",{value:!0});var r=n(10),o=n(7),a=function(e){return e&&e.__esModule?e:{default:e}}(n(77));t.default=(0,r.compose)([(0,o.withSelect)(function(e,t){var n=e("yoast-seo/editor"),r=n.getPostOrPageString,o=n.getIsModalOpen;return{postTypeName:r(),isOpen:o(t.id)}}),(0,o.withDispatch)(function(e,t){var n=e("yoast-seo/editor"),r=n.openEditorModal;return{open:function(){return r(t.id)},close:n.closeEditorModal}})])(a.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openMedia=function(e){return function(e){var t=null;return(t=window.wp.media()).on("select",function(){var n=t.state().get("selection").first(),r={type:n.attributes.subtype,width:n.attributes.width,height:n.attributes.height,url:n.attributes.url,id:n.attributes.id};e(r)}),t}(e).open()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.linkFieldsShape=void 0;var r=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},o=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(4),i=function(e){return e&&e.__esModule?e:{default:e}}(n(1));t.linkFieldsShape=i.default.shape({value:i.default.string.isRequired,onChange:i.default.func.isRequired});t.default=function(e){return function(t){return function(n){function s(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,t));n.elements={};var r={};return n.fields=e(t),n.fields.forEach(function(e){var t=e.name,o=e.fieldId,a=document.getElementById(o);a&&(n.elements[t]=a,r[t]={value:a.value,onChange:n.onChange.bind(n,t)})}),n.state=r,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,a.Component),o(s,[{key:"onChange",value:function(e,t){var n=this;this.setState(r({},this.state,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,r({},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,o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children"]);return wp.element.createElement(t,r({},o,this.state),n)}}],[{key:"propTypes",get:function(){return{children:i.default.node}}}]),s}()}}},,,,,,,,,,function(e,t){e.exports=window.wp.richText},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModalIcon=t.ModalContainer=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(8)),o=n(5),a=n(6);t.ModalContainer=r.default.div.withConfig({displayName:"Container__ModalContainer",componentId:"sc-1onoh63-0"})(["min-width:600px;@media screen and ( max-width:680px ){min-width:0;width:86vw;}"]),t.ModalIcon=(0,r.default)(o.Icon).withConfig({displayName:"Container__ModalIcon",componentId:"sc-1onoh63-1"})(["float:",";margin:",";&&{width:150px;height:150px;@media screen and ( max-width:680px ){width:80px;height:80px;}}"],(0,a.getDirectionalStyle)("right","left"),(0,a.getDirectionalStyle)("0 0 16px 16px","0 16px 16px 0"))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),o=s(n(1)),a=n(28),i=s(n(19));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){var t=e.target,n=e.scoreIndicator;return wp.element.createElement(i.default,{target:t},wp.element.createElement(r.SvgIcon,(0,a.getIconForScore)(n)))};l.propTypes={target:o.default.string.isRequired,scoreIndicator:o.default.string.isRequired},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(4),a=u(n(20)),i=u(n(1)),s=u(n(8)),l=n(6);function u(e){return e&&e.__esModule?e:{default:e}}var c=s.default.ul.withConfig({displayName:"UpsellBox__StyledList",componentId:"gjf66g-0"})(['list-style:none;margin:0 0 16px;padding:0;li{margin:5px 0 0 0;padding-left:16px;}span[aria-hidden="true"]:before{margin:0 8px 0 -16px;font-weight:bold;content:"+";}']),d=s.default.small.withConfig({displayName:"UpsellBox__ButtonLabel",componentId:"gjf66g-1"})(["display:block;"]),p=(0,l.makeOutboundLink)(),f=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Component),r(t,[{key:"createBenefitsList",value:function(e){return e.length>0&&wp.element.createElement(c,{role:"list"},e.map(function(e,t){return wp.element.createElement("li",{key:t},wp.element.createElement("span",{"aria-hidden":"true"}),(0,a.default)({mixedString:e.replace("<strong>","{{strong}}").replace("</strong>","{{/strong}}"),components:{strong:wp.element.createElement("strong",null)}}))}))}},{key:"createInfoParagraphs",value:function(e){return e.map(function(e,t){return wp.element.createElement("p",{key:t},e)})}},{key:"render",value:function(){return wp.element.createElement("div",null,this.createInfoParagraphs(this.props.infoParagraphs),this.createBenefitsList(this.props.benefits),wp.element.createElement(p,this.props.upsellButton,this.props.upsellButtonText,this.props.upsellButtonHasCaret&&wp.element.createElement("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})),wp.element.createElement(d,{id:this.props.upsellButton["aria-describedby"]},this.props.upsellButtonLabel))}}]),t}();f.propTypes={benefits:i.default.array,infoParagraphs:i.default.array,upsellButton:i.default.object,upsellButtonText:i.default.string.isRequired,upsellButtonLabel:i.default.string,upsellButtonHasCaret:i.default.bool},f.defaultProps={infoParagraphs:[],benefits:[],upsellButton:{href:"",className:"button button-primary"},upsellButtonLabel:"",upsellButtonHasCaret:!0},t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1));var o=function(e){var t=e.children;return wp.element.createElement("div",null,t)};o.propTypes={renderPriority:r.default.number.isRequired,children:r.default.node.isRequired},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(4),a=u(n(1)),i=u(n(175)),s=n(176),l=n(60);function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={activeField:"",hoveredField:""},n.setHoveredField=n.setHoveredField.bind(n),n.setActiveField=n.setActiveField.bind(n),n.setEditorRef=n.setEditorRef.bind(n),n.setEditorFocus=n.setEditorFocus.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Component),r(t,[{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,l=e.socialMediumName,u=e.imageWarnings,c=e.description,d=e.descriptionInputPlaceholder,p=e.imageUrl,f=e.title,m=e.titleInputPlaceholder,y=e.replacementVariables,h=e.recommendedReplacementVariables,_=e.isPremium,g=e.location;return wp.element.createElement(o.Fragment,null,wp.element.createElement(i.default,{socialMediumName:l}),wp.element.createElement(s.SocialMetadataPreviewForm,{onDescriptionChange:t,socialMediumName:l,title:f,titleInputPlaceholder:m,onRemoveImageClick:a,imageSelected:!!p,imageUrl:p,onTitleChange:n,onSelectImageClick:r,description:c,descriptionInputPlaceholder:d,imageWarnings:u,replacementVariables:y,recommendedReplacementVariables:h,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:_,setEditorRef:this.setEditorRef,idSuffix:g}))}}]),t}();c.propTypes={title:a.default.string.isRequired,onTitleChange:a.default.func.isRequired,description:a.default.string.isRequired,onDescriptionChange:a.default.func.isRequired,imageUrl:a.default.string.isRequired,onSelectImageClick:a.default.func.isRequired,onRemoveImageClick:a.default.func.isRequired,socialMediumName:a.default.string.isRequired,isPremium:a.default.bool,imageWarnings:a.default.array,descriptionInputPlaceholder:a.default.string,titleInputPlaceholder:a.default.string,replacementVariables:l.replacementVariablesShape,recommendedReplacementVariables:l.recommendedReplacementVariablesShape,location:a.default.string},c.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",location:""},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),o=n(17),a=n(8),i=n(14);var s=function(e){var t=e.store,n=e.theme,r=e.location,s=e.children;return wp.element.createElement(i.LocationProvider,{value:r},wp.element.createElement(a.ThemeProvider,{theme:n},wp.element.createElement(o.Provider,{store:t},s)))};s.propTypes={store:r.default.object.isRequired,theme:r.default.object.isRequired,location:r.default.oneOf(["sidebar","metabox","modal"]).isRequired,children:r.default.element.isRequired},t.default=s},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),o=function(e){return e&&e.__esModule?e:{default:e}}(n(1));var a=function(e){return wp.element.createElement("div",{className:"yoast components-panel__body"},wp.element.createElement("h2",{className:"components-panel__body-title"},wp.element.createElement("button",{id:e.id,onClick:e.onClick,className:"components-button components-panel__body-toggle"},wp.element.createElement("span",{className:"yoast-title-container"},wp.element.createElement("div",{className:"yoast-title"},e.title),wp.element.createElement("div",{className:"yoast-subtitle"},e.subTitle)),e.suffixIcon&&wp.element.createElement(r.SvgIcon,{size:e.suffixIcon.size,icon:e.suffixIcon.icon}))))};t.default=a,a.propTypes={onClick:o.default.func.isRequired,title:o.default.string.isRequired,id:o.default.string,subTitle:o.default.string,suffixIcon:o.default.object},a.defaultProps={id:"",suffixIcon:null,subTitle:""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=u(n(1)),a=n(78),i=n(4),s=n(11),l=u(n(28));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=n.props.results;return n.state={mappedResults:{}},null!==r&&(n.state={mappedResults:(0,l.default)(r,n.props.keywordKey)}),n.handleMarkButtonClick=n.handleMarkButtonClick.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),r(t,[{key:"componentDidUpdate",value:function(e){null!==this.props.results&&this.props.results!==e.results&&this.setState({mappedResults:(0,l.default)(this.props.results,this.props.keywordKey)})}},{key:"handleMarkButtonClick",value:function(e,t){var n=this.props.keywordKey.length>0?this.props.keywordKey+":"+e:e;n===this.props.activeMarker?(this.props.setActiveMarker(null),this.props.setMarkerPauseStatus(!1),this.removeMarkers()):(this.props.setActiveMarker(n),t())}},{key:"removeMarkers",value:function(){window.YoastSEO.analysis.applyMarks(new s.Paper("",{}),[])}},{key:"render",value:function(){var e=this.state.mappedResults,t=e.errorsResults,n=e.improvementsResults,r=e.goodResults,o=e.considerationsResults,s=e.problemsResults;return wp.element.createElement(i.Fragment,null,wp.element.createElement(a.ContentAnalysis,{errorsResults:t,problemsResults:s,improvementsResults:n,considerationsResults:o,goodResults:r,activeMarker:this.props.activeMarker,onMarkButtonClick:this.handleMarkButtonClick,marksButtonClassName:this.props.marksButtonClassName,marksButtonStatus:this.props.marksButtonStatus,headingLevel:3,keywordKey:this.props.keywordKey}))}}]),t}();c.propTypes={results:o.default.array,marksButtonClassName:o.default.string,marksButtonStatus:o.default.string,setActiveMarker:o.default.func.isRequired,setMarkerPauseStatus:o.default.func.isRequired,activeMarker:o.default.string,keywordKey:o.default.string},c.defaultProps={results:null,marksButtonStatus:"enabled",marksButtonClassName:"",activeMarker:null,keywordKey:""},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(1)),o=s(n(8)),a=n(5),i=n(6);function s(e){return e&&e.__esModule?e:{default:e}}var l=(0,o.default)(a.StyledSection).withConfig({displayName:"SnippetPreviewSection__Section",componentId:"gjy5w5-0"})(["&","{padding:0;& ","{",":20px;margin-left:",";}}"],a.StyledSectionBase,a.StyledHeading,(0,i.getDirectionalStyle)("padding-left","padding-right"),(0,i.getDirectionalStyle)("0","20px")),u=function(e){var t=e.children,n=e.title,r=e.icon,o=e.hasPaperStyle;return wp.element.createElement(l,{headingLevel:3,headingText:n,headingIcon:r,headingIconColor:"#555",hasPaperStyle:o},t)};u.propTypes={children:r.default.element,title:r.default.string,icon:r.default.string,hasPaperStyle:r.default.bool},u.defaultProps={hasPaperStyle:!0},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schemaTypeOptionsPropType=void 0;var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(4),a=n(3),i=n(5),s=c(n(1)),l=n(85),u=c(l);function c(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.initialPageType=e.pageType.value,n.initialArticleType=e.articleType?e.articleType.value:"None",n.state={schema_page_type:n.initialPageType,schema_article_type:n.initialArticleType},n.handleOptionFocus=n.handleOptionFocus.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Component),r(t,[{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(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,t))}},{key:"render",value:function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(i.FieldGroup,{label:(0,a.__)("Schema settings","wordpress-seo"),linkTo:"https://yoa.st/404",linkText:(0,a.__)("Learn more about the schema settings","wordpress-seo"),description:(0,a.sprintf)((0,a.__)("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()&&wp.element.createElement(i.Alert,{type:"warning"},(0,a.sprintf)((0,a._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)),wp.element.createElement(i.Select,{id:"schema-page-type-"+this.props.postType,name:"schema_page_type",options:this.props.pageTypeOptions,label:(0,a.__)("Default Page type","wordpress-seo"),onChange:this.props.pageType.onChange,selected:this.props.pageType.value,onOptionFocus:this.handleOptionFocus}),this.props.articleType&&wp.element.createElement(i.Select,{id:"schema-article-type-"+this.props.postType,name:"schema_article_type",options:this.props.articleTypeOptions,label:(0,a.__)("Default Article type","wordpress-seo"),onChange:this.props.articleType.onChange,onOptionFocus:this.handleOptionFocus,selected:this.props.articleType.value}))}}]),t}(),p=t.schemaTypeOptionsPropType=s.default.arrayOf(s.default.shape({name:s.default.string,value:s.default.string}));d.propTypes={postType:s.default.string.isRequired,postTypeName:s.default.string.isRequired,pageType:l.linkFieldsShape.isRequired,articleType:l.linkFieldsShape,pageTypeOptions:p.isRequired,articleTypeOptions:p.isRequired},d.defaultProps={articleType:null},t.default=(0,u.default)(function(e){return[{name:"pageType",fieldId:e.pageTypeFieldId},{name:"articleType",fieldId:e.articleTypeFieldId}]})(d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),o=n(10),a=function(e){return e&&e.__esModule?e:{default:e}}(n(119));t.default=(0,o.compose)([(0,r.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.getFocusKeyphrase,r=t.getSEMrushSelectedCountry,o=t.getSEMrushRequestLimitReached,a=t.getSEMrushRequestResponse,i=t.getSEMrushRequestIsSuccess,s=t.getSEMrushIsRequestPending,l=t.getSEMrushRequestHasData,u=t.getSEMrushRequestKeyphrase;return{keyphrase:n(),countryCode:r(),requestLimitReached:o(),response:a(),isSuccess:i(),isPending:s(),requestHasData:l(),lastRequestKeyphrase:u()}}),(0,r.withDispatch)(function(e){var t=e("yoast-seo/editor"),n=t.setSEMrushChangeCountry,r=t.setSEMrushNewRequest,o=t.setSEMrushRequestSucceeded,a=t.setSEMrushRequestFailed,i=t.setSEMrushSetRequestLimitReached,s=t.setSEMrushNoResultsFound;return{setCountry:function(e){n(e)},newRequest:function(e,t){r(e,t)},setRequestSucceeded:function(e){o(e)},setRequestFailed:function(e){a(e)},setRequestLimitReached:function(){i()},setNoResultsFound:function(){s()}}})])(a.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasError=h,t.getUserMessage=_,t.hasMaximumRelatedKeyphrases=g,t.default=v;var r=n(4),o=n(3),a=y(n(1)),i=n(0),s=y(n(120)),l=y(n(121)),u=y(n(122)),c=y(n(123)),d=y(n(126)),p=y(n(127)),f=y(n(128)),m=y(n(9));function y(e){return e&&e.__esModule?e:{default:e}}function h(e){return!(0,i.isEmpty)(e)&&"error"in e}functio |