Yoast SEO - Version 18.1

Version Description

Release Date: February 8th, 2022

Yoast SEO 18.1 is out today! This new release brings another round of bug fixes, plus a new way for us to handle the translations in our plugin leading to a smaller plugin size for you to install. Read more about what's new in Yoast SEO 18.1 in our release post in English or our release post in Spanish!

Enhancements:

  • Changes the overall SEO score color on the post type overview pages to red when no keyphrase is set.

Bugfixes:

  • Fixes a bug where images inserted into our FAQ or HowTo blocks would be rendered wider then their respective container when using a Block Theme.
  • Fixes a bug where plugins that would initialize after our plugin would be unable to register certain plugin information or utilize certain hooks.
  • Fixes a bug where capitalized keyphrases would show up twice in the Wincher SEO performance tracking modal.

Other:

  • Switches from packaged script translations to those from wordpress.org in order to reduce ZIP size and disk usage.
Download this release

Release Info

Developer Yoast
Plugin Icon 128x128 Yoast SEO
Version 18.1
Comparing to
See all releases

Code changes from version 18.0 to 18.1

Files changed (75) hide show
  1. admin/class-admin-asset-manager.php +4 -0
  2. admin/class-admin-asset-yoast-components-l10n.php +15 -0
  3. admin/class-admin-init.php +0 -1
  4. admin/class-config.php +0 -3
  5. admin/class-gutenberg-compatibility.php +2 -2
  6. admin/class-meta-columns.php +1 -1
  7. admin/class-yoast-dashboard-widget.php +0 -2
  8. admin/metabox/class-metabox.php +0 -3
  9. admin/taxonomy/class-taxonomy.php +0 -3
  10. css/dist/{admin-global-1800-rtl.css → admin-global-1810-rtl.css} +0 -0
  11. css/dist/{admin-global-1800.css → admin-global-1810.css} +0 -0
  12. css/dist/{adminbar-1800-rtl.css → adminbar-1810-rtl.css} +0 -0
  13. css/dist/{adminbar-1800.css → adminbar-1810.css} +0 -0
  14. css/dist/{alerts-1800-rtl.css → alerts-1810-rtl.css} +0 -0
  15. css/dist/{alerts-1800.css → alerts-1810.css} +0 -0
  16. css/dist/{dashboard-1800-rtl.css → dashboard-1810-rtl.css} +0 -0
  17. css/dist/{dashboard-1800.css → dashboard-1810.css} +0 -0
  18. css/dist/{edit-page-1800-rtl.css → edit-page-1810-rtl.css} +0 -0
  19. css/dist/{edit-page-1800.css → edit-page-1810.css} +0 -0
  20. css/dist/{elementor-1800-rtl.css → elementor-1810-rtl.css} +0 -0
  21. css/dist/{elementor-1800.css → elementor-1810.css} +0 -0
  22. css/dist/{featured-image-1800-rtl.css → featured-image-1810-rtl.css} +0 -0
  23. css/dist/{featured-image-1800.css → featured-image-1810.css} +0 -0
  24. css/dist/{filter-explanation-1800-rtl.css → filter-explanation-1810-rtl.css} +0 -0
  25. css/dist/{filter-explanation-1800.css → filter-explanation-1810.css} +0 -0
  26. css/dist/{icons-1800-rtl.css → icons-1810-rtl.css} +0 -0
  27. css/dist/{icons-1800.css → icons-1810.css} +0 -0
  28. css/dist/{inside-editor-1800-rtl.css → inside-editor-1810-rtl.css} +0 -0
  29. css/dist/{inside-editor-1800.css → inside-editor-1810.css} +0 -0
  30. css/dist/{installation-success-1800-rtl.css → installation-success-1810-rtl.css} +0 -0
  31. css/dist/{installation-success-1800.css → installation-success-1810.css} +0 -0
  32. css/dist/{metabox-1800-rtl.css → metabox-1810-rtl.css} +0 -0
  33. css/dist/{metabox-1800.css → metabox-1810.css} +0 -0
  34. css/dist/{metabox-primary-category-1800-rtl.css → metabox-primary-category-1810-rtl.css} +0 -0
  35. css/dist/{metabox-primary-category-1800.css → metabox-primary-category-1810.css} +0 -0
  36. css/dist/{modal-1800-rtl.css → modal-1810-rtl.css} +0 -0
  37. css/dist/{modal-1800.css → modal-1810.css} +0 -0
  38. css/dist/{monorepo-1800-rtl.css → monorepo-1810-rtl.css} +0 -0
  39. css/dist/{monorepo-1800.css → monorepo-1810.css} +0 -0
  40. css/dist/{notifications-1800-rtl.css → notifications-1810-rtl.css} +0 -0
  41. css/dist/{notifications-1800.css → notifications-1810.css} +0 -0
  42. css/dist/{schema-blocks-1800-rtl.css → schema-blocks-1810-rtl.css} +0 -0
  43. css/dist/{schema-blocks-1800.css → schema-blocks-1810.css} +0 -0
  44. css/dist/{score_icon-1800-rtl.css → score_icon-1810-rtl.css} +0 -0
  45. css/dist/{score_icon-1800.css → score_icon-1810.css} +0 -0
  46. css/dist/{search-appearance-1800-rtl.css → search-appearance-1810-rtl.css} +0 -0
  47. css/dist/{search-appearance-1800.css → search-appearance-1810.css} +0 -0
  48. css/dist/{structured-data-blocks-1800-rtl.css → structured-data-blocks-1810-rtl.css} +0 -0
  49. css/dist/{structured-data-blocks-1800.css → structured-data-blocks-1810.css} +0 -0
  50. css/dist/{toggle-switch-1800-rtl.css → toggle-switch-1810-rtl.css} +0 -0
  51. css/dist/{toggle-switch-1800.css → toggle-switch-1810.css} +0 -0
  52. css/dist/{workouts-1800-rtl.css → workouts-1810-rtl.css} +0 -0
  53. css/dist/{workouts-1800.css → workouts-1810.css} +0 -0
  54. css/dist/{wpseo-dismissible-1800-rtl.css → wpseo-dismissible-1810-rtl.css} +0 -0
  55. css/dist/{wpseo-dismissible-1800.css → wpseo-dismissible-1810.css} +0 -0
  56. css/dist/{yoast-components-1800-rtl.css → yoast-components-1810-rtl.css} +0 -0
  57. css/dist/{yoast-components-1800.css → yoast-components-1810.css} +0 -0
  58. css/dist/{yoast-extensions-1800-rtl.css → yoast-extensions-1810-rtl.css} +0 -0
  59. css/dist/{yoast-extensions-1800.css → yoast-extensions-1810.css} +0 -0
  60. css/dist/{yst_plugin_tools-1800-rtl.css → yst_plugin_tools-1810-rtl.css} +0 -0
  61. css/dist/{yst_plugin_tools-1800.css → yst_plugin_tools-1810.css} +0 -0
  62. css/dist/{yst_seo_score-1800-rtl.css → yst_seo_score-1810-rtl.css} +0 -0
  63. css/dist/{yst_seo_score-1800.css → yst_seo_score-1810.css} +0 -0
  64. inc/class-addon-manager.php +8 -0
  65. inc/class-wpseo-meta.php +2 -2
  66. inc/health-check-default-tagline.php +0 -66
  67. js/dist/addon-installation.js +2 -2
  68. js/dist/admin-modules.js +2 -2
  69. js/dist/analysis-worker.js +1 -1
  70. js/dist/block-editor.js +13 -13
  71. js/dist/classic-editor.js +11 -11
  72. js/dist/dashboard-widget.js +9 -9
  73. js/dist/dynamic-blocks.js +1 -1
  74. js/dist/editor-modules.js +8 -8
  75. js/dist/elementor.js +12 -12
admin/class-admin-asset-manager.php CHANGED
@@ -89,6 +89,10 @@ class WPSEO_Admin_Asset_Manager {
89
  $script->get_version(),
90
  $script->is_in_footer()
91
  );
 
 
 
 
92
  }
93
 
94
  /**
89
  $script->get_version(),
90
  $script->is_in_footer()
91
  );
92
+
93
+ if ( in_array( 'wp-i18n', $script->get_deps(), true ) ) {
94
+ wp_set_script_translations( $this->prefix . $script->get_name(), 'wordpress-seo' );
95
+ }
96
  }
97
 
98
  /**
admin/class-admin-asset-yoast-components-l10n.php CHANGED
@@ -7,6 +7,9 @@
7
 
8
  /**
9
  * Localizes JavaScript files.
 
 
 
10
  */
11
  final class WPSEO_Admin_Asset_Yoast_Components_L10n {
12
 
@@ -19,19 +22,27 @@ final class WPSEO_Admin_Asset_Yoast_Components_L10n {
19
 
20
  /**
21
  * WPSEO_Admin_Asset_Yoast_Components_L10n constructor.
 
 
 
22
  */
23
  public function __construct() {
 
24
  $this->asset_manager = new WPSEO_Admin_Asset_Manager();
25
  }
26
 
27
  /**
28
  * Localizes the given script with the JavaScript translations.
29
  *
 
 
 
30
  * @param string $script_handle The script handle to localize for.
31
  *
32
  * @return void
33
  */
34
  public function localize_script( $script_handle ) {
 
35
  $translations = [
36
  'yoast-components' => $this->get_translations( 'yoast-components' ),
37
  'wordpress-seo' => $this->get_translations( 'wordpress-seojs' ),
@@ -43,10 +54,14 @@ final class WPSEO_Admin_Asset_Yoast_Components_L10n {
43
  /**
44
  * Returns translations necessary for JS files.
45
  *
 
 
 
46
  * @param string $component The component to retrieve the translations for.
47
  * @return object|null The translations in a Jed format for JS files.
48
  */
49
  protected function get_translations( $component ) {
 
50
  $locale = \get_user_locale();
51
 
52
  $file = WPSEO_PATH . 'languages/' . $component . '-' . $locale . '.json';
7
 
8
  /**
9
  * Localizes JavaScript files.
10
+ *
11
+ * @codeCoverageIgnore
12
+ * @deprecated 18.0
13
  */
14
  final class WPSEO_Admin_Asset_Yoast_Components_L10n {
15
 
22
 
23
  /**
24
  * WPSEO_Admin_Asset_Yoast_Components_L10n constructor.
25
+ *
26
+ * @codeCoverageIgnore
27
+ * @deprecated 18.0
28
  */
29
  public function __construct() {
30
+ _deprecated_constructor( __CLASS__, '18.0' );
31
  $this->asset_manager = new WPSEO_Admin_Asset_Manager();
32
  }
33
 
34
  /**
35
  * Localizes the given script with the JavaScript translations.
36
  *
37
+ * @codeCoverageIgnore
38
+ * @deprecated 18.0
39
+ *
40
  * @param string $script_handle The script handle to localize for.
41
  *
42
  * @return void
43
  */
44
  public function localize_script( $script_handle ) {
45
+ _deprecated_function( __FUNCTION__, '18.0' );
46
  $translations = [
47
  'yoast-components' => $this->get_translations( 'yoast-components' ),
48
  'wordpress-seo' => $this->get_translations( 'wordpress-seojs' ),
54
  /**
55
  * Returns translations necessary for JS files.
56
  *
57
+ * @codeCoverageIgnore
58
+ * @deprecated 18.0
59
+ *
60
  * @param string $component The component to retrieve the translations for.
61
  * @return object|null The translations in a Jed format for JS files.
62
  */
63
  protected function get_translations( $component ) {
64
+ _deprecated_function( __FUNCTION__, '18.0' );
65
  $locale = \get_user_locale();
66
 
67
  $file = WPSEO_PATH . 'languages/' . $component . '-' . $locale . '.json';
admin/class-admin-init.php CHANGED
@@ -52,7 +52,6 @@ class WPSEO_Admin_Init {
52
  $health_checks = [
53
  new WPSEO_Health_Check_Page_Comments(),
54
  new WPSEO_Health_Check_Ryte(),
55
- new WPSEO_Health_Check_Default_Tagline(),
56
  new WPSEO_Health_Check_Postname_Permalink(),
57
  new WPSEO_Health_Check_Curl_Version(),
58
  new WPSEO_Health_Check_Link_Table_Not_Accessible(),
52
  $health_checks = [
53
  new WPSEO_Health_Check_Page_Comments(),
54
  new WPSEO_Health_Check_Ryte(),
 
55
  new WPSEO_Health_Check_Postname_Permalink(),
56
  new WPSEO_Health_Check_Curl_Version(),
57
  new WPSEO_Health_Check_Link_Table_Not_Accessible(),
admin/class-config.php CHANGED
@@ -113,9 +113,6 @@ class WPSEO_Admin_Pages {
113
  * contenteditable fields.
114
  */
115
  remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
116
-
117
- $yoast_components_l10n = new WPSEO_Admin_Asset_Yoast_Components_L10n();
118
- $yoast_components_l10n->localize_script( 'settings' );
119
  }
120
 
121
  if ( in_array( $page, [ 'wpseo_social', WPSEO_Admin::PAGE_IDENTIFIER, 'wpseo_titles', 'wpseo_workouts' ], true ) ) {
113
  * contenteditable fields.
114
  */
115
  remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
 
 
 
116
  }
117
 
118
  if ( in_array( $page, [ 'wpseo_social', WPSEO_Admin::PAGE_IDENTIFIER, 'wpseo_titles', 'wpseo_workouts' ], true ) ) {
admin/class-gutenberg-compatibility.php CHANGED
@@ -15,14 +15,14 @@ class WPSEO_Gutenberg_Compatibility {
15
  *
16
  * @var string
17
  */
18
- const CURRENT_RELEASE = '12.3.2';
19
 
20
  /**
21
  * The minimally supported version of Gutenberg by the plugin.
22
  *
23
  * @var string
24
  */
25
- const MINIMUM_SUPPORTED = '12.3.2';
26
 
27
  /**
28
  * Holds the current version.
15
  *
16
  * @var string
17
  */
18
+ const CURRENT_RELEASE = '12.4.1';
19
 
20
  /**
21
  * The minimally supported version of Gutenberg by the plugin.
22
  *
23
  * @var string
24
  */
25
+ const MINIMUM_SUPPORTED = '12.4.1';
26
 
27
  /**
28
  * Holds the current version.
admin/class-meta-columns.php CHANGED
@@ -641,7 +641,7 @@ class WPSEO_Meta_Columns {
641
  }
642
 
643
  if ( WPSEO_Meta::get_value( 'focuskw', $post_id ) === '' ) {
644
- $rank = new WPSEO_Rank( WPSEO_Rank::NO_FOCUS );
645
  $title = __( 'Focus keyphrase not set.', 'wordpress-seo' );
646
 
647
  return $this->render_score_indicator( $rank, $title );
641
  }
642
 
643
  if ( WPSEO_Meta::get_value( 'focuskw', $post_id ) === '' ) {
644
+ $rank = new WPSEO_Rank( WPSEO_Rank::BAD );
645
  $title = __( 'Focus keyphrase not set.', 'wordpress-seo' );
646
 
647
  return $this->render_score_indicator( $rank, $title );
admin/class-yoast-dashboard-widget.php CHANGED
@@ -105,8 +105,6 @@ class Yoast_Dashboard_Widget implements WPSEO_WordPress_Integration {
105
  }
106
 
107
  $this->asset_manager->localize_script( 'dashboard-widget', 'wpseoDashboardWidgetL10n', $this->localize_dashboard_script() );
108
- $yoast_components_l10n = new WPSEO_Admin_Asset_Yoast_Components_L10n();
109
- $yoast_components_l10n->localize_script( 'dashboard-widget' );
110
  $this->asset_manager->enqueue_script( 'dashboard-widget' );
111
  $this->asset_manager->enqueue_style( 'wp-dashboard' );
112
  $this->asset_manager->enqueue_style( 'monorepo' );
105
  }
106
 
107
  $this->asset_manager->localize_script( 'dashboard-widget', 'wpseoDashboardWidgetL10n', $this->localize_dashboard_script() );
 
 
108
  $this->asset_manager->enqueue_script( 'dashboard-widget' );
109
  $this->asset_manager->enqueue_style( 'wp-dashboard' );
110
  $this->asset_manager->enqueue_style( 'monorepo' );
admin/metabox/class-metabox.php CHANGED
@@ -860,9 +860,6 @@ class WPSEO_Metabox extends WPSEO_Meta {
860
  $asset_manager->enqueue_script( $post_edit_handle );
861
  $asset_manager->enqueue_style( 'admin-css' );
862
 
863
- $yoast_components_l10n = new WPSEO_Admin_Asset_Yoast_Components_L10n();
864
- $yoast_components_l10n->localize_script( $post_edit_handle );
865
-
866
  /**
867
  * Removes the emoji script as it is incompatible with both React and any
868
  * contenteditable fields.
860
  $asset_manager->enqueue_script( $post_edit_handle );
861
  $asset_manager->enqueue_style( 'admin-css' );
862
 
 
 
 
863
  /**
864
  * Removes the emoji script as it is incompatible with both React and any
865
  * contenteditable fields.
admin/taxonomy/class-taxonomy.php CHANGED
@@ -136,9 +136,6 @@ class WPSEO_Taxonomy {
136
  $asset_manager->enqueue_style( 'scoring' );
137
  $asset_manager->enqueue_script( 'term-edit' );
138
 
139
- $yoast_components_l10n = new WPSEO_Admin_Asset_Yoast_Components_L10n();
140
- $yoast_components_l10n->localize_script( 'term-edit' );
141
-
142
  /**
143
  * Remove the emoji script as it is incompatible with both React and any
144
  * contenteditable fields.
136
  $asset_manager->enqueue_style( 'scoring' );
137
  $asset_manager->enqueue_script( 'term-edit' );
138
 
 
 
 
139
  /**
140
  * Remove the emoji script as it is incompatible with both React and any
141
  * contenteditable fields.
css/dist/{admin-global-1800-rtl.css → admin-global-1810-rtl.css} RENAMED
File without changes
css/dist/{admin-global-1800.css → admin-global-1810.css} RENAMED
File without changes
css/dist/{adminbar-1800-rtl.css → adminbar-1810-rtl.css} RENAMED
File without changes
css/dist/{adminbar-1800.css → adminbar-1810.css} RENAMED
File without changes
css/dist/{alerts-1800-rtl.css → alerts-1810-rtl.css} RENAMED
File without changes
css/dist/{alerts-1800.css → alerts-1810.css} RENAMED
File without changes
css/dist/{dashboard-1800-rtl.css → dashboard-1810-rtl.css} RENAMED
File without changes
css/dist/{dashboard-1800.css → dashboard-1810.css} RENAMED
File without changes
css/dist/{edit-page-1800-rtl.css → edit-page-1810-rtl.css} RENAMED
File without changes
css/dist/{edit-page-1800.css → edit-page-1810.css} RENAMED
File without changes
css/dist/{elementor-1800-rtl.css → elementor-1810-rtl.css} RENAMED
File without changes
css/dist/{elementor-1800.css → elementor-1810.css} RENAMED
File without changes
css/dist/{featured-image-1800-rtl.css → featured-image-1810-rtl.css} RENAMED
File without changes
css/dist/{featured-image-1800.css → featured-image-1810.css} RENAMED
File without changes
css/dist/{filter-explanation-1800-rtl.css → filter-explanation-1810-rtl.css} RENAMED
File without changes
css/dist/{filter-explanation-1800.css → filter-explanation-1810.css} RENAMED
File without changes
css/dist/{icons-1800-rtl.css → icons-1810-rtl.css} RENAMED
File without changes
css/dist/{icons-1800.css → icons-1810.css} RENAMED
File without changes
css/dist/{inside-editor-1800-rtl.css → inside-editor-1810-rtl.css} RENAMED
File without changes
css/dist/{inside-editor-1800.css → inside-editor-1810.css} RENAMED
File without changes
css/dist/{installation-success-1800-rtl.css → installation-success-1810-rtl.css} RENAMED
File without changes
css/dist/{installation-success-1800.css → installation-success-1810.css} RENAMED
File without changes
css/dist/{metabox-1800-rtl.css → metabox-1810-rtl.css} RENAMED
File without changes
css/dist/{metabox-1800.css → metabox-1810.css} RENAMED
File without changes
css/dist/{metabox-primary-category-1800-rtl.css → metabox-primary-category-1810-rtl.css} RENAMED
File without changes
css/dist/{metabox-primary-category-1800.css → metabox-primary-category-1810.css} RENAMED
File without changes
css/dist/{modal-1800-rtl.css → modal-1810-rtl.css} RENAMED
File without changes
css/dist/{modal-1800.css → modal-1810.css} RENAMED
File without changes
css/dist/{monorepo-1800-rtl.css → monorepo-1810-rtl.css} RENAMED
File without changes
css/dist/{monorepo-1800.css → monorepo-1810.css} RENAMED
File without changes
css/dist/{notifications-1800-rtl.css → notifications-1810-rtl.css} RENAMED
File without changes
css/dist/{notifications-1800.css → notifications-1810.css} RENAMED
File without changes
css/dist/{schema-blocks-1800-rtl.css → schema-blocks-1810-rtl.css} RENAMED
File without changes
css/dist/{schema-blocks-1800.css → schema-blocks-1810.css} RENAMED
File without changes
css/dist/{score_icon-1800-rtl.css → score_icon-1810-rtl.css} RENAMED
File without changes
css/dist/{score_icon-1800.css → score_icon-1810.css} RENAMED
File without changes
css/dist/{search-appearance-1800-rtl.css → search-appearance-1810-rtl.css} RENAMED
File without changes
css/dist/{search-appearance-1800.css → search-appearance-1810.css} RENAMED
File without changes
css/dist/{structured-data-blocks-1800-rtl.css → structured-data-blocks-1810-rtl.css} RENAMED
File without changes
css/dist/{structured-data-blocks-1800.css → structured-data-blocks-1810.css} RENAMED
File without changes
css/dist/{toggle-switch-1800-rtl.css → toggle-switch-1810-rtl.css} RENAMED
File without changes
css/dist/{toggle-switch-1800.css → toggle-switch-1810.css} RENAMED
File without changes
css/dist/{workouts-1800-rtl.css → workouts-1810-rtl.css} RENAMED
File without changes
css/dist/{workouts-1800.css → workouts-1810.css} RENAMED
File without changes
css/dist/{wpseo-dismissible-1800-rtl.css → wpseo-dismissible-1810-rtl.css} RENAMED
File without changes
css/dist/{wpseo-dismissible-1800.css → wpseo-dismissible-1810.css} RENAMED
File without changes
css/dist/{yoast-components-1800-rtl.css → yoast-components-1810-rtl.css} RENAMED
File without changes
css/dist/{yoast-components-1800.css → yoast-components-1810.css} RENAMED
File without changes
css/dist/{yoast-extensions-1800-rtl.css → yoast-extensions-1810-rtl.css} RENAMED
File without changes
css/dist/{yoast-extensions-1800.css → yoast-extensions-1810.css} RENAMED
File without changes
css/dist/{yst_plugin_tools-1800-rtl.css → yst_plugin_tools-1810-rtl.css} RENAMED
File without changes
css/dist/{yst_plugin_tools-1800.css → yst_plugin_tools-1810.css} RENAMED
File without changes
css/dist/{yst_seo_score-1800-rtl.css → yst_seo_score-1810-rtl.css} RENAMED
File without changes
css/dist/{yst_seo_score-1800.css → yst_seo_score-1810.css} RENAMED
File without changes
inc/class-addon-manager.php CHANGED
@@ -97,7 +97,15 @@ class WPSEO_Addon_Manager {
97
  add_action( 'admin_init', [ $this, 'validate_addons' ], 15 );
98
  add_filter( 'pre_set_site_transient_update_plugins', [ $this, 'check_for_updates' ] );
99
  add_filter( 'plugins_api', [ $this, 'get_plugin_information' ], 10, 3 );
 
 
100
 
 
 
 
 
 
 
101
  foreach ( array_keys( $this->get_installed_addons() ) as $plugin_file ) {
102
  add_action( 'in_plugin_update_message-' . $plugin_file, [ $this, 'expired_subscription_warning' ], 10, 2 );
103
  }
97
  add_action( 'admin_init', [ $this, 'validate_addons' ], 15 );
98
  add_filter( 'pre_set_site_transient_update_plugins', [ $this, 'check_for_updates' ] );
99
  add_filter( 'plugins_api', [ $this, 'get_plugin_information' ], 10, 3 );
100
+ add_action( 'plugins_loaded', [ $this, 'register_expired_messages' ], 10 );
101
+ }
102
 
103
+ /**
104
+ * Registers "expired subscription" warnings to the update messages of our addons.
105
+ *
106
+ * @return void
107
+ */
108
+ public function register_expired_messages() {
109
  foreach ( array_keys( $this->get_installed_addons() ) as $plugin_file ) {
110
  add_action( 'in_plugin_update_message-' . $plugin_file, [ $this, 'expired_subscription_warning' ], 10, 2 );
111
  }
inc/class-wpseo-meta.php CHANGED
@@ -722,9 +722,9 @@ class WPSEO_Meta {
722
  * Deletes a meta value for a post.
723
  *
724
  * @param string $key The internal key of the meta value to change (without prefix).
725
- * @param int $post_id The ID of the post to change the meta for.
726
  *
727
- * @return bool Whether the value was changed.
728
  */
729
  public static function delete( $key, $post_id ) {
730
  return delete_post_meta( $post_id, self::$meta_prefix . $key );
722
  * Deletes a meta value for a post.
723
  *
724
  * @param string $key The internal key of the meta value to change (without prefix).
725
+ * @param int $post_id The ID of the post to delete the meta for.
726
  *
727
+ * @return bool Whether the delete was successful or not.
728
  */
729
  public static function delete( $key, $post_id ) {
730
  return delete_post_meta( $post_id, self::$meta_prefix . $key );
inc/health-check-default-tagline.php DELETED
@@ -1,66 +0,0 @@
1
- <?php
2
- /**
3
- * WPSEO plugin file.
4
- *
5
- * @package WPSEO\Internals
6
- */
7
-
8
- /**
9
- * Represents the health check for the default tagline.
10
- */
11
- class WPSEO_Health_Check_Default_Tagline extends WPSEO_Health_Check {
12
-
13
- /**
14
- * The name of the test.
15
- *
16
- * @var string
17
- */
18
- protected $test = 'yoast-health-check-default-tagline';
19
-
20
- /**
21
- * Runs the test.
22
- */
23
- public function run() {
24
- if ( ! $this->has_default_tagline() ) {
25
- $this->label = esc_html__( 'You changed the default WordPress tagline', 'wordpress-seo' );
26
- $this->status = self::STATUS_GOOD;
27
- $this->badge['color'] = 'blue';
28
- $this->description = esc_html__( 'You are using a custom tagline or an empty one.', 'wordpress-seo' );
29
-
30
- return;
31
- }
32
-
33
- $this->label = esc_html__( 'You should change the default WordPress tagline', 'wordpress-seo' );
34
- $this->status = self::STATUS_RECOMMENDED;
35
- $this->badge['color'] = 'red';
36
-
37
- $this->description = esc_html__( 'You still have the default WordPress tagline. Even an empty one is probably better.', 'wordpress-seo' );
38
-
39
- $query_args = [
40
- 'autofocus[control]' => 'blogdescription',
41
- ];
42
- $customize_url = add_query_arg( $query_args, wp_customize_url() );
43
-
44
- $this->actions = sprintf(
45
- /* translators: 1: link open tag; 2: link close tag. */
46
- esc_html__( '%1$sYou can change the tagline in the customizer%2$s.', 'wordpress-seo' ),
47
- '<a href="' . esc_attr( $customize_url ) . '">',
48
- '</a>'
49
- );
50
- }
51
-
52
- /**
53
- * Returns whether or not the site has the default tagline.
54
- *
55
- * @return bool
56
- */
57
- public function has_default_tagline() {
58
- $blog_description = get_option( 'blogdescription' );
59
- $default_blog_description = 'Just another WordPress site';
60
-
61
- // We are using the WordPress internal translation.
62
- $translated_blog_description = __( 'Just another WordPress site', 'default' );
63
-
64
- return $translated_blog_description === $blog_description || $default_blog_description === $blog_description;
65
- }
66
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/dist/addon-installation.js CHANGED
@@ -1,5 +1,5 @@
1
- !function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=215)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.yoast.propTypes},105:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o,r,a=n(5);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function s(e){return a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 425 456.27","aria-hidden":"true"},e),o||(o=a.createElement("path",{d:"M73 405.26a66.79 66.79 0 01-6.54-1.7 64.75 64.75 0 01-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 01-5.08-4.19 69.21 69.21 0 01-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 01-3.44-5.64 68.29 68.29 0 01-8.29-32.55V142.13a68.26 68.26 0 018.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0114.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0173 75.09a68.75 68.75 0 0113.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 000 142.13v196.09A86.84 86.84 0 0086.75 425h11.32v-18.35H86.75A68.75 68.75 0 0173 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 018.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 01391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 018.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 00-56.45-81.28z"})),r||(r=a.createElement("path",{d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 010 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z",stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81})))}},13:function(e,t){e.exports=window.yoast.styledComponents},15:function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},2:function(e,t){e.exports=window.wp.i18n},21:function(e,t){e.exports=window.wp.components},215:function(e,t,n){"use strict";n.r(t);var o,r=n(0),a=n(29),i=n.n(a),s=n(15),c=n.n(s),l=n(1),u=n.n(l),d=n(4),p=n(2),f=n(13),b=n.n(f),m=n(51),y=n(105),w=b.a.div(o||(o=c()(["\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\tgap: 8px;\n"]))),O=function(e){var t=Object(r.useState)(!0),n=i()(t,2),o=n[0],a=n[1];function s(){a(!1)}var c,l=Object(p.sprintf)(
2
  /* translators: %s expands to Yoast */
3
  Object(p.__)("%s SEO installation","wordpress-seo"),"Yoast"),u=Object(p.__)("the following addons","wordpress-seo");return 1===e.addons.length&&(u=e.addons[0]),1!==e.addons.length&&(c=Object(r.createElement)("ul",{className:"ul-disc"},e.addons.map((function(e,t){return Object(r.createElement)("li",{key:"addon-"+t},e)})))),o?Object(r.createElement)(m.a,{title:l,onRequestClose:s,icon:Object(r.createElement)(y.a,null),isDismissible:!1},Object(r.createElement)("p",null,Object(p.sprintf)(
4
  /* translators: %s expands to Yoast SEO Premium */
5
- Object(p.__)("Please confirm below that you would like to install %s on this site.","wordpress-seo"),u)),c,Object(r.createElement)(w,null,Object(r.createElement)(d.Button,{onClick:s,id:"close-addon-installation-dialog"},Object(p.__)("Cancel","wordpress-seo")),Object(r.createElement)(d.Button,{onClick:function(){window.location.href="admin.php?page=wpseo_licenses&action=install&nonce="+e.nonce},id:"continue-addon-installation-dialog",className:"yoast-button--primary"},Object(p.__)("Install and activate","wordpress-seo")))):null};O.propTypes={nonce:u.a.string.isRequired,addons:u.a.array},O.defaultProps={addons:[]};var j=O,v=document.createElement("div");v.setAttribute("id","wpseo-app-element"),document.getElementById("extensions").append(v),Object(r.render)(Object(r.createElement)(j,{nonce:wpseoAddonInstallationL10n.nonce,addons:wpseoAddonInstallationL10n.addons}),v)},26:function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},n.apply(this,arguments)}e.exports=n},29:function(e,t,n){var o=n(64),r=n(65),a=n(66);e.exports=function(e,t){return o(e)||r(e,t)||a()}},38:function(e,t,n){var o=n(80);e.exports=function(e,t){if(null==e)return{};var n,r,a=o(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},4:function(e,t){e.exports=window.yoast.componentsNew},5:function(e,t){e.exports=window.React},51:function(e,t,n){"use strict";n.d(t,"b",(function(){return d}));var o=n(26),r=n.n(o),a=n(38),i=n.n(a),s=n(0),c=n(1),l=n.n(c),u=n(21),d="yoast yoast-gutenberg-modal",p=function(e){var t=e.title,n=e.className,o=e.showYoastIcon,a=e.additionalClassName,c=i()(e,["title","className","showYoastIcon","additionalClassName"]),l=o?Object(s.createElement)("span",{className:"yoast-icon"}):null;return Object(s.createElement)(u.Modal,r()({title:t,className:"".concat(n," ").concat(a),icon:l},c),e.children)};p.propTypes={title:l.a.string,className:l.a.string,showYoastIcon:l.a.bool,children:l.a.oneOfType([l.a.node,l.a.arrayOf(l.a.node)]),additionalClassName:l.a.string},p.defaultProps={title:"Yoast SEO",className:d,showYoastIcon:!0,children:null,additionalClassName:""},t.a=p},64:function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},65:function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],_n=!0,o=!1,r=void 0;try{for(var a,i=e[Symbol.iterator]();!(_n=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);_n=!0);}catch(e){o=!0,r=e}finally{try{_n||null==i.return||i.return()}finally{if(o)throw r}}return n}}},66:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},80:function(e,t){e.exports=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}}});
1
+ !function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=215)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.yoast.propTypes},104:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o,r,a=n(5);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function s(e){return a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 425 456.27","aria-hidden":"true"},e),o||(o=a.createElement("path",{d:"M73 405.26a66.79 66.79 0 01-6.54-1.7 64.75 64.75 0 01-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 01-5.08-4.19 69.21 69.21 0 01-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 01-3.44-5.64 68.29 68.29 0 01-8.29-32.55V142.13a68.26 68.26 0 018.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0114.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0173 75.09a68.75 68.75 0 0113.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 000 142.13v196.09A86.84 86.84 0 0086.75 425h11.32v-18.35H86.75A68.75 68.75 0 0173 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 018.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 01391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 018.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 00-56.45-81.28z"})),r||(r=a.createElement("path",{d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 010 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z",stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81})))}},13:function(e,t){e.exports=window.yoast.styledComponents},15:function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},2:function(e,t){e.exports=window.wp.i18n},21:function(e,t){e.exports=window.wp.components},215:function(e,t,n){"use strict";n.r(t);var o,r=n(0),a=n(29),i=n.n(a),s=n(15),c=n.n(s),l=n(1),u=n.n(l),d=n(4),p=n(2),f=n(13),b=n.n(f),m=n(50),y=n(104),w=b.a.div(o||(o=c()(["\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\tgap: 8px;\n"]))),O=function(e){var t=Object(r.useState)(!0),n=i()(t,2),o=n[0],a=n[1];function s(){a(!1)}var c,l=Object(p.sprintf)(
2
  /* translators: %s expands to Yoast */
3
  Object(p.__)("%s SEO installation","wordpress-seo"),"Yoast"),u=Object(p.__)("the following addons","wordpress-seo");return 1===e.addons.length&&(u=e.addons[0]),1!==e.addons.length&&(c=Object(r.createElement)("ul",{className:"ul-disc"},e.addons.map((function(e,t){return Object(r.createElement)("li",{key:"addon-"+t},e)})))),o?Object(r.createElement)(m.a,{title:l,onRequestClose:s,icon:Object(r.createElement)(y.a,null),isDismissible:!1},Object(r.createElement)("p",null,Object(p.sprintf)(
4
  /* translators: %s expands to Yoast SEO Premium */
5
+ Object(p.__)("Please confirm below that you would like to install %s on this site.","wordpress-seo"),u)),c,Object(r.createElement)(w,null,Object(r.createElement)(d.Button,{onClick:s,id:"close-addon-installation-dialog"},Object(p.__)("Cancel","wordpress-seo")),Object(r.createElement)(d.Button,{onClick:function(){window.location.href="admin.php?page=wpseo_licenses&action=install&nonce="+e.nonce},id:"continue-addon-installation-dialog",className:"yoast-button--primary"},Object(p.__)("Install and activate","wordpress-seo")))):null};O.propTypes={nonce:u.a.string.isRequired,addons:u.a.array},O.defaultProps={addons:[]};var j=O,v=document.createElement("div");v.setAttribute("id","wpseo-app-element"),document.getElementById("extensions").append(v),Object(r.render)(Object(r.createElement)(j,{nonce:wpseoAddonInstallationL10n.nonce,addons:wpseoAddonInstallationL10n.addons}),v)},26:function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},n.apply(this,arguments)}e.exports=n},29:function(e,t,n){var o=n(59),r=n(60),a=n(61);e.exports=function(e,t){return o(e)||r(e,t)||a()}},38:function(e,t,n){var o=n(79);e.exports=function(e,t){if(null==e)return{};var n,r,a=o(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},4:function(e,t){e.exports=window.yoast.componentsNew},5:function(e,t){e.exports=window.React},50:function(e,t,n){"use strict";n.d(t,"b",(function(){return d}));var o=n(26),r=n.n(o),a=n(38),i=n.n(a),s=n(0),c=n(1),l=n.n(c),u=n(21),d="yoast yoast-gutenberg-modal",p=function(e){var t=e.title,n=e.className,o=e.showYoastIcon,a=e.additionalClassName,c=i()(e,["title","className","showYoastIcon","additionalClassName"]),l=o?Object(s.createElement)("span",{className:"yoast-icon"}):null;return Object(s.createElement)(u.Modal,r()({title:t,className:"".concat(n," ").concat(a),icon:l},c),e.children)};p.propTypes={title:l.a.string,className:l.a.string,showYoastIcon:l.a.bool,children:l.a.oneOfType([l.a.node,l.a.arrayOf(l.a.node)]),additionalClassName:l.a.string},p.defaultProps={title:"Yoast SEO",className:d,showYoastIcon:!0,children:null,additionalClassName:""},t.a=p},59:function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},60:function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],_n=!0,o=!1,r=void 0;try{for(var a,i=e[Symbol.iterator]();!(_n=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);_n=!0);}catch(e){o=!0,r=e}finally{try{_n||null==i.return||i.return()}finally{if(o)throw r}}return n}}},61:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},79:function(e,t){e.exports=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}}});
js/dist/admin-modules.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(e){var t={};function a(c){if(t[c])return t[c].exports;var l=t[c]={i:c,l:!1,exports:{}};return e[c].call(l.exports,l,l.exports,a),l.l=!0,l.exports}a.m=e,a.c=t,a.d=function(e,t,c){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:c})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(a.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var l in e)a.d(c,l,function(t){return e[t]}.bind(null,l));return c},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=185)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.yoast.propTypes},110:function(e,t,a){"use strict";a.d(t,"a",(function(){return d}));var c=a(29),l=a.n(c),n=a(0),r=a(1),o=a.n(r),i=a(2),s=a(6),p=a(4),u=a(8);function d(e){var t=e.name,a=e.title,c=e.subtitle,r=e.usps,o=e.id,d=e.image,m=e.finishableSteps,f=e.finishedSteps,h=e.upsellLink,z=e.upsellText,E=e.workout,b=e.badges,g=e.blocked,w=Object(s.useDispatch)("yoast-seo/workouts"),k=w.openWorkout,M=w.toggleWorkout,v=Object(s.useSelect)((function(e){return e("yoast-seo/workouts").getActiveWorkout()}),[]),O=Object(n.useState)(!1),y=l()(O,2),j=y[0],F=y[1],B=E,A=d;Object(n.useEffect)((function(){m&&f&&f.length===m.length?F(!0):F(!1)}),[f,m]);var x=Object(n.useMemo)((function(){return f&&0!==f.length?f.length<m.length?Object(i.__)("Continue workout!","wordpress-seo"):Object(i.__)("Do workout again","wordpress-seo"):Object(i.__)("Start workout!","wordpress-seo")}),[f,m]),C=Object(n.useCallback)((function(){k(t),j&&M(t)}),[E,j,k,M]),_=Object(u.makeOutboundLink)(),S=z||Object(i.sprintf)(
2
  /* translators: %s : Expands to the add-on name. */
3
  Object(i.__)("Unlock with %s!","wordpress-seo"),"Premium"),D=E&&!g?"":" card-disabled";return Object(n.createElement)(n.Fragment,null,!v&&Object(n.createElement)("div",{id:o,className:"card card-small".concat(D)},Object(n.createElement)("h2",null,a," ",b),Object(n.createElement)("h3",null,c),Object(n.createElement)("div",{className:"workout-card-content-flex"},Object(n.createElement)("ul",{id:"".concat(o,"-usp-list"),className:"yoast-list--usp"},r.map((function(e,t){return Object(n.createElement)("li",{id:"".concat(o,"-usp-").concat(t),key:"".concat(o,"-").concat(t)},e)}))),d&&Object(n.createElement)(A,null)),Object(n.createElement)("span",null,!g&&E&&Object(n.createElement)(p.NewButton,{id:"".concat(o,"-action-button"),className:"yoast-button yoast-button--".concat(j?"secondary":"primary"),onClick:C},x),!E&&Object(n.createElement)(_,{id:"".concat(o,"-upsell-button"),href:h,className:"yoast-button yoast-button-upsell"},S,Object(n.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})),m&&f&&Object(n.createElement)("div",{className:"workout-card-progress"},Object(n.createElement)(p.ProgressBar,{id:"".concat(o,"-progress"),max:m.length,value:f.length}),Object(n.createElement)("label",{htmlFor:"".concat(o,"-progress")},Object(n.createElement)("i",null,Object(i.sprintf)(// translators: %1$s: number of finished steps, %2$s: number of finishable steps
4
- Object(i.__)("%1$s/%2$s steps completed","wordpress-seo"),f.length,m.length))))),g&&E&&Object(n.createElement)("div",{id:"".concat(o,"-blocked-section"),className:"workout-card-blocked"},Object(n.createElement)("p",{id:"".concat(o,"-blocked-title"),className:"workout-card-blocked-title"},Object(i.__)("Configuration required","wordpress-seo")),Object(n.createElement)("p",{id:"".concat(o,"-blocked-description")},Object(i.__)("Please finish the Configuration workout first in order for this workout to be effective.","wordpress-seo")))),E&&v===t&&Object(n.createElement)(B,null))}d.propTypes={name:o.a.string.isRequired,title:o.a.string.isRequired,subtitle:o.a.string.isRequired,usps:o.a.arrayOf(o.a.string).isRequired,id:o.a.string,finishableSteps:o.a.arrayOf(o.a.string),finishedSteps:o.a.arrayOf(o.a.string),image:o.a.func,upsellLink:o.a.string,upsellText:o.a.string,workout:o.a.func,badges:o.a.arrayOf(o.a.element),blocked:o.a.bool},d.defaultProps={id:"",finishableSteps:null,finishedSteps:null,image:null,upsellLink:null,upsellText:null,workout:null,badges:[],blocked:!1}},160:function(e,t,a){"use strict";a.d(t,"a",(function(){return f}));var c,l=a(0),n=a(1),r=a.n(n),o=a(2),i=a(6),s=a(110),p=a(5);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c])}return e}).apply(this,arguments)}function d(e){return p.createElement("svg",u({viewBox:"0 0 296 317",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},e),c||(c=p.createElement("g",{transform:"matrix(-1 0 0 1 295.274 .96)",fill:"none"},p.createElement("circle",{fill:"#F0ECF0",cx:131.18,cy:184.261,r:131.18}),p.createElement("g",{fill:"#EAB881"},p.createElement("path",{d:"M236.42 96.56c-.15-.43-.29-.87-.44-1.3.15.43.29.87.44 1.3zm-31.98 59.96a11 11 0 00-2.11.82c.67-.3 1.4-.56 2.11-.82zm-2.11.82a58.65 58.65 0 00-6 2.81c2.67-1.11 4.56-2.11 6-2.81z"}),p.createElement("path",{d:"M293.49 164.27c-8.58-10.51-1.05-27.75-34.52-86.31-3-5.22-5.26-14.52-12.85-17.58-9.11-3.67-12.77-9.16-21.89-12.83-6.85-2.76-4-1.36-3.21-.49 1.49 1.67-2-1.31-5.72 7.13-.38.85 2.86 1.63 4 5 .36 1.07.49 1.14 1.23 1.33 4.71 1.2 6.52 6.89 4.2 10.06-.7-1.43.18-6-4.68-6.36 2 1.44 4.06 3.42 4 5.88 9.4 16.64 17.56 14 20 15 12.43 4.92-17.28 64.57 23 86.13-7.34-1.94-14.31-5.46-23.92-1.33 7.28-5.53 2.46-7.57.86-10.89-2.17-2.92-2.29-11.71-2.6-22.62a103.2 103.2 0 001.09 20.32 54.8 54.8 0 00-38-.12c5.19-1.21 15.45 48.34 20.15 53.9 3.8-1.4 23-8.57 35.17-14.11 21.52-9.81 34.94-25.76 35.44-28.31.24-1.47-.85-2.71-1.75-3.8zm-41.62-99.13c.06.1 8.87 19.59.56 1.21-.2-.44-.38-.84-.56-1.21z"}),p.createElement("path",{d:"M215.17 56.04c.46.17 2 1.49-.23-.93-.88 2.39-.6 4.42 2 6.74 1.06-3 0-3.51-1.77-5.81zm-4.33 23.82c.28-.07.36.05-.35-.38l.35.38z"})),p.createElement("path",{d:"M203.74 73.77c0 .4-.33-.06 2.94 2.38l-2.94-2.38zm5.26 4.27c2.3 2 3.13 2.53 2.19 1.77L209 78.04zm6.17-22c.05.06 1.79 2.31 1.83 2.38-.49-1.27-.83-2.01-1.83-2.38zm-.52 11.73c1.38-.08.73 1.34 2.16-.5.52-.67 1.91-3.21.71-2.6.56-2.33-.09-6.71-.19-4.75-.13 2.46-3.7 10.77-8.67 9.87a7.6 7.6 0 003.25.22c2.74-.39 2.36-.97 2.74-2.24zm-5.99 2.02a6.27 6.27 0 01-1.42-.59c.42.309.906.51 1.42.59z",fill:"#D38053"}),p.createElement("path",{d:"M214.2 69.33a4.13 4.13 0 01-.85 3.73c3.38-1.27 3.66-3.51 2.48-4.78-1.18-1.27-1.34.03-1.63 1.05zm-32.31 1.85c.11.84 2.61 2.33 3.3 2.78a13.33 13.33 0 01-3.3-2.78zm10 4.39c-.21.13-.45.1.31 0-.28-.12-.13-.1-.31 0zm-6.51-1.53a29.79 29.79 0 004.51 2.28c2.54-1.52.8.82-4.51-2.28z",fill:"#D38053"}),p.createElement("path",{d:"M202.61 77.13c-.91.35-5.67.26-10.41-1.57-6.74 1-6.41 12.08-1 12.4 8.18.48 10.11 3 13.48 1.92 6.82-2.28 2.4-11.62-2.07-12.75z",fill:"#EAB881"}),p.createElement("path",{d:"M217.52 64.67a4.92 4.92 0 012.54-.48c4.87.36 4 5 4.68 6.36 2.31-3.16.52-8.86-4.2-10.06-2.25-.57.56-2.91-7.86-7.27a10.79 10.79 0 014.84 11.45zm15.23 112.51c-6.79 1.78-17.9 1.65-21-5.2 3.71 11.1 9 26.86 12.86 37.68 2.88-.89 7.41-1.86 8.89-3.4-3.52-4.16-8.67-10.41-8.74-15.89-.07-5.48 2.92-11.16 7.99-13.19zm-26.31-20.36c-.14.17-.15 0 .53 1.27-.18-.46-.35-.89-.53-1.27z",fill:"#D38053"}),p.createElement("path",{d:"M246.11 86.55c-2.26-3.64-4.21.58 2.23-3.3-10.49 4.56-18.5-2.9-24.34-13.21-.05 1.82-1.23 3.13-2.61 4.36-9.64 8.64-10.89 4.95-12.39 3.64-8-7-3.86-2.44-6.09-1-.71.46 4.08 1 5.31 7.11a5.26 5.26 0 01-2.67 5.38c7.41 5.8 14.7 2.46 25.68-4.09 14.67 22.17 7.38 66.27 12.78 73.54 1.6 3.32 6.42 5.36-.86 10.89 9.61-4.13 16.58-.61 23.92 1.33-37.63-20.16-14.29-73.91-20.96-84.65z",fill:"#D38053"}),p.createElement("path",{d:"M190.92 211.52a81.3 81.3 0 00-9.26-12.14c6.41 7.94 17.18 24.84 9.26 12.14z",fill:"#A52A6A"}),p.createElement("path",{d:"M205.85 156.04c-31.36 13.6-26.45 13.21-42 8.34-18.87-5.91-37.14-.76-32.1-1.07 11.82-.72 29.07 49.31 35.44 66.88l62.17-10.35c.64 7.64-20.9-59.34-23.51-63.8z",fill:"#A52A6A"}),p.createElement("path",{d:"M214.23 180.31c-8.73 13.9-32.09 11.23-35.71-4.78 8 32.54 8.23 20.07-9.5 9.69 25.36 25.8 22.47 41.74 28.27 44.5 3.49 1.65 13.65-3.77 26.3-7.69 3.3-1 4.88-1.61 4.76-2.19l-14.12-39.53z",fill:"#7C2050"}),p.createElement("path",{d:"M192.93 72.9a3 3 0 01-.92 2.58 25.5 25.5 0 009.52 1.8c2.47-.02.6.27-8.6-4.38z",fill:"#EAB881"}),p.createElement("path",{d:"M220.06 64.19c-3.36-.25-1 1.37-4.23 4.09 1.18 1.27.9 3.51-2.48 4.78a4.07 4.07 0 00.85-3.73c-2.67 1.26-5.78.74-7-.13 4.38 2.46 8.07-2.64 9.69-7.37-2.58-2.31-2.87-4.34-2-6.74-1.19-1.31-4.4-3.35.19-.49a25 25 0 012.94-5.18c1.27-1.71 5.22-.83 1.65-3.46-1.76-1.3-8.08-2.63-8.81-2.59a4.11 4.11 0 00-3.06 1.53c-4.33-1.59-9.29-1.86-11.78 2-4.24-3.58-9.38 2.15-7.77 6.69 1.44 4-1.86.15-7.06 14.62-1.27 3.54 5.07 7 8.77 7.58 7.7 1.25-18.75-8.93 2.24-.45 3.4 2.66 5.28 1.49 10.44 1.8 1.08-.47 1-1.92 1.05-3.09 0-1.84 6.81 8.52 10.32 5.44 8.71-4.45 13.99-9.58 6.05-15.3z",fill:"#EAB881"}),p.createElement("path",{d:"M192.51 69.95c.38.94.28.45 0-2.57a4.18 4.18 0 000 2.57z",fill:"#EAB881"}),p.createElement("path",{d:"M194.68 57.19a15.87 15.87 0 00.36-1.77c-.14.62-.25 1.18-.36 1.77z",fill:"#D38053"}),p.createElement("path",{d:"M59 167.04c-7.75 3.79-5.09 3.25-3.46 3.59a74.937 74.937 0 003.46-3.59zm69-3.33l-.77-.17c.242.112.504.17.77.17z",fill:"#A52A6A"}),p.createElement("path",{d:"M200.06 262.44c1.23-17.17 10-35.47-31-77.22-8.89-9-13.84-13.86-31.69-19.13 6.35 7.45-.5 40.2-3.43 38.36-25.84-16.17-70.31-19.82-79.39-32.84 6.7-6.24-28.46 5.48-39.7 16.24-3.57 3.42-8.13 12.77-12.22 22.43 8.53 42.43 41.23 74.66 42.5 72 3.64-7.7 7.17-15.66 6.64-14.47 11.84 12.23 19.29 19.48 23.78 35.23A131 131 0 00201 295.25c-.06-16.21-1.3-27.79-.94-32.81zm-145.78-.4c.1 0 0-.08-1.06 2.38.36-.79.71-1.59 1.06-2.38z",fill:"#A52A6A"}),p.createElement("path",{d:"M53.29 267.84c5.65 7.53 33.06 17 44.3 27a280 280 0 01-35.06-36.66 203.23 203.23 0 0049.54 9.79l-47.15-13.12c.667-5.7 1.333-11.393 2-17.08-3.35 4.49-11.74 22.07-13.63 30.07zm125.12-18.17c-12.42-1.14-45.91 6.44-50.79 17 18.32-12.22 51.08-16.81 54.55.56-.17-1.02 12.83-16.03-3.76-17.56z",fill:"#7C2050"}),p.createElement("path",{d:"M124.39 155.75c0 .21.1.43.16.64-.06-.21-.11-.43-.16-.64zm-57.05-39.34c-.59 0-.52-.25 0 1.56 1.53 2.37.74 1.51 0-1.56zm56.8 38.33l.12.46-.12-.46zm-69.63 16.87c9.09 13 53.53 16.65 79.39 32.84 2.16 1.35 8.75-21.75 4.69-36.08-1.9-6.72-10.19-4.65-10.62-4.66-1 0-1.46-.64-1.83-1.66-.68-1.91-1.52-5.36-1.48-5.21-1.23 4.07-1.68 6.59-3.49 7.5-6.48 3.24-37.85-9.4-52.25-41 .62 2.53 1.06 5.26-1 3.64 3.8 16.54 5.92 26.64-13.41 44.63z",fill:"#EAB881"}),p.createElement("path",{d:"M107.65 148.64c-20.65-5.6-33.72-12.94-37.72-32.87-3.26 1.48-3.22-1.55-1 7.6 14.4 31.56 45.77 44.21 52.25 41 2.15-1.07 3.54-7.31 3.38-8-2.21-8.85 2.2-2.53-16.91-7.73z",fill:"#D38053"}),p.createElement("path",{d:"M140.75 66.31c-3-9.44-7.65-19.56-11.74-25.21a15.73 15.73 0 01-8.82-3.17c-7.48 8.26-15.45 4.83-16.65 0-1.68 5.91-9.62 9-14.83 5.74a6.35 6.35 0 004.78-2.95 18.42 18.42 0 01-15.21-2.12c-6-.8-4.66-.93-1.31 4.28 7.29 11.35 4.24 15-4.14 23.72C62.7 77.12 70.69 82.04 74 85.14c6.7 6.17 1.74 13-5.65 12.35 4.88 8.65 5.25 9.2 5.41 10.7.34 3.25-1 6.28-3.86 7.58 4 19.73 16.77 27.17 37.72 32.87 6.48 1.76 13.43 3.33 20 1.88 6.57-1.45 12.87-6.74 13.24-13.51.22-4.11-1.69-10-1.26-14 .68-6.64 5.94-5 6.24-21a112.12 112.12 0 00-5.1-35.45",fill:"#EAB881"}),p.createElement("path",{d:"M121.63 67.04c-.14 1.89.33 11.5 1.43 14.94 2.29 7.11 7.13 6.6 10.67 8.13 4.36 1.9 5.64 6.66-1.58 8.75-3.85 1.12-7.92 2.25-11.82 1.33 1.4 1.63 3.81 1.84 6 1.84 14.73 0 15.5-9 13.14-12.25-3.67-5.06-12.38-1.31-15.58-12.81-.81-2.74.11-8.51-2.26-9.93z",fill:"#D38053"}),p.createElement("path",{d:"M110.39 112.3c-10.66-3-13.86-7.32-14.77-5.86-1.15 1.83 18.2 12.62 29.48 6.84-5.03.06-9.69.44-14.71-.98zM86.23 73.61c1.75 0 7-6 8.82-7.15 3.63-2.2 7.63-1.08 11.78-2-.51-1.34-3.51-5.43-4.18-5.29-3.17.68-9.2.3-9.2.3s-13.18 14.27-7.22 14.14zm39.37-15.85c-5.09.43-3.23 1.61-2.29 5.5a18.92 18.92 0 0117.63 3.35c-5.31-8.47-9.64-9.34-15.34-8.85z",fill:"#000"}),p.createElement("path",{d:"M91.39 85.5c4.56 6.52 15.3 4.23 18.45-1.77-.92-5.69-16.99-9.33-18.45 1.77zm9.87 1.69c-6.09 3.06-8.18-7.15-1.85-7.15 4.07 0 5.74 5.19 1.85 7.15zm25.58-4.58c2.38 3.65 14 2.53 14.28-3.35-4.19-9.42-16-4.69-14.28 3.35zm8.47-1.63a3.56 3.56 0 01-5.31 1.29c-2.29-1.87-1-6.45 2.58-6a3.57 3.57 0 012.73 4.71z",fill:"#FFF"}),p.createElement("path",{d:"M126.72 79.53c1.76-6.07 10.8-8.36 14.4-.27 1.07 2.38.95-6.79-5.3-7.23-3.92-.28-10.17.09-9.49 10a11.4 11.4 0 01.39-2.5zm-27.31.51c-6.34 0-4.24 10.2 1.85 7.15 3.89-1.95 2.23-7.15-1.85-7.15z",fill:"#000"}),p.createElement("path",{d:"M132.6 76.26c-3.61-.44-4.87 4.14-2.58 6a3.4 3.4 0 102.58-6zm-63.68 47.11c-2.54-10.52-.32-4.66-9.77-9 5.12 9 12.19 18.98 9.77 9zM129 41.1c5.48 7.57 6.11 13.42 5.52 9.56a51.53 51.53 0 00-2.44-9.71 16.7 16.7 0 01-3.08.15z",fill:"#000"}),p.createElement("path",{d:"M137.16 26.23c3.42-12.58-5.26-13.54-7.57-11.18A10.51 10.51 0 00113.3 5.04c-3.11-5.35-12.48-8.78-24.25 2.14C88-.5 72.44 1.9 70.12 17.68c-5.8 1.09-8.67 4.26-10 6.8-5.74.56-24.3 24.19-25.12 32.06-.51 4.69 2 9.11 3.31 13.65.84 2.89 1.22 6 2.75 8.59 4 6.77 0 3.56 5 2.71 4.44-.75 16.29 5.15 22.4 16 3.66.32 7.38-.9 8.67-5.17 1.72-5.69-6.59-8.6-8.54-13.18-4.08-9.57 10.77-15 12.37-23.84 1-5.78-3.41-11.93-7.06-17.09 1.24 0 2.7.15 4.46.38-.16-.1-.3-.21-.45-.32a17.59 17.59 0 0015.66 2.44 6.35 6.35 0 01-4.78 2.95c5.21 3.24 13.15.17 14.83-5.74 1.2 4.84 9.14 8.31 16.65 0a16.12 16.12 0 0018.08.78 11.39 11.39 0 01-5.61-4.34c3.19.61 6.37-1.64 7.88-4.5 1.51-2.86 1.74-6.22 1.9-9.46a9.68 9.68 0 01-5.36 5.83zm-77.44 3.81l-.08-.11.08.11zm-.5-3.51v.09c0-.37.06-.82.09-1.36-.05.48-.07.89-.09 1.24v.03zm14.53 7.72a18.09 18.09 0 004.06 4 16.75 16.75 0 01-4.06-4.03v.03zm-.59-.86l.24.35-.24-.35z",fill:"#000"}),p.createElement("path",{d:"M97.49 76.04c-3.73.6-7.38 4.53-6.58 9 1-2.29 1.84-4.94 5.06-6.12 4.28-1.56 11.29-.39 13.75 4.36 1.38 2.65.02-9.24-12.23-7.24z",fill:"#000"}),p.createElement("path",{d:"M73.79 108.19c-.16-1.5-.53-2.05-5.41-10.7-6.11-10.84-17.95-16.75-22.38-16-7.48 1.27-15.82 21.55 15.3 33.82 8.33 3.28 13.12-1.13 12.49-7.12z",fill:"#EAB881"}),p.createElement("path",{d:"M96 105.92c2.11-2.9 10.26 2.05 16.39-5.72.79-1 1.41-4 3.31-3.71-5.06-.88-6.61 8.28-14.23 6.32-3.12-.81-9-5.15-10 11.67a58.56 58.56 0 014.53-8.56zm-33.55-5.55c4.3-10.34-20.92-21.24-19.6-7 .3 3.21 2.29 8.83 5.31 9.81-2.45-5.37.27-12.44 1.57-13.5 2-1.61 4.51.76 7.4 2.9-.13 1.68-2.51 2.46-2.65 4.09-.12 1.31 1.07 2.94 5.05 2a7.72 7.72 0 01-2.17 5 5.2 5.2 0 005.09-3.3zm130.32-29.93a3.7 3.7 0 01-.27-3.06c4.45-17.69 1.95-7.91-1.07-3.12-2.38 3.78-3.24 6.3.67 8.22 23 11.28 1.9-.25.67-2.04z",fill:"#D38053"}),p.createElement("path",{d:"M192.25 75.29c-2.41-1-6.47-3.9-6.5-5.61 0-1.15 4.89-8.09 3.9-14.36-1.07 1.71-6.51 12.19-6.39 14.2.23 3.86 9.09 5.81 8.99 5.77zm13.21-25.34c-.16 1.86-6.76 14.12-6.76 18.83.36 1.09 4.49 2.16 4.71 3.29-6.82-5.17 3.5-20.43 2.05-22.12z",fill:"#D38053"}))))}var m=a(35);function f(e){var t=e.workout,a=e.badges,c=e.upsellLink,n=e.upsellText,r=Object(i.useSelect)((function(e){return e("yoast-seo/workouts").getFinishedSteps(m.c.cornerstone)})),p=c||"https://yoa.st/workout-cornerstone-upsell";return Object(l.createElement)(s.a,{id:"cornerstone-workout-card",name:m.c.cornerstone,title:Object(o.__)("The cornerstone approach","wordpress-seo"),subtitle:Object(o.__)("Rank with articles you want to rank with","wordpress-seo"),usps:[Object(o.__)("Make your important articles rank higher","wordpress-seo"),Object(o.__)("Bring more visitors to your articles","wordpress-seo")],image:d,finishableSteps:m.a.cornerstone,finishedSteps:r,upsellLink:p,upsellText:n,workout:t,badges:a})}f.propTypes={workout:r.a.func,badges:r.a.arrayOf(r.a.element),upsellLink:r.a.string,upsellText:r.a.string},f.defaultProps={workout:null,badges:[],upsellLink:null,upsellText:null}},161:function(e,t,a){"use strict";a.d(t,"a",(function(){return f}));var c,l=a(0),n=a(1),r=a.n(n),o=a(2),i=a(6),s=a(110),p=a(5);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c])}return e}).apply(this,arguments)}function d(e){return p.createElement("svg",u({viewBox:"0 0 299 322",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},e),c||(c=p.createElement("g",{transform:"matrix(-1 0 0 1 298.412 0)",fill:"none"},p.createElement("circle",{fill:"#F0ECF0",cx:131.2,cy:190.029,r:131.2}),p.createElement("path",{d:"M262.5 92.23c-1 1.2-3 2.9-7.5 5a18.4 18.4 0 01-10.9 1.6c-.5-1-1-2.2-1.7-3.3l.4-.2.3-.2a14 14 0 003.3-.2c2.4.2 4.7-.6 6.9-3.2 3.1-3.9 1.7-10.7-1.3-14.6 2.6 2.5 4 5.7 6.4 8.6a231 231 0 013.3 4c.1.4 1.5 1.8.8 2.5zm-90.9 98.2a17.1 17.1 0 014 14.3c-11-7.9-22-18.9-31.8-37.8 26.5 1 39.4 8.8 39.5 8.7 43-17.2 51.7 1.5 66.8-6.3 2.3 4.7 5.3 6.3 8.4 9.4-13.5-13.9 5.7-22-5.1-57.7 7.3 0 20.8-4.8 22.9-9.7 14.8 26.3 10.5 39.9 17.8 54.6.6 1.2 2.3 6.7 3.5 8.2 2 2.8 0 7.7-2.7 10.6-29.7 32.8-68.9 33.6-93.5 36.8-6.4-4.6-13.8-8.5-21.5-13.7-1-5.1-1.2-11.2-8.3-17.4z",fill:"#F9BF8C"}),p.createElement("path",{d:"M253.4 121.03c10.8 35.8-8.4 43.8 5.1 57.8-3-3.2-6-4.8-8.4-9.5a52.999 52.999 0 01-.3-2.2 50.2 50.2 0 01-.4-5v-2l.1-3.6.1-1.8.3-3.7.4-3.7.6-5.6a153.4 153.4 0 00.6-9.5v-2a69 69 0 00-.3-7.8l-.2-1.6a10.5 10.5 0 002.4.3v-.1zm-11-25.6l1.7 3.4h-.1c-1.9-.1-2.3-2.3-2.7-2.6l-.1-.2 1.2-.6z",fill:"#DB7A53"}),p.createElement("path",{d:"M219.7 95.53c-.7-1.6-3-3-5.5-3.6.1-.011.2-.011.3 0a8.4 8.4 0 005.1-1.3l-.3-.2a1.6 1.6 0 00.2 0 3.3 3.3 0 002.7-.6 34.2 34.2 0 006.4-4 5 5 0 002-2.8l.4.3c-.7 6.5 5.4 11.5 12.1 11.9l-.3.1-.4.2-1.2.6c-3.8 1.9-11 5.7-13.6 5.6-2.9 0-6.9-2.2-9.8-3.9 1.4-.5 2.3-1.2 1.9-2.3z",fill:"#DB7A53"}),p.createElement("path",{d:"M223.7 76.23v.3a3.7 3.7 0 01-.2 1.3c-1.3-.7-2.4-1.5-2.6-2.6a3.2 3.2 0 01.3-1.7 7.1 7.1 0 012.5 2.7z",fill:"#F9BF8C"}),p.createElement("path",{d:"M253.3 91.73c-2.1 2.6-4.5 3.4-6.9 3.2a13 13 0 005.2-2.3c-6 2.7-10.5 1.1-13.8-1.5a36.9 36.9 0 01-4.7-5.3c-1.1-1.6-1.8-2.8-2.1-2.9a3 3 0 000 .3l-.3-.3a2.4 2.4 0 00-.9-2 10.2 10.2 0 00-3.2-1.9 5.5 5.5 0 012.9.6c1.6.9 1 2.1 1.8 3.1a3.3 3.3 0 00.2-3.7c-.8-1.3-4-1.1-6.1-1.3a2.3 2.3 0 000-.2l.8-1a1.3 1.3 0 01-.7-.8c-.8-1.2-2.4-2-4.2-2.6l.1-.2a16.4 16.4 0 012.2-3.5c.7-.8 5.5-.3 6.1-.6a21 21 0 002.5.7l16.8 5.1a7.8 7.8 0 013 2.5c3 3.9 4.4 10.7 1.3 14.6z",fill:"#F9BF8C"}),p.createElement("path",{d:"M228.6 85.73a34.2 34.2 0 01-6.4 4 3.3 3.3 0 01-2.6.6c1.5-.6 2.1-2.3.7-2.8l-.8-3.8a10 10 0 002-.7v.1c.5.8.4 4-.4 4.6 1-.2 2.2-3.1 2.5-4a1.3 1.3 0 00-.6-1.5 5.2 5.2 0 00.8-.8 6.7 6.7 0 001.3-2 6.3 6.3 0 011.5-.4 10.2 10.2 0 013.2 1.9 2.4 2.4 0 01.9 2 5 5 0 01-2.1 2.8zm-5-16.3a16.4 16.4 0 00-2.2 3.5l-.1.2a39 39 0 00-2.4-.6 9 9 0 012.3 1 3.2 3.2 0 00-.3 1.7c.3 1.1 1.3 2 2.6 2.6a11.3 11.3 0 01-.9 1.8 9.3 9.3 0 01-2.7 3.3l-.5.3-3.4-15.4-2.1-.3a4.4 4.4 0 012.7-1.4 35.6 35.6 0 0113 2.7c-.5.3-5.3-.2-6 .6z",fill:"#F9BF8C"}),p.createElement("path",{d:"M219.4 83.23a6 6 0 01-2.8.7 7.8 7.8 0 01-1.5-.2 4 4 0 001.5.2 9.8 9.8 0 003-.2l.7 3.8c1.4.5.8 2.2-.7 2.8h-.1a1.6 1.6 0 01-.2 0 39 39 0 00-7-3c-.3-3.4-.6-6.7-2-9.7 1.7-2.8 3.2-5.6 1.7-6.6 0 1.3-1.1 3.4-2.4 5.4a13.3 13.3 0 00-1.2-1.7 13 13 0 00-5.2-3.6c.8-1.7 1.4-3.5 3.7-3.8a24.3 24.3 0 016.9.2l2.1.3 3.5 15.4z",fill:"#F9BF8C"}),p.createElement("path",{d:"M223.7 76.23a5 5 0 01.6 3.4 7 7 0 01.8-.3 6.7 6.7 0 01-1.3 2.1 5.2 5.2 0 01-.8.8 1.7 1.7 0 00-1.2-.2l-.2 1a10 10 0 01-2 .7 9.8 9.8 0 01-3 .2 6 6 0 002.8-.7l.5-.3a9.3 9.3 0 002.7-3.3 11.3 11.3 0 001-1.9 3.7 3.7 0 00.1-1.3v-.2zm1.6 1.3c.007.1.007.2 0 .3v-.3z",fill:"#DB7A53"}),p.createElement("path",{d:"M223 82.23c.524.3.773.92.6 1.5-.3.9-1.4 3.8-2.5 4 .8-.7 1-3.8.5-4.6v-.1l.3-1a1.7 1.7 0 011.1.2z",fill:"#DB7A53"}),p.createElement("path",{d:"M201.4 91.73a3.1 3.1 0 00-.8.7c-2-.9-3.9-2.7-5.7-3.4-.5-.1-2.7-.8-2.9-1.4a13.7 13.7 0 005.2 2 43 43 0 004.2 2v.1zm.1-2.2h.1a30.3 30.3 0 005.4.4 30 30 0 003.6 1.6c-2.6-.3-5.7-1-8-.4l-2.2-1.3a2.7 2.7 0 001.1-.3zm13 2.5a1.4 1.4 0 00-.3 0 10.6 10.6 0 00-2-.4h-.4a26.6 26.6 0 01-3-1.8l1.7-.1a3.2 3.2 0 001.3-.4 1.2 1.2 0 00.5-1l6.7 2.7-6.7-3.6a39 39 0 017 3c.1.2.3.2.4.3a8.4 8.4 0 01-5.2 1.3z",fill:"#F9BF8C"}),p.createElement("path",{d:"M225 79.33a7 7 0 00-.7.3 5 5 0 00-.6-3.4 7.1 7.1 0 00-2.5-2.7 9 9 0 00-2.2-1l2.3.7c1.8.5 3.4 1.3 4.2 2.6a1.3 1.3 0 00.6.6c.2 0-.5.7-.8 1.1v.3c2.2 0 5.4-.1 6.2 1.2a3.3 3.3 0 01-.2 3.8c-.8-1-.2-2.3-1.8-3.2a5.5 5.5 0 00-3-.6 6.3 6.3 0 00-1.4.3h-.1zm6 3.9a3 3 0 010-.3c.3 0 1 1.3 2 3a23.8 23.8 0 004.8 5.2c3.3 2.6 7.8 4.2 13.8 1.6a13 13 0 01-5.2 2.2 14 14 0 01-3.3.2c-6.7-.4-12.8-5.4-12.1-11.9z",fill:"#DB7A53"}),p.createElement("path",{d:"M208.4 74.73c.478.53.913 1.099 1.3 1.7-1.4 2.2-3 4.3-3.5 5.3s-1.3 2.6-.3 3.6a38.8 38.8 0 006.4 3 1.2 1.2 0 01-.6 1 3.2 3.2 0 01-1.2.4l-1.8.1a14.4 14.4 0 00-3.6-1.9 13.4 13.4 0 01-3-1.2c0-.9-.3-2.4-.5-4 1.6-3 5-8.2 2.7-10.1.9 1.6-1.4 5.5-3 8l-.8-4a3.8 3.8 0 000-2 3.5 3.5 0 01-.2 1c-.4-1.6-.7-2.6-1-2.7-.9-.3-2 .6-3 2 1-2.2 1.5-4.1 4.7-4.1a7.3 7.3 0 012.2.4 13 13 0 015.2 3.5zm-6.1 13a39.6 39.6 0 014.7 2.2 30.3 30.3 0 01-5.3-.5 1.7 1.7 0 00.6-1.7z",fill:"#F9BF8C"}),p.createElement("path",{d:"M207 84.53c-.2-1.3 1.6-4.1 3.3-6.9a27 27 0 012 9.7l-5.3-2.8zm-7.6-11.7c.3 0 .6 1.2 1 2.7-1.2 2.7-5.5 6.5-6.7 8.9a3.4 3.4 0 00-.6 2c.2.7 2 2 4.1 3.2a13.7 13.7 0 01-5.2-2l-.4-.3a1.7 1.7 0 01-.5-.5 1.5 1.5 0 010-1.2c.5-1.2 2.8-7.5 5.2-10.9 1-1.3 2.1-2.2 3-1.9h.1z",fill:"#F9BF8C"}),p.createElement("path",{d:"M199.4 86.63a5 5 0 002 .8l.9.3a1.7 1.7 0 01-.7 1.7v.1a2.7 2.7 0 01-1.2.3c-1.8-1-3.4-2.1-4.1-2.6-.4-.3-.8-.6-.9-1a1.7 1.7 0 01.4-1c1.2-2 4-5.9 4.7-8.7l.7 4-1 1.5c-1 1.5-2.2 3.5-.8 4.6z",fill:"#F9BF8C"}),p.createElement("path",{d:"M201.2 86.03c-.5-.7-.6-.8-.4-1.7a9.9 9.9 0 01.8-1.6l.5 4a3 3 0 01-.9-.7z",fill:"#F9BF8C"}),p.createElement("path",{d:"M211.8 91.63h-1.2a30 30 0 01-3.6-1.7 39.6 39.6 0 00-4.7-2.2l-.8-.3a5 5 0 01-2-.8c-1.5-1.1-.3-3 .8-4.6l1-1.4c1.6-2.5 4-6.5 3.1-8 2.2 2-1.2 7-2.8 10.1a9.9 9.9 0 00-.7 1.6c-.3.9-.2 1 .4 1.7a3 3 0 00.9.7 13.4 13.4 0 003 1.3 14.4 14.4 0 013.6 1.9 26.6 26.6 0 003 1.7z",fill:"#DB7A53"}),p.createElement("path",{d:"M195.8 85.33a1.7 1.7 0 00-.4 1c0 .4.5.7.9.9l4 2.6c.8.5 1.6 1 2.4 1.3a4.2 4.2 0 00-1.3.6 43 43 0 01-4.2-2c-2.1-1.3-4-2.6-4-3.3a3.4 3.4 0 01.5-2c1.2-2.3 5.5-6.1 6.6-8.8a3.5 3.5 0 00.3-1 3.8 3.8 0 010 2c-.8 2.8-3.6 6.6-4.8 8.7zm11.2-.8l5.3 2.8 6.7 3.7-6.7-2.6a38.8 38.8 0 01-6.4-3c-1-1-.4-2.4.3-3.5l3.5-5.4c1.3-2.2 2.4-4 2.4-5.3 1.5 1 0 3.7-1.8 6.5s-3.6 5.6-3.2 7l-.1-.2z",fill:"#DB7A53"}),p.createElement("path",{d:"M201.4 91.73a4.2 4.2 0 011.3-.6c2.2-.5 5.3.1 7.9.4l1.2.1h.4a10.6 10.6 0 012 .3c2.4.6 4.8 2 5.4 3.6.5 1-.5 1.8-1.8 2.2a11.1 11.1 0 01-2 .4c-4.2.6-5.5 2-11.5 2.8-2.6.4-4.4-4-4.4-5.9a4.2 4.2 0 01.7-2.6 3.1 3.1 0 01.8-.7z",fill:"#F9BF8C"}),p.createElement("path",{d:"M253.4 121.03a10.5 10.5 0 01-2.4-.2 5.3 5.3 0 01-.7-.2c-2.4-.9-8.6-17.6-9.3-21-.3-1.2-.3-3.5.3-3.4.3.3.8 2.5 2.7 2.5h.1a18.4 18.4 0 0010.9-1.5c4.6-2.1 6.6-3.8 7.6-5 .6-.8-.7-2.2-.9-2.5.4-.4 1.3.1 1.7.3 5.9 2.8 10.2 12.7 13.1 19.4a2.9 2.9 0 01-.1 1.9c-2.1 5-15.6 9.8-23 9.8v-.1z",fill:"#A52A6A"}),p.createElement("path",{d:"M171.6 190.43c7 6.2 7.3 12.3 8.3 17.4l-4.4-3a17 17 0 00-3.9-14.4z",fill:"#DB7A53"}),p.createElement("path",{d:"M41.3 265.93l-.5.2c6.5 8.6 14.1 17.5 21 30.5a28.8 28.8 0 012.8 7.7c45.714 25.792 102.423 21.736 144-10.3-.8-3.5-1.7-7.1-2.8-11 12.67-7.311 18.506-22.484 14-36.4a43 43 0 00-18.4-25.1c-6.4-4.6-13.8-8.5-21.5-13.7l-4.4-3c-10.8-8-22-19-31.7-37.9l-.1-.2a71 71 0 00-19.9-2.3c12 5.8 41 37 4.2 43-29 3.1-47.3-27.9-84-28.7a47.8 47.8 0 00-13.5 9.4l-1 1a37 37 0 014.7-2c16.4 1 27 15.3 32.9 30.3 10.3 26.2 6.2 44.7-2.6 50.6-5.3 3.6-13.3 2.7-20-3.7l-1.5.7-1 .6-.7.3z",fill:"#009288"}),p.createElement("path",{d:"M29.5 189.23a37 37 0 014.5-2.2c16.4 1 27 15.3 33 30.3 10.3 26.2 6.2 44.7-2.6 50.6-5.3 3.6-13.4 2.7-20-3.7l-1.5.7c6.9-5.7 4.9-6.8 18-4.4-10.8-6.4-16.1-9.1-38.7 6.1a122.2 122.2 0 01-21.4-53.5 133 133 0 0128.7-24.1v.2z",fill:"#F9BF8C"}),p.createElement("path",{d:"M61 260.63c-13.2-2.4-11.1-1.3-18 4.4l-1 .6-.6.2-.6.3-.5.3-.6.3-1.1.6-.7.3-1 .6-.7.4-1.2.6-.6.3-1.3.7-.6.3-1.3.7-.5.3-1.4.8-.3.1-1.6 1-.6-.9-4.5-5.8c22.6-15.2 27.9-12.4 38.7-6v-.1z",fill:"#DB7A53"}),p.createElement("path",{d:"M128 207.43c-29.2 3.1-47.5-28.2-84.5-28.7 14.2-5.2 23-11.3 23-27.1 0-8.8-2.7-25.8-3.6-38.2 0 0 57 21.4 57.8 36.1l2 14.3c11.2 4.3 43.3 37.4 5.3 43.6z",fill:"#F9BF8C"}),p.createElement("path",{d:"M87.3 151.73a56.8 56.8 0 01-17.1-22.8 62.4 62.4 0 0043 22c2.5-.1 5-.2 7.3-.5v.5l.2 1.2c-4.7 11.9-7.3 19.5-33.4-.4z",fill:"#DB7A53"}),p.createElement("path",{d:"M162 280.43c.5 7.4-16.2 16.2-30.8 17.3-19.8 1.4-54.8-9.2-48-40.7 18.2 35 68.8 31.3 78.8 23.4z",fill:"#216D64"}),p.createElement("path",{d:"M122.5 72.33a9.8 9.8 0 00-2.1-.8h2.6l-.5.8zm-9.9.8a4.8 4.8 0 00-.6-1.7c7.3 0 4-.6.6 1.7zm12.6 14l.8.8c-.9-1.5-1.5-4.6-2.9-12.6l-.4-.3a16 16 0 002.5 12.1z",fill:"#F9BF8C"}),p.createElement("path",{d:"M154.7 95.83a44.5 44.5 0 00-1.6-8.2c-2-6-4.8-6.6-7.3-9.6a50.6 50.6 0 00-1-23.9c0 .1-8.7-35.8-54.2-22a44.6 44.6 0 00-10 5.9c-10.6 8.2-7.6 13.4-10 25.4a74.9 74.9 0 01-4.4 11.9c-4.8 3.8-7.6 6.5-8.1 9.9 1 4.7 5.4 18.3 5 28.1 6 27.2 36.6 38.3 50 37.6 2.6-.1 5-.2 7.4-.5 6.5-.7 11.9-2.8 17-11.3 6.4-10.8 5.6-16.5 9.4-22.5 2.5-4.1 9-9.7 7.8-20.8zm-42.2-19.5c-1 7.6-2.5 10.5-5.3 11.4a18.3 18.3 0 001.3-3.3c-4.6 2.5-17 2.8-21.2-3-.9.4-2 .4-4-.6l.2-.1c4.2-.1 2.6-1 4.1-3.8a10.6 10.6 0 01.6-1h17.1a11 11 0 013.8 6.7 58.3 58.3 0 001.2-6.8l3-.2-.8.7z",fill:"#F9BF8C"}),p.createElement("path",{d:"M112.6 124.23c-4-2-5.6-6.3-11.6-10.8 10 5.2 19.3 6.3 26.5 3.8-1.7 1.7 1.2 6.3-3.5 8.4-4 1.7-7.3.5-11.4-1.4z",fill:"#D86060"}),p.createElement("path",{d:"M101 113.43l-1.6-.8c7.9-.3 12.9-.7 17.2-.3 2.2.3 2.2 2 3.8 2 1.6 0 2.7-1.6 4.4-1.4 1.2.2 3 1.1 5.6 3a20.3 20.3 0 01-2.9 1.2c-7.2 2.6-16.6 1.5-26.5-3.7z",fill:"#BC3939"}),p.createElement("path",{d:"M108.5 84.43l.2-.5a15.2 15.2 0 00-2.3-3.8c-5-5.8-13.6-5.1-16.5-1.6-.9 1.3-1.5 2.4-2.6 3 4.1 5.7 16.6 5.4 21.2 3v-.1zM97 85.63a4.8 4.8 0 11.408-9.592A4.8 4.8 0 0197 85.629z",fill:"#FFF"}),p.createElement("path",{d:"M89.9 78.53c-.9 1.3-1.5 2.4-2.6 3-1.1.6-2 .2-4-.7l.2-.2c4.2 0 2.6-1 4.1-3.7 2.8-5.2 9-4.8 14.6-3 .1 0 5.9 2.4 6.8 8.7l-.3 1.2a14.4 14.4 0 00-2.3-3.7c-5-5.8-13.6-5.1-16.5-1.6z",fill:"#000"}),p.createElement("path",{d:"M127.5 83.03h-.1a27 27 0 0011.6.6c2.7-1 4.8-4 5-6.8-1.8-1.2-2.8-4.6-8.2-2.9-5 1.6-7 4.2-8.3 9v.1zm2.8-3.7a4.4 4.4 0 118.798-.2 4.4 4.4 0 01-8.798.2z",fill:"#FFF"}),p.createElement("path",{d:"M145.1 75.33c0 .5.5.7 1 .9a8 8 0 001.2.1l.1.2a5 5 0 01-1.4.6 2.4 2.4 0 01-2-.4c-1.8-1.2-2.8-4.6-8.2-2.8-4.9 1.6-7 4.2-8.3 9h-.2c-1.2-6.7 4-11.3 9-12.5l3.1-.2c2.8.2 5.2 1.8 5.7 5.1z",fill:"#000"}),p.createElement("path",{d:"M106.7 61.53c-4 0-8.2-.4-11.7-.3-3.6.1-8.3 1.7-12.8 4.6 1.9-4 8.5-7.2 12.5-7.7 2.9-.3 6.8-.7 9.7-.2 3.7.7 5.6 3.1 2.3 3.6zm24.7 5.6c2.3-2.6 6.8-6.2 9.4-5.8 3 .4 3.5 1.2 5.4 3.6.056.898.056 1.8 0 2.7H145a7.6 7.6 0 00-4.7-2.2c-1.9-.1-7 1.2-8.8 1.7h-.1z",fill:"#B2512B"}),p.createElement("circle",{fill:"#000",transform:"rotate(-78.1 97.1 80.83)",cx:97.1,cy:80.829,r:4.8}),p.createElement("circle",{fill:"#000",cx:134.7,cy:79.329,r:4.4}),p.createElement("path",{d:"M106.3 109.73a40 40 0 01-10.3-1.3c-1.9 2-.1 6.6-.7 9.2-1-3.4-4-8-2.2-12.4a28.7 28.7 0 0013.2-1c9-2.8 6.6-6.2 12.6-6.5-5.2 1-4.4 11.4-12.6 12z",fill:"#DB7A53"}),p.createElement("path",{d:"M54 29.03c3-3.6 13.5-5.8 20-6-.5 1.3 4.5 2.7 4 4a37.3 37.3 0 008.4-.2 3.5 3.5 0 00.4 2.7l3.8 2.6a44.6 44.6 0 00-10.1 5.9c-10.5 8.2-7.5 13.4-9.9 25.4a74.9 74.9 0 01-4.4 11.9l-12.4 7a10.3 10.3 0 00-5.3-.7l-.3-.4c-2.2-4-6.8-14.2-7.2-18.8-1.4-11.4 1.2-25 10-32.4a18.5 18.5 0 013-2 9.8 9.8 0 00.1 1H54zm2.7 55l1.4.7 3.5-1.6a5.5 5.5 0 01-2.4 1.9 10.4 10.4 0 01-1.2.2l-1.2-1.2h-.1z",fill:"#838BC5"}),p.createElement("path",{d:"M127 22.23c-7.5-4.7-7-2-15.6-4l5.2-.4c-13.3-1-28.6 3.4-30.1 9a37.3 37.3 0 01-8.4.2c.5-1.3-4.6-2.6-4-4-6.6.2-17 2.4-20.1 6a9.8 9.8 0 010-1c0-8.2 10.8-17.8 30.3-15.8 13.4-14.3 42.4-21 61 8.1-13-7.3-16.2-.2-19.3.8 7.8-1.6 27.3 3 28.9 24.3-1.7-7.8-8.4-8.6-13.6-8-1.7-2.3-3.5-4.3-4.9-5.9-4.5-5.2-3.5-5.7-9.4-9.3z",fill:"#0071BC"}),p.createElement("path",{d:"M137.4 46.73c3.4 14.5-3.1 19.3-22.4 18.8 12.5-8.9 11.5-19.3 2-26.1-8.2-6-14 .2-26.4-7.3a46 46 0 01-3.8-2.6 3.5 3.5 0 01-.3-2.7c1.5-5.6 16.8-10 30-9l-5 .3c8.6 2.2 8-.6 15.5 4 5.9 3.7 4.9 4.2 9.4 9.5 1.4 1.6 3.2 3.5 4.8 5.8 3 4.2 5.5 9.6 3.5 16.7a26 26 0 01-2.6 6.2 14.6 14.6 0 00-4.7-13.6z",fill:"#0071BC"}),p.createElement("path",{d:"M126.1 69.33h-.7a14.6 14.6 0 013.2-1.7 14.8 14.8 0 00-2.5 1.7zm-.9 17.8l.8.8c1.2 1.8 2.7 1.5 6.3 4.8l.6.2c1.8 1.7 2.8 3.7 2 6.4-.2 3.2-5.3 8.2-12 5.8 5.3-1 6.9-.8 7.6-5.6-.2-6.7-8.3-4-10-16.5a17.3 17.3 0 01.9-8.8 9 9 0 011.3.8 16 16 0 002.5 12.1zm-2.1-14.5a6.3 6.3 0 00-.6-.3l.5-.9c1 0 .4.2.1 1.2z",fill:"#DB7A53"}),p.createElement("path",{d:"M56.7 84.03a12.7 12.7 0 00-3-1.7l12.4-7 9.2-5.2c-1.3 1.7-1.6 4.2-1.1 7l-12.6 6-3.5 1.7-1.4-.8z",fill:"#93278F"}),p.createElement("path",{d:"M151 92.03c5.5-1.8 14.3-20.4 5.8-23.5-5.4-2-24.6-.6-29.9.8-29.7-.4-42.2-3.3-49.3-.7a5 5 0 00-2.3 1.6c-4.3 5.5 3.1 20.2 8 21.8a46.3 46.3 0 0012.5 1.6c11.6 0 14.8-2.2 16.6-17.3 1-.6 4.4-4.3 9-2a10.6 10.6 0 011.8 1c2.9 17.6 2.5 11.3 9.1 17.5l.6.1c5.8 1.4 13.9.5 18.1-.9zm-40.5-17.9c-.4 3.6-1.7 13.4-4.8 15.4-4.2 2.8-17 2-21.7.4-4-1.4-11.5-17.2-5.7-19.3 5.6-2 23.8 0 29.6.6 0 .2 2.8.3 2.6 3v-.1zm2.1-1a4.8 4.8 0 00-.6-1.8c7.3.2 4-.5.6 1.8zm10.5-.5a10 10 0 00-2.7-1.2c4.2.1 3.1-.3 2.7 1.2zm27.2 17.4c-4.7 1.6-16.3 2.5-20.6-.4-1-.7-2.8-5.1-4.5-15.3-.4-2.8 2.6-2.5 2.6-2.8.9-.2 4.3-.7 8.5-1 4.2-.3 15.6-1.2 19.7.2 5.8 2.1-1.6 18-5.7 19.3z",fill:"#5D237A"}),p.createElement("path",{d:"M45.5 82.33c-4.2 1.7-4.4 10-3 14.8 2.8 9.2 12 17.6 21.7 16.1 5.2-.7 1.5-5.7-1-16.4l-1-5.6c-3.3-7-9.4-11.7-16.7-8.9zm13.2 13c-.4.4-4.4 3.1-1.2 5 2.2 1.5 4 .5 3.6 2.6-.3 1.4 0 3.3-2 3 2-3-1.1-4-3-2.9s-5.7-5.3.9-8.2c-4-4.8-7.5-12.8-10-.5-3-9.7 3.6-17.3 11.7 1z",fill:"#F9BF8C"}),p.createElement("path",{d:"M58.7 95.33c-.4.4-4.4 3.1-1.2 5 2.2 1.5 4 .5 3.6 2.6-.3 1.4 0 3.3-2 3 2-3-1.1-4-3-2.9s-5.7-5.3.9-8.2c-4-4.8-7.5-12.8-10-.5-3-9.7 3.6-17.3 11.7 1z",fill:"#CE6D42"}))))}var m=a(35);function f(e){var t=e.workout,a=e.badges,c=e.upsellLink,n=e.upsellText,r=Object(i.useSelect)((function(e){return e("yoast-seo/workouts").getFinishedSteps(m.c.orphaned)})),p=c||"https://yoa.st/workout-orphaned-content-upsell";return Object(l.createElement)(s.a,{id:"orphaned-workout-card",name:m.c.orphaned,title:Object(o.__)("Orphaned content","wordpress-seo"),subtitle:Object(o.__)("Clean up your unlinked content to make sure people can find it","wordpress-seo"),usps:[Object(o.__)("Make pages easier for Google and visitors to find","wordpress-seo"),Object(o.__)("Add internal links to your posts and pages","wordpress-seo")],image:d,finishableSteps:m.a.orphaned,finishedSteps:r,upsellLink:p,upsellText:n,workout:t,badges:a})}f.propTypes={workout:r.a.func,badges:r.a.arrayOf(r.a.element),upsellLink:r.a.string,upsellText:r.a.string},f.defaultProps={workout:null,badges:[],upsellLink:null,upsellText:null}},185:function(e,t,a){"use strict";a.r(t);var c=a(160),l=a(161);window.yoast=window.yoast||{},window.yoast.adminModules={components:{workouts:{CornerstoneWorkoutCard:c.a,OrphanedWorkoutCard:l.a}}}},2:function(e,t){e.exports=window.wp.i18n},29:function(e,t,a){var c=a(64),l=a(65),n=a(66);e.exports=function(e,t){return c(e)||l(e,t)||n()}},35:function(e,t,a){"use strict";a.d(t,"c",(function(){return c})),a.d(t,"b",(function(){return l})),a.d(t,"a",(function(){return n}));var c={configuration:"configuration",cornerstone:"cornerstone",orphaned:"orphaned"},l={configuration:{optimizeSeoData:"optimizeSeoData",siteRepresentation:"siteRepresentation",socialProfiles:"socialProfiles",enableTracking:"enableTracking",newsletterSignup:"newsletterSignup"},cornerstone:{chooseCornerstones:"chooseCornerstones",checkLinks:"checkLinks",addLinks:"addLinks",improved:"improved",skipped:"skipped"},orphaned:{improveRemove:"improveRemove",update:"update",addLinks:"addLinks",removed:"removed",noindexed:"noindexed",improved:"improved",skipped:"skipped"}},n={configuration:[l.configuration.optimizeSeoData,l.configuration.siteRepresentation,l.configuration.socialProfiles,l.configuration.enableTracking,l.configuration.newsletterSignup],cornerstone:[l.cornerstone.chooseCornerstones,l.cornerstone.checkLinks,l.cornerstone.addLinks],orphaned:[l.orphaned.improveRemove,l.orphaned.update,l.orphaned.addLinks]}},4:function(e,t){e.exports=window.yoast.componentsNew},5:function(e,t){e.exports=window.React},6:function(e,t){e.exports=window.wp.data},64:function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},65:function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var a=[],_n=!0,c=!1,l=void 0;try{for(var n,r=e[Symbol.iterator]();!(_n=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);_n=!0);}catch(e){c=!0,l=e}finally{try{_n||null==r.return||r.return()}finally{if(c)throw l}}return a}}},66:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},8:function(e,t){e.exports=window.yoast.helpers}});
1
+ !function(e){var t={};function a(c){if(t[c])return t[c].exports;var l=t[c]={i:c,l:!1,exports:{}};return e[c].call(l.exports,l,l.exports,a),l.l=!0,l.exports}a.m=e,a.c=t,a.d=function(e,t,c){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:c})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(a.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var l in e)a.d(c,l,function(t){return e[t]}.bind(null,l));return c},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=185)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.yoast.propTypes},109:function(e,t,a){"use strict";a.d(t,"a",(function(){return d}));var c=a(29),l=a.n(c),n=a(0),r=a(1),o=a.n(r),i=a(2),s=a(6),p=a(4),u=a(8);function d(e){var t=e.name,a=e.title,c=e.subtitle,r=e.usps,o=e.id,d=e.image,m=e.finishableSteps,f=e.finishedSteps,h=e.upsellLink,z=e.upsellText,E=e.workout,b=e.badges,g=e.blocked,w=Object(s.useDispatch)("yoast-seo/workouts"),k=w.openWorkout,M=w.toggleWorkout,v=Object(s.useSelect)((function(e){return e("yoast-seo/workouts").getActiveWorkout()}),[]),O=Object(n.useState)(!1),y=l()(O,2),j=y[0],F=y[1],B=E,A=d;Object(n.useEffect)((function(){m&&f&&f.length===m.length?F(!0):F(!1)}),[f,m]);var x=Object(n.useMemo)((function(){return f&&0!==f.length?f.length<m.length?Object(i.__)("Continue workout!","wordpress-seo"):Object(i.__)("Do workout again","wordpress-seo"):Object(i.__)("Start workout!","wordpress-seo")}),[f,m]),C=Object(n.useCallback)((function(){k(t),j&&M(t)}),[E,j,k,M]),_=Object(u.makeOutboundLink)(),S=z||Object(i.sprintf)(
2
  /* translators: %s : Expands to the add-on name. */
3
  Object(i.__)("Unlock with %s!","wordpress-seo"),"Premium"),D=E&&!g?"":" card-disabled";return Object(n.createElement)(n.Fragment,null,!v&&Object(n.createElement)("div",{id:o,className:"card card-small".concat(D)},Object(n.createElement)("h2",null,a," ",b),Object(n.createElement)("h3",null,c),Object(n.createElement)("div",{className:"workout-card-content-flex"},Object(n.createElement)("ul",{id:"".concat(o,"-usp-list"),className:"yoast-list--usp"},r.map((function(e,t){return Object(n.createElement)("li",{id:"".concat(o,"-usp-").concat(t),key:"".concat(o,"-").concat(t)},e)}))),d&&Object(n.createElement)(A,null)),Object(n.createElement)("span",null,!g&&E&&Object(n.createElement)(p.NewButton,{id:"".concat(o,"-action-button"),className:"yoast-button yoast-button--".concat(j?"secondary":"primary"),onClick:C},x),!E&&Object(n.createElement)(_,{id:"".concat(o,"-upsell-button"),href:h,className:"yoast-button yoast-button-upsell"},S,Object(n.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})),m&&f&&Object(n.createElement)("div",{className:"workout-card-progress"},Object(n.createElement)(p.ProgressBar,{id:"".concat(o,"-progress"),max:m.length,value:f.length}),Object(n.createElement)("label",{htmlFor:"".concat(o,"-progress")},Object(n.createElement)("i",null,Object(i.sprintf)(// translators: %1$s: number of finished steps, %2$s: number of finishable steps
4
+ Object(i.__)("%1$s/%2$s steps completed","wordpress-seo"),f.length,m.length))))),g&&E&&Object(n.createElement)("div",{id:"".concat(o,"-blocked-section"),className:"workout-card-blocked"},Object(n.createElement)("p",{id:"".concat(o,"-blocked-title"),className:"workout-card-blocked-title"},Object(i.__)("Configuration required","wordpress-seo")),Object(n.createElement)("p",{id:"".concat(o,"-blocked-description")},Object(i.__)("Please finish the Configuration workout first in order for this workout to be effective.","wordpress-seo")))),E&&v===t&&Object(n.createElement)(B,null))}d.propTypes={name:o.a.string.isRequired,title:o.a.string.isRequired,subtitle:o.a.string.isRequired,usps:o.a.arrayOf(o.a.string).isRequired,id:o.a.string,finishableSteps:o.a.arrayOf(o.a.string),finishedSteps:o.a.arrayOf(o.a.string),image:o.a.func,upsellLink:o.a.string,upsellText:o.a.string,workout:o.a.func,badges:o.a.arrayOf(o.a.element),blocked:o.a.bool},d.defaultProps={id:"",finishableSteps:null,finishedSteps:null,image:null,upsellLink:null,upsellText:null,workout:null,badges:[],blocked:!1}},160:function(e,t,a){"use strict";a.d(t,"a",(function(){return f}));var c,l=a(0),n=a(1),r=a.n(n),o=a(2),i=a(6),s=a(109),p=a(5);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c])}return e}).apply(this,arguments)}function d(e){return p.createElement("svg",u({viewBox:"0 0 296 317",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},e),c||(c=p.createElement("g",{transform:"matrix(-1 0 0 1 295.274 .96)",fill:"none"},p.createElement("circle",{fill:"#F0ECF0",cx:131.18,cy:184.261,r:131.18}),p.createElement("g",{fill:"#EAB881"},p.createElement("path",{d:"M236.42 96.56c-.15-.43-.29-.87-.44-1.3.15.43.29.87.44 1.3zm-31.98 59.96a11 11 0 00-2.11.82c.67-.3 1.4-.56 2.11-.82zm-2.11.82a58.65 58.65 0 00-6 2.81c2.67-1.11 4.56-2.11 6-2.81z"}),p.createElement("path",{d:"M293.49 164.27c-8.58-10.51-1.05-27.75-34.52-86.31-3-5.22-5.26-14.52-12.85-17.58-9.11-3.67-12.77-9.16-21.89-12.83-6.85-2.76-4-1.36-3.21-.49 1.49 1.67-2-1.31-5.72 7.13-.38.85 2.86 1.63 4 5 .36 1.07.49 1.14 1.23 1.33 4.71 1.2 6.52 6.89 4.2 10.06-.7-1.43.18-6-4.68-6.36 2 1.44 4.06 3.42 4 5.88 9.4 16.64 17.56 14 20 15 12.43 4.92-17.28 64.57 23 86.13-7.34-1.94-14.31-5.46-23.92-1.33 7.28-5.53 2.46-7.57.86-10.89-2.17-2.92-2.29-11.71-2.6-22.62a103.2 103.2 0 001.09 20.32 54.8 54.8 0 00-38-.12c5.19-1.21 15.45 48.34 20.15 53.9 3.8-1.4 23-8.57 35.17-14.11 21.52-9.81 34.94-25.76 35.44-28.31.24-1.47-.85-2.71-1.75-3.8zm-41.62-99.13c.06.1 8.87 19.59.56 1.21-.2-.44-.38-.84-.56-1.21z"}),p.createElement("path",{d:"M215.17 56.04c.46.17 2 1.49-.23-.93-.88 2.39-.6 4.42 2 6.74 1.06-3 0-3.51-1.77-5.81zm-4.33 23.82c.28-.07.36.05-.35-.38l.35.38z"})),p.createElement("path",{d:"M203.74 73.77c0 .4-.33-.06 2.94 2.38l-2.94-2.38zm5.26 4.27c2.3 2 3.13 2.53 2.19 1.77L209 78.04zm6.17-22c.05.06 1.79 2.31 1.83 2.38-.49-1.27-.83-2.01-1.83-2.38zm-.52 11.73c1.38-.08.73 1.34 2.16-.5.52-.67 1.91-3.21.71-2.6.56-2.33-.09-6.71-.19-4.75-.13 2.46-3.7 10.77-8.67 9.87a7.6 7.6 0 003.25.22c2.74-.39 2.36-.97 2.74-2.24zm-5.99 2.02a6.27 6.27 0 01-1.42-.59c.42.309.906.51 1.42.59z",fill:"#D38053"}),p.createElement("path",{d:"M214.2 69.33a4.13 4.13 0 01-.85 3.73c3.38-1.27 3.66-3.51 2.48-4.78-1.18-1.27-1.34.03-1.63 1.05zm-32.31 1.85c.11.84 2.61 2.33 3.3 2.78a13.33 13.33 0 01-3.3-2.78zm10 4.39c-.21.13-.45.1.31 0-.28-.12-.13-.1-.31 0zm-6.51-1.53a29.79 29.79 0 004.51 2.28c2.54-1.52.8.82-4.51-2.28z",fill:"#D38053"}),p.createElement("path",{d:"M202.61 77.13c-.91.35-5.67.26-10.41-1.57-6.74 1-6.41 12.08-1 12.4 8.18.48 10.11 3 13.48 1.92 6.82-2.28 2.4-11.62-2.07-12.75z",fill:"#EAB881"}),p.createElement("path",{d:"M217.52 64.67a4.92 4.92 0 012.54-.48c4.87.36 4 5 4.68 6.36 2.31-3.16.52-8.86-4.2-10.06-2.25-.57.56-2.91-7.86-7.27a10.79 10.79 0 014.84 11.45zm15.23 112.51c-6.79 1.78-17.9 1.65-21-5.2 3.71 11.1 9 26.86 12.86 37.68 2.88-.89 7.41-1.86 8.89-3.4-3.52-4.16-8.67-10.41-8.74-15.89-.07-5.48 2.92-11.16 7.99-13.19zm-26.31-20.36c-.14.17-.15 0 .53 1.27-.18-.46-.35-.89-.53-1.27z",fill:"#D38053"}),p.createElement("path",{d:"M246.11 86.55c-2.26-3.64-4.21.58 2.23-3.3-10.49 4.56-18.5-2.9-24.34-13.21-.05 1.82-1.23 3.13-2.61 4.36-9.64 8.64-10.89 4.95-12.39 3.64-8-7-3.86-2.44-6.09-1-.71.46 4.08 1 5.31 7.11a5.26 5.26 0 01-2.67 5.38c7.41 5.8 14.7 2.46 25.68-4.09 14.67 22.17 7.38 66.27 12.78 73.54 1.6 3.32 6.42 5.36-.86 10.89 9.61-4.13 16.58-.61 23.92 1.33-37.63-20.16-14.29-73.91-20.96-84.65z",fill:"#D38053"}),p.createElement("path",{d:"M190.92 211.52a81.3 81.3 0 00-9.26-12.14c6.41 7.94 17.18 24.84 9.26 12.14z",fill:"#A52A6A"}),p.createElement("path",{d:"M205.85 156.04c-31.36 13.6-26.45 13.21-42 8.34-18.87-5.91-37.14-.76-32.1-1.07 11.82-.72 29.07 49.31 35.44 66.88l62.17-10.35c.64 7.64-20.9-59.34-23.51-63.8z",fill:"#A52A6A"}),p.createElement("path",{d:"M214.23 180.31c-8.73 13.9-32.09 11.23-35.71-4.78 8 32.54 8.23 20.07-9.5 9.69 25.36 25.8 22.47 41.74 28.27 44.5 3.49 1.65 13.65-3.77 26.3-7.69 3.3-1 4.88-1.61 4.76-2.19l-14.12-39.53z",fill:"#7C2050"}),p.createElement("path",{d:"M192.93 72.9a3 3 0 01-.92 2.58 25.5 25.5 0 009.52 1.8c2.47-.02.6.27-8.6-4.38z",fill:"#EAB881"}),p.createElement("path",{d:"M220.06 64.19c-3.36-.25-1 1.37-4.23 4.09 1.18 1.27.9 3.51-2.48 4.78a4.07 4.07 0 00.85-3.73c-2.67 1.26-5.78.74-7-.13 4.38 2.46 8.07-2.64 9.69-7.37-2.58-2.31-2.87-4.34-2-6.74-1.19-1.31-4.4-3.35.19-.49a25 25 0 012.94-5.18c1.27-1.71 5.22-.83 1.65-3.46-1.76-1.3-8.08-2.63-8.81-2.59a4.11 4.11 0 00-3.06 1.53c-4.33-1.59-9.29-1.86-11.78 2-4.24-3.58-9.38 2.15-7.77 6.69 1.44 4-1.86.15-7.06 14.62-1.27 3.54 5.07 7 8.77 7.58 7.7 1.25-18.75-8.93 2.24-.45 3.4 2.66 5.28 1.49 10.44 1.8 1.08-.47 1-1.92 1.05-3.09 0-1.84 6.81 8.52 10.32 5.44 8.71-4.45 13.99-9.58 6.05-15.3z",fill:"#EAB881"}),p.createElement("path",{d:"M192.51 69.95c.38.94.28.45 0-2.57a4.18 4.18 0 000 2.57z",fill:"#EAB881"}),p.createElement("path",{d:"M194.68 57.19a15.87 15.87 0 00.36-1.77c-.14.62-.25 1.18-.36 1.77z",fill:"#D38053"}),p.createElement("path",{d:"M59 167.04c-7.75 3.79-5.09 3.25-3.46 3.59a74.937 74.937 0 003.46-3.59zm69-3.33l-.77-.17c.242.112.504.17.77.17z",fill:"#A52A6A"}),p.createElement("path",{d:"M200.06 262.44c1.23-17.17 10-35.47-31-77.22-8.89-9-13.84-13.86-31.69-19.13 6.35 7.45-.5 40.2-3.43 38.36-25.84-16.17-70.31-19.82-79.39-32.84 6.7-6.24-28.46 5.48-39.7 16.24-3.57 3.42-8.13 12.77-12.22 22.43 8.53 42.43 41.23 74.66 42.5 72 3.64-7.7 7.17-15.66 6.64-14.47 11.84 12.23 19.29 19.48 23.78 35.23A131 131 0 00201 295.25c-.06-16.21-1.3-27.79-.94-32.81zm-145.78-.4c.1 0 0-.08-1.06 2.38.36-.79.71-1.59 1.06-2.38z",fill:"#A52A6A"}),p.createElement("path",{d:"M53.29 267.84c5.65 7.53 33.06 17 44.3 27a280 280 0 01-35.06-36.66 203.23 203.23 0 0049.54 9.79l-47.15-13.12c.667-5.7 1.333-11.393 2-17.08-3.35 4.49-11.74 22.07-13.63 30.07zm125.12-18.17c-12.42-1.14-45.91 6.44-50.79 17 18.32-12.22 51.08-16.81 54.55.56-.17-1.02 12.83-16.03-3.76-17.56z",fill:"#7C2050"}),p.createElement("path",{d:"M124.39 155.75c0 .21.1.43.16.64-.06-.21-.11-.43-.16-.64zm-57.05-39.34c-.59 0-.52-.25 0 1.56 1.53 2.37.74 1.51 0-1.56zm56.8 38.33l.12.46-.12-.46zm-69.63 16.87c9.09 13 53.53 16.65 79.39 32.84 2.16 1.35 8.75-21.75 4.69-36.08-1.9-6.72-10.19-4.65-10.62-4.66-1 0-1.46-.64-1.83-1.66-.68-1.91-1.52-5.36-1.48-5.21-1.23 4.07-1.68 6.59-3.49 7.5-6.48 3.24-37.85-9.4-52.25-41 .62 2.53 1.06 5.26-1 3.64 3.8 16.54 5.92 26.64-13.41 44.63z",fill:"#EAB881"}),p.createElement("path",{d:"M107.65 148.64c-20.65-5.6-33.72-12.94-37.72-32.87-3.26 1.48-3.22-1.55-1 7.6 14.4 31.56 45.77 44.21 52.25 41 2.15-1.07 3.54-7.31 3.38-8-2.21-8.85 2.2-2.53-16.91-7.73z",fill:"#D38053"}),p.createElement("path",{d:"M140.75 66.31c-3-9.44-7.65-19.56-11.74-25.21a15.73 15.73 0 01-8.82-3.17c-7.48 8.26-15.45 4.83-16.65 0-1.68 5.91-9.62 9-14.83 5.74a6.35 6.35 0 004.78-2.95 18.42 18.42 0 01-15.21-2.12c-6-.8-4.66-.93-1.31 4.28 7.29 11.35 4.24 15-4.14 23.72C62.7 77.12 70.69 82.04 74 85.14c6.7 6.17 1.74 13-5.65 12.35 4.88 8.65 5.25 9.2 5.41 10.7.34 3.25-1 6.28-3.86 7.58 4 19.73 16.77 27.17 37.72 32.87 6.48 1.76 13.43 3.33 20 1.88 6.57-1.45 12.87-6.74 13.24-13.51.22-4.11-1.69-10-1.26-14 .68-6.64 5.94-5 6.24-21a112.12 112.12 0 00-5.1-35.45",fill:"#EAB881"}),p.createElement("path",{d:"M121.63 67.04c-.14 1.89.33 11.5 1.43 14.94 2.29 7.11 7.13 6.6 10.67 8.13 4.36 1.9 5.64 6.66-1.58 8.75-3.85 1.12-7.92 2.25-11.82 1.33 1.4 1.63 3.81 1.84 6 1.84 14.73 0 15.5-9 13.14-12.25-3.67-5.06-12.38-1.31-15.58-12.81-.81-2.74.11-8.51-2.26-9.93z",fill:"#D38053"}),p.createElement("path",{d:"M110.39 112.3c-10.66-3-13.86-7.32-14.77-5.86-1.15 1.83 18.2 12.62 29.48 6.84-5.03.06-9.69.44-14.71-.98zM86.23 73.61c1.75 0 7-6 8.82-7.15 3.63-2.2 7.63-1.08 11.78-2-.51-1.34-3.51-5.43-4.18-5.29-3.17.68-9.2.3-9.2.3s-13.18 14.27-7.22 14.14zm39.37-15.85c-5.09.43-3.23 1.61-2.29 5.5a18.92 18.92 0 0117.63 3.35c-5.31-8.47-9.64-9.34-15.34-8.85z",fill:"#000"}),p.createElement("path",{d:"M91.39 85.5c4.56 6.52 15.3 4.23 18.45-1.77-.92-5.69-16.99-9.33-18.45 1.77zm9.87 1.69c-6.09 3.06-8.18-7.15-1.85-7.15 4.07 0 5.74 5.19 1.85 7.15zm25.58-4.58c2.38 3.65 14 2.53 14.28-3.35-4.19-9.42-16-4.69-14.28 3.35zm8.47-1.63a3.56 3.56 0 01-5.31 1.29c-2.29-1.87-1-6.45 2.58-6a3.57 3.57 0 012.73 4.71z",fill:"#FFF"}),p.createElement("path",{d:"M126.72 79.53c1.76-6.07 10.8-8.36 14.4-.27 1.07 2.38.95-6.79-5.3-7.23-3.92-.28-10.17.09-9.49 10a11.4 11.4 0 01.39-2.5zm-27.31.51c-6.34 0-4.24 10.2 1.85 7.15 3.89-1.95 2.23-7.15-1.85-7.15z",fill:"#000"}),p.createElement("path",{d:"M132.6 76.26c-3.61-.44-4.87 4.14-2.58 6a3.4 3.4 0 102.58-6zm-63.68 47.11c-2.54-10.52-.32-4.66-9.77-9 5.12 9 12.19 18.98 9.77 9zM129 41.1c5.48 7.57 6.11 13.42 5.52 9.56a51.53 51.53 0 00-2.44-9.71 16.7 16.7 0 01-3.08.15z",fill:"#000"}),p.createElement("path",{d:"M137.16 26.23c3.42-12.58-5.26-13.54-7.57-11.18A10.51 10.51 0 00113.3 5.04c-3.11-5.35-12.48-8.78-24.25 2.14C88-.5 72.44 1.9 70.12 17.68c-5.8 1.09-8.67 4.26-10 6.8-5.74.56-24.3 24.19-25.12 32.06-.51 4.69 2 9.11 3.31 13.65.84 2.89 1.22 6 2.75 8.59 4 6.77 0 3.56 5 2.71 4.44-.75 16.29 5.15 22.4 16 3.66.32 7.38-.9 8.67-5.17 1.72-5.69-6.59-8.6-8.54-13.18-4.08-9.57 10.77-15 12.37-23.84 1-5.78-3.41-11.93-7.06-17.09 1.24 0 2.7.15 4.46.38-.16-.1-.3-.21-.45-.32a17.59 17.59 0 0015.66 2.44 6.35 6.35 0 01-4.78 2.95c5.21 3.24 13.15.17 14.83-5.74 1.2 4.84 9.14 8.31 16.65 0a16.12 16.12 0 0018.08.78 11.39 11.39 0 01-5.61-4.34c3.19.61 6.37-1.64 7.88-4.5 1.51-2.86 1.74-6.22 1.9-9.46a9.68 9.68 0 01-5.36 5.83zm-77.44 3.81l-.08-.11.08.11zm-.5-3.51v.09c0-.37.06-.82.09-1.36-.05.48-.07.89-.09 1.24v.03zm14.53 7.72a18.09 18.09 0 004.06 4 16.75 16.75 0 01-4.06-4.03v.03zm-.59-.86l.24.35-.24-.35z",fill:"#000"}),p.createElement("path",{d:"M97.49 76.04c-3.73.6-7.38 4.53-6.58 9 1-2.29 1.84-4.94 5.06-6.12 4.28-1.56 11.29-.39 13.75 4.36 1.38 2.65.02-9.24-12.23-7.24z",fill:"#000"}),p.createElement("path",{d:"M73.79 108.19c-.16-1.5-.53-2.05-5.41-10.7-6.11-10.84-17.95-16.75-22.38-16-7.48 1.27-15.82 21.55 15.3 33.82 8.33 3.28 13.12-1.13 12.49-7.12z",fill:"#EAB881"}),p.createElement("path",{d:"M96 105.92c2.11-2.9 10.26 2.05 16.39-5.72.79-1 1.41-4 3.31-3.71-5.06-.88-6.61 8.28-14.23 6.32-3.12-.81-9-5.15-10 11.67a58.56 58.56 0 014.53-8.56zm-33.55-5.55c4.3-10.34-20.92-21.24-19.6-7 .3 3.21 2.29 8.83 5.31 9.81-2.45-5.37.27-12.44 1.57-13.5 2-1.61 4.51.76 7.4 2.9-.13 1.68-2.51 2.46-2.65 4.09-.12 1.31 1.07 2.94 5.05 2a7.72 7.72 0 01-2.17 5 5.2 5.2 0 005.09-3.3zm130.32-29.93a3.7 3.7 0 01-.27-3.06c4.45-17.69 1.95-7.91-1.07-3.12-2.38 3.78-3.24 6.3.67 8.22 23 11.28 1.9-.25.67-2.04z",fill:"#D38053"}),p.createElement("path",{d:"M192.25 75.29c-2.41-1-6.47-3.9-6.5-5.61 0-1.15 4.89-8.09 3.9-14.36-1.07 1.71-6.51 12.19-6.39 14.2.23 3.86 9.09 5.81 8.99 5.77zm13.21-25.34c-.16 1.86-6.76 14.12-6.76 18.83.36 1.09 4.49 2.16 4.71 3.29-6.82-5.17 3.5-20.43 2.05-22.12z",fill:"#D38053"}))))}var m=a(35);function f(e){var t=e.workout,a=e.badges,c=e.upsellLink,n=e.upsellText,r=Object(i.useSelect)((function(e){return e("yoast-seo/workouts").getFinishedSteps(m.c.cornerstone)})),p=c||"https://yoa.st/workout-cornerstone-upsell";return Object(l.createElement)(s.a,{id:"cornerstone-workout-card",name:m.c.cornerstone,title:Object(o.__)("The cornerstone approach","wordpress-seo"),subtitle:Object(o.__)("Rank with articles you want to rank with","wordpress-seo"),usps:[Object(o.__)("Make your important articles rank higher","wordpress-seo"),Object(o.__)("Bring more visitors to your articles","wordpress-seo")],image:d,finishableSteps:m.a.cornerstone,finishedSteps:r,upsellLink:p,upsellText:n,workout:t,badges:a})}f.propTypes={workout:r.a.func,badges:r.a.arrayOf(r.a.element),upsellLink:r.a.string,upsellText:r.a.string},f.defaultProps={workout:null,badges:[],upsellLink:null,upsellText:null}},161:function(e,t,a){"use strict";a.d(t,"a",(function(){return f}));var c,l=a(0),n=a(1),r=a.n(n),o=a(2),i=a(6),s=a(109),p=a(5);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c])}return e}).apply(this,arguments)}function d(e){return p.createElement("svg",u({viewBox:"0 0 299 322",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},e),c||(c=p.createElement("g",{transform:"matrix(-1 0 0 1 298.412 0)",fill:"none"},p.createElement("circle",{fill:"#F0ECF0",cx:131.2,cy:190.029,r:131.2}),p.createElement("path",{d:"M262.5 92.23c-1 1.2-3 2.9-7.5 5a18.4 18.4 0 01-10.9 1.6c-.5-1-1-2.2-1.7-3.3l.4-.2.3-.2a14 14 0 003.3-.2c2.4.2 4.7-.6 6.9-3.2 3.1-3.9 1.7-10.7-1.3-14.6 2.6 2.5 4 5.7 6.4 8.6a231 231 0 013.3 4c.1.4 1.5 1.8.8 2.5zm-90.9 98.2a17.1 17.1 0 014 14.3c-11-7.9-22-18.9-31.8-37.8 26.5 1 39.4 8.8 39.5 8.7 43-17.2 51.7 1.5 66.8-6.3 2.3 4.7 5.3 6.3 8.4 9.4-13.5-13.9 5.7-22-5.1-57.7 7.3 0 20.8-4.8 22.9-9.7 14.8 26.3 10.5 39.9 17.8 54.6.6 1.2 2.3 6.7 3.5 8.2 2 2.8 0 7.7-2.7 10.6-29.7 32.8-68.9 33.6-93.5 36.8-6.4-4.6-13.8-8.5-21.5-13.7-1-5.1-1.2-11.2-8.3-17.4z",fill:"#F9BF8C"}),p.createElement("path",{d:"M253.4 121.03c10.8 35.8-8.4 43.8 5.1 57.8-3-3.2-6-4.8-8.4-9.5a52.999 52.999 0 01-.3-2.2 50.2 50.2 0 01-.4-5v-2l.1-3.6.1-1.8.3-3.7.4-3.7.6-5.6a153.4 153.4 0 00.6-9.5v-2a69 69 0 00-.3-7.8l-.2-1.6a10.5 10.5 0 002.4.3v-.1zm-11-25.6l1.7 3.4h-.1c-1.9-.1-2.3-2.3-2.7-2.6l-.1-.2 1.2-.6z",fill:"#DB7A53"}),p.createElement("path",{d:"M219.7 95.53c-.7-1.6-3-3-5.5-3.6.1-.011.2-.011.3 0a8.4 8.4 0 005.1-1.3l-.3-.2a1.6 1.6 0 00.2 0 3.3 3.3 0 002.7-.6 34.2 34.2 0 006.4-4 5 5 0 002-2.8l.4.3c-.7 6.5 5.4 11.5 12.1 11.9l-.3.1-.4.2-1.2.6c-3.8 1.9-11 5.7-13.6 5.6-2.9 0-6.9-2.2-9.8-3.9 1.4-.5 2.3-1.2 1.9-2.3z",fill:"#DB7A53"}),p.createElement("path",{d:"M223.7 76.23v.3a3.7 3.7 0 01-.2 1.3c-1.3-.7-2.4-1.5-2.6-2.6a3.2 3.2 0 01.3-1.7 7.1 7.1 0 012.5 2.7z",fill:"#F9BF8C"}),p.createElement("path",{d:"M253.3 91.73c-2.1 2.6-4.5 3.4-6.9 3.2a13 13 0 005.2-2.3c-6 2.7-10.5 1.1-13.8-1.5a36.9 36.9 0 01-4.7-5.3c-1.1-1.6-1.8-2.8-2.1-2.9a3 3 0 000 .3l-.3-.3a2.4 2.4 0 00-.9-2 10.2 10.2 0 00-3.2-1.9 5.5 5.5 0 012.9.6c1.6.9 1 2.1 1.8 3.1a3.3 3.3 0 00.2-3.7c-.8-1.3-4-1.1-6.1-1.3a2.3 2.3 0 000-.2l.8-1a1.3 1.3 0 01-.7-.8c-.8-1.2-2.4-2-4.2-2.6l.1-.2a16.4 16.4 0 012.2-3.5c.7-.8 5.5-.3 6.1-.6a21 21 0 002.5.7l16.8 5.1a7.8 7.8 0 013 2.5c3 3.9 4.4 10.7 1.3 14.6z",fill:"#F9BF8C"}),p.createElement("path",{d:"M228.6 85.73a34.2 34.2 0 01-6.4 4 3.3 3.3 0 01-2.6.6c1.5-.6 2.1-2.3.7-2.8l-.8-3.8a10 10 0 002-.7v.1c.5.8.4 4-.4 4.6 1-.2 2.2-3.1 2.5-4a1.3 1.3 0 00-.6-1.5 5.2 5.2 0 00.8-.8 6.7 6.7 0 001.3-2 6.3 6.3 0 011.5-.4 10.2 10.2 0 013.2 1.9 2.4 2.4 0 01.9 2 5 5 0 01-2.1 2.8zm-5-16.3a16.4 16.4 0 00-2.2 3.5l-.1.2a39 39 0 00-2.4-.6 9 9 0 012.3 1 3.2 3.2 0 00-.3 1.7c.3 1.1 1.3 2 2.6 2.6a11.3 11.3 0 01-.9 1.8 9.3 9.3 0 01-2.7 3.3l-.5.3-3.4-15.4-2.1-.3a4.4 4.4 0 012.7-1.4 35.6 35.6 0 0113 2.7c-.5.3-5.3-.2-6 .6z",fill:"#F9BF8C"}),p.createElement("path",{d:"M219.4 83.23a6 6 0 01-2.8.7 7.8 7.8 0 01-1.5-.2 4 4 0 001.5.2 9.8 9.8 0 003-.2l.7 3.8c1.4.5.8 2.2-.7 2.8h-.1a1.6 1.6 0 01-.2 0 39 39 0 00-7-3c-.3-3.4-.6-6.7-2-9.7 1.7-2.8 3.2-5.6 1.7-6.6 0 1.3-1.1 3.4-2.4 5.4a13.3 13.3 0 00-1.2-1.7 13 13 0 00-5.2-3.6c.8-1.7 1.4-3.5 3.7-3.8a24.3 24.3 0 016.9.2l2.1.3 3.5 15.4z",fill:"#F9BF8C"}),p.createElement("path",{d:"M223.7 76.23a5 5 0 01.6 3.4 7 7 0 01.8-.3 6.7 6.7 0 01-1.3 2.1 5.2 5.2 0 01-.8.8 1.7 1.7 0 00-1.2-.2l-.2 1a10 10 0 01-2 .7 9.8 9.8 0 01-3 .2 6 6 0 002.8-.7l.5-.3a9.3 9.3 0 002.7-3.3 11.3 11.3 0 001-1.9 3.7 3.7 0 00.1-1.3v-.2zm1.6 1.3c.007.1.007.2 0 .3v-.3z",fill:"#DB7A53"}),p.createElement("path",{d:"M223 82.23c.524.3.773.92.6 1.5-.3.9-1.4 3.8-2.5 4 .8-.7 1-3.8.5-4.6v-.1l.3-1a1.7 1.7 0 011.1.2z",fill:"#DB7A53"}),p.createElement("path",{d:"M201.4 91.73a3.1 3.1 0 00-.8.7c-2-.9-3.9-2.7-5.7-3.4-.5-.1-2.7-.8-2.9-1.4a13.7 13.7 0 005.2 2 43 43 0 004.2 2v.1zm.1-2.2h.1a30.3 30.3 0 005.4.4 30 30 0 003.6 1.6c-2.6-.3-5.7-1-8-.4l-2.2-1.3a2.7 2.7 0 001.1-.3zm13 2.5a1.4 1.4 0 00-.3 0 10.6 10.6 0 00-2-.4h-.4a26.6 26.6 0 01-3-1.8l1.7-.1a3.2 3.2 0 001.3-.4 1.2 1.2 0 00.5-1l6.7 2.7-6.7-3.6a39 39 0 017 3c.1.2.3.2.4.3a8.4 8.4 0 01-5.2 1.3z",fill:"#F9BF8C"}),p.createElement("path",{d:"M225 79.33a7 7 0 00-.7.3 5 5 0 00-.6-3.4 7.1 7.1 0 00-2.5-2.7 9 9 0 00-2.2-1l2.3.7c1.8.5 3.4 1.3 4.2 2.6a1.3 1.3 0 00.6.6c.2 0-.5.7-.8 1.1v.3c2.2 0 5.4-.1 6.2 1.2a3.3 3.3 0 01-.2 3.8c-.8-1-.2-2.3-1.8-3.2a5.5 5.5 0 00-3-.6 6.3 6.3 0 00-1.4.3h-.1zm6 3.9a3 3 0 010-.3c.3 0 1 1.3 2 3a23.8 23.8 0 004.8 5.2c3.3 2.6 7.8 4.2 13.8 1.6a13 13 0 01-5.2 2.2 14 14 0 01-3.3.2c-6.7-.4-12.8-5.4-12.1-11.9z",fill:"#DB7A53"}),p.createElement("path",{d:"M208.4 74.73c.478.53.913 1.099 1.3 1.7-1.4 2.2-3 4.3-3.5 5.3s-1.3 2.6-.3 3.6a38.8 38.8 0 006.4 3 1.2 1.2 0 01-.6 1 3.2 3.2 0 01-1.2.4l-1.8.1a14.4 14.4 0 00-3.6-1.9 13.4 13.4 0 01-3-1.2c0-.9-.3-2.4-.5-4 1.6-3 5-8.2 2.7-10.1.9 1.6-1.4 5.5-3 8l-.8-4a3.8 3.8 0 000-2 3.5 3.5 0 01-.2 1c-.4-1.6-.7-2.6-1-2.7-.9-.3-2 .6-3 2 1-2.2 1.5-4.1 4.7-4.1a7.3 7.3 0 012.2.4 13 13 0 015.2 3.5zm-6.1 13a39.6 39.6 0 014.7 2.2 30.3 30.3 0 01-5.3-.5 1.7 1.7 0 00.6-1.7z",fill:"#F9BF8C"}),p.createElement("path",{d:"M207 84.53c-.2-1.3 1.6-4.1 3.3-6.9a27 27 0 012 9.7l-5.3-2.8zm-7.6-11.7c.3 0 .6 1.2 1 2.7-1.2 2.7-5.5 6.5-6.7 8.9a3.4 3.4 0 00-.6 2c.2.7 2 2 4.1 3.2a13.7 13.7 0 01-5.2-2l-.4-.3a1.7 1.7 0 01-.5-.5 1.5 1.5 0 010-1.2c.5-1.2 2.8-7.5 5.2-10.9 1-1.3 2.1-2.2 3-1.9h.1z",fill:"#F9BF8C"}),p.createElement("path",{d:"M199.4 86.63a5 5 0 002 .8l.9.3a1.7 1.7 0 01-.7 1.7v.1a2.7 2.7 0 01-1.2.3c-1.8-1-3.4-2.1-4.1-2.6-.4-.3-.8-.6-.9-1a1.7 1.7 0 01.4-1c1.2-2 4-5.9 4.7-8.7l.7 4-1 1.5c-1 1.5-2.2 3.5-.8 4.6z",fill:"#F9BF8C"}),p.createElement("path",{d:"M201.2 86.03c-.5-.7-.6-.8-.4-1.7a9.9 9.9 0 01.8-1.6l.5 4a3 3 0 01-.9-.7z",fill:"#F9BF8C"}),p.createElement("path",{d:"M211.8 91.63h-1.2a30 30 0 01-3.6-1.7 39.6 39.6 0 00-4.7-2.2l-.8-.3a5 5 0 01-2-.8c-1.5-1.1-.3-3 .8-4.6l1-1.4c1.6-2.5 4-6.5 3.1-8 2.2 2-1.2 7-2.8 10.1a9.9 9.9 0 00-.7 1.6c-.3.9-.2 1 .4 1.7a3 3 0 00.9.7 13.4 13.4 0 003 1.3 14.4 14.4 0 013.6 1.9 26.6 26.6 0 003 1.7z",fill:"#DB7A53"}),p.createElement("path",{d:"M195.8 85.33a1.7 1.7 0 00-.4 1c0 .4.5.7.9.9l4 2.6c.8.5 1.6 1 2.4 1.3a4.2 4.2 0 00-1.3.6 43 43 0 01-4.2-2c-2.1-1.3-4-2.6-4-3.3a3.4 3.4 0 01.5-2c1.2-2.3 5.5-6.1 6.6-8.8a3.5 3.5 0 00.3-1 3.8 3.8 0 010 2c-.8 2.8-3.6 6.6-4.8 8.7zm11.2-.8l5.3 2.8 6.7 3.7-6.7-2.6a38.8 38.8 0 01-6.4-3c-1-1-.4-2.4.3-3.5l3.5-5.4c1.3-2.2 2.4-4 2.4-5.3 1.5 1 0 3.7-1.8 6.5s-3.6 5.6-3.2 7l-.1-.2z",fill:"#DB7A53"}),p.createElement("path",{d:"M201.4 91.73a4.2 4.2 0 011.3-.6c2.2-.5 5.3.1 7.9.4l1.2.1h.4a10.6 10.6 0 012 .3c2.4.6 4.8 2 5.4 3.6.5 1-.5 1.8-1.8 2.2a11.1 11.1 0 01-2 .4c-4.2.6-5.5 2-11.5 2.8-2.6.4-4.4-4-4.4-5.9a4.2 4.2 0 01.7-2.6 3.1 3.1 0 01.8-.7z",fill:"#F9BF8C"}),p.createElement("path",{d:"M253.4 121.03a10.5 10.5 0 01-2.4-.2 5.3 5.3 0 01-.7-.2c-2.4-.9-8.6-17.6-9.3-21-.3-1.2-.3-3.5.3-3.4.3.3.8 2.5 2.7 2.5h.1a18.4 18.4 0 0010.9-1.5c4.6-2.1 6.6-3.8 7.6-5 .6-.8-.7-2.2-.9-2.5.4-.4 1.3.1 1.7.3 5.9 2.8 10.2 12.7 13.1 19.4a2.9 2.9 0 01-.1 1.9c-2.1 5-15.6 9.8-23 9.8v-.1z",fill:"#A52A6A"}),p.createElement("path",{d:"M171.6 190.43c7 6.2 7.3 12.3 8.3 17.4l-4.4-3a17 17 0 00-3.9-14.4z",fill:"#DB7A53"}),p.createElement("path",{d:"M41.3 265.93l-.5.2c6.5 8.6 14.1 17.5 21 30.5a28.8 28.8 0 012.8 7.7c45.714 25.792 102.423 21.736 144-10.3-.8-3.5-1.7-7.1-2.8-11 12.67-7.311 18.506-22.484 14-36.4a43 43 0 00-18.4-25.1c-6.4-4.6-13.8-8.5-21.5-13.7l-4.4-3c-10.8-8-22-19-31.7-37.9l-.1-.2a71 71 0 00-19.9-2.3c12 5.8 41 37 4.2 43-29 3.1-47.3-27.9-84-28.7a47.8 47.8 0 00-13.5 9.4l-1 1a37 37 0 014.7-2c16.4 1 27 15.3 32.9 30.3 10.3 26.2 6.2 44.7-2.6 50.6-5.3 3.6-13.3 2.7-20-3.7l-1.5.7-1 .6-.7.3z",fill:"#009288"}),p.createElement("path",{d:"M29.5 189.23a37 37 0 014.5-2.2c16.4 1 27 15.3 33 30.3 10.3 26.2 6.2 44.7-2.6 50.6-5.3 3.6-13.4 2.7-20-3.7l-1.5.7c6.9-5.7 4.9-6.8 18-4.4-10.8-6.4-16.1-9.1-38.7 6.1a122.2 122.2 0 01-21.4-53.5 133 133 0 0128.7-24.1v.2z",fill:"#F9BF8C"}),p.createElement("path",{d:"M61 260.63c-13.2-2.4-11.1-1.3-18 4.4l-1 .6-.6.2-.6.3-.5.3-.6.3-1.1.6-.7.3-1 .6-.7.4-1.2.6-.6.3-1.3.7-.6.3-1.3.7-.5.3-1.4.8-.3.1-1.6 1-.6-.9-4.5-5.8c22.6-15.2 27.9-12.4 38.7-6v-.1z",fill:"#DB7A53"}),p.createElement("path",{d:"M128 207.43c-29.2 3.1-47.5-28.2-84.5-28.7 14.2-5.2 23-11.3 23-27.1 0-8.8-2.7-25.8-3.6-38.2 0 0 57 21.4 57.8 36.1l2 14.3c11.2 4.3 43.3 37.4 5.3 43.6z",fill:"#F9BF8C"}),p.createElement("path",{d:"M87.3 151.73a56.8 56.8 0 01-17.1-22.8 62.4 62.4 0 0043 22c2.5-.1 5-.2 7.3-.5v.5l.2 1.2c-4.7 11.9-7.3 19.5-33.4-.4z",fill:"#DB7A53"}),p.createElement("path",{d:"M162 280.43c.5 7.4-16.2 16.2-30.8 17.3-19.8 1.4-54.8-9.2-48-40.7 18.2 35 68.8 31.3 78.8 23.4z",fill:"#216D64"}),p.createElement("path",{d:"M122.5 72.33a9.8 9.8 0 00-2.1-.8h2.6l-.5.8zm-9.9.8a4.8 4.8 0 00-.6-1.7c7.3 0 4-.6.6 1.7zm12.6 14l.8.8c-.9-1.5-1.5-4.6-2.9-12.6l-.4-.3a16 16 0 002.5 12.1z",fill:"#F9BF8C"}),p.createElement("path",{d:"M154.7 95.83a44.5 44.5 0 00-1.6-8.2c-2-6-4.8-6.6-7.3-9.6a50.6 50.6 0 00-1-23.9c0 .1-8.7-35.8-54.2-22a44.6 44.6 0 00-10 5.9c-10.6 8.2-7.6 13.4-10 25.4a74.9 74.9 0 01-4.4 11.9c-4.8 3.8-7.6 6.5-8.1 9.9 1 4.7 5.4 18.3 5 28.1 6 27.2 36.6 38.3 50 37.6 2.6-.1 5-.2 7.4-.5 6.5-.7 11.9-2.8 17-11.3 6.4-10.8 5.6-16.5 9.4-22.5 2.5-4.1 9-9.7 7.8-20.8zm-42.2-19.5c-1 7.6-2.5 10.5-5.3 11.4a18.3 18.3 0 001.3-3.3c-4.6 2.5-17 2.8-21.2-3-.9.4-2 .4-4-.6l.2-.1c4.2-.1 2.6-1 4.1-3.8a10.6 10.6 0 01.6-1h17.1a11 11 0 013.8 6.7 58.3 58.3 0 001.2-6.8l3-.2-.8.7z",fill:"#F9BF8C"}),p.createElement("path",{d:"M112.6 124.23c-4-2-5.6-6.3-11.6-10.8 10 5.2 19.3 6.3 26.5 3.8-1.7 1.7 1.2 6.3-3.5 8.4-4 1.7-7.3.5-11.4-1.4z",fill:"#D86060"}),p.createElement("path",{d:"M101 113.43l-1.6-.8c7.9-.3 12.9-.7 17.2-.3 2.2.3 2.2 2 3.8 2 1.6 0 2.7-1.6 4.4-1.4 1.2.2 3 1.1 5.6 3a20.3 20.3 0 01-2.9 1.2c-7.2 2.6-16.6 1.5-26.5-3.7z",fill:"#BC3939"}),p.createElement("path",{d:"M108.5 84.43l.2-.5a15.2 15.2 0 00-2.3-3.8c-5-5.8-13.6-5.1-16.5-1.6-.9 1.3-1.5 2.4-2.6 3 4.1 5.7 16.6 5.4 21.2 3v-.1zM97 85.63a4.8 4.8 0 11.408-9.592A4.8 4.8 0 0197 85.629z",fill:"#FFF"}),p.createElement("path",{d:"M89.9 78.53c-.9 1.3-1.5 2.4-2.6 3-1.1.6-2 .2-4-.7l.2-.2c4.2 0 2.6-1 4.1-3.7 2.8-5.2 9-4.8 14.6-3 .1 0 5.9 2.4 6.8 8.7l-.3 1.2a14.4 14.4 0 00-2.3-3.7c-5-5.8-13.6-5.1-16.5-1.6z",fill:"#000"}),p.createElement("path",{d:"M127.5 83.03h-.1a27 27 0 0011.6.6c2.7-1 4.8-4 5-6.8-1.8-1.2-2.8-4.6-8.2-2.9-5 1.6-7 4.2-8.3 9v.1zm2.8-3.7a4.4 4.4 0 118.798-.2 4.4 4.4 0 01-8.798.2z",fill:"#FFF"}),p.createElement("path",{d:"M145.1 75.33c0 .5.5.7 1 .9a8 8 0 001.2.1l.1.2a5 5 0 01-1.4.6 2.4 2.4 0 01-2-.4c-1.8-1.2-2.8-4.6-8.2-2.8-4.9 1.6-7 4.2-8.3 9h-.2c-1.2-6.7 4-11.3 9-12.5l3.1-.2c2.8.2 5.2 1.8 5.7 5.1z",fill:"#000"}),p.createElement("path",{d:"M106.7 61.53c-4 0-8.2-.4-11.7-.3-3.6.1-8.3 1.7-12.8 4.6 1.9-4 8.5-7.2 12.5-7.7 2.9-.3 6.8-.7 9.7-.2 3.7.7 5.6 3.1 2.3 3.6zm24.7 5.6c2.3-2.6 6.8-6.2 9.4-5.8 3 .4 3.5 1.2 5.4 3.6.056.898.056 1.8 0 2.7H145a7.6 7.6 0 00-4.7-2.2c-1.9-.1-7 1.2-8.8 1.7h-.1z",fill:"#B2512B"}),p.createElement("circle",{fill:"#000",transform:"rotate(-78.1 97.1 80.83)",cx:97.1,cy:80.829,r:4.8}),p.createElement("circle",{fill:"#000",cx:134.7,cy:79.329,r:4.4}),p.createElement("path",{d:"M106.3 109.73a40 40 0 01-10.3-1.3c-1.9 2-.1 6.6-.7 9.2-1-3.4-4-8-2.2-12.4a28.7 28.7 0 0013.2-1c9-2.8 6.6-6.2 12.6-6.5-5.2 1-4.4 11.4-12.6 12z",fill:"#DB7A53"}),p.createElement("path",{d:"M54 29.03c3-3.6 13.5-5.8 20-6-.5 1.3 4.5 2.7 4 4a37.3 37.3 0 008.4-.2 3.5 3.5 0 00.4 2.7l3.8 2.6a44.6 44.6 0 00-10.1 5.9c-10.5 8.2-7.5 13.4-9.9 25.4a74.9 74.9 0 01-4.4 11.9l-12.4 7a10.3 10.3 0 00-5.3-.7l-.3-.4c-2.2-4-6.8-14.2-7.2-18.8-1.4-11.4 1.2-25 10-32.4a18.5 18.5 0 013-2 9.8 9.8 0 00.1 1H54zm2.7 55l1.4.7 3.5-1.6a5.5 5.5 0 01-2.4 1.9 10.4 10.4 0 01-1.2.2l-1.2-1.2h-.1z",fill:"#838BC5"}),p.createElement("path",{d:"M127 22.23c-7.5-4.7-7-2-15.6-4l5.2-.4c-13.3-1-28.6 3.4-30.1 9a37.3 37.3 0 01-8.4.2c.5-1.3-4.6-2.6-4-4-6.6.2-17 2.4-20.1 6a9.8 9.8 0 010-1c0-8.2 10.8-17.8 30.3-15.8 13.4-14.3 42.4-21 61 8.1-13-7.3-16.2-.2-19.3.8 7.8-1.6 27.3 3 28.9 24.3-1.7-7.8-8.4-8.6-13.6-8-1.7-2.3-3.5-4.3-4.9-5.9-4.5-5.2-3.5-5.7-9.4-9.3z",fill:"#0071BC"}),p.createElement("path",{d:"M137.4 46.73c3.4 14.5-3.1 19.3-22.4 18.8 12.5-8.9 11.5-19.3 2-26.1-8.2-6-14 .2-26.4-7.3a46 46 0 01-3.8-2.6 3.5 3.5 0 01-.3-2.7c1.5-5.6 16.8-10 30-9l-5 .3c8.6 2.2 8-.6 15.5 4 5.9 3.7 4.9 4.2 9.4 9.5 1.4 1.6 3.2 3.5 4.8 5.8 3 4.2 5.5 9.6 3.5 16.7a26 26 0 01-2.6 6.2 14.6 14.6 0 00-4.7-13.6z",fill:"#0071BC"}),p.createElement("path",{d:"M126.1 69.33h-.7a14.6 14.6 0 013.2-1.7 14.8 14.8 0 00-2.5 1.7zm-.9 17.8l.8.8c1.2 1.8 2.7 1.5 6.3 4.8l.6.2c1.8 1.7 2.8 3.7 2 6.4-.2 3.2-5.3 8.2-12 5.8 5.3-1 6.9-.8 7.6-5.6-.2-6.7-8.3-4-10-16.5a17.3 17.3 0 01.9-8.8 9 9 0 011.3.8 16 16 0 002.5 12.1zm-2.1-14.5a6.3 6.3 0 00-.6-.3l.5-.9c1 0 .4.2.1 1.2z",fill:"#DB7A53"}),p.createElement("path",{d:"M56.7 84.03a12.7 12.7 0 00-3-1.7l12.4-7 9.2-5.2c-1.3 1.7-1.6 4.2-1.1 7l-12.6 6-3.5 1.7-1.4-.8z",fill:"#93278F"}),p.createElement("path",{d:"M151 92.03c5.5-1.8 14.3-20.4 5.8-23.5-5.4-2-24.6-.6-29.9.8-29.7-.4-42.2-3.3-49.3-.7a5 5 0 00-2.3 1.6c-4.3 5.5 3.1 20.2 8 21.8a46.3 46.3 0 0012.5 1.6c11.6 0 14.8-2.2 16.6-17.3 1-.6 4.4-4.3 9-2a10.6 10.6 0 011.8 1c2.9 17.6 2.5 11.3 9.1 17.5l.6.1c5.8 1.4 13.9.5 18.1-.9zm-40.5-17.9c-.4 3.6-1.7 13.4-4.8 15.4-4.2 2.8-17 2-21.7.4-4-1.4-11.5-17.2-5.7-19.3 5.6-2 23.8 0 29.6.6 0 .2 2.8.3 2.6 3v-.1zm2.1-1a4.8 4.8 0 00-.6-1.8c7.3.2 4-.5.6 1.8zm10.5-.5a10 10 0 00-2.7-1.2c4.2.1 3.1-.3 2.7 1.2zm27.2 17.4c-4.7 1.6-16.3 2.5-20.6-.4-1-.7-2.8-5.1-4.5-15.3-.4-2.8 2.6-2.5 2.6-2.8.9-.2 4.3-.7 8.5-1 4.2-.3 15.6-1.2 19.7.2 5.8 2.1-1.6 18-5.7 19.3z",fill:"#5D237A"}),p.createElement("path",{d:"M45.5 82.33c-4.2 1.7-4.4 10-3 14.8 2.8 9.2 12 17.6 21.7 16.1 5.2-.7 1.5-5.7-1-16.4l-1-5.6c-3.3-7-9.4-11.7-16.7-8.9zm13.2 13c-.4.4-4.4 3.1-1.2 5 2.2 1.5 4 .5 3.6 2.6-.3 1.4 0 3.3-2 3 2-3-1.1-4-3-2.9s-5.7-5.3.9-8.2c-4-4.8-7.5-12.8-10-.5-3-9.7 3.6-17.3 11.7 1z",fill:"#F9BF8C"}),p.createElement("path",{d:"M58.7 95.33c-.4.4-4.4 3.1-1.2 5 2.2 1.5 4 .5 3.6 2.6-.3 1.4 0 3.3-2 3 2-3-1.1-4-3-2.9s-5.7-5.3.9-8.2c-4-4.8-7.5-12.8-10-.5-3-9.7 3.6-17.3 11.7 1z",fill:"#CE6D42"}))))}var m=a(35);function f(e){var t=e.workout,a=e.badges,c=e.upsellLink,n=e.upsellText,r=Object(i.useSelect)((function(e){return e("yoast-seo/workouts").getFinishedSteps(m.c.orphaned)})),p=c||"https://yoa.st/workout-orphaned-content-upsell";return Object(l.createElement)(s.a,{id:"orphaned-workout-card",name:m.c.orphaned,title:Object(o.__)("Orphaned content","wordpress-seo"),subtitle:Object(o.__)("Clean up your unlinked content to make sure people can find it","wordpress-seo"),usps:[Object(o.__)("Make pages easier for Google and visitors to find","wordpress-seo"),Object(o.__)("Add internal links to your posts and pages","wordpress-seo")],image:d,finishableSteps:m.a.orphaned,finishedSteps:r,upsellLink:p,upsellText:n,workout:t,badges:a})}f.propTypes={workout:r.a.func,badges:r.a.arrayOf(r.a.element),upsellLink:r.a.string,upsellText:r.a.string},f.defaultProps={workout:null,badges:[],upsellLink:null,upsellText:null}},185:function(e,t,a){"use strict";a.r(t);var c=a(160),l=a(161);window.yoast=window.yoast||{},window.yoast.adminModules={components:{workouts:{CornerstoneWorkoutCard:c.a,OrphanedWorkoutCard:l.a}}}},2:function(e,t){e.exports=window.wp.i18n},29:function(e,t,a){var c=a(59),l=a(60),n=a(61);e.exports=function(e,t){return c(e)||l(e,t)||n()}},35:function(e,t,a){"use strict";a.d(t,"c",(function(){return c})),a.d(t,"b",(function(){return l})),a.d(t,"a",(function(){return n}));var c={configuration:"configuration",cornerstone:"cornerstone",orphaned:"orphaned"},l={configuration:{optimizeSeoData:"optimizeSeoData",siteRepresentation:"siteRepresentation",socialProfiles:"socialProfiles",enableTracking:"enableTracking",newsletterSignup:"newsletterSignup"},cornerstone:{chooseCornerstones:"chooseCornerstones",checkLinks:"checkLinks",addLinks:"addLinks",improved:"improved",skipped:"skipped"},orphaned:{improveRemove:"improveRemove",update:"update",addLinks:"addLinks",removed:"removed",noindexed:"noindexed",improved:"improved",skipped:"skipped"}},n={configuration:[l.configuration.optimizeSeoData,l.configuration.siteRepresentation,l.configuration.socialProfiles,l.configuration.enableTracking,l.configuration.newsletterSignup],cornerstone:[l.cornerstone.chooseCornerstones,l.cornerstone.checkLinks,l.cornerstone.addLinks],orphaned:[l.orphaned.improveRemove,l.orphaned.update,l.orphaned.addLinks]}},4:function(e,t){e.exports=window.yoast.componentsNew},5:function(e,t){e.exports=window.React},59:function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},6:function(e,t){e.exports=window.wp.data},60:function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var a=[],_n=!0,c=!1,l=void 0;try{for(var n,r=e[Symbol.iterator]();!(_n=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);_n=!0);}catch(e){c=!0,l=e}finally{try{_n||null==r.return||r.return()}finally{if(c)throw l}}return a}}},61:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},8:function(e,t){e.exports=window.yoast.helpers}});
js/dist/analysis-worker.js CHANGED
@@ -1 +1 @@
1
- !function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=186)}({186:function(e,n){self.window=self,self.onmessage=function(e){var n=e.data;if(n&&n.dependencies){for(var t in n.dependencies)Object.prototype.hasOwnProperty.call(n.dependencies,t)&&(self.importScripts(n.dependencies[t]),"lodash"===t&&(self.lodash=_.noConflict()));var r=self.yoast.Researcher.default;new self.yoast.analysis.AnalysisWebWorker(self,new r).register()}}}});
1
+ !function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=186)}({186:function(t,e,n){var r=n(29);function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}self.window=self,self.onmessage=function(t){var e=t.data;if(e&&e.dependencies){!function(t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(self.importScripts(t[e]),"lodash"===e&&(self.lodash=_.noConflict()))}(e.dependencies),e.translations&&function(t){var e,n=function(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return o(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,void 0):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return l=t.done,t},e:function(t){u=!0,i=t},f:function(){try{l||null==n.return||n.return()}finally{if(u)throw i}}}}(t);try{for(n.s();!(e=n.n()).done;){var a=r(e.value,2),i=a[0],l=a[1],u=l.locale_data[i]||l.locale_data.messages;u[""].domain=i,self.wp.i18n.setLocaleData(u,i)}}catch(t){n.e(t)}finally{n.f()}}(e.translations);var n=self.yoast.Researcher.default;new self.yoast.analysis.AnalysisWebWorker(self,new n).register()}}},29:function(t,e,n){var r=n(59),o=n(60),a=n(61);t.exports=function(t,e){return r(t)||o(t,e)||a()}},59:function(t,e){t.exports=function(t){if(Array.isArray(t))return t}},60:function(t,e){t.exports=function(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var n=[],_n=!0,r=!1,o=void 0;try{for(var a,i=t[Symbol.iterator]();!(_n=(a=i.next()).done)&&(n.push(a.value),!e||n.length!==e);_n=!0);}catch(t){r=!0,o=t}finally{try{_n||null==i.return||i.return()}finally{if(r)throw o}}return n}}},61:function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}}});
js/dist/block-editor.js CHANGED
@@ -1,12 +1,12 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=205)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.yoast.propTypes},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.lodash},function(e,t){e.exports=window.yoast.componentsNew},function(e,t){e.exports=window.React},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.regeneratorRuntime},function(e,t){e.exports=window.yoast.helpers},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=window.yoast.styledComponents},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},function(e,t){function n(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(a,o){var i=e.apply(t,r);function s(e){n(i,a,o,s,c,"next",e)}function c(e){n(i,a,o,s,c,"throw",e)}s(void 0)}))}}},function(e,t){e.exports=window.yoast.externals.redux},function(e,t,n){var r=n(43);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(34),a=n(12);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t}},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.wp.components},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3);function a(){return Object(r.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}},function(e,t,n){var r=n(67),a=n(68),o=n(69);e.exports=function(e){return r(e)||a(e)||o()}},function(e,t){e.exports=window.yoast.styleGuide},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){e.exports=window.yoast.analysis},,function(e,t,n){var r=n(64),a=n(65),o=n(66);e.exports=function(e,t){return r(e)||a(e,t)||o()}},function(e,t){e.exports=window.yoast.externals.contexts},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=s(n(5)),o=s(n(90)),i=s(n(93));function s(e){return e&&e.__esModule?e:{default:e}}var c=void 0;t.default=function(e){var t=e.mixedString,n=e.components,s=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(s)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var l=(0,i.default)(t);try{return function e(t,n){var i,s,l,u,p,d,b,m,h=[],f={};for(d=0;d<t.length;d++)if("string"!==(p=t[d]).type){if(!n.hasOwnProperty(p.value)||void 0===n[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(n[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){i=n[p.value],l=d;break}h.push(n[p.value])}else h.push(p.value);return i&&(u=function(e,t){var n,r,a=t[e],o=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){o++;continue}if("componentClose"===n.type){if(0===o)return r;o--}}throw new Error("Missing closing component token `"+a.value+"`")}(l,t),b=e(t.slice(l+1,u),n),s=a.default.cloneElement(i,{},b),h.push(s),u<t.length-1&&(m=e(t.slice(u+1),n),h=h.concat(m))),1===h.length?h[0]:(h.forEach((function(e,t){e&&(f["interpolation-child-"+t]=e)})),(0,o.default)(f))}(l,n)}catch(e){if(s)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return d})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return g})),n.d(t,"e",(function(){return v})),n.d(t,"f",(function(){return w}));var r=n(16),a=n.n(r),o=n(7),i=n.n(o),s=n(36),c=n.n(s),l=n(3);function u(_x){return p.apply(this,arguments)}function p(){return(p=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c()(t);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),!e.t0.error||!e.t0.status){e.next=10;break}return e.abrupt("return",e.t0);case 10:if(!(e.t0 instanceof Response)){e.next=14;break}return e.next=13,e.t0.json();case 13:return e.abrupt("return",e.sent);case 14:return e.abrupt("return",!1);case 15:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function d(e,t,n){return b.apply(this,arguments)}function b(){return(b=a()(i.a.mark((function e(t,n,r){var a,o,s=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=s.length>3&&void 0!==s[3]?s[3]:200,e.prev=1,e.next=4,t();case 4:if(!(o=e.sent)){e.next=9;break}if(o.status!==a){e.next=8;break}return e.abrupt("return",n(o));case 8:return e.abrupt("return",r(o));case 9:return e.abrupt("return",!1);case 12:e.prev=12,e.t0=e.catch(1),console.error(e.t0.message);case 15:case"end":return e.stop()}}),e,null,[[1,12]])})))).apply(this,arguments)}function m(){return h.apply(this,arguments)}function h(){return(h=a()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u({path:"yoast/v1/wincher/authorization-url",method:"GET"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return y.apply(this,arguments)}function y(){return(y=a()(i.a.mark((function e(t){var n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.code,r=t.websiteId,e.next=3,u({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:n,websiteId:r}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(){return O.apply(this,arguments)}function O(){return(O=a()(i.a.mark((function e(){var t,n,r,a=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:null,n=a.length>1&&void 0!==a[1]?a[1]:null,r=a.length>2?a[2]:void 0,e.next=5,u({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:t,permalink:n},signal:r});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e){return j.apply(this,arguments)}function j(){return(j=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(l.isArray)(t)||(t=[t]),e.next=3,u({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:t}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function w(e){return k.apply(this,arguments)}function k(){return(k=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:t}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),i=function(e){var t=e.children;return Object(r.createElement)("div",null,t)};i.propTypes={renderPriority:o.a.number.isRequired,children:o.a.node.isRequired},t.a=i},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},,function(e,t){e.exports=window.wp.apiFetch},,function(e,t,n){var r=n(80);e.exports=function(e,t){if(null==e)return{};var n,a,o=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t){e.exports=window.wp.url},function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return i})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"h",(function(){return u})),n.d(t,"b",(function(){return p})),n.d(t,"l",(function(){return d})),n.d(t,"m",(function(){return b})),n.d(t,"n",(function(){return m})),n.d(t,"o",(function(){return h})),n.d(t,"k",(function(){return f})),n.d(t,"j",(function(){return y})),n.d(t,"i",(function(){return g}));var r=n(8),a="SNIPPET_EDITOR_SWITCH_MODE",o="SNIPPET_EDITOR_UPDATE_DATA",i="SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLE",s="SNIPPET_EDITOR_HIDE_REPLACEMENT_VARIABLES",c="SNIPPET_EDITOR_REMOVE_REPLACEMENT_VARIABLE",l="SNIPPET_EDITOR_REFRESH",u="SNIPPET_EDITOR_UPDATE_WORDS_TO_HIGHLIGHT",p="LOAD_SNIPPET_EDITOR_DATA";function d(e){return{type:a,mode:e}}function b(e){return{type:o,data:e}}function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o="string"==typeof t?Object(r.decodeHTML)(t):t;return{type:i,name:e,value:o,label:n,hidden:a}}function h(e){return{type:u,wordsToHighlight:e}}function f(e){return{type:c,name:e}}function y(){return{type:l,time:(new Date).getMilliseconds()}}function g(e){return{type:s,data:e}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o}));var r=n(0);function a(e){return e.charAt(0).toUpperCase()+e.slice(1)}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return Object(r.createInterpolateElement)(e,{a:Object(r.createElement)("a",{id:n,href:t,target:"_blank",rel:"noopener noreferrer"})})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),a=n(1),o=n.n(a);function i(e){var t=e.target,n=e.children,a=t;return"string"==typeof t&&(a=document.getElementById(t)),a?Object(r.createPortal)(n,a):null}i.propTypes={target:o.a.oneOfType([o.a.string,o.a.object]).isRequired,children:o.a.node.isRequired}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},,function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(14),a=n.n(r),o=n(20),i=n(0),s=n(30);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(){return Object(o.createHigherOrderComponent)((function(e){return Object(o.pure)((function(t){var n=Object(i.useContext)(s.LocationContext);return Object(i.createElement)(e,l(l({},t),{},{location:n}))}))}),"withLocation")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2),a=n(27),o=n(3);function i(e){return Object(o.isNil)(e)||(e/=10),function(e){switch(e){case"feedback":return{className:"na",screenReaderText:Object(r.__)("Feedback","wordpress-seo"),screenReaderReadabilityText:""};case"bad":return{className:"bad",screenReaderText:Object(r.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:Object(r.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:Object(r.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:Object(r.__)("OK","wordpress-seo")};case"good":return{className:"good",screenReaderText:Object(r.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:Object(r.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:""}}}(a.interpreters.scoreToRating(e))}},function(e,t){e.exports=window.yoast.replacementVariableEditor},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return _}));var r=n(26),a=n.n(r),o=n(38),i=n.n(o),s=n(14),c=n.n(s),l=n(9),u=n.n(l),p=n(10),d=n.n(p),b=n(12),m=n.n(b),h=n(18),f=n.n(h),y=n(19),g=n.n(y),O=n(11),v=n.n(O),j=n(0),w=n(1),k=n.n(w);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _=k.a.shape({value:k.a.string.isRequired,onChange:k.a.func.isRequired});t.a=function(e){return function(t){return function(n){f()(l,n);var r,o,s=(r=l,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v()(r);if(o){var n=v()(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return g()(this,e)});function l(t){var n;u()(this,l),(n=s.call(this,t)).elements={};var r={};return n.fields=e(t),n.fields.forEach((function(e){var t=e.name,a=e.fieldId,o=document.getElementById(a);o&&(n.elements[t]=o,r[t]={value:o.value,onChange:n.onChange.bind(m()(n),t)})})),n.state=r,n}return d()(l,[{key:"onChange",value:function(e,t){var n=this;this.setState(T(T({},this.state),{},c()({},e,T(T({},this.state[e]),{},{value:t}))),(function(){n.elements[e]&&(n.elements[e].value=t)}))}},{key:"render",value:function(){var e=this.props,n=e.children,r=i()(e,["children"]);return Object(j.createElement)(t,a()({},r,this.state),n)}}],[{key:"propTypes",get:function(){return{children:k.a.node}}}]),l}(j.Component)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return p}));var r=n(26),a=n.n(r),o=n(38),i=n.n(o),s=n(0),c=n(1),l=n.n(c),u=n(21),p="yoast yoast-gutenberg-modal",d=function(e){var t=e.title,n=e.className,r=e.showYoastIcon,o=e.additionalClassName,c=i()(e,["title","className","showYoastIcon","additionalClassName"]),l=r?Object(s.createElement)("span",{className:"yoast-icon"}):null;return Object(s.createElement)(u.Modal,a()({title:t,className:"".concat(n," ").concat(o),icon:l},c),e.children)};d.propTypes={title:l.a.string,className:l.a.string,showYoastIcon:l.a.bool,children:l.a.oneOfType([l.a.node,l.a.arrayOf(l.a.node)]),additionalClassName:l.a.string},d.defaultProps={title:"Yoast SEO",className:p,showYoastIcon:!0,children:null,additionalClassName:""},t.a=d},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=n(23);function o(){var e=Object(a.a)();return Object(r.get)(e,"contentLocale","en_US")}},function(e,t,n){"use strict";var r,a=n(15),o=n.n(a),i=n(25),s=n(8),c=n(13),l=n.n(c),u=Object(s.makeOutboundLink)(l.a.a(r||(r=o()(["\n\tdisplay: inline-block;\n\tposition: relative;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 100%;\n\twidth: 24px;\n\theight: 24px;\n\tmargin: -4px 0;\n\tvertical-align: middle;\n\n\tcolor: ",";\n\t\n\t&:hover,\n\t&:focus {\n\t\tcolor: ",";\t\n\t}\n\t\n\t// Overwrite the default blue active color for links.\n\t&:active {\n\t\tcolor: ",';\t\n\t}\n\n\t&::before {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tpadding: 2px;\n\t\tcontent: "\f223";\n\t}\n'],["\n\tdisplay: inline-block;\n\tposition: relative;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 100%;\n\twidth: 24px;\n\theight: 24px;\n\tmargin: -4px 0;\n\tvertical-align: middle;\n\n\tcolor: ",";\n\t\n\t&:hover,\n\t&:focus {\n\t\tcolor: ",";\t\n\t}\n\t\n\t// Overwrite the default blue active color for links.\n\t&:active {\n\t\tcolor: ",';\t\n\t}\n\n\t&::before {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tpadding: 2px;\n\t\tcontent: "\\f223";\n\t}\n'])),i.colors.$color_help_text,i.colors.$color_snippet_focus,i.colors.$color_help_text));t.a=u},function(e,t,n){"use strict";var r,a=n(26),o=n.n(a),i=n(15),s=n.n(i),c=n(0),l=n(4),u=n(13),p=n.n(u)()(l.Collapsible)(r||(r=s()(['\n\th2 > button {\n\t\tpadding-left: 24px;\n\t\tpadding-top: 16px;\n\n\t\t&:hover {\n\t\t\tbackground-color: #f0f0f0;\n\t\t}\n\t}\n\n\tdiv[class^="collapsible_content"] {\n\t\tpadding: 24px 0;\n\t\tmargin: 0 24px;\n\t\tborder-top: 1px solid rgba(0,0,0,0.2);\n\t}\n\n'])));t.a=function(e){return Object(c.createElement)(p,o()({hasPadding:!0,hasSeparator:!0},e))}},function(e,t){e.exports=window.yoast.externals.components},function(e,t){e.exports=window.wp.richText},function(e,t,n){"use strict";n.r(t),n.d(t,"nonReplaceVars",(function(){return d})),n.d(t,"fillReplacementVariables",(function(){return b})),n.d(t,"handlePrefixes",(function(){return m})),n.d(t,"createLabelFromName",(function(){return h})),n.d(t,"pushNewReplaceVar",(function(){return f})),n.d(t,"replaceSpaces",(function(){return y})),n.d(t,"prepareCustomFieldForDispatch",(function(){return g})),n.d(t,"prepareCustomTaxonomyForDispatch",(function(){return O})),n.d(t,"mapCustomTaxonomies",(function(){return v})),n.d(t,"mapCustomFields",(function(){return j})),n.d(t,"excerptFromContent",(function(){return w})),n.d(t,"applyReplaceUsingPlugin",(function(){return k}));var r=n(14),a=n.n(r),o=n(3),i=n(107),s=n(40),c=n(41);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=n(8).strings.stripHTMLTags,d=["slug","content","contentImage","snippetPreviewImageURL"];function b(e,t){Object(o.forEach)(e,(function(e,n){d.includes(n)||t.dispatch(Object(s.n)(n,e))}))}function m(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 h(e){return e=m(e),Object(c.b)(e)}function f(e,t){return e.push({name:t.name,label:t.label||h(t.name),value:t.value}),e}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e.replace(/\s/g,t)}function g(e){return{name:"cf_"+y(e),label:Object(c.b)(e+" (custom field)")}}function O(e){var t=y(e);return{name:"ct_"+t,label:Object(c.b)(e+" (custom taxonomy)"),descriptionName:"ct_desc_"+t,descriptionLabel:Object(c.b)(e+" description (custom taxonomy)")}}function v(e,t){return e.custom_taxonomies?(Object(o.forEach)(e.custom_taxonomies,(function(e,n){var r=O(n),a=r.name,o=r.label,i=r.descriptionName,c=r.descriptionLabel;t.dispatch(Object(s.n)(a,e.name,o)),t.dispatch(Object(s.n)(i,e.description,c))})),Object(o.omit)(u({},e),"custom_taxonomies")):e}function j(e,t){return e.custom_fields?(Object(o.forEach)(e.custom_fields,(function(e,n){var r=g(n),a=r.name,o=r.label;t.dispatch(Object(s.n)(a,e,o))})),Object(o.omit)(u({},e),"custom_fields")):e}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:156;return(e=(e=Object(i.stripTags)(e)).trim()).length<=t||(e=e.substring(0,t),/\s/.test(e)&&(e=e.substring(0,e.lastIndexOf(" ")))),e}var k=function(e){var t=Object(o.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!Object(o.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){var t=Object(o.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],o.identity);return{url:e.url,title:p(t(e.title)),description:p(t(e.description))}}(e);var n=t._applyModifications.bind(t);return{url:e.url,title:p(n("data_page_title",e.title)),description:p(n("data_meta_desc",e.description))}}},function(e,t,n){"use strict";var r=n(24),a=n.n(r),o=n(0),i=n(1),s=n.n(i),c=n(2),l=function(e){var t=e.data,n=e.mapChartDataToTableData,r=e.dataTableCaption,a=e.dataTableHeaderLabels,i=e.isDataTableVisuallyHidden;return t.length!==a.length?Object(o.createElement)("p",null,Object(c.__)("The number of headers and header labels don't match.","wordpress-seo")):Object(o.createElement)("div",{className:i?"screen-reader-text":null},Object(o.createElement)("table",null,Object(o.createElement)("caption",null,r),Object(o.createElement)("thead",null,Object(o.createElement)("tr",null,a.map((function(e,t){return Object(o.createElement)("th",{key:t},e)})))),Object(o.createElement)("tbody",null,Object(o.createElement)("tr",null,t.map((function(e,t){return Object(o.createElement)("td",{key:t},n(e.y))}))))))};l.propTypes={data:s.a.arrayOf(s.a.shape({x:s.a.number,y:s.a.number})).isRequired,mapChartDataToTableData:s.a.func,dataTableCaption:s.a.string.isRequired,dataTableHeaderLabels:s.a.array.isRequired,isDataTableVisuallyHidden:s.a.bool},l.defaultProps={mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};var u=l,p=function(e){var t=e.data,n=e.width,r=e.height,i=e.fillColor,s=e.strokeColor,c=e.strokeWidth,l=e.className,p=e.mapChartDataToTableData,d=e.dataTableCaption,b=e.dataTableHeaderLabels,m=e.isDataTableVisuallyHidden,h=Math.max(1,Math.max.apply(Math,a()(t.map((function(e){return e.x}))))),f=Math.max(1,Math.max.apply(Math,a()(t.map((function(e){return e.y}))))),y=r-c,g=t.map((function(e){var t=e.x/h*n,r=y-e.y/f*y+c;return"".concat(t,",").concat(r)})).join(" "),O="0,".concat(y+c," ")+g+" ".concat(n,",").concat(y+c);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("svg",{width:n,height:r,viewBox:"0 0 ".concat(n," ").concat(r),className:l,role:"img","aria-hidden":"true",focusable:"false"},Object(o.createElement)("polygon",{fill:i,points:O}),Object(o.createElement)("polyline",{fill:"none",stroke:s,strokeWidth:c,strokeLinejoin:"round",strokeLinecap:"round",points:g})),p&&Object(o.createElement)(u,{data:t,mapChartDataToTableData:p,dataTableCaption:d,dataTableHeaderLabels:b,isDataTableVisuallyHidden:m}))};p.propTypes={data:s.a.arrayOf(s.a.shape({x:s.a.number,y:s.a.number})).isRequired,width:s.a.number.isRequired,height:s.a.number.isRequired,fillColor:s.a.string,strokeColor:s.a.string,strokeWidth:s.a.number,className:s.a.string,mapChartDataToTableData:s.a.func,dataTableCaption:s.a.string.isRequired,dataTableHeaderLabels:s.a.array.isRequired,isDataTableVisuallyHidden:s.a.bool},p.defaultProps={fillColor:null,strokeColor:"#000000",strokeWidth:1,className:"",mapChartDataToTableData:null,isDataTableVisuallyHidden:!0},t.a=p},function(e,t,n){"use strict";function r(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()}n.d(t,"a",(function(){return r}))},,,function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},function(e,t,n){"use strict";n.r(t),n.d(t,"getIconForScore",(function(){return s})),n.d(t,"default",(function(){return c}));var r=n(27),a=n(25);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.getIdentifier(),a={score:e.score,rating:r.interpreters.scoreToRating(e.score),hasMarks:e.hasMarks(),marker:e.getMarker(),id:n,text:e.text,markerId:t.length>0?"".concat(t,":").concat(n):n};return"ok"===a.rating&&(a.rating="OK"),a}function i(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 s(e){var t={icon:"seo-score-none",color:a.colors.$color_red};switch(e){case"loading":t={icon:"loading-spinner",color:a.colors.$color_green_medium_light};break;case"good":t={icon:"seo-score-good",color:a.colors.$color_green_medium};break;case"ok":t={icon:"seo-score-ok",color:a.colors.$color_ok};break;case"bad":t={icon:"seo-score-bad",color:a.colors.$color_red}}return t}function c(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 a=e[r];if(a.text){var s=o(a,t);n=i(s,n)}}return n}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],_n=!0,r=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(_n=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,a=e}finally{try{_n||null==i.return||i.return()}finally{if(r)throw a}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),i=n(13),s=n(30),c=function(e){var t=e.theme,n=e.location,a=e.children;return Object(r.createElement)(s.LocationProvider,{value:n},Object(r.createElement)(i.ThemeProvider,{theme:t},a))};c.propTypes={theme:o.a.object.isRequired,location:o.a.oneOf(["sidebar","metabox","modal"]).isRequired,children:o.a.element.isRequired},t.a=c},function(e,t){e.exports=window.moment},function(e,t,n){"use strict";var r=n(29),a=n.n(r),o=n(0),i=n(4),s=n(1),c=n.n(s),l=function(e){var t=Object(o.useState)(!1),n=a()(t,2),r=n[0],s=n[1],c=e.prefixIcon;return Object(o.createElement)("div",{className:"yoast components-panel__body ".concat(r?"is-opened":"")},Object(o.createElement)("h2",{className:"components-panel__body-title"},Object(o.createElement)("button",{onClick:function(){s(!r)},className:"components-button components-panel__body-toggle"},Object(o.createElement)("span",{className:"yoast-icon-span",style:{fill:"".concat(c&&c.color||"")}},c&&Object(o.createElement)(i.SvgIcon,{icon:c.icon,color:c.color,size:c.size})),Object(o.createElement)("span",{className:"yoast-title-container"},Object(o.createElement)("div",{className:"yoast-title"},e.title),Object(o.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),Object(o.createElement)("span",{className:"yoast-chevron","aria-hidden":"true"}))),r&&e.children)};t.a=l,l.propTypes={title:c.a.string.isRequired,children:c.a.oneOfType([c.a.node,c.a.arrayOf(c.a.node)]).isRequired,prefixIcon:c.a.object,subTitle:c.a.string},l.defaultProps={prefixIcon:null,subTitle:""}},,,function(e,t){e.exports=window.yoast.featureFlag},function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(81);t.a=Object(r.compose)([Object(a.withSelect)((function(e,t){var n=e("yoast-seo/editor"),r=n.getPostOrPageString,a=n.getIsModalOpen;return{postTypeName:r(),isOpen:a(t.id)}})),Object(a.withDispatch)((function(e,t){var n=e("yoast-seo/editor"),r=n.openEditorModal;return{open:function(){return r(t.id)},close:n.closeEditorModal}}))])(o.a)},function(e,t,n){"use strict";n.d(t,"b",(function(){return E}));var r=n(14),a=n.n(r),o=n(9),i=n.n(o),s=n(10),c=n.n(s),l=n(12),u=n.n(l),p=n(18),d=n.n(p),b=n(19),m=n.n(b),h=n(11),f=n.n(h),y=n(0),g=n(2),O=n(4),v=n(1),j=n.n(v),w=n(50);var k=function(e){d()(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=f()(t);if(n){var a=f()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return m()(this,e)});function o(e){var t;return i()(this,o),(t=r.call(this,e)).initialPageType=e.pageType.value,t.initialArticleType=e.articleType?e.articleType.value:"None",t.state={schema_page_type:t.initialPageType,schema_article_type:t.initialArticleType},t.handleOptionFocus=t.handleOptionFocus.bind(u()(t)),t}return c()(o,[{key:"shouldShowAlert",value:function(){return this.state.schema_page_type!==this.initialPageType||this.state.schema_article_type!==this.initialArticleType}},{key:"handleOptionFocus",value:function(e,t){this.setState(a()({},e,t))}},{key:"render",value:function(){return Object(y.createElement)(y.Fragment,null,Object(y.createElement)(O.FieldGroup,{label:Object(g.__)("Schema settings","wordpress-seo"),linkTo:"https://yoa.st/404",linkText:Object(g.__)("Learn more about the schema settings","wordpress-seo"),description:Object(g.sprintf)(
2
  /* translators: %1$s expands to an indexable object's name, e.g. Posts or Pages. */
3
  Object(g.__)("Choose how your %1$s should be described by default in your site's schema.org markup. You can change these settings for individual %1$s.","wordpress-seo"),this.props.postTypeName)}),this.shouldShowAlert()&&Object(y.createElement)(O.Alert,{type:"warning"},Object(g.sprintf)(
4
  /* translators: %1$s expands to an indexable object's name, e.g. Posts or Pages. */
5
- Object(g._n)("Upon saving, this setting will apply to all of your %1$s. %1$s that are manually configured will be left untouched.","Upon saving, these settings will apply to all of your %1$s. %1$s that are manually configured will be left untouched.",this.props.articleType?2:1,"wordpress-seo"),this.props.postTypeName)),Object(y.createElement)(O.Select,{id:"schema-page-type-".concat(this.props.postType),name:"schema_page_type",options:this.props.pageTypeOptions,label:Object(g.__)("Default Page type","wordpress-seo"),onChange:this.props.pageType.onChange,selected:this.props.pageType.value,onOptionFocus:this.handleOptionFocus}),this.props.articleType&&Object(y.createElement)(O.Select,{id:"schema-article-type-".concat(this.props.postType),name:"schema_article_type",options:this.props.articleTypeOptions,label:Object(g.__)("Default Article type","wordpress-seo"),onChange:this.props.articleType.onChange,onOptionFocus:this.handleOptionFocus,selected:this.props.articleType.value}))}}]),o}(y.Component),E=j.a.arrayOf(j.a.shape({name:j.a.string,value:j.a.string}));k.propTypes={postType:j.a.string.isRequired,postTypeName:j.a.string.isRequired,pageType:w.b.isRequired,articleType:w.b,pageTypeOptions:E.isRequired,articleTypeOptions:E.isRequired},k.defaultProps={articleType:null},t.a=Object(w.a)((function(e){return[{name:"pageType",fieldId:e.pageTypeFieldId},{name:"articleType",fieldId:e.articleTypeFieldId}]}))(k)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(9),a=n.n(r),o=n(10),i=n.n(o),s=function(){function e(){a()(this,e)}return i()(e,null,[{key:"articleTypeInput",get:function(){return document.getElementById("yoast_wpseo_schema_article_type")}},{key:"defaultArticleType",get:function(){return e.articleTypeInput.getAttribute("data-default")}},{key:"articleType",get:function(){return e.articleTypeInput.value},set:function(t){e.articleTypeInput.value=t}},{key:"pageTypeInput",get:function(){return document.getElementById("yoast_wpseo_schema_page_type")}},{key:"defaultPageType",get:function(){return e.pageTypeInput.getAttribute("data-default")}},{key:"pageType",get:function(){return e.pageTypeInput.value},set:function(t){e.pageTypeInput.value=t}}]),e}()},,function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}},function(e,t,n){"use strict";n.d(t,"b",(function(){return p}));var r=n(0),a=n(2),o=n(51),i=n(1),s=n.n(i),c=n(3),l=n(82),u=n(30),p=function(e){var t=!0;if("blur"===e.type){var n=e.relatedTarget;if(n){var r=["media-modal","wp-core-ui"];t=Object(c.intersection)(r,Array.from(n.classList)).length!==r.length}}return t},d=function(e){var t=e.id,n=e.postTypeName,i=e.children,s=e.title,c=e.isOpen,d=e.close,b=e.open,m=Object(r.useCallback)((function(e){p(e)&&d()}),[d]);return Object(r.createElement)(r.Fragment,null,c&&Object(r.createElement)(u.LocationProvider,{value:"modal"},Object(r.createElement)(o.a,{title:s,onRequestClose:m,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal"},Object(r.createElement)("div",{className:"yoast-content-container"},Object(r.createElement)("div",{className:"yoast-modal-content"},i)),Object(r.createElement)("div",{className:"yoast-notice-container"},Object(r.createElement)("hr",null),Object(r.createElement)("div",{className:"yoast-button-container"},Object(r.createElement)("p",null,
6
  /* Translators: %s translates to the Post Label in singular form */
7
  Object(a.sprintf)(Object(a.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),n)),Object(r.createElement)("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:m},
8
  /* Translators: %s translates to the Post Label in singular form */
9
- Object(a.sprintf)(Object(a.__)("Return to your %s","wordpress-seo"),n)))))),Object(r.createElement)(l.a,{id:t+"-open-button",title:s,suffixIcon:{size:"20px",icon:"pencil-square"},onClick:b}))};d.propTypes={id:s.a.string.isRequired,postTypeName:s.a.string.isRequired,children:s.a.oneOfType([s.a.node,s.a.arrayOf(s.a.node)]).isRequired,title:s.a.string.isRequired,isOpen:s.a.bool.isRequired,open:s.a.func.isRequired,close:s.a.func.isRequired},t.a=d},function(e,t,n){"use strict";var r=n(0),a=n(4),o=n(1),i=n.n(o),s=function(e){return Object(r.createElement)("div",{className:"yoast components-panel__body"},Object(r.createElement)("h2",{className:"components-panel__body-title"},Object(r.createElement)("button",{id:e.id,onClick:e.onClick,className:"components-button components-panel__body-toggle"},e.prefixIcon&&Object(r.createElement)("span",{className:"yoast-icon-span",style:{fill:"".concat(e.prefixIcon&&e.prefixIcon.color||"")}},Object(r.createElement)(a.SvgIcon,{size:e.prefixIcon.size,icon:e.prefixIcon.icon})),Object(r.createElement)("span",{className:"yoast-title-container"},Object(r.createElement)("div",{className:"yoast-title"},e.title),Object(r.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),e.suffixIcon&&Object(r.createElement)(a.SvgIcon,{size:e.suffixIcon.size,icon:e.suffixIcon.icon}))))};t.a=s,s.propTypes={onClick:i.a.func.isRequired,title:i.a.string.isRequired,id:i.a.string,subTitle:i.a.string,suffixIcon:i.a.object,prefixIcon:i.a.object},s.defaultProps={id:"",suffixIcon:null,prefixIcon:null,subTitle:""}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return y})),n.d(t,"b",(function(){return g}));var r=n(0),a=n(1),o=n.n(a),i=n(2),s=n(3),c=n(71),l=n.n(c),u=n(4),p=n(8),d=n(58),b=function(){return Object(r.createElement)("p",{className:"yoast-wincher-seo-performance-modal__loading-message"},Object(i.__)("Tracking the ranking position...","wordpress-seo")," ",Object(r.createElement)(u.SvgIcon,{icon:"loading-spinner"}))},m=Object(p.makeOutboundLink)();function h(e){return Math.round(100*e)}function f(e){var t=e.chartData;if(Object(s.isEmpty)(t)||Object(s.isEmpty)(t.position))return"?";var n=function(e){return Array.from({length:e.position.history.length},(function(e,t){return t+1})).map((function(e){
10
  /* translators: %d expands to the amount of days */
11
  return Object(i.sprintf)(Object(i._n)("%d day","%d days",e,"wordpress-seo"),e)}))}(t),a=t.position.history.map((function(e,t){return{x:t,y:101-e.value}}));return Object(r.createElement)(d.a,{width:66,height:24,data:a,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:h,dataTableCaption:Object(i.__)("Keyphrase position in the last 90 days on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:n})}function y(e){return!e||!e.position||e.position.value>100?"> 100":e.position.value}function g(e){var t=e.keyphrase,n=e.rowData,a=e.onTrackKeyphrase,o=e.onUntrackKeyphrase,c=e.isFocusKeyphrase,p=e.isDisabled,d=e.isLoading,h=!Object(s.isEmpty)(n),g=Object(r.useCallback)((function(){p||(h?o(t,n.id):a(t))}),[t,a,o,h,n,p]);return Object(r.createElement)("tr",null,Object(r.createElement)("td",{className:"yoast-table--nopadding"},function(e){var t=e.keyphrase,n=e.isEnabled,a=e.toggleAction;return e.isLoading?Object(r.createElement)(u.SvgIcon,{icon:"loading-spinner"}):Object(r.createElement)(u.Toggle,{id:"toggle-keyphrase-tracking-".concat(t),className:"wincher-toggle",isEnabled:n,onSetToggleState:a,showToggleStateLabel:!1})}({keyphrase:t,isEnabled:h,toggleAction:g,isLoading:d})),Object(r.createElement)("td",null,t,c&&Object(r.createElement)("span",null,"*")),function(e){var t=e.rowData,n=e.websiteId,a=!Object(s.isEmpty)(t),o=t&&t.updated_at&&l()(t.updated_at)>=l()().subtract(7,"days"),c=t?Object(i.sprintf)("https://app.wincher.com/websites/%s/keywords?serp=%s&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast",n,t.id):null;return a?o?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",null,y(t)),Object(r.createElement)("td",{className:"yoast-table--nopadding"},Object(r.createElement)(f,{chartData:t})),Object(r.createElement)("td",{className:"yoast-table--nobreak"},Object(r.createElement)(m,{href:c},Object(i.__)("View","wordpress-seo")))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},Object(r.createElement)(b,null))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",null,"?"),Object(r.createElement)("td",{className:"yoast-table--nopadding"},"?"),Object(r.createElement)("td",{className:"yoast-table--nobreak"}))}(e))}f.propTypes={chartData:o.a.object},f.defaultProps={chartData:{}},g.propTypes={rowData:o.a.object,keyphrase:o.a.string.isRequired,onTrackKeyphrase:o.a.func,onUntrackKeyphrase:o.a.func,isFocusKeyphrase:o.a.bool,isDisabled:o.a.bool,isLoading:o.a.bool,websiteId:o.a.string},g.defaultProps={rowData:{},onTrackKeyphrase:function(){},onUntrackKeyphrase:function(){},isFocusKeyphrase:!1,isDisabled:!1,isLoading:!1,websiteId:""}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(16),a=n.n(r),o=n(9),i=n.n(o),s=n(10),c=n.n(s),l=n(7),u=n.n(l),p=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i()(this,e),this.url=t,this.origin=new URL(t).origin,this.eventHandlers=Object.assign({success:{type:"",callback:function(){}},error:{type:"",callback:function(){}}},n),this.options=Object.assign({height:570,width:340,title:""},r),this.popup=null,this.createPopup=this.createPopup.bind(this),this.messageHandler=this.messageHandler.bind(this),this.getPopup=this.getPopup.bind(this)}var t;return c()(e,[{key:"createPopup",value:function(){var e=this.options,t=e.height,n=e.width,r=e.title,a=["top="+(window.top.outerHeight/2+window.top.screenY-t/2),"left="+(window.top.outerWidth/2+window.top.screenX-n/2),"width="+n,"height="+t,"resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(this.url,r,a.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}},{key:"messageHandler",value:(t=a()(u.a.mark((function e(t){var n,r;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.data,r=t.source,t.origin===this.origin&&this.popup===r){e.next=3;break}return e.abrupt("return");case 3:if(n.type!==this.eventHandlers.success.type){e.next=8;break}return this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),e.next=8,this.eventHandlers.success.callback(n);case 8:if(n.type!==this.eventHandlers.error.type){e.next=13;break}return this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),e.next=13,this.eventHandlers.error.callback(n);case 13:case"end":return e.stop()}}),e,this)}))),function(_x){return t.apply(this,arguments)})},{key:"getPopup",value:function(){return this.popup}},{key:"isClosed",value:function(){return!this.popup||this.popup.closed}},{key:"focus",value:function(){this.isClosed()||this.popup.focus()}}]),e}()},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),i=n(2),s=n(31),c=n.n(s),l=n(4),u=function(e){var t=Object(i.sprintf)(
12
  /* translators: %s expands to a link to open the Wincher login popup. */
@@ -16,7 +16,7 @@ Object(i.__)("reconnect to %s","wordpress-seo"),"Wincher"))}}))};u.propTypes={on
16
  /* Translators: %s expands to the social medium name, which is either Twitter or Facebook. %s expands to Yoast SEO Premium */
17
  Object(T.__)("Want to see how your content will look when it’s shared on %s?","wordpress-seo"),e.socialMediumName),n=Object(T.sprintf)(
18
  /* Translators: %s expands to Yoast SEO Premium */
19
- Object(T.__)("Get %s to unlock social previews!","wordpress-seo"),"Yoast SEO Premium");return Object(f.createElement)(f.Fragment,null,Object(f.createElement)(S,{type:"info"},E()({mixedString:t,components:{strong:Object(f.createElement)("b",null)}}),Object(f.createElement)("br",null),Object(f.createElement)(P,{href:wpseoAdminL10n["shortlinks.upsell.social_previews"]},Object(f.createElement)("p",null,n))))};x.propTypes={socialMediumName:g.a.oneOf(["Twitter","Facebook"]).isRequired};var C=x,A=n(126),I=n(47);var L=function(e){p()(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=h()(t);if(n){var a=h()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return b()(this,e)});function a(e){var t;return o()(this,a),(t=r.call(this,e)).state={activeField:"",hoveredField:""},t.setHoveredField=t.setHoveredField.bind(l()(t)),t.setActiveField=t.setActiveField.bind(l()(t)),t.setEditorRef=t.setEditorRef.bind(l()(t)),t.setEditorFocus=t.setEditorFocus.bind(l()(t)),t}return s()(a,[{key:"setHoveredField",value:function(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}},{key:"setActiveField",value:function(e){var t=this;e!==this.state.activeField&&this.setState({activeField:e},(function(){return t.setEditorFocus(e)}))}},{key:"setEditorFocus",value:function(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}},{key:"setEditorRef",value:function(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}},{key:"render",value:function(){var e=this.props,t=e.onDescriptionChange,n=e.onTitleChange,r=e.onSelectImageClick,a=e.onRemoveImageClick,o=e.socialMediumName,i=e.imageWarnings,s=e.description,c=e.descriptionInputPlaceholder,l=e.imageUrl,u=e.title,p=e.titleInputPlaceholder,d=e.replacementVariables,b=e.recommendedReplacementVariables,m=e.isPremium,h=e.location;return Object(f.createElement)(f.Fragment,null,Object(f.createElement)(C,{socialMediumName:o}),Object(f.createElement)(A.SocialMetadataPreviewForm,{onDescriptionChange:t,socialMediumName:o,title:u,titleInputPlaceholder:p,onRemoveImageClick:a,imageSelected:!!l,imageUrl:l,onTitleChange:n,onSelectImageClick:r,description:s,descriptionInputPlaceholder:c,imageWarnings:i,replacementVariables:d,recommendedReplacementVariables:b,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:m,setEditorRef:this.setEditorRef,idSuffix:h}))}}]),a}(f.Component);L.propTypes={title:g.a.string.isRequired,onTitleChange:g.a.func.isRequired,description:g.a.string.isRequired,onDescriptionChange:g.a.func.isRequired,imageUrl:g.a.string.isRequired,onSelectImageClick:g.a.func.isRequired,onRemoveImageClick:g.a.func.isRequired,socialMediumName:g.a.string.isRequired,isPremium:g.a.bool,imageWarnings:g.a.array,descriptionInputPlaceholder:g.a.string,titleInputPlaceholder:g.a.string,replacementVariables:I.replacementVariablesShape,recommendedReplacementVariables:I.recommendedReplacementVariablesShape,location:g.a.string},L.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",location:""},t.a=L},function(e,t,n){"use strict";var r=n(5),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(62),i=n(91),s=n(92),c="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}var u=/\/+/g;function p(e){return(""+e).replace(u,"$&/")}var d,b,m=h,h=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)};function f(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var a,i,s=e.result,c=e.keyPrefix,l=e.func,u=e.context,d=l.call(u,t,e.count++);Array.isArray(d)?g(d,s,n,o.thatReturnsArgument):null!=d&&(r.isValidElement(d)&&(a=d,i=c+(!d.key||t&&t.key===d.key?"":p(d.key)+"/")+n,d=r.cloneElement(a,{key:i},void 0!==a.props?a.props.children:void 0)),s.push(d))}function g(e,t,n,r,o){var s="";null!=n&&(s=p(n)+"/");var u=f.getPooled(t,s,r,o);!function(e,t,n){null==e||function e(t,n,r,o){var s,u=typeof t;if("undefined"!==u&&"boolean"!==u||(t=null),null===t||"string"===u||"number"===u||"object"===u&&t.$$typeof===a)return r(o,t,""===n?"."+l(t,0):n),1;var p=0,d=""===n?".":n+":";if(Array.isArray(t))for(var b=0;b<t.length;b++)p+=e(s=t[b],d+l(s,b),r,o);else{var m=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(m)for(var h,f=m.call(t),y=0;!(h=f.next()).done;)p+=e(s=h.value,d+l(s,y++),r,o);else if("object"===u){var g=""+t;i(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===g?"object with keys {"+Object.keys(t).join(", ")+"}":g,"")}}return p}(e,"",t,n)}(e,y,u),f.release(u)}f.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){if(this.instancePool.length){var a=this.instancePool.pop();return this.call(a,e,t,n,r),a}return new this(e,t,n,r)},(b=f).instancePool=[],b.getPooled=d||m,b.poolSize||(b.poolSize=10),b.release=function(e){i(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)},e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return s(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return s(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;i(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)g(e[n],t,n,o.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,o,i,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,a,o,i,s],u=0;(c=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(62);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t,n){"use strict";var r=n(0),a=n(2),o=n(31),i=n.n(o),s=n(8),c=Object(s.makeOutboundLink)(),l=Object(s.makeOutboundLink)();t.a=function(){var e=Object(a.sprintf)(Object(a.__)(
20
  /* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */
21
  "With %1$s you can track the ranking position of your page in the search results based on your keyphrase(s). %2$s","wordpress-seo"),"{{wincherLink/}}","{{wincherReadMoreLink/}}");return Object(r.createElement)("p",null,i()({mixedString:e,components:{wincherLink:Object(r.createElement)(c,{href:wpseoAdminGlobalL10n["links.wincher.website"]},"Wincher"),wincherReadMoreLink:Object(r.createElement)(l,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"]},Object(a.__)("Read more about keyphrase tracking with Wincher","wordpress-seo"))}}))}},function(e,t,n){"use strict";var r=n(6),a=n(20),o=n(26),i=n.n(o),s=n(15),c=n.n(s),l=n(16),u=n.n(l),p=n(0),d=n(7),b=n.n(d),m=n(2),h=n(1),f=n.n(h),y=n(3),g=n(13),O=n.n(g),v=n(4),j=n(8),w=n(31),k=n.n(w),E=Object(j.makeOutboundLink)(),T=function(e){var t=Object(m.sprintf)(
22
  /* translators: %d expands to the amount of allowed keyphrases on a free account, %s expands to a link to Wincher plans. */
@@ -26,19 +26,19 @@ Object(m.__)("upgrade your %s plan","wordpress-seo"),"Wincher"))}}))};T.propType
26
  /* translators: %s: Expands to "Wincher". */
27
  Object(m.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher"))},A=function(){return Object(p.createElement)(v.Alert,{type:"info"},Object(m.sprintf)(
28
  /* translators: %s: Expands to "Wincher". */
29
- Object(m.__)("%s is currently tracking the ranking position(s) of your page. This may take a few minutes. Please wait or check back later.","wordpress-seo"),"Wincher"))},I=n(24),L=n.n(I),q=n(29),F=n.n(q),N=n(84),D=n(32),M=Object(j.makeOutboundLink)(),K=O.a.span(_||(_=c()(["\n\tdisplay: block;\n\tfont-style: italic;\n\n\t@media (min-width: 782px) {\n\t\tdisplay: inline;\n\t\tposition: absolute;\n\t\t",": 8px;\n\t}\n"])),Object(j.getDirectionalStyle)("right","left")),W=O.a.th(R||(R=c()(["\n\tmin-width: 60px;\n"]))),B=O.a.div(S||(S=c()(["\n\twidth: 100%;\n\toverflow-y: auto;\n"]))),H=function(e){var t=Object(p.useRef)();return Object(p.useEffect)((function(){t.current=e})),t.current},V=Object(y.debounce)(D.c,500,{leading:!0}),U=function(e){var t=e.addTrackedKeyphrase,n=e.isLoggedIn,r=e.keyphrases,a=e.permalink,o=e.removeTrackedKeyphrase,i=e.setKeyphraseLimitReached,s=e.setRequestFailed,c=e.setRequestSucceeded,l=e.setTrackedKeyphrases,d=e.setHasTrackedAll,h=e.trackAll,f=e.trackedKeyphrases,g=e.isNewlyAuthenticated,O=e.websiteId,v=e.focusKeyphrase,j=e.newRequest,w=Object(p.useRef)(),k=Object(p.useRef)(),E=Object(p.useRef)(!1),T=Object(p.useState)([]),_=F()(T,2),R=_[0],S=_[1],P=Object(p.useCallback)((function(e){var t=e.toLowerCase();return f&&!Object(y.isEmpty)(f)&&f.hasOwnProperty(t)?f[t]:null}),[f]),x=Object(p.useMemo)((function(){return u()(b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(D.d)((function(){return k.current&&k.current.abort(),k.current="undefined"==typeof AbortController?null:new AbortController,V(r,a,k.current.signal)}),(function(e){c(e),l(e.results)}),(function(e){s(e)}));case 2:case"end":return e.stop()}}),e)})))}),[c,s,l,r,a]),C=Object(p.useCallback)(function(){var e=u()(b.a.mark((function e(n){var r;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(Array.isArray(n)?n:[n]).map((function(e){return e.toLowerCase()})),S((function(e){return[].concat(L()(e),L()(r))})),e.next=4,Object(D.d)((function(){return Object(D.e)(r)}),(function(e){c(e),t(e.results),x()}),(function(e){400===e.status&&e.limit&&i(e.limit),s(e)}),201);case 4:S((function(e){return y.without.apply(void 0,[e].concat(L()(r)))}));case 5:case"end":return e.stop()}}),e)})));return function(_x){return e.apply(this,arguments)}}(),[c,s,i,t,x]),A=Object(p.useCallback)(function(){var e=u()(b.a.mark((function e(t,n){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=t.toLowerCase(),S((function(e){return[].concat(L()(e),[t])})),e.next=4,Object(D.d)((function(){return Object(D.f)(n)}),(function(e){c(e),o(t)}),(function(e){s(e)}));case 4:S((function(e){return Object(y.without)(e,t)}));case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[c,o,s]),I=Object(p.useCallback)(function(){var e=u()(b.a.mark((function e(t){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return j(),e.next=3,C(t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[j,C]),q=H(a),U=H(r);Object(p.useEffect)((function(){n&&a&&(a!==q||Object(y.difference)(r,U).length)&&x()}),[n,a,q,r,U,x]),Object(p.useEffect)((function(){if(n&&h&&null!==f){var e=r.filter((function(e){return!P(e)}));e.length&&C(e),d()}}),[n,h,f,C,d,P,r]),Object(p.useEffect)((function(){g&&!E.current&&(x(),E.current=!0)}),[g,x]),Object(p.useEffect)((function(){if(n&&!Object(y.isEmpty)(f))return Object(y.filter)(f,(function(e){return Object(y.isEmpty)(e.updated_at)})).length>0&&(w.current=setInterval((function(){x()}),1e4)),function(){clearInterval(w.current)}}),[n,f,x]);var Y=n&&null===f;return r&&!Object(y.isEmpty)(r)&&Object(p.createElement)(p.Fragment,null,Object(p.createElement)(B,null,Object(p.createElement)("table",{className:"yoast yoast-table"},Object(p.createElement)("thead",null,Object(p.createElement)("tr",null,Object(p.createElement)("th",{scope:"col",abbr:Object(m.__)("Tracking","wordpress-seo")},Object(m.__)("Tracking","wordpress-seo")),Object(p.createElement)("th",{scope:"col",abbr:Object(m.__)("Keyphrase","wordpress-seo")},Object(m.__)("Keyphrase","wordpress-seo")),Object(p.createElement)("th",{scope:"col",abbr:Object(m.__)("Position","wordpress-seo")},Object(m.__)("Position","wordpress-seo")),Object(p.createElement)("th",{scope:"col",abbr:Object(m.__)("Position over time","wordpress-seo")},Object(m.__)("Position over time","wordpress-seo")),Object(p.createElement)(W,{className:"yoast-table--nobreak"}))),Object(p.createElement)("tbody",null,r.map((function(e,t){return Object(p.createElement)(N.b,{key:"trackable-keyphrase-".concat(t),keyphrase:e,onTrackKeyphrase:I,onUntrackKeyphrase:A,rowData:P(e),isFocusKeyphrase:e===v.trim(),websiteId:O,isDisabled:!n,isLoading:Y||R.indexOf(e.toLowerCase())>=0})}))))),Object(p.createElement)("p",{style:{marginBottom:0,position:"relative"}},Object(p.createElement)(M,{href:wpseoAdminGlobalL10n["links.wincher.login"]},Object(m.sprintf)(
30
  /* translators: %s expands to Wincher */
31
- Object(m.__)("Get more insights over at %s","wordpress-seo"),"Wincher")),Object(p.createElement)(K,null,Object(m.__)("* focus keyphrase","wordpress-seo"))))};U.propTypes={addTrackedKeyphrase:f.a.func.isRequired,isLoggedIn:f.a.bool,isNewlyAuthenticated:f.a.bool,keyphrases:f.a.array,newRequest:f.a.func.isRequired,removeTrackedKeyphrase:f.a.func.isRequired,setRequestFailed:f.a.func.isRequired,setKeyphraseLimitReached:f.a.func.isRequired,setRequestSucceeded:f.a.func.isRequired,setTrackedKeyphrases:f.a.func.isRequired,setHasTrackedAll:f.a.func.isRequired,trackAll:f.a.bool,trackedKeyphrases:f.a.object,websiteId:f.a.string,permalink:f.a.string.isRequired,focusKeyphrase:f.a.string},U.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],trackAll:!1,trackedKeyphrases:null,websiteId:"",focusKeyphrase:""};var Y,z,G,$=U,Z=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getWincherWebsiteId,r=t.getWincherTrackedKeyphrases,a=t.getWincherTrackableKeyphrases,o=t.getWincherLoginStatus,i=t.getWincherPermalink,s=t.getFocusKeyphrase,c=t.isWincherNewlyAuthenticated,l=t.shouldWincherTrackAll;return{focusKeyphrase:s(),keyphrases:a(),trackedKeyphrases:r(),isLoggedIn:o(),trackAll:l(),websiteId:n(),isNewlyAuthenticated:c(),permalink:i()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setWincherNewRequest,r=t.setWincherRequestSucceeded,a=t.setWincherRequestFailed,o=t.setWincherSetKeyphraseLimitReached,i=t.setWincherTrackedKeyphrases,s=t.setWincherTrackingForKeyphrase,c=t.setWincherTrackAllKeyphrases,l=t.unsetWincherTrackingForKeyphrase;return{newRequest:function(){n()},setRequestSucceeded:function(e){r(e)},setRequestFailed:function(e){a(e)},setKeyphraseLimitReached:function(e){o(e)},addTrackedKeyphrase:function(e){s(e)},removeTrackedKeyphrase:function(e){l(e)},setTrackedKeyphrases:function(e){i(e)},setHasTrackedAll:function(){c(!1)}}}))])($),J=n(94),Q=function(){return Object(p.createElement)(v.Alert,{type:"error"},Object(m.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo"))},X=function(){return Object(p.createElement)(v.Alert,{type:"info"},Object(m.sprintf)(
32
  /* translators: %s: Expands to "Wincher". */
33
- Object(m.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher"))},ee=n(86),te=n(87),ne=function(){return Object(p.createElement)(v.Alert,{type:"error"},Object(m.__)("Before you can track your SEO performance make sure to set either the post’s title and save it as a draft or manually set the post’s slug.","wordpress-seo"))},re=function(e){var t=e.response,n=e.onLogin;return 403===t.status||404===t.status?Object(p.createElement)(te.a,{onReconnect:n}):Object(p.createElement)(x,null)};re.propTypes={response:f.a.object.isRequired,onLogin:f.a.func.isRequired};var ae=function(e){var t=e.isSuccess,n=e.response,r=e.allKeyphrasesMissRanking,a=e.onLogin,o=e.keyphraseLimitReached,i=e.limit;return o?Object(p.createElement)(P,{limit:i}):Object(y.isEmpty)(n)||t?r?Object(p.createElement)(A,null):null:Object(p.createElement)(re,{response:n,onLogin:a})};ae.propTypes={isSuccess:f.a.bool.isRequired,allKeyphrasesMissRanking:f.a.bool.isRequired,response:f.a.object,onLogin:f.a.func.isRequired,keyphraseLimitReached:f.a.bool.isRequired,limit:f.a.number.isRequired},ae.defaultProps={response:{}};var oe=null,ie=function(){var e=u()(b.a.mark((function e(t,n){var r,a,o;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.onAuthentication,a=t.setRequestSucceeded,o=t.setRequestFailed,e.next=3,Object(D.d)((function(){return Object(D.a)(n)}),function(){var e=u()(b.a.mark((function e(t){var o;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r(!0,!0,n.websiteId.toString()),a(t),(o=oe.getPopup())&&o.close();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),function(){var e=u()(b.a.mark((function e(t){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",o(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e)})));return function(_x,t){return e.apply(this,arguments)}}(),se=function(){var e=u()(b.a.mark((function e(t){var n,r;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!oe||oe.isClosed()){e.next=3;break}return oe.focus(),e.abrupt("return");case 3:return e.next=5,Object(D.b)();case 5:n=e.sent,r=n.url,(oe=new ee.a(r,{success:{type:"wincher:oauth:success",callback:function(e){return ie(t,e)}},error:{type:"wincher:oauth:error",callback:function(){return t.onAuthentication(!1,!1)}}},{title:"Wincher_login",width:500,height:700})).createPopup();case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ce=function(e){return e.isLoggedIn?null:Object(p.createElement)("p",null,Object(p.createElement)(v.NewButton,{onClick:e.onLogin,variant:"primary"},Object(m.sprintf)(
34
  /* translators: %s expands to Wincher */
35
- Object(m.__)("Connect with %s","wordpress-seo"),"Wincher")))};ce.propTypes={isLoggedIn:f.a.bool.isRequired,onLogin:f.a.func.isRequired};var le=O.a.div(Y||(Y=c()(["\n\tp {\n\t\tmargin: 1em 0;\n\t}\n"]))),ue=O.a.div(z||(z=c()(["\n\t",";\n"])),(function(e){return e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"})),pe=O.a.div(G||(G=c()(["\n\tfont-weight: var(--yoast-font-weight-bold);\n\tcolor: var(--yoast-color-label);\n\tfont-size: var(--yoast-font-size-default);\n"]))),de=function(e){var t=e.isLoggedIn,n=e.keyphrases,r=e.shouldTrackAll;return!e.permalink&&t?Object(p.createElement)(ne,null):0===n.length?Object(p.createElement)(Q,null):Object(p.createElement)(ue,{isDisabled:!t},Object(p.createElement)("p",null,Object(m.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")),t&&r&&Object(p.createElement)(X,null),Object(p.createElement)(Z,null))};function be(e){var t=e.isNewlyAuthenticated,n=e.isLoggedIn,r=Object(p.useCallback)((function(){se(e)}),[se,e]);return Object(p.createElement)(le,null,t&&Object(p.createElement)(C,null),Object(p.createElement)(pe,null,Object(m.__)("SEO performance","wordpress-seo"),Object(p.createElement)(v.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"],linkText:Object(m.__)("Learn more about the SEO performance feature.","wordpress-seo")})),Object(p.createElement)(J.a,null),Object(p.createElement)(ce,{isLoggedIn:n,onLogin:r}),Object(p.createElement)(ae,i()({},e,{onLogin:r})),Object(p.createElement)(de,e))}de.propTypes={keyphrases:f.a.array.isRequired,isLoggedIn:f.a.bool.isRequired,shouldTrackAll:f.a.bool.isRequired,permalink:f.a.string.isRequired},be.propTypes={isLoggedIn:f.a.bool,isNewlyAuthenticated:f.a.bool,keyphrases:f.a.array,response:f.a.object,shouldTrackAll:f.a.bool,permalink:f.a.string},be.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],response:{},shouldTrackAll:!1,permalink:""},t.a=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.isWincherNewlyAuthenticated,r=t.getWincherKeyphraseLimitReached,a=t.getWincherLimit,o=t.getWincherLoginStatus,i=t.getWincherRequestIsSuccess,s=t.getWincherRequestResponse,c=t.getWincherTrackableKeyphrases,l=t.getWincherAllKeyphrasesMissRanking,u=t.getWincherPermalink,p=t.shouldWincherAutomaticallyTrackAll;return{keyphrases:c(),allKeyphrasesMissRanking:l(),isLoggedIn:o(),isNewlyAuthenticated:n(),isSuccess:i(),keyphraseLimitReached:r(),limit:a(),response:s(),shouldTrackAll:p(),permalink:u()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setWincherWebsiteId,r=t.setWincherRequestSucceeded,a=t.setWincherRequestFailed,o=t.setWincherLoginStatus;return{setRequestSucceeded:function(e){r(e)},setRequestFailed:function(e){a(e)},onAuthentication:function(e,t,r){n(r),o(e,t)}}}))])(be)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return d}));var r,a,o=n(15),i=n.n(o),s=n(13),c=n.n(s),l=n(4),u=n(8),p=c.a.div(r||(r=i()(["\n\tmin-width: 600px;\n\n\t@media screen and ( max-width: 680px ) {\n\t\tmin-width: 0;\n\t\twidth: 86vw;\n\t}\n"]))),d=c()(l.Icon)(a||(a=i()(["\n\tfloat: ",";\n\tmargin: ",";\n\n\t&& {\n\t\twidth: 150px;\n\t\theight: 150px;\n\n\t\t@media screen and ( max-width: 680px ) {\n\t\t\twidth: 80px;\n\t\t\theight: 80px;\n\t\t}\n\t}\n"])),Object(u.getDirectionalStyle)("right","left"),Object(u.getDirectionalStyle)("0 0 16px 16px","0 16px 16px 0"))},,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return j}));var r=n(14),a=n.n(r),o=n(3),i=(n(148),n(56)),s=n(6);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u="<yoastmark class='yoast-text-mark'>",p=[],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"}]},b={singleH1:{"core/heading":[{key:"content",filter:function(e){return 1===e.level}}]}};function m(){var e=p.shift();e&&(Object(s.dispatch)("core/annotations").__experimentalAddAnnotation(e),h())}function h(){Object(o.isFunction)(window.requestIdleCallback)?window.requestIdleCallback(m,{timeout:1e3}):setTimeout(m,150)}function f(){return Object(s.select)("core/block-editor")&&Object(o.isFunction)(Object(s.select)("core/block-editor").getBlocks)&&Object(s.select)("core/annotations")&&Object(o.isFunction)(Object(s.dispatch)("core/annotations").__experimentalAddAnnotation)}function y(e){var t=Object(s.select)("yoast-seo/editor").getActiveMarker(),n=b[t]||d;return n.hasOwnProperty(e)?n[e]:[]}function g(e,t,n){var r=e.key,a=t.attributes,s=a[r];if(e.filter&&!e.filter(a))return[];var c=Object(i.create)({html:s,multilineTag:e.multilineTag,multilineWrapperTag:e.multilineWrapperTag}).text;return Object(o.flatMap)(n,(function(e){var n=function(e,t){var n=t.getOriginal().replace(/(<([^>]+)>)/gi,""),r=t.getMarked().replace(/(<(?!\/?yoastmark)[^>]+>)/gi,""),a=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=[];if(0===e.length)return r;var a,o=0;for(n||(t=t.toLowerCase(),e=e.toLowerCase());(a=e.indexOf(t,o))>-1;)r.push(a),o=a+t.length;return r}(e,n);if(0===a.length)return[];var o=function(e){for(var t=e.indexOf(u),n=null,r=[];t>=0;){if((n=(e=e.replace(u,"")).indexOf("</yoastmark>"))<t)return[];e=e.replace("</yoastmark>",""),r.push({startOffset:t,endOffset:n}),t=e.indexOf(u),n=null}return r}(r),i=[];return o.forEach((function(e){a.forEach((function(r){var a=r+e.startOffset,o=r+e.endOffset;0===e.startOffset&&e.endOffset===t.getOriginal().length&&(o=r+n.length),i.push({startOffset:a,endOffset:o})}))})),i}(c,e);return n?n.map((function(e){return l(l({},e),{},{block:t.clientId,richTextIdentifier:r})})):[]}))}function O(e){p=e.map((function(e){return{blockClientId:e.block,source:"yoast",richTextIdentifier:e.richTextIdentifier,range:{start:e.startOffset,end:e.endOffset}}}))}function v(e,t){if(p=[],Object(s.dispatch)("core/annotations").__experimentalRemoveAnnotationsBySource("yoast"),0!==t.length){var n=Object(s.select)("core/block-editor").getBlocks();O(Object(o.flatMap)(n,(function(e){return Object(o.flatMap)(y(e.name),(function(n){return g(n,e,t)}))}))),h()}}function j(){var e=Object(s.select)("core/editor").getSelectedBlock(),t=Object(s.select)("yoast-seo/editor").getActiveMarker();if(e&&t){var n;n=e.clientId,Object(s.select)("core/annotations").__experimentalGetAnnotations().filter((function(e){return e.blockClientId===n&&"yoast"===e.source})).forEach((function(e){Object(s.dispatch)("core/annotations").__experimentalRemoveAnnotation(e.id)}));var r=Object(s.select)("yoast-seo/editor").getResultById(t);if(void 0!==r){var a=r.marks;O(Object(o.flatMap)(y(e.name),(function(t){return g(t,e,a)}))),h()}}}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r,a,o=n(5);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 425 456.27","aria-hidden":"true"},e),r||(r=o.createElement("path",{d:"M73 405.26a66.79 66.79 0 01-6.54-1.7 64.75 64.75 0 01-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 01-5.08-4.19 69.21 69.21 0 01-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 01-3.44-5.64 68.29 68.29 0 01-8.29-32.55V142.13a68.26 68.26 0 018.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0114.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0173 75.09a68.75 68.75 0 0113.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 000 142.13v196.09A86.84 86.84 0 0086.75 425h11.32v-18.35H86.75A68.75 68.75 0 0173 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 018.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 01391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 018.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 00-56.45-81.28z"})),a||(a=o.createElement("path",{d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 010 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z",stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81})))}},function(e,t,n){"use strict";var r,a=n(15),o=n.n(a),i=n(0),s=n(1),c=n.n(s),l=n(13),u=n.n(l),p=n(4),d=n(8),b=u()(p.StyledSection)(r||(r=o()(["\n\t&"," {\n\t\tpadding: 0;\n\n\t\t& "," {\n\t\t\t",": 20px;\n\t\t\tmargin-left: ",";\n\t\t}\n\t}\n"])),p.StyledSectionBase,p.StyledHeading,Object(d.getDirectionalStyle)("padding-left","padding-right"),Object(d.getDirectionalStyle)("0","20px")),m=function(e){var t=e.children,n=e.title,r=e.icon,a=e.hasPaperStyle,o=e.shoppingData;return Object(i.createElement)(b,{headingLevel:3,headingText:n,headingIcon:r,headingIconColor:"#555",hasPaperStyle:a,shoppingData:o},t)};m.propTypes={children:c.a.element,title:c.a.string,icon:c.a.string,hasPaperStyle:c.a.bool,shoppingData:c.a.object},m.defaultProps={hasPaperStyle:!0,shoppingData:null},t.a=m},function(e,t){e.exports=window.wp.sanitize},,function(e,t,n){"use strict";var r=n(6),a=n(20),o=n(0),i=n(2),s=n(1),c=n.n(s),l=n(3),u=n(4),p=function(){return Object(o.createElement)("p",{className:"yoast-related-keyphrases-modal__loading-message"},Object(i.sprintf)(
36
  /* translators: %1$s expands to "Yoast SEO", %2$s expands to "Semrush". */
37
  Object(i.__)("Please wait while %1$s connects to %2$s to get related keyphrases...","wordpress-seo"),"Yoast SEO","Semrush")," ",Object(o.createElement)(u.SvgIcon,{icon:"loading-spinner"}))},d=n(8),b=Object(d.makeOutboundLink)(),m=function(){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,Object(i.sprintf)(
38
  /* translators: %s : Expands to "Semrush". */
39
  Object(i.__)("You've reached your request limit for today. Check back tomorrow or upgrade your plan over at %s.","wordpress-seo"),"Semrush")),Object(o.createElement)(b,{href:window.wpseoAdminL10n["shortlinks.semrush.prices"],className:"yoast-button-upsell"},Object(i.sprintf)(
40
  /* translators: %s : Expands to "Semrush". */
41
- Object(i.__)("Upgrade your %s plan","wordpress-seo"),"Semrush"),Object(o.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})))},h=n(16),f=n.n(h),y=n(9),g=n.n(y),O=n(10),v=n.n(O),j=n(12),w=n.n(j),k=n(18),E=n.n(k),T=n(19),_=n.n(T),R=n(11),S=n.n(R),P=n(7),x=n.n(P),C=n(36),A=n.n(C),I=n(39);var L="yoast-semrush-country-selector",q=[{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"}],F=function(e){E()(c,e);var t,n,r,a,s=(r=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=S()(r);if(a){var n=S()(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _()(this,e)});function c(e){var t;return g()(this,c),(t=s.call(this,e)).relatedKeyphrasesRequest=t.relatedKeyphrasesRequest.bind(w()(t)),t.onChangeHandler=t.onChangeHandler.bind(w()(t)),t}return v()(c,[{key:"componentDidMount",value:function(){this.props.response&&this.props.keyphrase===this.props.lastRequestKeyphrase||this.relatedKeyphrasesRequest()}},{key:"storeCountryCode",value:function(e){A()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}})}},{key:"relatedKeyphrasesRequest",value:(n=f()(x.a.mark((function e(){var t,n,r,a;return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,n=t.keyphrase,r=t.countryCode,(0,t.newRequest)(r,n),this.storeCountryCode(r),e.next=5,this.doRequest(n,r);case 5:if(200!==(a=e.sent).status){e.next=9;break}return this.handleSuccessResponse(a),e.abrupt("return");case 9:this.handleFailedResponse(a);case 10:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"handleSuccessResponse",value:function(e){var t=this.props,n=t.setNoResultsFound,r=t.setRequestSucceeded;0!==e.results.rows.length?r(e):n()}},{key:"handleFailedResponse",value:function(e){var t=this.props,n=t.setRequestLimitReached,r=t.setRequestFailed;"error"in e&&(e.error.includes("TOTAL LIMIT EXCEEDED")?n():r(e))}},{key:"doRequest",value:(t=f()(x.a.mark((function e(t,n){return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A()({path:Object(I.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:t,country_code:n})});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(_x,e){return t.apply(this,arguments)})},{key:"onChangeHandler",value:function(e){this.props.setCountry(e)}},{key:"render",value:function(){return Object(o.createElement)("div",{id:L},Object(o.createElement)(u.SingleSelect,{id:L+"-select",label:Object(i.__)("Show results for:","wordpress-seo"),name:"semrush-country-code",options:q,selected:this.props.countryCode,onChange:this.onChangeHandler,wrapperClassName:"yoast-field-group yoast-field-group--inline"}),Object(o.createElement)(u.NewButton,{id:L+"-button",variant:"secondary",onClick:this.relatedKeyphrasesRequest},Object(i.__)("Select country","wordpress-seo")))}}]),c}(o.Component);F.propTypes={keyphrase:c.a.string,countryCode:c.a.string,response:c.a.object,lastRequestKeyphrase:c.a.string,setCountry:c.a.func.isRequired,newRequest:c.a.func.isRequired,setNoResultsFound:c.a.func.isRequired,setRequestSucceeded:c.a.func.isRequired,setRequestLimitReached:c.a.func.isRequired,setRequestFailed:c.a.func.isRequired},F.defaultProps={keyphrase:"",countryCode:"us",response:{},lastRequestKeyphrase:""};var N=F,D=n(58),M=n(53);var K=Object(d.makeOutboundLink)(),W=function(e){E()(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=S()(t);if(n){var a=S()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return _()(this,e)});function a(e){var t;return g()(this,a),(t=r.call(this,e)).transformTrendDataToChartPoints=t.transformTrendDataToChartPoints.bind(w()(t)),t.getAreaChartDataTableHeaderLabels=t.getAreaChartDataTableHeaderLabels.bind(w()(t)),t.mapAreaChartDataToTableData=t.mapAreaChartDataToTableData.bind(w()(t)),t}return v()(a,[{key:"transformTrendDataToChartPoints",value:function(e){return e.split(",").map((function(e,t){return{x:t,y:parseFloat(e)}}))}},{key:"getAreaChartDataTableHeaderLabels",value:function(){return[Object(i.__)("Twelve months ago","wordpress-seo"),Object(i.__)("Eleven months ago","wordpress-seo"),Object(i.__)("Ten months ago","wordpress-seo"),Object(i.__)("Nine months ago","wordpress-seo"),Object(i.__)("Eight months ago","wordpress-seo"),Object(i.__)("Seven months ago","wordpress-seo"),Object(i.__)("Six months ago","wordpress-seo"),Object(i.__)("Five months ago","wordpress-seo"),Object(i.__)("Four months ago","wordpress-seo"),Object(i.__)("Three months ago","wordpress-seo"),Object(i.__)("Two months ago","wordpress-seo"),Object(i.__)("Last month","wordpress-seo")]}},{key:"mapAreaChartDataToTableData",value:function(e){return Math.round(100*e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.keyphrase,r=t.relatedKeyphrases,a=t.countryCode,s=t.data,c=t.renderAction,u="https://www.semrush.com/analytics/keywordoverview/?q="+encodeURIComponent(n)+"&db="+encodeURIComponent(a);return s&&!Object(l.isEmpty)(s.results)&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("table",{className:"yoast yoast-table"},Object(o.createElement)("thead",null,Object(o.createElement)("tr",null,Object(o.createElement)("th",{scope:"col",className:"yoast-table--primary"},Object(i.__)("Related keyphrase","wordpress-seo")),Object(o.createElement)("th",{scope:"col",abbr:Object(i.__)("Volume","wordpress-seo")},Object(i.__)("Volume","wordpress-seo"),Object(o.createElement)(M.a,{href:window.wpseoAdminL10n["shortlinks.semrush.volume_help"],className:"dashicons"},Object(o.createElement)("span",{className:"screen-reader-text"},Object(i.__)("Learn more about the related keyphrases volume","wordpress-seo")))),Object(o.createElement)("th",{scope:"col",abbr:Object(i.__)("Trend","wordpress-seo")},Object(i.__)("Trend","wordpress-seo"),Object(o.createElement)(M.a,{href:window.wpseoAdminL10n["shortlinks.semrush.trend_help"],className:"dashicons"},Object(o.createElement)("span",{className:"screen-reader-text"},Object(i.__)("Learn more about the related keyphrases trend","wordpress-seo")))),c&&Object(o.createElement)("td",{className:"yoast-table--nobreak"}))),Object(o.createElement)("tbody",null,s.results.rows.map((function(t,n){var a=t[0],s=e.transformTrendDataToChartPoints(t[2]),l=e.getAreaChartDataTableHeaderLabels();return Object(o.createElement)("tr",{key:n},Object(o.createElement)("td",null,a),Object(o.createElement)("td",null,t[1]),Object(o.createElement)("td",{className:"yoast-table--nopadding"},Object(o.createElement)(D.a,{width:66,height:24,data:s,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:e.mapAreaChartDataToTableData,dataTableCaption:Object(i.__)("Keyphrase volume in the last 12 months on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:l})),c&&Object(o.createElement)("td",{className:"yoast-table--nobreak"},c(a,r)))})))),Object(o.createElement)("p",{style:{marginBottom:0}},Object(o.createElement)(K,{href:u},Object(i.sprintf)(
42
  /* translators: %s expands to Semrush */
43
  Object(i.__)("Get more insights at %s","wordpress-seo"),"Semrush"))))}}]),a}(o.Component);W.propTypes={data:c.a.object,keyphrase:c.a.string,relatedKeyphrases:c.a.array,countryCode:c.a.string,renderAction:c.a.func},W.defaultProps={data:{},keyphrase:"",relatedKeyphrases:[],countryCode:"us",renderAction:null};var B=W,H=Object(d.makeOutboundLink)(),V=function(){return Object(o.createElement)(u.Alert,{type:"info"},Object(i.sprintf)(
44
  /* translators: %s: Expands to "Yoast SEO". */
@@ -46,11 +46,11 @@ Object(i.__)("Would you like to be able to add these related keyphrases to the %
46
  /* translators: %s: Expands to "Yoast SEO Premium". */
47
  Object(i.__)("Check out %s!","wordpress-seo"),"Yoast SEO Premium")))},U=function(){return Object(o.createElement)(u.Alert,{type:"error"},Object(i.__)("We've encountered a problem trying to get related keyphrases. Please try again later.","wordpress-seo"))},Y=function(){return Object(o.createElement)(u.Alert,{type:"warning"},Object(i.sprintf)(
48
  /* translators: %s: Expands to "Yoast SEO". */
49
- Object(i.__)("You've reached the maximum amount of 4 related keyphrases. You can change or remove related keyphrases in the %s metabox or sidebar.","wordpress-seo"),"Yoast SEO"))},z=n(23);function G(e){var t=e.response,n=e.lastRequestKeyphrase,r=e.keyphrase,a=e.newRequest,s=e.setCountry,c=e.renderAction,u=e.countryCode,d=e.requestLimitReached,b=e.setRequestFailed,h=e.setNoResultsFound,f=e.relatedKeyphrases,y=e.setRequestSucceeded,g=e.setRequestLimitReached,O=Object(z.a)().isPremium;return Object(o.createElement)(o.Fragment,null,!d&&Object(o.createElement)(o.Fragment,null,!O&&Object(o.createElement)(V,null),O&&function(e){return e&&e.length>=4}(f)&&Object(o.createElement)(Y,null),Object(o.createElement)(N,{countryCode:u,setCountry:s,newRequest:a,keyphrase:r,setRequestFailed:b,setNoResultsFound:h,setRequestSucceeded:y,setRequestLimitReached:g,response:t,lastRequestKeyphrase:n})),function(e){var t=e.isPending,n=e.requestLimitReached,r=e.isSuccess,a=e.response,s=e.requestHasData;return t?Object(o.createElement)(p,null):n?Object(o.createElement)(m,null):!r&&function(e){return!Object(l.isEmpty)(e)&&"error"in e}(a)?Object(o.createElement)(U,null):s?void 0:Object(o.createElement)("p",null,Object(i.__)("Sorry, there's no data available for that keyphrase/country combination.","wordpress-seo"))}(e),Object(o.createElement)(B,{keyphrase:r,relatedKeyphrases:f,countryCode:u,renderAction:c,data:t}))}G.propTypes={keyphrase:c.a.string,relatedKeyphrases:c.a.array,renderAction:c.a.func,requestLimitReached:c.a.bool,countryCode:c.a.string.isRequired,setCountry:c.a.func.isRequired,newRequest:c.a.func.isRequired,setRequestSucceeded:c.a.func.isRequired,setRequestLimitReached:c.a.func.isRequired,setRequestFailed:c.a.func.isRequired,setNoResultsFound:c.a.func.isRequired,response:c.a.object,lastRequestKeyphrase:c.a.string},G.defaultProps={keyphrase:"",relatedKeyphrases:[],renderAction:null,requestLimitReached:!1,response:{},lastRequestKeyphrase:""},t.a=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getFocusKeyphrase,r=t.getSEMrushSelectedCountry,a=t.getSEMrushRequestLimitReached,o=t.getSEMrushRequestResponse,i=t.getSEMrushRequestIsSuccess,s=t.getSEMrushIsRequestPending,c=t.getSEMrushRequestHasData,l=t.getSEMrushRequestKeyphrase;return{keyphrase:n(),countryCode:r(),requestLimitReached:a(),response:o(),isSuccess:i(),isPending:s(),requestHasData:c(),lastRequestKeyphrase:l()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setSEMrushChangeCountry,r=t.setSEMrushNewRequest,a=t.setSEMrushRequestSucceeded,o=t.setSEMrushRequestFailed,i=t.setSEMrushSetRequestLimitReached,s=t.setSEMrushNoResultsFound;return{setCountry:function(e){n(e)},newRequest:function(e,t){r(e,t)},setRequestSucceeded:function(e){a(e)},setRequestFailed:function(e){o(e)},setRequestLimitReached:function(){i()},setNoResultsFound:function(){s()}}}))])(G)},,function(e,t){e.exports=window.wp.blocks},,,function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(55),i=n(45);t.a=Object(r.compose)([Object(a.withSelect)((function(e){return{isCornerstone:(0,e("yoast-seo/editor").isCornerstoneContent)(),learnMoreUrl:wpseoAdminL10n["shortlinks.cornerstone_content_info"]}})),Object(a.withDispatch)((function(e){return{onChange:e("yoast-seo/editor").toggleCornerstoneContent}})),Object(i.a)()])(o.CollapsibleCornerstone)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3);function a(e){return void 0===e.length?e:Object(r.flatten)(e).sort((function(e,t){return void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority}))}},,,function(e,t,n){"use strict";var r,a=n(14),o=n.n(a),i=n(0),s=n(20),c=n(6),l=n(2),u=n(1),p=n.n(u),d=n(24),b=n.n(d),m=n(15),h=n.n(m),f=n(4),y=n(21),g=n(8),O=n(31),v=n.n(O),j=n(13),w=n.n(j),k=n(77),E=n(75),T=w.a.div(r||(r=h()(["\n\tpadding: 16px;\n"]))),_=function(e,t,n){var r=e.find((function(e){return e.value===t}));return[{name:Object(l.sprintf)(
50
  /* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */
51
  Object(l.__)("Default for %1$s (%2$s)","wordpress-seo"),n,r?r.name:""),value:""}].concat(b()(e))},R=function(e){return Object(l.sprintf)(
52
  /* translators: %1$s expands to the plural name of the current post type, %2$s and %3$s expand to a link to the Search Appearance Settings page */
53
- Object(l.__)("You can change the default type for %1$s in your %2$sSearch Appearance Settings%3$s.","wordpress-seo"),e,"{{link}}","{{/link}}")},S=function(e){return Object(i.createElement)(f.FieldGroup,{label:e.helpTextTitle,linkTo:e.helpTextLink,linkText:Object(l.__)("Learn more about structured data with Schema.org","wordpress-seo"),description:e.helpTextDescription})};S.propTypes={helpTextTitle:p.a.string.isRequired,helpTextLink:p.a.string.isRequired,helpTextDescription:p.a.string.isRequired};var P=function(e){return Object(i.createElement)("p",null,e.helpTextDescription+" ",Object(i.createElement)("a",{href:e.helpTextLink},Object(l.__)("Read more about Schema.","wordpress-seo")))};P.propTypes={helpTextDescription:p.a.string.isRequired,helpTextLink:p.a.string.isRequired};var x=function(e){var t,n=_(e.pageTypeOptions,e.defaultPageType,e.postTypeName),r=_(e.articleTypeOptions,e.defaultArticleType,e.postTypeName),a=Object(E.isFeatureEnabled)("SCHEMA_BLOCKS");return Object(i.createElement)(i.Fragment,null,a?Object(i.createElement)(P,e):Object(i.createElement)(S,e),a&&Object(i.createElement)(y.Slot,{name:Object(g.join)(["yoast-schema-blocks-analysis",e.location])}),Object(i.createElement)(f.FieldGroup,{label:Object(l.__)("What type of page or content is this?","wordpress-seo"),linkTo:e.additionalHelpTextLink,linkText:Object(l.__)("Learn more about page or content types","wordpress-seo")}),Object(i.createElement)(f.Select,{id:Object(g.join)(["yoast-schema-page-type",e.location]),options:n,label:Object(l.__)("Page type","wordpress-seo"),onChange:e.schemaPageTypeChange,selected:e.schemaPageTypeSelected}),e.showArticleTypeInput&&Object(i.createElement)(f.Select,{id:Object(g.join)(["yoast-schema-article-type",e.location]),options:r,label:Object(l.__)("Article type","wordpress-seo"),onChange:e.schemaArticleTypeChange,selected:e.schemaArticleTypeSelected}),e.displayFooter&&Object(i.createElement)("p",null,(t=e.postTypeName,v()({mixedString:R(t),components:{link:Object(i.createElement)("a",{href:"/wp-admin/admin.php?page=wpseo_titles#top#post-types",target:"_blank"})}}))))};x.propTypes={schemaPageTypeChange:p.a.func,schemaPageTypeSelected:p.a.string,pageTypeOptions:k.b.isRequired,schemaArticleTypeChange:p.a.func,schemaArticleTypeSelected:p.a.string,articleTypeOptions:k.b.isRequired,showArticleTypeInput:p.a.bool.isRequired,additionalHelpTextLink:p.a.string.isRequired,helpTextLink:p.a.string.isRequired,helpTextTitle:p.a.string.isRequired,helpTextDescription:p.a.string.isRequired,postTypeName:p.a.string.isRequired,displayFooter:p.a.bool,defaultPageType:p.a.string.isRequired,defaultArticleType:p.a.string.isRequired,location:p.a.string.isRequired},x.defaultProps={schemaPageTypeChange:function(){},schemaPageTypeSelected:null,schemaArticleTypeChange:function(){},schemaArticleTypeSelected:null,displayFooter:!1};var C=function(e){return e.isMetabox?Object(i.createPortal)(Object(i.createElement)(T,null,Object(i.createElement)(x,e)),document.getElementById("wpseo-meta-section-schema")):Object(i.createElement)(x,e)};C.propTypes={showArticleTypeInput:p.a.bool,articleTypeLabel:p.a.string,additionalHelpTextLink:p.a.string,pageTypeLabel:p.a.string.isRequired,helpTextLink:p.a.string.isRequired,helpTextTitle:p.a.string.isRequired,helpTextDescription:p.a.string.isRequired,isMetabox:p.a.bool.isRequired,postTypeName:p.a.string.isRequired,displayFooter:p.a.bool,loadSchemaArticleData:p.a.func.isRequired,loadSchemaPageData:p.a.func.isRequired,location:p.a.string.isRequired},C.defaultProps={showArticleTypeInput:!1,articleTypeLabel:"",additionalHelpTextLink:"",displayFooter:!1};var A=C,I=n(78),L=n(45);function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var N=function(e){var t=null!==I.a.articleTypeInput;Object(i.useEffect)((function(){e.loadSchemaPageData(),t&&e.loadSchemaArticleData()}),[]);var n=window.wpseoScriptData.metabox.schema,r=n.pageTypeOptions,a=n.articleTypeOptions,o={articleTypeLabel:Object(l.__)("Article type","wordpress-seo"),pageTypeLabel:Object(l.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:Object(l.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:Object(l.__)("This helps search engines understand your website and your content. You can change some of your settings for this page below.","wordpress-seo"),showArticleTypeInput:t,pageTypeOptions:r,articleTypeOptions:a},s=F(F(F({},e),o),"metabox"===e.location?{helpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.page_type"],isMetabox:!0}:{helpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.page_type"],isMetabox:!1});return Object(i.createElement)(A,s)};N.propTypes={displayFooter:p.a.bool.isRequired,schemaPageTypeSelected:p.a.string.isRequired,schemaArticleTypeSelected:p.a.string.isRequired,defaultArticleType:p.a.string.isRequired,defaultPageType:p.a.string.isRequired,loadSchemaPageData:p.a.func.isRequired,loadSchemaArticleData:p.a.func.isRequired,schemaPageTypeChange:p.a.func.isRequired,schemaArticleTypeChange:p.a.func.isRequired,location:p.a.string.isRequired},t.a=Object(s.compose)([Object(c.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getPreferences,r=t.getPageType,a=t.getDefaultPageType,o=t.getArticleType,i=t.getDefaultArticleType;return{displayFooter:n().displaySchemaSettingsFooter,schemaPageTypeSelected:r(),schemaArticleTypeSelected:o(),defaultArticleType:i(),defaultPageType:a()}})),Object(c.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setPageType,r=t.setArticleType;return{loadSchemaPageData:t.getSchemaPageData,loadSchemaArticleData:t.getSchemaArticleData,schemaPageTypeChange:n,schemaArticleTypeChange:r}})),Object(L.a)()])(N)},function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(0),i=n(2),s=n(4),c=n(8),l=n(1),u=n.n(l),p=n(30),d=function(e){var t=e.noIndex,n=e.onNoIndexChange,r=e.editorContext,a=e.isPrivateBlog,l=function(e){var t=Object(i.__)("No","wordpress-seo"),n=Object(i.__)("Yes","wordpress-seo"),r=e.noIndex?t:n;return window.wpseoScriptData.isPost?[{name:Object(i.sprintf)(
54
  /* Translators: %s translates to "yes" or "no", %s translates to the Post Label in plural form */
55
  Object(i.__)("%s (current default for %s)","wordpress-seo"),r,e.postTypeNamePlural),value:"0"},{name:t,value:"1"},{name:n,value:"2"}]:[{name:Object(i.sprintf)(
56
  /* Translators: %s translates to the "yes" or "no" ,%s translates to the Post Label in plural form */
@@ -58,6 +58,6 @@ Object(i.__)("%s (current default for %s)","wordpress-seo"),r,e.postTypeNamePlur
58
  /* Translators: %s translates to the Post Label in singular form */
59
  Object(i.__)("Allow search engines to show this %s in search results?","wordpress-seo"),r.postTypeNameSingular),onChange:n,id:Object(c.join)(["yoast-meta-robots-noindex",e]),options:l,selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.allow_search_engines"],linkText:Object(i.__)("Learn more about the no-index setting on our help page.","wordpress-seo")}))}))};d.propTypes={noIndex:u.a.string.isRequired,onNoIndexChange:u.a.func.isRequired,editorContext:u.a.object.isRequired,isPrivateBlog:u.a.bool},d.defaultProps={isPrivateBlog:!1};var b=function(e){var t=e.noFollow,n=e.onNoFollowChange,r=e.postTypeName;return Object(o.createElement)(p.LocationConsumer,null,(function(e){var a=Object(c.join)(["yoast-meta-robots-nofollow",e]);return Object(o.createElement)(s.RadioButtonGroup,{id:a,options:[{value:"0",label:"Yes"},{value:"1",label:"No"}],label:Object(i.sprintf)(
60
  /* Translators: %s translates to the Post Label in singular form */
61
- Object(i.__)("Should search engines follow links on this %s","wordpress-seo"),r),groupName:a,onChange:n,selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.follow_links"],linkText:Object(i.__)("Learn more about the no-follow setting on our help page.","wordpress-seo")})}))};b.propTypes={noFollow:u.a.string.isRequired,onNoFollowChange:u.a.func.isRequired,postTypeName:u.a.string.isRequired};var m=function(e){var t=e.advanced,n=e.onAdvancedChange;return Object(o.createElement)(p.LocationConsumer,null,(function(e){var r=Object(c.join)(["yoast-meta-robots-advanced",e]),a="".concat(r,"-input");return Object(o.createElement)(s.MultiSelect,{label:Object(i.__)("Meta robots advanced","wordpress-seo"),onChange:n,id:r,inputId:a,options:[{name:Object(i.__)("No Image Index","wordpress-seo"),value:"noimageindex"},{name:Object(i.__)("No Archive","wordpress-seo"),value:"noarchive"},{name:Object(i.__)("No Snippet","wordpress-seo"),value:"nosnippet"}],selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.meta_robots"],linkText:Object(i.__)("Learn more about advanced meta robots settings on our help page.","wordpress-seo")})}))};m.propTypes={advanced:u.a.array.isRequired,onAdvancedChange:u.a.func.isRequired};var h=function(e){var t=e.breadcrumbsTitle,n=e.onBreadcrumbsTitleChange;return Object(o.createElement)(p.LocationConsumer,null,(function(e){return Object(o.createElement)(s.TextInput,{label:Object(i.__)("Breadcrumbs Title","wordpress-seo"),id:Object(c.join)(["yoast-breadcrumbs-title",e]),onChange:n,value:t,linkTo:wpseoAdminL10n["shortlinks.advanced.breadcrumbs_title"],linkText:Object(i.__)("Learn more about the breadcrumbs title setting on our help page.","wordpress-seo")})}))};h.propTypes={breadcrumbsTitle:u.a.string.isRequired,onBreadcrumbsTitleChange:u.a.func.isRequired};var f=function(e){var t=e.canonical,n=e.onCanonicalChange;return Object(o.createElement)(p.LocationConsumer,null,(function(e){return Object(o.createElement)(s.TextInput,{label:Object(i.__)("Canonical URL","wordpress-seo"),id:Object(c.join)(["yoast-canonical",e]),onChange:n,value:t,linkTo:"https://yoa.st/canonical-url",linkText:Object(i.__)("Learn more about canonical URLs on our help page.","wordpress-seo")})}))};f.propTypes={canonical:u.a.string.isRequired,onCanonicalChange:u.a.func.isRequired};var y=function(e){var t=e.noIndex,n=e.noFollow,r=e.advanced,a=e.breadcrumbsTitle,i=e.canonical,s=e.onNoIndexChange,c=e.onNoFollowChange,l=e.onAdvancedChange,u=e.onBreadcrumbsTitleChange,p=e.onCanonicalChange,y=e.onLoad,g=e.isLoading,O=e.editorContext,v=e.isBreadcrumbsDisabled,j=e.isPrivateBlog;Object(o.useEffect)((function(){setTimeout((function(){g&&y()}))}));var w={noIndex:t,onNoIndexChange:s,editorContext:O,isPrivateBlog:j},k={noFollow:n,onNoFollowChange:c,postTypeName:O.postTypeNameSingular},E={advanced:r,onAdvancedChange:l},T={breadcrumbsTitle:a,onBreadcrumbsTitleChange:u},_={canonical:i,onCanonicalChange:p};return g?null:Object(o.createElement)(o.Fragment,null,Object(o.createElement)(d,w),O.isPost&&Object(o.createElement)(b,k),O.isPost&&Object(o.createElement)(m,E),!v&&Object(o.createElement)(h,T),Object(o.createElement)(f,_))};y.propTypes={noIndex:u.a.string.isRequired,canonical:u.a.string.isRequired,onNoIndexChange:u.a.func.isRequired,onCanonicalChange:u.a.func.isRequired,onLoad:u.a.func.isRequired,isLoading:u.a.bool.isRequired,editorContext:u.a.object.isRequired,isBreadcrumbsDisabled:u.a.bool.isRequired,isPrivateBlog:u.a.bool,advanced:u.a.array,onAdvancedChange:u.a.func,noFollow:u.a.string,onNoFollowChange:u.a.func,breadcrumbsTitle:u.a.string,onBreadcrumbsTitleChange:u.a.func},y.defaultProps={advanced:[],onAdvancedChange:function(){},noFollow:"",onNoFollowChange:function(){},breadcrumbsTitle:"",onBreadcrumbsTitleChange:function(){},isPrivateBlog:!1};var g=y;t.a=Object(r.compose)([Object(a.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getNoIndex,r=t.getNoFollow,a=t.getAdvanced,o=t.getBreadcrumbsTitle,i=t.getCanonical,s=t.getIsLoading,c=t.getEditorContext,l=(0,t.getPreferences)(),u=l.isBreadcrumbsDisabled,p=l.isPrivateBlog;return{noIndex:n(),noFollow:r(),advanced:a(),breadcrumbsTitle:o(),canonical:i(),isLoading:s(),editorContext:c(),isBreadcrumbsDisabled:u,isPrivateBlog:p}})),Object(a.withDispatch)((function(e){var t=e("yoast-seo/editor");return{onNoIndexChange:t.setNoIndex,onNoFollowChange:t.setNoFollow,onAdvancedChange:t.setAdvanced,onBreadcrumbsTitleChange:t.setBreadcrumbsTitle,onCanonicalChange:t.setCanonical,onLoad:t.loadAdvancedSettingsData}}))])(g)},,,,,function(e,t){e.exports=window.yoast.searchMetadataPreviews},function(e,t,n){"use strict";var r=n(0),a=n(21),o=n(1),i=n.n(o),s=n(89),c=function(e){return Object(r.useEffect)((function(){setTimeout(e.onLoad)}),[]),e.isPremium?Object(r.createElement)(a.Slot,{name:"YoastTwitterPremium".concat(e.location.charAt(0).toUpperCase()+e.location.slice(1)),fillProps:e}):Object(r.createElement)(s.a,e)};c.propTypes={isPremium:i.a.bool.isRequired,onLoad:i.a.func.isRequired,location:i.a.string.isRequired},t.a=c},function(e,t){e.exports=window.yoast.socialMetadataForms},function(e,t,n){"use strict";var r=n(14),a=n.n(r),o=n(29),i=n.n(o),s=n(0),c=n(21),l=n(1),u=n.n(l),p=n(89);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var m=function(e){var t=Object(s.useState)(""),n=i()(t,2),r=n[0],a=n[1],o=Object(s.useCallback)((function(e){a(e.detail.metaTabId)}),[a]);Object(s.useEffect)((function(){return setTimeout(e.onLoad),window.addEventListener("YoastSEO:metaTabChange",o),function(){window.removeEventListener("YoastSEO:metaTabChange",o)}}),[]);var l=Object(s.useMemo)((function(){return b(b({},e),{},{activeMetaTabId:r})}),[e,r]);return e.isPremium?Object(s.createElement)(c.Slot,{name:"YoastFacebookPremium".concat(e.location.charAt(0).toUpperCase()+e.location.slice(1)),fillProps:l}):Object(s.createElement)(p.a,l)};m.propTypes={isPremium:u.a.bool.isRequired,onLoad:u.a.func.isRequired,location:u.a.string.isRequired},t.a=m},,,,,,,,function(e,t,n){"use strict";var r=n(6),a=n(4);t.a=Object(r.withSelect)((function(e){return{message:(0,e("yoast-seo/editor").getWarningMessage)()}}))(a.Warning)},function(e,t,n){"use strict";var r=n(14),a=n.n(r),o=n(26),i=n.n(o),s=n(0),c=n(20),l=n(6),u=n(2),p=n(124),d=n(30),b=n(106),m=n(57),h=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)),Object(m.applyReplaceUsingPlugin)(e)};t.a=Object(c.compose)([Object(l.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getBaseUrlFromSettings,r=t.getDateFromSettings,a=t.getFocusKeyphrase,o=t.getRecommendedReplaceVars,i=t.getReplaceVars,s=t.getShoppingData,c=t.getSiteIconUrlFromSettings,l=t.getSnippetEditorData,u=t.getSnippetEditorMode,p=t.getSnippetEditorPreviewImageUrl,d=t.getSnippetEditorWordsToHighlight,b=t.isCornerstoneContent,m=t.getIsTerm,h=t.getContentLocale,f=i();return f.forEach((function(e){""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(e.value="%%"+e.name+"%%")})),{baseUrl:n(),data:l(),date:r(),faviconSrc:c(),keyword:a(),mobileImageSrc:p(),mode:u(),recommendedReplacementVariables:o(),replacementVariables:f,shoppingData:s(),wordsToHighlight:d(),isCornerstone:b(),isTaxonomy:m(),locale:h()}})),Object(l.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.updateData,r=t.switchMode,o=t.updateAnalysisData,i=e("core/editor");return{onChange:function(e,t){switch(e){case"mode":r(t);break;case"slug":n({slug:t}),i&&i.editPost({slug:t});break;default:n(a()({},e,t))}},onChangeAnalysisData:o}}))])((function(e){return Object(s.createElement)(d.LocationConsumer,null,(function(t){return Object(s.createElement)(b.a,{icon:"eye",hasPaperStyle:e.hasPaperStyle},Object(s.createElement)(p.SnippetEditor,i()({},e,{descriptionPlaceholder:Object(u.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:h,showCloseButton:!1,idSuffix:t})))}))}))},function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(8),i=n(125),s=n(23),c=n(45),l=n(59),u=function(e){Object(a.dispatch)("yoast-seo/editor").setTwitterPreviewImage({url:e.url,id:e.id,warnings:Object(o.validateTwitterImage)(e)})},p=function(){Object(l.a)(u)};t.a=Object(r.compose)([Object(a.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getTwitterDescription,r=t.getTwitterTitle,a=t.getTwitterImageUrl,o=t.getFacebookImageUrl,i=t.getFacebookTitle,c=t.getFacebookDescription,l=t.getDescription,u=t.getSeoTitle,p=t.getTwitterWarnings,d=t.getTwitterImageType,b=t.getImageFallback,m=t.getRecommendedReplaceVars,h=t.getReplaceVars,f=t.getSiteUrl,y=t.getSeoTitleTemplate,g=t.getSeoTitleTemplateNoFallback,O=t.getSocialTitleTemplate,v=t.getSeoDescriptionTemplate,j=t.getSocialDescriptionTemplate,w=t.getReplacedExcerpt;return{imageUrl:a(),imageFallbackUrl:o()||b(),recommendedReplacementVariables:m(),replacementVariables:h(),description:n(),descriptionPreviewFallback:j()||c()||l()||v()||w()||"",title:r(),titlePreviewFallback:O()||i()||u()||g()||y()||"",imageWarnings:p(),siteUrl:f(),isPremium:!!Object(s.a)().isPremium,isLarge:"summary"!==d(),titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Twitter"}})),Object(a.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setTwitterPreviewTitle,r=t.setTwitterPreviewDescription,a=t.clearTwitterPreviewImage,o=t.loadTwitterPreviewData;return{onSelectImageClick:p,onRemoveImageClick:a,onDescriptionChange:r,onTitleChange:n,onLoad:o}})),Object(c.a)()])(i.a)},function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(8),i=n(127),s=n(23),c=n(45),l=n(59),u=function(e){Object(a.dispatch)("yoast-seo/editor").setFacebookPreviewImage({url:e.url,id:e.id,warnings:Object(o.validateFacebookImage)(e)})},p=function(){Object(l.a)(u)};t.a=Object(r.compose)([Object(a.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getFacebookDescription,r=t.getDescription,a=t.getFacebookTitle,o=t.getSeoTitle,i=t.getFacebookImageUrl,c=t.getImageFallback,l=t.getFacebookWarnings,u=t.getRecommendedReplaceVars,p=t.getReplaceVars,d=t.getSiteUrl,b=t.getSeoTitleTemplate,m=t.getSeoTitleTemplateNoFallback,h=t.getSocialTitleTemplate,f=t.getSeoDescriptionTemplate,y=t.getSocialDescriptionTemplate,g=t.getReplacedExcerpt;return{imageUrl:i(),imageFallbackUrl:c(),recommendedReplacementVariables:u(),replacementVariables:p(),description:n(),descriptionPreviewFallback:y()||r()||f()||g()||"",title:a(),titlePreviewFallback:h()||o()||m()||b()||"",imageWarnings:l(),siteUrl:d(),isPremium:!!Object(s.a)().isPremium,titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Facebook"}})),Object(a.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setFacebookPreviewTitle,r=t.setFacebookPreviewDescription,a=t.clearFacebookPreviewImage,o=t.loadFacebookPreviewData;return{onSelectImageClick:p,onRemoveImageClick:a,onDescriptionChange:r,onTitleChange:n,onLoad:o}})),Object(c.a)()])(i.a)},,function(e,t,n){"use strict";var r=n(6),a=n(20),o=n(0),i=n(2),s=n(1),c=n.n(s),l=n(25),u=n(97),p=n(51),d=n(105),b=n(81),m=n(82),h=n(95);function f(e){var t=e.keyphrases,n=e.onNoKeyphraseSet,r=e.onOpen,a=e.location;if(!t.length)return document.querySelector("#focus-keyword-input-sidebar").focus(),void n();r(a)}function y(e,t){Object(b.b)(t)&&e.onClose()}function g(e){var t=e.location,n=e.whichModalOpen,r=Object(o.useCallback)((function(){f(e)}),[f,e]),a=Object(o.useCallback)((function(t){y(e,t)}),[y,e]),s=Object(i.__)("Track SEO performance","wordpress-seo");return Object(o.createElement)(o.Fragment,null,n===t&&Object(o.createElement)(p.a,{title:s,onRequestClose:a,icon:Object(o.createElement)(d.a,null),additionalClassName:"yoast-wincher-seo-performance-modal"},Object(o.createElement)(u.a,{className:"yoast-gutenberg-modal__content yoast-wincher-seo-performance-modal__content"},Object(o.createElement)(h.a,null))),"sidebar"===t&&Object(o.createElement)(m.a,{id:"wincher-open-button-".concat(t),title:s,suffixIcon:{size:"20px",icon:"pencil-square"},prefixIcon:{icon:"chart-square-bar",color:l.colors.$color_grey_medium_dark},onClick:r}))}g.propTypes={location:c.a.string,whichModalOpen:c.a.oneOf(["none","metabox","sidebar","postpublish"])},g.defaultProps={location:"",whichModalOpen:"none"},t.a=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getWincherModalOpen;return{keyphrases:(0,t.getWincherTrackableKeyphrases)(),whichModalOpen:n()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setWincherOpenModal,r=t.setWincherDismissModal,a=t.setWincherNoKeyphrase;return{onOpen:function(e){n(e)},onClose:function(){r()},onNoKeyphraseSet:function(){a()}}}))])(g)},,,,,function(e,t){e.exports=window.wp.editPost},function(e,t,n){"use strict";var r,a,o,i,s=n(34),c=n.n(s),l=n(24),u=n.n(l),p=n(29),d=n.n(p),b=n(0),m=/<(\/)?(\w+)\s*(\/)?>/g;function h(e,t,n,r,a){return{element:e,tokenStart:t,tokenLength:n,prevOffset:r,leadingTextStart:a,children:[]}}function f(){var e=r.length-a;0!==e&&o.push(r.substr(a,e))}function y(e){var t=e.element,n=e.tokenStart,a=e.tokenLength,o=e.prevOffset,s=e.children,c=i[i.length-1],l=r.substr(c.prevOffset,n-c.prevOffset);l&&c.children.push(l),c.children.push(b.cloneElement.apply(void 0,[t,null].concat(u()(s)))),c.prevOffset=o||n+a}function g(e){var t=function(){var e=m.exec(r);if(null===e)return["no-more-tokens"];var t=e.index,n=d()(e,4),a=n[0],o=n[1],i=n[2],s=n[3],c=a.length;return s?["self-closed",i,t,c]:o?["closer",i,t,c]:["opener",i,t,c]}(),n=d()(t,4),s=n[0],c=n[1],l=n[2],p=n[3],g=i.length,O=l>a?a:null;if(!e[c])return f(),!1;switch(s){case"no-more-tokens":if(0!==g){var v=i.pop(),j=v.leadingTextStart,w=v.tokenStart;o.push(r.substr(j,w))}return f(),!1;case"self-closed":return 0===g?(null!==O&&o.push(r.substr(O,l-O)),o.push(e[c]),a=l+p,!0):(y(h(e[c],l,p)),a=l+p,!0);case"opener":return i.push(h(e[c],l,p,l+p,O)),a=l+p,!0;case"closer":if(1===g)return function(e){var t=i.pop(),n=t.element,a=t.leadingTextStart,s=t.prevOffset,c=t.tokenStart,l=t.children,p=e?r.substr(s,e-s):r.substr(s);p&&l.push(p),null!==a&&o.push(r.substr(a,c-a)),o.push(b.cloneElement.apply(void 0,[n,null].concat(u()(l))))}(l),a=l+p,!0;var k=i.pop(),E=r.substr(k.prevOffset,l-k.prevOffset);k.children.push(E),k.prevOffset=l+p;var T=h(k.element,k.tokenStart,k.tokenLength,l+p);return T.children=k.children,y(T),a=l+p,!0;default:return f(),!1}}t.a=function(e,t){if(r=e,a=0,o=[],i=[],m.lastIndex=0,!function(e){var t="object"===c()(e),n=t&&Object.values(e);return t&&n.length&&n.every((function(e){return Object(b.isValidElement)(e)}))}(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(g(t));return b.createElement.apply(void 0,[b.Fragment,null].concat(u()(o)))}},,function(e,t){e.exports=window.wp.annotations},,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return I}));var r=n(0),a=n(1),o=n.n(a),i=n(21),s=n(115),c=n(70);function l(e){var t=e.theme;return Object(r.createElement)(c.a,{theme:t,location:"metabox"},Object(r.createElement)(i.Slot,{name:"YoastMetabox"},(function(e){return Object(s.a)(e)})))}var u=n(6),p=n(20),d=n(2),b=n(114),m=n(136),h=n(135),f=n(55),y=n(54),g=n(33),O=n(119),v=n(138),j=n(137),w=function(e){var t=e.displayFacebook,n=e.displayTwitter;return Object(r.createElement)(r.Fragment,null,t&&Object(r.createElement)(y.a,{hasSeparator:!1
62
  /* Translators: %s expands to Facebook. */,title:Object(d.sprintf)(Object(d.__)("%s preview","wordpress-seo"),"Facebook"),initialIsOpen:!0},Object(r.createElement)(v.a,null)),n&&Object(r.createElement)(y.a
63
- /* Translators: %s expands to Twitter. */,{title:Object(d.sprintf)(Object(d.__)("%s preview","wordpress-seo"),"Twitter"),hasSeparator:t,initialIsOpen:!0},Object(r.createElement)(j.a,null)))};w.propTypes={displayFacebook:o.a.bool.isRequired,displayTwitter:o.a.bool.isRequired};var k=w,E=Object(u.withSelect)((function(e){var t=(0,e("yoast-seo/editor").getPreferences)();return{displayFacebook:t.displayFacebook,displayTwitter:t.displayTwitter}}))(k),T=n(42);function _(e){var t=e.target;return Object(r.createElement)(T.a,{target:t},Object(r.createElement)(E,null))}_.propTypes={target:o.a.string.isRequired};var R=n(118),S=n(109),P=n(95),x=n(25);function C(e){var t=e.settings,n=e.wincherKeyphrases,a=e.setWincherNoKeyphrase,o=Object(r.useCallback)((function(){if(!n.length)return a(!0),document.querySelector("#focus-keyword-input-metabox").focus(),!1}),[n,a]);return Object(r.createElement)(i.Fill,{name:"YoastMetabox"},Object(r.createElement)(g.a,{key:"warning",renderPriority:1},Object(r.createElement)(h.a,null)),t.isKeywordAnalysisActive&&Object(r.createElement)(g.a,{key:"keyword-input",renderPriority:8},Object(r.createElement)(f.KeywordInput,{isSEMrushIntegrationActive:t.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&Object(r.createElement)(i.Fill,{name:"YoastRelatedKeyphrases"},Object(r.createElement)(S.a,null))),Object(r.createElement)(g.a,{key:"google-preview",renderPriority:9},Object(r.createElement)(y.a,{id:"yoast-snippet-editor-metabox",title:Object(d.__)("Google preview","wordpress-seo"),initialIsOpen:!0},Object(r.createElement)(m.a,{hasPaperStyle:!1}))),t.isContentAnalysisActive&&Object(r.createElement)(g.a,{key:"readability-analysis",renderPriority:10},Object(r.createElement)(f.ReadabilityAnalysis,null)),t.isKeywordAnalysisActive&&Object(r.createElement)(g.a,{key:"seo-analysis",renderPriority:20},Object(r.createElement)(f.SeoAnalysis,{shouldUpsell:t.shouldUpsell,shouldUpsellWordFormRecognition:t.isWordFormRecognitionActive})),t.isKeywordAnalysisActive&&t.isWincherIntegrationActive&&Object(r.createElement)(g.a,{key:"wincher-seo-performance",renderPriority:25},Object(r.createElement)(y.a,{id:"yoast-wincher-seo-performance-metabox",title:Object(d.__)("Track SEO performance","wordpress-seo"),initialIsOpen:!1,prefixIcon:{icon:"chart-square-bar",color:x.colors.$color_grey_medium_dark},prefixIconCollapsed:{icon:"chart-square-bar",color:x.colors.$color_grey_medium_dark},onToggle:o},Object(r.createElement)(P.a,null))),t.isCornerstoneActive&&Object(r.createElement)(g.a,{key:"cornerstone",renderPriority:30},Object(r.createElement)(b.a,null)),t.displayAdvancedTab&&Object(r.createElement)(g.a,{key:"advanced",renderPriority:40},Object(r.createElement)(y.a,{id:"collapsible-advanced-settings",title:Object(d.__)("Advanced","wordpress-seo")},Object(r.createElement)(O.a,null))),t.displaySchemaSettings&&Object(r.createElement)(g.a,{key:"schema",renderPriority:50},Object(r.createElement)(R.a,null)),Object(r.createElement)(g.a,{key:"social",renderPriority:-1},Object(r.createElement)(_,{target:"wpseo-section-social"})))}C.propTypes={settings:o.a.object.isRequired,wincherKeyphrases:o.a.array.isRequired,setWincherNoKeyphrase:o.a.func.isRequired};var A=Object(p.compose)([Object(u.withSelect)((function(e,t){var n=e("yoast-seo/editor"),r=n.getPreferences,a=n.getWincherTrackableKeyphrases;return{settings:r(),store:t.store,wincherKeyphrases:a()}})),Object(u.withDispatch)((function(e){return{setWincherNoKeyphrase:e("yoast-seo/editor").setWincherNoKeyphrase}}))])(C);function I(e){var t=e.target,n=e.store,a=e.theme;return Object(r.createElement)(T.a,{target:t},Object(r.createElement)(l,{store:n,theme:a}),Object(r.createElement)(A,{store:n,theme:a}))}I.propTypes={target:o.a.string.isRequired,store:o.a.object,theme:o.a.object}},,,,,,,,,,,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,,,,,,function(e,t){e.exports=window.wp.plugins},function(e,t){e.exports=window.wp.htmlEntities},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return k}));var r=n(14),a=n.n(r),o=n(9),i=n.n(o),s=n(10),c=n.n(s),l=n(6),u=n(17),p=n(3),d=n(27),b=n(102),m=n(57),h=n(52);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g=u.actions.updateReplacementVariable,O=u.actions.updateData,v=u.actions.hideReplacementVariables,j=u.actions.setContentImage,w=e.jQuery,k=function(){function e(t,n){i()(this,e),this._refresh=t,this._store=n,this._data={},this.getPostAttribute=this.getPostAttribute.bind(this),this.refreshYoastSEO=this.refreshYoastSEO.bind(this)}return c()(e,[{key:"initialize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this._data=this.getInitialData(e),Object(m.fillReplacementVariables)(this._data,this._store),this._store.dispatch(v(t)),this.subscribeToGutenberg(),this.subscribeToYoastSEO()}},{key:"getInitialData",value:function(e){var t=this.collectGutenbergData(this.getPostAttribute);return e=Object(m.mapCustomFields)(e,this._store),y(y({},e=Object(m.mapCustomTaxonomies)(e,this._store)),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=Object(l.select)("core")),this._coreDataSelect.getMedia(e)}},{key:"getPostAttribute",value:function(e){return this._coreEditorSelect||(this._coreEditorSelect=Object(l.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(){var e=this.getPostAttribute("content"),t=this.calculateContentImage(e),n=this.getPostAttribute("excerpt")||"",r="ja"===Object(h.a)()?80:156;return{content:e,title:this.getPostAttribute("title")||"",slug:this.getSlug(),excerpt:n||Object(m.excerptFromContent)(e,r),excerpt_only:n,snippetPreviewImageURL:this.getFeaturedImage()||t,contentImage:t}}},{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:"calculateContentImage",value:function(e){var t=d.languageProcessing.imageInText(e),n="";if(0===t.length)return"";do{var r=t.shift(),a=(r=w(r)).prop("src");a&&(n=a)}while(""===n&&t.length>0);return n}},{key:"handleEditorChange",value:function(e){this._data.title!==e.title&&this._store.dispatch(g("title",e.title)),this._data.excerpt!==e.excerpt&&(this._store.dispatch(g("excerpt",e.excerpt)),this._store.dispatch(g("excerpt_only",e.excerpt_only))),this._data.slug!==e.slug&&this._store.dispatch(O({slug:e.slug})),this._data.snippetPreviewImageURL!==e.snippetPreviewImageURL&&this._store.dispatch(O({snippetPreviewImageURL:e.snippetPreviewImageURL})),this._data.contentImage!==e.contentImage&&this._store.dispatch(j(e.contentImage))}},{key:"reapplyMarkers",value:function(){var e=Object(l.select)("yoast-seo/editor"),t=e.getActiveMarker,n=e.getMarkerPauseStatus,r=t(),a=n();r&&!a&&Object(b.c)()}},{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=Object(l.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=Object(p.debounce)(this.refreshYoastSEO,500),Object(l.subscribe)(this.subscriber)}},{key:"subscribeToYoastSEO",value:function(){var e=this;this.yoastSubscriber=function(){e.areNewAnalysisResultsAvailable()&&e.onNewAnalysisResultsAvailable()},Object(l.subscribe)(this.yoastSubscriber)}},{key:"getData",value:function(){return this._data}}]),e}()}).call(this,n(170))},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r,a=n(38),o=n.n(a),i=n(0),s=n(145),c=n(177),l=n(111),u=n(6),p=n(2),d=n(56),b=n(3),m=n(21),h=n(17),f=n(20),y=n(25),g=n(46),O=n(26),v=n.n(O),j=n(15),w=n.n(j),k=n(1),E=n.n(k),T=n(13),_=n.n(T).a.svg(r||(r=w()(["\n\twidth: ","px;\n\theight: ","px;\n\t&&& path {\n\t\tfill: ",";\n\t}\n\t&&& circle.yoast-icon-readability-score {\n\t\tfill: ",";\n\t\tdisplay: ",";\n\t}\n\t\n\t&&& circle.yoast-icon-seo-score {\n\t\tfill: ",";\n\t\tdisplay: ",";\n\t}\n"])),(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"})),R=function(e){return Object(i.createElement)(_,v()({},e,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 646.66 456.27"}),Object(i.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"}),Object(i.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"}),Object(i.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"}),Object(i.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"}))};R.propTypes={readabilityScoreColor:E.a.string,isContentAnalysisActive:E.a.bool,seoScoreColor:E.a.string,isKeywordAnalysisActive:E.a.bool,size:E.a.number,color:E.a.string},R.defaultProps={readabilityScoreColor:"#000000",isContentAnalysisActive:!1,seoScoreColor:"#000000",isKeywordAnalysisActive:!1,size:20,color:"#000001"};var S=R,P=Object(f.compose)([Object(u.withSelect)((function(e){var t,n,r=e("yoast-seo/editor"),a=Object(g.a)(r.getResultsForFocusKeyword().overallScore),o=Object(g.a)(r.getReadabilityResults().overallScore),i=r.getPreferences(),s=i.isKeywordAnalysisActive,c=i.isContentAnalysisActive;switch(o.className){case"good":t=y.colors.$color_good;break;case"ok":t=y.colors.$color_ok;break;case"bad":default:t=y.colors.$color_bad}switch(a.className){case"good":n=y.colors.$color_good;break;case"ok":n=y.colors.$color_ok;break;case"bad":default:n=y.colors.$color_bad}return{readabilityScoreColor:t,seoScoreColor:n,isKeywordAnalysisActive:s,isContentAnalysisActive:c}}))])(S),x=n(114),C=n(135),A=n(55),I=n(33),L=n(76),q=n(136),F=function(){return Object(i.createElement)(L.a,{title:Object(p.__)("Google preview","wordpress-seo"),id:"yoast-google-preview-modal"},Object(i.createElement)(q.a,{showCloseButton:!1,hasPaperStyle:!1}))},N=n(137),D=function(){return Object(i.createElement)(L.a,{title:Object(p.__)("Twitter preview","wordpress-seo"),id:"yoast-twitter-preview-modal"},Object(i.createElement)(N.a,null))},M=n(138),K=function(){return Object(i.createElement)(L.a,{title:Object(p.__)("Facebook preview","wordpress-seo"),id:"yoast-facebook-preview-modal"},Object(i.createElement)(M.a,null))},W=n(118),B=n(72),H=n(119),V=n(140);function U(e){var t=e.settings;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(m.Fill,{name:"YoastSidebar"},Object(i.createElement)(I.a,{key:"warning",renderPriority:1},Object(i.createElement)(C.a,null)),t.isKeywordAnalysisActive&&Object(i.createElement)(I.a,{key:"keyword-input",renderPriority:8},Object(i.createElement)(A.KeywordInput,{isSEMrushIntegrationActive:t.isSEMrushIntegrationActive})),Object(i.createElement)(I.a,{key:"google-preview",renderPriority:23},Object(i.createElement)(F,null)),t.displayFacebook&&Object(i.createElement)(I.a,{key:"facebook-preview",renderPriority:24},Object(i.createElement)(K,null)),t.displayTwitter&&Object(i.createElement)(I.a,{key:"twitter-preview",renderPriority:25},Object(i.createElement)(D,null)),t.displaySchemaSettings&&Object(i.createElement)(I.a,{key:"schema",renderPriority:26},Object(i.createElement)(B.a,{title:Object(p.__)("Schema","wordpress-seo")},Object(i.createElement)(W.a,null))),t.displayAdvancedTab&&Object(i.createElement)(I.a,{key:"advanced",renderPriority:27},Object(i.createElement)(B.a,{title:Object(p.__)("Advanced","wordpress-seo")},Object(i.createElement)(H.a,null))),t.isContentAnalysisActive&&Object(i.createElement)(I.a,{key:"readability",renderPriority:10},Object(i.createElement)(A.ReadabilityAnalysis,null)),t.isKeywordAnalysisActive&&Object(i.createElement)(I.a,{key:"seo",renderPriority:20},Object(i.createElement)(A.SeoAnalysis,{shouldUpsell:t.shouldUpsell,shouldUpsellWordFormRecognition:t.isWordFormRecognitionActive})),t.isCornerstoneActive&&Object(i.createElement)(I.a,{key:"cornerstone",renderPriority:30},Object(i.createElement)(x.a,null)),t.isKeywordAnalysisActive&&t.isWincherIntegrationActive&&Object(i.createElement)(I.a,{renderPriority:22},Object(i.createElement)(V.a,{location:"sidebar"}))))}U.propTypes={settings:E.a.object.isRequired};var Y=Object(u.withSelect)((function(e,t){return{settings:(0,e("yoast-seo/editor").getPreferences)(),store:t.store}}))(U),z=n(158),G=n(102),$=n(115),Z=n(70);function J(e){var t=e.theme;return Object(i.createElement)(Z.a,{theme:t,location:"sidebar"},Object(i.createElement)(m.Slot,{name:"YoastSidebar"},(function(e){return Object($.a)(e)})))}var Q=n(9),X=n.n(Q),ee=n(10),te=n.n(ee),ne=n(12),re=n.n(ne),ae=n(18),oe=n.n(ae),ie=n(19),se=n.n(ie),ce=n(11),le=n.n(ce),ue=n(39),pe=n(178),de=n(14),be=n.n(de),me=n(29),he=n.n(me),fe=n(53),ye=n(146);function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){be()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ve=Object(m.withSpokenMessages)((function(e){var t=e.isActive,n=e.activeAttributes,r=e.addingLink,a=e.value,o=e.onChange,s=e.speak,c=e.stopAddingLink,l=Object(i.useMemo)(b.uniqueId,[r]),u=Object(i.useState)(),h=he()(u,2),f=h[0],y=h[1],g=Object(i.useMemo)((function(){var e=window.getSelection();if(e.rangeCount){var n=e.getRangeAt(0);if(r&&!t)return n;var a=n.startContainer;for(a=a.nextElementSibling||a;a.nodeType!==window.Node.ELEMENT_NODE;)a=a.parentNode;return a.closest("a")}}),[r,a.start,a.end]),O=Oe({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")},f),v=Object(i.createElement)(fe.a,{href:window.wpseoAdminL10n["shortlinks.nofollow_sponsored"],className:"dashicons"},Object(i.createElement)("span",{className:"screen-reader-text"},Object(p.__)("Learn more about marking a link as nofollow or sponsored.","wordpress-seo"))),j=Object(ye.a)(Object(p.sprintf)(Object(p.__)("Search engines should ignore this link (mark as %1$snofollow%2$s)%3$s","wordpress-seo"),"<code>","</code>","<helplink />"),{code:Object(i.createElement)("code",null),helplink:v}),w=Object(ye.a)(Object(p.sprintf)(Object(p.__)("This is a sponsored link or advert (mark as %1$ssponsored%2$s)%3$s","wordpress-seo"),"<code>","</code>","<helplink />"),{code:Object(i.createElement)("code",null),helplink:v}),k=[{id:"opensInNewTab",title:Object(p.__)("Open in new tab","wordpress-seo")},{id:"noFollow",title:j},{id:"sponsored",title:w}],E=window.wp.blockEditor.__experimentalLinkControl;return Object(i.createElement)(m.Popover,{key:l,anchorRef:g,focusOnMount:!!r&&"firstElement",onClose:c,position:"bottom center"},Object(i.createElement)(E,{value:O,onChange:function(e){e=Oe(Oe({},f),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 r=n&&void 0===e.url;if(y(r?e:void 0),!r){var i=Object(ue.prependHTTP)(e.url),l=function(e){var t=e.noFollow,n=e.sponsored,r={type:"core/link",attributes:{url:e.url}},a=[];return e.opensInNewWindow&&(r.attributes.target="_blank",a.push("noreferrer noopener")),n&&(a.push("sponsored"),a.push("nofollow")),t&&a.push("nofollow"),a.length>0&&(a=Object(b.uniq)(a),r.attributes.rel=a.join(" ")),r}({url:i,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(Object(d.isCollapsed)(a)&&!t){var u=e.title||i,m=Object(d.applyFormat)(Object(d.create)({text:u}),l,0,u.length);o(Object(d.insert)(a,m))}else{var h=Object(d.applyFormat)(a,l);h.start=h.end,h.activeFormats=[],o(h)}n||c(),function(e){if(!e)return!1;var t=e.trim();if(!t)return!1;if(/^\S+:/.test(t)){var n=Object(ue.getProtocol)(t);if(!Object(ue.isValidProtocol)(n))return!1;if(Object(b.startsWith)(n,"http")&&!/^https?:\/\/[^\/\s]/i.test(t))return!1;var r=Object(ue.getAuthority)(t);if(!Object(ue.isValidAuthority)(r))return!1;var a=Object(ue.getPath)(t);if(a&&!Object(ue.isValidPath)(a))return!1;var o=Object(ue.getQueryString)(t);if(o&&!Object(ue.isValidQueryString)(o))return!1;var i=Object(ue.getFragment)(t);if(i&&!Object(ue.isValidFragment)(i))return!1}return!(Object(b.startsWith)(t,"#")&&!Object(ue.isValidFragment)(t))}(i)?s(t?Object(p.__)("Link edited.","wordpress-seo"):Object(p.__)("Link inserted.","wordpress-seo"),"assertive"):s(Object(p.__)("Warning: the link has been inserted but may have errors. Please test it.","wordpress-seo"),"assertive")}},forceIsEditingLink:r,settings:k}))}));var je=Object(p.__)("Link","wordpress-seo"),we={name:"core/link",title:je,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(Object(d.isCollapsed)(e))return e;var a=(n||r).replace(/<[^>]+>/g,"").trim();return Object(ue.isURL)(a)?(window.console.log("Created link:\n\n",a),Object(d.applyFormat)(e,{type:"core/link",attributes:{url:Object(pe.decodeEntities)(a)}})):e},edit:Object(m.withSpokenMessages)(function(e){oe()(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=le()(t);if(n){var a=le()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return se()(this,e)});function a(){var e;return X()(this,a),(e=r.apply(this,arguments)).addLink=e.addLink.bind(re()(e)),e.stopAddingLink=e.stopAddingLink.bind(re()(e)),e.onRemoveFormat=e.onRemoveFormat.bind(re()(e)),e.state={addingLink:!1},e}return te()(a,[{key:"addLink",value:function(){var e=this.props,t=e.value,n=e.onChange,r=Object(d.getTextContent)(Object(d.slice)(t));r&&Object(ue.isURL)(r)?n(Object(d.applyFormat)(t,{type:"core/link",attributes:{url:r}})):r&&Object(ue.isEmail)(r)?n(Object(d.applyFormat)(t,{type:"core/link",attributes:{url:"mailto:".concat(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(Object(d.removeFormat)(t,"core/link")),r(Object(p.__)("Link removed.","wordpress-seo"),"assertive")}},{key:"render",value:function(){var e=this.props,t=e.isActive,n=e.activeAttributes,r=e.value,a=e.onChange,o=window.wp.blockEditor,s=o.RichTextToolbarButton,c=o.RichTextShortcut;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(c,{type:"primary",character:"k",onUse:this.addLink}),Object(i.createElement)(c,{type:"primaryShift",character:"k",onUse:this.onRemoveFormat}),t&&Object(i.createElement)(s,{name:"link",icon:"editor-unlink",title:Object(p.__)("Unlink","wordpress-seo"),onClick:this.onRemoveFormat,isActive:t,shortcutType:"primaryShift",shortcutCharacter:"k"}),!t&&Object(i.createElement)(s,{name:"link",icon:"admin-links",title:je,onClick:this.addLink,isActive:t,shortcutType:"primary",shortcutCharacter:"k"}),(this.state.addingLink||t)&&Object(i.createElement)(ve,{addingLink:this.state.addingLink,stopAddingLink:this.stopAddingLink,isActive:t,activeAttributes:n,value:r,onChange:a}))}}]),a}(i.Component))},ke=n(4),Ee=n(63);function Te(e){var t=e.score,n=e.label,r=e.scoreValue;return Object(i.createElement)("div",null,Object(i.createElement)(ke.SvgIcon,Object(Ee.getIconForScore)(t)),Object(i.createElement)("span",null," ",n," ",r&&Object(i.createElement)("strong",null,r)))}function _e(e){var t=e.checklist,n=e.onClick,r=t.every((function(e){return"good"===e.score}));return Object(i.createElement)(i.Fragment,null,t.map((function(e){return Object(i.createElement)(Te,v()({key:e.label},e))})),Object(i.createElement)("br",null),!r&&Object(i.createElement)(ke.Button,{onClick:n},Object(p.__)("Improve your post with Yoast SEO","wordpress-seo")))}function Re(e){var t,n=e.checklist,r=e.onClick;return t=n.every((function(e){return"good"===e.score}))?Object(p.__)("We've analyzed your post. Everything looks good. Well done!","wordpress-seo"):Object(p.__)("We've analyzed your post. There is still room for improvement!","wordpress-seo"),Object(i.createElement)(i.Fragment,null,Object(i.createElement)("p",null,t),Object(i.createElement)(_e,{checklist:n,onClick:r}))}function Se(e,t){if(t.getPreferences().isKeywordAnalysisActive){var n=Object(g.a)(t.getReadabilityResults().overallScore);e.push({label:Object(p.__)("Readability analysis:","wordpress-seo"),score:n.className,scoreValue:n.screenReaderReadabilityText})}}function Pe(e,t){if(t.getPreferences().isContentAnalysisActive){var n=Object(g.a)(t.getResultsForFocusKeyword().overallScore);e.push({label:Object(p.__)("SEO analysis:","wordpress-seo"),score:n.className,scoreValue:n.screenReaderReadabilityText})}}function xe(e,t,n){if(n.getBlocks().some((function(e){return!0===e.attributes["is-yoast-schema-block"]}))){var r=t.getSchemaBlocksValidationResults(),a=Object.values(r);if(a&&a.length>0){var o=a.every((function(e){return e.result<=0}));e.push({label:Object(p.__)("Schema analysis:","wordpress-seo"),score:o?"good":"bad",scoreValue:o?Object(p.__)("Good","wordpress-seo"):Object(p.__)("Needs improvement","wordpress-seo")})}}}Te.propTypes={score:k.string.isRequired,label:k.string.isRequired,scoreValue:k.string},Te.defaultProps={scoreValue:""},_e.propTypes={checklist:E.a.array.isRequired,onClick:E.a.func.isRequired},Re.propTypes={checklist:E.a.array.isRequired,onClick:E.a.func.isRequired};var Ce,Ae,Ie,Le=Object(f.compose)([Object(u.withSelect)((function(e){var t=e("yoast-seo/editor"),n=e("yoast-seo/schema-blocks"),r=e("core/block-editor"),a=[];return function(e,t){t.getFocusKeyphrase()||e.push({label:Object(p.__)("No focus keyword was entered","wordpress-seo"),score:"bad"})}(a,t),Se(a,t),Pe(a,t),xe(a,n,r),{checklist:a}})),Object(u.withDispatch)((function(e){var t=e("core/edit-post"),n=t.closePublishSidebar,r=t.openGeneralSidebar;return{onClick:function(){n(),r("yoast-seo/seo-sidebar")}}}))])(Re),qe=Object(f.compose)([Object(u.withSelect)((function(e){var t=e("yoast-seo/editor"),n=e("yoast-seo/schema-blocks"),r=e("core/block-editor"),a=[];return Se(a,t),Pe(a,t),xe(a,n,r),{checklist:a}})),Object(u.withDispatch)((function(e){var t=e("core/edit-post").openGeneralSidebar;return{onClick:function(){t("yoast-seo/seo-sidebar")}}}))])(_e),Fe=n(5);function Ne(){return(Ne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function De(e){return Fe.createElement("svg",Ne({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 1600","aria-hidden":"true"},e),Ce||(Ce=Fe.createElement("g",{fill:"none",fillRule:"evenodd"},Fe.createElement("path",{fill:"#1877f2",d:"M1600 800a800 800 0 10-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 00675-790"}),Fe.createElement("path",{fill:"#fff",d:"M1147 800H925V650c0-63 31-125 130-125h101V328s-91-15-179-15c-183 0-302 110-302 311v176H472v231h203v559a806 806 0 00250 0v-559h186z"}))))}function Me(){return(Me=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ke(e){return Fe.createElement("svg",Me({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 400","aria-hidden":"true"},e),Ae||(Ae=Fe.createElement("circle",{cx:200,cy:200,r:200,fill:"#1da1f2"})),Ie||(Ie=Fe.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"})))}function We(e){var t=e.permalink,n=encodeURI(t);return Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",null,Object(p.__)("Share your post!","wordpress-seo")),Object(i.createElement)("ul",{className:"yoast-seo-social-share-buttons"},Object(i.createElement)("li",null,Object(i.createElement)("a",{href:"https://www.facebook.com/sharer/sharer.php?u="+n,target:"_blank",rel:"noopener noreferrer"},Object(i.createElement)(De,null),Object(p.__)("Facebook","wordpress-seo"),Object(i.createElement)("span",{className:"screen-reader-text"},Object(p.__)("(Opens in a new browser tab)","wordpress-seo")))),Object(i.createElement)("li",null,Object(i.createElement)("a",{href:"https://twitter.com/share?url="+n,target:"_blank",rel:"noopener noreferrer"},Object(i.createElement)(Ke,null),Object(p.__)("Twitter","wordpress-seo"),Object(i.createElement)("span",{className:"screen-reader-text"},Object(p.__)("(Opens in a new browser tab)","wordpress-seo"))))))}We.propTypes={permalink:E.a.string.isRequired};var Be=Object(f.compose)([Object(u.withSelect)((function(e){return{permalink:e("core/editor").getPermalink()}}))])(We),He=n(94);function Ve(e){var t=e.hasTrackedKeyphrases,n=e.trackAll;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(ke.FieldGroup,{label:Object(p.__)("SEO performance","wordpress-seo"),linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"],linkText:Object(p.__)("Learn more about the SEO performance feature.","wordpress-seo")}),Object(i.createElement)(He.a,null),t&&Object(i.createElement)("p",null,Object(p.__)("Tracking has already been enabled for one or more keyphrases of this page. Clicking the button below will enable tracking for all of its keyphrases.","wordpress-seo")),Object(i.createElement)("div",{className:"yoast"},Object(i.createElement)(ke.NewButton,{variant:"secondary",onClick:n},Object(p.__)("Track all keyphrases on this page","wordpress-seo"))),Object(i.createElement)(V.a,{location:"postpublish"}))}Ve.propTypes={trackAll:E.a.func,hasTrackedKeyphrases:E.a.bool},Ve.defaultProps={trackAll:function(){},hasTrackedKeyphrases:!1};var Ue=Object(f.compose)([Object(u.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getWincherTrackedKeyphrases,r=t.hasWincherTrackedKeyphrases;return{trackedKeyphrases:n(),hasTrackedKeyphrases:r()}})),Object(u.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setWincherOpenModal,r=t.setWincherTrackAllKeyphrases;return{trackAll:function(){r(!0),n("postpublish")}}}))])(Ve),Ye=n(23);var ze=n(179);window.yoast=window.yoast||{},window.yoast.initEditorIntegration=function(e){(function(e){var t=Object(Ye.a)(),n=t.isPremium,r=n?"Yoast SEO Premium":"Yoast SEO",a=Object(i.createElement)(S,null);Object(l.updateCategory)("yoast-structured-data-blocks",{icon:a}),Object(l.updateCategory)("yoast-internal-linking-blocks",{icon:a});var o={isRtl:t.isRtl},d=e.getState().preferences,b=d.isKeywordAnalysisActive||d.isContentAnalysisActive,h=d.isZapierIntegrationActive&&!d.isZapierConnected,f=d.isKeywordAnalysisActive&&d.isWincherIntegrationActive;!Object(u.select)("core/edit-post").getPreferences().panels["yoast-seo/document-panel"]&&Object(u.dispatch)("core/edit-post").toggleEditorPanelOpened("yoast-seo/document-panel"),Object(c.registerPlugin)("yoast-seo",{render:function(){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(s.PluginSidebarMoreMenuItem,{target:"seo-sidebar",icon:Object(i.createElement)(P,null)},r),Object(i.createElement)(s.PluginSidebar,{name:"seo-sidebar",title:r},Object(i.createElement)(J,{store:e,theme:o})),Object(i.createElement)(i.Fragment,null,Object(i.createElement)(Y,{store:e,theme:o}),Object(i.createElement)(z.a,{target:"wpseo-metabox-root",store:e,theme:o})),b&&Object(i.createElement)(s.PluginPrePublishPanel,{className:"yoast-seo-sidebar-panel",title:Object(p.__)("Yoast SEO","wordpress-seo"),initialOpen:!0,icon:Object(i.createElement)(i.Fragment,null)},Object(i.createElement)(Le,null)),n&&h&&Object(i.createElement)(s.PluginPrePublishPanel,{className:"yoast-seo-sidebar-panel",title:"Zapier",initialOpen:!0,icon:Object(i.createElement)(i.Fragment,null)},Object(i.createElement)(m.Slot,{name:"YoastZapierPrePublish"})),Object(i.createElement)(s.PluginPostPublishPanel,{className:"yoast-seo-sidebar-panel",title:Object(p.__)("Yoast SEO","wordpress-seo"),initialOpen:!0,icon:Object(i.createElement)(i.Fragment,null)},Object(i.createElement)(Be,null),f&&Object(i.createElement)(Ue,null)),b&&Object(i.createElement)(s.PluginDocumentSettingPanel,{name:"document-panel",className:"yoast-seo-sidebar-panel",title:Object(p.__)("Yoast SEO","wordpress-seo"),icon:Object(i.createElement)(i.Fragment,null)},Object(i.createElement)(qe,null)))},icon:Object(i.createElement)(P,null)})})(e),"function"==typeof Object(b.get)(window,"wp.blockEditor.__experimentalLinkControl")?[we].forEach((function(e){var t=e.name,n=e.replaces,r=o()(e,["name","replaces"]);n&&Object(u.dispatch)("core/rich-text").removeFormatTypes(n),t&&Object(d.registerFormatType)(t,r)})):console.warn(Object(p.__)("Marking links with nofollow/sponsored has been disabled for WordPress installs < 5.4.","wordpress-seo")+" "+Object(p.sprintf)(Object(p.__)("Please upgrade your WordPress version or install the Gutenberg plugin to get this %1$s feature.","wordpress-seo"),"Yoast SEO")),function(e){Object(G.b)()&&e.dispatch(h.actions.setMarkerStatus("enabled"))}(e)},window.yoast.EditorData=ze.a}]);
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=205)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.yoast.propTypes},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.lodash},function(e,t){e.exports=window.yoast.componentsNew},function(e,t){e.exports=window.React},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.regeneratorRuntime},function(e,t){e.exports=window.yoast.helpers},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=window.yoast.styledComponents},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},function(e,t){function n(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(a,o){var i=e.apply(t,r);function s(e){n(i,a,o,s,c,"next",e)}function c(e){n(i,a,o,s,c,"throw",e)}s(void 0)}))}}},function(e,t){e.exports=window.yoast.externals.redux},function(e,t,n){var r=n(43);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(34),a=n(12);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t}},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.wp.components},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3);function a(){return Object(r.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}},function(e,t,n){var r=n(66),a=n(67),o=n(68);e.exports=function(e){return r(e)||a(e)||o()}},function(e,t){e.exports=window.yoast.styleGuide},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){e.exports=window.yoast.analysis},,function(e,t,n){var r=n(59),a=n(60),o=n(61);e.exports=function(e,t){return r(e)||a(e,t)||o()}},function(e,t){e.exports=window.yoast.externals.contexts},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=s(n(5)),o=s(n(89)),i=s(n(92));function s(e){return e&&e.__esModule?e:{default:e}}var c=void 0;t.default=function(e){var t=e.mixedString,n=e.components,s=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(s)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var l=(0,i.default)(t);try{return function e(t,n){var i,s,l,u,p,d,b,m,h=[],f={};for(d=0;d<t.length;d++)if("string"!==(p=t[d]).type){if(!n.hasOwnProperty(p.value)||void 0===n[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(n[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){i=n[p.value],l=d;break}h.push(n[p.value])}else h.push(p.value);return i&&(u=function(e,t){var n,r,a=t[e],o=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){o++;continue}if("componentClose"===n.type){if(0===o)return r;o--}}throw new Error("Missing closing component token `"+a.value+"`")}(l,t),b=e(t.slice(l+1,u),n),s=a.default.cloneElement(i,{},b),h.push(s),u<t.length-1&&(m=e(t.slice(u+1),n),h=h.concat(m))),1===h.length?h[0]:(h.forEach((function(e,t){e&&(f["interpolation-child-"+t]=e)})),(0,o.default)(f))}(l,n)}catch(e){if(s)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return d})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return g})),n.d(t,"e",(function(){return v})),n.d(t,"f",(function(){return w}));var r=n(16),a=n.n(r),o=n(7),i=n.n(o),s=n(36),c=n.n(s),l=n(3);function u(_x){return p.apply(this,arguments)}function p(){return(p=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c()(t);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),!e.t0.error||!e.t0.status){e.next=10;break}return e.abrupt("return",e.t0);case 10:if(!(e.t0 instanceof Response)){e.next=14;break}return e.next=13,e.t0.json();case 13:return e.abrupt("return",e.sent);case 14:return e.abrupt("return",!1);case 15:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function d(e,t,n){return b.apply(this,arguments)}function b(){return(b=a()(i.a.mark((function e(t,n,r){var a,o,s=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=s.length>3&&void 0!==s[3]?s[3]:200,e.prev=1,e.next=4,t();case 4:if(!(o=e.sent)){e.next=9;break}if(o.status!==a){e.next=8;break}return e.abrupt("return",n(o));case 8:return e.abrupt("return",r(o));case 9:return e.abrupt("return",!1);case 12:e.prev=12,e.t0=e.catch(1),console.error(e.t0.message);case 15:case"end":return e.stop()}}),e,null,[[1,12]])})))).apply(this,arguments)}function m(){return h.apply(this,arguments)}function h(){return(h=a()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u({path:"yoast/v1/wincher/authorization-url",method:"GET"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return y.apply(this,arguments)}function y(){return(y=a()(i.a.mark((function e(t){var n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.code,r=t.websiteId,e.next=3,u({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:n,websiteId:r}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(){return O.apply(this,arguments)}function O(){return(O=a()(i.a.mark((function e(){var t,n,r,a=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:null,n=a.length>1&&void 0!==a[1]?a[1]:null,r=a.length>2?a[2]:void 0,e.next=5,u({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:t,permalink:n},signal:r});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e){return j.apply(this,arguments)}function j(){return(j=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(l.isArray)(t)||(t=[t]),e.next=3,u({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:t}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function w(e){return k.apply(this,arguments)}function k(){return(k=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:t}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),i=function(e){var t=e.children;return Object(r.createElement)("div",null,t)};i.propTypes={renderPriority:o.a.number.isRequired,children:o.a.node.isRequired},t.a=i},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},,function(e,t){e.exports=window.wp.apiFetch},,function(e,t,n){var r=n(79);e.exports=function(e,t){if(null==e)return{};var n,a,o=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t){e.exports=window.wp.url},function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return i})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"h",(function(){return u})),n.d(t,"b",(function(){return p})),n.d(t,"l",(function(){return d})),n.d(t,"m",(function(){return b})),n.d(t,"n",(function(){return m})),n.d(t,"o",(function(){return h})),n.d(t,"k",(function(){return f})),n.d(t,"j",(function(){return y})),n.d(t,"i",(function(){return g}));var r=n(8),a="SNIPPET_EDITOR_SWITCH_MODE",o="SNIPPET_EDITOR_UPDATE_DATA",i="SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLE",s="SNIPPET_EDITOR_HIDE_REPLACEMENT_VARIABLES",c="SNIPPET_EDITOR_REMOVE_REPLACEMENT_VARIABLE",l="SNIPPET_EDITOR_REFRESH",u="SNIPPET_EDITOR_UPDATE_WORDS_TO_HIGHLIGHT",p="LOAD_SNIPPET_EDITOR_DATA";function d(e){return{type:a,mode:e}}function b(e){return{type:o,data:e}}function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o="string"==typeof t?Object(r.decodeHTML)(t):t;return{type:i,name:e,value:o,label:n,hidden:a}}function h(e){return{type:u,wordsToHighlight:e}}function f(e){return{type:c,name:e}}function y(){return{type:l,time:(new Date).getMilliseconds()}}function g(e){return{type:s,data:e}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o}));var r=n(0);function a(e){return e.charAt(0).toUpperCase()+e.slice(1)}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return Object(r.createInterpolateElement)(e,{a:Object(r.createElement)("a",{id:n,href:t,target:"_blank",rel:"noopener noreferrer"})})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),a=n(1),o=n.n(a);function i(e){var t=e.target,n=e.children,a=t;return"string"==typeof t&&(a=document.getElementById(t)),a?Object(r.createPortal)(n,a):null}i.propTypes={target:o.a.oneOfType([o.a.string,o.a.object]).isRequired,children:o.a.node.isRequired}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(14),a=n.n(r),o=n(20),i=n(0),s=n(30);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(){return Object(o.createHigherOrderComponent)((function(e){return Object(o.pure)((function(t){var n=Object(i.useContext)(s.LocationContext);return Object(i.createElement)(e,l(l({},t),{},{location:n}))}))}),"withLocation")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2),a=n(27),o=n(3);function i(e){return Object(o.isNil)(e)||(e/=10),function(e){switch(e){case"feedback":return{className:"na",screenReaderText:Object(r.__)("Feedback","wordpress-seo"),screenReaderReadabilityText:""};case"bad":return{className:"bad",screenReaderText:Object(r.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:Object(r.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:Object(r.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:Object(r.__)("OK","wordpress-seo")};case"good":return{className:"good",screenReaderText:Object(r.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:Object(r.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:""}}}(a.interpreters.scoreToRating(e))}},function(e,t){e.exports=window.yoast.replacementVariableEditor},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return _}));var r=n(26),a=n.n(r),o=n(38),i=n.n(o),s=n(14),c=n.n(s),l=n(9),u=n.n(l),p=n(10),d=n.n(p),b=n(12),m=n.n(b),h=n(18),f=n.n(h),y=n(19),g=n.n(y),O=n(11),v=n.n(O),j=n(0),w=n(1),k=n.n(w);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _=k.a.shape({value:k.a.string.isRequired,onChange:k.a.func.isRequired});t.a=function(e){return function(t){return function(n){f()(l,n);var r,o,s=(r=l,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v()(r);if(o){var n=v()(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return g()(this,e)});function l(t){var n;u()(this,l),(n=s.call(this,t)).elements={};var r={};return n.fields=e(t),n.fields.forEach((function(e){var t=e.name,a=e.fieldId,o=document.getElementById(a);o&&(n.elements[t]=o,r[t]={value:o.value,onChange:n.onChange.bind(m()(n),t)})})),n.state=r,n}return d()(l,[{key:"onChange",value:function(e,t){var n=this;this.setState(T(T({},this.state),{},c()({},e,T(T({},this.state[e]),{},{value:t}))),(function(){n.elements[e]&&(n.elements[e].value=t)}))}},{key:"render",value:function(){var e=this.props,n=e.children,r=i()(e,["children"]);return Object(j.createElement)(t,a()({},r,this.state),n)}}],[{key:"propTypes",get:function(){return{children:k.a.node}}}]),l}(j.Component)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return p}));var r=n(26),a=n.n(r),o=n(38),i=n.n(o),s=n(0),c=n(1),l=n.n(c),u=n(21),p="yoast yoast-gutenberg-modal",d=function(e){var t=e.title,n=e.className,r=e.showYoastIcon,o=e.additionalClassName,c=i()(e,["title","className","showYoastIcon","additionalClassName"]),l=r?Object(s.createElement)("span",{className:"yoast-icon"}):null;return Object(s.createElement)(u.Modal,a()({title:t,className:"".concat(n," ").concat(o),icon:l},c),e.children)};d.propTypes={title:l.a.string,className:l.a.string,showYoastIcon:l.a.bool,children:l.a.oneOfType([l.a.node,l.a.arrayOf(l.a.node)]),additionalClassName:l.a.string},d.defaultProps={title:"Yoast SEO",className:p,showYoastIcon:!0,children:null,additionalClassName:""},t.a=d},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=n(23);function o(){var e=Object(a.a)();return Object(r.get)(e,"contentLocale","en_US")}},function(e,t,n){"use strict";var r,a=n(15),o=n.n(a),i=n(25),s=n(8),c=n(13),l=n.n(c),u=Object(s.makeOutboundLink)(l.a.a(r||(r=o()(["\n\tdisplay: inline-block;\n\tposition: relative;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 100%;\n\twidth: 24px;\n\theight: 24px;\n\tmargin: -4px 0;\n\tvertical-align: middle;\n\n\tcolor: ",";\n\t\n\t&:hover,\n\t&:focus {\n\t\tcolor: ",";\t\n\t}\n\t\n\t// Overwrite the default blue active color for links.\n\t&:active {\n\t\tcolor: ",';\t\n\t}\n\n\t&::before {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tpadding: 2px;\n\t\tcontent: "\f223";\n\t}\n'],["\n\tdisplay: inline-block;\n\tposition: relative;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 100%;\n\twidth: 24px;\n\theight: 24px;\n\tmargin: -4px 0;\n\tvertical-align: middle;\n\n\tcolor: ",";\n\t\n\t&:hover,\n\t&:focus {\n\t\tcolor: ",";\t\n\t}\n\t\n\t// Overwrite the default blue active color for links.\n\t&:active {\n\t\tcolor: ",';\t\n\t}\n\n\t&::before {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tpadding: 2px;\n\t\tcontent: "\\f223";\n\t}\n'])),i.colors.$color_help_text,i.colors.$color_snippet_focus,i.colors.$color_help_text));t.a=u},function(e,t,n){"use strict";var r,a=n(26),o=n.n(a),i=n(15),s=n.n(i),c=n(0),l=n(4),u=n(13),p=n.n(u)()(l.Collapsible)(r||(r=s()(['\n\th2 > button {\n\t\tpadding-left: 24px;\n\t\tpadding-top: 16px;\n\n\t\t&:hover {\n\t\t\tbackground-color: #f0f0f0;\n\t\t}\n\t}\n\n\tdiv[class^="collapsible_content"] {\n\t\tpadding: 24px 0;\n\t\tmargin: 0 24px;\n\t\tborder-top: 1px solid rgba(0,0,0,0.2);\n\t}\n\n'])));t.a=function(e){return Object(c.createElement)(p,o()({hasPadding:!0,hasSeparator:!0},e))}},function(e,t){e.exports=window.yoast.externals.components},function(e,t){e.exports=window.wp.richText},function(e,t,n){"use strict";n.r(t),n.d(t,"nonReplaceVars",(function(){return d})),n.d(t,"fillReplacementVariables",(function(){return b})),n.d(t,"handlePrefixes",(function(){return m})),n.d(t,"createLabelFromName",(function(){return h})),n.d(t,"pushNewReplaceVar",(function(){return f})),n.d(t,"replaceSpaces",(function(){return y})),n.d(t,"prepareCustomFieldForDispatch",(function(){return g})),n.d(t,"prepareCustomTaxonomyForDispatch",(function(){return O})),n.d(t,"mapCustomTaxonomies",(function(){return v})),n.d(t,"mapCustomFields",(function(){return j})),n.d(t,"excerptFromContent",(function(){return w})),n.d(t,"applyReplaceUsingPlugin",(function(){return k}));var r=n(14),a=n.n(r),o=n(3),i=n(106),s=n(40),c=n(41);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=n(8).strings.stripHTMLTags,d=["slug","content","contentImage","snippetPreviewImageURL"];function b(e,t){Object(o.forEach)(e,(function(e,n){d.includes(n)||t.dispatch(Object(s.n)(n,e))}))}function m(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 h(e){return e=m(e),Object(c.b)(e)}function f(e,t){return e.push({name:t.name,label:t.label||h(t.name),value:t.value}),e}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e.replace(/\s/g,t)}function g(e){return{name:"cf_"+y(e),label:Object(c.b)(e+" (custom field)")}}function O(e){var t=y(e);return{name:"ct_"+t,label:Object(c.b)(e+" (custom taxonomy)"),descriptionName:"ct_desc_"+t,descriptionLabel:Object(c.b)(e+" description (custom taxonomy)")}}function v(e,t){return e.custom_taxonomies?(Object(o.forEach)(e.custom_taxonomies,(function(e,n){var r=O(n),a=r.name,o=r.label,i=r.descriptionName,c=r.descriptionLabel;t.dispatch(Object(s.n)(a,e.name,o)),t.dispatch(Object(s.n)(i,e.description,c))})),Object(o.omit)(u({},e),"custom_taxonomies")):e}function j(e,t){return e.custom_fields?(Object(o.forEach)(e.custom_fields,(function(e,n){var r=g(n),a=r.name,o=r.label;t.dispatch(Object(s.n)(a,e,o))})),Object(o.omit)(u({},e),"custom_fields")):e}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:156;return(e=(e=Object(i.stripTags)(e)).trim()).length<=t||(e=e.substring(0,t),/\s/.test(e)&&(e=e.substring(0,e.lastIndexOf(" ")))),e}var k=function(e){var t=Object(o.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!Object(o.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){var t=Object(o.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],o.identity);return{url:e.url,title:p(t(e.title)),description:p(t(e.description))}}(e);var n=t._applyModifications.bind(t);return{url:e.url,title:p(n("data_page_title",e.title)),description:p(n("data_meta_desc",e.description))}}},function(e,t,n){"use strict";var r=n(24),a=n.n(r),o=n(0),i=n(1),s=n.n(i),c=n(2),l=function(e){var t=e.data,n=e.mapChartDataToTableData,r=e.dataTableCaption,a=e.dataTableHeaderLabels,i=e.isDataTableVisuallyHidden;return t.length!==a.length?Object(o.createElement)("p",null,Object(c.__)("The number of headers and header labels don't match.","wordpress-seo")):Object(o.createElement)("div",{className:i?"screen-reader-text":null},Object(o.createElement)("table",null,Object(o.createElement)("caption",null,r),Object(o.createElement)("thead",null,Object(o.createElement)("tr",null,a.map((function(e,t){return Object(o.createElement)("th",{key:t},e)})))),Object(o.createElement)("tbody",null,Object(o.createElement)("tr",null,t.map((function(e,t){return Object(o.createElement)("td",{key:t},n(e.y))}))))))};l.propTypes={data:s.a.arrayOf(s.a.shape({x:s.a.number,y:s.a.number})).isRequired,mapChartDataToTableData:s.a.func,dataTableCaption:s.a.string.isRequired,dataTableHeaderLabels:s.a.array.isRequired,isDataTableVisuallyHidden:s.a.bool},l.defaultProps={mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};var u=l,p=function(e){var t=e.data,n=e.width,r=e.height,i=e.fillColor,s=e.strokeColor,c=e.strokeWidth,l=e.className,p=e.mapChartDataToTableData,d=e.dataTableCaption,b=e.dataTableHeaderLabels,m=e.isDataTableVisuallyHidden,h=Math.max(1,Math.max.apply(Math,a()(t.map((function(e){return e.x}))))),f=Math.max(1,Math.max.apply(Math,a()(t.map((function(e){return e.y}))))),y=r-c,g=t.map((function(e){var t=e.x/h*n,r=y-e.y/f*y+c;return"".concat(t,",").concat(r)})).join(" "),O="0,".concat(y+c," ")+g+" ".concat(n,",").concat(y+c);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("svg",{width:n,height:r,viewBox:"0 0 ".concat(n," ").concat(r),className:l,role:"img","aria-hidden":"true",focusable:"false"},Object(o.createElement)("polygon",{fill:i,points:O}),Object(o.createElement)("polyline",{fill:"none",stroke:s,strokeWidth:c,strokeLinejoin:"round",strokeLinecap:"round",points:g})),p&&Object(o.createElement)(u,{data:t,mapChartDataToTableData:p,dataTableCaption:d,dataTableHeaderLabels:b,isDataTableVisuallyHidden:m}))};p.propTypes={data:s.a.arrayOf(s.a.shape({x:s.a.number,y:s.a.number})).isRequired,width:s.a.number.isRequired,height:s.a.number.isRequired,fillColor:s.a.string,strokeColor:s.a.string,strokeWidth:s.a.number,className:s.a.string,mapChartDataToTableData:s.a.func,dataTableCaption:s.a.string.isRequired,dataTableHeaderLabels:s.a.array.isRequired,isDataTableVisuallyHidden:s.a.bool},p.defaultProps={fillColor:null,strokeColor:"#000000",strokeWidth:1,className:"",mapChartDataToTableData:null,isDataTableVisuallyHidden:!0},t.a=p},function(e,t,n){"use strict";function r(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()}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],_n=!0,r=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(_n=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,a=e}finally{try{_n||null==i.return||i.return()}finally{if(r)throw a}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},,,function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},function(e,t,n){"use strict";n.r(t),n.d(t,"getIconForScore",(function(){return s})),n.d(t,"default",(function(){return c}));var r=n(27),a=n(25);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.getIdentifier(),a={score:e.score,rating:r.interpreters.scoreToRating(e.score),hasMarks:e.hasMarks(),marker:e.getMarker(),id:n,text:e.text,markerId:t.length>0?"".concat(t,":").concat(n):n};return"ok"===a.rating&&(a.rating="OK"),a}function i(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 s(e){var t={icon:"seo-score-none",color:a.colors.$color_red};switch(e){case"loading":t={icon:"loading-spinner",color:a.colors.$color_green_medium_light};break;case"good":t={icon:"seo-score-good",color:a.colors.$color_green_medium};break;case"ok":t={icon:"seo-score-ok",color:a.colors.$color_ok};break;case"bad":t={icon:"seo-score-bad",color:a.colors.$color_red}}return t}function c(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 a=e[r];if(a.text){var s=o(a,t);n=i(s,n)}}return n}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),i=n(13),s=n(30),c=function(e){var t=e.theme,n=e.location,a=e.children;return Object(r.createElement)(s.LocationProvider,{value:n},Object(r.createElement)(i.ThemeProvider,{theme:t},a))};c.propTypes={theme:o.a.object.isRequired,location:o.a.oneOf(["sidebar","metabox","modal"]).isRequired,children:o.a.element.isRequired},t.a=c},function(e,t){e.exports=window.moment},function(e,t,n){"use strict";var r=n(29),a=n.n(r),o=n(0),i=n(4),s=n(1),c=n.n(s),l=function(e){var t=Object(o.useState)(!1),n=a()(t,2),r=n[0],s=n[1],c=e.prefixIcon;return Object(o.createElement)("div",{className:"yoast components-panel__body ".concat(r?"is-opened":"")},Object(o.createElement)("h2",{className:"components-panel__body-title"},Object(o.createElement)("button",{onClick:function(){s(!r)},className:"components-button components-panel__body-toggle"},Object(o.createElement)("span",{className:"yoast-icon-span",style:{fill:"".concat(c&&c.color||"")}},c&&Object(o.createElement)(i.SvgIcon,{icon:c.icon,color:c.color,size:c.size})),Object(o.createElement)("span",{className:"yoast-title-container"},Object(o.createElement)("div",{className:"yoast-title"},e.title),Object(o.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),Object(o.createElement)("span",{className:"yoast-chevron","aria-hidden":"true"}))),r&&e.children)};t.a=l,l.propTypes={title:c.a.string.isRequired,children:c.a.oneOfType([c.a.node,c.a.arrayOf(c.a.node)]).isRequired,prefixIcon:c.a.object,subTitle:c.a.string},l.defaultProps={prefixIcon:null,subTitle:""}},,,function(e,t){e.exports=window.yoast.featureFlag},function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(80);t.a=Object(r.compose)([Object(a.withSelect)((function(e,t){var n=e("yoast-seo/editor"),r=n.getPostOrPageString,a=n.getIsModalOpen;return{postTypeName:r(),isOpen:a(t.id)}})),Object(a.withDispatch)((function(e,t){var n=e("yoast-seo/editor"),r=n.openEditorModal;return{open:function(){return r(t.id)},close:n.closeEditorModal}}))])(o.a)},function(e,t,n){"use strict";n.d(t,"b",(function(){return E}));var r=n(14),a=n.n(r),o=n(9),i=n.n(o),s=n(10),c=n.n(s),l=n(12),u=n.n(l),p=n(18),d=n.n(p),b=n(19),m=n.n(b),h=n(11),f=n.n(h),y=n(0),g=n(2),O=n(4),v=n(1),j=n.n(v),w=n(49);var k=function(e){d()(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=f()(t);if(n){var a=f()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return m()(this,e)});function o(e){var t;return i()(this,o),(t=r.call(this,e)).initialPageType=e.pageType.value,t.initialArticleType=e.articleType?e.articleType.value:"None",t.state={schema_page_type:t.initialPageType,schema_article_type:t.initialArticleType},t.handleOptionFocus=t.handleOptionFocus.bind(u()(t)),t}return c()(o,[{key:"shouldShowAlert",value:function(){return this.state.schema_page_type!==this.initialPageType||this.state.schema_article_type!==this.initialArticleType}},{key:"handleOptionFocus",value:function(e,t){this.setState(a()({},e,t))}},{key:"render",value:function(){return Object(y.createElement)(y.Fragment,null,Object(y.createElement)(O.FieldGroup,{label:Object(g.__)("Schema settings","wordpress-seo"),linkTo:"https://yoa.st/404",linkText:Object(g.__)("Learn more about the schema settings","wordpress-seo"),description:Object(g.sprintf)(
2
  /* translators: %1$s expands to an indexable object's name, e.g. Posts or Pages. */
3
  Object(g.__)("Choose how your %1$s should be described by default in your site's schema.org markup. You can change these settings for individual %1$s.","wordpress-seo"),this.props.postTypeName)}),this.shouldShowAlert()&&Object(y.createElement)(O.Alert,{type:"warning"},Object(g.sprintf)(
4
  /* translators: %1$s expands to an indexable object's name, e.g. Posts or Pages. */
5
+ Object(g._n)("Upon saving, this setting will apply to all of your %1$s. %1$s that are manually configured will be left untouched.","Upon saving, these settings will apply to all of your %1$s. %1$s that are manually configured will be left untouched.",this.props.articleType?2:1,"wordpress-seo"),this.props.postTypeName)),Object(y.createElement)(O.Select,{id:"schema-page-type-".concat(this.props.postType),name:"schema_page_type",options:this.props.pageTypeOptions,label:Object(g.__)("Default Page type","wordpress-seo"),onChange:this.props.pageType.onChange,selected:this.props.pageType.value,onOptionFocus:this.handleOptionFocus}),this.props.articleType&&Object(y.createElement)(O.Select,{id:"schema-article-type-".concat(this.props.postType),name:"schema_article_type",options:this.props.articleTypeOptions,label:Object(g.__)("Default Article type","wordpress-seo"),onChange:this.props.articleType.onChange,onOptionFocus:this.handleOptionFocus,selected:this.props.articleType.value}))}}]),o}(y.Component),E=j.a.arrayOf(j.a.shape({name:j.a.string,value:j.a.string}));k.propTypes={postType:j.a.string.isRequired,postTypeName:j.a.string.isRequired,pageType:w.b.isRequired,articleType:w.b,pageTypeOptions:E.isRequired,articleTypeOptions:E.isRequired},k.defaultProps={articleType:null},t.a=Object(w.a)((function(e){return[{name:"pageType",fieldId:e.pageTypeFieldId},{name:"articleType",fieldId:e.articleTypeFieldId}]}))(k)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(9),a=n.n(r),o=n(10),i=n.n(o),s=function(){function e(){a()(this,e)}return i()(e,null,[{key:"articleTypeInput",get:function(){return document.getElementById("yoast_wpseo_schema_article_type")}},{key:"defaultArticleType",get:function(){return e.articleTypeInput.getAttribute("data-default")}},{key:"articleType",get:function(){return e.articleTypeInput.value},set:function(t){e.articleTypeInput.value=t}},{key:"pageTypeInput",get:function(){return document.getElementById("yoast_wpseo_schema_page_type")}},{key:"defaultPageType",get:function(){return e.pageTypeInput.getAttribute("data-default")}},{key:"pageType",get:function(){return e.pageTypeInput.value},set:function(t){e.pageTypeInput.value=t}}]),e}()},,function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}},function(e,t,n){"use strict";n.d(t,"b",(function(){return p}));var r=n(0),a=n(2),o=n(50),i=n(1),s=n.n(i),c=n(3),l=n(81),u=n(30),p=function(e){var t=!0;if("blur"===e.type){var n=e.relatedTarget;if(n){var r=["media-modal","wp-core-ui"];t=Object(c.intersection)(r,Array.from(n.classList)).length!==r.length}}return t},d=function(e){var t=e.id,n=e.postTypeName,i=e.children,s=e.title,c=e.isOpen,d=e.close,b=e.open,m=Object(r.useCallback)((function(e){p(e)&&d()}),[d]);return Object(r.createElement)(r.Fragment,null,c&&Object(r.createElement)(u.LocationProvider,{value:"modal"},Object(r.createElement)(o.a,{title:s,onRequestClose:m,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal"},Object(r.createElement)("div",{className:"yoast-content-container"},Object(r.createElement)("div",{className:"yoast-modal-content"},i)),Object(r.createElement)("div",{className:"yoast-notice-container"},Object(r.createElement)("hr",null),Object(r.createElement)("div",{className:"yoast-button-container"},Object(r.createElement)("p",null,
6
  /* Translators: %s translates to the Post Label in singular form */
7
  Object(a.sprintf)(Object(a.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),n)),Object(r.createElement)("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:m},
8
  /* Translators: %s translates to the Post Label in singular form */
9
+ Object(a.sprintf)(Object(a.__)("Return to your %s","wordpress-seo"),n)))))),Object(r.createElement)(l.a,{id:t+"-open-button",title:s,suffixIcon:{size:"20px",icon:"pencil-square"},onClick:b}))};d.propTypes={id:s.a.string.isRequired,postTypeName:s.a.string.isRequired,children:s.a.oneOfType([s.a.node,s.a.arrayOf(s.a.node)]).isRequired,title:s.a.string.isRequired,isOpen:s.a.bool.isRequired,open:s.a.func.isRequired,close:s.a.func.isRequired},t.a=d},function(e,t,n){"use strict";var r=n(0),a=n(4),o=n(1),i=n.n(o),s=function(e){return Object(r.createElement)("div",{className:"yoast components-panel__body"},Object(r.createElement)("h2",{className:"components-panel__body-title"},Object(r.createElement)("button",{id:e.id,onClick:e.onClick,className:"components-button components-panel__body-toggle"},e.prefixIcon&&Object(r.createElement)("span",{className:"yoast-icon-span",style:{fill:"".concat(e.prefixIcon&&e.prefixIcon.color||"")}},Object(r.createElement)(a.SvgIcon,{size:e.prefixIcon.size,icon:e.prefixIcon.icon})),Object(r.createElement)("span",{className:"yoast-title-container"},Object(r.createElement)("div",{className:"yoast-title"},e.title),Object(r.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),e.suffixIcon&&Object(r.createElement)(a.SvgIcon,{size:e.suffixIcon.size,icon:e.suffixIcon.icon}))))};t.a=s,s.propTypes={onClick:i.a.func.isRequired,title:i.a.string.isRequired,id:i.a.string,subTitle:i.a.string,suffixIcon:i.a.object,prefixIcon:i.a.object},s.defaultProps={id:"",suffixIcon:null,prefixIcon:null,subTitle:""}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return y})),n.d(t,"b",(function(){return g}));var r=n(0),a=n(1),o=n.n(a),i=n(2),s=n(3),c=n(70),l=n.n(c),u=n(4),p=n(8),d=n(57),b=function(){return Object(r.createElement)("p",{className:"yoast-wincher-seo-performance-modal__loading-message"},Object(i.__)("Tracking the ranking position...","wordpress-seo")," ",Object(r.createElement)(u.SvgIcon,{icon:"loading-spinner"}))},m=Object(p.makeOutboundLink)();function h(e){return Math.round(100*e)}function f(e){var t=e.chartData;if(Object(s.isEmpty)(t)||Object(s.isEmpty)(t.position))return"?";var n=function(e){return Array.from({length:e.position.history.length},(function(e,t){return t+1})).map((function(e){
10
  /* translators: %d expands to the amount of days */
11
  return Object(i.sprintf)(Object(i._n)("%d day","%d days",e,"wordpress-seo"),e)}))}(t),a=t.position.history.map((function(e,t){return{x:t,y:101-e.value}}));return Object(r.createElement)(d.a,{width:66,height:24,data:a,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:h,dataTableCaption:Object(i.__)("Keyphrase position in the last 90 days on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:n})}function y(e){return!e||!e.position||e.position.value>100?"> 100":e.position.value}function g(e){var t=e.keyphrase,n=e.rowData,a=e.onTrackKeyphrase,o=e.onUntrackKeyphrase,c=e.isFocusKeyphrase,p=e.isDisabled,d=e.isLoading,h=!Object(s.isEmpty)(n),g=Object(r.useCallback)((function(){p||(h?o(t,n.id):a(t))}),[t,a,o,h,n,p]);return Object(r.createElement)("tr",null,Object(r.createElement)("td",{className:"yoast-table--nopadding"},function(e){var t=e.keyphrase,n=e.isEnabled,a=e.toggleAction;return e.isLoading?Object(r.createElement)(u.SvgIcon,{icon:"loading-spinner"}):Object(r.createElement)(u.Toggle,{id:"toggle-keyphrase-tracking-".concat(t),className:"wincher-toggle",isEnabled:n,onSetToggleState:a,showToggleStateLabel:!1})}({keyphrase:t,isEnabled:h,toggleAction:g,isLoading:d})),Object(r.createElement)("td",null,t,c&&Object(r.createElement)("span",null,"*")),function(e){var t=e.rowData,n=e.websiteId,a=!Object(s.isEmpty)(t),o=t&&t.updated_at&&l()(t.updated_at)>=l()().subtract(7,"days"),c=t?Object(i.sprintf)("https://app.wincher.com/websites/%s/keywords?serp=%s&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast",n,t.id):null;return a?o?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",null,y(t)),Object(r.createElement)("td",{className:"yoast-table--nopadding"},Object(r.createElement)(f,{chartData:t})),Object(r.createElement)("td",{className:"yoast-table--nobreak"},Object(r.createElement)(m,{href:c},Object(i.__)("View","wordpress-seo")))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},Object(r.createElement)(b,null))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",null,"?"),Object(r.createElement)("td",{className:"yoast-table--nopadding"},"?"),Object(r.createElement)("td",{className:"yoast-table--nobreak"}))}(e))}f.propTypes={chartData:o.a.object},f.defaultProps={chartData:{}},g.propTypes={rowData:o.a.object,keyphrase:o.a.string.isRequired,onTrackKeyphrase:o.a.func,onUntrackKeyphrase:o.a.func,isFocusKeyphrase:o.a.bool,isDisabled:o.a.bool,isLoading:o.a.bool,websiteId:o.a.string},g.defaultProps={rowData:{},onTrackKeyphrase:function(){},onUntrackKeyphrase:function(){},isFocusKeyphrase:!1,isDisabled:!1,isLoading:!1,websiteId:""}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(16),a=n.n(r),o=n(9),i=n.n(o),s=n(10),c=n.n(s),l=n(7),u=n.n(l),p=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i()(this,e),this.url=t,this.origin=new URL(t).origin,this.eventHandlers=Object.assign({success:{type:"",callback:function(){}},error:{type:"",callback:function(){}}},n),this.options=Object.assign({height:570,width:340,title:""},r),this.popup=null,this.createPopup=this.createPopup.bind(this),this.messageHandler=this.messageHandler.bind(this),this.getPopup=this.getPopup.bind(this)}var t;return c()(e,[{key:"createPopup",value:function(){var e=this.options,t=e.height,n=e.width,r=e.title,a=["top="+(window.top.outerHeight/2+window.top.screenY-t/2),"left="+(window.top.outerWidth/2+window.top.screenX-n/2),"width="+n,"height="+t,"resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(this.url,r,a.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}},{key:"messageHandler",value:(t=a()(u.a.mark((function e(t){var n,r;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.data,r=t.source,t.origin===this.origin&&this.popup===r){e.next=3;break}return e.abrupt("return");case 3:if(n.type!==this.eventHandlers.success.type){e.next=8;break}return this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),e.next=8,this.eventHandlers.success.callback(n);case 8:if(n.type!==this.eventHandlers.error.type){e.next=13;break}return this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),e.next=13,this.eventHandlers.error.callback(n);case 13:case"end":return e.stop()}}),e,this)}))),function(_x){return t.apply(this,arguments)})},{key:"getPopup",value:function(){return this.popup}},{key:"isClosed",value:function(){return!this.popup||this.popup.closed}},{key:"focus",value:function(){this.isClosed()||this.popup.focus()}}]),e}()},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),i=n(2),s=n(31),c=n.n(s),l=n(4),u=function(e){var t=Object(i.sprintf)(
12
  /* translators: %s expands to a link to open the Wincher login popup. */
16
  /* Translators: %s expands to the social medium name, which is either Twitter or Facebook. %s expands to Yoast SEO Premium */
17
  Object(T.__)("Want to see how your content will look when it’s shared on %s?","wordpress-seo"),e.socialMediumName),n=Object(T.sprintf)(
18
  /* Translators: %s expands to Yoast SEO Premium */
19
+ Object(T.__)("Get %s to unlock social previews!","wordpress-seo"),"Yoast SEO Premium");return Object(f.createElement)(f.Fragment,null,Object(f.createElement)(S,{type:"info"},E()({mixedString:t,components:{strong:Object(f.createElement)("b",null)}}),Object(f.createElement)("br",null),Object(f.createElement)(P,{href:wpseoAdminL10n["shortlinks.upsell.social_previews"]},Object(f.createElement)("p",null,n))))};x.propTypes={socialMediumName:g.a.oneOf(["Twitter","Facebook"]).isRequired};var C=x,A=n(125),I=n(46);var L=function(e){p()(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=h()(t);if(n){var a=h()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return b()(this,e)});function a(e){var t;return o()(this,a),(t=r.call(this,e)).state={activeField:"",hoveredField:""},t.setHoveredField=t.setHoveredField.bind(l()(t)),t.setActiveField=t.setActiveField.bind(l()(t)),t.setEditorRef=t.setEditorRef.bind(l()(t)),t.setEditorFocus=t.setEditorFocus.bind(l()(t)),t}return s()(a,[{key:"setHoveredField",value:function(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}},{key:"setActiveField",value:function(e){var t=this;e!==this.state.activeField&&this.setState({activeField:e},(function(){return t.setEditorFocus(e)}))}},{key:"setEditorFocus",value:function(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}},{key:"setEditorRef",value:function(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}},{key:"render",value:function(){var e=this.props,t=e.onDescriptionChange,n=e.onTitleChange,r=e.onSelectImageClick,a=e.onRemoveImageClick,o=e.socialMediumName,i=e.imageWarnings,s=e.description,c=e.descriptionInputPlaceholder,l=e.imageUrl,u=e.title,p=e.titleInputPlaceholder,d=e.replacementVariables,b=e.recommendedReplacementVariables,m=e.isPremium,h=e.location;return Object(f.createElement)(f.Fragment,null,Object(f.createElement)(C,{socialMediumName:o}),Object(f.createElement)(A.SocialMetadataPreviewForm,{onDescriptionChange:t,socialMediumName:o,title:u,titleInputPlaceholder:p,onRemoveImageClick:a,imageSelected:!!l,imageUrl:l,onTitleChange:n,onSelectImageClick:r,description:s,descriptionInputPlaceholder:c,imageWarnings:i,replacementVariables:d,recommendedReplacementVariables:b,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:m,setEditorRef:this.setEditorRef,idSuffix:h}))}}]),a}(f.Component);L.propTypes={title:g.a.string.isRequired,onTitleChange:g.a.func.isRequired,description:g.a.string.isRequired,onDescriptionChange:g.a.func.isRequired,imageUrl:g.a.string.isRequired,onSelectImageClick:g.a.func.isRequired,onRemoveImageClick:g.a.func.isRequired,socialMediumName:g.a.string.isRequired,isPremium:g.a.bool,imageWarnings:g.a.array,descriptionInputPlaceholder:g.a.string,titleInputPlaceholder:g.a.string,replacementVariables:I.replacementVariablesShape,recommendedReplacementVariables:I.recommendedReplacementVariablesShape,location:g.a.string},L.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",location:""},t.a=L},function(e,t,n){"use strict";var r=n(5),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(64),i=n(90),s=n(91),c="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}var u=/\/+/g;function p(e){return(""+e).replace(u,"$&/")}var d,b,m=h,h=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)};function f(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var a,i,s=e.result,c=e.keyPrefix,l=e.func,u=e.context,d=l.call(u,t,e.count++);Array.isArray(d)?g(d,s,n,o.thatReturnsArgument):null!=d&&(r.isValidElement(d)&&(a=d,i=c+(!d.key||t&&t.key===d.key?"":p(d.key)+"/")+n,d=r.cloneElement(a,{key:i},void 0!==a.props?a.props.children:void 0)),s.push(d))}function g(e,t,n,r,o){var s="";null!=n&&(s=p(n)+"/");var u=f.getPooled(t,s,r,o);!function(e,t,n){null==e||function e(t,n,r,o){var s,u=typeof t;if("undefined"!==u&&"boolean"!==u||(t=null),null===t||"string"===u||"number"===u||"object"===u&&t.$$typeof===a)return r(o,t,""===n?"."+l(t,0):n),1;var p=0,d=""===n?".":n+":";if(Array.isArray(t))for(var b=0;b<t.length;b++)p+=e(s=t[b],d+l(s,b),r,o);else{var m=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(m)for(var h,f=m.call(t),y=0;!(h=f.next()).done;)p+=e(s=h.value,d+l(s,y++),r,o);else if("object"===u){var g=""+t;i(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===g?"object with keys {"+Object.keys(t).join(", ")+"}":g,"")}}return p}(e,"",t,n)}(e,y,u),f.release(u)}f.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){if(this.instancePool.length){var a=this.instancePool.pop();return this.call(a,e,t,n,r),a}return new this(e,t,n,r)},(b=f).instancePool=[],b.getPooled=d||m,b.poolSize||(b.poolSize=10),b.release=function(e){i(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)},e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return s(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return s(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;i(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)g(e[n],t,n,o.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,o,i,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,a,o,i,s],u=0;(c=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(64);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t,n){"use strict";var r=n(0),a=n(2),o=n(31),i=n.n(o),s=n(8),c=Object(s.makeOutboundLink)(),l=Object(s.makeOutboundLink)();t.a=function(){var e=Object(a.sprintf)(Object(a.__)(
20
  /* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */
21
  "With %1$s you can track the ranking position of your page in the search results based on your keyphrase(s). %2$s","wordpress-seo"),"{{wincherLink/}}","{{wincherReadMoreLink/}}");return Object(r.createElement)("p",null,i()({mixedString:e,components:{wincherLink:Object(r.createElement)(c,{href:wpseoAdminGlobalL10n["links.wincher.website"]},"Wincher"),wincherReadMoreLink:Object(r.createElement)(l,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"]},Object(a.__)("Read more about keyphrase tracking with Wincher","wordpress-seo"))}}))}},function(e,t,n){"use strict";var r=n(6),a=n(20),o=n(26),i=n.n(o),s=n(15),c=n.n(s),l=n(16),u=n.n(l),p=n(0),d=n(7),b=n.n(d),m=n(2),h=n(1),f=n.n(h),y=n(3),g=n(13),O=n.n(g),v=n(4),j=n(8),w=n(31),k=n.n(w),E=Object(j.makeOutboundLink)(),T=function(e){var t=Object(m.sprintf)(
22
  /* translators: %d expands to the amount of allowed keyphrases on a free account, %s expands to a link to Wincher plans. */
26
  /* translators: %s: Expands to "Wincher". */
27
  Object(m.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher"))},A=function(){return Object(p.createElement)(v.Alert,{type:"info"},Object(m.sprintf)(
28
  /* translators: %s: Expands to "Wincher". */
29
+ Object(m.__)("%s is currently tracking the ranking position(s) of your page. This may take a few minutes. Please wait or check back later.","wordpress-seo"),"Wincher"))},I=n(24),L=n.n(I),q=n(29),F=n.n(q),N=n(83),D=n(32),M=Object(j.makeOutboundLink)(),K=O.a.span(_||(_=c()(["\n\tdisplay: block;\n\tfont-style: italic;\n\n\t@media (min-width: 782px) {\n\t\tdisplay: inline;\n\t\tposition: absolute;\n\t\t",": 8px;\n\t}\n"])),Object(j.getDirectionalStyle)("right","left")),W=O.a.th(R||(R=c()(["\n\tmin-width: 60px;\n"]))),B=O.a.div(S||(S=c()(["\n\twidth: 100%;\n\toverflow-y: auto;\n"]))),H=function(e){var t=Object(p.useRef)();return Object(p.useEffect)((function(){t.current=e})),t.current},V=Object(y.debounce)(D.c,500,{leading:!0}),U=function(e){var t=e.addTrackedKeyphrase,n=e.isLoggedIn,r=e.keyphrases,a=e.permalink,o=e.removeTrackedKeyphrase,i=e.setKeyphraseLimitReached,s=e.setRequestFailed,c=e.setRequestSucceeded,l=e.setTrackedKeyphrases,d=e.setHasTrackedAll,h=e.trackAll,f=e.trackedKeyphrases,g=e.isNewlyAuthenticated,O=e.websiteId,v=e.focusKeyphrase,j=e.newRequest,w=Object(p.useRef)(),k=Object(p.useRef)(),E=Object(p.useRef)(!1),T=Object(p.useState)([]),_=F()(T,2),R=_[0],S=_[1],P=Object(p.useCallback)((function(e){var t=e.toLowerCase();return f&&!Object(y.isEmpty)(f)&&f.hasOwnProperty(t)?f[t]:null}),[f]),x=Object(p.useMemo)((function(){return u()(b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(D.d)((function(){return k.current&&k.current.abort(),k.current="undefined"==typeof AbortController?null:new AbortController,V(r,a,k.current.signal)}),(function(e){c(e),l(e.results)}),(function(e){s(e)}));case 2:case"end":return e.stop()}}),e)})))}),[c,s,l,r,a]),C=Object(p.useCallback)(function(){var e=u()(b.a.mark((function e(n){var r;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(Array.isArray(n)?n:[n]).map((function(e){return e.toLowerCase()})),S((function(e){return[].concat(L()(e),L()(r))})),e.next=4,Object(D.d)((function(){return Object(D.e)(r)}),(function(e){c(e),t(e.results),x()}),(function(e){400===e.status&&e.limit&&i(e.limit),s(e)}),201);case 4:S((function(e){return y.without.apply(void 0,[e].concat(L()(r)))}));case 5:case"end":return e.stop()}}),e)})));return function(_x){return e.apply(this,arguments)}}(),[c,s,i,t,x]),A=Object(p.useCallback)(function(){var e=u()(b.a.mark((function e(t,n){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=t.toLowerCase(),S((function(e){return[].concat(L()(e),[t])})),e.next=4,Object(D.d)((function(){return Object(D.f)(n)}),(function(e){c(e),o(t)}),(function(e){s(e)}));case 4:S((function(e){return Object(y.without)(e,t)}));case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[c,o,s]),I=Object(p.useCallback)(function(){var e=u()(b.a.mark((function e(t){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return j(),e.next=3,C(t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[j,C]),q=H(a),U=H(r);Object(p.useEffect)((function(){n&&a&&(a!==q||Object(y.difference)(r,U).length)&&x()}),[n,a,q,r,U,x]),Object(p.useEffect)((function(){if(n&&h&&null!==f){var e=r.filter((function(e){return!P(e)}));e.length&&C(e),d()}}),[n,h,f,C,d,P,r]),Object(p.useEffect)((function(){g&&!E.current&&(x(),E.current=!0)}),[g,x]),Object(p.useEffect)((function(){if(n&&!Object(y.isEmpty)(f))return Object(y.filter)(f,(function(e){return Object(y.isEmpty)(e.updated_at)})).length>0&&(w.current=setInterval((function(){x()}),1e4)),function(){clearInterval(w.current)}}),[n,f,x]);var Y=n&&null===f;return r&&!Object(y.isEmpty)(r)&&Object(p.createElement)(p.Fragment,null,Object(p.createElement)(B,null,Object(p.createElement)("table",{className:"yoast yoast-table"},Object(p.createElement)("thead",null,Object(p.createElement)("tr",null,Object(p.createElement)("th",{scope:"col",abbr:Object(m.__)("Tracking","wordpress-seo")},Object(m.__)("Tracking","wordpress-seo")),Object(p.createElement)("th",{scope:"col",abbr:Object(m.__)("Keyphrase","wordpress-seo")},Object(m.__)("Keyphrase","wordpress-seo")),Object(p.createElement)("th",{scope:"col",abbr:Object(m.__)("Position","wordpress-seo")},Object(m.__)("Position","wordpress-seo")),Object(p.createElement)("th",{scope:"col",abbr:Object(m.__)("Position over time","wordpress-seo")},Object(m.__)("Position over time","wordpress-seo")),Object(p.createElement)(W,{className:"yoast-table--nobreak"}))),Object(p.createElement)("tbody",null,r.map((function(e,t){return Object(p.createElement)(N.b,{key:"trackable-keyphrase-".concat(t),keyphrase:e,onTrackKeyphrase:I,onUntrackKeyphrase:A,rowData:P(e),isFocusKeyphrase:e===v.trim(),websiteId:O,isDisabled:!n,isLoading:Y||R.indexOf(e.toLowerCase())>=0})}))))),Object(p.createElement)("p",{style:{marginBottom:0,position:"relative"}},Object(p.createElement)(M,{href:wpseoAdminGlobalL10n["links.wincher.login"]},Object(m.sprintf)(
30
  /* translators: %s expands to Wincher */
31
+ Object(m.__)("Get more insights over at %s","wordpress-seo"),"Wincher")),Object(p.createElement)(K,null,Object(m.__)("* focus keyphrase","wordpress-seo"))))};U.propTypes={addTrackedKeyphrase:f.a.func.isRequired,isLoggedIn:f.a.bool,isNewlyAuthenticated:f.a.bool,keyphrases:f.a.array,newRequest:f.a.func.isRequired,removeTrackedKeyphrase:f.a.func.isRequired,setRequestFailed:f.a.func.isRequired,setKeyphraseLimitReached:f.a.func.isRequired,setRequestSucceeded:f.a.func.isRequired,setTrackedKeyphrases:f.a.func.isRequired,setHasTrackedAll:f.a.func.isRequired,trackAll:f.a.bool,trackedKeyphrases:f.a.object,websiteId:f.a.string,permalink:f.a.string.isRequired,focusKeyphrase:f.a.string},U.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],trackAll:!1,trackedKeyphrases:null,websiteId:"",focusKeyphrase:""};var Y,z,G,$=U,Z=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getWincherWebsiteId,r=t.getWincherTrackedKeyphrases,a=t.getWincherTrackableKeyphrases,o=t.getWincherLoginStatus,i=t.getWincherPermalink,s=t.getFocusKeyphrase,c=t.isWincherNewlyAuthenticated,l=t.shouldWincherTrackAll;return{focusKeyphrase:s(),keyphrases:a(),trackedKeyphrases:r(),isLoggedIn:o(),trackAll:l(),websiteId:n(),isNewlyAuthenticated:c(),permalink:i()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setWincherNewRequest,r=t.setWincherRequestSucceeded,a=t.setWincherRequestFailed,o=t.setWincherSetKeyphraseLimitReached,i=t.setWincherTrackedKeyphrases,s=t.setWincherTrackingForKeyphrase,c=t.setWincherTrackAllKeyphrases,l=t.unsetWincherTrackingForKeyphrase;return{newRequest:function(){n()},setRequestSucceeded:function(e){r(e)},setRequestFailed:function(e){a(e)},setKeyphraseLimitReached:function(e){o(e)},addTrackedKeyphrase:function(e){s(e)},removeTrackedKeyphrase:function(e){l(e)},setTrackedKeyphrases:function(e){i(e)},setHasTrackedAll:function(){c(!1)}}}))])($),J=n(93),Q=function(){return Object(p.createElement)(v.Alert,{type:"error"},Object(m.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo"))},X=function(){return Object(p.createElement)(v.Alert,{type:"info"},Object(m.sprintf)(
32
  /* translators: %s: Expands to "Wincher". */
33
+ Object(m.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher"))},ee=n(85),te=n(86),ne=function(){return Object(p.createElement)(v.Alert,{type:"error"},Object(m.__)("Before you can track your SEO performance make sure to set either the post’s title and save it as a draft or manually set the post’s slug.","wordpress-seo"))},re=function(e){var t=e.response,n=e.onLogin;return 403===t.status||404===t.status?Object(p.createElement)(te.a,{onReconnect:n}):Object(p.createElement)(x,null)};re.propTypes={response:f.a.object.isRequired,onLogin:f.a.func.isRequired};var ae=function(e){var t=e.isSuccess,n=e.response,r=e.allKeyphrasesMissRanking,a=e.onLogin,o=e.keyphraseLimitReached,i=e.limit;return o?Object(p.createElement)(P,{limit:i}):Object(y.isEmpty)(n)||t?r?Object(p.createElement)(A,null):null:Object(p.createElement)(re,{response:n,onLogin:a})};ae.propTypes={isSuccess:f.a.bool.isRequired,allKeyphrasesMissRanking:f.a.bool.isRequired,response:f.a.object,onLogin:f.a.func.isRequired,keyphraseLimitReached:f.a.bool.isRequired,limit:f.a.number.isRequired},ae.defaultProps={response:{}};var oe=null,ie=function(){var e=u()(b.a.mark((function e(t,n){var r,a,o;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.onAuthentication,a=t.setRequestSucceeded,o=t.setRequestFailed,e.next=3,Object(D.d)((function(){return Object(D.a)(n)}),function(){var e=u()(b.a.mark((function e(t){var o;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r(!0,!0,n.websiteId.toString()),a(t),(o=oe.getPopup())&&o.close();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),function(){var e=u()(b.a.mark((function e(t){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",o(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e)})));return function(_x,t){return e.apply(this,arguments)}}(),se=function(){var e=u()(b.a.mark((function e(t){var n,r;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!oe||oe.isClosed()){e.next=3;break}return oe.focus(),e.abrupt("return");case 3:return e.next=5,Object(D.b)();case 5:n=e.sent,r=n.url,(oe=new ee.a(r,{success:{type:"wincher:oauth:success",callback:function(e){return ie(t,e)}},error:{type:"wincher:oauth:error",callback:function(){return t.onAuthentication(!1,!1)}}},{title:"Wincher_login",width:500,height:700})).createPopup();case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ce=function(e){return e.isLoggedIn?null:Object(p.createElement)("p",null,Object(p.createElement)(v.NewButton,{onClick:e.onLogin,variant:"primary"},Object(m.sprintf)(
34
  /* translators: %s expands to Wincher */
35
+ Object(m.__)("Connect with %s","wordpress-seo"),"Wincher")))};ce.propTypes={isLoggedIn:f.a.bool.isRequired,onLogin:f.a.func.isRequired};var le=O.a.div(Y||(Y=c()(["\n\tp {\n\t\tmargin: 1em 0;\n\t}\n"]))),ue=O.a.div(z||(z=c()(["\n\t",";\n"])),(function(e){return e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"})),pe=O.a.div(G||(G=c()(["\n\tfont-weight: var(--yoast-font-weight-bold);\n\tcolor: var(--yoast-color-label);\n\tfont-size: var(--yoast-font-size-default);\n"]))),de=function(e){var t=e.isLoggedIn,n=e.keyphrases,r=e.shouldTrackAll;return!e.permalink&&t?Object(p.createElement)(ne,null):0===n.length?Object(p.createElement)(Q,null):Object(p.createElement)(ue,{isDisabled:!t},Object(p.createElement)("p",null,Object(m.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")),t&&r&&Object(p.createElement)(X,null),Object(p.createElement)(Z,null))};function be(e){var t=e.isNewlyAuthenticated,n=e.isLoggedIn,r=Object(p.useCallback)((function(){se(e)}),[se,e]);return Object(p.createElement)(le,null,t&&Object(p.createElement)(C,null),Object(p.createElement)(pe,null,Object(m.__)("SEO performance","wordpress-seo"),Object(p.createElement)(v.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"],linkText:Object(m.__)("Learn more about the SEO performance feature.","wordpress-seo")})),Object(p.createElement)(J.a,null),Object(p.createElement)(ce,{isLoggedIn:n,onLogin:r}),Object(p.createElement)(ae,i()({},e,{onLogin:r})),Object(p.createElement)(de,e))}de.propTypes={keyphrases:f.a.array.isRequired,isLoggedIn:f.a.bool.isRequired,shouldTrackAll:f.a.bool.isRequired,permalink:f.a.string.isRequired},be.propTypes={isLoggedIn:f.a.bool,isNewlyAuthenticated:f.a.bool,keyphrases:f.a.array,response:f.a.object,shouldTrackAll:f.a.bool,permalink:f.a.string},be.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],response:{},shouldTrackAll:!1,permalink:""},t.a=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.isWincherNewlyAuthenticated,r=t.getWincherKeyphraseLimitReached,a=t.getWincherLimit,o=t.getWincherLoginStatus,i=t.getWincherRequestIsSuccess,s=t.getWincherRequestResponse,c=t.getWincherTrackableKeyphrases,l=t.getWincherAllKeyphrasesMissRanking,u=t.getWincherPermalink,p=t.shouldWincherAutomaticallyTrackAll;return{keyphrases:c(),allKeyphrasesMissRanking:l(),isLoggedIn:o(),isNewlyAuthenticated:n(),isSuccess:i(),keyphraseLimitReached:r(),limit:a(),response:s(),shouldTrackAll:p(),permalink:u()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setWincherWebsiteId,r=t.setWincherRequestSucceeded,a=t.setWincherRequestFailed,o=t.setWincherLoginStatus;return{setRequestSucceeded:function(e){r(e)},setRequestFailed:function(e){a(e)},onAuthentication:function(e,t,r){n(r),o(e,t)}}}))])(be)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return d}));var r,a,o=n(15),i=n.n(o),s=n(13),c=n.n(s),l=n(4),u=n(8),p=c.a.div(r||(r=i()(["\n\tmin-width: 600px;\n\n\t@media screen and ( max-width: 680px ) {\n\t\tmin-width: 0;\n\t\twidth: 86vw;\n\t}\n"]))),d=c()(l.Icon)(a||(a=i()(["\n\tfloat: ",";\n\tmargin: ",";\n\n\t&& {\n\t\twidth: 150px;\n\t\theight: 150px;\n\n\t\t@media screen and ( max-width: 680px ) {\n\t\t\twidth: 80px;\n\t\t\theight: 80px;\n\t\t}\n\t}\n"])),Object(u.getDirectionalStyle)("right","left"),Object(u.getDirectionalStyle)("0 0 16px 16px","0 16px 16px 0"))},,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return j}));var r=n(14),a=n.n(r),o=n(3),i=(n(147),n(55)),s=n(6);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u="<yoastmark class='yoast-text-mark'>",p=[],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"}]},b={singleH1:{"core/heading":[{key:"content",filter:function(e){return 1===e.level}}]}};function m(){var e=p.shift();e&&(Object(s.dispatch)("core/annotations").__experimentalAddAnnotation(e),h())}function h(){Object(o.isFunction)(window.requestIdleCallback)?window.requestIdleCallback(m,{timeout:1e3}):setTimeout(m,150)}function f(){return Object(s.select)("core/block-editor")&&Object(o.isFunction)(Object(s.select)("core/block-editor").getBlocks)&&Object(s.select)("core/annotations")&&Object(o.isFunction)(Object(s.dispatch)("core/annotations").__experimentalAddAnnotation)}function y(e){var t=Object(s.select)("yoast-seo/editor").getActiveMarker(),n=b[t]||d;return n.hasOwnProperty(e)?n[e]:[]}function g(e,t,n){var r=e.key,a=t.attributes,s=a[r];if(e.filter&&!e.filter(a))return[];var c=Object(i.create)({html:s,multilineTag:e.multilineTag,multilineWrapperTag:e.multilineWrapperTag}).text;return Object(o.flatMap)(n,(function(e){var n=function(e,t){var n=t.getOriginal().replace(/(<([^>]+)>)/gi,""),r=t.getMarked().replace(/(<(?!\/?yoastmark)[^>]+>)/gi,""),a=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=[];if(0===e.length)return r;var a,o=0;for(n||(t=t.toLowerCase(),e=e.toLowerCase());(a=e.indexOf(t,o))>-1;)r.push(a),o=a+t.length;return r}(e,n);if(0===a.length)return[];var o=function(e){for(var t=e.indexOf(u),n=null,r=[];t>=0;){if((n=(e=e.replace(u,"")).indexOf("</yoastmark>"))<t)return[];e=e.replace("</yoastmark>",""),r.push({startOffset:t,endOffset:n}),t=e.indexOf(u),n=null}return r}(r),i=[];return o.forEach((function(e){a.forEach((function(r){var a=r+e.startOffset,o=r+e.endOffset;0===e.startOffset&&e.endOffset===t.getOriginal().length&&(o=r+n.length),i.push({startOffset:a,endOffset:o})}))})),i}(c,e);return n?n.map((function(e){return l(l({},e),{},{block:t.clientId,richTextIdentifier:r})})):[]}))}function O(e){p=e.map((function(e){return{blockClientId:e.block,source:"yoast",richTextIdentifier:e.richTextIdentifier,range:{start:e.startOffset,end:e.endOffset}}}))}function v(e,t){if(p=[],Object(s.dispatch)("core/annotations").__experimentalRemoveAnnotationsBySource("yoast"),0!==t.length){var n=Object(s.select)("core/block-editor").getBlocks();O(Object(o.flatMap)(n,(function(e){return Object(o.flatMap)(y(e.name),(function(n){return g(n,e,t)}))}))),h()}}function j(){var e=Object(s.select)("core/editor").getSelectedBlock(),t=Object(s.select)("yoast-seo/editor").getActiveMarker();if(e&&t){var n;n=e.clientId,Object(s.select)("core/annotations").__experimentalGetAnnotations().filter((function(e){return e.blockClientId===n&&"yoast"===e.source})).forEach((function(e){Object(s.dispatch)("core/annotations").__experimentalRemoveAnnotation(e.id)}));var r=Object(s.select)("yoast-seo/editor").getResultById(t);if(void 0!==r){var a=r.marks;O(Object(o.flatMap)(y(e.name),(function(t){return g(t,e,a)}))),h()}}}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r,a,o=n(5);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 425 456.27","aria-hidden":"true"},e),r||(r=o.createElement("path",{d:"M73 405.26a66.79 66.79 0 01-6.54-1.7 64.75 64.75 0 01-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 01-5.08-4.19 69.21 69.21 0 01-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 01-3.44-5.64 68.29 68.29 0 01-8.29-32.55V142.13a68.26 68.26 0 018.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0114.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0173 75.09a68.75 68.75 0 0113.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 000 142.13v196.09A86.84 86.84 0 0086.75 425h11.32v-18.35H86.75A68.75 68.75 0 0173 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 018.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 01391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 018.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 00-56.45-81.28z"})),a||(a=o.createElement("path",{d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 010 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z",stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81})))}},function(e,t,n){"use strict";var r,a=n(15),o=n.n(a),i=n(0),s=n(1),c=n.n(s),l=n(13),u=n.n(l),p=n(4),d=n(8),b=u()(p.StyledSection)(r||(r=o()(["\n\t&"," {\n\t\tpadding: 0;\n\n\t\t& "," {\n\t\t\t",": 20px;\n\t\t\tmargin-left: ",";\n\t\t}\n\t}\n"])),p.StyledSectionBase,p.StyledHeading,Object(d.getDirectionalStyle)("padding-left","padding-right"),Object(d.getDirectionalStyle)("0","20px")),m=function(e){var t=e.children,n=e.title,r=e.icon,a=e.hasPaperStyle,o=e.shoppingData;return Object(i.createElement)(b,{headingLevel:3,headingText:n,headingIcon:r,headingIconColor:"#555",hasPaperStyle:a,shoppingData:o},t)};m.propTypes={children:c.a.element,title:c.a.string,icon:c.a.string,hasPaperStyle:c.a.bool,shoppingData:c.a.object},m.defaultProps={hasPaperStyle:!0,shoppingData:null},t.a=m},function(e,t){e.exports=window.wp.sanitize},,function(e,t,n){"use strict";var r=n(6),a=n(20),o=n(0),i=n(2),s=n(1),c=n.n(s),l=n(3),u=n(4),p=function(){return Object(o.createElement)("p",{className:"yoast-related-keyphrases-modal__loading-message"},Object(i.sprintf)(
36
  /* translators: %1$s expands to "Yoast SEO", %2$s expands to "Semrush". */
37
  Object(i.__)("Please wait while %1$s connects to %2$s to get related keyphrases...","wordpress-seo"),"Yoast SEO","Semrush")," ",Object(o.createElement)(u.SvgIcon,{icon:"loading-spinner"}))},d=n(8),b=Object(d.makeOutboundLink)(),m=function(){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,Object(i.sprintf)(
38
  /* translators: %s : Expands to "Semrush". */
39
  Object(i.__)("You've reached your request limit for today. Check back tomorrow or upgrade your plan over at %s.","wordpress-seo"),"Semrush")),Object(o.createElement)(b,{href:window.wpseoAdminL10n["shortlinks.semrush.prices"],className:"yoast-button-upsell"},Object(i.sprintf)(
40
  /* translators: %s : Expands to "Semrush". */
41
+ Object(i.__)("Upgrade your %s plan","wordpress-seo"),"Semrush"),Object(o.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})))},h=n(16),f=n.n(h),y=n(9),g=n.n(y),O=n(10),v=n.n(O),j=n(12),w=n.n(j),k=n(18),E=n.n(k),T=n(19),_=n.n(T),R=n(11),S=n.n(R),P=n(7),x=n.n(P),C=n(36),A=n.n(C),I=n(39);var L="yoast-semrush-country-selector",q=[{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"}],F=function(e){E()(c,e);var t,n,r,a,s=(r=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=S()(r);if(a){var n=S()(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _()(this,e)});function c(e){var t;return g()(this,c),(t=s.call(this,e)).relatedKeyphrasesRequest=t.relatedKeyphrasesRequest.bind(w()(t)),t.onChangeHandler=t.onChangeHandler.bind(w()(t)),t}return v()(c,[{key:"componentDidMount",value:function(){this.props.response&&this.props.keyphrase===this.props.lastRequestKeyphrase||this.relatedKeyphrasesRequest()}},{key:"storeCountryCode",value:function(e){A()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}})}},{key:"relatedKeyphrasesRequest",value:(n=f()(x.a.mark((function e(){var t,n,r,a;return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,n=t.keyphrase,r=t.countryCode,(0,t.newRequest)(r,n),this.storeCountryCode(r),e.next=5,this.doRequest(n,r);case 5:if(200!==(a=e.sent).status){e.next=9;break}return this.handleSuccessResponse(a),e.abrupt("return");case 9:this.handleFailedResponse(a);case 10:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"handleSuccessResponse",value:function(e){var t=this.props,n=t.setNoResultsFound,r=t.setRequestSucceeded;0!==e.results.rows.length?r(e):n()}},{key:"handleFailedResponse",value:function(e){var t=this.props,n=t.setRequestLimitReached,r=t.setRequestFailed;"error"in e&&(e.error.includes("TOTAL LIMIT EXCEEDED")?n():r(e))}},{key:"doRequest",value:(t=f()(x.a.mark((function e(t,n){return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A()({path:Object(I.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:t,country_code:n})});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(_x,e){return t.apply(this,arguments)})},{key:"onChangeHandler",value:function(e){this.props.setCountry(e)}},{key:"render",value:function(){return Object(o.createElement)("div",{id:L},Object(o.createElement)(u.SingleSelect,{id:L+"-select",label:Object(i.__)("Show results for:","wordpress-seo"),name:"semrush-country-code",options:q,selected:this.props.countryCode,onChange:this.onChangeHandler,wrapperClassName:"yoast-field-group yoast-field-group--inline"}),Object(o.createElement)(u.NewButton,{id:L+"-button",variant:"secondary",onClick:this.relatedKeyphrasesRequest},Object(i.__)("Select country","wordpress-seo")))}}]),c}(o.Component);F.propTypes={keyphrase:c.a.string,countryCode:c.a.string,response:c.a.object,lastRequestKeyphrase:c.a.string,setCountry:c.a.func.isRequired,newRequest:c.a.func.isRequired,setNoResultsFound:c.a.func.isRequired,setRequestSucceeded:c.a.func.isRequired,setRequestLimitReached:c.a.func.isRequired,setRequestFailed:c.a.func.isRequired},F.defaultProps={keyphrase:"",countryCode:"us",response:{},lastRequestKeyphrase:""};var N=F,D=n(57),M=n(52);var K=Object(d.makeOutboundLink)(),W=function(e){E()(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=S()(t);if(n){var a=S()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return _()(this,e)});function a(e){var t;return g()(this,a),(t=r.call(this,e)).transformTrendDataToChartPoints=t.transformTrendDataToChartPoints.bind(w()(t)),t.getAreaChartDataTableHeaderLabels=t.getAreaChartDataTableHeaderLabels.bind(w()(t)),t.mapAreaChartDataToTableData=t.mapAreaChartDataToTableData.bind(w()(t)),t}return v()(a,[{key:"transformTrendDataToChartPoints",value:function(e){return e.split(",").map((function(e,t){return{x:t,y:parseFloat(e)}}))}},{key:"getAreaChartDataTableHeaderLabels",value:function(){return[Object(i.__)("Twelve months ago","wordpress-seo"),Object(i.__)("Eleven months ago","wordpress-seo"),Object(i.__)("Ten months ago","wordpress-seo"),Object(i.__)("Nine months ago","wordpress-seo"),Object(i.__)("Eight months ago","wordpress-seo"),Object(i.__)("Seven months ago","wordpress-seo"),Object(i.__)("Six months ago","wordpress-seo"),Object(i.__)("Five months ago","wordpress-seo"),Object(i.__)("Four months ago","wordpress-seo"),Object(i.__)("Three months ago","wordpress-seo"),Object(i.__)("Two months ago","wordpress-seo"),Object(i.__)("Last month","wordpress-seo")]}},{key:"mapAreaChartDataToTableData",value:function(e){return Math.round(100*e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.keyphrase,r=t.relatedKeyphrases,a=t.countryCode,s=t.data,c=t.renderAction,u="https://www.semrush.com/analytics/keywordoverview/?q="+encodeURIComponent(n)+"&db="+encodeURIComponent(a);return s&&!Object(l.isEmpty)(s.results)&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("table",{className:"yoast yoast-table"},Object(o.createElement)("thead",null,Object(o.createElement)("tr",null,Object(o.createElement)("th",{scope:"col",className:"yoast-table--primary"},Object(i.__)("Related keyphrase","wordpress-seo")),Object(o.createElement)("th",{scope:"col",abbr:Object(i.__)("Volume","wordpress-seo")},Object(i.__)("Volume","wordpress-seo"),Object(o.createElement)(M.a,{href:window.wpseoAdminL10n["shortlinks.semrush.volume_help"],className:"dashicons"},Object(o.createElement)("span",{className:"screen-reader-text"},Object(i.__)("Learn more about the related keyphrases volume","wordpress-seo")))),Object(o.createElement)("th",{scope:"col",abbr:Object(i.__)("Trend","wordpress-seo")},Object(i.__)("Trend","wordpress-seo"),Object(o.createElement)(M.a,{href:window.wpseoAdminL10n["shortlinks.semrush.trend_help"],className:"dashicons"},Object(o.createElement)("span",{className:"screen-reader-text"},Object(i.__)("Learn more about the related keyphrases trend","wordpress-seo")))),c&&Object(o.createElement)("td",{className:"yoast-table--nobreak"}))),Object(o.createElement)("tbody",null,s.results.rows.map((function(t,n){var a=t[0],s=e.transformTrendDataToChartPoints(t[2]),l=e.getAreaChartDataTableHeaderLabels();return Object(o.createElement)("tr",{key:n},Object(o.createElement)("td",null,a),Object(o.createElement)("td",null,t[1]),Object(o.createElement)("td",{className:"yoast-table--nopadding"},Object(o.createElement)(D.a,{width:66,height:24,data:s,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:e.mapAreaChartDataToTableData,dataTableCaption:Object(i.__)("Keyphrase volume in the last 12 months on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:l})),c&&Object(o.createElement)("td",{className:"yoast-table--nobreak"},c(a,r)))})))),Object(o.createElement)("p",{style:{marginBottom:0}},Object(o.createElement)(K,{href:u},Object(i.sprintf)(
42
  /* translators: %s expands to Semrush */
43
  Object(i.__)("Get more insights at %s","wordpress-seo"),"Semrush"))))}}]),a}(o.Component);W.propTypes={data:c.a.object,keyphrase:c.a.string,relatedKeyphrases:c.a.array,countryCode:c.a.string,renderAction:c.a.func},W.defaultProps={data:{},keyphrase:"",relatedKeyphrases:[],countryCode:"us",renderAction:null};var B=W,H=Object(d.makeOutboundLink)(),V=function(){return Object(o.createElement)(u.Alert,{type:"info"},Object(i.sprintf)(
44
  /* translators: %s: Expands to "Yoast SEO". */
46
  /* translators: %s: Expands to "Yoast SEO Premium". */
47
  Object(i.__)("Check out %s!","wordpress-seo"),"Yoast SEO Premium")))},U=function(){return Object(o.createElement)(u.Alert,{type:"error"},Object(i.__)("We've encountered a problem trying to get related keyphrases. Please try again later.","wordpress-seo"))},Y=function(){return Object(o.createElement)(u.Alert,{type:"warning"},Object(i.sprintf)(
48
  /* translators: %s: Expands to "Yoast SEO". */
49
+ Object(i.__)("You've reached the maximum amount of 4 related keyphrases. You can change or remove related keyphrases in the %s metabox or sidebar.","wordpress-seo"),"Yoast SEO"))},z=n(23);function G(e){var t=e.response,n=e.lastRequestKeyphrase,r=e.keyphrase,a=e.newRequest,s=e.setCountry,c=e.renderAction,u=e.countryCode,d=e.requestLimitReached,b=e.setRequestFailed,h=e.setNoResultsFound,f=e.relatedKeyphrases,y=e.setRequestSucceeded,g=e.setRequestLimitReached,O=Object(z.a)().isPremium;return Object(o.createElement)(o.Fragment,null,!d&&Object(o.createElement)(o.Fragment,null,!O&&Object(o.createElement)(V,null),O&&function(e){return e&&e.length>=4}(f)&&Object(o.createElement)(Y,null),Object(o.createElement)(N,{countryCode:u,setCountry:s,newRequest:a,keyphrase:r,setRequestFailed:b,setNoResultsFound:h,setRequestSucceeded:y,setRequestLimitReached:g,response:t,lastRequestKeyphrase:n})),function(e){var t=e.isPending,n=e.requestLimitReached,r=e.isSuccess,a=e.response,s=e.requestHasData;return t?Object(o.createElement)(p,null):n?Object(o.createElement)(m,null):!r&&function(e){return!Object(l.isEmpty)(e)&&"error"in e}(a)?Object(o.createElement)(U,null):s?void 0:Object(o.createElement)("p",null,Object(i.__)("Sorry, there's no data available for that keyphrase/country combination.","wordpress-seo"))}(e),Object(o.createElement)(B,{keyphrase:r,relatedKeyphrases:f,countryCode:u,renderAction:c,data:t}))}G.propTypes={keyphrase:c.a.string,relatedKeyphrases:c.a.array,renderAction:c.a.func,requestLimitReached:c.a.bool,countryCode:c.a.string.isRequired,setCountry:c.a.func.isRequired,newRequest:c.a.func.isRequired,setRequestSucceeded:c.a.func.isRequired,setRequestLimitReached:c.a.func.isRequired,setRequestFailed:c.a.func.isRequired,setNoResultsFound:c.a.func.isRequired,response:c.a.object,lastRequestKeyphrase:c.a.string},G.defaultProps={keyphrase:"",relatedKeyphrases:[],renderAction:null,requestLimitReached:!1,response:{},lastRequestKeyphrase:""},t.a=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getFocusKeyphrase,r=t.getSEMrushSelectedCountry,a=t.getSEMrushRequestLimitReached,o=t.getSEMrushRequestResponse,i=t.getSEMrushRequestIsSuccess,s=t.getSEMrushIsRequestPending,c=t.getSEMrushRequestHasData,l=t.getSEMrushRequestKeyphrase;return{keyphrase:n(),countryCode:r(),requestLimitReached:a(),response:o(),isSuccess:i(),isPending:s(),requestHasData:c(),lastRequestKeyphrase:l()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setSEMrushChangeCountry,r=t.setSEMrushNewRequest,a=t.setSEMrushRequestSucceeded,o=t.setSEMrushRequestFailed,i=t.setSEMrushSetRequestLimitReached,s=t.setSEMrushNoResultsFound;return{setCountry:function(e){n(e)},newRequest:function(e,t){r(e,t)},setRequestSucceeded:function(e){a(e)},setRequestFailed:function(e){o(e)},setRequestLimitReached:function(){i()},setNoResultsFound:function(){s()}}}))])(G)},,function(e,t){e.exports=window.wp.blocks},,,function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(54),i=n(44);t.a=Object(r.compose)([Object(a.withSelect)((function(e){return{isCornerstone:(0,e("yoast-seo/editor").isCornerstoneContent)(),learnMoreUrl:wpseoAdminL10n["shortlinks.cornerstone_content_info"]}})),Object(a.withDispatch)((function(e){return{onChange:e("yoast-seo/editor").toggleCornerstoneContent}})),Object(i.a)()])(o.CollapsibleCornerstone)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3);function a(e){return void 0===e.length?e:Object(r.flatten)(e).sort((function(e,t){return void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority}))}},,,function(e,t,n){"use strict";var r,a=n(14),o=n.n(a),i=n(0),s=n(20),c=n(6),l=n(2),u=n(1),p=n.n(u),d=n(24),b=n.n(d),m=n(15),h=n.n(m),f=n(4),y=n(21),g=n(8),O=n(31),v=n.n(O),j=n(13),w=n.n(j),k=n(76),E=n(74),T=w.a.div(r||(r=h()(["\n\tpadding: 16px;\n"]))),_=function(e,t,n){var r=e.find((function(e){return e.value===t}));return[{name:Object(l.sprintf)(
50
  /* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */
51
  Object(l.__)("Default for %1$s (%2$s)","wordpress-seo"),n,r?r.name:""),value:""}].concat(b()(e))},R=function(e){return Object(l.sprintf)(
52
  /* translators: %1$s expands to the plural name of the current post type, %2$s and %3$s expand to a link to the Search Appearance Settings page */
53
+ Object(l.__)("You can change the default type for %1$s in your %2$sSearch Appearance Settings%3$s.","wordpress-seo"),e,"{{link}}","{{/link}}")},S=function(e){return Object(i.createElement)(f.FieldGroup,{label:e.helpTextTitle,linkTo:e.helpTextLink,linkText:Object(l.__)("Learn more about structured data with Schema.org","wordpress-seo"),description:e.helpTextDescription})};S.propTypes={helpTextTitle:p.a.string.isRequired,helpTextLink:p.a.string.isRequired,helpTextDescription:p.a.string.isRequired};var P=function(e){return Object(i.createElement)("p",null,e.helpTextDescription+" ",Object(i.createElement)("a",{href:e.helpTextLink},Object(l.__)("Read more about Schema.","wordpress-seo")))};P.propTypes={helpTextDescription:p.a.string.isRequired,helpTextLink:p.a.string.isRequired};var x=function(e){var t,n=_(e.pageTypeOptions,e.defaultPageType,e.postTypeName),r=_(e.articleTypeOptions,e.defaultArticleType,e.postTypeName),a=Object(E.isFeatureEnabled)("SCHEMA_BLOCKS");return Object(i.createElement)(i.Fragment,null,a?Object(i.createElement)(P,e):Object(i.createElement)(S,e),a&&Object(i.createElement)(y.Slot,{name:Object(g.join)(["yoast-schema-blocks-analysis",e.location])}),Object(i.createElement)(f.FieldGroup,{label:Object(l.__)("What type of page or content is this?","wordpress-seo"),linkTo:e.additionalHelpTextLink,linkText:Object(l.__)("Learn more about page or content types","wordpress-seo")}),Object(i.createElement)(f.Select,{id:Object(g.join)(["yoast-schema-page-type",e.location]),options:n,label:Object(l.__)("Page type","wordpress-seo"),onChange:e.schemaPageTypeChange,selected:e.schemaPageTypeSelected}),e.showArticleTypeInput&&Object(i.createElement)(f.Select,{id:Object(g.join)(["yoast-schema-article-type",e.location]),options:r,label:Object(l.__)("Article type","wordpress-seo"),onChange:e.schemaArticleTypeChange,selected:e.schemaArticleTypeSelected}),e.displayFooter&&Object(i.createElement)("p",null,(t=e.postTypeName,v()({mixedString:R(t),components:{link:Object(i.createElement)("a",{href:"/wp-admin/admin.php?page=wpseo_titles#top#post-types",target:"_blank"})}}))))};x.propTypes={schemaPageTypeChange:p.a.func,schemaPageTypeSelected:p.a.string,pageTypeOptions:k.b.isRequired,schemaArticleTypeChange:p.a.func,schemaArticleTypeSelected:p.a.string,articleTypeOptions:k.b.isRequired,showArticleTypeInput:p.a.bool.isRequired,additionalHelpTextLink:p.a.string.isRequired,helpTextLink:p.a.string.isRequired,helpTextTitle:p.a.string.isRequired,helpTextDescription:p.a.string.isRequired,postTypeName:p.a.string.isRequired,displayFooter:p.a.bool,defaultPageType:p.a.string.isRequired,defaultArticleType:p.a.string.isRequired,location:p.a.string.isRequired},x.defaultProps={schemaPageTypeChange:function(){},schemaPageTypeSelected:null,schemaArticleTypeChange:function(){},schemaArticleTypeSelected:null,displayFooter:!1};var C=function(e){return e.isMetabox?Object(i.createPortal)(Object(i.createElement)(T,null,Object(i.createElement)(x,e)),document.getElementById("wpseo-meta-section-schema")):Object(i.createElement)(x,e)};C.propTypes={showArticleTypeInput:p.a.bool,articleTypeLabel:p.a.string,additionalHelpTextLink:p.a.string,pageTypeLabel:p.a.string.isRequired,helpTextLink:p.a.string.isRequired,helpTextTitle:p.a.string.isRequired,helpTextDescription:p.a.string.isRequired,isMetabox:p.a.bool.isRequired,postTypeName:p.a.string.isRequired,displayFooter:p.a.bool,loadSchemaArticleData:p.a.func.isRequired,loadSchemaPageData:p.a.func.isRequired,location:p.a.string.isRequired},C.defaultProps={showArticleTypeInput:!1,articleTypeLabel:"",additionalHelpTextLink:"",displayFooter:!1};var A=C,I=n(77),L=n(44);function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var N=function(e){var t=null!==I.a.articleTypeInput;Object(i.useEffect)((function(){e.loadSchemaPageData(),t&&e.loadSchemaArticleData()}),[]);var n=window.wpseoScriptData.metabox.schema,r=n.pageTypeOptions,a=n.articleTypeOptions,o={articleTypeLabel:Object(l.__)("Article type","wordpress-seo"),pageTypeLabel:Object(l.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:Object(l.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:Object(l.__)("This helps search engines understand your website and your content. You can change some of your settings for this page below.","wordpress-seo"),showArticleTypeInput:t,pageTypeOptions:r,articleTypeOptions:a},s=F(F(F({},e),o),"metabox"===e.location?{helpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.page_type"],isMetabox:!0}:{helpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.page_type"],isMetabox:!1});return Object(i.createElement)(A,s)};N.propTypes={displayFooter:p.a.bool.isRequired,schemaPageTypeSelected:p.a.string.isRequired,schemaArticleTypeSelected:p.a.string.isRequired,defaultArticleType:p.a.string.isRequired,defaultPageType:p.a.string.isRequired,loadSchemaPageData:p.a.func.isRequired,loadSchemaArticleData:p.a.func.isRequired,schemaPageTypeChange:p.a.func.isRequired,schemaArticleTypeChange:p.a.func.isRequired,location:p.a.string.isRequired},t.a=Object(s.compose)([Object(c.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getPreferences,r=t.getPageType,a=t.getDefaultPageType,o=t.getArticleType,i=t.getDefaultArticleType;return{displayFooter:n().displaySchemaSettingsFooter,schemaPageTypeSelected:r(),schemaArticleTypeSelected:o(),defaultArticleType:i(),defaultPageType:a()}})),Object(c.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setPageType,r=t.setArticleType;return{loadSchemaPageData:t.getSchemaPageData,loadSchemaArticleData:t.getSchemaArticleData,schemaPageTypeChange:n,schemaArticleTypeChange:r}})),Object(L.a)()])(N)},function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(0),i=n(2),s=n(4),c=n(8),l=n(1),u=n.n(l),p=n(30),d=function(e){var t=e.noIndex,n=e.onNoIndexChange,r=e.editorContext,a=e.isPrivateBlog,l=function(e){var t=Object(i.__)("No","wordpress-seo"),n=Object(i.__)("Yes","wordpress-seo"),r=e.noIndex?t:n;return window.wpseoScriptData.isPost?[{name:Object(i.sprintf)(
54
  /* Translators: %s translates to "yes" or "no", %s translates to the Post Label in plural form */
55
  Object(i.__)("%s (current default for %s)","wordpress-seo"),r,e.postTypeNamePlural),value:"0"},{name:t,value:"1"},{name:n,value:"2"}]:[{name:Object(i.sprintf)(
56
  /* Translators: %s translates to the "yes" or "no" ,%s translates to the Post Label in plural form */
58
  /* Translators: %s translates to the Post Label in singular form */
59
  Object(i.__)("Allow search engines to show this %s in search results?","wordpress-seo"),r.postTypeNameSingular),onChange:n,id:Object(c.join)(["yoast-meta-robots-noindex",e]),options:l,selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.allow_search_engines"],linkText:Object(i.__)("Learn more about the no-index setting on our help page.","wordpress-seo")}))}))};d.propTypes={noIndex:u.a.string.isRequired,onNoIndexChange:u.a.func.isRequired,editorContext:u.a.object.isRequired,isPrivateBlog:u.a.bool},d.defaultProps={isPrivateBlog:!1};var b=function(e){var t=e.noFollow,n=e.onNoFollowChange,r=e.postTypeName;return Object(o.createElement)(p.LocationConsumer,null,(function(e){var a=Object(c.join)(["yoast-meta-robots-nofollow",e]);return Object(o.createElement)(s.RadioButtonGroup,{id:a,options:[{value:"0",label:"Yes"},{value:"1",label:"No"}],label:Object(i.sprintf)(
60
  /* Translators: %s translates to the Post Label in singular form */
61
+ Object(i.__)("Should search engines follow links on this %s","wordpress-seo"),r),groupName:a,onChange:n,selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.follow_links"],linkText:Object(i.__)("Learn more about the no-follow setting on our help page.","wordpress-seo")})}))};b.propTypes={noFollow:u.a.string.isRequired,onNoFollowChange:u.a.func.isRequired,postTypeName:u.a.string.isRequired};var m=function(e){var t=e.advanced,n=e.onAdvancedChange;return Object(o.createElement)(p.LocationConsumer,null,(function(e){var r=Object(c.join)(["yoast-meta-robots-advanced",e]),a="".concat(r,"-input");return Object(o.createElement)(s.MultiSelect,{label:Object(i.__)("Meta robots advanced","wordpress-seo"),onChange:n,id:r,inputId:a,options:[{name:Object(i.__)("No Image Index","wordpress-seo"),value:"noimageindex"},{name:Object(i.__)("No Archive","wordpress-seo"),value:"noarchive"},{name:Object(i.__)("No Snippet","wordpress-seo"),value:"nosnippet"}],selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.meta_robots"],linkText:Object(i.__)("Learn more about advanced meta robots settings on our help page.","wordpress-seo")})}))};m.propTypes={advanced:u.a.array.isRequired,onAdvancedChange:u.a.func.isRequired};var h=function(e){var t=e.breadcrumbsTitle,n=e.onBreadcrumbsTitleChange;return Object(o.createElement)(p.LocationConsumer,null,(function(e){return Object(o.createElement)(s.TextInput,{label:Object(i.__)("Breadcrumbs Title","wordpress-seo"),id:Object(c.join)(["yoast-breadcrumbs-title",e]),onChange:n,value:t,linkTo:wpseoAdminL10n["shortlinks.advanced.breadcrumbs_title"],linkText:Object(i.__)("Learn more about the breadcrumbs title setting on our help page.","wordpress-seo")})}))};h.propTypes={breadcrumbsTitle:u.a.string.isRequired,onBreadcrumbsTitleChange:u.a.func.isRequired};var f=function(e){var t=e.canonical,n=e.onCanonicalChange;return Object(o.createElement)(p.LocationConsumer,null,(function(e){return Object(o.createElement)(s.TextInput,{label:Object(i.__)("Canonical URL","wordpress-seo"),id:Object(c.join)(["yoast-canonical",e]),onChange:n,value:t,linkTo:"https://yoa.st/canonical-url",linkText:Object(i.__)("Learn more about canonical URLs on our help page.","wordpress-seo")})}))};f.propTypes={canonical:u.a.string.isRequired,onCanonicalChange:u.a.func.isRequired};var y=function(e){var t=e.noIndex,n=e.noFollow,r=e.advanced,a=e.breadcrumbsTitle,i=e.canonical,s=e.onNoIndexChange,c=e.onNoFollowChange,l=e.onAdvancedChange,u=e.onBreadcrumbsTitleChange,p=e.onCanonicalChange,y=e.onLoad,g=e.isLoading,O=e.editorContext,v=e.isBreadcrumbsDisabled,j=e.isPrivateBlog;Object(o.useEffect)((function(){setTimeout((function(){g&&y()}))}));var w={noIndex:t,onNoIndexChange:s,editorContext:O,isPrivateBlog:j},k={noFollow:n,onNoFollowChange:c,postTypeName:O.postTypeNameSingular},E={advanced:r,onAdvancedChange:l},T={breadcrumbsTitle:a,onBreadcrumbsTitleChange:u},_={canonical:i,onCanonicalChange:p};return g?null:Object(o.createElement)(o.Fragment,null,Object(o.createElement)(d,w),O.isPost&&Object(o.createElement)(b,k),O.isPost&&Object(o.createElement)(m,E),!v&&Object(o.createElement)(h,T),Object(o.createElement)(f,_))};y.propTypes={noIndex:u.a.string.isRequired,canonical:u.a.string.isRequired,onNoIndexChange:u.a.func.isRequired,onCanonicalChange:u.a.func.isRequired,onLoad:u.a.func.isRequired,isLoading:u.a.bool.isRequired,editorContext:u.a.object.isRequired,isBreadcrumbsDisabled:u.a.bool.isRequired,isPrivateBlog:u.a.bool,advanced:u.a.array,onAdvancedChange:u.a.func,noFollow:u.a.string,onNoFollowChange:u.a.func,breadcrumbsTitle:u.a.string,onBreadcrumbsTitleChange:u.a.func},y.defaultProps={advanced:[],onAdvancedChange:function(){},noFollow:"",onNoFollowChange:function(){},breadcrumbsTitle:"",onBreadcrumbsTitleChange:function(){},isPrivateBlog:!1};var g=y;t.a=Object(r.compose)([Object(a.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getNoIndex,r=t.getNoFollow,a=t.getAdvanced,o=t.getBreadcrumbsTitle,i=t.getCanonical,s=t.getIsLoading,c=t.getEditorContext,l=(0,t.getPreferences)(),u=l.isBreadcrumbsDisabled,p=l.isPrivateBlog;return{noIndex:n(),noFollow:r(),advanced:a(),breadcrumbsTitle:o(),canonical:i(),isLoading:s(),editorContext:c(),isBreadcrumbsDisabled:u,isPrivateBlog:p}})),Object(a.withDispatch)((function(e){var t=e("yoast-seo/editor");return{onNoIndexChange:t.setNoIndex,onNoFollowChange:t.setNoFollow,onAdvancedChange:t.setAdvanced,onBreadcrumbsTitleChange:t.setBreadcrumbsTitle,onCanonicalChange:t.setCanonical,onLoad:t.loadAdvancedSettingsData}}))])(g)},,,,,function(e,t){e.exports=window.yoast.searchMetadataPreviews},function(e,t,n){"use strict";var r=n(0),a=n(21),o=n(1),i=n.n(o),s=n(88),c=function(e){return Object(r.useEffect)((function(){setTimeout(e.onLoad)}),[]),e.isPremium?Object(r.createElement)(a.Slot,{name:"YoastTwitterPremium".concat(e.location.charAt(0).toUpperCase()+e.location.slice(1)),fillProps:e}):Object(r.createElement)(s.a,e)};c.propTypes={isPremium:i.a.bool.isRequired,onLoad:i.a.func.isRequired,location:i.a.string.isRequired},t.a=c},function(e,t){e.exports=window.yoast.socialMetadataForms},function(e,t,n){"use strict";var r=n(14),a=n.n(r),o=n(29),i=n.n(o),s=n(0),c=n(21),l=n(1),u=n.n(l),p=n(88);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var m=function(e){var t=Object(s.useState)(""),n=i()(t,2),r=n[0],a=n[1],o=Object(s.useCallback)((function(e){a(e.detail.metaTabId)}),[a]);Object(s.useEffect)((function(){return setTimeout(e.onLoad),window.addEventListener("YoastSEO:metaTabChange",o),function(){window.removeEventListener("YoastSEO:metaTabChange",o)}}),[]);var l=Object(s.useMemo)((function(){return b(b({},e),{},{activeMetaTabId:r})}),[e,r]);return e.isPremium?Object(s.createElement)(c.Slot,{name:"YoastFacebookPremium".concat(e.location.charAt(0).toUpperCase()+e.location.slice(1)),fillProps:l}):Object(s.createElement)(p.a,l)};m.propTypes={isPremium:u.a.bool.isRequired,onLoad:u.a.func.isRequired,location:u.a.string.isRequired},t.a=m},,,,,,,,function(e,t,n){"use strict";var r=n(6),a=n(4);t.a=Object(r.withSelect)((function(e){return{message:(0,e("yoast-seo/editor").getWarningMessage)()}}))(a.Warning)},function(e,t,n){"use strict";var r=n(14),a=n.n(r),o=n(26),i=n.n(o),s=n(0),c=n(20),l=n(6),u=n(2),p=n(123),d=n(30),b=n(105),m=n(56),h=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)),Object(m.applyReplaceUsingPlugin)(e)};t.a=Object(c.compose)([Object(l.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getBaseUrlFromSettings,r=t.getDateFromSettings,a=t.getFocusKeyphrase,o=t.getRecommendedReplaceVars,i=t.getReplaceVars,s=t.getShoppingData,c=t.getSiteIconUrlFromSettings,l=t.getSnippetEditorData,u=t.getSnippetEditorMode,p=t.getSnippetEditorPreviewImageUrl,d=t.getSnippetEditorWordsToHighlight,b=t.isCornerstoneContent,m=t.getIsTerm,h=t.getContentLocale,f=i();return f.forEach((function(e){""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(e.value="%%"+e.name+"%%")})),{baseUrl:n(),data:l(),date:r(),faviconSrc:c(),keyword:a(),mobileImageSrc:p(),mode:u(),recommendedReplacementVariables:o(),replacementVariables:f,shoppingData:s(),wordsToHighlight:d(),isCornerstone:b(),isTaxonomy:m(),locale:h()}})),Object(l.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.updateData,r=t.switchMode,o=t.updateAnalysisData,i=e("core/editor");return{onChange:function(e,t){switch(e){case"mode":r(t);break;case"slug":n({slug:t}),i&&i.editPost({slug:t});break;default:n(a()({},e,t))}},onChangeAnalysisData:o}}))])((function(e){return Object(s.createElement)(d.LocationConsumer,null,(function(t){return Object(s.createElement)(b.a,{icon:"eye",hasPaperStyle:e.hasPaperStyle},Object(s.createElement)(p.SnippetEditor,i()({},e,{descriptionPlaceholder:Object(u.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:h,showCloseButton:!1,idSuffix:t})))}))}))},function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(8),i=n(124),s=n(23),c=n(44),l=n(58),u=function(e){Object(a.dispatch)("yoast-seo/editor").setTwitterPreviewImage({url:e.url,id:e.id,warnings:Object(o.validateTwitterImage)(e)})},p=function(){Object(l.a)(u)};t.a=Object(r.compose)([Object(a.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getTwitterDescription,r=t.getTwitterTitle,a=t.getTwitterImageUrl,o=t.getFacebookImageUrl,i=t.getFacebookTitle,c=t.getFacebookDescription,l=t.getDescription,u=t.getSeoTitle,p=t.getTwitterWarnings,d=t.getTwitterImageType,b=t.getImageFallback,m=t.getRecommendedReplaceVars,h=t.getReplaceVars,f=t.getSiteUrl,y=t.getSeoTitleTemplate,g=t.getSeoTitleTemplateNoFallback,O=t.getSocialTitleTemplate,v=t.getSeoDescriptionTemplate,j=t.getSocialDescriptionTemplate,w=t.getReplacedExcerpt;return{imageUrl:a(),imageFallbackUrl:o()||b(),recommendedReplacementVariables:m(),replacementVariables:h(),description:n(),descriptionPreviewFallback:j()||c()||l()||v()||w()||"",title:r(),titlePreviewFallback:O()||i()||u()||g()||y()||"",imageWarnings:p(),siteUrl:f(),isPremium:!!Object(s.a)().isPremium,isLarge:"summary"!==d(),titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Twitter"}})),Object(a.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setTwitterPreviewTitle,r=t.setTwitterPreviewDescription,a=t.clearTwitterPreviewImage,o=t.loadTwitterPreviewData;return{onSelectImageClick:p,onRemoveImageClick:a,onDescriptionChange:r,onTitleChange:n,onLoad:o}})),Object(c.a)()])(i.a)},function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(8),i=n(126),s=n(23),c=n(44),l=n(58),u=function(e){Object(a.dispatch)("yoast-seo/editor").setFacebookPreviewImage({url:e.url,id:e.id,warnings:Object(o.validateFacebookImage)(e)})},p=function(){Object(l.a)(u)};t.a=Object(r.compose)([Object(a.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getFacebookDescription,r=t.getDescription,a=t.getFacebookTitle,o=t.getSeoTitle,i=t.getFacebookImageUrl,c=t.getImageFallback,l=t.getFacebookWarnings,u=t.getRecommendedReplaceVars,p=t.getReplaceVars,d=t.getSiteUrl,b=t.getSeoTitleTemplate,m=t.getSeoTitleTemplateNoFallback,h=t.getSocialTitleTemplate,f=t.getSeoDescriptionTemplate,y=t.getSocialDescriptionTemplate,g=t.getReplacedExcerpt;return{imageUrl:i(),imageFallbackUrl:c(),recommendedReplacementVariables:u(),replacementVariables:p(),description:n(),descriptionPreviewFallback:y()||r()||f()||g()||"",title:a(),titlePreviewFallback:h()||o()||m()||b()||"",imageWarnings:l(),siteUrl:d(),isPremium:!!Object(s.a)().isPremium,titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Facebook"}})),Object(a.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setFacebookPreviewTitle,r=t.setFacebookPreviewDescription,a=t.clearFacebookPreviewImage,o=t.loadFacebookPreviewData;return{onSelectImageClick:p,onRemoveImageClick:a,onDescriptionChange:r,onTitleChange:n,onLoad:o}})),Object(c.a)()])(i.a)},,function(e,t,n){"use strict";var r=n(6),a=n(20),o=n(0),i=n(2),s=n(1),c=n.n(s),l=n(25),u=n(96),p=n(50),d=n(104),b=n(80),m=n(81),h=n(94);function f(e){var t=e.keyphrases,n=e.onNoKeyphraseSet,r=e.onOpen,a=e.location;if(!t.length)return document.querySelector("#focus-keyword-input-sidebar").focus(),void n();r(a)}function y(e,t){Object(b.b)(t)&&e.onClose()}function g(e){var t=e.location,n=e.whichModalOpen,r=Object(o.useCallback)((function(){f(e)}),[f,e]),a=Object(o.useCallback)((function(t){y(e,t)}),[y,e]),s=Object(i.__)("Track SEO performance","wordpress-seo");return Object(o.createElement)(o.Fragment,null,n===t&&Object(o.createElement)(p.a,{title:s,onRequestClose:a,icon:Object(o.createElement)(d.a,null),additionalClassName:"yoast-wincher-seo-performance-modal"},Object(o.createElement)(u.a,{className:"yoast-gutenberg-modal__content yoast-wincher-seo-performance-modal__content"},Object(o.createElement)(h.a,null))),"sidebar"===t&&Object(o.createElement)(m.a,{id:"wincher-open-button-".concat(t),title:s,suffixIcon:{size:"20px",icon:"pencil-square"},prefixIcon:{icon:"chart-square-bar",color:l.colors.$color_grey_medium_dark},onClick:r}))}g.propTypes={location:c.a.string,whichModalOpen:c.a.oneOf(["none","metabox","sidebar","postpublish"])},g.defaultProps={location:"",whichModalOpen:"none"},t.a=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getWincherModalOpen;return{keyphrases:(0,t.getWincherTrackableKeyphrases)(),whichModalOpen:n()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setWincherOpenModal,r=t.setWincherDismissModal,a=t.setWincherNoKeyphrase;return{onOpen:function(e){n(e)},onClose:function(){r()},onNoKeyphraseSet:function(){a()}}}))])(g)},,,,,function(e,t){e.exports=window.wp.editPost},function(e,t,n){"use strict";var r,a,o,i,s=n(34),c=n.n(s),l=n(24),u=n.n(l),p=n(29),d=n.n(p),b=n(0),m=/<(\/)?(\w+)\s*(\/)?>/g;function h(e,t,n,r,a){return{element:e,tokenStart:t,tokenLength:n,prevOffset:r,leadingTextStart:a,children:[]}}function f(){var e=r.length-a;0!==e&&o.push(r.substr(a,e))}function y(e){var t=e.element,n=e.tokenStart,a=e.tokenLength,o=e.prevOffset,s=e.children,c=i[i.length-1],l=r.substr(c.prevOffset,n-c.prevOffset);l&&c.children.push(l),c.children.push(b.cloneElement.apply(void 0,[t,null].concat(u()(s)))),c.prevOffset=o||n+a}function g(e){var t=function(){var e=m.exec(r);if(null===e)return["no-more-tokens"];var t=e.index,n=d()(e,4),a=n[0],o=n[1],i=n[2],s=n[3],c=a.length;return s?["self-closed",i,t,c]:o?["closer",i,t,c]:["opener",i,t,c]}(),n=d()(t,4),s=n[0],c=n[1],l=n[2],p=n[3],g=i.length,O=l>a?a:null;if(!e[c])return f(),!1;switch(s){case"no-more-tokens":if(0!==g){var v=i.pop(),j=v.leadingTextStart,w=v.tokenStart;o.push(r.substr(j,w))}return f(),!1;case"self-closed":return 0===g?(null!==O&&o.push(r.substr(O,l-O)),o.push(e[c]),a=l+p,!0):(y(h(e[c],l,p)),a=l+p,!0);case"opener":return i.push(h(e[c],l,p,l+p,O)),a=l+p,!0;case"closer":if(1===g)return function(e){var t=i.pop(),n=t.element,a=t.leadingTextStart,s=t.prevOffset,c=t.tokenStart,l=t.children,p=e?r.substr(s,e-s):r.substr(s);p&&l.push(p),null!==a&&o.push(r.substr(a,c-a)),o.push(b.cloneElement.apply(void 0,[n,null].concat(u()(l))))}(l),a=l+p,!0;var k=i.pop(),E=r.substr(k.prevOffset,l-k.prevOffset);k.children.push(E),k.prevOffset=l+p;var T=h(k.element,k.tokenStart,k.tokenLength,l+p);return T.children=k.children,y(T),a=l+p,!0;default:return f(),!1}}t.a=function(e,t){if(r=e,a=0,o=[],i=[],m.lastIndex=0,!function(e){var t="object"===c()(e),n=t&&Object.values(e);return t&&n.length&&n.every((function(e){return Object(b.isValidElement)(e)}))}(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(g(t));return b.createElement.apply(void 0,[b.Fragment,null].concat(u()(o)))}},,function(e,t){e.exports=window.wp.annotations},,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return I}));var r=n(0),a=n(1),o=n.n(a),i=n(21),s=n(114),c=n(69);function l(e){var t=e.theme;return Object(r.createElement)(c.a,{theme:t,location:"metabox"},Object(r.createElement)(i.Slot,{name:"YoastMetabox"},(function(e){return Object(s.a)(e)})))}var u=n(6),p=n(20),d=n(2),b=n(113),m=n(135),h=n(134),f=n(54),y=n(53),g=n(33),O=n(118),v=n(137),j=n(136),w=function(e){var t=e.displayFacebook,n=e.displayTwitter;return Object(r.createElement)(r.Fragment,null,t&&Object(r.createElement)(y.a,{hasSeparator:!1
62
  /* Translators: %s expands to Facebook. */,title:Object(d.sprintf)(Object(d.__)("%s preview","wordpress-seo"),"Facebook"),initialIsOpen:!0},Object(r.createElement)(v.a,null)),n&&Object(r.createElement)(y.a
63
+ /* Translators: %s expands to Twitter. */,{title:Object(d.sprintf)(Object(d.__)("%s preview","wordpress-seo"),"Twitter"),hasSeparator:t,initialIsOpen:!0},Object(r.createElement)(j.a,null)))};w.propTypes={displayFacebook:o.a.bool.isRequired,displayTwitter:o.a.bool.isRequired};var k=w,E=Object(u.withSelect)((function(e){var t=(0,e("yoast-seo/editor").getPreferences)();return{displayFacebook:t.displayFacebook,displayTwitter:t.displayTwitter}}))(k),T=n(42);function _(e){var t=e.target;return Object(r.createElement)(T.a,{target:t},Object(r.createElement)(E,null))}_.propTypes={target:o.a.string.isRequired};var R=n(117),S=n(108),P=n(94),x=n(25);function C(e){var t=e.settings,n=e.wincherKeyphrases,a=e.setWincherNoKeyphrase,o=Object(r.useCallback)((function(){if(!n.length)return a(!0),document.querySelector("#focus-keyword-input-metabox").focus(),!1}),[n,a]);return Object(r.createElement)(i.Fill,{name:"YoastMetabox"},Object(r.createElement)(g.a,{key:"warning",renderPriority:1},Object(r.createElement)(h.a,null)),t.isKeywordAnalysisActive&&Object(r.createElement)(g.a,{key:"keyword-input",renderPriority:8},Object(r.createElement)(f.KeywordInput,{isSEMrushIntegrationActive:t.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&Object(r.createElement)(i.Fill,{name:"YoastRelatedKeyphrases"},Object(r.createElement)(S.a,null))),Object(r.createElement)(g.a,{key:"google-preview",renderPriority:9},Object(r.createElement)(y.a,{id:"yoast-snippet-editor-metabox",title:Object(d.__)("Google preview","wordpress-seo"),initialIsOpen:!0},Object(r.createElement)(m.a,{hasPaperStyle:!1}))),t.isContentAnalysisActive&&Object(r.createElement)(g.a,{key:"readability-analysis",renderPriority:10},Object(r.createElement)(f.ReadabilityAnalysis,null)),t.isKeywordAnalysisActive&&Object(r.createElement)(g.a,{key:"seo-analysis",renderPriority:20},Object(r.createElement)(f.SeoAnalysis,{shouldUpsell:t.shouldUpsell,shouldUpsellWordFormRecognition:t.isWordFormRecognitionActive})),t.isKeywordAnalysisActive&&t.isWincherIntegrationActive&&Object(r.createElement)(g.a,{key:"wincher-seo-performance",renderPriority:25},Object(r.createElement)(y.a,{id:"yoast-wincher-seo-performance-metabox",title:Object(d.__)("Track SEO performance","wordpress-seo"),initialIsOpen:!1,prefixIcon:{icon:"chart-square-bar",color:x.colors.$color_grey_medium_dark},prefixIconCollapsed:{icon:"chart-square-bar",color:x.colors.$color_grey_medium_dark},onToggle:o},Object(r.createElement)(P.a,null))),t.isCornerstoneActive&&Object(r.createElement)(g.a,{key:"cornerstone",renderPriority:30},Object(r.createElement)(b.a,null)),t.displayAdvancedTab&&Object(r.createElement)(g.a,{key:"advanced",renderPriority:40},Object(r.createElement)(y.a,{id:"collapsible-advanced-settings",title:Object(d.__)("Advanced","wordpress-seo")},Object(r.createElement)(O.a,null))),t.displaySchemaSettings&&Object(r.createElement)(g.a,{key:"schema",renderPriority:50},Object(r.createElement)(R.a,null)),Object(r.createElement)(g.a,{key:"social",renderPriority:-1},Object(r.createElement)(_,{target:"wpseo-section-social"})))}C.propTypes={settings:o.a.object.isRequired,wincherKeyphrases:o.a.array.isRequired,setWincherNoKeyphrase:o.a.func.isRequired};var A=Object(p.compose)([Object(u.withSelect)((function(e,t){var n=e("yoast-seo/editor"),r=n.getPreferences,a=n.getWincherTrackableKeyphrases;return{settings:r(),store:t.store,wincherKeyphrases:a()}})),Object(u.withDispatch)((function(e){return{setWincherNoKeyphrase:e("yoast-seo/editor").setWincherNoKeyphrase}}))])(C);function I(e){var t=e.target,n=e.store,a=e.theme;return Object(r.createElement)(T.a,{target:t},Object(r.createElement)(l,{store:n,theme:a}),Object(r.createElement)(A,{store:n,theme:a}))}I.propTypes={target:o.a.string.isRequired,store:o.a.object,theme:o.a.object}},,,,,,,,,,,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,,,,,,function(e,t){e.exports=window.wp.plugins},function(e,t){e.exports=window.wp.htmlEntities},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return k}));var r=n(14),a=n.n(r),o=n(9),i=n.n(o),s=n(10),c=n.n(s),l=n(6),u=n(17),p=n(3),d=n(27),b=n(101),m=n(56),h=n(51);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g=u.actions.updateReplacementVariable,O=u.actions.updateData,v=u.actions.hideReplacementVariables,j=u.actions.setContentImage,w=e.jQuery,k=function(){function e(t,n){i()(this,e),this._refresh=t,this._store=n,this._data={},this.getPostAttribute=this.getPostAttribute.bind(this),this.refreshYoastSEO=this.refreshYoastSEO.bind(this)}return c()(e,[{key:"initialize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this._data=this.getInitialData(e),Object(m.fillReplacementVariables)(this._data,this._store),this._store.dispatch(v(t)),this.subscribeToGutenberg(),this.subscribeToYoastSEO()}},{key:"getInitialData",value:function(e){var t=this.collectGutenbergData(this.getPostAttribute);return e=Object(m.mapCustomFields)(e,this._store),y(y({},e=Object(m.mapCustomTaxonomies)(e,this._store)),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=Object(l.select)("core")),this._coreDataSelect.getMedia(e)}},{key:"getPostAttribute",value:function(e){return this._coreEditorSelect||(this._coreEditorSelect=Object(l.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(){var e=this.getPostAttribute("content"),t=this.calculateContentImage(e),n=this.getPostAttribute("excerpt")||"",r="ja"===Object(h.a)()?80:156;return{content:e,title:this.getPostAttribute("title")||"",slug:this.getSlug(),excerpt:n||Object(m.excerptFromContent)(e,r),excerpt_only:n,snippetPreviewImageURL:this.getFeaturedImage()||t,contentImage:t}}},{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:"calculateContentImage",value:function(e){var t=d.languageProcessing.imageInText(e),n="";if(0===t.length)return"";do{var r=t.shift(),a=(r=w(r)).prop("src");a&&(n=a)}while(""===n&&t.length>0);return n}},{key:"handleEditorChange",value:function(e){this._data.title!==e.title&&this._store.dispatch(g("title",e.title)),this._data.excerpt!==e.excerpt&&(this._store.dispatch(g("excerpt",e.excerpt)),this._store.dispatch(g("excerpt_only",e.excerpt_only))),this._data.slug!==e.slug&&this._store.dispatch(O({slug:e.slug})),this._data.snippetPreviewImageURL!==e.snippetPreviewImageURL&&this._store.dispatch(O({snippetPreviewImageURL:e.snippetPreviewImageURL})),this._data.contentImage!==e.contentImage&&this._store.dispatch(j(e.contentImage))}},{key:"reapplyMarkers",value:function(){var e=Object(l.select)("yoast-seo/editor"),t=e.getActiveMarker,n=e.getMarkerPauseStatus,r=t(),a=n();r&&!a&&Object(b.c)()}},{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=Object(l.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=Object(p.debounce)(this.refreshYoastSEO,500),Object(l.subscribe)(this.subscriber)}},{key:"subscribeToYoastSEO",value:function(){var e=this;this.yoastSubscriber=function(){e.areNewAnalysisResultsAvailable()&&e.onNewAnalysisResultsAvailable()},Object(l.subscribe)(this.yoastSubscriber)}},{key:"getData",value:function(){return this._data}}]),e}()}).call(this,n(170))},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r,a=n(38),o=n.n(a),i=n(0),s=n(144),c=n(177),l=n(110),u=n(6),p=n(2),d=n(55),b=n(3),m=n(21),h=n(17),f=n(20),y=n(25),g=n(45),O=n(26),v=n.n(O),j=n(15),w=n.n(j),k=n(1),E=n.n(k),T=n(13),_=n.n(T).a.svg(r||(r=w()(["\n\twidth: ","px;\n\theight: ","px;\n\t&&& path {\n\t\tfill: ",";\n\t}\n\t&&& circle.yoast-icon-readability-score {\n\t\tfill: ",";\n\t\tdisplay: ",";\n\t}\n\t\n\t&&& circle.yoast-icon-seo-score {\n\t\tfill: ",";\n\t\tdisplay: ",";\n\t}\n"])),(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"})),R=function(e){return Object(i.createElement)(_,v()({},e,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 646.66 456.27"}),Object(i.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"}),Object(i.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"}),Object(i.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"}),Object(i.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"}))};R.propTypes={readabilityScoreColor:E.a.string,isContentAnalysisActive:E.a.bool,seoScoreColor:E.a.string,isKeywordAnalysisActive:E.a.bool,size:E.a.number,color:E.a.string},R.defaultProps={readabilityScoreColor:"#000000",isContentAnalysisActive:!1,seoScoreColor:"#000000",isKeywordAnalysisActive:!1,size:20,color:"#000001"};var S=R,P=Object(f.compose)([Object(u.withSelect)((function(e){var t,n,r=e("yoast-seo/editor"),a=Object(g.a)(r.getResultsForFocusKeyword().overallScore),o=Object(g.a)(r.getReadabilityResults().overallScore),i=r.getPreferences(),s=i.isKeywordAnalysisActive,c=i.isContentAnalysisActive;switch(o.className){case"good":t=y.colors.$color_good;break;case"ok":t=y.colors.$color_ok;break;case"bad":default:t=y.colors.$color_bad}switch(a.className){case"good":n=y.colors.$color_good;break;case"ok":n=y.colors.$color_ok;break;case"bad":default:n=y.colors.$color_bad}return{readabilityScoreColor:t,seoScoreColor:n,isKeywordAnalysisActive:s,isContentAnalysisActive:c}}))])(S),x=n(113),C=n(134),A=n(54),I=n(33),L=n(75),q=n(135),F=function(){return Object(i.createElement)(L.a,{title:Object(p.__)("Google preview","wordpress-seo"),id:"yoast-google-preview-modal"},Object(i.createElement)(q.a,{showCloseButton:!1,hasPaperStyle:!1}))},N=n(136),D=function(){return Object(i.createElement)(L.a,{title:Object(p.__)("Twitter preview","wordpress-seo"),id:"yoast-twitter-preview-modal"},Object(i.createElement)(N.a,null))},M=n(137),K=function(){return Object(i.createElement)(L.a,{title:Object(p.__)("Facebook preview","wordpress-seo"),id:"yoast-facebook-preview-modal"},Object(i.createElement)(M.a,null))},W=n(117),B=n(71),H=n(118),V=n(139);function U(e){var t=e.settings;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(m.Fill,{name:"YoastSidebar"},Object(i.createElement)(I.a,{key:"warning",renderPriority:1},Object(i.createElement)(C.a,null)),t.isKeywordAnalysisActive&&Object(i.createElement)(I.a,{key:"keyword-input",renderPriority:8},Object(i.createElement)(A.KeywordInput,{isSEMrushIntegrationActive:t.isSEMrushIntegrationActive})),Object(i.createElement)(I.a,{key:"google-preview",renderPriority:23},Object(i.createElement)(F,null)),t.displayFacebook&&Object(i.createElement)(I.a,{key:"facebook-preview",renderPriority:24},Object(i.createElement)(K,null)),t.displayTwitter&&Object(i.createElement)(I.a,{key:"twitter-preview",renderPriority:25},Object(i.createElement)(D,null)),t.displaySchemaSettings&&Object(i.createElement)(I.a,{key:"schema",renderPriority:26},Object(i.createElement)(B.a,{title:Object(p.__)("Schema","wordpress-seo")},Object(i.createElement)(W.a,null))),t.displayAdvancedTab&&Object(i.createElement)(I.a,{key:"advanced",renderPriority:27},Object(i.createElement)(B.a,{title:Object(p.__)("Advanced","wordpress-seo")},Object(i.createElement)(H.a,null))),t.isContentAnalysisActive&&Object(i.createElement)(I.a,{key:"readability",renderPriority:10},Object(i.createElement)(A.ReadabilityAnalysis,null)),t.isKeywordAnalysisActive&&Object(i.createElement)(I.a,{key:"seo",renderPriority:20},Object(i.createElement)(A.SeoAnalysis,{shouldUpsell:t.shouldUpsell,shouldUpsellWordFormRecognition:t.isWordFormRecognitionActive})),t.isCornerstoneActive&&Object(i.createElement)(I.a,{key:"cornerstone",renderPriority:30},Object(i.createElement)(x.a,null)),t.isKeywordAnalysisActive&&t.isWincherIntegrationActive&&Object(i.createElement)(I.a,{renderPriority:22},Object(i.createElement)(V.a,{location:"sidebar"}))))}U.propTypes={settings:E.a.object.isRequired};var Y=Object(u.withSelect)((function(e,t){return{settings:(0,e("yoast-seo/editor").getPreferences)(),store:t.store}}))(U),z=n(158),G=n(101),$=n(114),Z=n(69);function J(e){var t=e.theme;return Object(i.createElement)(Z.a,{theme:t,location:"sidebar"},Object(i.createElement)(m.Slot,{name:"YoastSidebar"},(function(e){return Object($.a)(e)})))}var Q=n(9),X=n.n(Q),ee=n(10),te=n.n(ee),ne=n(12),re=n.n(ne),ae=n(18),oe=n.n(ae),ie=n(19),se=n.n(ie),ce=n(11),le=n.n(ce),ue=n(39),pe=n(178),de=n(14),be=n.n(de),me=n(29),he=n.n(me),fe=n(52),ye=n(145);function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){be()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ve=Object(m.withSpokenMessages)((function(e){var t=e.isActive,n=e.activeAttributes,r=e.addingLink,a=e.value,o=e.onChange,s=e.speak,c=e.stopAddingLink,l=Object(i.useMemo)(b.uniqueId,[r]),u=Object(i.useState)(),h=he()(u,2),f=h[0],y=h[1],g=Object(i.useMemo)((function(){var e=window.getSelection();if(e.rangeCount){var n=e.getRangeAt(0);if(r&&!t)return n;var a=n.startContainer;for(a=a.nextElementSibling||a;a.nodeType!==window.Node.ELEMENT_NODE;)a=a.parentNode;return a.closest("a")}}),[r,a.start,a.end]),O=Oe({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")},f),v=Object(i.createElement)(fe.a,{href:window.wpseoAdminL10n["shortlinks.nofollow_sponsored"],className:"dashicons"},Object(i.createElement)("span",{className:"screen-reader-text"},Object(p.__)("Learn more about marking a link as nofollow or sponsored.","wordpress-seo"))),j=Object(ye.a)(Object(p.sprintf)(Object(p.__)("Search engines should ignore this link (mark as %1$snofollow%2$s)%3$s","wordpress-seo"),"<code>","</code>","<helplink />"),{code:Object(i.createElement)("code",null),helplink:v}),w=Object(ye.a)(Object(p.sprintf)(Object(p.__)("This is a sponsored link or advert (mark as %1$ssponsored%2$s)%3$s","wordpress-seo"),"<code>","</code>","<helplink />"),{code:Object(i.createElement)("code",null),helplink:v}),k=[{id:"opensInNewTab",title:Object(p.__)("Open in new tab","wordpress-seo")},{id:"noFollow",title:j},{id:"sponsored",title:w}],E=window.wp.blockEditor.__experimentalLinkControl;return Object(i.createElement)(m.Popover,{key:l,anchorRef:g,focusOnMount:!!r&&"firstElement",onClose:c,position:"bottom center"},Object(i.createElement)(E,{value:O,onChange:function(e){e=Oe(Oe({},f),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 r=n&&void 0===e.url;if(y(r?e:void 0),!r){var i=Object(ue.prependHTTP)(e.url),l=function(e){var t=e.noFollow,n=e.sponsored,r={type:"core/link",attributes:{url:e.url}},a=[];return e.opensInNewWindow&&(r.attributes.target="_blank",a.push("noreferrer noopener")),n&&(a.push("sponsored"),a.push("nofollow")),t&&a.push("nofollow"),a.length>0&&(a=Object(b.uniq)(a),r.attributes.rel=a.join(" ")),r}({url:i,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(Object(d.isCollapsed)(a)&&!t){var u=e.title||i,m=Object(d.applyFormat)(Object(d.create)({text:u}),l,0,u.length);o(Object(d.insert)(a,m))}else{var h=Object(d.applyFormat)(a,l);h.start=h.end,h.activeFormats=[],o(h)}n||c(),function(e){if(!e)return!1;var t=e.trim();if(!t)return!1;if(/^\S+:/.test(t)){var n=Object(ue.getProtocol)(t);if(!Object(ue.isValidProtocol)(n))return!1;if(Object(b.startsWith)(n,"http")&&!/^https?:\/\/[^\/\s]/i.test(t))return!1;var r=Object(ue.getAuthority)(t);if(!Object(ue.isValidAuthority)(r))return!1;var a=Object(ue.getPath)(t);if(a&&!Object(ue.isValidPath)(a))return!1;var o=Object(ue.getQueryString)(t);if(o&&!Object(ue.isValidQueryString)(o))return!1;var i=Object(ue.getFragment)(t);if(i&&!Object(ue.isValidFragment)(i))return!1}return!(Object(b.startsWith)(t,"#")&&!Object(ue.isValidFragment)(t))}(i)?s(t?Object(p.__)("Link edited.","wordpress-seo"):Object(p.__)("Link inserted.","wordpress-seo"),"assertive"):s(Object(p.__)("Warning: the link has been inserted but may have errors. Please test it.","wordpress-seo"),"assertive")}},forceIsEditingLink:r,settings:k}))}));var je=Object(p.__)("Link","wordpress-seo"),we={name:"core/link",title:je,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(Object(d.isCollapsed)(e))return e;var a=(n||r).replace(/<[^>]+>/g,"").trim();return Object(ue.isURL)(a)?(window.console.log("Created link:\n\n",a),Object(d.applyFormat)(e,{type:"core/link",attributes:{url:Object(pe.decodeEntities)(a)}})):e},edit:Object(m.withSpokenMessages)(function(e){oe()(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=le()(t);if(n){var a=le()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return se()(this,e)});function a(){var e;return X()(this,a),(e=r.apply(this,arguments)).addLink=e.addLink.bind(re()(e)),e.stopAddingLink=e.stopAddingLink.bind(re()(e)),e.onRemoveFormat=e.onRemoveFormat.bind(re()(e)),e.state={addingLink:!1},e}return te()(a,[{key:"addLink",value:function(){var e=this.props,t=e.value,n=e.onChange,r=Object(d.getTextContent)(Object(d.slice)(t));r&&Object(ue.isURL)(r)?n(Object(d.applyFormat)(t,{type:"core/link",attributes:{url:r}})):r&&Object(ue.isEmail)(r)?n(Object(d.applyFormat)(t,{type:"core/link",attributes:{url:"mailto:".concat(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(Object(d.removeFormat)(t,"core/link")),r(Object(p.__)("Link removed.","wordpress-seo"),"assertive")}},{key:"render",value:function(){var e=this.props,t=e.isActive,n=e.activeAttributes,r=e.value,a=e.onChange,o=window.wp.blockEditor,s=o.RichTextToolbarButton,c=o.RichTextShortcut;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(c,{type:"primary",character:"k",onUse:this.addLink}),Object(i.createElement)(c,{type:"primaryShift",character:"k",onUse:this.onRemoveFormat}),t&&Object(i.createElement)(s,{name:"link",icon:"editor-unlink",title:Object(p.__)("Unlink","wordpress-seo"),onClick:this.onRemoveFormat,isActive:t,shortcutType:"primaryShift",shortcutCharacter:"k"}),!t&&Object(i.createElement)(s,{name:"link",icon:"admin-links",title:je,onClick:this.addLink,isActive:t,shortcutType:"primary",shortcutCharacter:"k"}),(this.state.addingLink||t)&&Object(i.createElement)(ve,{addingLink:this.state.addingLink,stopAddingLink:this.stopAddingLink,isActive:t,activeAttributes:n,value:r,onChange:a}))}}]),a}(i.Component))},ke=n(4),Ee=n(65);function Te(e){var t=e.score,n=e.label,r=e.scoreValue;return Object(i.createElement)("div",null,Object(i.createElement)(ke.SvgIcon,Object(Ee.getIconForScore)(t)),Object(i.createElement)("span",null," ",n," ",r&&Object(i.createElement)("strong",null,r)))}function _e(e){var t=e.checklist,n=e.onClick,r=t.every((function(e){return"good"===e.score}));return Object(i.createElement)(i.Fragment,null,t.map((function(e){return Object(i.createElement)(Te,v()({key:e.label},e))})),Object(i.createElement)("br",null),!r&&Object(i.createElement)(ke.Button,{onClick:n},Object(p.__)("Improve your post with Yoast SEO","wordpress-seo")))}function Re(e){var t,n=e.checklist,r=e.onClick;return t=n.every((function(e){return"good"===e.score}))?Object(p.__)("We've analyzed your post. Everything looks good. Well done!","wordpress-seo"):Object(p.__)("We've analyzed your post. There is still room for improvement!","wordpress-seo"),Object(i.createElement)(i.Fragment,null,Object(i.createElement)("p",null,t),Object(i.createElement)(_e,{checklist:n,onClick:r}))}function Se(e,t){if(t.getPreferences().isKeywordAnalysisActive){var n=Object(g.a)(t.getReadabilityResults().overallScore);e.push({label:Object(p.__)("Readability analysis:","wordpress-seo"),score:n.className,scoreValue:n.screenReaderReadabilityText})}}function Pe(e,t){if(t.getPreferences().isContentAnalysisActive){var n=Object(g.a)(t.getResultsForFocusKeyword().overallScore);e.push({label:Object(p.__)("SEO analysis:","wordpress-seo"),score:n.className,scoreValue:n.screenReaderReadabilityText})}}function xe(e,t,n){if(n.getBlocks().some((function(e){return!0===e.attributes["is-yoast-schema-block"]}))){var r=t.getSchemaBlocksValidationResults(),a=Object.values(r);if(a&&a.length>0){var o=a.every((function(e){return e.result<=0}));e.push({label:Object(p.__)("Schema analysis:","wordpress-seo"),score:o?"good":"bad",scoreValue:o?Object(p.__)("Good","wordpress-seo"):Object(p.__)("Needs improvement","wordpress-seo")})}}}Te.propTypes={score:k.string.isRequired,label:k.string.isRequired,scoreValue:k.string},Te.defaultProps={scoreValue:""},_e.propTypes={checklist:E.a.array.isRequired,onClick:E.a.func.isRequired},Re.propTypes={checklist:E.a.array.isRequired,onClick:E.a.func.isRequired};var Ce,Ae,Ie,Le=Object(f.compose)([Object(u.withSelect)((function(e){var t=e("yoast-seo/editor"),n=e("yoast-seo/schema-blocks"),r=e("core/block-editor"),a=[];return function(e,t){t.getFocusKeyphrase()||e.push({label:Object(p.__)("No focus keyword was entered","wordpress-seo"),score:"bad"})}(a,t),Se(a,t),Pe(a,t),xe(a,n,r),{checklist:a}})),Object(u.withDispatch)((function(e){var t=e("core/edit-post"),n=t.closePublishSidebar,r=t.openGeneralSidebar;return{onClick:function(){n(),r("yoast-seo/seo-sidebar")}}}))])(Re),qe=Object(f.compose)([Object(u.withSelect)((function(e){var t=e("yoast-seo/editor"),n=e("yoast-seo/schema-blocks"),r=e("core/block-editor"),a=[];return Se(a,t),Pe(a,t),xe(a,n,r),{checklist:a}})),Object(u.withDispatch)((function(e){var t=e("core/edit-post").openGeneralSidebar;return{onClick:function(){t("yoast-seo/seo-sidebar")}}}))])(_e),Fe=n(5);function Ne(){return(Ne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function De(e){return Fe.createElement("svg",Ne({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 1600","aria-hidden":"true"},e),Ce||(Ce=Fe.createElement("g",{fill:"none",fillRule:"evenodd"},Fe.createElement("path",{fill:"#1877f2",d:"M1600 800a800 800 0 10-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 00675-790"}),Fe.createElement("path",{fill:"#fff",d:"M1147 800H925V650c0-63 31-125 130-125h101V328s-91-15-179-15c-183 0-302 110-302 311v176H472v231h203v559a806 806 0 00250 0v-559h186z"}))))}function Me(){return(Me=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ke(e){return Fe.createElement("svg",Me({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 400","aria-hidden":"true"},e),Ae||(Ae=Fe.createElement("circle",{cx:200,cy:200,r:200,fill:"#1da1f2"})),Ie||(Ie=Fe.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"})))}function We(e){var t=e.permalink,n=encodeURI(t);return Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",null,Object(p.__)("Share your post!","wordpress-seo")),Object(i.createElement)("ul",{className:"yoast-seo-social-share-buttons"},Object(i.createElement)("li",null,Object(i.createElement)("a",{href:"https://www.facebook.com/sharer/sharer.php?u="+n,target:"_blank",rel:"noopener noreferrer"},Object(i.createElement)(De,null),Object(p.__)("Facebook","wordpress-seo"),Object(i.createElement)("span",{className:"screen-reader-text"},Object(p.__)("(Opens in a new browser tab)","wordpress-seo")))),Object(i.createElement)("li",null,Object(i.createElement)("a",{href:"https://twitter.com/share?url="+n,target:"_blank",rel:"noopener noreferrer"},Object(i.createElement)(Ke,null),Object(p.__)("Twitter","wordpress-seo"),Object(i.createElement)("span",{className:"screen-reader-text"},Object(p.__)("(Opens in a new browser tab)","wordpress-seo"))))))}We.propTypes={permalink:E.a.string.isRequired};var Be=Object(f.compose)([Object(u.withSelect)((function(e){return{permalink:e("core/editor").getPermalink()}}))])(We),He=n(93);function Ve(e){var t=e.hasTrackedKeyphrases,n=e.trackAll;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(ke.FieldGroup,{label:Object(p.__)("SEO performance","wordpress-seo"),linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"],linkText:Object(p.__)("Learn more about the SEO performance feature.","wordpress-seo")}),Object(i.createElement)(He.a,null),t&&Object(i.createElement)("p",null,Object(p.__)("Tracking has already been enabled for one or more keyphrases of this page. Clicking the button below will enable tracking for all of its keyphrases.","wordpress-seo")),Object(i.createElement)("div",{className:"yoast"},Object(i.createElement)(ke.NewButton,{variant:"secondary",onClick:n},Object(p.__)("Track all keyphrases on this page","wordpress-seo"))),Object(i.createElement)(V.a,{location:"postpublish"}))}Ve.propTypes={trackAll:E.a.func,hasTrackedKeyphrases:E.a.bool},Ve.defaultProps={trackAll:function(){},hasTrackedKeyphrases:!1};var Ue=Object(f.compose)([Object(u.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getWincherTrackedKeyphrases,r=t.hasWincherTrackedKeyphrases;return{trackedKeyphrases:n(),hasTrackedKeyphrases:r()}})),Object(u.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setWincherOpenModal,r=t.setWincherTrackAllKeyphrases;return{trackAll:function(){r(!0),n("postpublish")}}}))])(Ve),Ye=n(23);var ze=n(179);window.yoast=window.yoast||{},window.yoast.initEditorIntegration=function(e){(function(e){var t=Object(Ye.a)(),n=t.isPremium,r=n?"Yoast SEO Premium":"Yoast SEO",a=Object(i.createElement)(S,null);Object(l.updateCategory)("yoast-structured-data-blocks",{icon:a}),Object(l.updateCategory)("yoast-internal-linking-blocks",{icon:a});var o={isRtl:t.isRtl},d=e.getState().preferences,b=d.isKeywordAnalysisActive||d.isContentAnalysisActive,h=d.isZapierIntegrationActive&&!d.isZapierConnected,f=d.isKeywordAnalysisActive&&d.isWincherIntegrationActive;!Object(u.select)("core/edit-post").getPreferences().panels["yoast-seo/document-panel"]&&Object(u.dispatch)("core/edit-post").toggleEditorPanelOpened("yoast-seo/document-panel"),Object(c.registerPlugin)("yoast-seo",{render:function(){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(s.PluginSidebarMoreMenuItem,{target:"seo-sidebar",icon:Object(i.createElement)(P,null)},r),Object(i.createElement)(s.PluginSidebar,{name:"seo-sidebar",title:r},Object(i.createElement)(J,{store:e,theme:o})),Object(i.createElement)(i.Fragment,null,Object(i.createElement)(Y,{store:e,theme:o}),Object(i.createElement)(z.a,{target:"wpseo-metabox-root",store:e,theme:o})),b&&Object(i.createElement)(s.PluginPrePublishPanel,{className:"yoast-seo-sidebar-panel",title:Object(p.__)("Yoast SEO","wordpress-seo"),initialOpen:!0,icon:Object(i.createElement)(i.Fragment,null)},Object(i.createElement)(Le,null)),n&&h&&Object(i.createElement)(s.PluginPrePublishPanel,{className:"yoast-seo-sidebar-panel",title:"Zapier",initialOpen:!0,icon:Object(i.createElement)(i.Fragment,null)},Object(i.createElement)(m.Slot,{name:"YoastZapierPrePublish"})),Object(i.createElement)(s.PluginPostPublishPanel,{className:"yoast-seo-sidebar-panel",title:Object(p.__)("Yoast SEO","wordpress-seo"),initialOpen:!0,icon:Object(i.createElement)(i.Fragment,null)},Object(i.createElement)(Be,null),f&&Object(i.createElement)(Ue,null)),b&&Object(i.createElement)(s.PluginDocumentSettingPanel,{name:"document-panel",className:"yoast-seo-sidebar-panel",title:Object(p.__)("Yoast SEO","wordpress-seo"),icon:Object(i.createElement)(i.Fragment,null)},Object(i.createElement)(qe,null)))},icon:Object(i.createElement)(P,null)})})(e),"function"==typeof Object(b.get)(window,"wp.blockEditor.__experimentalLinkControl")?[we].forEach((function(e){var t=e.name,n=e.replaces,r=o()(e,["name","replaces"]);n&&Object(u.dispatch)("core/rich-text").removeFormatTypes(n),t&&Object(d.registerFormatType)(t,r)})):console.warn(Object(p.__)("Marking links with nofollow/sponsored has been disabled for WordPress installs < 5.4.","wordpress-seo")+" "+Object(p.sprintf)(Object(p.__)("Please upgrade your WordPress version or install the Gutenberg plugin to get this %1$s feature.","wordpress-seo"),"Yoast SEO")),function(e){Object(G.b)()&&e.dispatch(h.actions.setMarkerStatus("enabled"))}(e)},window.yoast.EditorData=ze.a}]);
js/dist/classic-editor.js CHANGED
@@ -1,8 +1,8 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=211)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.yoast.propTypes},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.lodash},function(e,t){e.exports=window.yoast.componentsNew},function(e,t){e.exports=window.React},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.regeneratorRuntime},function(e,t){e.exports=window.yoast.helpers},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=window.yoast.styledComponents},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},function(e,t){function n(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(a,o){var i=e.apply(t,r);function s(e){n(i,a,o,s,c,"next",e)}function c(e){n(i,a,o,s,c,"throw",e)}s(void 0)}))}}},function(e,t){e.exports=window.yoast.externals.redux},function(e,t,n){var r=n(43);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(34),a=n(12);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t}},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.wp.components},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3);function a(){return Object(r.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}},function(e,t,n){var r=n(67),a=n(68),o=n(69);e.exports=function(e){return r(e)||a(e)||o()}},function(e,t){e.exports=window.yoast.styleGuide},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){e.exports=window.yoast.analysis},,function(e,t,n){var r=n(64),a=n(65),o=n(66);e.exports=function(e,t){return r(e)||a(e,t)||o()}},function(e,t){e.exports=window.yoast.externals.contexts},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=s(n(5)),o=s(n(90)),i=s(n(93));function s(e){return e&&e.__esModule?e:{default:e}}var c=void 0;t.default=function(e){var t=e.mixedString,n=e.components,s=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(s)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var u=(0,i.default)(t);try{return function e(t,n){var i,s,u,l,p,d,m,h,f=[],b={};for(d=0;d<t.length;d++)if("string"!==(p=t[d]).type){if(!n.hasOwnProperty(p.value)||void 0===n[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(n[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){i=n[p.value],u=d;break}f.push(n[p.value])}else f.push(p.value);return i&&(l=function(e,t){var n,r,a=t[e],o=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){o++;continue}if("componentClose"===n.type){if(0===o)return r;o--}}throw new Error("Missing closing component token `"+a.value+"`")}(u,t),m=e(t.slice(u+1,l),n),s=a.default.cloneElement(i,{},m),f.push(s),l<t.length-1&&(h=e(t.slice(l+1),n),f=f.concat(h))),1===f.length?f[0]:(f.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,o.default)(b))}(u,n)}catch(e){if(s)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return d})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return g})),n.d(t,"e",(function(){return O})),n.d(t,"f",(function(){return j}));var r=n(16),a=n.n(r),o=n(7),i=n.n(o),s=n(36),c=n.n(s),u=n(3);function l(_x){return p.apply(this,arguments)}function p(){return(p=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c()(t);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),!e.t0.error||!e.t0.status){e.next=10;break}return e.abrupt("return",e.t0);case 10:if(!(e.t0 instanceof Response)){e.next=14;break}return e.next=13,e.t0.json();case 13:return e.abrupt("return",e.sent);case 14:return e.abrupt("return",!1);case 15:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function d(e,t,n){return m.apply(this,arguments)}function m(){return(m=a()(i.a.mark((function e(t,n,r){var a,o,s=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=s.length>3&&void 0!==s[3]?s[3]:200,e.prev=1,e.next=4,t();case 4:if(!(o=e.sent)){e.next=9;break}if(o.status!==a){e.next=8;break}return e.abrupt("return",n(o));case 8:return e.abrupt("return",r(o));case 9:return e.abrupt("return",!1);case 12:e.prev=12,e.t0=e.catch(1),console.error(e.t0.message);case 15:case"end":return e.stop()}}),e,null,[[1,12]])})))).apply(this,arguments)}function h(){return f.apply(this,arguments)}function f(){return(f=a()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l({path:"yoast/v1/wincher/authorization-url",method:"GET"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(e){return y.apply(this,arguments)}function y(){return(y=a()(i.a.mark((function e(t){var n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.code,r=t.websiteId,e.next=3,l({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:n,websiteId:r}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(){return v.apply(this,arguments)}function v(){return(v=a()(i.a.mark((function e(){var t,n,r,a=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:null,n=a.length>1&&void 0!==a[1]?a[1]:null,r=a.length>2?a[2]:void 0,e.next=5,l({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:t,permalink:n},signal:r});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e){return w.apply(this,arguments)}function w(){return(w=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(u.isArray)(t)||(t=[t]),e.next=3,l({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:t}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e){return E.apply(this,arguments)}function E(){return(E=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:t}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),i=function(e){var t=e.children;return Object(r.createElement)("div",null,t)};i.propTypes={renderPriority:o.a.number.isRequired,children:o.a.node.isRequired},t.a=i},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},,function(e,t){e.exports=window.wp.apiFetch},function(e,t,n){"use strict";n.r(t),n.d(t,"tmceId",(function(){return c})),n.d(t,"termsTmceId",(function(){return u})),n.d(t,"setStore",(function(){return l})),n.d(t,"isTinyMCELoaded",(function(){return p})),n.d(t,"isTinyMCEAvailable",(function(){return d})),n.d(t,"getContentTinyMce",(function(){return m})),n.d(t,"addEventHandler",(function(){return h})),n.d(t,"disableMarkerButtons",(function(){return f})),n.d(t,"enableMarkerButtons",(function(){return b})),n.d(t,"isTextViewActive",(function(){return y})),n.d(t,"wpTextViewOnInitCheck",(function(){return g})),n.d(t,"tinyMceEventBinder",(function(){return v}));var r,a=n(3),o=n(85),i=n(117),s=n(17),c="content",u="description";function l(e){r=e}function p(){return"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.editors&&0!==tinyMCE.editors.length}function d(e){if(!p())return!1;var t=tinyMCE.get(e);return null!==t&&!t.isHidden()}function m(e){var t,n,r;return n=!1===d(e)||0==(t=e,null!==document.getElementById(t+"_ifr"))?function(e){return document.getElementById(e)&&document.getElementById(e).value||""}(e):tinyMCE.get(e).getContent(),r=new RegExp("&amp;","g"),n.replace(r,"&")}function h(e,t,n){"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",(function(r){var o=r.editor;o.id===e&&Object(a.forEach)(t,(function(e){o.on(e,n)}))}))}function f(){Object(a.isUndefined)(r)||r.dispatch(s.actions.setMarkerStatus("disabled"))}function b(){Object(a.isUndefined)(r)||r.dispatch(s.actions.setMarkerStatus("enabled"))}function y(){var e=document.getElementById("wp-content-wrap");return!!e&&e.classList.contains("html-active")}function g(){y()&&(f(),p()&&tinyMCE.on("AddEditor",(function(){b()})))}function v(e,t){h(t,["input","change","cut","paste"],e),h(t,["hide"],f);var n=["show"];(new i.a).isPageBuilderActive()||n.push("init"),h(t,n,b),h("content",["focus"],(function(e){var t=e.target;Object(o.a)(t)&&(Object(o.b)(t),YoastSEO.app.disableMarkers())}))}},function(e,t,n){var r=n(80);e.exports=function(e,t){if(null==e)return{};var n,a,o=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t){e.exports=window.wp.url},function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return i})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"h",(function(){return l})),n.d(t,"b",(function(){return p})),n.d(t,"l",(function(){return d})),n.d(t,"m",(function(){return m})),n.d(t,"n",(function(){return h})),n.d(t,"o",(function(){return f})),n.d(t,"k",(function(){return b})),n.d(t,"j",(function(){return y})),n.d(t,"i",(function(){return g}));var r=n(8),a="SNIPPET_EDITOR_SWITCH_MODE",o="SNIPPET_EDITOR_UPDATE_DATA",i="SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLE",s="SNIPPET_EDITOR_HIDE_REPLACEMENT_VARIABLES",c="SNIPPET_EDITOR_REMOVE_REPLACEMENT_VARIABLE",u="SNIPPET_EDITOR_REFRESH",l="SNIPPET_EDITOR_UPDATE_WORDS_TO_HIGHLIGHT",p="LOAD_SNIPPET_EDITOR_DATA";function d(e){return{type:a,mode:e}}function m(e){return{type:o,data:e}}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o="string"==typeof t?Object(r.decodeHTML)(t):t;return{type:i,name:e,value:o,label:n,hidden:a}}function f(e){return{type:l,wordsToHighlight:e}}function b(e){return{type:c,name:e}}function y(){return{type:u,time:(new Date).getMilliseconds()}}function g(e){return{type:s,data:e}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o}));var r=n(0);function a(e){return e.charAt(0).toUpperCase()+e.slice(1)}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return Object(r.createInterpolateElement)(e,{a:Object(r.createElement)("a",{id:n,href:t,target:"_blank",rel:"noopener noreferrer"})})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),a=n(1),o=n.n(a);function i(e){var t=e.target,n=e.children,a=t;return"string"==typeof t&&(a=document.getElementById(t)),a?Object(r.createPortal)(n,a):null}i.propTypes={target:o.a.oneOfType([o.a.string,o.a.object]).isRequired,children:o.a.node.isRequired}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(14),a=n.n(r),o=n(20),i=n(0),s=n(30);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(){return Object(o.createHigherOrderComponent)((function(e){return Object(o.pure)((function(t){var n=Object(i.useContext)(s.LocationContext);return Object(i.createElement)(e,u(u({},t),{},{location:n}))}))}),"withLocation")}},,function(e,t){e.exports=window.yoast.replacementVariableEditor},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return R}));var r=n(26),a=n.n(r),o=n(38),i=n.n(o),s=n(14),c=n.n(s),u=n(9),l=n.n(u),p=n(10),d=n.n(p),m=n(12),h=n.n(m),f=n(18),b=n.n(f),y=n(19),g=n.n(y),v=n(11),O=n.n(v),w=n(0),j=n(1),E=n.n(j);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var R=E.a.shape({value:E.a.string.isRequired,onChange:E.a.func.isRequired});t.a=function(e){return function(t){return function(n){b()(u,n);var r,o,s=(r=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=O()(r);if(o){var n=O()(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return g()(this,e)});function u(t){var n;l()(this,u),(n=s.call(this,t)).elements={};var r={};return n.fields=e(t),n.fields.forEach((function(e){var t=e.name,a=e.fieldId,o=document.getElementById(a);o&&(n.elements[t]=o,r[t]={value:o.value,onChange:n.onChange.bind(h()(n),t)})})),n.state=r,n}return d()(u,[{key:"onChange",value:function(e,t){var n=this;this.setState(T(T({},this.state),{},c()({},e,T(T({},this.state[e]),{},{value:t}))),(function(){n.elements[e]&&(n.elements[e].value=t)}))}},{key:"render",value:function(){var e=this.props,n=e.children,r=i()(e,["children"]);return Object(w.createElement)(t,a()({},r,this.state),n)}}],[{key:"propTypes",get:function(){return{children:E.a.node}}}]),u}(w.Component)}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=n(23);function o(){var e=Object(a.a)();return Object(r.get)(e,"contentLocale","en_US")}},function(e,t,n){"use strict";var r,a=n(15),o=n.n(a),i=n(25),s=n(8),c=n(13),u=n.n(c),l=Object(s.makeOutboundLink)(u.a.a(r||(r=o()(["\n\tdisplay: inline-block;\n\tposition: relative;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 100%;\n\twidth: 24px;\n\theight: 24px;\n\tmargin: -4px 0;\n\tvertical-align: middle;\n\n\tcolor: ",";\n\t\n\t&:hover,\n\t&:focus {\n\t\tcolor: ",";\t\n\t}\n\t\n\t// Overwrite the default blue active color for links.\n\t&:active {\n\t\tcolor: ",';\t\n\t}\n\n\t&::before {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tpadding: 2px;\n\t\tcontent: "\f223";\n\t}\n'],["\n\tdisplay: inline-block;\n\tposition: relative;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 100%;\n\twidth: 24px;\n\theight: 24px;\n\tmargin: -4px 0;\n\tvertical-align: middle;\n\n\tcolor: ",";\n\t\n\t&:hover,\n\t&:focus {\n\t\tcolor: ",";\t\n\t}\n\t\n\t// Overwrite the default blue active color for links.\n\t&:active {\n\t\tcolor: ",';\t\n\t}\n\n\t&::before {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tpadding: 2px;\n\t\tcontent: "\\f223";\n\t}\n'])),i.colors.$color_help_text,i.colors.$color_snippet_focus,i.colors.$color_help_text));t.a=l},function(e,t,n){"use strict";var r,a=n(26),o=n.n(a),i=n(15),s=n.n(i),c=n(0),u=n(4),l=n(13),p=n.n(l)()(u.Collapsible)(r||(r=s()(['\n\th2 > button {\n\t\tpadding-left: 24px;\n\t\tpadding-top: 16px;\n\n\t\t&:hover {\n\t\t\tbackground-color: #f0f0f0;\n\t\t}\n\t}\n\n\tdiv[class^="collapsible_content"] {\n\t\tpadding: 24px 0;\n\t\tmargin: 0 24px;\n\t\tborder-top: 1px solid rgba(0,0,0,0.2);\n\t}\n\n'])));t.a=function(e){return Object(c.createElement)(p,o()({hasPadding:!0,hasSeparator:!0},e))}},function(e,t){e.exports=window.yoast.externals.components},,function(e,t,n){"use strict";n.r(t),n.d(t,"nonReplaceVars",(function(){return d})),n.d(t,"fillReplacementVariables",(function(){return m})),n.d(t,"handlePrefixes",(function(){return h})),n.d(t,"createLabelFromName",(function(){return f})),n.d(t,"pushNewReplaceVar",(function(){return b})),n.d(t,"replaceSpaces",(function(){return y})),n.d(t,"prepareCustomFieldForDispatch",(function(){return g})),n.d(t,"prepareCustomTaxonomyForDispatch",(function(){return v})),n.d(t,"mapCustomTaxonomies",(function(){return O})),n.d(t,"mapCustomFields",(function(){return w})),n.d(t,"excerptFromContent",(function(){return j})),n.d(t,"applyReplaceUsingPlugin",(function(){return E}));var r=n(14),a=n.n(r),o=n(3),i=n(107),s=n(40),c=n(41);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=n(8).strings.stripHTMLTags,d=["slug","content","contentImage","snippetPreviewImageURL"];function m(e,t){Object(o.forEach)(e,(function(e,n){d.includes(n)||t.dispatch(Object(s.n)(n,e))}))}function h(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 f(e){return e=h(e),Object(c.b)(e)}function b(e,t){return e.push({name:t.name,label:t.label||f(t.name),value:t.value}),e}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e.replace(/\s/g,t)}function g(e){return{name:"cf_"+y(e),label:Object(c.b)(e+" (custom field)")}}function v(e){var t=y(e);return{name:"ct_"+t,label:Object(c.b)(e+" (custom taxonomy)"),descriptionName:"ct_desc_"+t,descriptionLabel:Object(c.b)(e+" description (custom taxonomy)")}}function O(e,t){return e.custom_taxonomies?(Object(o.forEach)(e.custom_taxonomies,(function(e,n){var r=v(n),a=r.name,o=r.label,i=r.descriptionName,c=r.descriptionLabel;t.dispatch(Object(s.n)(a,e.name,o)),t.dispatch(Object(s.n)(i,e.description,c))})),Object(o.omit)(l({},e),"custom_taxonomies")):e}function w(e,t){return e.custom_fields?(Object(o.forEach)(e.custom_fields,(function(e,n){var r=g(n),a=r.name,o=r.label;t.dispatch(Object(s.n)(a,e,o))})),Object(o.omit)(l({},e),"custom_fields")):e}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:156;return(e=(e=Object(i.stripTags)(e)).trim()).length<=t||(e=e.substring(0,t),/\s/.test(e)&&(e=e.substring(0,e.lastIndexOf(" ")))),e}var E=function(e){var t=Object(o.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!Object(o.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){var t=Object(o.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],o.identity);return{url:e.url,title:p(t(e.title)),description:p(t(e.description))}}(e);var n=t._applyModifications.bind(t);return{url:e.url,title:p(n("data_page_title",e.title)),description:p(n("data_meta_desc",e.description))}}},function(e,t,n){"use strict";var r=n(24),a=n.n(r),o=n(0),i=n(1),s=n.n(i),c=n(2),u=function(e){var t=e.data,n=e.mapChartDataToTableData,r=e.dataTableCaption,a=e.dataTableHeaderLabels,i=e.isDataTableVisuallyHidden;return t.length!==a.length?Object(o.createElement)("p",null,Object(c.__)("The number of headers and header labels don't match.","wordpress-seo")):Object(o.createElement)("div",{className:i?"screen-reader-text":null},Object(o.createElement)("table",null,Object(o.createElement)("caption",null,r),Object(o.createElement)("thead",null,Object(o.createElement)("tr",null,a.map((function(e,t){return Object(o.createElement)("th",{key:t},e)})))),Object(o.createElement)("tbody",null,Object(o.createElement)("tr",null,t.map((function(e,t){return Object(o.createElement)("td",{key:t},n(e.y))}))))))};u.propTypes={data:s.a.arrayOf(s.a.shape({x:s.a.number,y:s.a.number})).isRequired,mapChartDataToTableData:s.a.func,dataTableCaption:s.a.string.isRequired,dataTableHeaderLabels:s.a.array.isRequired,isDataTableVisuallyHidden:s.a.bool},u.defaultProps={mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};var l=u,p=function(e){var t=e.data,n=e.width,r=e.height,i=e.fillColor,s=e.strokeColor,c=e.strokeWidth,u=e.className,p=e.mapChartDataToTableData,d=e.dataTableCaption,m=e.dataTableHeaderLabels,h=e.isDataTableVisuallyHidden,f=Math.max(1,Math.max.apply(Math,a()(t.map((function(e){return e.x}))))),b=Math.max(1,Math.max.apply(Math,a()(t.map((function(e){return e.y}))))),y=r-c,g=t.map((function(e){var t=e.x/f*n,r=y-e.y/b*y+c;return"".concat(t,",").concat(r)})).join(" "),v="0,".concat(y+c," ")+g+" ".concat(n,",").concat(y+c);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("svg",{width:n,height:r,viewBox:"0 0 ".concat(n," ").concat(r),className:u,role:"img","aria-hidden":"true",focusable:"false"},Object(o.createElement)("polygon",{fill:i,points:v}),Object(o.createElement)("polyline",{fill:"none",stroke:s,strokeWidth:c,strokeLinejoin:"round",strokeLinecap:"round",points:g})),p&&Object(o.createElement)(l,{data:t,mapChartDataToTableData:p,dataTableCaption:d,dataTableHeaderLabels:m,isDataTableVisuallyHidden:h}))};p.propTypes={data:s.a.arrayOf(s.a.shape({x:s.a.number,y:s.a.number})).isRequired,width:s.a.number.isRequired,height:s.a.number.isRequired,fillColor:s.a.string,strokeColor:s.a.string,strokeWidth:s.a.number,className:s.a.string,mapChartDataToTableData:s.a.func,dataTableCaption:s.a.string.isRequired,dataTableHeaderLabels:s.a.array.isRequired,isDataTableVisuallyHidden:s.a.bool},p.defaultProps={fillColor:null,strokeColor:"#000000",strokeWidth:1,className:"",mapChartDataToTableData:null,isDataTableVisuallyHidden:!0},t.a=p},function(e,t,n){"use strict";function r(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()}n.d(t,"a",(function(){return r}))},,,function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},,function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],_n=!0,r=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(_n=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,a=e}finally{try{_n||null==i.return||i.return()}finally{if(r)throw a}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),i=n(13),s=n(30),c=function(e){var t=e.theme,n=e.location,a=e.children;return Object(r.createElement)(s.LocationProvider,{value:n},Object(r.createElement)(i.ThemeProvider,{theme:t},a))};c.propTypes={theme:o.a.object.isRequired,location:o.a.oneOf(["sidebar","metabox","modal"]).isRequired,children:o.a.element.isRequired},t.a=c},function(e,t){e.exports=window.moment},,,,function(e,t){e.exports=window.yoast.featureFlag},,function(e,t,n){"use strict";n.d(t,"b",(function(){return k}));var r=n(14),a=n.n(r),o=n(9),i=n.n(o),s=n(10),c=n.n(s),u=n(12),l=n.n(u),p=n(18),d=n.n(p),m=n(19),h=n.n(m),f=n(11),b=n.n(f),y=n(0),g=n(2),v=n(4),O=n(1),w=n.n(O),j=n(50);var E=function(e){d()(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=b()(t);if(n){var a=b()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return h()(this,e)});function o(e){var t;return i()(this,o),(t=r.call(this,e)).initialPageType=e.pageType.value,t.initialArticleType=e.articleType?e.articleType.value:"None",t.state={schema_page_type:t.initialPageType,schema_article_type:t.initialArticleType},t.handleOptionFocus=t.handleOptionFocus.bind(l()(t)),t}return c()(o,[{key:"shouldShowAlert",value:function(){return this.state.schema_page_type!==this.initialPageType||this.state.schema_article_type!==this.initialArticleType}},{key:"handleOptionFocus",value:function(e,t){this.setState(a()({},e,t))}},{key:"render",value:function(){return Object(y.createElement)(y.Fragment,null,Object(y.createElement)(v.FieldGroup,{label:Object(g.__)("Schema settings","wordpress-seo"),linkTo:"https://yoa.st/404",linkText:Object(g.__)("Learn more about the schema settings","wordpress-seo"),description:Object(g.sprintf)(
2
  /* translators: %1$s expands to an indexable object's name, e.g. Posts or Pages. */
3
  Object(g.__)("Choose how your %1$s should be described by default in your site's schema.org markup. You can change these settings for individual %1$s.","wordpress-seo"),this.props.postTypeName)}),this.shouldShowAlert()&&Object(y.createElement)(v.Alert,{type:"warning"},Object(g.sprintf)(
4
  /* translators: %1$s expands to an indexable object's name, e.g. Posts or Pages. */
5
- Object(g._n)("Upon saving, this setting will apply to all of your %1$s. %1$s that are manually configured will be left untouched.","Upon saving, these settings will apply to all of your %1$s. %1$s that are manually configured will be left untouched.",this.props.articleType?2:1,"wordpress-seo"),this.props.postTypeName)),Object(y.createElement)(v.Select,{id:"schema-page-type-".concat(this.props.postType),name:"schema_page_type",options:this.props.pageTypeOptions,label:Object(g.__)("Default Page type","wordpress-seo"),onChange:this.props.pageType.onChange,selected:this.props.pageType.value,onOptionFocus:this.handleOptionFocus}),this.props.articleType&&Object(y.createElement)(v.Select,{id:"schema-article-type-".concat(this.props.postType),name:"schema_article_type",options:this.props.articleTypeOptions,label:Object(g.__)("Default Article type","wordpress-seo"),onChange:this.props.articleType.onChange,onOptionFocus:this.handleOptionFocus,selected:this.props.articleType.value}))}}]),o}(y.Component),k=w.a.arrayOf(w.a.shape({name:w.a.string,value:w.a.string}));E.propTypes={postType:w.a.string.isRequired,postTypeName:w.a.string.isRequired,pageType:j.b.isRequired,articleType:j.b,pageTypeOptions:k.isRequired,articleTypeOptions:k.isRequired},E.defaultProps={articleType:null},t.a=Object(j.a)((function(e){return[{name:"pageType",fieldId:e.pageTypeFieldId},{name:"articleType",fieldId:e.articleTypeFieldId}]}))(E)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(9),a=n.n(r),o=n(10),i=n.n(o),s=function(){function e(){a()(this,e)}return i()(e,null,[{key:"articleTypeInput",get:function(){return document.getElementById("yoast_wpseo_schema_article_type")}},{key:"defaultArticleType",get:function(){return e.articleTypeInput.getAttribute("data-default")}},{key:"articleType",get:function(){return e.articleTypeInput.value},set:function(t){e.articleTypeInput.value=t}},{key:"pageTypeInput",get:function(){return document.getElementById("yoast_wpseo_schema_page_type")}},{key:"defaultPageType",get:function(){return e.pageTypeInput.getAttribute("data-default")}},{key:"pageType",get:function(){return e.pageTypeInput.value},set:function(t){e.pageTypeInput.value=t}}]),e}()},,function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return y})),n.d(t,"b",(function(){return g}));var r=n(0),a=n(1),o=n.n(a),i=n(2),s=n(3),c=n(71),u=n.n(c),l=n(4),p=n(8),d=n(58),m=function(){return Object(r.createElement)("p",{className:"yoast-wincher-seo-performance-modal__loading-message"},Object(i.__)("Tracking the ranking position...","wordpress-seo")," ",Object(r.createElement)(l.SvgIcon,{icon:"loading-spinner"}))},h=Object(p.makeOutboundLink)();function f(e){return Math.round(100*e)}function b(e){var t=e.chartData;if(Object(s.isEmpty)(t)||Object(s.isEmpty)(t.position))return"?";var n=function(e){return Array.from({length:e.position.history.length},(function(e,t){return t+1})).map((function(e){
6
  /* translators: %d expands to the amount of days */
7
  return Object(i.sprintf)(Object(i._n)("%d day","%d days",e,"wordpress-seo"),e)}))}(t),a=t.position.history.map((function(e,t){return{x:t,y:101-e.value}}));return Object(r.createElement)(d.a,{width:66,height:24,data:a,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:f,dataTableCaption:Object(i.__)("Keyphrase position in the last 90 days on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:n})}function y(e){return!e||!e.position||e.position.value>100?"> 100":e.position.value}function g(e){var t=e.keyphrase,n=e.rowData,a=e.onTrackKeyphrase,o=e.onUntrackKeyphrase,c=e.isFocusKeyphrase,p=e.isDisabled,d=e.isLoading,f=!Object(s.isEmpty)(n),g=Object(r.useCallback)((function(){p||(f?o(t,n.id):a(t))}),[t,a,o,f,n,p]);return Object(r.createElement)("tr",null,Object(r.createElement)("td",{className:"yoast-table--nopadding"},function(e){var t=e.keyphrase,n=e.isEnabled,a=e.toggleAction;return e.isLoading?Object(r.createElement)(l.SvgIcon,{icon:"loading-spinner"}):Object(r.createElement)(l.Toggle,{id:"toggle-keyphrase-tracking-".concat(t),className:"wincher-toggle",isEnabled:n,onSetToggleState:a,showToggleStateLabel:!1})}({keyphrase:t,isEnabled:f,toggleAction:g,isLoading:d})),Object(r.createElement)("td",null,t,c&&Object(r.createElement)("span",null,"*")),function(e){var t=e.rowData,n=e.websiteId,a=!Object(s.isEmpty)(t),o=t&&t.updated_at&&u()(t.updated_at)>=u()().subtract(7,"days"),c=t?Object(i.sprintf)("https://app.wincher.com/websites/%s/keywords?serp=%s&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast",n,t.id):null;return a?o?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",null,y(t)),Object(r.createElement)("td",{className:"yoast-table--nopadding"},Object(r.createElement)(b,{chartData:t})),Object(r.createElement)("td",{className:"yoast-table--nobreak"},Object(r.createElement)(h,{href:c},Object(i.__)("View","wordpress-seo")))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},Object(r.createElement)(m,null))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",null,"?"),Object(r.createElement)("td",{className:"yoast-table--nopadding"},"?"),Object(r.createElement)("td",{className:"yoast-table--nobreak"}))}(e))}b.propTypes={chartData:o.a.object},b.defaultProps={chartData:{}},g.propTypes={rowData:o.a.object,keyphrase:o.a.string.isRequired,onTrackKeyphrase:o.a.func,onUntrackKeyphrase:o.a.func,isFocusKeyphrase:o.a.bool,isDisabled:o.a.bool,isLoading:o.a.bool,websiteId:o.a.string},g.defaultProps={rowData:{},onTrackKeyphrase:function(){},onUntrackKeyphrase:function(){},isFocusKeyphrase:!1,isDisabled:!1,isLoading:!1,websiteId:""}},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var r=n(27),a=n(3);function o(e,t,n){var o=e.dom,i=e.getContent();i=r.markers.removeMarks(i),Object(a.forEach)(n,(function(e){i=e.applyWithReplace(i)})),e.setContent(i),function(e){var t=e.getContent();t=t.replace(new RegExp("&lt;yoastmark.+?&gt;","g"),"").replace(new RegExp("&lt;/yoastmark&gt;","g"),""),e.setContent(t)}(e);var s=o.select("yoastmark");Object(a.forEach)(s,(function(e){e.setAttribute("data-mce-bogus","1")}))}function i(e){return window.test=e,o.bind(null,e)}function s(e){return-1!==e.getContent({format:"raw"}).indexOf("<yoastmark")}function c(e){i(e)(null,[])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(16),a=n.n(r),o=n(9),i=n.n(o),s=n(10),c=n.n(s),u=n(7),l=n.n(u),p=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i()(this,e),this.url=t,this.origin=new URL(t).origin,this.eventHandlers=Object.assign({success:{type:"",callback:function(){}},error:{type:"",callback:function(){}}},n),this.options=Object.assign({height:570,width:340,title:""},r),this.popup=null,this.createPopup=this.createPopup.bind(this),this.messageHandler=this.messageHandler.bind(this),this.getPopup=this.getPopup.bind(this)}var t;return c()(e,[{key:"createPopup",value:function(){var e=this.options,t=e.height,n=e.width,r=e.title,a=["top="+(window.top.outerHeight/2+window.top.screenY-t/2),"left="+(window.top.outerWidth/2+window.top.screenX-n/2),"width="+n,"height="+t,"resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(this.url,r,a.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}},{key:"messageHandler",value:(t=a()(l.a.mark((function e(t){var n,r;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.data,r=t.source,t.origin===this.origin&&this.popup===r){e.next=3;break}return e.abrupt("return");case 3:if(n.type!==this.eventHandlers.success.type){e.next=8;break}return this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),e.next=8,this.eventHandlers.success.callback(n);case 8:if(n.type!==this.eventHandlers.error.type){e.next=13;break}return this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),e.next=13,this.eventHandlers.error.callback(n);case 13:case"end":return e.stop()}}),e,this)}))),function(_x){return t.apply(this,arguments)})},{key:"getPopup",value:function(){return this.popup}},{key:"isClosed",value:function(){return!this.popup||this.popup.closed}},{key:"focus",value:function(){this.isClosed()||this.popup.focus()}}]),e}()},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),i=n(2),s=n(31),c=n.n(s),u=n(4),l=function(e){var t=Object(i.sprintf)(
8
  /* translators: %s expands to a link to open the Wincher login popup. */
@@ -12,7 +12,7 @@ Object(i.__)("reconnect to %s","wordpress-seo"),"Wincher"))}}))};l.propTypes={on
12
  /* Translators: %s expands to the social medium name, which is either Twitter or Facebook. %s expands to Yoast SEO Premium */
13
  Object(T.__)("Want to see how your content will look when it’s shared on %s?","wordpress-seo"),e.socialMediumName),n=Object(T.sprintf)(
14
  /* Translators: %s expands to Yoast SEO Premium */
15
- Object(T.__)("Get %s to unlock social previews!","wordpress-seo"),"Yoast SEO Premium");return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(S,{type:"info"},k()({mixedString:t,components:{strong:Object(b.createElement)("b",null)}}),Object(b.createElement)("br",null),Object(b.createElement)(x,{href:wpseoAdminL10n["shortlinks.upsell.social_previews"]},Object(b.createElement)("p",null,n))))};C.propTypes={socialMediumName:g.a.oneOf(["Twitter","Facebook"]).isRequired};var P=C,I=n(126),A=n(47);var q=function(e){p()(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=f()(t);if(n){var a=f()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return m()(this,e)});function a(e){var t;return o()(this,a),(t=r.call(this,e)).state={activeField:"",hoveredField:""},t.setHoveredField=t.setHoveredField.bind(u()(t)),t.setActiveField=t.setActiveField.bind(u()(t)),t.setEditorRef=t.setEditorRef.bind(u()(t)),t.setEditorFocus=t.setEditorFocus.bind(u()(t)),t}return s()(a,[{key:"setHoveredField",value:function(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}},{key:"setActiveField",value:function(e){var t=this;e!==this.state.activeField&&this.setState({activeField:e},(function(){return t.setEditorFocus(e)}))}},{key:"setEditorFocus",value:function(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}},{key:"setEditorRef",value:function(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}},{key:"render",value:function(){var e=this.props,t=e.onDescriptionChange,n=e.onTitleChange,r=e.onSelectImageClick,a=e.onRemoveImageClick,o=e.socialMediumName,i=e.imageWarnings,s=e.description,c=e.descriptionInputPlaceholder,u=e.imageUrl,l=e.title,p=e.titleInputPlaceholder,d=e.replacementVariables,m=e.recommendedReplacementVariables,h=e.isPremium,f=e.location;return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(P,{socialMediumName:o}),Object(b.createElement)(I.SocialMetadataPreviewForm,{onDescriptionChange:t,socialMediumName:o,title:l,titleInputPlaceholder:p,onRemoveImageClick:a,imageSelected:!!u,imageUrl:u,onTitleChange:n,onSelectImageClick:r,description:s,descriptionInputPlaceholder:c,imageWarnings:i,replacementVariables:d,recommendedReplacementVariables:m,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:h,setEditorRef:this.setEditorRef,idSuffix:f}))}}]),a}(b.Component);q.propTypes={title:g.a.string.isRequired,onTitleChange:g.a.func.isRequired,description:g.a.string.isRequired,onDescriptionChange:g.a.func.isRequired,imageUrl:g.a.string.isRequired,onSelectImageClick:g.a.func.isRequired,onRemoveImageClick:g.a.func.isRequired,socialMediumName:g.a.string.isRequired,isPremium:g.a.bool,imageWarnings:g.a.array,descriptionInputPlaceholder:g.a.string,titleInputPlaceholder:g.a.string,replacementVariables:A.replacementVariablesShape,recommendedReplacementVariables:A.recommendedReplacementVariablesShape,location:g.a.string},q.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",location:""},t.a=q},function(e,t,n){"use strict";var r=n(5),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(62),i=n(91),s=n(92),c="function"==typeof Symbol&&Symbol.iterator;function u(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}var l=/\/+/g;function p(e){return(""+e).replace(l,"$&/")}var d,m,h=f,f=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)};function b(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var a,i,s=e.result,c=e.keyPrefix,u=e.func,l=e.context,d=u.call(l,t,e.count++);Array.isArray(d)?g(d,s,n,o.thatReturnsArgument):null!=d&&(r.isValidElement(d)&&(a=d,i=c+(!d.key||t&&t.key===d.key?"":p(d.key)+"/")+n,d=r.cloneElement(a,{key:i},void 0!==a.props?a.props.children:void 0)),s.push(d))}function g(e,t,n,r,o){var s="";null!=n&&(s=p(n)+"/");var l=b.getPooled(t,s,r,o);!function(e,t,n){null==e||function e(t,n,r,o){var s,l=typeof t;if("undefined"!==l&&"boolean"!==l||(t=null),null===t||"string"===l||"number"===l||"object"===l&&t.$$typeof===a)return r(o,t,""===n?"."+u(t,0):n),1;var p=0,d=""===n?".":n+":";if(Array.isArray(t))for(var m=0;m<t.length;m++)p+=e(s=t[m],d+u(s,m),r,o);else{var h=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(h)for(var f,b=h.call(t),y=0;!(f=b.next()).done;)p+=e(s=f.value,d+u(s,y++),r,o);else if("object"===l){var g=""+t;i(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===g?"object with keys {"+Object.keys(t).join(", ")+"}":g,"")}}return p}(e,"",t,n)}(e,y,l),b.release(l)}b.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){if(this.instancePool.length){var a=this.instancePool.pop();return this.call(a,e,t,n,r),a}return new this(e,t,n,r)},(m=b).instancePool=[],m.getPooled=d||h,m.poolSize||(m.poolSize=10),m.release=function(e){i(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)},e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return s(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return s(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;i(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)g(e[n],t,n,o.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,o,i,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,a,o,i,s],l=0;(c=new Error(t.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(62);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t,n){"use strict";var r=n(0),a=n(2),o=n(31),i=n.n(o),s=n(8),c=Object(s.makeOutboundLink)(),u=Object(s.makeOutboundLink)();t.a=function(){var e=Object(a.sprintf)(Object(a.__)(
16
  /* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */
17
  "With %1$s you can track the ranking position of your page in the search results based on your keyphrase(s). %2$s","wordpress-seo"),"{{wincherLink/}}","{{wincherReadMoreLink/}}");return Object(r.createElement)("p",null,i()({mixedString:e,components:{wincherLink:Object(r.createElement)(c,{href:wpseoAdminGlobalL10n["links.wincher.website"]},"Wincher"),wincherReadMoreLink:Object(r.createElement)(u,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"]},Object(a.__)("Read more about keyphrase tracking with Wincher","wordpress-seo"))}}))}},function(e,t,n){"use strict";var r=n(6),a=n(20),o=n(26),i=n.n(o),s=n(15),c=n.n(s),u=n(16),l=n.n(u),p=n(0),d=n(7),m=n.n(d),h=n(2),f=n(1),b=n.n(f),y=n(3),g=n(13),v=n.n(g),O=n(4),w=n(8),j=n(31),E=n.n(j),k=Object(w.makeOutboundLink)(),T=function(e){var t=Object(h.sprintf)(
18
  /* translators: %d expands to the amount of allowed keyphrases on a free account, %s expands to a link to Wincher plans. */
@@ -22,11 +22,11 @@ Object(h.__)("upgrade your %s plan","wordpress-seo"),"Wincher"))}}))};T.propType
22
  /* translators: %s: Expands to "Wincher". */
23
  Object(h.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher"))},I=function(){return Object(p.createElement)(O.Alert,{type:"info"},Object(h.sprintf)(
24
  /* translators: %s: Expands to "Wincher". */
25
- Object(h.__)("%s is currently tracking the ranking position(s) of your page. This may take a few minutes. Please wait or check back later.","wordpress-seo"),"Wincher"))},A=n(24),q=n.n(A),L=n(29),D=n.n(L),F=n(84),N=n(32),M=Object(w.makeOutboundLink)(),B=v.a.span(R||(R=c()(["\n\tdisplay: block;\n\tfont-style: italic;\n\n\t@media (min-width: 782px) {\n\t\tdisplay: inline;\n\t\tposition: absolute;\n\t\t",": 8px;\n\t}\n"])),Object(w.getDirectionalStyle)("right","left")),K=v.a.th(_||(_=c()(["\n\tmin-width: 60px;\n"]))),H=v.a.div(S||(S=c()(["\n\twidth: 100%;\n\toverflow-y: auto;\n"]))),W=function(e){var t=Object(p.useRef)();return Object(p.useEffect)((function(){t.current=e})),t.current},U=Object(y.debounce)(N.c,500,{leading:!0}),V=function(e){var t=e.addTrackedKeyphrase,n=e.isLoggedIn,r=e.keyphrases,a=e.permalink,o=e.removeTrackedKeyphrase,i=e.setKeyphraseLimitReached,s=e.setRequestFailed,c=e.setRequestSucceeded,u=e.setTrackedKeyphrases,d=e.setHasTrackedAll,f=e.trackAll,b=e.trackedKeyphrases,g=e.isNewlyAuthenticated,v=e.websiteId,O=e.focusKeyphrase,w=e.newRequest,j=Object(p.useRef)(),E=Object(p.useRef)(),k=Object(p.useRef)(!1),T=Object(p.useState)([]),R=D()(T,2),_=R[0],S=R[1],x=Object(p.useCallback)((function(e){var t=e.toLowerCase();return b&&!Object(y.isEmpty)(b)&&b.hasOwnProperty(t)?b[t]:null}),[b]),C=Object(p.useMemo)((function(){return l()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(N.d)((function(){return E.current&&E.current.abort(),E.current="undefined"==typeof AbortController?null:new AbortController,U(r,a,E.current.signal)}),(function(e){c(e),u(e.results)}),(function(e){s(e)}));case 2:case"end":return e.stop()}}),e)})))}),[c,s,u,r,a]),P=Object(p.useCallback)(function(){var e=l()(m.a.mark((function e(n){var r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(Array.isArray(n)?n:[n]).map((function(e){return e.toLowerCase()})),S((function(e){return[].concat(q()(e),q()(r))})),e.next=4,Object(N.d)((function(){return Object(N.e)(r)}),(function(e){c(e),t(e.results),C()}),(function(e){400===e.status&&e.limit&&i(e.limit),s(e)}),201);case 4:S((function(e){return y.without.apply(void 0,[e].concat(q()(r)))}));case 5:case"end":return e.stop()}}),e)})));return function(_x){return e.apply(this,arguments)}}(),[c,s,i,t,C]),I=Object(p.useCallback)(function(){var e=l()(m.a.mark((function e(t,n){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=t.toLowerCase(),S((function(e){return[].concat(q()(e),[t])})),e.next=4,Object(N.d)((function(){return Object(N.f)(n)}),(function(e){c(e),o(t)}),(function(e){s(e)}));case 4:S((function(e){return Object(y.without)(e,t)}));case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[c,o,s]),A=Object(p.useCallback)(function(){var e=l()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(),e.next=3,P(t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[w,P]),L=W(a),V=W(r);Object(p.useEffect)((function(){n&&a&&(a!==L||Object(y.difference)(r,V).length)&&C()}),[n,a,L,r,V,C]),Object(p.useEffect)((function(){if(n&&f&&null!==b){var e=r.filter((function(e){return!x(e)}));e.length&&P(e),d()}}),[n,f,b,P,d,x,r]),Object(p.useEffect)((function(){g&&!k.current&&(C(),k.current=!0)}),[g,C]),Object(p.useEffect)((function(){if(n&&!Object(y.isEmpty)(b))return Object(y.filter)(b,(function(e){return Object(y.isEmpty)(e.updated_at)})).length>0&&(j.current=setInterval((function(){C()}),1e4)),function(){clearInterval(j.current)}}),[n,b,C]);var Y=n&&null===b;return r&&!Object(y.isEmpty)(r)&&Object(p.createElement)(p.Fragment,null,Object(p.createElement)(H,null,Object(p.createElement)("table",{className:"yoast yoast-table"},Object(p.createElement)("thead",null,Object(p.createElement)("tr",null,Object(p.createElement)("th",{scope:"col",abbr:Object(h.__)("Tracking","wordpress-seo")},Object(h.__)("Tracking","wordpress-seo")),Object(p.createElement)("th",{scope:"col",abbr:Object(h.__)("Keyphrase","wordpress-seo")},Object(h.__)("Keyphrase","wordpress-seo")),Object(p.createElement)("th",{scope:"col",abbr:Object(h.__)("Position","wordpress-seo")},Object(h.__)("Position","wordpress-seo")),Object(p.createElement)("th",{scope:"col",abbr:Object(h.__)("Position over time","wordpress-seo")},Object(h.__)("Position over time","wordpress-seo")),Object(p.createElement)(K,{className:"yoast-table--nobreak"}))),Object(p.createElement)("tbody",null,r.map((function(e,t){return Object(p.createElement)(F.b,{key:"trackable-keyphrase-".concat(t),keyphrase:e,onTrackKeyphrase:A,onUntrackKeyphrase:I,rowData:x(e),isFocusKeyphrase:e===O.trim(),websiteId:v,isDisabled:!n,isLoading:Y||_.indexOf(e.toLowerCase())>=0})}))))),Object(p.createElement)("p",{style:{marginBottom:0,position:"relative"}},Object(p.createElement)(M,{href:wpseoAdminGlobalL10n["links.wincher.login"]},Object(h.sprintf)(
26
  /* translators: %s expands to Wincher */
27
- Object(h.__)("Get more insights over at %s","wordpress-seo"),"Wincher")),Object(p.createElement)(B,null,Object(h.__)("* focus keyphrase","wordpress-seo"))))};V.propTypes={addTrackedKeyphrase:b.a.func.isRequired,isLoggedIn:b.a.bool,isNewlyAuthenticated:b.a.bool,keyphrases:b.a.array,newRequest:b.a.func.isRequired,removeTrackedKeyphrase:b.a.func.isRequired,setRequestFailed:b.a.func.isRequired,setKeyphraseLimitReached:b.a.func.isRequired,setRequestSucceeded:b.a.func.isRequired,setTrackedKeyphrases:b.a.func.isRequired,setHasTrackedAll:b.a.func.isRequired,trackAll:b.a.bool,trackedKeyphrases:b.a.object,websiteId:b.a.string,permalink:b.a.string.isRequired,focusKeyphrase:b.a.string},V.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],trackAll:!1,trackedKeyphrases:null,websiteId:"",focusKeyphrase:""};var Y,G,z,$=V,Z=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getWincherWebsiteId,r=t.getWincherTrackedKeyphrases,a=t.getWincherTrackableKeyphrases,o=t.getWincherLoginStatus,i=t.getWincherPermalink,s=t.getFocusKeyphrase,c=t.isWincherNewlyAuthenticated,u=t.shouldWincherTrackAll;return{focusKeyphrase:s(),keyphrases:a(),trackedKeyphrases:r(),isLoggedIn:o(),trackAll:u(),websiteId:n(),isNewlyAuthenticated:c(),permalink:i()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setWincherNewRequest,r=t.setWincherRequestSucceeded,a=t.setWincherRequestFailed,o=t.setWincherSetKeyphraseLimitReached,i=t.setWincherTrackedKeyphrases,s=t.setWincherTrackingForKeyphrase,c=t.setWincherTrackAllKeyphrases,u=t.unsetWincherTrackingForKeyphrase;return{newRequest:function(){n()},setRequestSucceeded:function(e){r(e)},setRequestFailed:function(e){a(e)},setKeyphraseLimitReached:function(e){o(e)},addTrackedKeyphrase:function(e){s(e)},removeTrackedKeyphrase:function(e){u(e)},setTrackedKeyphrases:function(e){i(e)},setHasTrackedAll:function(){c(!1)}}}))])($),J=n(94),X=function(){return Object(p.createElement)(O.Alert,{type:"error"},Object(h.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo"))},Q=function(){return Object(p.createElement)(O.Alert,{type:"info"},Object(h.sprintf)(
28
  /* translators: %s: Expands to "Wincher". */
29
- Object(h.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher"))},ee=n(86),te=n(87),ne=function(){return Object(p.createElement)(O.Alert,{type:"error"},Object(h.__)("Before you can track your SEO performance make sure to set either the post’s title and save it as a draft or manually set the post’s slug.","wordpress-seo"))},re=function(e){var t=e.response,n=e.onLogin;return 403===t.status||404===t.status?Object(p.createElement)(te.a,{onReconnect:n}):Object(p.createElement)(C,null)};re.propTypes={response:b.a.object.isRequired,onLogin:b.a.func.isRequired};var ae=function(e){var t=e.isSuccess,n=e.response,r=e.allKeyphrasesMissRanking,a=e.onLogin,o=e.keyphraseLimitReached,i=e.limit;return o?Object(p.createElement)(x,{limit:i}):Object(y.isEmpty)(n)||t?r?Object(p.createElement)(I,null):null:Object(p.createElement)(re,{response:n,onLogin:a})};ae.propTypes={isSuccess:b.a.bool.isRequired,allKeyphrasesMissRanking:b.a.bool.isRequired,response:b.a.object,onLogin:b.a.func.isRequired,keyphraseLimitReached:b.a.bool.isRequired,limit:b.a.number.isRequired},ae.defaultProps={response:{}};var oe=null,ie=function(){var e=l()(m.a.mark((function e(t,n){var r,a,o;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.onAuthentication,a=t.setRequestSucceeded,o=t.setRequestFailed,e.next=3,Object(N.d)((function(){return Object(N.a)(n)}),function(){var e=l()(m.a.mark((function e(t){var o;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r(!0,!0,n.websiteId.toString()),a(t),(o=oe.getPopup())&&o.close();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),function(){var e=l()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",o(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e)})));return function(_x,t){return e.apply(this,arguments)}}(),se=function(){var e=l()(m.a.mark((function e(t){var n,r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!oe||oe.isClosed()){e.next=3;break}return oe.focus(),e.abrupt("return");case 3:return e.next=5,Object(N.b)();case 5:n=e.sent,r=n.url,(oe=new ee.a(r,{success:{type:"wincher:oauth:success",callback:function(e){return ie(t,e)}},error:{type:"wincher:oauth:error",callback:function(){return t.onAuthentication(!1,!1)}}},{title:"Wincher_login",width:500,height:700})).createPopup();case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ce=function(e){return e.isLoggedIn?null:Object(p.createElement)("p",null,Object(p.createElement)(O.NewButton,{onClick:e.onLogin,variant:"primary"},Object(h.sprintf)(
30
  /* translators: %s expands to Wincher */
31
  Object(h.__)("Connect with %s","wordpress-seo"),"Wincher")))};ce.propTypes={isLoggedIn:b.a.bool.isRequired,onLogin:b.a.func.isRequired};var ue=v.a.div(Y||(Y=c()(["\n\tp {\n\t\tmargin: 1em 0;\n\t}\n"]))),le=v.a.div(G||(G=c()(["\n\t",";\n"])),(function(e){return e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"})),pe=v.a.div(z||(z=c()(["\n\tfont-weight: var(--yoast-font-weight-bold);\n\tcolor: var(--yoast-color-label);\n\tfont-size: var(--yoast-font-size-default);\n"]))),de=function(e){var t=e.isLoggedIn,n=e.keyphrases,r=e.shouldTrackAll;return!e.permalink&&t?Object(p.createElement)(ne,null):0===n.length?Object(p.createElement)(X,null):Object(p.createElement)(le,{isDisabled:!t},Object(p.createElement)("p",null,Object(h.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")),t&&r&&Object(p.createElement)(Q,null),Object(p.createElement)(Z,null))};function me(e){var t=e.isNewlyAuthenticated,n=e.isLoggedIn,r=Object(p.useCallback)((function(){se(e)}),[se,e]);return Object(p.createElement)(ue,null,t&&Object(p.createElement)(P,null),Object(p.createElement)(pe,null,Object(h.__)("SEO performance","wordpress-seo"),Object(p.createElement)(O.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"],linkText:Object(h.__)("Learn more about the SEO performance feature.","wordpress-seo")})),Object(p.createElement)(J.a,null),Object(p.createElement)(ce,{isLoggedIn:n,onLogin:r}),Object(p.createElement)(ae,i()({},e,{onLogin:r})),Object(p.createElement)(de,e))}de.propTypes={keyphrases:b.a.array.isRequired,isLoggedIn:b.a.bool.isRequired,shouldTrackAll:b.a.bool.isRequired,permalink:b.a.string.isRequired},me.propTypes={isLoggedIn:b.a.bool,isNewlyAuthenticated:b.a.bool,keyphrases:b.a.array,response:b.a.object,shouldTrackAll:b.a.bool,permalink:b.a.string},me.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],response:{},shouldTrackAll:!1,permalink:""},t.a=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.isWincherNewlyAuthenticated,r=t.getWincherKeyphraseLimitReached,a=t.getWincherLimit,o=t.getWincherLoginStatus,i=t.getWincherRequestIsSuccess,s=t.getWincherRequestResponse,c=t.getWincherTrackableKeyphrases,u=t.getWincherAllKeyphrasesMissRanking,l=t.getWincherPermalink,p=t.shouldWincherAutomaticallyTrackAll;return{keyphrases:c(),allKeyphrasesMissRanking:u(),isLoggedIn:o(),isNewlyAuthenticated:n(),isSuccess:i(),keyphraseLimitReached:r(),limit:a(),response:s(),shouldTrackAll:p(),permalink:l()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setWincherWebsiteId,r=t.setWincherRequestSucceeded,a=t.setWincherRequestFailed,o=t.setWincherLoginStatus;return{setRequestSucceeded:function(e){r(e)},setRequestFailed:function(e){a(e)},onAuthentication:function(e,t,r){n(r),o(e,t)}}}))])(me)},,,,,,,,,,,function(e,t,n){"use strict";var r,a=n(15),o=n.n(a),i=n(0),s=n(1),c=n.n(s),u=n(13),l=n.n(u),p=n(4),d=n(8),m=l()(p.StyledSection)(r||(r=o()(["\n\t&"," {\n\t\tpadding: 0;\n\n\t\t& "," {\n\t\t\t",": 20px;\n\t\t\tmargin-left: ",";\n\t\t}\n\t}\n"])),p.StyledSectionBase,p.StyledHeading,Object(d.getDirectionalStyle)("padding-left","padding-right"),Object(d.getDirectionalStyle)("0","20px")),h=function(e){var t=e.children,n=e.title,r=e.icon,a=e.hasPaperStyle,o=e.shoppingData;return Object(i.createElement)(m,{headingLevel:3,headingText:n,headingIcon:r,headingIconColor:"#555",hasPaperStyle:a,shoppingData:o},t)};h.propTypes={children:c.a.element,title:c.a.string,icon:c.a.string,hasPaperStyle:c.a.bool,shoppingData:c.a.object},h.defaultProps={hasPaperStyle:!0,shoppingData:null},t.a=h},function(e,t){e.exports=window.wp.sanitize},,function(e,t,n){"use strict";var r=n(6),a=n(20),o=n(0),i=n(2),s=n(1),c=n.n(s),u=n(3),l=n(4),p=function(){return Object(o.createElement)("p",{className:"yoast-related-keyphrases-modal__loading-message"},Object(i.sprintf)(
32
  /* translators: %1$s expands to "Yoast SEO", %2$s expands to "Semrush". */
@@ -34,7 +34,7 @@ Object(i.__)("Please wait while %1$s connects to %2$s to get related keyphrases.
34
  /* translators: %s : Expands to "Semrush". */
35
  Object(i.__)("You've reached your request limit for today. Check back tomorrow or upgrade your plan over at %s.","wordpress-seo"),"Semrush")),Object(o.createElement)(m,{href:window.wpseoAdminL10n["shortlinks.semrush.prices"],className:"yoast-button-upsell"},Object(i.sprintf)(
36
  /* translators: %s : Expands to "Semrush". */
37
- Object(i.__)("Upgrade your %s plan","wordpress-seo"),"Semrush"),Object(o.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})))},f=n(16),b=n.n(f),y=n(9),g=n.n(y),v=n(10),O=n.n(v),w=n(12),j=n.n(w),E=n(18),k=n.n(E),T=n(19),R=n.n(T),_=n(11),S=n.n(_),x=n(7),C=n.n(x),P=n(36),I=n.n(P),A=n(39);var q="yoast-semrush-country-selector",L=[{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"}],D=function(e){k()(c,e);var t,n,r,a,s=(r=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=S()(r);if(a){var n=S()(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return R()(this,e)});function c(e){var t;return g()(this,c),(t=s.call(this,e)).relatedKeyphrasesRequest=t.relatedKeyphrasesRequest.bind(j()(t)),t.onChangeHandler=t.onChangeHandler.bind(j()(t)),t}return O()(c,[{key:"componentDidMount",value:function(){this.props.response&&this.props.keyphrase===this.props.lastRequestKeyphrase||this.relatedKeyphrasesRequest()}},{key:"storeCountryCode",value:function(e){I()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}})}},{key:"relatedKeyphrasesRequest",value:(n=b()(C.a.mark((function e(){var t,n,r,a;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,n=t.keyphrase,r=t.countryCode,(0,t.newRequest)(r,n),this.storeCountryCode(r),e.next=5,this.doRequest(n,r);case 5:if(200!==(a=e.sent).status){e.next=9;break}return this.handleSuccessResponse(a),e.abrupt("return");case 9:this.handleFailedResponse(a);case 10:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"handleSuccessResponse",value:function(e){var t=this.props,n=t.setNoResultsFound,r=t.setRequestSucceeded;0!==e.results.rows.length?r(e):n()}},{key:"handleFailedResponse",value:function(e){var t=this.props,n=t.setRequestLimitReached,r=t.setRequestFailed;"error"in e&&(e.error.includes("TOTAL LIMIT EXCEEDED")?n():r(e))}},{key:"doRequest",value:(t=b()(C.a.mark((function e(t,n){return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I()({path:Object(A.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:t,country_code:n})});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(_x,e){return t.apply(this,arguments)})},{key:"onChangeHandler",value:function(e){this.props.setCountry(e)}},{key:"render",value:function(){return Object(o.createElement)("div",{id:q},Object(o.createElement)(l.SingleSelect,{id:q+"-select",label:Object(i.__)("Show results for:","wordpress-seo"),name:"semrush-country-code",options:L,selected:this.props.countryCode,onChange:this.onChangeHandler,wrapperClassName:"yoast-field-group yoast-field-group--inline"}),Object(o.createElement)(l.NewButton,{id:q+"-button",variant:"secondary",onClick:this.relatedKeyphrasesRequest},Object(i.__)("Select country","wordpress-seo")))}}]),c}(o.Component);D.propTypes={keyphrase:c.a.string,countryCode:c.a.string,response:c.a.object,lastRequestKeyphrase:c.a.string,setCountry:c.a.func.isRequired,newRequest:c.a.func.isRequired,setNoResultsFound:c.a.func.isRequired,setRequestSucceeded:c.a.func.isRequired,setRequestLimitReached:c.a.func.isRequired,setRequestFailed:c.a.func.isRequired},D.defaultProps={keyphrase:"",countryCode:"us",response:{},lastRequestKeyphrase:""};var F=D,N=n(58),M=n(53);var B=Object(d.makeOutboundLink)(),K=function(e){k()(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=S()(t);if(n){var a=S()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return R()(this,e)});function a(e){var t;return g()(this,a),(t=r.call(this,e)).transformTrendDataToChartPoints=t.transformTrendDataToChartPoints.bind(j()(t)),t.getAreaChartDataTableHeaderLabels=t.getAreaChartDataTableHeaderLabels.bind(j()(t)),t.mapAreaChartDataToTableData=t.mapAreaChartDataToTableData.bind(j()(t)),t}return O()(a,[{key:"transformTrendDataToChartPoints",value:function(e){return e.split(",").map((function(e,t){return{x:t,y:parseFloat(e)}}))}},{key:"getAreaChartDataTableHeaderLabels",value:function(){return[Object(i.__)("Twelve months ago","wordpress-seo"),Object(i.__)("Eleven months ago","wordpress-seo"),Object(i.__)("Ten months ago","wordpress-seo"),Object(i.__)("Nine months ago","wordpress-seo"),Object(i.__)("Eight months ago","wordpress-seo"),Object(i.__)("Seven months ago","wordpress-seo"),Object(i.__)("Six months ago","wordpress-seo"),Object(i.__)("Five months ago","wordpress-seo"),Object(i.__)("Four months ago","wordpress-seo"),Object(i.__)("Three months ago","wordpress-seo"),Object(i.__)("Two months ago","wordpress-seo"),Object(i.__)("Last month","wordpress-seo")]}},{key:"mapAreaChartDataToTableData",value:function(e){return Math.round(100*e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.keyphrase,r=t.relatedKeyphrases,a=t.countryCode,s=t.data,c=t.renderAction,l="https://www.semrush.com/analytics/keywordoverview/?q="+encodeURIComponent(n)+"&db="+encodeURIComponent(a);return s&&!Object(u.isEmpty)(s.results)&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("table",{className:"yoast yoast-table"},Object(o.createElement)("thead",null,Object(o.createElement)("tr",null,Object(o.createElement)("th",{scope:"col",className:"yoast-table--primary"},Object(i.__)("Related keyphrase","wordpress-seo")),Object(o.createElement)("th",{scope:"col",abbr:Object(i.__)("Volume","wordpress-seo")},Object(i.__)("Volume","wordpress-seo"),Object(o.createElement)(M.a,{href:window.wpseoAdminL10n["shortlinks.semrush.volume_help"],className:"dashicons"},Object(o.createElement)("span",{className:"screen-reader-text"},Object(i.__)("Learn more about the related keyphrases volume","wordpress-seo")))),Object(o.createElement)("th",{scope:"col",abbr:Object(i.__)("Trend","wordpress-seo")},Object(i.__)("Trend","wordpress-seo"),Object(o.createElement)(M.a,{href:window.wpseoAdminL10n["shortlinks.semrush.trend_help"],className:"dashicons"},Object(o.createElement)("span",{className:"screen-reader-text"},Object(i.__)("Learn more about the related keyphrases trend","wordpress-seo")))),c&&Object(o.createElement)("td",{className:"yoast-table--nobreak"}))),Object(o.createElement)("tbody",null,s.results.rows.map((function(t,n){var a=t[0],s=e.transformTrendDataToChartPoints(t[2]),u=e.getAreaChartDataTableHeaderLabels();return Object(o.createElement)("tr",{key:n},Object(o.createElement)("td",null,a),Object(o.createElement)("td",null,t[1]),Object(o.createElement)("td",{className:"yoast-table--nopadding"},Object(o.createElement)(N.a,{width:66,height:24,data:s,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:e.mapAreaChartDataToTableData,dataTableCaption:Object(i.__)("Keyphrase volume in the last 12 months on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:u})),c&&Object(o.createElement)("td",{className:"yoast-table--nobreak"},c(a,r)))})))),Object(o.createElement)("p",{style:{marginBottom:0}},Object(o.createElement)(B,{href:l},Object(i.sprintf)(
38
  /* translators: %s expands to Semrush */
39
  Object(i.__)("Get more insights at %s","wordpress-seo"),"Semrush"))))}}]),a}(o.Component);K.propTypes={data:c.a.object,keyphrase:c.a.string,relatedKeyphrases:c.a.array,countryCode:c.a.string,renderAction:c.a.func},K.defaultProps={data:{},keyphrase:"",relatedKeyphrases:[],countryCode:"us",renderAction:null};var H=K,W=Object(d.makeOutboundLink)(),U=function(){return Object(o.createElement)(l.Alert,{type:"info"},Object(i.sprintf)(
40
  /* translators: %s: Expands to "Yoast SEO". */
@@ -42,11 +42,11 @@ Object(i.__)("Would you like to be able to add these related keyphrases to the %
42
  /* translators: %s: Expands to "Yoast SEO Premium". */
43
  Object(i.__)("Check out %s!","wordpress-seo"),"Yoast SEO Premium")))},V=function(){return Object(o.createElement)(l.Alert,{type:"error"},Object(i.__)("We've encountered a problem trying to get related keyphrases. Please try again later.","wordpress-seo"))},Y=function(){return Object(o.createElement)(l.Alert,{type:"warning"},Object(i.sprintf)(
44
  /* translators: %s: Expands to "Yoast SEO". */
45
- Object(i.__)("You've reached the maximum amount of 4 related keyphrases. You can change or remove related keyphrases in the %s metabox or sidebar.","wordpress-seo"),"Yoast SEO"))},G=n(23);function z(e){var t=e.response,n=e.lastRequestKeyphrase,r=e.keyphrase,a=e.newRequest,s=e.setCountry,c=e.renderAction,l=e.countryCode,d=e.requestLimitReached,m=e.setRequestFailed,f=e.setNoResultsFound,b=e.relatedKeyphrases,y=e.setRequestSucceeded,g=e.setRequestLimitReached,v=Object(G.a)().isPremium;return Object(o.createElement)(o.Fragment,null,!d&&Object(o.createElement)(o.Fragment,null,!v&&Object(o.createElement)(U,null),v&&function(e){return e&&e.length>=4}(b)&&Object(o.createElement)(Y,null),Object(o.createElement)(F,{countryCode:l,setCountry:s,newRequest:a,keyphrase:r,setRequestFailed:m,setNoResultsFound:f,setRequestSucceeded:y,setRequestLimitReached:g,response:t,lastRequestKeyphrase:n})),function(e){var t=e.isPending,n=e.requestLimitReached,r=e.isSuccess,a=e.response,s=e.requestHasData;return t?Object(o.createElement)(p,null):n?Object(o.createElement)(h,null):!r&&function(e){return!Object(u.isEmpty)(e)&&"error"in e}(a)?Object(o.createElement)(V,null):s?void 0:Object(o.createElement)("p",null,Object(i.__)("Sorry, there's no data available for that keyphrase/country combination.","wordpress-seo"))}(e),Object(o.createElement)(H,{keyphrase:r,relatedKeyphrases:b,countryCode:l,renderAction:c,data:t}))}z.propTypes={keyphrase:c.a.string,relatedKeyphrases:c.a.array,renderAction:c.a.func,requestLimitReached:c.a.bool,countryCode:c.a.string.isRequired,setCountry:c.a.func.isRequired,newRequest:c.a.func.isRequired,setRequestSucceeded:c.a.func.isRequired,setRequestLimitReached:c.a.func.isRequired,setRequestFailed:c.a.func.isRequired,setNoResultsFound:c.a.func.isRequired,response:c.a.object,lastRequestKeyphrase:c.a.string},z.defaultProps={keyphrase:"",relatedKeyphrases:[],renderAction:null,requestLimitReached:!1,response:{},lastRequestKeyphrase:""},t.a=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getFocusKeyphrase,r=t.getSEMrushSelectedCountry,a=t.getSEMrushRequestLimitReached,o=t.getSEMrushRequestResponse,i=t.getSEMrushRequestIsSuccess,s=t.getSEMrushIsRequestPending,c=t.getSEMrushRequestHasData,u=t.getSEMrushRequestKeyphrase;return{keyphrase:n(),countryCode:r(),requestLimitReached:a(),response:o(),isSuccess:i(),isPending:s(),requestHasData:c(),lastRequestKeyphrase:u()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setSEMrushChangeCountry,r=t.setSEMrushNewRequest,a=t.setSEMrushRequestSucceeded,o=t.setSEMrushRequestFailed,i=t.setSEMrushSetRequestLimitReached,s=t.setSEMrushNoResultsFound;return{setCountry:function(e){n(e)},newRequest:function(e,t){r(e,t)},setRequestSucceeded:function(e){a(e)},setRequestFailed:function(e){o(e)},setRequestLimitReached:function(){i()},setNoResultsFound:function(){s()}}}))])(z)},,,,,function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(55),i=n(45);t.a=Object(r.compose)([Object(a.withSelect)((function(e){return{isCornerstone:(0,e("yoast-seo/editor").isCornerstoneContent)(),learnMoreUrl:wpseoAdminL10n["shortlinks.cornerstone_content_info"]}})),Object(a.withDispatch)((function(e){return{onChange:e("yoast-seo/editor").toggleCornerstoneContent}})),Object(i.a)()])(o.CollapsibleCornerstone)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3);function a(e){return void 0===e.length?e:Object(r.flatten)(e).sort((function(e,t){return void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority}))}},,function(e,t,n){"use strict";var r=n(9),a=n.n(r),o=n(10),i=n.n(o),s=n(3),c=function(){function e(){a()(this,e)}return i()(e,[{key:"listen",value:function(e){this.classicEditorContainer=document.getElementById("et_pb_main_editor_wrap"),this.classicEditorContainer&&new MutationObserver((function(t){Object(s.forEach)(t,(function(t){"attributes"===t.type&&"class"===t.attributeName&&(t.target.classList.contains("et_pb_hidden")?e.classicEditorHidden():e.classicEditorShown())}))})).observe(this.classicEditorContainer,{attributes:!0})}}],[{key:"isActive",value:function(){return!!document.getElementById("et_pb_main_editor_wrap")}},{key:"isTinyMCEHidden",value:function(){var e=document.getElementById("et_pb_main_editor_wrap");return!!e&&e.classList.contains("et_pb_hidden")}}]),e}(),u=function(){function e(){a()(this,e)}return i()(e,null,[{key:"isActive",value:function(){return!!window.VCV_I18N}}]),e}(),l={classicEditorHidden:s.noop,classicEditorShown:s.noop,pageBuilderLoaded:s.noop},p=function(){function e(){a()(this,e),this.determineActivePageBuilders()}return i()(e,[{key:"determineActivePageBuilders",value:function(){c.isActive()&&(this.diviActive=!0),u.isActive()&&(this.vcActive=!0)}},{key:"isPageBuilderActive",value:function(){return this.diviActive||this.vcActive}},{key:"listen",value:function(e){this.callbacks=Object(s.defaults)(e,l),this.diviActive&&(new c).listen(e)}},{key:"isClassicEditorHidden",value:function(){return!(!this.diviActive||!c.isTinyMCEHidden())}}]),e}();t.a=p},function(e,t,n){"use strict";var r,a=n(14),o=n.n(a),i=n(0),s=n(20),c=n(6),u=n(2),l=n(1),p=n.n(l),d=n(24),m=n.n(d),h=n(15),f=n.n(h),b=n(4),y=n(21),g=n(8),v=n(31),O=n.n(v),w=n(13),j=n.n(w),E=n(77),k=n(75),T=j.a.div(r||(r=f()(["\n\tpadding: 16px;\n"]))),R=function(e,t,n){var r=e.find((function(e){return e.value===t}));return[{name:Object(u.sprintf)(
46
  /* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */
47
  Object(u.__)("Default for %1$s (%2$s)","wordpress-seo"),n,r?r.name:""),value:""}].concat(m()(e))},_=function(e){return Object(u.sprintf)(
48
  /* translators: %1$s expands to the plural name of the current post type, %2$s and %3$s expand to a link to the Search Appearance Settings page */
49
- Object(u.__)("You can change the default type for %1$s in your %2$sSearch Appearance Settings%3$s.","wordpress-seo"),e,"{{link}}","{{/link}}")},S=function(e){return Object(i.createElement)(b.FieldGroup,{label:e.helpTextTitle,linkTo:e.helpTextLink,linkText:Object(u.__)("Learn more about structured data with Schema.org","wordpress-seo"),description:e.helpTextDescription})};S.propTypes={helpTextTitle:p.a.string.isRequired,helpTextLink:p.a.string.isRequired,helpTextDescription:p.a.string.isRequired};var x=function(e){return Object(i.createElement)("p",null,e.helpTextDescription+" ",Object(i.createElement)("a",{href:e.helpTextLink},Object(u.__)("Read more about Schema.","wordpress-seo")))};x.propTypes={helpTextDescription:p.a.string.isRequired,helpTextLink:p.a.string.isRequired};var C=function(e){var t,n=R(e.pageTypeOptions,e.defaultPageType,e.postTypeName),r=R(e.articleTypeOptions,e.defaultArticleType,e.postTypeName),a=Object(k.isFeatureEnabled)("SCHEMA_BLOCKS");return Object(i.createElement)(i.Fragment,null,a?Object(i.createElement)(x,e):Object(i.createElement)(S,e),a&&Object(i.createElement)(y.Slot,{name:Object(g.join)(["yoast-schema-blocks-analysis",e.location])}),Object(i.createElement)(b.FieldGroup,{label:Object(u.__)("What type of page or content is this?","wordpress-seo"),linkTo:e.additionalHelpTextLink,linkText:Object(u.__)("Learn more about page or content types","wordpress-seo")}),Object(i.createElement)(b.Select,{id:Object(g.join)(["yoast-schema-page-type",e.location]),options:n,label:Object(u.__)("Page type","wordpress-seo"),onChange:e.schemaPageTypeChange,selected:e.schemaPageTypeSelected}),e.showArticleTypeInput&&Object(i.createElement)(b.Select,{id:Object(g.join)(["yoast-schema-article-type",e.location]),options:r,label:Object(u.__)("Article type","wordpress-seo"),onChange:e.schemaArticleTypeChange,selected:e.schemaArticleTypeSelected}),e.displayFooter&&Object(i.createElement)("p",null,(t=e.postTypeName,O()({mixedString:_(t),components:{link:Object(i.createElement)("a",{href:"/wp-admin/admin.php?page=wpseo_titles#top#post-types",target:"_blank"})}}))))};C.propTypes={schemaPageTypeChange:p.a.func,schemaPageTypeSelected:p.a.string,pageTypeOptions:E.b.isRequired,schemaArticleTypeChange:p.a.func,schemaArticleTypeSelected:p.a.string,articleTypeOptions:E.b.isRequired,showArticleTypeInput:p.a.bool.isRequired,additionalHelpTextLink:p.a.string.isRequired,helpTextLink:p.a.string.isRequired,helpTextTitle:p.a.string.isRequired,helpTextDescription:p.a.string.isRequired,postTypeName:p.a.string.isRequired,displayFooter:p.a.bool,defaultPageType:p.a.string.isRequired,defaultArticleType:p.a.string.isRequired,location:p.a.string.isRequired},C.defaultProps={schemaPageTypeChange:function(){},schemaPageTypeSelected:null,schemaArticleTypeChange:function(){},schemaArticleTypeSelected:null,displayFooter:!1};var P=function(e){return e.isMetabox?Object(i.createPortal)(Object(i.createElement)(T,null,Object(i.createElement)(C,e)),document.getElementById("wpseo-meta-section-schema")):Object(i.createElement)(C,e)};P.propTypes={showArticleTypeInput:p.a.bool,articleTypeLabel:p.a.string,additionalHelpTextLink:p.a.string,pageTypeLabel:p.a.string.isRequired,helpTextLink:p.a.string.isRequired,helpTextTitle:p.a.string.isRequired,helpTextDescription:p.a.string.isRequired,isMetabox:p.a.bool.isRequired,postTypeName:p.a.string.isRequired,displayFooter:p.a.bool,loadSchemaArticleData:p.a.func.isRequired,loadSchemaPageData:p.a.func.isRequired,location:p.a.string.isRequired},P.defaultProps={showArticleTypeInput:!1,articleTypeLabel:"",additionalHelpTextLink:"",displayFooter:!1};var I=P,A=n(78),q=n(45);function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var F=function(e){var t=null!==A.a.articleTypeInput;Object(i.useEffect)((function(){e.loadSchemaPageData(),t&&e.loadSchemaArticleData()}),[]);var n=window.wpseoScriptData.metabox.schema,r=n.pageTypeOptions,a=n.articleTypeOptions,o={articleTypeLabel:Object(u.__)("Article type","wordpress-seo"),pageTypeLabel:Object(u.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:Object(u.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:Object(u.__)("This helps search engines understand your website and your content. You can change some of your settings for this page below.","wordpress-seo"),showArticleTypeInput:t,pageTypeOptions:r,articleTypeOptions:a},s=D(D(D({},e),o),"metabox"===e.location?{helpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.page_type"],isMetabox:!0}:{helpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.page_type"],isMetabox:!1});return Object(i.createElement)(I,s)};F.propTypes={displayFooter:p.a.bool.isRequired,schemaPageTypeSelected:p.a.string.isRequired,schemaArticleTypeSelected:p.a.string.isRequired,defaultArticleType:p.a.string.isRequired,defaultPageType:p.a.string.isRequired,loadSchemaPageData:p.a.func.isRequired,loadSchemaArticleData:p.a.func.isRequired,schemaPageTypeChange:p.a.func.isRequired,schemaArticleTypeChange:p.a.func.isRequired,location:p.a.string.isRequired},t.a=Object(s.compose)([Object(c.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getPreferences,r=t.getPageType,a=t.getDefaultPageType,o=t.getArticleType,i=t.getDefaultArticleType;return{displayFooter:n().displaySchemaSettingsFooter,schemaPageTypeSelected:r(),schemaArticleTypeSelected:o(),defaultArticleType:i(),defaultPageType:a()}})),Object(c.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setPageType,r=t.setArticleType;return{loadSchemaPageData:t.getSchemaPageData,loadSchemaArticleData:t.getSchemaArticleData,schemaPageTypeChange:n,schemaArticleTypeChange:r}})),Object(q.a)()])(F)},function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(0),i=n(2),s=n(4),c=n(8),u=n(1),l=n.n(u),p=n(30),d=function(e){var t=e.noIndex,n=e.onNoIndexChange,r=e.editorContext,a=e.isPrivateBlog,u=function(e){var t=Object(i.__)("No","wordpress-seo"),n=Object(i.__)("Yes","wordpress-seo"),r=e.noIndex?t:n;return window.wpseoScriptData.isPost?[{name:Object(i.sprintf)(
50
  /* Translators: %s translates to "yes" or "no", %s translates to the Post Label in plural form */
51
  Object(i.__)("%s (current default for %s)","wordpress-seo"),r,e.postTypeNamePlural),value:"0"},{name:t,value:"1"},{name:n,value:"2"}]:[{name:Object(i.sprintf)(
52
  /* Translators: %s translates to the "yes" or "no" ,%s translates to the Post Label in plural form */
@@ -54,6 +54,6 @@ Object(i.__)("%s (current default for %s)","wordpress-seo"),r,e.postTypeNamePlur
54
  /* Translators: %s translates to the Post Label in singular form */
55
  Object(i.__)("Allow search engines to show this %s in search results?","wordpress-seo"),r.postTypeNameSingular),onChange:n,id:Object(c.join)(["yoast-meta-robots-noindex",e]),options:u,selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.allow_search_engines"],linkText:Object(i.__)("Learn more about the no-index setting on our help page.","wordpress-seo")}))}))};d.propTypes={noIndex:l.a.string.isRequired,onNoIndexChange:l.a.func.isRequired,editorContext:l.a.object.isRequired,isPrivateBlog:l.a.bool},d.defaultProps={isPrivateBlog:!1};var m=function(e){var t=e.noFollow,n=e.onNoFollowChange,r=e.postTypeName;return Object(o.createElement)(p.LocationConsumer,null,(function(e){var a=Object(c.join)(["yoast-meta-robots-nofollow",e]);return Object(o.createElement)(s.RadioButtonGroup,{id:a,options:[{value:"0",label:"Yes"},{value:"1",label:"No"}],label:Object(i.sprintf)(
56
  /* Translators: %s translates to the Post Label in singular form */
57
- Object(i.__)("Should search engines follow links on this %s","wordpress-seo"),r),groupName:a,onChange:n,selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.follow_links"],linkText:Object(i.__)("Learn more about the no-follow setting on our help page.","wordpress-seo")})}))};m.propTypes={noFollow:l.a.string.isRequired,onNoFollowChange:l.a.func.isRequired,postTypeName:l.a.string.isRequired};var h=function(e){var t=e.advanced,n=e.onAdvancedChange;return Object(o.createElement)(p.LocationConsumer,null,(function(e){var r=Object(c.join)(["yoast-meta-robots-advanced",e]),a="".concat(r,"-input");return Object(o.createElement)(s.MultiSelect,{label:Object(i.__)("Meta robots advanced","wordpress-seo"),onChange:n,id:r,inputId:a,options:[{name:Object(i.__)("No Image Index","wordpress-seo"),value:"noimageindex"},{name:Object(i.__)("No Archive","wordpress-seo"),value:"noarchive"},{name:Object(i.__)("No Snippet","wordpress-seo"),value:"nosnippet"}],selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.meta_robots"],linkText:Object(i.__)("Learn more about advanced meta robots settings on our help page.","wordpress-seo")})}))};h.propTypes={advanced:l.a.array.isRequired,onAdvancedChange:l.a.func.isRequired};var f=function(e){var t=e.breadcrumbsTitle,n=e.onBreadcrumbsTitleChange;return Object(o.createElement)(p.LocationConsumer,null,(function(e){return Object(o.createElement)(s.TextInput,{label:Object(i.__)("Breadcrumbs Title","wordpress-seo"),id:Object(c.join)(["yoast-breadcrumbs-title",e]),onChange:n,value:t,linkTo:wpseoAdminL10n["shortlinks.advanced.breadcrumbs_title"],linkText:Object(i.__)("Learn more about the breadcrumbs title setting on our help page.","wordpress-seo")})}))};f.propTypes={breadcrumbsTitle:l.a.string.isRequired,onBreadcrumbsTitleChange:l.a.func.isRequired};var b=function(e){var t=e.canonical,n=e.onCanonicalChange;return Object(o.createElement)(p.LocationConsumer,null,(function(e){return Object(o.createElement)(s.TextInput,{label:Object(i.__)("Canonical URL","wordpress-seo"),id:Object(c.join)(["yoast-canonical",e]),onChange:n,value:t,linkTo:"https://yoa.st/canonical-url",linkText:Object(i.__)("Learn more about canonical URLs on our help page.","wordpress-seo")})}))};b.propTypes={canonical:l.a.string.isRequired,onCanonicalChange:l.a.func.isRequired};var y=function(e){var t=e.noIndex,n=e.noFollow,r=e.advanced,a=e.breadcrumbsTitle,i=e.canonical,s=e.onNoIndexChange,c=e.onNoFollowChange,u=e.onAdvancedChange,l=e.onBreadcrumbsTitleChange,p=e.onCanonicalChange,y=e.onLoad,g=e.isLoading,v=e.editorContext,O=e.isBreadcrumbsDisabled,w=e.isPrivateBlog;Object(o.useEffect)((function(){setTimeout((function(){g&&y()}))}));var j={noIndex:t,onNoIndexChange:s,editorContext:v,isPrivateBlog:w},E={noFollow:n,onNoFollowChange:c,postTypeName:v.postTypeNameSingular},k={advanced:r,onAdvancedChange:u},T={breadcrumbsTitle:a,onBreadcrumbsTitleChange:l},R={canonical:i,onCanonicalChange:p};return g?null:Object(o.createElement)(o.Fragment,null,Object(o.createElement)(d,j),v.isPost&&Object(o.createElement)(m,E),v.isPost&&Object(o.createElement)(h,k),!O&&Object(o.createElement)(f,T),Object(o.createElement)(b,R))};y.propTypes={noIndex:l.a.string.isRequired,canonical:l.a.string.isRequired,onNoIndexChange:l.a.func.isRequired,onCanonicalChange:l.a.func.isRequired,onLoad:l.a.func.isRequired,isLoading:l.a.bool.isRequired,editorContext:l.a.object.isRequired,isBreadcrumbsDisabled:l.a.bool.isRequired,isPrivateBlog:l.a.bool,advanced:l.a.array,onAdvancedChange:l.a.func,noFollow:l.a.string,onNoFollowChange:l.a.func,breadcrumbsTitle:l.a.string,onBreadcrumbsTitleChange:l.a.func},y.defaultProps={advanced:[],onAdvancedChange:function(){},noFollow:"",onNoFollowChange:function(){},breadcrumbsTitle:"",onBreadcrumbsTitleChange:function(){},isPrivateBlog:!1};var g=y;t.a=Object(r.compose)([Object(a.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getNoIndex,r=t.getNoFollow,a=t.getAdvanced,o=t.getBreadcrumbsTitle,i=t.getCanonical,s=t.getIsLoading,c=t.getEditorContext,u=(0,t.getPreferences)(),l=u.isBreadcrumbsDisabled,p=u.isPrivateBlog;return{noIndex:n(),noFollow:r(),advanced:a(),breadcrumbsTitle:o(),canonical:i(),isLoading:s(),editorContext:c(),isBreadcrumbsDisabled:l,isPrivateBlog:p}})),Object(a.withDispatch)((function(e){var t=e("yoast-seo/editor");return{onNoIndexChange:t.setNoIndex,onNoFollowChange:t.setNoFollow,onAdvancedChange:t.setAdvanced,onBreadcrumbsTitleChange:t.setBreadcrumbsTitle,onCanonicalChange:t.setCanonical,onLoad:t.loadAdvancedSettingsData}}))])(g)},,,,,function(e,t){e.exports=window.yoast.searchMetadataPreviews},function(e,t,n){"use strict";var r=n(0),a=n(21),o=n(1),i=n.n(o),s=n(89),c=function(e){return Object(r.useEffect)((function(){setTimeout(e.onLoad)}),[]),e.isPremium?Object(r.createElement)(a.Slot,{name:"YoastTwitterPremium".concat(e.location.charAt(0).toUpperCase()+e.location.slice(1)),fillProps:e}):Object(r.createElement)(s.a,e)};c.propTypes={isPremium:i.a.bool.isRequired,onLoad:i.a.func.isRequired,location:i.a.string.isRequired},t.a=c},function(e,t){e.exports=window.yoast.socialMetadataForms},function(e,t,n){"use strict";var r=n(14),a=n.n(r),o=n(29),i=n.n(o),s=n(0),c=n(21),u=n(1),l=n.n(u),p=n(89);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(e){var t=Object(s.useState)(""),n=i()(t,2),r=n[0],a=n[1],o=Object(s.useCallback)((function(e){a(e.detail.metaTabId)}),[a]);Object(s.useEffect)((function(){return setTimeout(e.onLoad),window.addEventListener("YoastSEO:metaTabChange",o),function(){window.removeEventListener("YoastSEO:metaTabChange",o)}}),[]);var u=Object(s.useMemo)((function(){return m(m({},e),{},{activeMetaTabId:r})}),[e,r]);return e.isPremium?Object(s.createElement)(c.Slot,{name:"YoastFacebookPremium".concat(e.location.charAt(0).toUpperCase()+e.location.slice(1)),fillProps:u}):Object(s.createElement)(p.a,u)};h.propTypes={isPremium:l.a.bool.isRequired,onLoad:l.a.func.isRequired,location:l.a.string.isRequired},t.a=h},,,,,,,,function(e,t,n){"use strict";var r=n(6),a=n(4);t.a=Object(r.withSelect)((function(e){return{message:(0,e("yoast-seo/editor").getWarningMessage)()}}))(a.Warning)},function(e,t,n){"use strict";var r=n(14),a=n.n(r),o=n(26),i=n.n(o),s=n(0),c=n(20),u=n(6),l=n(2),p=n(124),d=n(30),m=n(106),h=n(57),f=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)),Object(h.applyReplaceUsingPlugin)(e)};t.a=Object(c.compose)([Object(u.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getBaseUrlFromSettings,r=t.getDateFromSettings,a=t.getFocusKeyphrase,o=t.getRecommendedReplaceVars,i=t.getReplaceVars,s=t.getShoppingData,c=t.getSiteIconUrlFromSettings,u=t.getSnippetEditorData,l=t.getSnippetEditorMode,p=t.getSnippetEditorPreviewImageUrl,d=t.getSnippetEditorWordsToHighlight,m=t.isCornerstoneContent,h=t.getIsTerm,f=t.getContentLocale,b=i();return b.forEach((function(e){""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(e.value="%%"+e.name+"%%")})),{baseUrl:n(),data:u(),date:r(),faviconSrc:c(),keyword:a(),mobileImageSrc:p(),mode:l(),recommendedReplacementVariables:o(),replacementVariables:b,shoppingData:s(),wordsToHighlight:d(),isCornerstone:m(),isTaxonomy:h(),locale:f()}})),Object(u.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.updateData,r=t.switchMode,o=t.updateAnalysisData,i=e("core/editor");return{onChange:function(e,t){switch(e){case"mode":r(t);break;case"slug":n({slug:t}),i&&i.editPost({slug:t});break;default:n(a()({},e,t))}},onChangeAnalysisData:o}}))])((function(e){return Object(s.createElement)(d.LocationConsumer,null,(function(t){return Object(s.createElement)(m.a,{icon:"eye",hasPaperStyle:e.hasPaperStyle},Object(s.createElement)(p.SnippetEditor,i()({},e,{descriptionPlaceholder:Object(l.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:f,showCloseButton:!1,idSuffix:t})))}))}))},function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(8),i=n(125),s=n(23),c=n(45),u=n(59),l=function(e){Object(a.dispatch)("yoast-seo/editor").setTwitterPreviewImage({url:e.url,id:e.id,warnings:Object(o.validateTwitterImage)(e)})},p=function(){Object(u.a)(l)};t.a=Object(r.compose)([Object(a.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getTwitterDescription,r=t.getTwitterTitle,a=t.getTwitterImageUrl,o=t.getFacebookImageUrl,i=t.getFacebookTitle,c=t.getFacebookDescription,u=t.getDescription,l=t.getSeoTitle,p=t.getTwitterWarnings,d=t.getTwitterImageType,m=t.getImageFallback,h=t.getRecommendedReplaceVars,f=t.getReplaceVars,b=t.getSiteUrl,y=t.getSeoTitleTemplate,g=t.getSeoTitleTemplateNoFallback,v=t.getSocialTitleTemplate,O=t.getSeoDescriptionTemplate,w=t.getSocialDescriptionTemplate,j=t.getReplacedExcerpt;return{imageUrl:a(),imageFallbackUrl:o()||m(),recommendedReplacementVariables:h(),replacementVariables:f(),description:n(),descriptionPreviewFallback:w()||c()||u()||O()||j()||"",title:r(),titlePreviewFallback:v()||i()||l()||g()||y()||"",imageWarnings:p(),siteUrl:b(),isPremium:!!Object(s.a)().isPremium,isLarge:"summary"!==d(),titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Twitter"}})),Object(a.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setTwitterPreviewTitle,r=t.setTwitterPreviewDescription,a=t.clearTwitterPreviewImage,o=t.loadTwitterPreviewData;return{onSelectImageClick:p,onRemoveImageClick:a,onDescriptionChange:r,onTitleChange:n,onLoad:o}})),Object(c.a)()])(i.a)},function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(8),i=n(127),s=n(23),c=n(45),u=n(59),l=function(e){Object(a.dispatch)("yoast-seo/editor").setFacebookPreviewImage({url:e.url,id:e.id,warnings:Object(o.validateFacebookImage)(e)})},p=function(){Object(u.a)(l)};t.a=Object(r.compose)([Object(a.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getFacebookDescription,r=t.getDescription,a=t.getFacebookTitle,o=t.getSeoTitle,i=t.getFacebookImageUrl,c=t.getImageFallback,u=t.getFacebookWarnings,l=t.getRecommendedReplaceVars,p=t.getReplaceVars,d=t.getSiteUrl,m=t.getSeoTitleTemplate,h=t.getSeoTitleTemplateNoFallback,f=t.getSocialTitleTemplate,b=t.getSeoDescriptionTemplate,y=t.getSocialDescriptionTemplate,g=t.getReplacedExcerpt;return{imageUrl:i(),imageFallbackUrl:c(),recommendedReplacementVariables:l(),replacementVariables:p(),description:n(),descriptionPreviewFallback:y()||r()||b()||g()||"",title:a(),titlePreviewFallback:f()||o()||h()||m()||"",imageWarnings:u(),siteUrl:d(),isPremium:!!Object(s.a)().isPremium,titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Facebook"}})),Object(a.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setFacebookPreviewTitle,r=t.setFacebookPreviewDescription,a=t.clearFacebookPreviewImage,o=t.loadFacebookPreviewData;return{onSelectImageClick:p,onRemoveImageClick:a,onDescriptionChange:r,onTitleChange:n,onLoad:o}})),Object(c.a)()])(i.a)},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));var r=n(0),a=n(1),o=n.n(a),i=n(21),s=n(115),c=n(70);function u(e){var t=e.theme;return Object(r.createElement)(c.a,{theme:t,location:"metabox"},Object(r.createElement)(i.Slot,{name:"YoastMetabox"},(function(e){return Object(s.a)(e)})))}var l=n(6),p=n(20),d=n(2),m=n(114),h=n(136),f=n(135),b=n(55),y=n(54),g=n(33),v=n(119),O=n(138),w=n(137),j=function(e){var t=e.displayFacebook,n=e.displayTwitter;return Object(r.createElement)(r.Fragment,null,t&&Object(r.createElement)(y.a,{hasSeparator:!1
58
  /* Translators: %s expands to Facebook. */,title:Object(d.sprintf)(Object(d.__)("%s preview","wordpress-seo"),"Facebook"),initialIsOpen:!0},Object(r.createElement)(O.a,null)),n&&Object(r.createElement)(y.a
59
- /* Translators: %s expands to Twitter. */,{title:Object(d.sprintf)(Object(d.__)("%s preview","wordpress-seo"),"Twitter"),hasSeparator:t,initialIsOpen:!0},Object(r.createElement)(w.a,null)))};j.propTypes={displayFacebook:o.a.bool.isRequired,displayTwitter:o.a.bool.isRequired};var E=j,k=Object(l.withSelect)((function(e){var t=(0,e("yoast-seo/editor").getPreferences)();return{displayFacebook:t.displayFacebook,displayTwitter:t.displayTwitter}}))(E),T=n(42);function R(e){var t=e.target;return Object(r.createElement)(T.a,{target:t},Object(r.createElement)(k,null))}R.propTypes={target:o.a.string.isRequired};var _=n(118),S=n(109),x=n(95),C=n(25);function P(e){var t=e.settings,n=e.wincherKeyphrases,a=e.setWincherNoKeyphrase,o=Object(r.useCallback)((function(){if(!n.length)return a(!0),document.querySelector("#focus-keyword-input-metabox").focus(),!1}),[n,a]);return Object(r.createElement)(i.Fill,{name:"YoastMetabox"},Object(r.createElement)(g.a,{key:"warning",renderPriority:1},Object(r.createElement)(f.a,null)),t.isKeywordAnalysisActive&&Object(r.createElement)(g.a,{key:"keyword-input",renderPriority:8},Object(r.createElement)(b.KeywordInput,{isSEMrushIntegrationActive:t.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&Object(r.createElement)(i.Fill,{name:"YoastRelatedKeyphrases"},Object(r.createElement)(S.a,null))),Object(r.createElement)(g.a,{key:"google-preview",renderPriority:9},Object(r.createElement)(y.a,{id:"yoast-snippet-editor-metabox",title:Object(d.__)("Google preview","wordpress-seo"),initialIsOpen:!0},Object(r.createElement)(h.a,{hasPaperStyle:!1}))),t.isContentAnalysisActive&&Object(r.createElement)(g.a,{key:"readability-analysis",renderPriority:10},Object(r.createElement)(b.ReadabilityAnalysis,null)),t.isKeywordAnalysisActive&&Object(r.createElement)(g.a,{key:"seo-analysis",renderPriority:20},Object(r.createElement)(b.SeoAnalysis,{shouldUpsell:t.shouldUpsell,shouldUpsellWordFormRecognition:t.isWordFormRecognitionActive})),t.isKeywordAnalysisActive&&t.isWincherIntegrationActive&&Object(r.createElement)(g.a,{key:"wincher-seo-performance",renderPriority:25},Object(r.createElement)(y.a,{id:"yoast-wincher-seo-performance-metabox",title:Object(d.__)("Track SEO performance","wordpress-seo"),initialIsOpen:!1,prefixIcon:{icon:"chart-square-bar",color:C.colors.$color_grey_medium_dark},prefixIconCollapsed:{icon:"chart-square-bar",color:C.colors.$color_grey_medium_dark},onToggle:o},Object(r.createElement)(x.a,null))),t.isCornerstoneActive&&Object(r.createElement)(g.a,{key:"cornerstone",renderPriority:30},Object(r.createElement)(m.a,null)),t.displayAdvancedTab&&Object(r.createElement)(g.a,{key:"advanced",renderPriority:40},Object(r.createElement)(y.a,{id:"collapsible-advanced-settings",title:Object(d.__)("Advanced","wordpress-seo")},Object(r.createElement)(v.a,null))),t.displaySchemaSettings&&Object(r.createElement)(g.a,{key:"schema",renderPriority:50},Object(r.createElement)(_.a,null)),Object(r.createElement)(g.a,{key:"social",renderPriority:-1},Object(r.createElement)(R,{target:"wpseo-section-social"})))}P.propTypes={settings:o.a.object.isRequired,wincherKeyphrases:o.a.array.isRequired,setWincherNoKeyphrase:o.a.func.isRequired};var I=Object(p.compose)([Object(l.withSelect)((function(e,t){var n=e("yoast-seo/editor"),r=n.getPreferences,a=n.getWincherTrackableKeyphrases;return{settings:r(),store:t.store,wincherKeyphrases:a()}})),Object(l.withDispatch)((function(e){return{setWincherNoKeyphrase:e("yoast-seo/editor").setWincherNoKeyphrase}}))])(P);function A(e){var t=e.target,n=e.store,a=e.theme;return Object(r.createElement)(T.a,{target:t},Object(r.createElement)(u,{store:n,theme:a}),Object(r.createElement)(I,{store:n,theme:a}))}A.propTypes={target:o.a.string.isRequired,store:o.a.object,theme:o.a.object}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(24),a=n.n(r),o=n(9),i=n.n(o),s=n(10),c=n.n(s),u=n(18),l=n.n(u),p=n(19),d=n.n(p),m=n(11),h=n.n(m),f=n(0),b=n(21),y=n(158),g=n(23);var v=[],O=null,w=function(e){l()(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=h()(t);if(n){var a=h()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return d()(this,e)});function o(e){var t;return i()(this,o),(t=r.call(this,e)).state={registeredComponents:[]},t}return c()(o,[{key:"registerComponent",value:function(e,t){this.setState({registeredComponents:[].concat(a()(this.state.registeredComponents),[{key:e,Component:t}])})}},{key:"render",value:function(){return this.state.registeredComponents.map((function(e){var t=e.Component,n=e.key;return Object(f.createElement)(t,{key:n})}))}}]),o}(f.Component);function j(e,t){null===O||null===O.current?v.push({key:e,Component:t}):O.current.registerComponent(e,t)}var E=n(14),k=n.n(E),T=n(17),R=n(3),_=n(27),S=n.n(_),x=n(57),C=n(37),P=n(52);function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){k()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var q=S.a.markers.removeMarks,L=T.actions.updateReplacementVariable,D=T.actions.updateData,F=T.actions.hideReplacementVariables,N=T.actions.setContentImage,M=jQuery,B=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"content";i()(this,e),this._refresh=t,this._store=n,this._initialData={},this._previousData={},this._tinyMceId=r,this.updateReplacementData=this.updateReplacementData.bind(this),this.refreshYoastSEO=this.refreshYoastSEO.bind(this)}return c()(e,[{key:"initialize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this._initialData=this.getInitialData(e),Object(x.fillReplacementVariables)(this._initialData,this._store),this._store.dispatch(F(t)),this.subscribeToElements(),this.subscribeToStore(),this.subscribeToSnippetPreviewImage()}},{key:"subscribeToSnippetPreviewImage",value:function(){var e=this;if(!Object(R.isUndefined)(wp.media)&&!Object(R.isUndefined)(wp.media.featuredImage)){M("#postimagediv").on("click","#remove-post-thumbnail",(function(){e.featuredImageIsSet=!1,e.setImageInSnippetPreview(e.getContentImage())}));var t=wp.media.featuredImage.frame();t.on("select",(function(){var n=t.state().get("selection").first().attributes.url;n&&(e.featuredImageIsSet=!0,e.setImageInSnippetPreview(n))})),C.addEventHandler(this._tinyMceId,["init"],(function(){var t=e.getContentImage(),n=e.getFeaturedImage()||t||null;e._store.dispatch(N(t)),e.setImageInSnippetPreview(n)})),C.addEventHandler(this._tinyMceId,["change"],Object(R.debounce)((function(){if(!e.featuredImageIsSet){var t=e.getContentImage();e._store.dispatch(N(t)),e.setImageInSnippetPreview(t)}}),1e3))}}},{key:"getFeaturedImage",value:function(){var e=M("#set-post-thumbnail img").attr("src");return e?(this.featuredImageIsSet=!0,e):(this.featuredImageIsSet=!1,null)}},{key:"setImageInSnippetPreview",value:function(e){this._store.dispatch(D({snippetPreviewImageURL:e}))}},{key:"getContentImage",value:function(){if(this.featuredImageIsSet)return"";var e=this.getContent(),t=S.a.languageProcessing.imageInText(e),n="";if(0===t.length)return n;do{var r=t.shift(),a=(r=M(r)).prop("src");a&&(n=a)}while(""===n&&t.length>0);return n}},{key:"getTitle",value:function(){var e=document.getElementById("title");return e&&e.value||""}},{key:"getExcerpt",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=document.getElementById("excerpt"),n=t&&t.value||"",r="ja"===Object(P.a)()?80:156;return""!==n||!1===e?n:Object(x.excerptFromContent)(this.getContent(),r)}},{key:"getSlug",value:function(){var e="",t=document.getElementById("new-post-slug");return t?e=t.value:null!==document.getElementById("editable-post-name-full")&&(e=document.getElementById("editable-post-name-full").textContent),e}},{key:"getContent",value:function(){var e=this._tinyMceId;return q(C.getContentTinyMce(e))}},{key:"subscribeToElements",value:function(){this.subscribeToInputElement("title","title"),this.subscribeToInputElement("excerpt","excerpt"),this.subscribeToInputElement("excerpt","excerpt_only")}},{key:"subscribeToInputElement",value:function(e,t){var n=this,r=document.getElementById(e);r&&r.addEventListener("input",(function(e){n.updateReplacementData(e,t)}))}},{key:"updateReplacementData",value:function(e,t){var n=e.target.value;"excerpt"===t&&""===n&&(n=this.getExcerpt()),this._initialData[t]=n,this._store.dispatch(L(t,n))}},{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:"refreshYoastSEO",value:function(){var e=this.getData();!this.isShallowEqual(this._previousData,e)&&(this.handleEditorChange(e),this._previousData=e,window.YoastSEO&&window.YoastSEO.app&&window.YoastSEO.app.refresh())}},{key:"handleEditorChange",value:function(e){this._previousData.excerpt!==e.excerpt&&(this._store.dispatch(L("excerpt",e.excerpt)),this._store.dispatch(L("excerpt_only",e.excerpt_only))),this._previousData.snippetPreviewImageURL!==e.snippetPreviewImageURL&&this.setImageInSnippetPreview(e.snippetPreviewImageURL)}},{key:"subscribeToStore",value:function(){this.subscriber=Object(R.debounce)(this.refreshYoastSEO,500),this._store.subscribe(this.subscriber)}},{key:"getInitialData",value:function(e){return e=Object(x.mapCustomFields)(e,this._store),A(A({},e=Object(x.mapCustomTaxonomies)(e,this._store)),{},{title:this.getTitle(),excerpt:this.getExcerpt(),excerpt_only:this.getExcerpt(!1),slug:this.getSlug(),content:this.getContent()})}},{key:"getData",value:function(){return A(A({},this._store.getState().snippetEditor.data),{},{content:this.getContent(),excerpt:this.getExcerpt(),excerpt_only:this.getExcerpt(!1)})}}]),e}();window.yoast=window.yoast||{},window.yoast.initEditorIntegration=function(e){window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=j,function(e){var t=Object(g.a)();O=Object(f.createRef)();var n={isRtl:t.isRtl};Object(f.render)(Object(f.createElement)(b.SlotFillProvider,null,Object(f.createElement)(y.a,{target:"wpseo-metabox-root",store:e,theme:n}),Object(f.createElement)(w,{ref:O})),document.getElementById("wpseo-metabox-root")),v.forEach((function(e){O.current.registerComponent(e.key,e.Component)}))}(e)},window.yoast.EditorData=B}]);
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=211)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.yoast.propTypes},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.lodash},function(e,t){e.exports=window.yoast.componentsNew},function(e,t){e.exports=window.React},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.regeneratorRuntime},function(e,t){e.exports=window.yoast.helpers},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=window.yoast.styledComponents},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},function(e,t){function n(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(a,o){var i=e.apply(t,r);function s(e){n(i,a,o,s,c,"next",e)}function c(e){n(i,a,o,s,c,"throw",e)}s(void 0)}))}}},function(e,t){e.exports=window.yoast.externals.redux},function(e,t,n){var r=n(43);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(34),a=n(12);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t}},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.wp.components},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3);function a(){return Object(r.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}},function(e,t,n){var r=n(66),a=n(67),o=n(68);e.exports=function(e){return r(e)||a(e)||o()}},function(e,t){e.exports=window.yoast.styleGuide},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){e.exports=window.yoast.analysis},,function(e,t,n){var r=n(59),a=n(60),o=n(61);e.exports=function(e,t){return r(e)||a(e,t)||o()}},function(e,t){e.exports=window.yoast.externals.contexts},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=s(n(5)),o=s(n(89)),i=s(n(92));function s(e){return e&&e.__esModule?e:{default:e}}var c=void 0;t.default=function(e){var t=e.mixedString,n=e.components,s=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(s)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var u=(0,i.default)(t);try{return function e(t,n){var i,s,u,l,p,d,m,h,f=[],b={};for(d=0;d<t.length;d++)if("string"!==(p=t[d]).type){if(!n.hasOwnProperty(p.value)||void 0===n[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(n[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){i=n[p.value],u=d;break}f.push(n[p.value])}else f.push(p.value);return i&&(l=function(e,t){var n,r,a=t[e],o=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){o++;continue}if("componentClose"===n.type){if(0===o)return r;o--}}throw new Error("Missing closing component token `"+a.value+"`")}(u,t),m=e(t.slice(u+1,l),n),s=a.default.cloneElement(i,{},m),f.push(s),l<t.length-1&&(h=e(t.slice(l+1),n),f=f.concat(h))),1===f.length?f[0]:(f.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,o.default)(b))}(u,n)}catch(e){if(s)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return d})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return g})),n.d(t,"e",(function(){return O})),n.d(t,"f",(function(){return j}));var r=n(16),a=n.n(r),o=n(7),i=n.n(o),s=n(36),c=n.n(s),u=n(3);function l(_x){return p.apply(this,arguments)}function p(){return(p=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c()(t);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),!e.t0.error||!e.t0.status){e.next=10;break}return e.abrupt("return",e.t0);case 10:if(!(e.t0 instanceof Response)){e.next=14;break}return e.next=13,e.t0.json();case 13:return e.abrupt("return",e.sent);case 14:return e.abrupt("return",!1);case 15:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function d(e,t,n){return m.apply(this,arguments)}function m(){return(m=a()(i.a.mark((function e(t,n,r){var a,o,s=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=s.length>3&&void 0!==s[3]?s[3]:200,e.prev=1,e.next=4,t();case 4:if(!(o=e.sent)){e.next=9;break}if(o.status!==a){e.next=8;break}return e.abrupt("return",n(o));case 8:return e.abrupt("return",r(o));case 9:return e.abrupt("return",!1);case 12:e.prev=12,e.t0=e.catch(1),console.error(e.t0.message);case 15:case"end":return e.stop()}}),e,null,[[1,12]])})))).apply(this,arguments)}function h(){return f.apply(this,arguments)}function f(){return(f=a()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l({path:"yoast/v1/wincher/authorization-url",method:"GET"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(e){return y.apply(this,arguments)}function y(){return(y=a()(i.a.mark((function e(t){var n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.code,r=t.websiteId,e.next=3,l({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:n,websiteId:r}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(){return v.apply(this,arguments)}function v(){return(v=a()(i.a.mark((function e(){var t,n,r,a=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:null,n=a.length>1&&void 0!==a[1]?a[1]:null,r=a.length>2?a[2]:void 0,e.next=5,l({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:t,permalink:n},signal:r});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e){return w.apply(this,arguments)}function w(){return(w=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(u.isArray)(t)||(t=[t]),e.next=3,l({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:t}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e){return E.apply(this,arguments)}function E(){return(E=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:t}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),i=function(e){var t=e.children;return Object(r.createElement)("div",null,t)};i.propTypes={renderPriority:o.a.number.isRequired,children:o.a.node.isRequired},t.a=i},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},,function(e,t){e.exports=window.wp.apiFetch},function(e,t,n){"use strict";n.r(t),n.d(t,"tmceId",(function(){return c})),n.d(t,"termsTmceId",(function(){return u})),n.d(t,"setStore",(function(){return l})),n.d(t,"isTinyMCELoaded",(function(){return p})),n.d(t,"isTinyMCEAvailable",(function(){return d})),n.d(t,"getContentTinyMce",(function(){return m})),n.d(t,"addEventHandler",(function(){return h})),n.d(t,"disableMarkerButtons",(function(){return f})),n.d(t,"enableMarkerButtons",(function(){return b})),n.d(t,"isTextViewActive",(function(){return y})),n.d(t,"wpTextViewOnInitCheck",(function(){return g})),n.d(t,"tinyMceEventBinder",(function(){return v}));var r,a=n(3),o=n(84),i=n(116),s=n(17),c="content",u="description";function l(e){r=e}function p(){return"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.editors&&0!==tinyMCE.editors.length}function d(e){if(!p())return!1;var t=tinyMCE.get(e);return null!==t&&!t.isHidden()}function m(e){var t,n,r;return n=!1===d(e)||0==(t=e,null!==document.getElementById(t+"_ifr"))?function(e){return document.getElementById(e)&&document.getElementById(e).value||""}(e):tinyMCE.get(e).getContent(),r=new RegExp("&amp;","g"),n.replace(r,"&")}function h(e,t,n){"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",(function(r){var o=r.editor;o.id===e&&Object(a.forEach)(t,(function(e){o.on(e,n)}))}))}function f(){Object(a.isUndefined)(r)||r.dispatch(s.actions.setMarkerStatus("disabled"))}function b(){Object(a.isUndefined)(r)||r.dispatch(s.actions.setMarkerStatus("enabled"))}function y(){var e=document.getElementById("wp-content-wrap");return!!e&&e.classList.contains("html-active")}function g(){y()&&(f(),p()&&tinyMCE.on("AddEditor",(function(){b()})))}function v(e,t){h(t,["input","change","cut","paste"],e),h(t,["hide"],f);var n=["show"];(new i.a).isPageBuilderActive()||n.push("init"),h(t,n,b),h("content",["focus"],(function(e){var t=e.target;Object(o.a)(t)&&(Object(o.b)(t),YoastSEO.app.disableMarkers())}))}},function(e,t,n){var r=n(79);e.exports=function(e,t){if(null==e)return{};var n,a,o=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t){e.exports=window.wp.url},function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return i})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"h",(function(){return l})),n.d(t,"b",(function(){return p})),n.d(t,"l",(function(){return d})),n.d(t,"m",(function(){return m})),n.d(t,"n",(function(){return h})),n.d(t,"o",(function(){return f})),n.d(t,"k",(function(){return b})),n.d(t,"j",(function(){return y})),n.d(t,"i",(function(){return g}));var r=n(8),a="SNIPPET_EDITOR_SWITCH_MODE",o="SNIPPET_EDITOR_UPDATE_DATA",i="SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLE",s="SNIPPET_EDITOR_HIDE_REPLACEMENT_VARIABLES",c="SNIPPET_EDITOR_REMOVE_REPLACEMENT_VARIABLE",u="SNIPPET_EDITOR_REFRESH",l="SNIPPET_EDITOR_UPDATE_WORDS_TO_HIGHLIGHT",p="LOAD_SNIPPET_EDITOR_DATA";function d(e){return{type:a,mode:e}}function m(e){return{type:o,data:e}}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o="string"==typeof t?Object(r.decodeHTML)(t):t;return{type:i,name:e,value:o,label:n,hidden:a}}function f(e){return{type:l,wordsToHighlight:e}}function b(e){return{type:c,name:e}}function y(){return{type:u,time:(new Date).getMilliseconds()}}function g(e){return{type:s,data:e}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o}));var r=n(0);function a(e){return e.charAt(0).toUpperCase()+e.slice(1)}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return Object(r.createInterpolateElement)(e,{a:Object(r.createElement)("a",{id:n,href:t,target:"_blank",rel:"noopener noreferrer"})})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),a=n(1),o=n.n(a);function i(e){var t=e.target,n=e.children,a=t;return"string"==typeof t&&(a=document.getElementById(t)),a?Object(r.createPortal)(n,a):null}i.propTypes={target:o.a.oneOfType([o.a.string,o.a.object]).isRequired,children:o.a.node.isRequired}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(14),a=n.n(r),o=n(20),i=n(0),s=n(30);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(){return Object(o.createHigherOrderComponent)((function(e){return Object(o.pure)((function(t){var n=Object(i.useContext)(s.LocationContext);return Object(i.createElement)(e,u(u({},t),{},{location:n}))}))}),"withLocation")}},,function(e,t){e.exports=window.yoast.replacementVariableEditor},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return R}));var r=n(26),a=n.n(r),o=n(38),i=n.n(o),s=n(14),c=n.n(s),u=n(9),l=n.n(u),p=n(10),d=n.n(p),m=n(12),h=n.n(m),f=n(18),b=n.n(f),y=n(19),g=n.n(y),v=n(11),O=n.n(v),w=n(0),j=n(1),E=n.n(j);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var R=E.a.shape({value:E.a.string.isRequired,onChange:E.a.func.isRequired});t.a=function(e){return function(t){return function(n){b()(u,n);var r,o,s=(r=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=O()(r);if(o){var n=O()(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return g()(this,e)});function u(t){var n;l()(this,u),(n=s.call(this,t)).elements={};var r={};return n.fields=e(t),n.fields.forEach((function(e){var t=e.name,a=e.fieldId,o=document.getElementById(a);o&&(n.elements[t]=o,r[t]={value:o.value,onChange:n.onChange.bind(h()(n),t)})})),n.state=r,n}return d()(u,[{key:"onChange",value:function(e,t){var n=this;this.setState(T(T({},this.state),{},c()({},e,T(T({},this.state[e]),{},{value:t}))),(function(){n.elements[e]&&(n.elements[e].value=t)}))}},{key:"render",value:function(){var e=this.props,n=e.children,r=i()(e,["children"]);return Object(w.createElement)(t,a()({},r,this.state),n)}}],[{key:"propTypes",get:function(){return{children:E.a.node}}}]),u}(w.Component)}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=n(23);function o(){var e=Object(a.a)();return Object(r.get)(e,"contentLocale","en_US")}},function(e,t,n){"use strict";var r,a=n(15),o=n.n(a),i=n(25),s=n(8),c=n(13),u=n.n(c),l=Object(s.makeOutboundLink)(u.a.a(r||(r=o()(["\n\tdisplay: inline-block;\n\tposition: relative;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 100%;\n\twidth: 24px;\n\theight: 24px;\n\tmargin: -4px 0;\n\tvertical-align: middle;\n\n\tcolor: ",";\n\t\n\t&:hover,\n\t&:focus {\n\t\tcolor: ",";\t\n\t}\n\t\n\t// Overwrite the default blue active color for links.\n\t&:active {\n\t\tcolor: ",';\t\n\t}\n\n\t&::before {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tpadding: 2px;\n\t\tcontent: "\f223";\n\t}\n'],["\n\tdisplay: inline-block;\n\tposition: relative;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 100%;\n\twidth: 24px;\n\theight: 24px;\n\tmargin: -4px 0;\n\tvertical-align: middle;\n\n\tcolor: ",";\n\t\n\t&:hover,\n\t&:focus {\n\t\tcolor: ",";\t\n\t}\n\t\n\t// Overwrite the default blue active color for links.\n\t&:active {\n\t\tcolor: ",';\t\n\t}\n\n\t&::before {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tpadding: 2px;\n\t\tcontent: "\\f223";\n\t}\n'])),i.colors.$color_help_text,i.colors.$color_snippet_focus,i.colors.$color_help_text));t.a=l},function(e,t,n){"use strict";var r,a=n(26),o=n.n(a),i=n(15),s=n.n(i),c=n(0),u=n(4),l=n(13),p=n.n(l)()(u.Collapsible)(r||(r=s()(['\n\th2 > button {\n\t\tpadding-left: 24px;\n\t\tpadding-top: 16px;\n\n\t\t&:hover {\n\t\t\tbackground-color: #f0f0f0;\n\t\t}\n\t}\n\n\tdiv[class^="collapsible_content"] {\n\t\tpadding: 24px 0;\n\t\tmargin: 0 24px;\n\t\tborder-top: 1px solid rgba(0,0,0,0.2);\n\t}\n\n'])));t.a=function(e){return Object(c.createElement)(p,o()({hasPadding:!0,hasSeparator:!0},e))}},function(e,t){e.exports=window.yoast.externals.components},,function(e,t,n){"use strict";n.r(t),n.d(t,"nonReplaceVars",(function(){return d})),n.d(t,"fillReplacementVariables",(function(){return m})),n.d(t,"handlePrefixes",(function(){return h})),n.d(t,"createLabelFromName",(function(){return f})),n.d(t,"pushNewReplaceVar",(function(){return b})),n.d(t,"replaceSpaces",(function(){return y})),n.d(t,"prepareCustomFieldForDispatch",(function(){return g})),n.d(t,"prepareCustomTaxonomyForDispatch",(function(){return v})),n.d(t,"mapCustomTaxonomies",(function(){return O})),n.d(t,"mapCustomFields",(function(){return w})),n.d(t,"excerptFromContent",(function(){return j})),n.d(t,"applyReplaceUsingPlugin",(function(){return E}));var r=n(14),a=n.n(r),o=n(3),i=n(106),s=n(40),c=n(41);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=n(8).strings.stripHTMLTags,d=["slug","content","contentImage","snippetPreviewImageURL"];function m(e,t){Object(o.forEach)(e,(function(e,n){d.includes(n)||t.dispatch(Object(s.n)(n,e))}))}function h(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 f(e){return e=h(e),Object(c.b)(e)}function b(e,t){return e.push({name:t.name,label:t.label||f(t.name),value:t.value}),e}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e.replace(/\s/g,t)}function g(e){return{name:"cf_"+y(e),label:Object(c.b)(e+" (custom field)")}}function v(e){var t=y(e);return{name:"ct_"+t,label:Object(c.b)(e+" (custom taxonomy)"),descriptionName:"ct_desc_"+t,descriptionLabel:Object(c.b)(e+" description (custom taxonomy)")}}function O(e,t){return e.custom_taxonomies?(Object(o.forEach)(e.custom_taxonomies,(function(e,n){var r=v(n),a=r.name,o=r.label,i=r.descriptionName,c=r.descriptionLabel;t.dispatch(Object(s.n)(a,e.name,o)),t.dispatch(Object(s.n)(i,e.description,c))})),Object(o.omit)(l({},e),"custom_taxonomies")):e}function w(e,t){return e.custom_fields?(Object(o.forEach)(e.custom_fields,(function(e,n){var r=g(n),a=r.name,o=r.label;t.dispatch(Object(s.n)(a,e,o))})),Object(o.omit)(l({},e),"custom_fields")):e}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:156;return(e=(e=Object(i.stripTags)(e)).trim()).length<=t||(e=e.substring(0,t),/\s/.test(e)&&(e=e.substring(0,e.lastIndexOf(" ")))),e}var E=function(e){var t=Object(o.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!Object(o.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){var t=Object(o.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],o.identity);return{url:e.url,title:p(t(e.title)),description:p(t(e.description))}}(e);var n=t._applyModifications.bind(t);return{url:e.url,title:p(n("data_page_title",e.title)),description:p(n("data_meta_desc",e.description))}}},function(e,t,n){"use strict";var r=n(24),a=n.n(r),o=n(0),i=n(1),s=n.n(i),c=n(2),u=function(e){var t=e.data,n=e.mapChartDataToTableData,r=e.dataTableCaption,a=e.dataTableHeaderLabels,i=e.isDataTableVisuallyHidden;return t.length!==a.length?Object(o.createElement)("p",null,Object(c.__)("The number of headers and header labels don't match.","wordpress-seo")):Object(o.createElement)("div",{className:i?"screen-reader-text":null},Object(o.createElement)("table",null,Object(o.createElement)("caption",null,r),Object(o.createElement)("thead",null,Object(o.createElement)("tr",null,a.map((function(e,t){return Object(o.createElement)("th",{key:t},e)})))),Object(o.createElement)("tbody",null,Object(o.createElement)("tr",null,t.map((function(e,t){return Object(o.createElement)("td",{key:t},n(e.y))}))))))};u.propTypes={data:s.a.arrayOf(s.a.shape({x:s.a.number,y:s.a.number})).isRequired,mapChartDataToTableData:s.a.func,dataTableCaption:s.a.string.isRequired,dataTableHeaderLabels:s.a.array.isRequired,isDataTableVisuallyHidden:s.a.bool},u.defaultProps={mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};var l=u,p=function(e){var t=e.data,n=e.width,r=e.height,i=e.fillColor,s=e.strokeColor,c=e.strokeWidth,u=e.className,p=e.mapChartDataToTableData,d=e.dataTableCaption,m=e.dataTableHeaderLabels,h=e.isDataTableVisuallyHidden,f=Math.max(1,Math.max.apply(Math,a()(t.map((function(e){return e.x}))))),b=Math.max(1,Math.max.apply(Math,a()(t.map((function(e){return e.y}))))),y=r-c,g=t.map((function(e){var t=e.x/f*n,r=y-e.y/b*y+c;return"".concat(t,",").concat(r)})).join(" "),v="0,".concat(y+c," ")+g+" ".concat(n,",").concat(y+c);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("svg",{width:n,height:r,viewBox:"0 0 ".concat(n," ").concat(r),className:u,role:"img","aria-hidden":"true",focusable:"false"},Object(o.createElement)("polygon",{fill:i,points:v}),Object(o.createElement)("polyline",{fill:"none",stroke:s,strokeWidth:c,strokeLinejoin:"round",strokeLinecap:"round",points:g})),p&&Object(o.createElement)(l,{data:t,mapChartDataToTableData:p,dataTableCaption:d,dataTableHeaderLabels:m,isDataTableVisuallyHidden:h}))};p.propTypes={data:s.a.arrayOf(s.a.shape({x:s.a.number,y:s.a.number})).isRequired,width:s.a.number.isRequired,height:s.a.number.isRequired,fillColor:s.a.string,strokeColor:s.a.string,strokeWidth:s.a.number,className:s.a.string,mapChartDataToTableData:s.a.func,dataTableCaption:s.a.string.isRequired,dataTableHeaderLabels:s.a.array.isRequired,isDataTableVisuallyHidden:s.a.bool},p.defaultProps={fillColor:null,strokeColor:"#000000",strokeWidth:1,className:"",mapChartDataToTableData:null,isDataTableVisuallyHidden:!0},t.a=p},function(e,t,n){"use strict";function r(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()}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],_n=!0,r=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(_n=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,a=e}finally{try{_n||null==i.return||i.return()}finally{if(r)throw a}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},,,function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},,function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),i=n(13),s=n(30),c=function(e){var t=e.theme,n=e.location,a=e.children;return Object(r.createElement)(s.LocationProvider,{value:n},Object(r.createElement)(i.ThemeProvider,{theme:t},a))};c.propTypes={theme:o.a.object.isRequired,location:o.a.oneOf(["sidebar","metabox","modal"]).isRequired,children:o.a.element.isRequired},t.a=c},function(e,t){e.exports=window.moment},,,,function(e,t){e.exports=window.yoast.featureFlag},,function(e,t,n){"use strict";n.d(t,"b",(function(){return k}));var r=n(14),a=n.n(r),o=n(9),i=n.n(o),s=n(10),c=n.n(s),u=n(12),l=n.n(u),p=n(18),d=n.n(p),m=n(19),h=n.n(m),f=n(11),b=n.n(f),y=n(0),g=n(2),v=n(4),O=n(1),w=n.n(O),j=n(49);var E=function(e){d()(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=b()(t);if(n){var a=b()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return h()(this,e)});function o(e){var t;return i()(this,o),(t=r.call(this,e)).initialPageType=e.pageType.value,t.initialArticleType=e.articleType?e.articleType.value:"None",t.state={schema_page_type:t.initialPageType,schema_article_type:t.initialArticleType},t.handleOptionFocus=t.handleOptionFocus.bind(l()(t)),t}return c()(o,[{key:"shouldShowAlert",value:function(){return this.state.schema_page_type!==this.initialPageType||this.state.schema_article_type!==this.initialArticleType}},{key:"handleOptionFocus",value:function(e,t){this.setState(a()({},e,t))}},{key:"render",value:function(){return Object(y.createElement)(y.Fragment,null,Object(y.createElement)(v.FieldGroup,{label:Object(g.__)("Schema settings","wordpress-seo"),linkTo:"https://yoa.st/404",linkText:Object(g.__)("Learn more about the schema settings","wordpress-seo"),description:Object(g.sprintf)(
2
  /* translators: %1$s expands to an indexable object's name, e.g. Posts or Pages. */
3
  Object(g.__)("Choose how your %1$s should be described by default in your site's schema.org markup. You can change these settings for individual %1$s.","wordpress-seo"),this.props.postTypeName)}),this.shouldShowAlert()&&Object(y.createElement)(v.Alert,{type:"warning"},Object(g.sprintf)(
4
  /* translators: %1$s expands to an indexable object's name, e.g. Posts or Pages. */
5
+ Object(g._n)("Upon saving, this setting will apply to all of your %1$s. %1$s that are manually configured will be left untouched.","Upon saving, these settings will apply to all of your %1$s. %1$s that are manually configured will be left untouched.",this.props.articleType?2:1,"wordpress-seo"),this.props.postTypeName)),Object(y.createElement)(v.Select,{id:"schema-page-type-".concat(this.props.postType),name:"schema_page_type",options:this.props.pageTypeOptions,label:Object(g.__)("Default Page type","wordpress-seo"),onChange:this.props.pageType.onChange,selected:this.props.pageType.value,onOptionFocus:this.handleOptionFocus}),this.props.articleType&&Object(y.createElement)(v.Select,{id:"schema-article-type-".concat(this.props.postType),name:"schema_article_type",options:this.props.articleTypeOptions,label:Object(g.__)("Default Article type","wordpress-seo"),onChange:this.props.articleType.onChange,onOptionFocus:this.handleOptionFocus,selected:this.props.articleType.value}))}}]),o}(y.Component),k=w.a.arrayOf(w.a.shape({name:w.a.string,value:w.a.string}));E.propTypes={postType:w.a.string.isRequired,postTypeName:w.a.string.isRequired,pageType:j.b.isRequired,articleType:j.b,pageTypeOptions:k.isRequired,articleTypeOptions:k.isRequired},E.defaultProps={articleType:null},t.a=Object(j.a)((function(e){return[{name:"pageType",fieldId:e.pageTypeFieldId},{name:"articleType",fieldId:e.articleTypeFieldId}]}))(E)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(9),a=n.n(r),o=n(10),i=n.n(o),s=function(){function e(){a()(this,e)}return i()(e,null,[{key:"articleTypeInput",get:function(){return document.getElementById("yoast_wpseo_schema_article_type")}},{key:"defaultArticleType",get:function(){return e.articleTypeInput.getAttribute("data-default")}},{key:"articleType",get:function(){return e.articleTypeInput.value},set:function(t){e.articleTypeInput.value=t}},{key:"pageTypeInput",get:function(){return document.getElementById("yoast_wpseo_schema_page_type")}},{key:"defaultPageType",get:function(){return e.pageTypeInput.getAttribute("data-default")}},{key:"pageType",get:function(){return e.pageTypeInput.value},set:function(t){e.pageTypeInput.value=t}}]),e}()},,function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return y})),n.d(t,"b",(function(){return g}));var r=n(0),a=n(1),o=n.n(a),i=n(2),s=n(3),c=n(70),u=n.n(c),l=n(4),p=n(8),d=n(57),m=function(){return Object(r.createElement)("p",{className:"yoast-wincher-seo-performance-modal__loading-message"},Object(i.__)("Tracking the ranking position...","wordpress-seo")," ",Object(r.createElement)(l.SvgIcon,{icon:"loading-spinner"}))},h=Object(p.makeOutboundLink)();function f(e){return Math.round(100*e)}function b(e){var t=e.chartData;if(Object(s.isEmpty)(t)||Object(s.isEmpty)(t.position))return"?";var n=function(e){return Array.from({length:e.position.history.length},(function(e,t){return t+1})).map((function(e){
6
  /* translators: %d expands to the amount of days */
7
  return Object(i.sprintf)(Object(i._n)("%d day","%d days",e,"wordpress-seo"),e)}))}(t),a=t.position.history.map((function(e,t){return{x:t,y:101-e.value}}));return Object(r.createElement)(d.a,{width:66,height:24,data:a,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:f,dataTableCaption:Object(i.__)("Keyphrase position in the last 90 days on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:n})}function y(e){return!e||!e.position||e.position.value>100?"> 100":e.position.value}function g(e){var t=e.keyphrase,n=e.rowData,a=e.onTrackKeyphrase,o=e.onUntrackKeyphrase,c=e.isFocusKeyphrase,p=e.isDisabled,d=e.isLoading,f=!Object(s.isEmpty)(n),g=Object(r.useCallback)((function(){p||(f?o(t,n.id):a(t))}),[t,a,o,f,n,p]);return Object(r.createElement)("tr",null,Object(r.createElement)("td",{className:"yoast-table--nopadding"},function(e){var t=e.keyphrase,n=e.isEnabled,a=e.toggleAction;return e.isLoading?Object(r.createElement)(l.SvgIcon,{icon:"loading-spinner"}):Object(r.createElement)(l.Toggle,{id:"toggle-keyphrase-tracking-".concat(t),className:"wincher-toggle",isEnabled:n,onSetToggleState:a,showToggleStateLabel:!1})}({keyphrase:t,isEnabled:f,toggleAction:g,isLoading:d})),Object(r.createElement)("td",null,t,c&&Object(r.createElement)("span",null,"*")),function(e){var t=e.rowData,n=e.websiteId,a=!Object(s.isEmpty)(t),o=t&&t.updated_at&&u()(t.updated_at)>=u()().subtract(7,"days"),c=t?Object(i.sprintf)("https://app.wincher.com/websites/%s/keywords?serp=%s&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast",n,t.id):null;return a?o?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",null,y(t)),Object(r.createElement)("td",{className:"yoast-table--nopadding"},Object(r.createElement)(b,{chartData:t})),Object(r.createElement)("td",{className:"yoast-table--nobreak"},Object(r.createElement)(h,{href:c},Object(i.__)("View","wordpress-seo")))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},Object(r.createElement)(m,null))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",null,"?"),Object(r.createElement)("td",{className:"yoast-table--nopadding"},"?"),Object(r.createElement)("td",{className:"yoast-table--nobreak"}))}(e))}b.propTypes={chartData:o.a.object},b.defaultProps={chartData:{}},g.propTypes={rowData:o.a.object,keyphrase:o.a.string.isRequired,onTrackKeyphrase:o.a.func,onUntrackKeyphrase:o.a.func,isFocusKeyphrase:o.a.bool,isDisabled:o.a.bool,isLoading:o.a.bool,websiteId:o.a.string},g.defaultProps={rowData:{},onTrackKeyphrase:function(){},onUntrackKeyphrase:function(){},isFocusKeyphrase:!1,isDisabled:!1,isLoading:!1,websiteId:""}},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var r=n(27),a=n(3);function o(e,t,n){var o=e.dom,i=e.getContent();i=r.markers.removeMarks(i),Object(a.forEach)(n,(function(e){i=e.applyWithReplace(i)})),e.setContent(i),function(e){var t=e.getContent();t=t.replace(new RegExp("&lt;yoastmark.+?&gt;","g"),"").replace(new RegExp("&lt;/yoastmark&gt;","g"),""),e.setContent(t)}(e);var s=o.select("yoastmark");Object(a.forEach)(s,(function(e){e.setAttribute("data-mce-bogus","1")}))}function i(e){return window.test=e,o.bind(null,e)}function s(e){return-1!==e.getContent({format:"raw"}).indexOf("<yoastmark")}function c(e){i(e)(null,[])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(16),a=n.n(r),o=n(9),i=n.n(o),s=n(10),c=n.n(s),u=n(7),l=n.n(u),p=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i()(this,e),this.url=t,this.origin=new URL(t).origin,this.eventHandlers=Object.assign({success:{type:"",callback:function(){}},error:{type:"",callback:function(){}}},n),this.options=Object.assign({height:570,width:340,title:""},r),this.popup=null,this.createPopup=this.createPopup.bind(this),this.messageHandler=this.messageHandler.bind(this),this.getPopup=this.getPopup.bind(this)}var t;return c()(e,[{key:"createPopup",value:function(){var e=this.options,t=e.height,n=e.width,r=e.title,a=["top="+(window.top.outerHeight/2+window.top.screenY-t/2),"left="+(window.top.outerWidth/2+window.top.screenX-n/2),"width="+n,"height="+t,"resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(this.url,r,a.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}},{key:"messageHandler",value:(t=a()(l.a.mark((function e(t){var n,r;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.data,r=t.source,t.origin===this.origin&&this.popup===r){e.next=3;break}return e.abrupt("return");case 3:if(n.type!==this.eventHandlers.success.type){e.next=8;break}return this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),e.next=8,this.eventHandlers.success.callback(n);case 8:if(n.type!==this.eventHandlers.error.type){e.next=13;break}return this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),e.next=13,this.eventHandlers.error.callback(n);case 13:case"end":return e.stop()}}),e,this)}))),function(_x){return t.apply(this,arguments)})},{key:"getPopup",value:function(){return this.popup}},{key:"isClosed",value:function(){return!this.popup||this.popup.closed}},{key:"focus",value:function(){this.isClosed()||this.popup.focus()}}]),e}()},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),i=n(2),s=n(31),c=n.n(s),u=n(4),l=function(e){var t=Object(i.sprintf)(
8
  /* translators: %s expands to a link to open the Wincher login popup. */
12
  /* Translators: %s expands to the social medium name, which is either Twitter or Facebook. %s expands to Yoast SEO Premium */
13
  Object(T.__)("Want to see how your content will look when it’s shared on %s?","wordpress-seo"),e.socialMediumName),n=Object(T.sprintf)(
14
  /* Translators: %s expands to Yoast SEO Premium */
15
+ Object(T.__)("Get %s to unlock social previews!","wordpress-seo"),"Yoast SEO Premium");return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(S,{type:"info"},k()({mixedString:t,components:{strong:Object(b.createElement)("b",null)}}),Object(b.createElement)("br",null),Object(b.createElement)(x,{href:wpseoAdminL10n["shortlinks.upsell.social_previews"]},Object(b.createElement)("p",null,n))))};C.propTypes={socialMediumName:g.a.oneOf(["Twitter","Facebook"]).isRequired};var P=C,I=n(125),A=n(46);var q=function(e){p()(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=f()(t);if(n){var a=f()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return m()(this,e)});function a(e){var t;return o()(this,a),(t=r.call(this,e)).state={activeField:"",hoveredField:""},t.setHoveredField=t.setHoveredField.bind(u()(t)),t.setActiveField=t.setActiveField.bind(u()(t)),t.setEditorRef=t.setEditorRef.bind(u()(t)),t.setEditorFocus=t.setEditorFocus.bind(u()(t)),t}return s()(a,[{key:"setHoveredField",value:function(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}},{key:"setActiveField",value:function(e){var t=this;e!==this.state.activeField&&this.setState({activeField:e},(function(){return t.setEditorFocus(e)}))}},{key:"setEditorFocus",value:function(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}},{key:"setEditorRef",value:function(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}},{key:"render",value:function(){var e=this.props,t=e.onDescriptionChange,n=e.onTitleChange,r=e.onSelectImageClick,a=e.onRemoveImageClick,o=e.socialMediumName,i=e.imageWarnings,s=e.description,c=e.descriptionInputPlaceholder,u=e.imageUrl,l=e.title,p=e.titleInputPlaceholder,d=e.replacementVariables,m=e.recommendedReplacementVariables,h=e.isPremium,f=e.location;return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(P,{socialMediumName:o}),Object(b.createElement)(I.SocialMetadataPreviewForm,{onDescriptionChange:t,socialMediumName:o,title:l,titleInputPlaceholder:p,onRemoveImageClick:a,imageSelected:!!u,imageUrl:u,onTitleChange:n,onSelectImageClick:r,description:s,descriptionInputPlaceholder:c,imageWarnings:i,replacementVariables:d,recommendedReplacementVariables:m,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:h,setEditorRef:this.setEditorRef,idSuffix:f}))}}]),a}(b.Component);q.propTypes={title:g.a.string.isRequired,onTitleChange:g.a.func.isRequired,description:g.a.string.isRequired,onDescriptionChange:g.a.func.isRequired,imageUrl:g.a.string.isRequired,onSelectImageClick:g.a.func.isRequired,onRemoveImageClick:g.a.func.isRequired,socialMediumName:g.a.string.isRequired,isPremium:g.a.bool,imageWarnings:g.a.array,descriptionInputPlaceholder:g.a.string,titleInputPlaceholder:g.a.string,replacementVariables:A.replacementVariablesShape,recommendedReplacementVariables:A.recommendedReplacementVariablesShape,location:g.a.string},q.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",location:""},t.a=q},function(e,t,n){"use strict";var r=n(5),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(64),i=n(90),s=n(91),c="function"==typeof Symbol&&Symbol.iterator;function u(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}var l=/\/+/g;function p(e){return(""+e).replace(l,"$&/")}var d,m,h=f,f=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)};function b(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var a,i,s=e.result,c=e.keyPrefix,u=e.func,l=e.context,d=u.call(l,t,e.count++);Array.isArray(d)?g(d,s,n,o.thatReturnsArgument):null!=d&&(r.isValidElement(d)&&(a=d,i=c+(!d.key||t&&t.key===d.key?"":p(d.key)+"/")+n,d=r.cloneElement(a,{key:i},void 0!==a.props?a.props.children:void 0)),s.push(d))}function g(e,t,n,r,o){var s="";null!=n&&(s=p(n)+"/");var l=b.getPooled(t,s,r,o);!function(e,t,n){null==e||function e(t,n,r,o){var s,l=typeof t;if("undefined"!==l&&"boolean"!==l||(t=null),null===t||"string"===l||"number"===l||"object"===l&&t.$$typeof===a)return r(o,t,""===n?"."+u(t,0):n),1;var p=0,d=""===n?".":n+":";if(Array.isArray(t))for(var m=0;m<t.length;m++)p+=e(s=t[m],d+u(s,m),r,o);else{var h=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(h)for(var f,b=h.call(t),y=0;!(f=b.next()).done;)p+=e(s=f.value,d+u(s,y++),r,o);else if("object"===l){var g=""+t;i(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===g?"object with keys {"+Object.keys(t).join(", ")+"}":g,"")}}return p}(e,"",t,n)}(e,y,l),b.release(l)}b.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){if(this.instancePool.length){var a=this.instancePool.pop();return this.call(a,e,t,n,r),a}return new this(e,t,n,r)},(m=b).instancePool=[],m.getPooled=d||h,m.poolSize||(m.poolSize=10),m.release=function(e){i(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)},e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return s(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return s(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;i(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)g(e[n],t,n,o.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,o,i,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,a,o,i,s],l=0;(c=new Error(t.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(64);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t,n){"use strict";var r=n(0),a=n(2),o=n(31),i=n.n(o),s=n(8),c=Object(s.makeOutboundLink)(),u=Object(s.makeOutboundLink)();t.a=function(){var e=Object(a.sprintf)(Object(a.__)(
16
  /* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */
17
  "With %1$s you can track the ranking position of your page in the search results based on your keyphrase(s). %2$s","wordpress-seo"),"{{wincherLink/}}","{{wincherReadMoreLink/}}");return Object(r.createElement)("p",null,i()({mixedString:e,components:{wincherLink:Object(r.createElement)(c,{href:wpseoAdminGlobalL10n["links.wincher.website"]},"Wincher"),wincherReadMoreLink:Object(r.createElement)(u,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"]},Object(a.__)("Read more about keyphrase tracking with Wincher","wordpress-seo"))}}))}},function(e,t,n){"use strict";var r=n(6),a=n(20),o=n(26),i=n.n(o),s=n(15),c=n.n(s),u=n(16),l=n.n(u),p=n(0),d=n(7),m=n.n(d),h=n(2),f=n(1),b=n.n(f),y=n(3),g=n(13),v=n.n(g),O=n(4),w=n(8),j=n(31),E=n.n(j),k=Object(w.makeOutboundLink)(),T=function(e){var t=Object(h.sprintf)(
18
  /* translators: %d expands to the amount of allowed keyphrases on a free account, %s expands to a link to Wincher plans. */
22
  /* translators: %s: Expands to "Wincher". */
23
  Object(h.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher"))},I=function(){return Object(p.createElement)(O.Alert,{type:"info"},Object(h.sprintf)(
24
  /* translators: %s: Expands to "Wincher". */
25
+ Object(h.__)("%s is currently tracking the ranking position(s) of your page. This may take a few minutes. Please wait or check back later.","wordpress-seo"),"Wincher"))},A=n(24),q=n.n(A),L=n(29),D=n.n(L),F=n(83),N=n(32),M=Object(w.makeOutboundLink)(),B=v.a.span(R||(R=c()(["\n\tdisplay: block;\n\tfont-style: italic;\n\n\t@media (min-width: 782px) {\n\t\tdisplay: inline;\n\t\tposition: absolute;\n\t\t",": 8px;\n\t}\n"])),Object(w.getDirectionalStyle)("right","left")),K=v.a.th(_||(_=c()(["\n\tmin-width: 60px;\n"]))),H=v.a.div(S||(S=c()(["\n\twidth: 100%;\n\toverflow-y: auto;\n"]))),W=function(e){var t=Object(p.useRef)();return Object(p.useEffect)((function(){t.current=e})),t.current},U=Object(y.debounce)(N.c,500,{leading:!0}),V=function(e){var t=e.addTrackedKeyphrase,n=e.isLoggedIn,r=e.keyphrases,a=e.permalink,o=e.removeTrackedKeyphrase,i=e.setKeyphraseLimitReached,s=e.setRequestFailed,c=e.setRequestSucceeded,u=e.setTrackedKeyphrases,d=e.setHasTrackedAll,f=e.trackAll,b=e.trackedKeyphrases,g=e.isNewlyAuthenticated,v=e.websiteId,O=e.focusKeyphrase,w=e.newRequest,j=Object(p.useRef)(),E=Object(p.useRef)(),k=Object(p.useRef)(!1),T=Object(p.useState)([]),R=D()(T,2),_=R[0],S=R[1],x=Object(p.useCallback)((function(e){var t=e.toLowerCase();return b&&!Object(y.isEmpty)(b)&&b.hasOwnProperty(t)?b[t]:null}),[b]),C=Object(p.useMemo)((function(){return l()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(N.d)((function(){return E.current&&E.current.abort(),E.current="undefined"==typeof AbortController?null:new AbortController,U(r,a,E.current.signal)}),(function(e){c(e),u(e.results)}),(function(e){s(e)}));case 2:case"end":return e.stop()}}),e)})))}),[c,s,u,r,a]),P=Object(p.useCallback)(function(){var e=l()(m.a.mark((function e(n){var r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(Array.isArray(n)?n:[n]).map((function(e){return e.toLowerCase()})),S((function(e){return[].concat(q()(e),q()(r))})),e.next=4,Object(N.d)((function(){return Object(N.e)(r)}),(function(e){c(e),t(e.results),C()}),(function(e){400===e.status&&e.limit&&i(e.limit),s(e)}),201);case 4:S((function(e){return y.without.apply(void 0,[e].concat(q()(r)))}));case 5:case"end":return e.stop()}}),e)})));return function(_x){return e.apply(this,arguments)}}(),[c,s,i,t,C]),I=Object(p.useCallback)(function(){var e=l()(m.a.mark((function e(t,n){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=t.toLowerCase(),S((function(e){return[].concat(q()(e),[t])})),e.next=4,Object(N.d)((function(){return Object(N.f)(n)}),(function(e){c(e),o(t)}),(function(e){s(e)}));case 4:S((function(e){return Object(y.without)(e,t)}));case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[c,o,s]),A=Object(p.useCallback)(function(){var e=l()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(),e.next=3,P(t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[w,P]),L=W(a),V=W(r);Object(p.useEffect)((function(){n&&a&&(a!==L||Object(y.difference)(r,V).length)&&C()}),[n,a,L,r,V,C]),Object(p.useEffect)((function(){if(n&&f&&null!==b){var e=r.filter((function(e){return!x(e)}));e.length&&P(e),d()}}),[n,f,b,P,d,x,r]),Object(p.useEffect)((function(){g&&!k.current&&(C(),k.current=!0)}),[g,C]),Object(p.useEffect)((function(){if(n&&!Object(y.isEmpty)(b))return Object(y.filter)(b,(function(e){return Object(y.isEmpty)(e.updated_at)})).length>0&&(j.current=setInterval((function(){C()}),1e4)),function(){clearInterval(j.current)}}),[n,b,C]);var Y=n&&null===b;return r&&!Object(y.isEmpty)(r)&&Object(p.createElement)(p.Fragment,null,Object(p.createElement)(H,null,Object(p.createElement)("table",{className:"yoast yoast-table"},Object(p.createElement)("thead",null,Object(p.createElement)("tr",null,Object(p.createElement)("th",{scope:"col",abbr:Object(h.__)("Tracking","wordpress-seo")},Object(h.__)("Tracking","wordpress-seo")),Object(p.createElement)("th",{scope:"col",abbr:Object(h.__)("Keyphrase","wordpress-seo")},Object(h.__)("Keyphrase","wordpress-seo")),Object(p.createElement)("th",{scope:"col",abbr:Object(h.__)("Position","wordpress-seo")},Object(h.__)("Position","wordpress-seo")),Object(p.createElement)("th",{scope:"col",abbr:Object(h.__)("Position over time","wordpress-seo")},Object(h.__)("Position over time","wordpress-seo")),Object(p.createElement)(K,{className:"yoast-table--nobreak"}))),Object(p.createElement)("tbody",null,r.map((function(e,t){return Object(p.createElement)(F.b,{key:"trackable-keyphrase-".concat(t),keyphrase:e,onTrackKeyphrase:A,onUntrackKeyphrase:I,rowData:x(e),isFocusKeyphrase:e===O.trim(),websiteId:v,isDisabled:!n,isLoading:Y||_.indexOf(e.toLowerCase())>=0})}))))),Object(p.createElement)("p",{style:{marginBottom:0,position:"relative"}},Object(p.createElement)(M,{href:wpseoAdminGlobalL10n["links.wincher.login"]},Object(h.sprintf)(
26
  /* translators: %s expands to Wincher */
27
+ Object(h.__)("Get more insights over at %s","wordpress-seo"),"Wincher")),Object(p.createElement)(B,null,Object(h.__)("* focus keyphrase","wordpress-seo"))))};V.propTypes={addTrackedKeyphrase:b.a.func.isRequired,isLoggedIn:b.a.bool,isNewlyAuthenticated:b.a.bool,keyphrases:b.a.array,newRequest:b.a.func.isRequired,removeTrackedKeyphrase:b.a.func.isRequired,setRequestFailed:b.a.func.isRequired,setKeyphraseLimitReached:b.a.func.isRequired,setRequestSucceeded:b.a.func.isRequired,setTrackedKeyphrases:b.a.func.isRequired,setHasTrackedAll:b.a.func.isRequired,trackAll:b.a.bool,trackedKeyphrases:b.a.object,websiteId:b.a.string,permalink:b.a.string.isRequired,focusKeyphrase:b.a.string},V.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],trackAll:!1,trackedKeyphrases:null,websiteId:"",focusKeyphrase:""};var Y,G,z,$=V,Z=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getWincherWebsiteId,r=t.getWincherTrackedKeyphrases,a=t.getWincherTrackableKeyphrases,o=t.getWincherLoginStatus,i=t.getWincherPermalink,s=t.getFocusKeyphrase,c=t.isWincherNewlyAuthenticated,u=t.shouldWincherTrackAll;return{focusKeyphrase:s(),keyphrases:a(),trackedKeyphrases:r(),isLoggedIn:o(),trackAll:u(),websiteId:n(),isNewlyAuthenticated:c(),permalink:i()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setWincherNewRequest,r=t.setWincherRequestSucceeded,a=t.setWincherRequestFailed,o=t.setWincherSetKeyphraseLimitReached,i=t.setWincherTrackedKeyphrases,s=t.setWincherTrackingForKeyphrase,c=t.setWincherTrackAllKeyphrases,u=t.unsetWincherTrackingForKeyphrase;return{newRequest:function(){n()},setRequestSucceeded:function(e){r(e)},setRequestFailed:function(e){a(e)},setKeyphraseLimitReached:function(e){o(e)},addTrackedKeyphrase:function(e){s(e)},removeTrackedKeyphrase:function(e){u(e)},setTrackedKeyphrases:function(e){i(e)},setHasTrackedAll:function(){c(!1)}}}))])($),J=n(93),X=function(){return Object(p.createElement)(O.Alert,{type:"error"},Object(h.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo"))},Q=function(){return Object(p.createElement)(O.Alert,{type:"info"},Object(h.sprintf)(
28
  /* translators: %s: Expands to "Wincher". */
29
+ Object(h.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher"))},ee=n(85),te=n(86),ne=function(){return Object(p.createElement)(O.Alert,{type:"error"},Object(h.__)("Before you can track your SEO performance make sure to set either the post’s title and save it as a draft or manually set the post’s slug.","wordpress-seo"))},re=function(e){var t=e.response,n=e.onLogin;return 403===t.status||404===t.status?Object(p.createElement)(te.a,{onReconnect:n}):Object(p.createElement)(C,null)};re.propTypes={response:b.a.object.isRequired,onLogin:b.a.func.isRequired};var ae=function(e){var t=e.isSuccess,n=e.response,r=e.allKeyphrasesMissRanking,a=e.onLogin,o=e.keyphraseLimitReached,i=e.limit;return o?Object(p.createElement)(x,{limit:i}):Object(y.isEmpty)(n)||t?r?Object(p.createElement)(I,null):null:Object(p.createElement)(re,{response:n,onLogin:a})};ae.propTypes={isSuccess:b.a.bool.isRequired,allKeyphrasesMissRanking:b.a.bool.isRequired,response:b.a.object,onLogin:b.a.func.isRequired,keyphraseLimitReached:b.a.bool.isRequired,limit:b.a.number.isRequired},ae.defaultProps={response:{}};var oe=null,ie=function(){var e=l()(m.a.mark((function e(t,n){var r,a,o;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.onAuthentication,a=t.setRequestSucceeded,o=t.setRequestFailed,e.next=3,Object(N.d)((function(){return Object(N.a)(n)}),function(){var e=l()(m.a.mark((function e(t){var o;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r(!0,!0,n.websiteId.toString()),a(t),(o=oe.getPopup())&&o.close();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),function(){var e=l()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",o(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e)})));return function(_x,t){return e.apply(this,arguments)}}(),se=function(){var e=l()(m.a.mark((function e(t){var n,r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!oe||oe.isClosed()){e.next=3;break}return oe.focus(),e.abrupt("return");case 3:return e.next=5,Object(N.b)();case 5:n=e.sent,r=n.url,(oe=new ee.a(r,{success:{type:"wincher:oauth:success",callback:function(e){return ie(t,e)}},error:{type:"wincher:oauth:error",callback:function(){return t.onAuthentication(!1,!1)}}},{title:"Wincher_login",width:500,height:700})).createPopup();case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ce=function(e){return e.isLoggedIn?null:Object(p.createElement)("p",null,Object(p.createElement)(O.NewButton,{onClick:e.onLogin,variant:"primary"},Object(h.sprintf)(
30
  /* translators: %s expands to Wincher */
31
  Object(h.__)("Connect with %s","wordpress-seo"),"Wincher")))};ce.propTypes={isLoggedIn:b.a.bool.isRequired,onLogin:b.a.func.isRequired};var ue=v.a.div(Y||(Y=c()(["\n\tp {\n\t\tmargin: 1em 0;\n\t}\n"]))),le=v.a.div(G||(G=c()(["\n\t",";\n"])),(function(e){return e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"})),pe=v.a.div(z||(z=c()(["\n\tfont-weight: var(--yoast-font-weight-bold);\n\tcolor: var(--yoast-color-label);\n\tfont-size: var(--yoast-font-size-default);\n"]))),de=function(e){var t=e.isLoggedIn,n=e.keyphrases,r=e.shouldTrackAll;return!e.permalink&&t?Object(p.createElement)(ne,null):0===n.length?Object(p.createElement)(X,null):Object(p.createElement)(le,{isDisabled:!t},Object(p.createElement)("p",null,Object(h.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")),t&&r&&Object(p.createElement)(Q,null),Object(p.createElement)(Z,null))};function me(e){var t=e.isNewlyAuthenticated,n=e.isLoggedIn,r=Object(p.useCallback)((function(){se(e)}),[se,e]);return Object(p.createElement)(ue,null,t&&Object(p.createElement)(P,null),Object(p.createElement)(pe,null,Object(h.__)("SEO performance","wordpress-seo"),Object(p.createElement)(O.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"],linkText:Object(h.__)("Learn more about the SEO performance feature.","wordpress-seo")})),Object(p.createElement)(J.a,null),Object(p.createElement)(ce,{isLoggedIn:n,onLogin:r}),Object(p.createElement)(ae,i()({},e,{onLogin:r})),Object(p.createElement)(de,e))}de.propTypes={keyphrases:b.a.array.isRequired,isLoggedIn:b.a.bool.isRequired,shouldTrackAll:b.a.bool.isRequired,permalink:b.a.string.isRequired},me.propTypes={isLoggedIn:b.a.bool,isNewlyAuthenticated:b.a.bool,keyphrases:b.a.array,response:b.a.object,shouldTrackAll:b.a.bool,permalink:b.a.string},me.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],response:{},shouldTrackAll:!1,permalink:""},t.a=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.isWincherNewlyAuthenticated,r=t.getWincherKeyphraseLimitReached,a=t.getWincherLimit,o=t.getWincherLoginStatus,i=t.getWincherRequestIsSuccess,s=t.getWincherRequestResponse,c=t.getWincherTrackableKeyphrases,u=t.getWincherAllKeyphrasesMissRanking,l=t.getWincherPermalink,p=t.shouldWincherAutomaticallyTrackAll;return{keyphrases:c(),allKeyphrasesMissRanking:u(),isLoggedIn:o(),isNewlyAuthenticated:n(),isSuccess:i(),keyphraseLimitReached:r(),limit:a(),response:s(),shouldTrackAll:p(),permalink:l()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setWincherWebsiteId,r=t.setWincherRequestSucceeded,a=t.setWincherRequestFailed,o=t.setWincherLoginStatus;return{setRequestSucceeded:function(e){r(e)},setRequestFailed:function(e){a(e)},onAuthentication:function(e,t,r){n(r),o(e,t)}}}))])(me)},,,,,,,,,,,function(e,t,n){"use strict";var r,a=n(15),o=n.n(a),i=n(0),s=n(1),c=n.n(s),u=n(13),l=n.n(u),p=n(4),d=n(8),m=l()(p.StyledSection)(r||(r=o()(["\n\t&"," {\n\t\tpadding: 0;\n\n\t\t& "," {\n\t\t\t",": 20px;\n\t\t\tmargin-left: ",";\n\t\t}\n\t}\n"])),p.StyledSectionBase,p.StyledHeading,Object(d.getDirectionalStyle)("padding-left","padding-right"),Object(d.getDirectionalStyle)("0","20px")),h=function(e){var t=e.children,n=e.title,r=e.icon,a=e.hasPaperStyle,o=e.shoppingData;return Object(i.createElement)(m,{headingLevel:3,headingText:n,headingIcon:r,headingIconColor:"#555",hasPaperStyle:a,shoppingData:o},t)};h.propTypes={children:c.a.element,title:c.a.string,icon:c.a.string,hasPaperStyle:c.a.bool,shoppingData:c.a.object},h.defaultProps={hasPaperStyle:!0,shoppingData:null},t.a=h},function(e,t){e.exports=window.wp.sanitize},,function(e,t,n){"use strict";var r=n(6),a=n(20),o=n(0),i=n(2),s=n(1),c=n.n(s),u=n(3),l=n(4),p=function(){return Object(o.createElement)("p",{className:"yoast-related-keyphrases-modal__loading-message"},Object(i.sprintf)(
32
  /* translators: %1$s expands to "Yoast SEO", %2$s expands to "Semrush". */
34
  /* translators: %s : Expands to "Semrush". */
35
  Object(i.__)("You've reached your request limit for today. Check back tomorrow or upgrade your plan over at %s.","wordpress-seo"),"Semrush")),Object(o.createElement)(m,{href:window.wpseoAdminL10n["shortlinks.semrush.prices"],className:"yoast-button-upsell"},Object(i.sprintf)(
36
  /* translators: %s : Expands to "Semrush". */
37
+ Object(i.__)("Upgrade your %s plan","wordpress-seo"),"Semrush"),Object(o.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})))},f=n(16),b=n.n(f),y=n(9),g=n.n(y),v=n(10),O=n.n(v),w=n(12),j=n.n(w),E=n(18),k=n.n(E),T=n(19),R=n.n(T),_=n(11),S=n.n(_),x=n(7),C=n.n(x),P=n(36),I=n.n(P),A=n(39);var q="yoast-semrush-country-selector",L=[{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"}],D=function(e){k()(c,e);var t,n,r,a,s=(r=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=S()(r);if(a){var n=S()(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return R()(this,e)});function c(e){var t;return g()(this,c),(t=s.call(this,e)).relatedKeyphrasesRequest=t.relatedKeyphrasesRequest.bind(j()(t)),t.onChangeHandler=t.onChangeHandler.bind(j()(t)),t}return O()(c,[{key:"componentDidMount",value:function(){this.props.response&&this.props.keyphrase===this.props.lastRequestKeyphrase||this.relatedKeyphrasesRequest()}},{key:"storeCountryCode",value:function(e){I()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}})}},{key:"relatedKeyphrasesRequest",value:(n=b()(C.a.mark((function e(){var t,n,r,a;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,n=t.keyphrase,r=t.countryCode,(0,t.newRequest)(r,n),this.storeCountryCode(r),e.next=5,this.doRequest(n,r);case 5:if(200!==(a=e.sent).status){e.next=9;break}return this.handleSuccessResponse(a),e.abrupt("return");case 9:this.handleFailedResponse(a);case 10:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"handleSuccessResponse",value:function(e){var t=this.props,n=t.setNoResultsFound,r=t.setRequestSucceeded;0!==e.results.rows.length?r(e):n()}},{key:"handleFailedResponse",value:function(e){var t=this.props,n=t.setRequestLimitReached,r=t.setRequestFailed;"error"in e&&(e.error.includes("TOTAL LIMIT EXCEEDED")?n():r(e))}},{key:"doRequest",value:(t=b()(C.a.mark((function e(t,n){return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I()({path:Object(A.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:t,country_code:n})});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(_x,e){return t.apply(this,arguments)})},{key:"onChangeHandler",value:function(e){this.props.setCountry(e)}},{key:"render",value:function(){return Object(o.createElement)("div",{id:q},Object(o.createElement)(l.SingleSelect,{id:q+"-select",label:Object(i.__)("Show results for:","wordpress-seo"),name:"semrush-country-code",options:L,selected:this.props.countryCode,onChange:this.onChangeHandler,wrapperClassName:"yoast-field-group yoast-field-group--inline"}),Object(o.createElement)(l.NewButton,{id:q+"-button",variant:"secondary",onClick:this.relatedKeyphrasesRequest},Object(i.__)("Select country","wordpress-seo")))}}]),c}(o.Component);D.propTypes={keyphrase:c.a.string,countryCode:c.a.string,response:c.a.object,lastRequestKeyphrase:c.a.string,setCountry:c.a.func.isRequired,newRequest:c.a.func.isRequired,setNoResultsFound:c.a.func.isRequired,setRequestSucceeded:c.a.func.isRequired,setRequestLimitReached:c.a.func.isRequired,setRequestFailed:c.a.func.isRequired},D.defaultProps={keyphrase:"",countryCode:"us",response:{},lastRequestKeyphrase:""};var F=D,N=n(57),M=n(52);var B=Object(d.makeOutboundLink)(),K=function(e){k()(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=S()(t);if(n){var a=S()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return R()(this,e)});function a(e){var t;return g()(this,a),(t=r.call(this,e)).transformTrendDataToChartPoints=t.transformTrendDataToChartPoints.bind(j()(t)),t.getAreaChartDataTableHeaderLabels=t.getAreaChartDataTableHeaderLabels.bind(j()(t)),t.mapAreaChartDataToTableData=t.mapAreaChartDataToTableData.bind(j()(t)),t}return O()(a,[{key:"transformTrendDataToChartPoints",value:function(e){return e.split(",").map((function(e,t){return{x:t,y:parseFloat(e)}}))}},{key:"getAreaChartDataTableHeaderLabels",value:function(){return[Object(i.__)("Twelve months ago","wordpress-seo"),Object(i.__)("Eleven months ago","wordpress-seo"),Object(i.__)("Ten months ago","wordpress-seo"),Object(i.__)("Nine months ago","wordpress-seo"),Object(i.__)("Eight months ago","wordpress-seo"),Object(i.__)("Seven months ago","wordpress-seo"),Object(i.__)("Six months ago","wordpress-seo"),Object(i.__)("Five months ago","wordpress-seo"),Object(i.__)("Four months ago","wordpress-seo"),Object(i.__)("Three months ago","wordpress-seo"),Object(i.__)("Two months ago","wordpress-seo"),Object(i.__)("Last month","wordpress-seo")]}},{key:"mapAreaChartDataToTableData",value:function(e){return Math.round(100*e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.keyphrase,r=t.relatedKeyphrases,a=t.countryCode,s=t.data,c=t.renderAction,l="https://www.semrush.com/analytics/keywordoverview/?q="+encodeURIComponent(n)+"&db="+encodeURIComponent(a);return s&&!Object(u.isEmpty)(s.results)&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("table",{className:"yoast yoast-table"},Object(o.createElement)("thead",null,Object(o.createElement)("tr",null,Object(o.createElement)("th",{scope:"col",className:"yoast-table--primary"},Object(i.__)("Related keyphrase","wordpress-seo")),Object(o.createElement)("th",{scope:"col",abbr:Object(i.__)("Volume","wordpress-seo")},Object(i.__)("Volume","wordpress-seo"),Object(o.createElement)(M.a,{href:window.wpseoAdminL10n["shortlinks.semrush.volume_help"],className:"dashicons"},Object(o.createElement)("span",{className:"screen-reader-text"},Object(i.__)("Learn more about the related keyphrases volume","wordpress-seo")))),Object(o.createElement)("th",{scope:"col",abbr:Object(i.__)("Trend","wordpress-seo")},Object(i.__)("Trend","wordpress-seo"),Object(o.createElement)(M.a,{href:window.wpseoAdminL10n["shortlinks.semrush.trend_help"],className:"dashicons"},Object(o.createElement)("span",{className:"screen-reader-text"},Object(i.__)("Learn more about the related keyphrases trend","wordpress-seo")))),c&&Object(o.createElement)("td",{className:"yoast-table--nobreak"}))),Object(o.createElement)("tbody",null,s.results.rows.map((function(t,n){var a=t[0],s=e.transformTrendDataToChartPoints(t[2]),u=e.getAreaChartDataTableHeaderLabels();return Object(o.createElement)("tr",{key:n},Object(o.createElement)("td",null,a),Object(o.createElement)("td",null,t[1]),Object(o.createElement)("td",{className:"yoast-table--nopadding"},Object(o.createElement)(N.a,{width:66,height:24,data:s,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:e.mapAreaChartDataToTableData,dataTableCaption:Object(i.__)("Keyphrase volume in the last 12 months on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:u})),c&&Object(o.createElement)("td",{className:"yoast-table--nobreak"},c(a,r)))})))),Object(o.createElement)("p",{style:{marginBottom:0}},Object(o.createElement)(B,{href:l},Object(i.sprintf)(
38
  /* translators: %s expands to Semrush */
39
  Object(i.__)("Get more insights at %s","wordpress-seo"),"Semrush"))))}}]),a}(o.Component);K.propTypes={data:c.a.object,keyphrase:c.a.string,relatedKeyphrases:c.a.array,countryCode:c.a.string,renderAction:c.a.func},K.defaultProps={data:{},keyphrase:"",relatedKeyphrases:[],countryCode:"us",renderAction:null};var H=K,W=Object(d.makeOutboundLink)(),U=function(){return Object(o.createElement)(l.Alert,{type:"info"},Object(i.sprintf)(
40
  /* translators: %s: Expands to "Yoast SEO". */
42
  /* translators: %s: Expands to "Yoast SEO Premium". */
43
  Object(i.__)("Check out %s!","wordpress-seo"),"Yoast SEO Premium")))},V=function(){return Object(o.createElement)(l.Alert,{type:"error"},Object(i.__)("We've encountered a problem trying to get related keyphrases. Please try again later.","wordpress-seo"))},Y=function(){return Object(o.createElement)(l.Alert,{type:"warning"},Object(i.sprintf)(
44
  /* translators: %s: Expands to "Yoast SEO". */
45
+ Object(i.__)("You've reached the maximum amount of 4 related keyphrases. You can change or remove related keyphrases in the %s metabox or sidebar.","wordpress-seo"),"Yoast SEO"))},G=n(23);function z(e){var t=e.response,n=e.lastRequestKeyphrase,r=e.keyphrase,a=e.newRequest,s=e.setCountry,c=e.renderAction,l=e.countryCode,d=e.requestLimitReached,m=e.setRequestFailed,f=e.setNoResultsFound,b=e.relatedKeyphrases,y=e.setRequestSucceeded,g=e.setRequestLimitReached,v=Object(G.a)().isPremium;return Object(o.createElement)(o.Fragment,null,!d&&Object(o.createElement)(o.Fragment,null,!v&&Object(o.createElement)(U,null),v&&function(e){return e&&e.length>=4}(b)&&Object(o.createElement)(Y,null),Object(o.createElement)(F,{countryCode:l,setCountry:s,newRequest:a,keyphrase:r,setRequestFailed:m,setNoResultsFound:f,setRequestSucceeded:y,setRequestLimitReached:g,response:t,lastRequestKeyphrase:n})),function(e){var t=e.isPending,n=e.requestLimitReached,r=e.isSuccess,a=e.response,s=e.requestHasData;return t?Object(o.createElement)(p,null):n?Object(o.createElement)(h,null):!r&&function(e){return!Object(u.isEmpty)(e)&&"error"in e}(a)?Object(o.createElement)(V,null):s?void 0:Object(o.createElement)("p",null,Object(i.__)("Sorry, there's no data available for that keyphrase/country combination.","wordpress-seo"))}(e),Object(o.createElement)(H,{keyphrase:r,relatedKeyphrases:b,countryCode:l,renderAction:c,data:t}))}z.propTypes={keyphrase:c.a.string,relatedKeyphrases:c.a.array,renderAction:c.a.func,requestLimitReached:c.a.bool,countryCode:c.a.string.isRequired,setCountry:c.a.func.isRequired,newRequest:c.a.func.isRequired,setRequestSucceeded:c.a.func.isRequired,setRequestLimitReached:c.a.func.isRequired,setRequestFailed:c.a.func.isRequired,setNoResultsFound:c.a.func.isRequired,response:c.a.object,lastRequestKeyphrase:c.a.string},z.defaultProps={keyphrase:"",relatedKeyphrases:[],renderAction:null,requestLimitReached:!1,response:{},lastRequestKeyphrase:""},t.a=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getFocusKeyphrase,r=t.getSEMrushSelectedCountry,a=t.getSEMrushRequestLimitReached,o=t.getSEMrushRequestResponse,i=t.getSEMrushRequestIsSuccess,s=t.getSEMrushIsRequestPending,c=t.getSEMrushRequestHasData,u=t.getSEMrushRequestKeyphrase;return{keyphrase:n(),countryCode:r(),requestLimitReached:a(),response:o(),isSuccess:i(),isPending:s(),requestHasData:c(),lastRequestKeyphrase:u()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setSEMrushChangeCountry,r=t.setSEMrushNewRequest,a=t.setSEMrushRequestSucceeded,o=t.setSEMrushRequestFailed,i=t.setSEMrushSetRequestLimitReached,s=t.setSEMrushNoResultsFound;return{setCountry:function(e){n(e)},newRequest:function(e,t){r(e,t)},setRequestSucceeded:function(e){a(e)},setRequestFailed:function(e){o(e)},setRequestLimitReached:function(){i()},setNoResultsFound:function(){s()}}}))])(z)},,,,,function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(54),i=n(44);t.a=Object(r.compose)([Object(a.withSelect)((function(e){return{isCornerstone:(0,e("yoast-seo/editor").isCornerstoneContent)(),learnMoreUrl:wpseoAdminL10n["shortlinks.cornerstone_content_info"]}})),Object(a.withDispatch)((function(e){return{onChange:e("yoast-seo/editor").toggleCornerstoneContent}})),Object(i.a)()])(o.CollapsibleCornerstone)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3);function a(e){return void 0===e.length?e:Object(r.flatten)(e).sort((function(e,t){return void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority}))}},,function(e,t,n){"use strict";var r=n(9),a=n.n(r),o=n(10),i=n.n(o),s=n(3),c=function(){function e(){a()(this,e)}return i()(e,[{key:"listen",value:function(e){this.classicEditorContainer=document.getElementById("et_pb_main_editor_wrap"),this.classicEditorContainer&&new MutationObserver((function(t){Object(s.forEach)(t,(function(t){"attributes"===t.type&&"class"===t.attributeName&&(t.target.classList.contains("et_pb_hidden")?e.classicEditorHidden():e.classicEditorShown())}))})).observe(this.classicEditorContainer,{attributes:!0})}}],[{key:"isActive",value:function(){return!!document.getElementById("et_pb_main_editor_wrap")}},{key:"isTinyMCEHidden",value:function(){var e=document.getElementById("et_pb_main_editor_wrap");return!!e&&e.classList.contains("et_pb_hidden")}}]),e}(),u=function(){function e(){a()(this,e)}return i()(e,null,[{key:"isActive",value:function(){return!!window.VCV_I18N}}]),e}(),l={classicEditorHidden:s.noop,classicEditorShown:s.noop,pageBuilderLoaded:s.noop},p=function(){function e(){a()(this,e),this.determineActivePageBuilders()}return i()(e,[{key:"determineActivePageBuilders",value:function(){c.isActive()&&(this.diviActive=!0),u.isActive()&&(this.vcActive=!0)}},{key:"isPageBuilderActive",value:function(){return this.diviActive||this.vcActive}},{key:"listen",value:function(e){this.callbacks=Object(s.defaults)(e,l),this.diviActive&&(new c).listen(e)}},{key:"isClassicEditorHidden",value:function(){return!(!this.diviActive||!c.isTinyMCEHidden())}}]),e}();t.a=p},function(e,t,n){"use strict";var r,a=n(14),o=n.n(a),i=n(0),s=n(20),c=n(6),u=n(2),l=n(1),p=n.n(l),d=n(24),m=n.n(d),h=n(15),f=n.n(h),b=n(4),y=n(21),g=n(8),v=n(31),O=n.n(v),w=n(13),j=n.n(w),E=n(76),k=n(74),T=j.a.div(r||(r=f()(["\n\tpadding: 16px;\n"]))),R=function(e,t,n){var r=e.find((function(e){return e.value===t}));return[{name:Object(u.sprintf)(
46
  /* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */
47
  Object(u.__)("Default for %1$s (%2$s)","wordpress-seo"),n,r?r.name:""),value:""}].concat(m()(e))},_=function(e){return Object(u.sprintf)(
48
  /* translators: %1$s expands to the plural name of the current post type, %2$s and %3$s expand to a link to the Search Appearance Settings page */
49
+ Object(u.__)("You can change the default type for %1$s in your %2$sSearch Appearance Settings%3$s.","wordpress-seo"),e,"{{link}}","{{/link}}")},S=function(e){return Object(i.createElement)(b.FieldGroup,{label:e.helpTextTitle,linkTo:e.helpTextLink,linkText:Object(u.__)("Learn more about structured data with Schema.org","wordpress-seo"),description:e.helpTextDescription})};S.propTypes={helpTextTitle:p.a.string.isRequired,helpTextLink:p.a.string.isRequired,helpTextDescription:p.a.string.isRequired};var x=function(e){return Object(i.createElement)("p",null,e.helpTextDescription+" ",Object(i.createElement)("a",{href:e.helpTextLink},Object(u.__)("Read more about Schema.","wordpress-seo")))};x.propTypes={helpTextDescription:p.a.string.isRequired,helpTextLink:p.a.string.isRequired};var C=function(e){var t,n=R(e.pageTypeOptions,e.defaultPageType,e.postTypeName),r=R(e.articleTypeOptions,e.defaultArticleType,e.postTypeName),a=Object(k.isFeatureEnabled)("SCHEMA_BLOCKS");return Object(i.createElement)(i.Fragment,null,a?Object(i.createElement)(x,e):Object(i.createElement)(S,e),a&&Object(i.createElement)(y.Slot,{name:Object(g.join)(["yoast-schema-blocks-analysis",e.location])}),Object(i.createElement)(b.FieldGroup,{label:Object(u.__)("What type of page or content is this?","wordpress-seo"),linkTo:e.additionalHelpTextLink,linkText:Object(u.__)("Learn more about page or content types","wordpress-seo")}),Object(i.createElement)(b.Select,{id:Object(g.join)(["yoast-schema-page-type",e.location]),options:n,label:Object(u.__)("Page type","wordpress-seo"),onChange:e.schemaPageTypeChange,selected:e.schemaPageTypeSelected}),e.showArticleTypeInput&&Object(i.createElement)(b.Select,{id:Object(g.join)(["yoast-schema-article-type",e.location]),options:r,label:Object(u.__)("Article type","wordpress-seo"),onChange:e.schemaArticleTypeChange,selected:e.schemaArticleTypeSelected}),e.displayFooter&&Object(i.createElement)("p",null,(t=e.postTypeName,O()({mixedString:_(t),components:{link:Object(i.createElement)("a",{href:"/wp-admin/admin.php?page=wpseo_titles#top#post-types",target:"_blank"})}}))))};C.propTypes={schemaPageTypeChange:p.a.func,schemaPageTypeSelected:p.a.string,pageTypeOptions:E.b.isRequired,schemaArticleTypeChange:p.a.func,schemaArticleTypeSelected:p.a.string,articleTypeOptions:E.b.isRequired,showArticleTypeInput:p.a.bool.isRequired,additionalHelpTextLink:p.a.string.isRequired,helpTextLink:p.a.string.isRequired,helpTextTitle:p.a.string.isRequired,helpTextDescription:p.a.string.isRequired,postTypeName:p.a.string.isRequired,displayFooter:p.a.bool,defaultPageType:p.a.string.isRequired,defaultArticleType:p.a.string.isRequired,location:p.a.string.isRequired},C.defaultProps={schemaPageTypeChange:function(){},schemaPageTypeSelected:null,schemaArticleTypeChange:function(){},schemaArticleTypeSelected:null,displayFooter:!1};var P=function(e){return e.isMetabox?Object(i.createPortal)(Object(i.createElement)(T,null,Object(i.createElement)(C,e)),document.getElementById("wpseo-meta-section-schema")):Object(i.createElement)(C,e)};P.propTypes={showArticleTypeInput:p.a.bool,articleTypeLabel:p.a.string,additionalHelpTextLink:p.a.string,pageTypeLabel:p.a.string.isRequired,helpTextLink:p.a.string.isRequired,helpTextTitle:p.a.string.isRequired,helpTextDescription:p.a.string.isRequired,isMetabox:p.a.bool.isRequired,postTypeName:p.a.string.isRequired,displayFooter:p.a.bool,loadSchemaArticleData:p.a.func.isRequired,loadSchemaPageData:p.a.func.isRequired,location:p.a.string.isRequired},P.defaultProps={showArticleTypeInput:!1,articleTypeLabel:"",additionalHelpTextLink:"",displayFooter:!1};var I=P,A=n(77),q=n(44);function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var F=function(e){var t=null!==A.a.articleTypeInput;Object(i.useEffect)((function(){e.loadSchemaPageData(),t&&e.loadSchemaArticleData()}),[]);var n=window.wpseoScriptData.metabox.schema,r=n.pageTypeOptions,a=n.articleTypeOptions,o={articleTypeLabel:Object(u.__)("Article type","wordpress-seo"),pageTypeLabel:Object(u.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:Object(u.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:Object(u.__)("This helps search engines understand your website and your content. You can change some of your settings for this page below.","wordpress-seo"),showArticleTypeInput:t,pageTypeOptions:r,articleTypeOptions:a},s=D(D(D({},e),o),"metabox"===e.location?{helpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.page_type"],isMetabox:!0}:{helpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.page_type"],isMetabox:!1});return Object(i.createElement)(I,s)};F.propTypes={displayFooter:p.a.bool.isRequired,schemaPageTypeSelected:p.a.string.isRequired,schemaArticleTypeSelected:p.a.string.isRequired,defaultArticleType:p.a.string.isRequired,defaultPageType:p.a.string.isRequired,loadSchemaPageData:p.a.func.isRequired,loadSchemaArticleData:p.a.func.isRequired,schemaPageTypeChange:p.a.func.isRequired,schemaArticleTypeChange:p.a.func.isRequired,location:p.a.string.isRequired},t.a=Object(s.compose)([Object(c.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getPreferences,r=t.getPageType,a=t.getDefaultPageType,o=t.getArticleType,i=t.getDefaultArticleType;return{displayFooter:n().displaySchemaSettingsFooter,schemaPageTypeSelected:r(),schemaArticleTypeSelected:o(),defaultArticleType:i(),defaultPageType:a()}})),Object(c.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setPageType,r=t.setArticleType;return{loadSchemaPageData:t.getSchemaPageData,loadSchemaArticleData:t.getSchemaArticleData,schemaPageTypeChange:n,schemaArticleTypeChange:r}})),Object(q.a)()])(F)},function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(0),i=n(2),s=n(4),c=n(8),u=n(1),l=n.n(u),p=n(30),d=function(e){var t=e.noIndex,n=e.onNoIndexChange,r=e.editorContext,a=e.isPrivateBlog,u=function(e){var t=Object(i.__)("No","wordpress-seo"),n=Object(i.__)("Yes","wordpress-seo"),r=e.noIndex?t:n;return window.wpseoScriptData.isPost?[{name:Object(i.sprintf)(
50
  /* Translators: %s translates to "yes" or "no", %s translates to the Post Label in plural form */
51
  Object(i.__)("%s (current default for %s)","wordpress-seo"),r,e.postTypeNamePlural),value:"0"},{name:t,value:"1"},{name:n,value:"2"}]:[{name:Object(i.sprintf)(
52
  /* Translators: %s translates to the "yes" or "no" ,%s translates to the Post Label in plural form */
54
  /* Translators: %s translates to the Post Label in singular form */
55
  Object(i.__)("Allow search engines to show this %s in search results?","wordpress-seo"),r.postTypeNameSingular),onChange:n,id:Object(c.join)(["yoast-meta-robots-noindex",e]),options:u,selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.allow_search_engines"],linkText:Object(i.__)("Learn more about the no-index setting on our help page.","wordpress-seo")}))}))};d.propTypes={noIndex:l.a.string.isRequired,onNoIndexChange:l.a.func.isRequired,editorContext:l.a.object.isRequired,isPrivateBlog:l.a.bool},d.defaultProps={isPrivateBlog:!1};var m=function(e){var t=e.noFollow,n=e.onNoFollowChange,r=e.postTypeName;return Object(o.createElement)(p.LocationConsumer,null,(function(e){var a=Object(c.join)(["yoast-meta-robots-nofollow",e]);return Object(o.createElement)(s.RadioButtonGroup,{id:a,options:[{value:"0",label:"Yes"},{value:"1",label:"No"}],label:Object(i.sprintf)(
56
  /* Translators: %s translates to the Post Label in singular form */
57
+ Object(i.__)("Should search engines follow links on this %s","wordpress-seo"),r),groupName:a,onChange:n,selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.follow_links"],linkText:Object(i.__)("Learn more about the no-follow setting on our help page.","wordpress-seo")})}))};m.propTypes={noFollow:l.a.string.isRequired,onNoFollowChange:l.a.func.isRequired,postTypeName:l.a.string.isRequired};var h=function(e){var t=e.advanced,n=e.onAdvancedChange;return Object(o.createElement)(p.LocationConsumer,null,(function(e){var r=Object(c.join)(["yoast-meta-robots-advanced",e]),a="".concat(r,"-input");return Object(o.createElement)(s.MultiSelect,{label:Object(i.__)("Meta robots advanced","wordpress-seo"),onChange:n,id:r,inputId:a,options:[{name:Object(i.__)("No Image Index","wordpress-seo"),value:"noimageindex"},{name:Object(i.__)("No Archive","wordpress-seo"),value:"noarchive"},{name:Object(i.__)("No Snippet","wordpress-seo"),value:"nosnippet"}],selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.meta_robots"],linkText:Object(i.__)("Learn more about advanced meta robots settings on our help page.","wordpress-seo")})}))};h.propTypes={advanced:l.a.array.isRequired,onAdvancedChange:l.a.func.isRequired};var f=function(e){var t=e.breadcrumbsTitle,n=e.onBreadcrumbsTitleChange;return Object(o.createElement)(p.LocationConsumer,null,(function(e){return Object(o.createElement)(s.TextInput,{label:Object(i.__)("Breadcrumbs Title","wordpress-seo"),id:Object(c.join)(["yoast-breadcrumbs-title",e]),onChange:n,value:t,linkTo:wpseoAdminL10n["shortlinks.advanced.breadcrumbs_title"],linkText:Object(i.__)("Learn more about the breadcrumbs title setting on our help page.","wordpress-seo")})}))};f.propTypes={breadcrumbsTitle:l.a.string.isRequired,onBreadcrumbsTitleChange:l.a.func.isRequired};var b=function(e){var t=e.canonical,n=e.onCanonicalChange;return Object(o.createElement)(p.LocationConsumer,null,(function(e){return Object(o.createElement)(s.TextInput,{label:Object(i.__)("Canonical URL","wordpress-seo"),id:Object(c.join)(["yoast-canonical",e]),onChange:n,value:t,linkTo:"https://yoa.st/canonical-url",linkText:Object(i.__)("Learn more about canonical URLs on our help page.","wordpress-seo")})}))};b.propTypes={canonical:l.a.string.isRequired,onCanonicalChange:l.a.func.isRequired};var y=function(e){var t=e.noIndex,n=e.noFollow,r=e.advanced,a=e.breadcrumbsTitle,i=e.canonical,s=e.onNoIndexChange,c=e.onNoFollowChange,u=e.onAdvancedChange,l=e.onBreadcrumbsTitleChange,p=e.onCanonicalChange,y=e.onLoad,g=e.isLoading,v=e.editorContext,O=e.isBreadcrumbsDisabled,w=e.isPrivateBlog;Object(o.useEffect)((function(){setTimeout((function(){g&&y()}))}));var j={noIndex:t,onNoIndexChange:s,editorContext:v,isPrivateBlog:w},E={noFollow:n,onNoFollowChange:c,postTypeName:v.postTypeNameSingular},k={advanced:r,onAdvancedChange:u},T={breadcrumbsTitle:a,onBreadcrumbsTitleChange:l},R={canonical:i,onCanonicalChange:p};return g?null:Object(o.createElement)(o.Fragment,null,Object(o.createElement)(d,j),v.isPost&&Object(o.createElement)(m,E),v.isPost&&Object(o.createElement)(h,k),!O&&Object(o.createElement)(f,T),Object(o.createElement)(b,R))};y.propTypes={noIndex:l.a.string.isRequired,canonical:l.a.string.isRequired,onNoIndexChange:l.a.func.isRequired,onCanonicalChange:l.a.func.isRequired,onLoad:l.a.func.isRequired,isLoading:l.a.bool.isRequired,editorContext:l.a.object.isRequired,isBreadcrumbsDisabled:l.a.bool.isRequired,isPrivateBlog:l.a.bool,advanced:l.a.array,onAdvancedChange:l.a.func,noFollow:l.a.string,onNoFollowChange:l.a.func,breadcrumbsTitle:l.a.string,onBreadcrumbsTitleChange:l.a.func},y.defaultProps={advanced:[],onAdvancedChange:function(){},noFollow:"",onNoFollowChange:function(){},breadcrumbsTitle:"",onBreadcrumbsTitleChange:function(){},isPrivateBlog:!1};var g=y;t.a=Object(r.compose)([Object(a.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getNoIndex,r=t.getNoFollow,a=t.getAdvanced,o=t.getBreadcrumbsTitle,i=t.getCanonical,s=t.getIsLoading,c=t.getEditorContext,u=(0,t.getPreferences)(),l=u.isBreadcrumbsDisabled,p=u.isPrivateBlog;return{noIndex:n(),noFollow:r(),advanced:a(),breadcrumbsTitle:o(),canonical:i(),isLoading:s(),editorContext:c(),isBreadcrumbsDisabled:l,isPrivateBlog:p}})),Object(a.withDispatch)((function(e){var t=e("yoast-seo/editor");return{onNoIndexChange:t.setNoIndex,onNoFollowChange:t.setNoFollow,onAdvancedChange:t.setAdvanced,onBreadcrumbsTitleChange:t.setBreadcrumbsTitle,onCanonicalChange:t.setCanonical,onLoad:t.loadAdvancedSettingsData}}))])(g)},,,,,function(e,t){e.exports=window.yoast.searchMetadataPreviews},function(e,t,n){"use strict";var r=n(0),a=n(21),o=n(1),i=n.n(o),s=n(88),c=function(e){return Object(r.useEffect)((function(){setTimeout(e.onLoad)}),[]),e.isPremium?Object(r.createElement)(a.Slot,{name:"YoastTwitterPremium".concat(e.location.charAt(0).toUpperCase()+e.location.slice(1)),fillProps:e}):Object(r.createElement)(s.a,e)};c.propTypes={isPremium:i.a.bool.isRequired,onLoad:i.a.func.isRequired,location:i.a.string.isRequired},t.a=c},function(e,t){e.exports=window.yoast.socialMetadataForms},function(e,t,n){"use strict";var r=n(14),a=n.n(r),o=n(29),i=n.n(o),s=n(0),c=n(21),u=n(1),l=n.n(u),p=n(88);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(e){var t=Object(s.useState)(""),n=i()(t,2),r=n[0],a=n[1],o=Object(s.useCallback)((function(e){a(e.detail.metaTabId)}),[a]);Object(s.useEffect)((function(){return setTimeout(e.onLoad),window.addEventListener("YoastSEO:metaTabChange",o),function(){window.removeEventListener("YoastSEO:metaTabChange",o)}}),[]);var u=Object(s.useMemo)((function(){return m(m({},e),{},{activeMetaTabId:r})}),[e,r]);return e.isPremium?Object(s.createElement)(c.Slot,{name:"YoastFacebookPremium".concat(e.location.charAt(0).toUpperCase()+e.location.slice(1)),fillProps:u}):Object(s.createElement)(p.a,u)};h.propTypes={isPremium:l.a.bool.isRequired,onLoad:l.a.func.isRequired,location:l.a.string.isRequired},t.a=h},,,,,,,,function(e,t,n){"use strict";var r=n(6),a=n(4);t.a=Object(r.withSelect)((function(e){return{message:(0,e("yoast-seo/editor").getWarningMessage)()}}))(a.Warning)},function(e,t,n){"use strict";var r=n(14),a=n.n(r),o=n(26),i=n.n(o),s=n(0),c=n(20),u=n(6),l=n(2),p=n(123),d=n(30),m=n(105),h=n(56),f=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)),Object(h.applyReplaceUsingPlugin)(e)};t.a=Object(c.compose)([Object(u.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getBaseUrlFromSettings,r=t.getDateFromSettings,a=t.getFocusKeyphrase,o=t.getRecommendedReplaceVars,i=t.getReplaceVars,s=t.getShoppingData,c=t.getSiteIconUrlFromSettings,u=t.getSnippetEditorData,l=t.getSnippetEditorMode,p=t.getSnippetEditorPreviewImageUrl,d=t.getSnippetEditorWordsToHighlight,m=t.isCornerstoneContent,h=t.getIsTerm,f=t.getContentLocale,b=i();return b.forEach((function(e){""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(e.value="%%"+e.name+"%%")})),{baseUrl:n(),data:u(),date:r(),faviconSrc:c(),keyword:a(),mobileImageSrc:p(),mode:l(),recommendedReplacementVariables:o(),replacementVariables:b,shoppingData:s(),wordsToHighlight:d(),isCornerstone:m(),isTaxonomy:h(),locale:f()}})),Object(u.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.updateData,r=t.switchMode,o=t.updateAnalysisData,i=e("core/editor");return{onChange:function(e,t){switch(e){case"mode":r(t);break;case"slug":n({slug:t}),i&&i.editPost({slug:t});break;default:n(a()({},e,t))}},onChangeAnalysisData:o}}))])((function(e){return Object(s.createElement)(d.LocationConsumer,null,(function(t){return Object(s.createElement)(m.a,{icon:"eye",hasPaperStyle:e.hasPaperStyle},Object(s.createElement)(p.SnippetEditor,i()({},e,{descriptionPlaceholder:Object(l.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:f,showCloseButton:!1,idSuffix:t})))}))}))},function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(8),i=n(124),s=n(23),c=n(44),u=n(58),l=function(e){Object(a.dispatch)("yoast-seo/editor").setTwitterPreviewImage({url:e.url,id:e.id,warnings:Object(o.validateTwitterImage)(e)})},p=function(){Object(u.a)(l)};t.a=Object(r.compose)([Object(a.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getTwitterDescription,r=t.getTwitterTitle,a=t.getTwitterImageUrl,o=t.getFacebookImageUrl,i=t.getFacebookTitle,c=t.getFacebookDescription,u=t.getDescription,l=t.getSeoTitle,p=t.getTwitterWarnings,d=t.getTwitterImageType,m=t.getImageFallback,h=t.getRecommendedReplaceVars,f=t.getReplaceVars,b=t.getSiteUrl,y=t.getSeoTitleTemplate,g=t.getSeoTitleTemplateNoFallback,v=t.getSocialTitleTemplate,O=t.getSeoDescriptionTemplate,w=t.getSocialDescriptionTemplate,j=t.getReplacedExcerpt;return{imageUrl:a(),imageFallbackUrl:o()||m(),recommendedReplacementVariables:h(),replacementVariables:f(),description:n(),descriptionPreviewFallback:w()||c()||u()||O()||j()||"",title:r(),titlePreviewFallback:v()||i()||l()||g()||y()||"",imageWarnings:p(),siteUrl:b(),isPremium:!!Object(s.a)().isPremium,isLarge:"summary"!==d(),titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Twitter"}})),Object(a.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setTwitterPreviewTitle,r=t.setTwitterPreviewDescription,a=t.clearTwitterPreviewImage,o=t.loadTwitterPreviewData;return{onSelectImageClick:p,onRemoveImageClick:a,onDescriptionChange:r,onTitleChange:n,onLoad:o}})),Object(c.a)()])(i.a)},function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(8),i=n(126),s=n(23),c=n(44),u=n(58),l=function(e){Object(a.dispatch)("yoast-seo/editor").setFacebookPreviewImage({url:e.url,id:e.id,warnings:Object(o.validateFacebookImage)(e)})},p=function(){Object(u.a)(l)};t.a=Object(r.compose)([Object(a.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getFacebookDescription,r=t.getDescription,a=t.getFacebookTitle,o=t.getSeoTitle,i=t.getFacebookImageUrl,c=t.getImageFallback,u=t.getFacebookWarnings,l=t.getRecommendedReplaceVars,p=t.getReplaceVars,d=t.getSiteUrl,m=t.getSeoTitleTemplate,h=t.getSeoTitleTemplateNoFallback,f=t.getSocialTitleTemplate,b=t.getSeoDescriptionTemplate,y=t.getSocialDescriptionTemplate,g=t.getReplacedExcerpt;return{imageUrl:i(),imageFallbackUrl:c(),recommendedReplacementVariables:l(),replacementVariables:p(),description:n(),descriptionPreviewFallback:y()||r()||b()||g()||"",title:a(),titlePreviewFallback:f()||o()||h()||m()||"",imageWarnings:u(),siteUrl:d(),isPremium:!!Object(s.a)().isPremium,titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Facebook"}})),Object(a.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setFacebookPreviewTitle,r=t.setFacebookPreviewDescription,a=t.clearFacebookPreviewImage,o=t.loadFacebookPreviewData;return{onSelectImageClick:p,onRemoveImageClick:a,onDescriptionChange:r,onTitleChange:n,onLoad:o}})),Object(c.a)()])(i.a)},,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));var r=n(0),a=n(1),o=n.n(a),i=n(21),s=n(114),c=n(69);function u(e){var t=e.theme;return Object(r.createElement)(c.a,{theme:t,location:"metabox"},Object(r.createElement)(i.Slot,{name:"YoastMetabox"},(function(e){return Object(s.a)(e)})))}var l=n(6),p=n(20),d=n(2),m=n(113),h=n(135),f=n(134),b=n(54),y=n(53),g=n(33),v=n(118),O=n(137),w=n(136),j=function(e){var t=e.displayFacebook,n=e.displayTwitter;return Object(r.createElement)(r.Fragment,null,t&&Object(r.createElement)(y.a,{hasSeparator:!1
58
  /* Translators: %s expands to Facebook. */,title:Object(d.sprintf)(Object(d.__)("%s preview","wordpress-seo"),"Facebook"),initialIsOpen:!0},Object(r.createElement)(O.a,null)),n&&Object(r.createElement)(y.a
59
+ /* Translators: %s expands to Twitter. */,{title:Object(d.sprintf)(Object(d.__)("%s preview","wordpress-seo"),"Twitter"),hasSeparator:t,initialIsOpen:!0},Object(r.createElement)(w.a,null)))};j.propTypes={displayFacebook:o.a.bool.isRequired,displayTwitter:o.a.bool.isRequired};var E=j,k=Object(l.withSelect)((function(e){var t=(0,e("yoast-seo/editor").getPreferences)();return{displayFacebook:t.displayFacebook,displayTwitter:t.displayTwitter}}))(E),T=n(42);function R(e){var t=e.target;return Object(r.createElement)(T.a,{target:t},Object(r.createElement)(k,null))}R.propTypes={target:o.a.string.isRequired};var _=n(117),S=n(108),x=n(94),C=n(25);function P(e){var t=e.settings,n=e.wincherKeyphrases,a=e.setWincherNoKeyphrase,o=Object(r.useCallback)((function(){if(!n.length)return a(!0),document.querySelector("#focus-keyword-input-metabox").focus(),!1}),[n,a]);return Object(r.createElement)(i.Fill,{name:"YoastMetabox"},Object(r.createElement)(g.a,{key:"warning",renderPriority:1},Object(r.createElement)(f.a,null)),t.isKeywordAnalysisActive&&Object(r.createElement)(g.a,{key:"keyword-input",renderPriority:8},Object(r.createElement)(b.KeywordInput,{isSEMrushIntegrationActive:t.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&Object(r.createElement)(i.Fill,{name:"YoastRelatedKeyphrases"},Object(r.createElement)(S.a,null))),Object(r.createElement)(g.a,{key:"google-preview",renderPriority:9},Object(r.createElement)(y.a,{id:"yoast-snippet-editor-metabox",title:Object(d.__)("Google preview","wordpress-seo"),initialIsOpen:!0},Object(r.createElement)(h.a,{hasPaperStyle:!1}))),t.isContentAnalysisActive&&Object(r.createElement)(g.a,{key:"readability-analysis",renderPriority:10},Object(r.createElement)(b.ReadabilityAnalysis,null)),t.isKeywordAnalysisActive&&Object(r.createElement)(g.a,{key:"seo-analysis",renderPriority:20},Object(r.createElement)(b.SeoAnalysis,{shouldUpsell:t.shouldUpsell,shouldUpsellWordFormRecognition:t.isWordFormRecognitionActive})),t.isKeywordAnalysisActive&&t.isWincherIntegrationActive&&Object(r.createElement)(g.a,{key:"wincher-seo-performance",renderPriority:25},Object(r.createElement)(y.a,{id:"yoast-wincher-seo-performance-metabox",title:Object(d.__)("Track SEO performance","wordpress-seo"),initialIsOpen:!1,prefixIcon:{icon:"chart-square-bar",color:C.colors.$color_grey_medium_dark},prefixIconCollapsed:{icon:"chart-square-bar",color:C.colors.$color_grey_medium_dark},onToggle:o},Object(r.createElement)(x.a,null))),t.isCornerstoneActive&&Object(r.createElement)(g.a,{key:"cornerstone",renderPriority:30},Object(r.createElement)(m.a,null)),t.displayAdvancedTab&&Object(r.createElement)(g.a,{key:"advanced",renderPriority:40},Object(r.createElement)(y.a,{id:"collapsible-advanced-settings",title:Object(d.__)("Advanced","wordpress-seo")},Object(r.createElement)(v.a,null))),t.displaySchemaSettings&&Object(r.createElement)(g.a,{key:"schema",renderPriority:50},Object(r.createElement)(_.a,null)),Object(r.createElement)(g.a,{key:"social",renderPriority:-1},Object(r.createElement)(R,{target:"wpseo-section-social"})))}P.propTypes={settings:o.a.object.isRequired,wincherKeyphrases:o.a.array.isRequired,setWincherNoKeyphrase:o.a.func.isRequired};var I=Object(p.compose)([Object(l.withSelect)((function(e,t){var n=e("yoast-seo/editor"),r=n.getPreferences,a=n.getWincherTrackableKeyphrases;return{settings:r(),store:t.store,wincherKeyphrases:a()}})),Object(l.withDispatch)((function(e){return{setWincherNoKeyphrase:e("yoast-seo/editor").setWincherNoKeyphrase}}))])(P);function A(e){var t=e.target,n=e.store,a=e.theme;return Object(r.createElement)(T.a,{target:t},Object(r.createElement)(u,{store:n,theme:a}),Object(r.createElement)(I,{store:n,theme:a}))}A.propTypes={target:o.a.string.isRequired,store:o.a.object,theme:o.a.object}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(24),a=n.n(r),o=n(9),i=n.n(o),s=n(10),c=n.n(s),u=n(18),l=n.n(u),p=n(19),d=n.n(p),m=n(11),h=n.n(m),f=n(0),b=n(21),y=n(158),g=n(23);var v=[],O=null,w=function(e){l()(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=h()(t);if(n){var a=h()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return d()(this,e)});function o(e){var t;return i()(this,o),(t=r.call(this,e)).state={registeredComponents:[]},t}return c()(o,[{key:"registerComponent",value:function(e,t){this.setState({registeredComponents:[].concat(a()(this.state.registeredComponents),[{key:e,Component:t}])})}},{key:"render",value:function(){return this.state.registeredComponents.map((function(e){var t=e.Component,n=e.key;return Object(f.createElement)(t,{key:n})}))}}]),o}(f.Component);function j(e,t){null===O||null===O.current?v.push({key:e,Component:t}):O.current.registerComponent(e,t)}var E=n(14),k=n.n(E),T=n(17),R=n(3),_=n(27),S=n.n(_),x=n(56),C=n(37),P=n(51);function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){k()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var q=S.a.markers.removeMarks,L=T.actions.updateReplacementVariable,D=T.actions.updateData,F=T.actions.hideReplacementVariables,N=T.actions.setContentImage,M=jQuery,B=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"content";i()(this,e),this._refresh=t,this._store=n,this._initialData={},this._previousData={},this._tinyMceId=r,this.updateReplacementData=this.updateReplacementData.bind(this),this.refreshYoastSEO=this.refreshYoastSEO.bind(this)}return c()(e,[{key:"initialize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this._initialData=this.getInitialData(e),Object(x.fillReplacementVariables)(this._initialData,this._store),this._store.dispatch(F(t)),this.subscribeToElements(),this.subscribeToStore(),this.subscribeToSnippetPreviewImage()}},{key:"subscribeToSnippetPreviewImage",value:function(){var e=this;if(!Object(R.isUndefined)(wp.media)&&!Object(R.isUndefined)(wp.media.featuredImage)){M("#postimagediv").on("click","#remove-post-thumbnail",(function(){e.featuredImageIsSet=!1,e.setImageInSnippetPreview(e.getContentImage())}));var t=wp.media.featuredImage.frame();t.on("select",(function(){var n=t.state().get("selection").first().attributes.url;n&&(e.featuredImageIsSet=!0,e.setImageInSnippetPreview(n))})),C.addEventHandler(this._tinyMceId,["init"],(function(){var t=e.getContentImage(),n=e.getFeaturedImage()||t||null;e._store.dispatch(N(t)),e.setImageInSnippetPreview(n)})),C.addEventHandler(this._tinyMceId,["change"],Object(R.debounce)((function(){if(!e.featuredImageIsSet){var t=e.getContentImage();e._store.dispatch(N(t)),e.setImageInSnippetPreview(t)}}),1e3))}}},{key:"getFeaturedImage",value:function(){var e=M("#set-post-thumbnail img").attr("src");return e?(this.featuredImageIsSet=!0,e):(this.featuredImageIsSet=!1,null)}},{key:"setImageInSnippetPreview",value:function(e){this._store.dispatch(D({snippetPreviewImageURL:e}))}},{key:"getContentImage",value:function(){if(this.featuredImageIsSet)return"";var e=this.getContent(),t=S.a.languageProcessing.imageInText(e),n="";if(0===t.length)return n;do{var r=t.shift(),a=(r=M(r)).prop("src");a&&(n=a)}while(""===n&&t.length>0);return n}},{key:"getTitle",value:function(){var e=document.getElementById("title");return e&&e.value||""}},{key:"getExcerpt",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=document.getElementById("excerpt"),n=t&&t.value||"",r="ja"===Object(P.a)()?80:156;return""!==n||!1===e?n:Object(x.excerptFromContent)(this.getContent(),r)}},{key:"getSlug",value:function(){var e="",t=document.getElementById("new-post-slug");return t?e=t.value:null!==document.getElementById("editable-post-name-full")&&(e=document.getElementById("editable-post-name-full").textContent),e}},{key:"getContent",value:function(){var e=this._tinyMceId;return q(C.getContentTinyMce(e))}},{key:"subscribeToElements",value:function(){this.subscribeToInputElement("title","title"),this.subscribeToInputElement("excerpt","excerpt"),this.subscribeToInputElement("excerpt","excerpt_only")}},{key:"subscribeToInputElement",value:function(e,t){var n=this,r=document.getElementById(e);r&&r.addEventListener("input",(function(e){n.updateReplacementData(e,t)}))}},{key:"updateReplacementData",value:function(e,t){var n=e.target.value;"excerpt"===t&&""===n&&(n=this.getExcerpt()),this._initialData[t]=n,this._store.dispatch(L(t,n))}},{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:"refreshYoastSEO",value:function(){var e=this.getData();!this.isShallowEqual(this._previousData,e)&&(this.handleEditorChange(e),this._previousData=e,window.YoastSEO&&window.YoastSEO.app&&window.YoastSEO.app.refresh())}},{key:"handleEditorChange",value:function(e){this._previousData.excerpt!==e.excerpt&&(this._store.dispatch(L("excerpt",e.excerpt)),this._store.dispatch(L("excerpt_only",e.excerpt_only))),this._previousData.snippetPreviewImageURL!==e.snippetPreviewImageURL&&this.setImageInSnippetPreview(e.snippetPreviewImageURL)}},{key:"subscribeToStore",value:function(){this.subscriber=Object(R.debounce)(this.refreshYoastSEO,500),this._store.subscribe(this.subscriber)}},{key:"getInitialData",value:function(e){return e=Object(x.mapCustomFields)(e,this._store),A(A({},e=Object(x.mapCustomTaxonomies)(e,this._store)),{},{title:this.getTitle(),excerpt:this.getExcerpt(),excerpt_only:this.getExcerpt(!1),slug:this.getSlug(),content:this.getContent()})}},{key:"getData",value:function(){return A(A({},this._store.getState().snippetEditor.data),{},{content:this.getContent(),excerpt:this.getExcerpt(),excerpt_only:this.getExcerpt(!1)})}}]),e}();window.yoast=window.yoast||{},window.yoast.initEditorIntegration=function(e){window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=j,function(e){var t=Object(g.a)();O=Object(f.createRef)();var n={isRtl:t.isRtl};Object(f.render)(Object(f.createElement)(b.SlotFillProvider,null,Object(f.createElement)(y.a,{target:"wpseo-metabox-root",store:e,theme:n}),Object(f.createElement)(w,{ref:O})),document.getElementById("wpseo-metabox-root")),v.forEach((function(e){O.current.registerComponent(e.key,e.Component)}))}(e)},window.yoast.EditorData=B}]);
js/dist/dashboard-widget.js CHANGED
@@ -1,19 +1,19 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=212)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.yoast.propTypes},10:function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},11:function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},12:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},128:function(e,t){e.exports=window.yoast.analysisReport},13:function(e,t){e.exports=window.yoast.styledComponents},15:function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},16:function(e,t){function n(e,t,n,r,o,a,s){try{var i=e[a](s),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,a){var s=e.apply(t,r);function i(e){n(s,o,a,i,c,"next",e)}function c(e){n(s,o,a,i,c,"throw",e)}i(void 0)}))}}},18:function(e,t,n){var r=n(43);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},19:function(e,t,n){var r=n(34),o=n(12);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},2:function(e,t){e.exports=window.wp.i18n},212:function(e,t,n){"use strict";n.r(t);var r,o,a,s,i=n(16),c=n.n(i),u=n(9),l=n.n(u),p=n(10),d=n.n(p),f=n(12),h=n.n(f),b=n(18),m=n.n(b),y=n(19),w=n.n(y),g=n(11),v=n.n(g),O=n(0),j=n(7),k=n.n(j),E=n(4),x=n(25),_=n(128),T=n(8),S=n(44),D=n(15),P=n.n(D),L=n(1),R=n.n(L),C=n(13),I=n.n(C),A=n(2),W=n(3),N=n(31),H=n.n(N),q=Object(T.makeOutboundLink)(),F=Object(T.makeOutboundLink)(),M=function(){var e=Object(A.sprintf)(Object(A.__)(
2
  /* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */
3
- "Connect %1$s with %2$s to track the ranking position of your site in the search results based on your keyphrase(s). %3$s","wordpress-seo"),"Yoast SEO","{{wincherLink/}}","{{wincherReadMoreLink/}}");return Object(O.createElement)("p",null,H()({mixedString:e,components:{wincherLink:Object(O.createElement)(q,{href:wpseoAdminGlobalL10n["links.wincher.website"]},"Wincher"),wincherReadMoreLink:Object(O.createElement)(F,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"]},Object(A.__)("Read more about keyphrase tracking with Wincher","wordpress-seo"))}}))},K=function(){return Object(O.createElement)(E.Alert,{type:"warning"},Object(A.sprintf)(
4
  /* translators: %s: Expands to "Wincher". */
5
- Object(A.__)('Your %s account does not contain any keyphrases for this website yet. You can track keyphrases by using the "Track SEO Performance" button in the post editor.',"wordpress-seo"),"Wincher"))},V=n(84),Y=n(87),$=Object(T.makeOutboundLink)(),z=Object(T.makeOutboundLink)(),B=Object(T.makeOutboundLink)(),G=I.a.div(r||(r=P()(["\n"]))),U=I.a.div(o||(o=P()(["\n\tfont-size: 14px;\n"]))),Q=I.a.h3(a||(a=P()(["\n\tmargin: 8px 0;\n\tfont-size: 1em;\n"]))),J=I.a.div(s||(s=P()(["\n\twidth: 100%;\n\toverflow-y: auto;\n"]))),X=function(e){var t=e.websiteId,n=e.id;return Object(A.sprintf)("https://app.wincher.com/websites/%s/keywords?serp=%s&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast",t,n)},Z=function(e){var t=e.className,n=e.onConnectAction;return Object(O.createElement)(U,{className:"".concat(t,"__text")},Object(O.createElement)(M,null),Object(O.createElement)("div",{className:"yoast"},Object(O.createElement)(E.NewButton,{variant:"secondary",id:"yoast-connect-wincher-dashboard-widget",onClick:n},Object(A.sprintf)(
6
  /* translators: %s expands to Wincher */
7
- Object(A.__)("Connect with %s","wordpress-seo"),"Wincher"))))};Z.propTypes={className:R.a.string,onConnectAction:R.a.func.isRequired},Z.defaultProps={className:""};var ee=function(e){var t=e.keyphrase,n=e.websiteId,r=t.id,o=t.keyword;return Object(O.createElement)("tr",null,Object(O.createElement)("td",null,o),Object(O.createElement)("td",null,Object(V.c)(t)),Object(O.createElement)("td",{className:"yoast-table--nopadding"},Object(O.createElement)(V.a,{chartData:t})),Object(O.createElement)("td",{className:"yoast-table--nobreak"},Object(O.createElement)($,{href:X({websiteId:n,id:r})},Object(A.__)("View","wordpress-seo"))))};ee.propTypes={keyphrase:R.a.object.isRequired,websiteId:R.a.string.isRequired};var te=function(e){var t=e.isLoggedIn,n=e.data,r=e.onConnectAction;return t?Object(W.isEmpty)(n)||404!==n.status?!n||Object(W.isEmpty)(n.results)?Object(O.createElement)(K,null):null:Object(O.createElement)(Y.a,{onReconnect:r}):Object(O.createElement)(Z,e)};te.propTypes={isLoggedIn:R.a.bool.isRequired,data:R.a.object.isRequired,onConnectAction:R.a.func.isRequired};var ne=function(){var e=Object(A.sprintf)(
8
  /* translators: %s expands to a link to Wincher login */
9
- Object(A.__)("This overview only shows you keyphrases added to Yoast SEO. There may be other keyphrases added to your %s.","wordpress-seo"),"{{wincherAccountLink/}}");return Object(O.createElement)("p",null,H()({mixedString:e,components:{wincherAccountLink:Object(O.createElement)(B,{href:wpseoAdminGlobalL10n["links.wincher.login"]},Object(A.sprintf)(
10
  /* translators: %s : Expands to "Wincher". */
11
- Object(A.__)("%s account","wordpress-seo"),"Wincher"))}}))},re=function(e){var t=e.className,n=e.websiteId,r=e.isLoggedIn,o=e.data;return Object(O.createElement)(G,{className:t},Object(O.createElement)(Q,{className:"".concat(t,"__header")},Object(A.__)("Top performing keyphrases on your site","wordpress-seo")),Object(O.createElement)(te,e),r&&o&&!Object(W.isEmpty)(o)&&!Object(W.isEmpty)(o.results)&&Object(O.createElement)(O.Fragment,null,Object(O.createElement)(ne,null),Object(O.createElement)(J,null,Object(O.createElement)("table",{className:"yoast yoast-table"},Object(O.createElement)("thead",null,Object(O.createElement)("tr",null,Object(O.createElement)("th",{scope:"col",abbr:Object(A.__)("Keyphrase","wordpress-seo")},Object(A.__)("Keyphrase","wordpress-seo")),Object(O.createElement)("th",{scope:"col",abbr:Object(A.__)("Position","wordpress-seo")},Object(A.__)("Position","wordpress-seo")),Object(O.createElement)("th",{scope:"col",abbr:Object(A.__)("Position over time","wordpress-seo")},Object(A.__)("Position over time","wordpress-seo")),Object(O.createElement)("td",{className:"yoast-table--nobreak"}))),Object(O.createElement)("tbody",null,Object(W.map)(o.results,(function(e,t){return Object(O.createElement)(ee,{key:"keyphrase-".concat(t),keyphrase:e,websiteId:n})}))))),Object(O.createElement)("p",{style:{marginBottom:0,position:"relative"}},Object(O.createElement)(z,{href:wpseoAdminGlobalL10n["links.wincher.login"]},Object(A.sprintf)(
12
  /* translators: %s expands to Wincher */
13
- Object(A.__)("Get more insights over at %s","wordpress-seo"),"Wincher")))))};re.propTypes={className:R.a.string,data:R.a.object.isRequired,websiteId:R.a.string.isRequired,isLoggedIn:R.a.bool.isRequired},re.defaultProps={className:"wincher-seo-performance"};var oe=re,ae=n(32),se=n(86);var ie=function(e){m()(i,e);var t,n,r,o,a,s=(o=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v()(o);if(a){var n=v()(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return w()(this,e)});function i(){var e;return l()(this,i),(e=s.call(this)).state={statistics:null,feed:null,wincherData:{},wincherWebsiteId:wpseoDashboardWidgetL10n.wincher_website_id,wincherIsLoggedIn:"1"===wpseoDashboardWidgetL10n.wincher_is_logged_in,isDataFetched:!1},e.onConnect=e.onConnect.bind(h()(e)),e.getWincherData=e.getWincherData.bind(h()(e)),e.performAuthenticationRequest=e.performAuthenticationRequest.bind(h()(e)),e}return d()(i,[{key:"componentDidMount",value:function(){var e=this,t=jQuery("#wpseo-dashboard-overview-hide");t.is(":checked")&&this.fetchData(),t.on("click",(function(){e.fetchData()}))}},{key:"fetchData",value:function(){this.state.isDataFetched||(this.getStatistics(),this.getFeed(),this.state.wincherIsLoggedIn&&this.getWincherData(),this.setState({isDataFetched:!0}))}},{key:"getStatistics",value:function(){var e=this;wpseoApi.get("statistics",(function(t){var n={};t&&t.seo_scores&&(n.seoScores=t.seo_scores.map((function(e){return{value:parseInt(e.count,10),color:i.getColorFromScore(e.seo_rank),html:'<a href="'.concat(e.link,'">').concat(e.label,"</a>")}})),n.header=jQuery("<div>".concat(t.header,"</div>")).text(),e.setState({statistics:n}))}))}},{key:"getFeed",value:function(){var e=this;Object(T.getPostFeed)("https://yoast.com/feed/widget/?wp_version="+wpseoDashboardWidgetL10n.wp_version+"&php_version="+wpseoDashboardWidgetL10n.php_version,2).then((function(t){t.items=t.items.map((function(e){return e.description=jQuery("<div>".concat(e.description,"</div>")).text(),e.description=e.description.replace("The post ".concat(e.title," appeared first on Yoast."),"").trim(),e})),e.setState({feed:t})})).catch((function(e){return console.log(e)}))}},{key:"getWincherData",value:(r=c()(k.a.mark((function e(){var t,n,r;return k.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(ae.c)();case 2:200===(t=e.sent).status&&(n=Object(W.filter)(t.results,(function(e){return!Object(W.isEmpty)(e.position)})),r=Object(W.sortBy)(n,(function(e){return e.position.value})).splice(0,5),this.setState({wincherData:{results:r,status:t.status}}));case 4:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"getSeoAssessment",value:function(){return null===this.state.statistics?null:Object(O.createElement)(_.SiteSEOReport,{key:"yoast-seo-posts-assessment",seoAssessmentText:this.state.statistics.header,seoAssessmentItems:this.state.statistics.seoScores})}},{key:"getYoastFeed",value:function(){return null===this.state.feed?null:Object(O.createElement)(E.ArticleList,{className:"wordpress-feed",key:"yoast-seo-blog-feed",title:wpseoDashboardWidgetL10n.feed_header,feed:this.state.feed,footerLinkText:wpseoDashboardWidgetL10n.feed_footer})}},{key:"performAuthenticationRequest",value:(n=c()(k.a.mark((function e(t){var n;return k.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(ae.a)(t);case 2:if(200===e.sent.status){e.next=5;break}return e.abrupt("return");case 5:return this.setState({wincherIsLoggedIn:!0,wincherWebsiteId:t.websiteId.toString()}),e.next=8,this.getWincherData();case 8:(n=this.loginPopup.getPopup())&&n.close();case 10:case"end":return e.stop()}}),e,this)}))),function(_x){return n.apply(this,arguments)})},{key:"onConnect",value:(t=c()(k.a.mark((function e(){var t,n,r=this;return k.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.loginPopup||this.loginPopup.isClosed()){e.next=3;break}return this.loginPopup.focus(),e.abrupt("return");case 3:return e.next=5,Object(ae.b)();case 5:t=e.sent,n=t.url,this.loginPopup=new se.a(n,{success:{type:"wincher:oauth:success",callback:function(e){return r.performAuthenticationRequest(e)}},error:{type:"wincher:oauth:error",callback:function(){}}},{title:"Wincher_login",width:500,height:700}),this.loginPopup.createPopup();case 9:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getWincherSEOPerformance",value:function(){if("0"!==wpseoDashboardWidgetL10n.is_wincher_active&&this.state.wincherIsLoggedIn)return Object(O.createElement)(oe,{key:"wincher-performance-report",data:this.state.wincherData,websiteId:this.state.wincherWebsiteId,isLoggedIn:this.state.wincherIsLoggedIn,onConnectAction:this.onConnect})}},{key:"render",value:function(){var e=[this.getSeoAssessment(),this.getWincherSEOPerformance(),this.getYoastFeed()].filter((function(e){return null!==e}));return 0===e.length?null:Object(O.createElement)("div",null,e)}}],[{key:"getColorFromScore",value:function(e){return x.colors["$color_".concat(e)]||x.colors.$color_grey}}]),i}(O.Component),ce=document.getElementById("yoast-seo-dashboard-widget");ce&&(Object(S.setYoastComponentsL10n)(),Object(O.render)(Object(O.createElement)(ie,null),ce))},24:function(e,t,n){var r=n(67),o=n(68),a=n(69);e.exports=function(e){return r(e)||o(e)||a()}},25:function(e,t){e.exports=window.yoast.styleGuide},3:function(e,t){e.exports=window.lodash},31: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=i(n(5)),a=i(n(90)),s=i(n(93));function i(e){return e&&e.__esModule?e:{default:e}}var c=void 0;t.default=function(e){var t=e.mixedString,n=e.components,i=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var u=(0,s.default)(t);try{return function e(t,n){var s,i,u,l,p,d,f,h,b=[],m={};for(d=0;d<t.length;d++)if("string"!==(p=t[d]).type){if(!n.hasOwnProperty(p.value)||void 0===n[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(n[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){s=n[p.value],u=d;break}b.push(n[p.value])}else b.push(p.value);return s&&(l=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+"`")}(u,t),f=e(t.slice(u+1,l),n),i=o.default.cloneElement(s,{},f),b.push(i),l<t.length-1&&(h=e(t.slice(l+1),n),b=b.concat(h))),1===b.length?b[0]:(b.forEach((function(e,t){e&&(m["interpolation-child-"+t]=e)})),(0,a.default)(m))}(u,n)}catch(e){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},32:function(e,t,n){"use strict";n.d(t,"d",(function(){return d})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return w})),n.d(t,"e",(function(){return v})),n.d(t,"f",(function(){return j}));var r=n(16),o=n.n(r),a=n(7),s=n.n(a),i=n(36),c=n.n(i),u=n(3);function l(_x){return p.apply(this,arguments)}function p(){return(p=o()(s.a.mark((function e(t){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c()(t);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),!e.t0.error||!e.t0.status){e.next=10;break}return e.abrupt("return",e.t0);case 10:if(!(e.t0 instanceof Response)){e.next=14;break}return e.next=13,e.t0.json();case 13:return e.abrupt("return",e.sent);case 14:return e.abrupt("return",!1);case 15:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function d(e,t,n){return f.apply(this,arguments)}function f(){return(f=o()(s.a.mark((function e(t,n,r){var o,a,i=arguments;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=i.length>3&&void 0!==i[3]?i[3]:200,e.prev=1,e.next=4,t();case 4:if(!(a=e.sent)){e.next=9;break}if(a.status!==o){e.next=8;break}return e.abrupt("return",n(a));case 8:return e.abrupt("return",r(a));case 9:return e.abrupt("return",!1);case 12:e.prev=12,e.t0=e.catch(1),console.error(e.t0.message);case 15:case"end":return e.stop()}}),e,null,[[1,12]])})))).apply(this,arguments)}function h(){return b.apply(this,arguments)}function b(){return(b=o()(s.a.mark((function e(){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l({path:"yoast/v1/wincher/authorization-url",method:"GET"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return y.apply(this,arguments)}function y(){return(y=o()(s.a.mark((function e(t){var n,r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.code,r=t.websiteId,e.next=3,l({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:n,websiteId:r}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function w(){return g.apply(this,arguments)}function g(){return(g=o()(s.a.mark((function e(){var t,n,r,o=arguments;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:null,n=o.length>1&&void 0!==o[1]?o[1]:null,r=o.length>2?o[2]:void 0,e.next=5,l({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:t,permalink:n},signal:r});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e){return O.apply(this,arguments)}function O(){return(O=o()(s.a.mark((function e(t){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(u.isArray)(t)||(t=[t]),e.next=3,l({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:t}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e){return k.apply(this,arguments)}function k(){return(k=o()(s.a.mark((function e(t){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:t}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},34:function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},36:function(e,t){e.exports=window.wp.apiFetch},4:function(e,t){e.exports=window.yoast.componentsNew},43:function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},44:function(e,t,n){"use strict";n.r(t),n.d(t,"setTextdomainL10n",(function(){return a})),n.d(t,"setYoastComponentsL10n",(function(){return s})),n.d(t,"setWordPressSeoL10n",(function(){return i}));var r=n(2),o=n(3);function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wpseoYoastJSL10n",n=Object(o.get)(window,[t,e,"locale_data",e],!1);"yoast-components"===e&&(e="wordpress-seo"),!1===n?Object(r.setLocaleData)({"":{}},e):Object(r.setLocaleData)(n,e)}function s(){a("yoast-components")}function i(){a("wordpress-seo")}},5:function(e,t){e.exports=window.React},58:function(e,t,n){"use strict";var r=n(24),o=n.n(r),a=n(0),s=n(1),i=n.n(s),c=n(2),u=function(e){var t=e.data,n=e.mapChartDataToTableData,r=e.dataTableCaption,o=e.dataTableHeaderLabels,s=e.isDataTableVisuallyHidden;return t.length!==o.length?Object(a.createElement)("p",null,Object(c.__)("The number of headers and header labels don't match.","wordpress-seo")):Object(a.createElement)("div",{className:s?"screen-reader-text":null},Object(a.createElement)("table",null,Object(a.createElement)("caption",null,r),Object(a.createElement)("thead",null,Object(a.createElement)("tr",null,o.map((function(e,t){return Object(a.createElement)("th",{key:t},e)})))),Object(a.createElement)("tbody",null,Object(a.createElement)("tr",null,t.map((function(e,t){return Object(a.createElement)("td",{key:t},n(e.y))}))))))};u.propTypes={data:i.a.arrayOf(i.a.shape({x:i.a.number,y:i.a.number})).isRequired,mapChartDataToTableData:i.a.func,dataTableCaption:i.a.string.isRequired,dataTableHeaderLabels:i.a.array.isRequired,isDataTableVisuallyHidden:i.a.bool},u.defaultProps={mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};var l=u,p=function(e){var t=e.data,n=e.width,r=e.height,s=e.fillColor,i=e.strokeColor,c=e.strokeWidth,u=e.className,p=e.mapChartDataToTableData,d=e.dataTableCaption,f=e.dataTableHeaderLabels,h=e.isDataTableVisuallyHidden,b=Math.max(1,Math.max.apply(Math,o()(t.map((function(e){return e.x}))))),m=Math.max(1,Math.max.apply(Math,o()(t.map((function(e){return e.y}))))),y=r-c,w=t.map((function(e){var t=e.x/b*n,r=y-e.y/m*y+c;return"".concat(t,",").concat(r)})).join(" "),g="0,".concat(y+c," ")+w+" ".concat(n,",").concat(y+c);return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("svg",{width:n,height:r,viewBox:"0 0 ".concat(n," ").concat(r),className:u,role:"img","aria-hidden":"true",focusable:"false"},Object(a.createElement)("polygon",{fill:s,points:g}),Object(a.createElement)("polyline",{fill:"none",stroke:i,strokeWidth:c,strokeLinejoin:"round",strokeLinecap:"round",points:w})),p&&Object(a.createElement)(l,{data:t,mapChartDataToTableData:p,dataTableCaption:d,dataTableHeaderLabels:f,isDataTableVisuallyHidden:h}))};p.propTypes={data:i.a.arrayOf(i.a.shape({x:i.a.number,y:i.a.number})).isRequired,width:i.a.number.isRequired,height:i.a.number.isRequired,fillColor:i.a.string,strokeColor:i.a.string,strokeWidth:i.a.number,className:i.a.string,mapChartDataToTableData:i.a.func,dataTableCaption:i.a.string.isRequired,dataTableHeaderLabels:i.a.array.isRequired,isDataTableVisuallyHidden:i.a.bool},p.defaultProps={fillColor:null,strokeColor:"#000000",strokeWidth:1,className:"",mapChartDataToTableData:null,isDataTableVisuallyHidden:!0},t.a=p},62: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},67:function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},68:function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},69:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},7:function(e,t){e.exports=window.regeneratorRuntime},71:function(e,t){e.exports=window.moment},8:function(e,t){e.exports=window.yoast.helpers},84:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return y})),n.d(t,"b",(function(){return w}));var r=n(0),o=n(1),a=n.n(o),s=n(2),i=n(3),c=n(71),u=n.n(c),l=n(4),p=n(8),d=n(58),f=function(){return Object(r.createElement)("p",{className:"yoast-wincher-seo-performance-modal__loading-message"},Object(s.__)("Tracking the ranking position...","wordpress-seo")," ",Object(r.createElement)(l.SvgIcon,{icon:"loading-spinner"}))},h=Object(p.makeOutboundLink)();function b(e){return Math.round(100*e)}function m(e){var t=e.chartData;if(Object(i.isEmpty)(t)||Object(i.isEmpty)(t.position))return"?";var n=function(e){return Array.from({length:e.position.history.length},(function(e,t){return t+1})).map((function(e){
14
  /* translators: %d expands to the amount of days */
15
- return Object(s.sprintf)(Object(s._n)("%d day","%d days",e,"wordpress-seo"),e)}))}(t),o=t.position.history.map((function(e,t){return{x:t,y:101-e.value}}));return Object(r.createElement)(d.a,{width:66,height:24,data:o,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:b,dataTableCaption:Object(s.__)("Keyphrase position in the last 90 days on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:n})}function y(e){return!e||!e.position||e.position.value>100?"> 100":e.position.value}function w(e){var t=e.keyphrase,n=e.rowData,o=e.onTrackKeyphrase,a=e.onUntrackKeyphrase,c=e.isFocusKeyphrase,p=e.isDisabled,d=e.isLoading,b=!Object(i.isEmpty)(n),w=Object(r.useCallback)((function(){p||(b?a(t,n.id):o(t))}),[t,o,a,b,n,p]);return Object(r.createElement)("tr",null,Object(r.createElement)("td",{className:"yoast-table--nopadding"},function(e){var t=e.keyphrase,n=e.isEnabled,o=e.toggleAction;return e.isLoading?Object(r.createElement)(l.SvgIcon,{icon:"loading-spinner"}):Object(r.createElement)(l.Toggle,{id:"toggle-keyphrase-tracking-".concat(t),className:"wincher-toggle",isEnabled:n,onSetToggleState:o,showToggleStateLabel:!1})}({keyphrase:t,isEnabled:b,toggleAction:w,isLoading:d})),Object(r.createElement)("td",null,t,c&&Object(r.createElement)("span",null,"*")),function(e){var t=e.rowData,n=e.websiteId,o=!Object(i.isEmpty)(t),a=t&&t.updated_at&&u()(t.updated_at)>=u()().subtract(7,"days"),c=t?Object(s.sprintf)("https://app.wincher.com/websites/%s/keywords?serp=%s&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast",n,t.id):null;return o?a?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",null,y(t)),Object(r.createElement)("td",{className:"yoast-table--nopadding"},Object(r.createElement)(m,{chartData:t})),Object(r.createElement)("td",{className:"yoast-table--nobreak"},Object(r.createElement)(h,{href:c},Object(s.__)("View","wordpress-seo")))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},Object(r.createElement)(f,null))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",null,"?"),Object(r.createElement)("td",{className:"yoast-table--nopadding"},"?"),Object(r.createElement)("td",{className:"yoast-table--nobreak"}))}(e))}m.propTypes={chartData:a.a.object},m.defaultProps={chartData:{}},w.propTypes={rowData:a.a.object,keyphrase:a.a.string.isRequired,onTrackKeyphrase:a.a.func,onUntrackKeyphrase:a.a.func,isFocusKeyphrase:a.a.bool,isDisabled:a.a.bool,isLoading:a.a.bool,websiteId:a.a.string},w.defaultProps={rowData:{},onTrackKeyphrase:function(){},onUntrackKeyphrase:function(){},isFocusKeyphrase:!1,isDisabled:!1,isLoading:!1,websiteId:""}},86:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(16),o=n.n(r),a=n(9),s=n.n(a),i=n(10),c=n.n(i),u=n(7),l=n.n(u),p=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};s()(this,e),this.url=t,this.origin=new URL(t).origin,this.eventHandlers=Object.assign({success:{type:"",callback:function(){}},error:{type:"",callback:function(){}}},n),this.options=Object.assign({height:570,width:340,title:""},r),this.popup=null,this.createPopup=this.createPopup.bind(this),this.messageHandler=this.messageHandler.bind(this),this.getPopup=this.getPopup.bind(this)}var t;return c()(e,[{key:"createPopup",value:function(){var e=this.options,t=e.height,n=e.width,r=e.title,o=["top="+(window.top.outerHeight/2+window.top.screenY-t/2),"left="+(window.top.outerWidth/2+window.top.screenX-n/2),"width="+n,"height="+t,"resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(this.url,r,o.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}},{key:"messageHandler",value:(t=o()(l.a.mark((function e(t){var n,r;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.data,r=t.source,t.origin===this.origin&&this.popup===r){e.next=3;break}return e.abrupt("return");case 3:if(n.type!==this.eventHandlers.success.type){e.next=8;break}return this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),e.next=8,this.eventHandlers.success.callback(n);case 8:if(n.type!==this.eventHandlers.error.type){e.next=13;break}return this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),e.next=13,this.eventHandlers.error.callback(n);case 13:case"end":return e.stop()}}),e,this)}))),function(_x){return t.apply(this,arguments)})},{key:"getPopup",value:function(){return this.popup}},{key:"isClosed",value:function(){return!this.popup||this.popup.closed}},{key:"focus",value:function(){this.isClosed()||this.popup.focus()}}]),e}()},87:function(e,t,n){"use strict";var r=n(0),o=n(1),a=n.n(o),s=n(2),i=n(31),c=n.n(i),u=n(4),l=function(e){var t=Object(s.sprintf)(
16
  /* translators: %s expands to a link to open the Wincher login popup. */
17
  Object(s.__)("It seems like something went wrong when retrieving your website's data. Please %s and try again.","wordpress-seo"),"{{reconnectToWincher/}}","Wincher");return Object(r.createElement)(u.Alert,{type:"error"},c()({mixedString:t,components:{reconnectToWincher:Object(r.createElement)("a",{href:"#",onClick:e.onReconnect},Object(s.sprintf)(
18
  /* translators: %s : Expands to "Wincher". */
19
- Object(s.__)("reconnect to %s","wordpress-seo"),"Wincher"))}}))};l.propTypes={onReconnect:a.a.func.isRequired},t.a=l},9:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},90:function(e,t,n){"use strict";var r=n(5),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,a=n(62),s=n(91),i=n(92),c="function"==typeof Symbol&&Symbol.iterator;function u(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}var l=/\/+/g;function p(e){return(""+e).replace(l,"$&/")}var d,f,h=b,b=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)};function m(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var o,s,i=e.result,c=e.keyPrefix,u=e.func,l=e.context,d=u.call(l,t,e.count++);Array.isArray(d)?w(d,i,n,a.thatReturnsArgument):null!=d&&(r.isValidElement(d)&&(o=d,s=c+(!d.key||t&&t.key===d.key?"":p(d.key)+"/")+n,d=r.cloneElement(o,{key:s},void 0!==o.props?o.props.children:void 0)),i.push(d))}function w(e,t,n,r,a){var i="";null!=n&&(i=p(n)+"/");var l=m.getPooled(t,i,r,a);!function(e,t,n){null==e||function e(t,n,r,a){var i,l=typeof t;if("undefined"!==l&&"boolean"!==l||(t=null),null===t||"string"===l||"number"===l||"object"===l&&t.$$typeof===o)return r(a,t,""===n?"."+u(t,0):n),1;var p=0,d=""===n?".":n+":";if(Array.isArray(t))for(var f=0;f<t.length;f++)p+=e(i=t[f],d+u(i,f),r,a);else{var h=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(h)for(var b,m=h.call(t),y=0;!(b=m.next()).done;)p+=e(i=b.value,d+u(i,y++),r,a);else if("object"===l){var w=""+t;s(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===w?"object with keys {"+Object.keys(t).join(", ")+"}":w,"")}}return p}(e,"",t,n)}(e,y,l),m.release(l)}m.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){if(this.instancePool.length){var o=this.instancePool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)},(f=m).instancePool=[],f.getPooled=d||h,f.poolSize||(f.poolSize=10),f.release=function(e){s(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)},e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return i(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return i(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;s(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)w(e[n],t,n,a.thatReturnsArgument);return t}},91:function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,a,s,i){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,a,s,i],l=0;(c=new Error(t.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},92:function(e,t,n){"use strict";var r=n(62);e.exports=r},93: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)}}});
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=212)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.yoast.propTypes},10:function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},11:function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},12:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},127:function(e,t){e.exports=window.yoast.analysisReport},13:function(e,t){e.exports=window.yoast.styledComponents},15:function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},16:function(e,t){function n(e,t,n,r,a,o,s){try{var i=e[o](s),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(r,a)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(a,o){var s=e.apply(t,r);function i(e){n(s,a,o,i,c,"next",e)}function c(e){n(s,a,o,i,c,"throw",e)}i(void 0)}))}}},18:function(e,t,n){var r=n(43);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},19:function(e,t,n){var r=n(34),a=n(12);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t}},2:function(e,t){e.exports=window.wp.i18n},212:function(e,t,n){"use strict";n.r(t);var r,a,o,s,i=n(16),c=n.n(i),u=n(9),l=n.n(u),p=n(10),d=n.n(p),f=n(12),h=n.n(f),b=n(18),m=n.n(b),y=n(19),w=n.n(y),g=n(11),v=n.n(g),O=n(0),j=n(7),k=n.n(j),E=n(4),x=n(25),_=n(127),T=n(8),S=n(15),P=n.n(S),D=n(1),R=n.n(D),L=n(13),C=n.n(L),I=n(2),A=n(3),W=n(31),N=n.n(W),H=Object(T.makeOutboundLink)(),q=Object(T.makeOutboundLink)(),F=function(){var e=Object(I.sprintf)(Object(I.__)(
2
  /* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */
3
+ "Connect %1$s with %2$s to track the ranking position of your site in the search results based on your keyphrase(s). %3$s","wordpress-seo"),"Yoast SEO","{{wincherLink/}}","{{wincherReadMoreLink/}}");return Object(O.createElement)("p",null,N()({mixedString:e,components:{wincherLink:Object(O.createElement)(H,{href:wpseoAdminGlobalL10n["links.wincher.website"]},"Wincher"),wincherReadMoreLink:Object(O.createElement)(q,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"]},Object(I.__)("Read more about keyphrase tracking with Wincher","wordpress-seo"))}}))},M=function(){return Object(O.createElement)(E.Alert,{type:"warning"},Object(I.sprintf)(
4
  /* translators: %s: Expands to "Wincher". */
5
+ Object(I.__)('Your %s account does not contain any keyphrases for this website yet. You can track keyphrases by using the "Track SEO Performance" button in the post editor.',"wordpress-seo"),"Wincher"))},K=n(83),V=n(86),$=Object(T.makeOutboundLink)(),z=Object(T.makeOutboundLink)(),Y=Object(T.makeOutboundLink)(),B=C.a.div(r||(r=P()(["\n"]))),G=C.a.div(a||(a=P()(["\n\tfont-size: 14px;\n"]))),U=C.a.h3(o||(o=P()(["\n\tmargin: 8px 0;\n\tfont-size: 1em;\n"]))),Q=C.a.div(s||(s=P()(["\n\twidth: 100%;\n\toverflow-y: auto;\n"]))),X=function(e){var t=e.websiteId,n=e.id;return Object(I.sprintf)("https://app.wincher.com/websites/%s/keywords?serp=%s&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast",t,n)},J=function(e){var t=e.className,n=e.onConnectAction;return Object(O.createElement)(G,{className:"".concat(t,"__text")},Object(O.createElement)(F,null),Object(O.createElement)("div",{className:"yoast"},Object(O.createElement)(E.NewButton,{variant:"secondary",id:"yoast-connect-wincher-dashboard-widget",onClick:n},Object(I.sprintf)(
6
  /* translators: %s expands to Wincher */
7
+ Object(I.__)("Connect with %s","wordpress-seo"),"Wincher"))))};J.propTypes={className:R.a.string,onConnectAction:R.a.func.isRequired},J.defaultProps={className:""};var Z=function(e){var t=e.keyphrase,n=e.websiteId,r=t.id,a=t.keyword;return Object(O.createElement)("tr",null,Object(O.createElement)("td",null,a),Object(O.createElement)("td",null,Object(K.c)(t)),Object(O.createElement)("td",{className:"yoast-table--nopadding"},Object(O.createElement)(K.a,{chartData:t})),Object(O.createElement)("td",{className:"yoast-table--nobreak"},Object(O.createElement)($,{href:X({websiteId:n,id:r})},Object(I.__)("View","wordpress-seo"))))};Z.propTypes={keyphrase:R.a.object.isRequired,websiteId:R.a.string.isRequired};var ee=function(e){var t=e.isLoggedIn,n=e.data,r=e.onConnectAction;return t?Object(A.isEmpty)(n)||404!==n.status?!n||Object(A.isEmpty)(n.results)?Object(O.createElement)(M,null):null:Object(O.createElement)(V.a,{onReconnect:r}):Object(O.createElement)(J,e)};ee.propTypes={isLoggedIn:R.a.bool.isRequired,data:R.a.object.isRequired,onConnectAction:R.a.func.isRequired};var te=function(){var e=Object(I.sprintf)(
8
  /* translators: %s expands to a link to Wincher login */
9
+ Object(I.__)("This overview only shows you keyphrases added to Yoast SEO. There may be other keyphrases added to your %s.","wordpress-seo"),"{{wincherAccountLink/}}");return Object(O.createElement)("p",null,N()({mixedString:e,components:{wincherAccountLink:Object(O.createElement)(Y,{href:wpseoAdminGlobalL10n["links.wincher.login"]},Object(I.sprintf)(
10
  /* translators: %s : Expands to "Wincher". */
11
+ Object(I.__)("%s account","wordpress-seo"),"Wincher"))}}))},ne=function(e){var t=e.className,n=e.websiteId,r=e.isLoggedIn,a=e.data;return Object(O.createElement)(B,{className:t},Object(O.createElement)(U,{className:"".concat(t,"__header")},Object(I.__)("Top performing keyphrases on your site","wordpress-seo")),Object(O.createElement)(ee,e),r&&a&&!Object(A.isEmpty)(a)&&!Object(A.isEmpty)(a.results)&&Object(O.createElement)(O.Fragment,null,Object(O.createElement)(te,null),Object(O.createElement)(Q,null,Object(O.createElement)("table",{className:"yoast yoast-table"},Object(O.createElement)("thead",null,Object(O.createElement)("tr",null,Object(O.createElement)("th",{scope:"col",abbr:Object(I.__)("Keyphrase","wordpress-seo")},Object(I.__)("Keyphrase","wordpress-seo")),Object(O.createElement)("th",{scope:"col",abbr:Object(I.__)("Position","wordpress-seo")},Object(I.__)("Position","wordpress-seo")),Object(O.createElement)("th",{scope:"col",abbr:Object(I.__)("Position over time","wordpress-seo")},Object(I.__)("Position over time","wordpress-seo")),Object(O.createElement)("td",{className:"yoast-table--nobreak"}))),Object(O.createElement)("tbody",null,Object(A.map)(a.results,(function(e,t){return Object(O.createElement)(Z,{key:"keyphrase-".concat(t),keyphrase:e,websiteId:n})}))))),Object(O.createElement)("p",{style:{marginBottom:0,position:"relative"}},Object(O.createElement)(z,{href:wpseoAdminGlobalL10n["links.wincher.login"]},Object(I.sprintf)(
12
  /* translators: %s expands to Wincher */
13
+ Object(I.__)("Get more insights over at %s","wordpress-seo"),"Wincher")))))};ne.propTypes={className:R.a.string,data:R.a.object.isRequired,websiteId:R.a.string.isRequired,isLoggedIn:R.a.bool.isRequired},ne.defaultProps={className:"wincher-seo-performance"};var re=ne,ae=n(32),oe=n(85);var se=function(e){m()(i,e);var t,n,r,a,o,s=(a=i,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v()(a);if(o){var n=v()(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return w()(this,e)});function i(){var e;return l()(this,i),(e=s.call(this)).state={statistics:null,feed:null,wincherData:{},wincherWebsiteId:wpseoDashboardWidgetL10n.wincher_website_id,wincherIsLoggedIn:"1"===wpseoDashboardWidgetL10n.wincher_is_logged_in,isDataFetched:!1},e.onConnect=e.onConnect.bind(h()(e)),e.getWincherData=e.getWincherData.bind(h()(e)),e.performAuthenticationRequest=e.performAuthenticationRequest.bind(h()(e)),e}return d()(i,[{key:"componentDidMount",value:function(){var e=this,t=jQuery("#wpseo-dashboard-overview-hide");t.is(":checked")&&this.fetchData(),t.on("click",(function(){e.fetchData()}))}},{key:"fetchData",value:function(){this.state.isDataFetched||(this.getStatistics(),this.getFeed(),this.state.wincherIsLoggedIn&&this.getWincherData(),this.setState({isDataFetched:!0}))}},{key:"getStatistics",value:function(){var e=this;wpseoApi.get("statistics",(function(t){var n={};t&&t.seo_scores&&(n.seoScores=t.seo_scores.map((function(e){return{value:parseInt(e.count,10),color:i.getColorFromScore(e.seo_rank),html:'<a href="'.concat(e.link,'">').concat(e.label,"</a>")}})),n.header=jQuery("<div>".concat(t.header,"</div>")).text(),e.setState({statistics:n}))}))}},{key:"getFeed",value:function(){var e=this;Object(T.getPostFeed)("https://yoast.com/feed/widget/?wp_version="+wpseoDashboardWidgetL10n.wp_version+"&php_version="+wpseoDashboardWidgetL10n.php_version,2).then((function(t){t.items=t.items.map((function(e){return e.description=jQuery("<div>".concat(e.description,"</div>")).text(),e.description=e.description.replace("The post ".concat(e.title," appeared first on Yoast."),"").trim(),e})),e.setState({feed:t})})).catch((function(e){return console.log(e)}))}},{key:"getWincherData",value:(r=c()(k.a.mark((function e(){var t,n,r;return k.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(ae.c)();case 2:200===(t=e.sent).status&&(n=Object(A.filter)(t.results,(function(e){return!Object(A.isEmpty)(e.position)})),r=Object(A.sortBy)(n,(function(e){return e.position.value})).splice(0,5),this.setState({wincherData:{results:r,status:t.status}}));case 4:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"getSeoAssessment",value:function(){return null===this.state.statistics?null:Object(O.createElement)(_.SiteSEOReport,{key:"yoast-seo-posts-assessment",seoAssessmentText:this.state.statistics.header,seoAssessmentItems:this.state.statistics.seoScores})}},{key:"getYoastFeed",value:function(){return null===this.state.feed?null:Object(O.createElement)(E.ArticleList,{className:"wordpress-feed",key:"yoast-seo-blog-feed",title:wpseoDashboardWidgetL10n.feed_header,feed:this.state.feed,footerLinkText:wpseoDashboardWidgetL10n.feed_footer})}},{key:"performAuthenticationRequest",value:(n=c()(k.a.mark((function e(t){var n;return k.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(ae.a)(t);case 2:if(200===e.sent.status){e.next=5;break}return e.abrupt("return");case 5:return this.setState({wincherIsLoggedIn:!0,wincherWebsiteId:t.websiteId.toString()}),e.next=8,this.getWincherData();case 8:(n=this.loginPopup.getPopup())&&n.close();case 10:case"end":return e.stop()}}),e,this)}))),function(_x){return n.apply(this,arguments)})},{key:"onConnect",value:(t=c()(k.a.mark((function e(){var t,n,r=this;return k.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.loginPopup||this.loginPopup.isClosed()){e.next=3;break}return this.loginPopup.focus(),e.abrupt("return");case 3:return e.next=5,Object(ae.b)();case 5:t=e.sent,n=t.url,this.loginPopup=new oe.a(n,{success:{type:"wincher:oauth:success",callback:function(e){return r.performAuthenticationRequest(e)}},error:{type:"wincher:oauth:error",callback:function(){}}},{title:"Wincher_login",width:500,height:700}),this.loginPopup.createPopup();case 9:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getWincherSEOPerformance",value:function(){if("0"!==wpseoDashboardWidgetL10n.is_wincher_active&&this.state.wincherIsLoggedIn)return Object(O.createElement)(re,{key:"wincher-performance-report",data:this.state.wincherData,websiteId:this.state.wincherWebsiteId,isLoggedIn:this.state.wincherIsLoggedIn,onConnectAction:this.onConnect})}},{key:"render",value:function(){var e=[this.getSeoAssessment(),this.getWincherSEOPerformance(),this.getYoastFeed()].filter((function(e){return null!==e}));return 0===e.length?null:Object(O.createElement)("div",null,e)}}],[{key:"getColorFromScore",value:function(e){return x.colors["$color_".concat(e)]||x.colors.$color_grey}}]),i}(O.Component),ie=document.getElementById("yoast-seo-dashboard-widget");ie&&Object(O.render)(Object(O.createElement)(se,null),ie)},24:function(e,t,n){var r=n(66),a=n(67),o=n(68);e.exports=function(e){return r(e)||a(e)||o()}},25:function(e,t){e.exports=window.yoast.styleGuide},3:function(e,t){e.exports=window.lodash},31:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=i(n(5)),o=i(n(89)),s=i(n(92));function i(e){return e&&e.__esModule?e:{default:e}}var c=void 0;t.default=function(e){var t=e.mixedString,n=e.components,i=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var u=(0,s.default)(t);try{return function e(t,n){var s,i,u,l,p,d,f,h,b=[],m={};for(d=0;d<t.length;d++)if("string"!==(p=t[d]).type){if(!n.hasOwnProperty(p.value)||void 0===n[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(n[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){s=n[p.value],u=d;break}b.push(n[p.value])}else b.push(p.value);return s&&(l=function(e,t){var n,r,a=t[e],o=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){o++;continue}if("componentClose"===n.type){if(0===o)return r;o--}}throw new Error("Missing closing component token `"+a.value+"`")}(u,t),f=e(t.slice(u+1,l),n),i=a.default.cloneElement(s,{},f),b.push(i),l<t.length-1&&(h=e(t.slice(l+1),n),b=b.concat(h))),1===b.length?b[0]:(b.forEach((function(e,t){e&&(m["interpolation-child-"+t]=e)})),(0,o.default)(m))}(u,n)}catch(e){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},32:function(e,t,n){"use strict";n.d(t,"d",(function(){return d})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return w})),n.d(t,"e",(function(){return v})),n.d(t,"f",(function(){return j}));var r=n(16),a=n.n(r),o=n(7),s=n.n(o),i=n(36),c=n.n(i),u=n(3);function l(_x){return p.apply(this,arguments)}function p(){return(p=a()(s.a.mark((function e(t){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c()(t);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),!e.t0.error||!e.t0.status){e.next=10;break}return e.abrupt("return",e.t0);case 10:if(!(e.t0 instanceof Response)){e.next=14;break}return e.next=13,e.t0.json();case 13:return e.abrupt("return",e.sent);case 14:return e.abrupt("return",!1);case 15:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function d(e,t,n){return f.apply(this,arguments)}function f(){return(f=a()(s.a.mark((function e(t,n,r){var a,o,i=arguments;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=i.length>3&&void 0!==i[3]?i[3]:200,e.prev=1,e.next=4,t();case 4:if(!(o=e.sent)){e.next=9;break}if(o.status!==a){e.next=8;break}return e.abrupt("return",n(o));case 8:return e.abrupt("return",r(o));case 9:return e.abrupt("return",!1);case 12:e.prev=12,e.t0=e.catch(1),console.error(e.t0.message);case 15:case"end":return e.stop()}}),e,null,[[1,12]])})))).apply(this,arguments)}function h(){return b.apply(this,arguments)}function b(){return(b=a()(s.a.mark((function e(){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l({path:"yoast/v1/wincher/authorization-url",method:"GET"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return y.apply(this,arguments)}function y(){return(y=a()(s.a.mark((function e(t){var n,r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.code,r=t.websiteId,e.next=3,l({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:n,websiteId:r}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function w(){return g.apply(this,arguments)}function g(){return(g=a()(s.a.mark((function e(){var t,n,r,a=arguments;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:null,n=a.length>1&&void 0!==a[1]?a[1]:null,r=a.length>2?a[2]:void 0,e.next=5,l({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:t,permalink:n},signal:r});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e){return O.apply(this,arguments)}function O(){return(O=a()(s.a.mark((function e(t){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(u.isArray)(t)||(t=[t]),e.next=3,l({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:t}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e){return k.apply(this,arguments)}function k(){return(k=a()(s.a.mark((function e(t){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:t}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},34:function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},36:function(e,t){e.exports=window.wp.apiFetch},4:function(e,t){e.exports=window.yoast.componentsNew},43:function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},5:function(e,t){e.exports=window.React},57:function(e,t,n){"use strict";var r=n(24),a=n.n(r),o=n(0),s=n(1),i=n.n(s),c=n(2),u=function(e){var t=e.data,n=e.mapChartDataToTableData,r=e.dataTableCaption,a=e.dataTableHeaderLabels,s=e.isDataTableVisuallyHidden;return t.length!==a.length?Object(o.createElement)("p",null,Object(c.__)("The number of headers and header labels don't match.","wordpress-seo")):Object(o.createElement)("div",{className:s?"screen-reader-text":null},Object(o.createElement)("table",null,Object(o.createElement)("caption",null,r),Object(o.createElement)("thead",null,Object(o.createElement)("tr",null,a.map((function(e,t){return Object(o.createElement)("th",{key:t},e)})))),Object(o.createElement)("tbody",null,Object(o.createElement)("tr",null,t.map((function(e,t){return Object(o.createElement)("td",{key:t},n(e.y))}))))))};u.propTypes={data:i.a.arrayOf(i.a.shape({x:i.a.number,y:i.a.number})).isRequired,mapChartDataToTableData:i.a.func,dataTableCaption:i.a.string.isRequired,dataTableHeaderLabels:i.a.array.isRequired,isDataTableVisuallyHidden:i.a.bool},u.defaultProps={mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};var l=u,p=function(e){var t=e.data,n=e.width,r=e.height,s=e.fillColor,i=e.strokeColor,c=e.strokeWidth,u=e.className,p=e.mapChartDataToTableData,d=e.dataTableCaption,f=e.dataTableHeaderLabels,h=e.isDataTableVisuallyHidden,b=Math.max(1,Math.max.apply(Math,a()(t.map((function(e){return e.x}))))),m=Math.max(1,Math.max.apply(Math,a()(t.map((function(e){return e.y}))))),y=r-c,w=t.map((function(e){var t=e.x/b*n,r=y-e.y/m*y+c;return"".concat(t,",").concat(r)})).join(" "),g="0,".concat(y+c," ")+w+" ".concat(n,",").concat(y+c);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("svg",{width:n,height:r,viewBox:"0 0 ".concat(n," ").concat(r),className:u,role:"img","aria-hidden":"true",focusable:"false"},Object(o.createElement)("polygon",{fill:s,points:g}),Object(o.createElement)("polyline",{fill:"none",stroke:i,strokeWidth:c,strokeLinejoin:"round",strokeLinecap:"round",points:w})),p&&Object(o.createElement)(l,{data:t,mapChartDataToTableData:p,dataTableCaption:d,dataTableHeaderLabels:f,isDataTableVisuallyHidden:h}))};p.propTypes={data:i.a.arrayOf(i.a.shape({x:i.a.number,y:i.a.number})).isRequired,width:i.a.number.isRequired,height:i.a.number.isRequired,fillColor:i.a.string,strokeColor:i.a.string,strokeWidth:i.a.number,className:i.a.string,mapChartDataToTableData:i.a.func,dataTableCaption:i.a.string.isRequired,dataTableHeaderLabels:i.a.array.isRequired,isDataTableVisuallyHidden:i.a.bool},p.defaultProps={fillColor:null,strokeColor:"#000000",strokeWidth:1,className:"",mapChartDataToTableData:null,isDataTableVisuallyHidden:!0},t.a=p},64:function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},66:function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},67:function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},68:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},7:function(e,t){e.exports=window.regeneratorRuntime},70:function(e,t){e.exports=window.moment},8:function(e,t){e.exports=window.yoast.helpers},83:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return y})),n.d(t,"b",(function(){return w}));var r=n(0),a=n(1),o=n.n(a),s=n(2),i=n(3),c=n(70),u=n.n(c),l=n(4),p=n(8),d=n(57),f=function(){return Object(r.createElement)("p",{className:"yoast-wincher-seo-performance-modal__loading-message"},Object(s.__)("Tracking the ranking position...","wordpress-seo")," ",Object(r.createElement)(l.SvgIcon,{icon:"loading-spinner"}))},h=Object(p.makeOutboundLink)();function b(e){return Math.round(100*e)}function m(e){var t=e.chartData;if(Object(i.isEmpty)(t)||Object(i.isEmpty)(t.position))return"?";var n=function(e){return Array.from({length:e.position.history.length},(function(e,t){return t+1})).map((function(e){
14
  /* translators: %d expands to the amount of days */
15
+ return Object(s.sprintf)(Object(s._n)("%d day","%d days",e,"wordpress-seo"),e)}))}(t),a=t.position.history.map((function(e,t){return{x:t,y:101-e.value}}));return Object(r.createElement)(d.a,{width:66,height:24,data:a,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:b,dataTableCaption:Object(s.__)("Keyphrase position in the last 90 days on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:n})}function y(e){return!e||!e.position||e.position.value>100?"> 100":e.position.value}function w(e){var t=e.keyphrase,n=e.rowData,a=e.onTrackKeyphrase,o=e.onUntrackKeyphrase,c=e.isFocusKeyphrase,p=e.isDisabled,d=e.isLoading,b=!Object(i.isEmpty)(n),w=Object(r.useCallback)((function(){p||(b?o(t,n.id):a(t))}),[t,a,o,b,n,p]);return Object(r.createElement)("tr",null,Object(r.createElement)("td",{className:"yoast-table--nopadding"},function(e){var t=e.keyphrase,n=e.isEnabled,a=e.toggleAction;return e.isLoading?Object(r.createElement)(l.SvgIcon,{icon:"loading-spinner"}):Object(r.createElement)(l.Toggle,{id:"toggle-keyphrase-tracking-".concat(t),className:"wincher-toggle",isEnabled:n,onSetToggleState:a,showToggleStateLabel:!1})}({keyphrase:t,isEnabled:b,toggleAction:w,isLoading:d})),Object(r.createElement)("td",null,t,c&&Object(r.createElement)("span",null,"*")),function(e){var t=e.rowData,n=e.websiteId,a=!Object(i.isEmpty)(t),o=t&&t.updated_at&&u()(t.updated_at)>=u()().subtract(7,"days"),c=t?Object(s.sprintf)("https://app.wincher.com/websites/%s/keywords?serp=%s&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast",n,t.id):null;return a?o?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",null,y(t)),Object(r.createElement)("td",{className:"yoast-table--nopadding"},Object(r.createElement)(m,{chartData:t})),Object(r.createElement)("td",{className:"yoast-table--nobreak"},Object(r.createElement)(h,{href:c},Object(s.__)("View","wordpress-seo")))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},Object(r.createElement)(f,null))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",null,"?"),Object(r.createElement)("td",{className:"yoast-table--nopadding"},"?"),Object(r.createElement)("td",{className:"yoast-table--nobreak"}))}(e))}m.propTypes={chartData:o.a.object},m.defaultProps={chartData:{}},w.propTypes={rowData:o.a.object,keyphrase:o.a.string.isRequired,onTrackKeyphrase:o.a.func,onUntrackKeyphrase:o.a.func,isFocusKeyphrase:o.a.bool,isDisabled:o.a.bool,isLoading:o.a.bool,websiteId:o.a.string},w.defaultProps={rowData:{},onTrackKeyphrase:function(){},onUntrackKeyphrase:function(){},isFocusKeyphrase:!1,isDisabled:!1,isLoading:!1,websiteId:""}},85:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(16),a=n.n(r),o=n(9),s=n.n(o),i=n(10),c=n.n(i),u=n(7),l=n.n(u),p=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};s()(this,e),this.url=t,this.origin=new URL(t).origin,this.eventHandlers=Object.assign({success:{type:"",callback:function(){}},error:{type:"",callback:function(){}}},n),this.options=Object.assign({height:570,width:340,title:""},r),this.popup=null,this.createPopup=this.createPopup.bind(this),this.messageHandler=this.messageHandler.bind(this),this.getPopup=this.getPopup.bind(this)}var t;return c()(e,[{key:"createPopup",value:function(){var e=this.options,t=e.height,n=e.width,r=e.title,a=["top="+(window.top.outerHeight/2+window.top.screenY-t/2),"left="+(window.top.outerWidth/2+window.top.screenX-n/2),"width="+n,"height="+t,"resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(this.url,r,a.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}},{key:"messageHandler",value:(t=a()(l.a.mark((function e(t){var n,r;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.data,r=t.source,t.origin===this.origin&&this.popup===r){e.next=3;break}return e.abrupt("return");case 3:if(n.type!==this.eventHandlers.success.type){e.next=8;break}return this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),e.next=8,this.eventHandlers.success.callback(n);case 8:if(n.type!==this.eventHandlers.error.type){e.next=13;break}return this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),e.next=13,this.eventHandlers.error.callback(n);case 13:case"end":return e.stop()}}),e,this)}))),function(_x){return t.apply(this,arguments)})},{key:"getPopup",value:function(){return this.popup}},{key:"isClosed",value:function(){return!this.popup||this.popup.closed}},{key:"focus",value:function(){this.isClosed()||this.popup.focus()}}]),e}()},86:function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),s=n(2),i=n(31),c=n.n(i),u=n(4),l=function(e){var t=Object(s.sprintf)(
16
  /* translators: %s expands to a link to open the Wincher login popup. */
17
  Object(s.__)("It seems like something went wrong when retrieving your website's data. Please %s and try again.","wordpress-seo"),"{{reconnectToWincher/}}","Wincher");return Object(r.createElement)(u.Alert,{type:"error"},c()({mixedString:t,components:{reconnectToWincher:Object(r.createElement)("a",{href:"#",onClick:e.onReconnect},Object(s.sprintf)(
18
  /* translators: %s : Expands to "Wincher". */
19
+ Object(s.__)("reconnect to %s","wordpress-seo"),"Wincher"))}}))};l.propTypes={onReconnect:o.a.func.isRequired},t.a=l},89:function(e,t,n){"use strict";var r=n(5),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(64),s=n(90),i=n(91),c="function"==typeof Symbol&&Symbol.iterator;function u(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}var l=/\/+/g;function p(e){return(""+e).replace(l,"$&/")}var d,f,h=b,b=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)};function m(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var a,s,i=e.result,c=e.keyPrefix,u=e.func,l=e.context,d=u.call(l,t,e.count++);Array.isArray(d)?w(d,i,n,o.thatReturnsArgument):null!=d&&(r.isValidElement(d)&&(a=d,s=c+(!d.key||t&&t.key===d.key?"":p(d.key)+"/")+n,d=r.cloneElement(a,{key:s},void 0!==a.props?a.props.children:void 0)),i.push(d))}function w(e,t,n,r,o){var i="";null!=n&&(i=p(n)+"/");var l=m.getPooled(t,i,r,o);!function(e,t,n){null==e||function e(t,n,r,o){var i,l=typeof t;if("undefined"!==l&&"boolean"!==l||(t=null),null===t||"string"===l||"number"===l||"object"===l&&t.$$typeof===a)return r(o,t,""===n?"."+u(t,0):n),1;var p=0,d=""===n?".":n+":";if(Array.isArray(t))for(var f=0;f<t.length;f++)p+=e(i=t[f],d+u(i,f),r,o);else{var h=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(h)for(var b,m=h.call(t),y=0;!(b=m.next()).done;)p+=e(i=b.value,d+u(i,y++),r,o);else if("object"===l){var w=""+t;s(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===w?"object with keys {"+Object.keys(t).join(", ")+"}":w,"")}}return p}(e,"",t,n)}(e,y,l),m.release(l)}m.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){if(this.instancePool.length){var a=this.instancePool.pop();return this.call(a,e,t,n,r),a}return new this(e,t,n,r)},(f=m).instancePool=[],f.getPooled=d||h,f.poolSize||(f.poolSize=10),f.release=function(e){s(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)},e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return i(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return i(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;s(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)w(e[n],t,n,o.thatReturnsArgument);return t}},9:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},90:function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,o,s,i){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,a,o,s,i],l=0;(c=new Error(t.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},91:function(e,t,n){"use strict";var r=n(64);e.exports=r},92: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)}}});
js/dist/dynamic-blocks.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=190)}({0:function(e,t){e.exports=window.wp.element},111:function(e,t){e.exports=window.wp.blocks},180:function(e,t){e.exports=window.wp.serverSideRender},190:function(e,t,r){"use strict";r.r(t);var n=r(0),o=r(111),s=r(2),i=r(180),u=r.n(i);Object(o.registerBlockType)("yoast-seo/breadcrumbs",{title:Object(s.__)("Yoast Breadcrumbs","wordpress-seo"),icon:"admin-links",category:"yoast-internal-linking-blocks",description:Object(s.__)("Adds the Yoast SEO breadcrumbs to your template or content.","wordpress-seo"),keywords:[Object(s.__)("seo","wordpress-seo"),Object(s.__)("breadcrumbs","wordpress-seo"),Object(s.__)("internal linking","wordpress-seo"),Object(s.__)("site structure","wordpress-seo")],example:{attributes:{}},edit:function(e){return Object(n.createElement)(u.a,{block:"yoast-seo/breadcrumbs",attributes:e.attributes})},save:function(){return null}})},2:function(e,t){e.exports=window.wp.i18n}});
1
+ !function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=190)}({0:function(e,t){e.exports=window.wp.element},110:function(e,t){e.exports=window.wp.blocks},180:function(e,t){e.exports=window.wp.serverSideRender},190:function(e,t,r){"use strict";r.r(t);var n=r(0),o=r(110),s=r(2),i=r(180),u=r.n(i);Object(o.registerBlockType)("yoast-seo/breadcrumbs",{title:Object(s.__)("Yoast Breadcrumbs","wordpress-seo"),icon:"admin-links",category:"yoast-internal-linking-blocks",description:Object(s.__)("Adds the Yoast SEO breadcrumbs to your template or content.","wordpress-seo"),keywords:[Object(s.__)("seo","wordpress-seo"),Object(s.__)("breadcrumbs","wordpress-seo"),Object(s.__)("internal linking","wordpress-seo"),Object(s.__)("site structure","wordpress-seo")],example:{attributes:{}},edit:function(e){return Object(n.createElement)(u.a,{block:"yoast-seo/breadcrumbs",attributes:e.attributes})},save:function(){return null}})},2:function(e,t){e.exports=window.wp.i18n}});
js/dist/editor-modules.js CHANGED
@@ -1,14 +1,14 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=213)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.yoast.propTypes},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.lodash},function(e,t){e.exports=window.yoast.componentsNew},function(e,t){e.exports=window.React},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.regeneratorRuntime},function(e,t){e.exports=window.yoast.helpers},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=window.yoast.styledComponents},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},function(e,t){function n(e,t,n,r,a,o,s){try{var i=e[o](s),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(r,a)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(a,o){var s=e.apply(t,r);function i(e){n(s,a,o,i,c,"next",e)}function c(e){n(s,a,o,i,c,"throw",e)}i(void 0)}))}}},function(e,t){e.exports=window.yoast.externals.redux},function(e,t,n){var r=n(43);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(34),a=n(12);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t}},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.wp.components},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3);function a(){return Object(r.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}},function(e,t,n){var r=n(67),a=n(68),o=n(69);e.exports=function(e){return r(e)||a(e)||o()}},function(e,t){e.exports=window.yoast.styleGuide},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){e.exports=window.yoast.analysis},,function(e,t,n){var r=n(64),a=n(65),o=n(66);e.exports=function(e,t){return r(e)||a(e,t)||o()}},function(e,t){e.exports=window.yoast.externals.contexts},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=i(n(5)),o=i(n(90)),s=i(n(93));function i(e){return e&&e.__esModule?e:{default:e}}var c=void 0;t.default=function(e){var t=e.mixedString,n=e.components,i=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var u=(0,s.default)(t);try{return function e(t,n){var s,i,u,l,d,p,f,m,h=[],b={};for(p=0;p<t.length;p++)if("string"!==(d=t[p]).type){if(!n.hasOwnProperty(d.value)||void 0===n[d.value])throw new Error("Invalid interpolation, missing component node: `"+d.value+"`");if("object"!==r(n[d.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+d.value+"`","\n> "+c);if("componentClose"===d.type)throw new Error("Missing opening component token: `"+d.value+"`");if("componentOpen"===d.type){s=n[d.value],u=p;break}h.push(n[d.value])}else h.push(d.value);return s&&(l=function(e,t){var n,r,a=t[e],o=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){o++;continue}if("componentClose"===n.type){if(0===o)return r;o--}}throw new Error("Missing closing component token `"+a.value+"`")}(u,t),f=e(t.slice(u+1,l),n),i=a.default.cloneElement(s,{},f),h.push(i),l<t.length-1&&(m=e(t.slice(l+1),n),h=h.concat(m))),1===h.length?h[0]:(h.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,o.default)(b))}(u,n)}catch(e){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return p})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return v})),n.d(t,"e",(function(){return O})),n.d(t,"f",(function(){return j}));var r=n(16),a=n.n(r),o=n(7),s=n.n(o),i=n(36),c=n.n(i),u=n(3);function l(_x){return d.apply(this,arguments)}function d(){return(d=a()(s.a.mark((function e(t){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c()(t);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),!e.t0.error||!e.t0.status){e.next=10;break}return e.abrupt("return",e.t0);case 10:if(!(e.t0 instanceof Response)){e.next=14;break}return e.next=13,e.t0.json();case 13:return e.abrupt("return",e.sent);case 14:return e.abrupt("return",!1);case 15:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function p(e,t,n){return f.apply(this,arguments)}function f(){return(f=a()(s.a.mark((function e(t,n,r){var a,o,i=arguments;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=i.length>3&&void 0!==i[3]?i[3]:200,e.prev=1,e.next=4,t();case 4:if(!(o=e.sent)){e.next=9;break}if(o.status!==a){e.next=8;break}return e.abrupt("return",n(o));case 8:return e.abrupt("return",r(o));case 9:return e.abrupt("return",!1);case 12:e.prev=12,e.t0=e.catch(1),console.error(e.t0.message);case 15:case"end":return e.stop()}}),e,null,[[1,12]])})))).apply(this,arguments)}function m(){return h.apply(this,arguments)}function h(){return(h=a()(s.a.mark((function e(){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l({path:"yoast/v1/wincher/authorization-url",method:"GET"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(e){return y.apply(this,arguments)}function y(){return(y=a()(s.a.mark((function e(t){var n,r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.code,r=t.websiteId,e.next=3,l({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:n,websiteId:r}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(){return g.apply(this,arguments)}function g(){return(g=a()(s.a.mark((function e(){var t,n,r,a=arguments;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:null,n=a.length>1&&void 0!==a[1]?a[1]:null,r=a.length>2?a[2]:void 0,e.next=5,l({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:t,permalink:n},signal:r});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e){return w.apply(this,arguments)}function w(){return(w=a()(s.a.mark((function e(t){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(u.isArray)(t)||(t=[t]),e.next=3,l({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:t}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e){return k.apply(this,arguments)}function k(){return(k=a()(s.a.mark((function e(t){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:t}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),s=function(e){var t=e.children;return Object(r.createElement)("div",null,t)};s.propTypes={renderPriority:o.a.number.isRequired,children:o.a.node.isRequired},t.a=s},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},,function(e,t){e.exports=window.wp.apiFetch},,function(e,t,n){var r=n(80);e.exports=function(e,t){if(null==e)return{};var n,a,o=r(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)n=s[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t){e.exports=window.wp.url},function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return s})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"h",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"l",(function(){return p})),n.d(t,"m",(function(){return f})),n.d(t,"n",(function(){return m})),n.d(t,"o",(function(){return h})),n.d(t,"k",(function(){return b})),n.d(t,"j",(function(){return y})),n.d(t,"i",(function(){return v}));var r=n(8),a="SNIPPET_EDITOR_SWITCH_MODE",o="SNIPPET_EDITOR_UPDATE_DATA",s="SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLE",i="SNIPPET_EDITOR_HIDE_REPLACEMENT_VARIABLES",c="SNIPPET_EDITOR_REMOVE_REPLACEMENT_VARIABLE",u="SNIPPET_EDITOR_REFRESH",l="SNIPPET_EDITOR_UPDATE_WORDS_TO_HIGHLIGHT",d="LOAD_SNIPPET_EDITOR_DATA";function p(e){return{type:a,mode:e}}function f(e){return{type:o,data:e}}function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o="string"==typeof t?Object(r.decodeHTML)(t):t;return{type:s,name:e,value:o,label:n,hidden:a}}function h(e){return{type:l,wordsToHighlight:e}}function b(e){return{type:c,name:e}}function y(){return{type:u,time:(new Date).getMilliseconds()}}function v(e){return{type:i,data:e}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o}));var r=n(0);function a(e){return e.charAt(0).toUpperCase()+e.slice(1)}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return Object(r.createInterpolateElement)(e,{a:Object(r.createElement)("a",{id:n,href:t,target:"_blank",rel:"noopener noreferrer"})})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(0),a=n(1),o=n.n(a);function s(e){var t=e.target,n=e.children,a=t;return"string"==typeof t&&(a=document.getElementById(t)),a?Object(r.createPortal)(n,a):null}s.propTypes={target:o.a.oneOfType([o.a.string,o.a.object]).isRequired,children:o.a.node.isRequired}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";n.r(t),n.d(t,"setTextdomainL10n",(function(){return o})),n.d(t,"setYoastComponentsL10n",(function(){return s})),n.d(t,"setWordPressSeoL10n",(function(){return i}));var r=n(2),a=n(3);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wpseoYoastJSL10n",n=Object(a.get)(window,[t,e,"locale_data",e],!1);"yoast-components"===e&&(e="wordpress-seo"),!1===n?Object(r.setLocaleData)({"":{}},e):Object(r.setLocaleData)(n,e)}function s(){o("yoast-components")}function i(){o("wordpress-seo")}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(2),a=n(27),o=n(3);function s(e){return Object(o.isNil)(e)||(e/=10),function(e){switch(e){case"feedback":return{className:"na",screenReaderText:Object(r.__)("Feedback","wordpress-seo"),screenReaderReadabilityText:""};case"bad":return{className:"bad",screenReaderText:Object(r.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:Object(r.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:Object(r.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:Object(r.__)("OK","wordpress-seo")};case"good":return{className:"good",screenReaderText:Object(r.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:Object(r.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:""}}}(a.interpreters.scoreToRating(e))}},,,function(e,t){e.exports=window.yoast.components},,function(e,t,n){"use strict";n.d(t,"b",(function(){return d}));var r=n(26),a=n.n(r),o=n(38),s=n.n(o),i=n(0),c=n(1),u=n.n(c),l=n(21),d="yoast yoast-gutenberg-modal",p=function(e){var t=e.title,n=e.className,r=e.showYoastIcon,o=e.additionalClassName,c=s()(e,["title","className","showYoastIcon","additionalClassName"]),u=r?Object(i.createElement)("span",{className:"yoast-icon"}):null;return Object(i.createElement)(l.Modal,a()({title:t,className:"".concat(n," ").concat(o),icon:u},c),e.children)};p.propTypes={title:u.a.string,className:u.a.string,showYoastIcon:u.a.bool,children:u.a.oneOfType([u.a.node,u.a.arrayOf(u.a.node)]),additionalClassName:u.a.string},p.defaultProps={title:"Yoast SEO",className:d,showYoastIcon:!0,children:null,additionalClassName:""},t.a=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=n(23);function o(){var e=Object(a.a)();return Object(r.get)(e,"contentLocale","en_US")}},function(e,t,n){"use strict";var r,a=n(15),o=n.n(a),s=n(25),i=n(8),c=n(13),u=n.n(c),l=Object(i.makeOutboundLink)(u.a.a(r||(r=o()(["\n\tdisplay: inline-block;\n\tposition: relative;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 100%;\n\twidth: 24px;\n\theight: 24px;\n\tmargin: -4px 0;\n\tvertical-align: middle;\n\n\tcolor: ",";\n\t\n\t&:hover,\n\t&:focus {\n\t\tcolor: ",";\t\n\t}\n\t\n\t// Overwrite the default blue active color for links.\n\t&:active {\n\t\tcolor: ",';\t\n\t}\n\n\t&::before {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tpadding: 2px;\n\t\tcontent: "\f223";\n\t}\n'],["\n\tdisplay: inline-block;\n\tposition: relative;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 100%;\n\twidth: 24px;\n\theight: 24px;\n\tmargin: -4px 0;\n\tvertical-align: middle;\n\n\tcolor: ",";\n\t\n\t&:hover,\n\t&:focus {\n\t\tcolor: ",";\t\n\t}\n\t\n\t// Overwrite the default blue active color for links.\n\t&:active {\n\t\tcolor: ",';\t\n\t}\n\n\t&::before {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tpadding: 2px;\n\t\tcontent: "\\f223";\n\t}\n'])),s.colors.$color_help_text,s.colors.$color_snippet_focus,s.colors.$color_help_text));t.a=l},function(e,t,n){"use strict";var r,a=n(26),o=n.n(a),s=n(15),i=n.n(s),c=n(0),u=n(4),l=n(13),d=n.n(l)()(u.Collapsible)(r||(r=i()(['\n\th2 > button {\n\t\tpadding-left: 24px;\n\t\tpadding-top: 16px;\n\n\t\t&:hover {\n\t\t\tbackground-color: #f0f0f0;\n\t\t}\n\t}\n\n\tdiv[class^="collapsible_content"] {\n\t\tpadding: 24px 0;\n\t\tmargin: 0 24px;\n\t\tborder-top: 1px solid rgba(0,0,0,0.2);\n\t}\n\n'])));t.a=function(e){return Object(c.createElement)(d,o()({hasPadding:!0,hasSeparator:!0},e))}},,,function(e,t,n){"use strict";n.r(t),n.d(t,"nonReplaceVars",(function(){return p})),n.d(t,"fillReplacementVariables",(function(){return f})),n.d(t,"handlePrefixes",(function(){return m})),n.d(t,"createLabelFromName",(function(){return h})),n.d(t,"pushNewReplaceVar",(function(){return b})),n.d(t,"replaceSpaces",(function(){return y})),n.d(t,"prepareCustomFieldForDispatch",(function(){return v})),n.d(t,"prepareCustomTaxonomyForDispatch",(function(){return g})),n.d(t,"mapCustomTaxonomies",(function(){return O})),n.d(t,"mapCustomFields",(function(){return w})),n.d(t,"excerptFromContent",(function(){return j})),n.d(t,"applyReplaceUsingPlugin",(function(){return k}));var r=n(14),a=n.n(r),o=n(3),s=n(107),i=n(40),c=n(41);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=n(8).strings.stripHTMLTags,p=["slug","content","contentImage","snippetPreviewImageURL"];function f(e,t){Object(o.forEach)(e,(function(e,n){p.includes(n)||t.dispatch(Object(i.n)(n,e))}))}function m(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 h(e){return e=m(e),Object(c.b)(e)}function b(e,t){return e.push({name:t.name,label:t.label||h(t.name),value:t.value}),e}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e.replace(/\s/g,t)}function v(e){return{name:"cf_"+y(e),label:Object(c.b)(e+" (custom field)")}}function g(e){var t=y(e);return{name:"ct_"+t,label:Object(c.b)(e+" (custom taxonomy)"),descriptionName:"ct_desc_"+t,descriptionLabel:Object(c.b)(e+" description (custom taxonomy)")}}function O(e,t){return e.custom_taxonomies?(Object(o.forEach)(e.custom_taxonomies,(function(e,n){var r=g(n),a=r.name,o=r.label,s=r.descriptionName,c=r.descriptionLabel;t.dispatch(Object(i.n)(a,e.name,o)),t.dispatch(Object(i.n)(s,e.description,c))})),Object(o.omit)(l({},e),"custom_taxonomies")):e}function w(e,t){return e.custom_fields?(Object(o.forEach)(e.custom_fields,(function(e,n){var r=v(n),a=r.name,o=r.label;t.dispatch(Object(i.n)(a,e,o))})),Object(o.omit)(l({},e),"custom_fields")):e}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:156;return(e=(e=Object(s.stripTags)(e)).trim()).length<=t||(e=e.substring(0,t),/\s/.test(e)&&(e=e.substring(0,e.lastIndexOf(" ")))),e}var k=function(e){var t=Object(o.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!Object(o.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){var t=Object(o.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],o.identity);return{url:e.url,title:d(t(e.title)),description:d(t(e.description))}}(e);var n=t._applyModifications.bind(t);return{url:e.url,title:d(n("data_page_title",e.title)),description:d(n("data_meta_desc",e.description))}}},function(e,t,n){"use strict";var r=n(24),a=n.n(r),o=n(0),s=n(1),i=n.n(s),c=n(2),u=function(e){var t=e.data,n=e.mapChartDataToTableData,r=e.dataTableCaption,a=e.dataTableHeaderLabels,s=e.isDataTableVisuallyHidden;return t.length!==a.length?Object(o.createElement)("p",null,Object(c.__)("The number of headers and header labels don't match.","wordpress-seo")):Object(o.createElement)("div",{className:s?"screen-reader-text":null},Object(o.createElement)("table",null,Object(o.createElement)("caption",null,r),Object(o.createElement)("thead",null,Object(o.createElement)("tr",null,a.map((function(e,t){return Object(o.createElement)("th",{key:t},e)})))),Object(o.createElement)("tbody",null,Object(o.createElement)("tr",null,t.map((function(e,t){return Object(o.createElement)("td",{key:t},n(e.y))}))))))};u.propTypes={data:i.a.arrayOf(i.a.shape({x:i.a.number,y:i.a.number})).isRequired,mapChartDataToTableData:i.a.func,dataTableCaption:i.a.string.isRequired,dataTableHeaderLabels:i.a.array.isRequired,isDataTableVisuallyHidden:i.a.bool},u.defaultProps={mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};var l=u,d=function(e){var t=e.data,n=e.width,r=e.height,s=e.fillColor,i=e.strokeColor,c=e.strokeWidth,u=e.className,d=e.mapChartDataToTableData,p=e.dataTableCaption,f=e.dataTableHeaderLabels,m=e.isDataTableVisuallyHidden,h=Math.max(1,Math.max.apply(Math,a()(t.map((function(e){return e.x}))))),b=Math.max(1,Math.max.apply(Math,a()(t.map((function(e){return e.y}))))),y=r-c,v=t.map((function(e){var t=e.x/h*n,r=y-e.y/b*y+c;return"".concat(t,",").concat(r)})).join(" "),g="0,".concat(y+c," ")+v+" ".concat(n,",").concat(y+c);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("svg",{width:n,height:r,viewBox:"0 0 ".concat(n," ").concat(r),className:u,role:"img","aria-hidden":"true",focusable:"false"},Object(o.createElement)("polygon",{fill:s,points:g}),Object(o.createElement)("polyline",{fill:"none",stroke:i,strokeWidth:c,strokeLinejoin:"round",strokeLinecap:"round",points:v})),d&&Object(o.createElement)(l,{data:t,mapChartDataToTableData:d,dataTableCaption:p,dataTableHeaderLabels:f,isDataTableVisuallyHidden:m}))};d.propTypes={data:i.a.arrayOf(i.a.shape({x:i.a.number,y:i.a.number})).isRequired,width:i.a.number.isRequired,height:i.a.number.isRequired,fillColor:i.a.string,strokeColor:i.a.string,strokeWidth:i.a.number,className:i.a.string,mapChartDataToTableData:i.a.func,dataTableCaption:i.a.string.isRequired,dataTableHeaderLabels:i.a.array.isRequired,isDataTableVisuallyHidden:i.a.bool},d.defaultProps={fillColor:null,strokeColor:"#000000",strokeWidth:1,className:"",mapChartDataToTableData:null,isDataTableVisuallyHidden:!0},t.a=d},function(e,t,n){"use strict";function r(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()}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},function(e,t,n){"use strict";n.r(t),n.d(t,"getIconForScore",(function(){return i})),n.d(t,"default",(function(){return c}));var r=n(27),a=n(25);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.getIdentifier(),a={score:e.score,rating:r.interpreters.scoreToRating(e.score),hasMarks:e.hasMarks(),marker:e.getMarker(),id:n,text:e.text,markerId:t.length>0?"".concat(t,":").concat(n):n};return"ok"===a.rating&&(a.rating="OK"),a}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 i(e){var t={icon:"seo-score-none",color:a.colors.$color_red};switch(e){case"loading":t={icon:"loading-spinner",color:a.colors.$color_green_medium_light};break;case"good":t={icon:"seo-score-good",color:a.colors.$color_green_medium};break;case"ok":t={icon:"seo-score-ok",color:a.colors.$color_ok};break;case"bad":t={icon:"seo-score-bad",color:a.colors.$color_red}}return t}function c(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 a=e[r];if(a.text){var i=o(a,t);n=s(i,n)}}return n}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],_n=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(_n=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,a=e}finally{try{_n||null==s.return||s.return()}finally{if(r)throw a}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),s=n(13),i=n(30),c=function(e){var t=e.theme,n=e.location,a=e.children;return Object(r.createElement)(i.LocationProvider,{value:n},Object(r.createElement)(s.ThemeProvider,{theme:t},a))};c.propTypes={theme:o.a.object.isRequired,location:o.a.oneOf(["sidebar","metabox","modal"]).isRequired,children:o.a.element.isRequired},t.a=c},function(e,t){e.exports=window.moment},function(e,t,n){"use strict";var r=n(29),a=n.n(r),o=n(0),s=n(4),i=n(1),c=n.n(i),u=function(e){var t=Object(o.useState)(!1),n=a()(t,2),r=n[0],i=n[1],c=e.prefixIcon;return Object(o.createElement)("div",{className:"yoast components-panel__body ".concat(r?"is-opened":"")},Object(o.createElement)("h2",{className:"components-panel__body-title"},Object(o.createElement)("button",{onClick:function(){i(!r)},className:"components-button components-panel__body-toggle"},Object(o.createElement)("span",{className:"yoast-icon-span",style:{fill:"".concat(c&&c.color||"")}},c&&Object(o.createElement)(s.SvgIcon,{icon:c.icon,color:c.color,size:c.size})),Object(o.createElement)("span",{className:"yoast-title-container"},Object(o.createElement)("div",{className:"yoast-title"},e.title),Object(o.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),Object(o.createElement)("span",{className:"yoast-chevron","aria-hidden":"true"}))),r&&e.children)};t.a=u,u.propTypes={title:c.a.string.isRequired,children:c.a.oneOfType([c.a.node,c.a.arrayOf(c.a.node)]).isRequired,prefixIcon:c.a.object,subTitle:c.a.string},u.defaultProps={prefixIcon:null,subTitle:""}},function(e,t,n){"use strict";function r(){return window.wpseoScriptData&&"1"===window.wpseoScriptData.isBlockEditor}n.d(t,"a",(function(){return r}))},,,function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(81);t.a=Object(r.compose)([Object(a.withSelect)((function(e,t){var n=e("yoast-seo/editor"),r=n.getPostOrPageString,a=n.getIsModalOpen;return{postTypeName:r(),isOpen:a(t.id)}})),Object(a.withDispatch)((function(e,t){var n=e("yoast-seo/editor"),r=n.openEditorModal;return{open:function(){return r(t.id)},close:n.closeEditorModal}}))])(o.a)},,,function(e,t,n){"use strict";n.r(t),n.d(t,"sortResultsByIdentifier",(function(){return i})),n.d(t,"default",(function(){return c})),n.d(t,"initializationDone",(function(){return u}));var r=n(17),a=n(60),o=n(49),s=!1;function i(e){return e.sort((function(e,t){return e._identifier.localeCompare(t._identifier)}))}function c(e,t,n,c,u){var l=t();s&&e.analyze(l).then((function(e){var t=e.result,a=t.seo,s=t.readability;if(a){var d=a[""];d.results.forEach((function(e){e.getMarker=function(){return function(){return n(l,e.marks)}}})),d.results=i(d.results),c.dispatch(r.actions.setSeoResultsForKeyword(l.getKeyword(),d.results)),c.dispatch(Object(o.setOverallSeoScore)(d.score,l.getKeyword())),c.dispatch(r.actions.refreshSnippetEditor()),u.saveScores(d.score,l.getKeyword())}s&&(s.results.forEach((function(e){e.getMarker=function(){return function(){return n(l,e.marks)}}})),s.results=i(s.results),c.dispatch(r.actions.setReadabilityResults(s.results)),c.dispatch(Object(o.setOverallReadabilityScore)(s.score)),c.dispatch(r.actions.refreshSnippetEditor()),u.saveContentScore(s.score))})).catch(a.a)}function u(){s=!0}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}},function(e,t,n){"use strict";n.d(t,"b",(function(){return d}));var r=n(0),a=n(2),o=n(51),s=n(1),i=n.n(s),c=n(3),u=n(82),l=n(30),d=function(e){var t=!0;if("blur"===e.type){var n=e.relatedTarget;if(n){var r=["media-modal","wp-core-ui"];t=Object(c.intersection)(r,Array.from(n.classList)).length!==r.length}}return t},p=function(e){var t=e.id,n=e.postTypeName,s=e.children,i=e.title,c=e.isOpen,p=e.close,f=e.open,m=Object(r.useCallback)((function(e){d(e)&&p()}),[p]);return Object(r.createElement)(r.Fragment,null,c&&Object(r.createElement)(l.LocationProvider,{value:"modal"},Object(r.createElement)(o.a,{title:i,onRequestClose:m,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal"},Object(r.createElement)("div",{className:"yoast-content-container"},Object(r.createElement)("div",{className:"yoast-modal-content"},s)),Object(r.createElement)("div",{className:"yoast-notice-container"},Object(r.createElement)("hr",null),Object(r.createElement)("div",{className:"yoast-button-container"},Object(r.createElement)("p",null,
2
  /* Translators: %s translates to the Post Label in singular form */
3
  Object(a.sprintf)(Object(a.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),n)),Object(r.createElement)("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:m},
4
  /* Translators: %s translates to the Post Label in singular form */
5
- Object(a.sprintf)(Object(a.__)("Return to your %s","wordpress-seo"),n)))))),Object(r.createElement)(u.a,{id:t+"-open-button",title:i,suffixIcon:{size:"20px",icon:"pencil-square"},onClick:f}))};p.propTypes={id:i.a.string.isRequired,postTypeName:i.a.string.isRequired,children:i.a.oneOfType([i.a.node,i.a.arrayOf(i.a.node)]).isRequired,title:i.a.string.isRequired,isOpen:i.a.bool.isRequired,open:i.a.func.isRequired,close:i.a.func.isRequired},t.a=p},function(e,t,n){"use strict";var r=n(0),a=n(4),o=n(1),s=n.n(o),i=function(e){return Object(r.createElement)("div",{className:"yoast components-panel__body"},Object(r.createElement)("h2",{className:"components-panel__body-title"},Object(r.createElement)("button",{id:e.id,onClick:e.onClick,className:"components-button components-panel__body-toggle"},e.prefixIcon&&Object(r.createElement)("span",{className:"yoast-icon-span",style:{fill:"".concat(e.prefixIcon&&e.prefixIcon.color||"")}},Object(r.createElement)(a.SvgIcon,{size:e.prefixIcon.size,icon:e.prefixIcon.icon})),Object(r.createElement)("span",{className:"yoast-title-container"},Object(r.createElement)("div",{className:"yoast-title"},e.title),Object(r.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),e.suffixIcon&&Object(r.createElement)(a.SvgIcon,{size:e.suffixIcon.size,icon:e.suffixIcon.icon}))))};t.a=i,i.propTypes={onClick:s.a.func.isRequired,title:s.a.string.isRequired,id:s.a.string,subTitle:s.a.string,suffixIcon:s.a.object,prefixIcon:s.a.object},i.defaultProps={id:"",suffixIcon:null,prefixIcon:null,subTitle:""}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return y})),n.d(t,"b",(function(){return v}));var r=n(0),a=n(1),o=n.n(a),s=n(2),i=n(3),c=n(71),u=n.n(c),l=n(4),d=n(8),p=n(58),f=function(){return Object(r.createElement)("p",{className:"yoast-wincher-seo-performance-modal__loading-message"},Object(s.__)("Tracking the ranking position...","wordpress-seo")," ",Object(r.createElement)(l.SvgIcon,{icon:"loading-spinner"}))},m=Object(d.makeOutboundLink)();function h(e){return Math.round(100*e)}function b(e){var t=e.chartData;if(Object(i.isEmpty)(t)||Object(i.isEmpty)(t.position))return"?";var n=function(e){return Array.from({length:e.position.history.length},(function(e,t){return t+1})).map((function(e){
6
  /* translators: %d expands to the amount of days */
7
  return Object(s.sprintf)(Object(s._n)("%d day","%d days",e,"wordpress-seo"),e)}))}(t),a=t.position.history.map((function(e,t){return{x:t,y:101-e.value}}));return Object(r.createElement)(p.a,{width:66,height:24,data:a,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:h,dataTableCaption:Object(s.__)("Keyphrase position in the last 90 days on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:n})}function y(e){return!e||!e.position||e.position.value>100?"> 100":e.position.value}function v(e){var t=e.keyphrase,n=e.rowData,a=e.onTrackKeyphrase,o=e.onUntrackKeyphrase,c=e.isFocusKeyphrase,d=e.isDisabled,p=e.isLoading,h=!Object(i.isEmpty)(n),v=Object(r.useCallback)((function(){d||(h?o(t,n.id):a(t))}),[t,a,o,h,n,d]);return Object(r.createElement)("tr",null,Object(r.createElement)("td",{className:"yoast-table--nopadding"},function(e){var t=e.keyphrase,n=e.isEnabled,a=e.toggleAction;return e.isLoading?Object(r.createElement)(l.SvgIcon,{icon:"loading-spinner"}):Object(r.createElement)(l.Toggle,{id:"toggle-keyphrase-tracking-".concat(t),className:"wincher-toggle",isEnabled:n,onSetToggleState:a,showToggleStateLabel:!1})}({keyphrase:t,isEnabled:h,toggleAction:v,isLoading:p})),Object(r.createElement)("td",null,t,c&&Object(r.createElement)("span",null,"*")),function(e){var t=e.rowData,n=e.websiteId,a=!Object(i.isEmpty)(t),o=t&&t.updated_at&&u()(t.updated_at)>=u()().subtract(7,"days"),c=t?Object(s.sprintf)("https://app.wincher.com/websites/%s/keywords?serp=%s&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast",n,t.id):null;return a?o?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",null,y(t)),Object(r.createElement)("td",{className:"yoast-table--nopadding"},Object(r.createElement)(b,{chartData:t})),Object(r.createElement)("td",{className:"yoast-table--nobreak"},Object(r.createElement)(m,{href:c},Object(s.__)("View","wordpress-seo")))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},Object(r.createElement)(f,null))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",null,"?"),Object(r.createElement)("td",{className:"yoast-table--nopadding"},"?"),Object(r.createElement)("td",{className:"yoast-table--nobreak"}))}(e))}b.propTypes={chartData:o.a.object},b.defaultProps={chartData:{}},v.propTypes={rowData:o.a.object,keyphrase:o.a.string.isRequired,onTrackKeyphrase:o.a.func,onUntrackKeyphrase:o.a.func,isFocusKeyphrase:o.a.bool,isDisabled:o.a.bool,isLoading:o.a.bool,websiteId:o.a.string},v.defaultProps={rowData:{},onTrackKeyphrase:function(){},onUntrackKeyphrase:function(){},isFocusKeyphrase:!1,isDisabled:!1,isLoading:!1,websiteId:""}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(16),a=n.n(r),o=n(9),s=n.n(o),i=n(10),c=n.n(i),u=n(7),l=n.n(u),d=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};s()(this,e),this.url=t,this.origin=new URL(t).origin,this.eventHandlers=Object.assign({success:{type:"",callback:function(){}},error:{type:"",callback:function(){}}},n),this.options=Object.assign({height:570,width:340,title:""},r),this.popup=null,this.createPopup=this.createPopup.bind(this),this.messageHandler=this.messageHandler.bind(this),this.getPopup=this.getPopup.bind(this)}var t;return c()(e,[{key:"createPopup",value:function(){var e=this.options,t=e.height,n=e.width,r=e.title,a=["top="+(window.top.outerHeight/2+window.top.screenY-t/2),"left="+(window.top.outerWidth/2+window.top.screenX-n/2),"width="+n,"height="+t,"resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(this.url,r,a.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}},{key:"messageHandler",value:(t=a()(l.a.mark((function e(t){var n,r;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.data,r=t.source,t.origin===this.origin&&this.popup===r){e.next=3;break}return e.abrupt("return");case 3:if(n.type!==this.eventHandlers.success.type){e.next=8;break}return this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),e.next=8,this.eventHandlers.success.callback(n);case 8:if(n.type!==this.eventHandlers.error.type){e.next=13;break}return this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),e.next=13,this.eventHandlers.error.callback(n);case 13:case"end":return e.stop()}}),e,this)}))),function(_x){return t.apply(this,arguments)})},{key:"getPopup",value:function(){return this.popup}},{key:"isClosed",value:function(){return!this.popup||this.popup.closed}},{key:"focus",value:function(){this.isClosed()||this.popup.focus()}}]),e}()},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),s=n(2),i=n(31),c=n.n(i),u=n(4),l=function(e){var t=Object(s.sprintf)(
8
  /* translators: %s expands to a link to open the Wincher login popup. */
9
  Object(s.__)("It seems like something went wrong when retrieving your website's data. Please %s and try again.","wordpress-seo"),"{{reconnectToWincher/}}","Wincher");return Object(r.createElement)(u.Alert,{type:"error"},c()({mixedString:t,components:{reconnectToWincher:Object(r.createElement)("a",{href:"#",onClick:e.onReconnect},Object(s.sprintf)(
10
  /* translators: %s : Expands to "Wincher". */
11
- Object(s.__)("reconnect to %s","wordpress-seo"),"Wincher"))}}))};l.propTypes={onReconnect:o.a.func.isRequired},t.a=l},,,function(e,t,n){"use strict";var r=n(5),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(62),s=n(91),i=n(92),c="function"==typeof Symbol&&Symbol.iterator;function u(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}var l=/\/+/g;function d(e){return(""+e).replace(l,"$&/")}var p,f,m=h,h=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)};function b(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var a,s,i=e.result,c=e.keyPrefix,u=e.func,l=e.context,p=u.call(l,t,e.count++);Array.isArray(p)?v(p,i,n,o.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(a=p,s=c+(!p.key||t&&t.key===p.key?"":d(p.key)+"/")+n,p=r.cloneElement(a,{key:s},void 0!==a.props?a.props.children:void 0)),i.push(p))}function v(e,t,n,r,o){var i="";null!=n&&(i=d(n)+"/");var l=b.getPooled(t,i,r,o);!function(e,t,n){null==e||function e(t,n,r,o){var i,l=typeof t;if("undefined"!==l&&"boolean"!==l||(t=null),null===t||"string"===l||"number"===l||"object"===l&&t.$$typeof===a)return r(o,t,""===n?"."+u(t,0):n),1;var d=0,p=""===n?".":n+":";if(Array.isArray(t))for(var f=0;f<t.length;f++)d+=e(i=t[f],p+u(i,f),r,o);else{var m=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(m)for(var h,b=m.call(t),y=0;!(h=b.next()).done;)d+=e(i=h.value,p+u(i,y++),r,o);else if("object"===l){var v=""+t;s(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===v?"object with keys {"+Object.keys(t).join(", ")+"}":v,"")}}return d}(e,"",t,n)}(e,y,l),b.release(l)}b.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},p=function(e,t,n,r){if(this.instancePool.length){var a=this.instancePool.pop();return this.call(a,e,t,n,r),a}return new this(e,t,n,r)},(f=b).instancePool=[],f.getPooled=p||m,f.poolSize||(f.poolSize=10),f.release=function(e){s(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)},e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return i(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return i(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;s(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)v(e[n],t,n,o.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,o,s,i){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,a,o,s,i],l=0;(c=new Error(t.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(62);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t,n){"use strict";var r=n(0),a=n(2),o=n(31),s=n.n(o),i=n(8),c=Object(i.makeOutboundLink)(),u=Object(i.makeOutboundLink)();t.a=function(){var e=Object(a.sprintf)(Object(a.__)(
12
  /* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */
13
  "With %1$s you can track the ranking position of your page in the search results based on your keyphrase(s). %2$s","wordpress-seo"),"{{wincherLink/}}","{{wincherReadMoreLink/}}");return Object(r.createElement)("p",null,s()({mixedString:e,components:{wincherLink:Object(r.createElement)(c,{href:wpseoAdminGlobalL10n["links.wincher.website"]},"Wincher"),wincherReadMoreLink:Object(r.createElement)(u,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"]},Object(a.__)("Read more about keyphrase tracking with Wincher","wordpress-seo"))}}))}},function(e,t,n){"use strict";var r=n(6),a=n(20),o=n(26),s=n.n(o),i=n(15),c=n.n(i),u=n(16),l=n.n(u),d=n(0),p=n(7),f=n.n(p),m=n(2),h=n(1),b=n.n(h),y=n(3),v=n(13),g=n.n(v),O=n(4),w=n(8),j=n(31),k=n.n(j),E=Object(w.makeOutboundLink)(),R=function(e){var t=Object(m.sprintf)(
14
  /* translators: %d expands to the amount of allowed keyphrases on a free account, %s expands to a link to Wincher plans. */
@@ -18,11 +18,11 @@ Object(m.__)("upgrade your %s plan","wordpress-seo"),"Wincher"))}}))};R.propType
18
  /* translators: %s: Expands to "Wincher". */
19
  Object(m.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher"))},C=function(){return Object(d.createElement)(O.Alert,{type:"info"},Object(m.sprintf)(
20
  /* translators: %s: Expands to "Wincher". */
21
- Object(m.__)("%s is currently tracking the ranking position(s) of your page. This may take a few minutes. Please wait or check back later.","wordpress-seo"),"Wincher"))},L=n(24),A=n.n(L),q=n(29),N=n.n(q),D=n(84),M=n(32),K=Object(w.makeOutboundLink)(),B=g.a.span(_||(_=c()(["\n\tdisplay: block;\n\tfont-style: italic;\n\n\t@media (min-width: 782px) {\n\t\tdisplay: inline;\n\t\tposition: absolute;\n\t\t",": 8px;\n\t}\n"])),Object(w.getDirectionalStyle)("right","left")),F=g.a.th(I||(I=c()(["\n\tmin-width: 60px;\n"]))),W=g.a.div(T||(T=c()(["\n\twidth: 100%;\n\toverflow-y: auto;\n"]))),H=function(e){var t=Object(d.useRef)();return Object(d.useEffect)((function(){t.current=e})),t.current},V=Object(y.debounce)(M.c,500,{leading:!0}),z=function(e){var t=e.addTrackedKeyphrase,n=e.isLoggedIn,r=e.keyphrases,a=e.permalink,o=e.removeTrackedKeyphrase,s=e.setKeyphraseLimitReached,i=e.setRequestFailed,c=e.setRequestSucceeded,u=e.setTrackedKeyphrases,p=e.setHasTrackedAll,h=e.trackAll,b=e.trackedKeyphrases,v=e.isNewlyAuthenticated,g=e.websiteId,O=e.focusKeyphrase,w=e.newRequest,j=Object(d.useRef)(),k=Object(d.useRef)(),E=Object(d.useRef)(!1),R=Object(d.useState)([]),_=N()(R,2),I=_[0],T=_[1],x=Object(d.useCallback)((function(e){var t=e.toLowerCase();return b&&!Object(y.isEmpty)(b)&&b.hasOwnProperty(t)?b[t]:null}),[b]),S=Object(d.useMemo)((function(){return l()(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(M.d)((function(){return k.current&&k.current.abort(),k.current="undefined"==typeof AbortController?null:new AbortController,V(r,a,k.current.signal)}),(function(e){c(e),u(e.results)}),(function(e){i(e)}));case 2:case"end":return e.stop()}}),e)})))}),[c,i,u,r,a]),P=Object(d.useCallback)(function(){var e=l()(f.a.mark((function e(n){var r;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(Array.isArray(n)?n:[n]).map((function(e){return e.toLowerCase()})),T((function(e){return[].concat(A()(e),A()(r))})),e.next=4,Object(M.d)((function(){return Object(M.e)(r)}),(function(e){c(e),t(e.results),S()}),(function(e){400===e.status&&e.limit&&s(e.limit),i(e)}),201);case 4:T((function(e){return y.without.apply(void 0,[e].concat(A()(r)))}));case 5:case"end":return e.stop()}}),e)})));return function(_x){return e.apply(this,arguments)}}(),[c,i,s,t,S]),C=Object(d.useCallback)(function(){var e=l()(f.a.mark((function e(t,n){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=t.toLowerCase(),T((function(e){return[].concat(A()(e),[t])})),e.next=4,Object(M.d)((function(){return Object(M.f)(n)}),(function(e){c(e),o(t)}),(function(e){i(e)}));case 4:T((function(e){return Object(y.without)(e,t)}));case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[c,o,i]),L=Object(d.useCallback)(function(){var e=l()(f.a.mark((function e(t){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(),e.next=3,P(t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[w,P]),q=H(a),z=H(r);Object(d.useEffect)((function(){n&&a&&(a!==q||Object(y.difference)(r,z).length)&&S()}),[n,a,q,r,z,S]),Object(d.useEffect)((function(){if(n&&h&&null!==b){var e=r.filter((function(e){return!x(e)}));e.length&&P(e),p()}}),[n,h,b,P,p,x,r]),Object(d.useEffect)((function(){v&&!E.current&&(S(),E.current=!0)}),[v,S]),Object(d.useEffect)((function(){if(n&&!Object(y.isEmpty)(b))return Object(y.filter)(b,(function(e){return Object(y.isEmpty)(e.updated_at)})).length>0&&(j.current=setInterval((function(){S()}),1e4)),function(){clearInterval(j.current)}}),[n,b,S]);var U=n&&null===b;return r&&!Object(y.isEmpty)(r)&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(W,null,Object(d.createElement)("table",{className:"yoast yoast-table"},Object(d.createElement)("thead",null,Object(d.createElement)("tr",null,Object(d.createElement)("th",{scope:"col",abbr:Object(m.__)("Tracking","wordpress-seo")},Object(m.__)("Tracking","wordpress-seo")),Object(d.createElement)("th",{scope:"col",abbr:Object(m.__)("Keyphrase","wordpress-seo")},Object(m.__)("Keyphrase","wordpress-seo")),Object(d.createElement)("th",{scope:"col",abbr:Object(m.__)("Position","wordpress-seo")},Object(m.__)("Position","wordpress-seo")),Object(d.createElement)("th",{scope:"col",abbr:Object(m.__)("Position over time","wordpress-seo")},Object(m.__)("Position over time","wordpress-seo")),Object(d.createElement)(F,{className:"yoast-table--nobreak"}))),Object(d.createElement)("tbody",null,r.map((function(e,t){return Object(d.createElement)(D.b,{key:"trackable-keyphrase-".concat(t),keyphrase:e,onTrackKeyphrase:L,onUntrackKeyphrase:C,rowData:x(e),isFocusKeyphrase:e===O.trim(),websiteId:g,isDisabled:!n,isLoading:U||I.indexOf(e.toLowerCase())>=0})}))))),Object(d.createElement)("p",{style:{marginBottom:0,position:"relative"}},Object(d.createElement)(K,{href:wpseoAdminGlobalL10n["links.wincher.login"]},Object(m.sprintf)(
22
  /* translators: %s expands to Wincher */
23
- Object(m.__)("Get more insights over at %s","wordpress-seo"),"Wincher")),Object(d.createElement)(B,null,Object(m.__)("* focus keyphrase","wordpress-seo"))))};z.propTypes={addTrackedKeyphrase:b.a.func.isRequired,isLoggedIn:b.a.bool,isNewlyAuthenticated:b.a.bool,keyphrases:b.a.array,newRequest:b.a.func.isRequired,removeTrackedKeyphrase:b.a.func.isRequired,setRequestFailed:b.a.func.isRequired,setKeyphraseLimitReached:b.a.func.isRequired,setRequestSucceeded:b.a.func.isRequired,setTrackedKeyphrases:b.a.func.isRequired,setHasTrackedAll:b.a.func.isRequired,trackAll:b.a.bool,trackedKeyphrases:b.a.object,websiteId:b.a.string,permalink:b.a.string.isRequired,focusKeyphrase:b.a.string},z.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],trackAll:!1,trackedKeyphrases:null,websiteId:"",focusKeyphrase:""};var U,Y,G,$=z,Z=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getWincherWebsiteId,r=t.getWincherTrackedKeyphrases,a=t.getWincherTrackableKeyphrases,o=t.getWincherLoginStatus,s=t.getWincherPermalink,i=t.getFocusKeyphrase,c=t.isWincherNewlyAuthenticated,u=t.shouldWincherTrackAll;return{focusKeyphrase:i(),keyphrases:a(),trackedKeyphrases:r(),isLoggedIn:o(),trackAll:u(),websiteId:n(),isNewlyAuthenticated:c(),permalink:s()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setWincherNewRequest,r=t.setWincherRequestSucceeded,a=t.setWincherRequestFailed,o=t.setWincherSetKeyphraseLimitReached,s=t.setWincherTrackedKeyphrases,i=t.setWincherTrackingForKeyphrase,c=t.setWincherTrackAllKeyphrases,u=t.unsetWincherTrackingForKeyphrase;return{newRequest:function(){n()},setRequestSucceeded:function(e){r(e)},setRequestFailed:function(e){a(e)},setKeyphraseLimitReached:function(e){o(e)},addTrackedKeyphrase:function(e){i(e)},removeTrackedKeyphrase:function(e){u(e)},setTrackedKeyphrases:function(e){s(e)},setHasTrackedAll:function(){c(!1)}}}))])($),J=n(94),X=function(){return Object(d.createElement)(O.Alert,{type:"error"},Object(m.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo"))},Q=function(){return Object(d.createElement)(O.Alert,{type:"info"},Object(m.sprintf)(
24
  /* translators: %s: Expands to "Wincher". */
25
- Object(m.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher"))},ee=n(86),te=n(87),ne=function(){return Object(d.createElement)(O.Alert,{type:"error"},Object(m.__)("Before you can track your SEO performance make sure to set either the post’s title and save it as a draft or manually set the post’s slug.","wordpress-seo"))},re=function(e){var t=e.response,n=e.onLogin;return 403===t.status||404===t.status?Object(d.createElement)(te.a,{onReconnect:n}):Object(d.createElement)(S,null)};re.propTypes={response:b.a.object.isRequired,onLogin:b.a.func.isRequired};var ae=function(e){var t=e.isSuccess,n=e.response,r=e.allKeyphrasesMissRanking,a=e.onLogin,o=e.keyphraseLimitReached,s=e.limit;return o?Object(d.createElement)(x,{limit:s}):Object(y.isEmpty)(n)||t?r?Object(d.createElement)(C,null):null:Object(d.createElement)(re,{response:n,onLogin:a})};ae.propTypes={isSuccess:b.a.bool.isRequired,allKeyphrasesMissRanking:b.a.bool.isRequired,response:b.a.object,onLogin:b.a.func.isRequired,keyphraseLimitReached:b.a.bool.isRequired,limit:b.a.number.isRequired},ae.defaultProps={response:{}};var oe=null,se=function(){var e=l()(f.a.mark((function e(t,n){var r,a,o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.onAuthentication,a=t.setRequestSucceeded,o=t.setRequestFailed,e.next=3,Object(M.d)((function(){return Object(M.a)(n)}),function(){var e=l()(f.a.mark((function e(t){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r(!0,!0,n.websiteId.toString()),a(t),(o=oe.getPopup())&&o.close();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),function(){var e=l()(f.a.mark((function e(t){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",o(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e)})));return function(_x,t){return e.apply(this,arguments)}}(),ie=function(){var e=l()(f.a.mark((function e(t){var n,r;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!oe||oe.isClosed()){e.next=3;break}return oe.focus(),e.abrupt("return");case 3:return e.next=5,Object(M.b)();case 5:n=e.sent,r=n.url,(oe=new ee.a(r,{success:{type:"wincher:oauth:success",callback:function(e){return se(t,e)}},error:{type:"wincher:oauth:error",callback:function(){return t.onAuthentication(!1,!1)}}},{title:"Wincher_login",width:500,height:700})).createPopup();case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ce=function(e){return e.isLoggedIn?null:Object(d.createElement)("p",null,Object(d.createElement)(O.NewButton,{onClick:e.onLogin,variant:"primary"},Object(m.sprintf)(
26
  /* translators: %s expands to Wincher */
27
  Object(m.__)("Connect with %s","wordpress-seo"),"Wincher")))};ce.propTypes={isLoggedIn:b.a.bool.isRequired,onLogin:b.a.func.isRequired};var ue=g.a.div(U||(U=c()(["\n\tp {\n\t\tmargin: 1em 0;\n\t}\n"]))),le=g.a.div(Y||(Y=c()(["\n\t",";\n"])),(function(e){return e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"})),de=g.a.div(G||(G=c()(["\n\tfont-weight: var(--yoast-font-weight-bold);\n\tcolor: var(--yoast-color-label);\n\tfont-size: var(--yoast-font-size-default);\n"]))),pe=function(e){var t=e.isLoggedIn,n=e.keyphrases,r=e.shouldTrackAll;return!e.permalink&&t?Object(d.createElement)(ne,null):0===n.length?Object(d.createElement)(X,null):Object(d.createElement)(le,{isDisabled:!t},Object(d.createElement)("p",null,Object(m.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")),t&&r&&Object(d.createElement)(Q,null),Object(d.createElement)(Z,null))};function fe(e){var t=e.isNewlyAuthenticated,n=e.isLoggedIn,r=Object(d.useCallback)((function(){ie(e)}),[ie,e]);return Object(d.createElement)(ue,null,t&&Object(d.createElement)(P,null),Object(d.createElement)(de,null,Object(m.__)("SEO performance","wordpress-seo"),Object(d.createElement)(O.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"],linkText:Object(m.__)("Learn more about the SEO performance feature.","wordpress-seo")})),Object(d.createElement)(J.a,null),Object(d.createElement)(ce,{isLoggedIn:n,onLogin:r}),Object(d.createElement)(ae,s()({},e,{onLogin:r})),Object(d.createElement)(pe,e))}pe.propTypes={keyphrases:b.a.array.isRequired,isLoggedIn:b.a.bool.isRequired,shouldTrackAll:b.a.bool.isRequired,permalink:b.a.string.isRequired},fe.propTypes={isLoggedIn:b.a.bool,isNewlyAuthenticated:b.a.bool,keyphrases:b.a.array,response:b.a.object,shouldTrackAll:b.a.bool,permalink:b.a.string},fe.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],response:{},shouldTrackAll:!1,permalink:""},t.a=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.isWincherNewlyAuthenticated,r=t.getWincherKeyphraseLimitReached,a=t.getWincherLimit,o=t.getWincherLoginStatus,s=t.getWincherRequestIsSuccess,i=t.getWincherRequestResponse,c=t.getWincherTrackableKeyphrases,u=t.getWincherAllKeyphrasesMissRanking,l=t.getWincherPermalink,d=t.shouldWincherAutomaticallyTrackAll;return{keyphrases:c(),allKeyphrasesMissRanking:u(),isLoggedIn:o(),isNewlyAuthenticated:n(),isSuccess:s(),keyphraseLimitReached:r(),limit:a(),response:i(),shouldTrackAll:d(),permalink:l()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setWincherWebsiteId,r=t.setWincherRequestSucceeded,a=t.setWincherRequestFailed,o=t.setWincherLoginStatus;return{setRequestSucceeded:function(e){r(e)},setRequestFailed:function(e){a(e)},onAuthentication:function(e,t,r){n(r),o(e,t)}}}))])(fe)},function(e,t,n){"use strict";n.r(t),n.d(t,"refreshDelay",(function(){return r}));var r=500},,,,,,,,,,,function(e,t){e.exports=window.wp.sanitize},,function(e,t,n){"use strict";var r=n(6),a=n(20),o=n(0),s=n(2),i=n(1),c=n.n(i),u=n(3),l=n(4),d=function(){return Object(o.createElement)("p",{className:"yoast-related-keyphrases-modal__loading-message"},Object(s.sprintf)(
28
  /* translators: %1$s expands to "Yoast SEO", %2$s expands to "Semrush". */
@@ -30,7 +30,7 @@ Object(s.__)("Please wait while %1$s connects to %2$s to get related keyphrases.
30
  /* translators: %s : Expands to "Semrush". */
31
  Object(s.__)("You've reached your request limit for today. Check back tomorrow or upgrade your plan over at %s.","wordpress-seo"),"Semrush")),Object(o.createElement)(f,{href:window.wpseoAdminL10n["shortlinks.semrush.prices"],className:"yoast-button-upsell"},Object(s.sprintf)(
32
  /* translators: %s : Expands to "Semrush". */
33
- Object(s.__)("Upgrade your %s plan","wordpress-seo"),"Semrush"),Object(o.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})))},h=n(16),b=n.n(h),y=n(9),v=n.n(y),g=n(10),O=n.n(g),w=n(12),j=n.n(w),k=n(18),E=n.n(k),R=n(19),_=n.n(R),I=n(11),T=n.n(I),x=n(7),S=n.n(x),P=n(36),C=n.n(P),L=n(39);var A="yoast-semrush-country-selector",q=[{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"}],N=function(e){E()(c,e);var t,n,r,a,i=(r=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=T()(r);if(a){var n=T()(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _()(this,e)});function c(e){var t;return v()(this,c),(t=i.call(this,e)).relatedKeyphrasesRequest=t.relatedKeyphrasesRequest.bind(j()(t)),t.onChangeHandler=t.onChangeHandler.bind(j()(t)),t}return O()(c,[{key:"componentDidMount",value:function(){this.props.response&&this.props.keyphrase===this.props.lastRequestKeyphrase||this.relatedKeyphrasesRequest()}},{key:"storeCountryCode",value:function(e){C()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}})}},{key:"relatedKeyphrasesRequest",value:(n=b()(S.a.mark((function e(){var t,n,r,a;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,n=t.keyphrase,r=t.countryCode,(0,t.newRequest)(r,n),this.storeCountryCode(r),e.next=5,this.doRequest(n,r);case 5:if(200!==(a=e.sent).status){e.next=9;break}return this.handleSuccessResponse(a),e.abrupt("return");case 9:this.handleFailedResponse(a);case 10:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"handleSuccessResponse",value:function(e){var t=this.props,n=t.setNoResultsFound,r=t.setRequestSucceeded;0!==e.results.rows.length?r(e):n()}},{key:"handleFailedResponse",value:function(e){var t=this.props,n=t.setRequestLimitReached,r=t.setRequestFailed;"error"in e&&(e.error.includes("TOTAL LIMIT EXCEEDED")?n():r(e))}},{key:"doRequest",value:(t=b()(S.a.mark((function e(t,n){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C()({path:Object(L.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:t,country_code:n})});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(_x,e){return t.apply(this,arguments)})},{key:"onChangeHandler",value:function(e){this.props.setCountry(e)}},{key:"render",value:function(){return Object(o.createElement)("div",{id:A},Object(o.createElement)(l.SingleSelect,{id:A+"-select",label:Object(s.__)("Show results for:","wordpress-seo"),name:"semrush-country-code",options:q,selected:this.props.countryCode,onChange:this.onChangeHandler,wrapperClassName:"yoast-field-group yoast-field-group--inline"}),Object(o.createElement)(l.NewButton,{id:A+"-button",variant:"secondary",onClick:this.relatedKeyphrasesRequest},Object(s.__)("Select country","wordpress-seo")))}}]),c}(o.Component);N.propTypes={keyphrase:c.a.string,countryCode:c.a.string,response:c.a.object,lastRequestKeyphrase:c.a.string,setCountry:c.a.func.isRequired,newRequest:c.a.func.isRequired,setNoResultsFound:c.a.func.isRequired,setRequestSucceeded:c.a.func.isRequired,setRequestLimitReached:c.a.func.isRequired,setRequestFailed:c.a.func.isRequired},N.defaultProps={keyphrase:"",countryCode:"us",response:{},lastRequestKeyphrase:""};var D=N,M=n(58),K=n(53);var B=Object(p.makeOutboundLink)(),F=function(e){E()(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=T()(t);if(n){var a=T()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return _()(this,e)});function a(e){var t;return v()(this,a),(t=r.call(this,e)).transformTrendDataToChartPoints=t.transformTrendDataToChartPoints.bind(j()(t)),t.getAreaChartDataTableHeaderLabels=t.getAreaChartDataTableHeaderLabels.bind(j()(t)),t.mapAreaChartDataToTableData=t.mapAreaChartDataToTableData.bind(j()(t)),t}return O()(a,[{key:"transformTrendDataToChartPoints",value:function(e){return e.split(",").map((function(e,t){return{x:t,y:parseFloat(e)}}))}},{key:"getAreaChartDataTableHeaderLabels",value:function(){return[Object(s.__)("Twelve months ago","wordpress-seo"),Object(s.__)("Eleven months ago","wordpress-seo"),Object(s.__)("Ten months ago","wordpress-seo"),Object(s.__)("Nine months ago","wordpress-seo"),Object(s.__)("Eight months ago","wordpress-seo"),Object(s.__)("Seven months ago","wordpress-seo"),Object(s.__)("Six months ago","wordpress-seo"),Object(s.__)("Five months ago","wordpress-seo"),Object(s.__)("Four months ago","wordpress-seo"),Object(s.__)("Three months ago","wordpress-seo"),Object(s.__)("Two months ago","wordpress-seo"),Object(s.__)("Last month","wordpress-seo")]}},{key:"mapAreaChartDataToTableData",value:function(e){return Math.round(100*e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.keyphrase,r=t.relatedKeyphrases,a=t.countryCode,i=t.data,c=t.renderAction,l="https://www.semrush.com/analytics/keywordoverview/?q="+encodeURIComponent(n)+"&db="+encodeURIComponent(a);return i&&!Object(u.isEmpty)(i.results)&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("table",{className:"yoast yoast-table"},Object(o.createElement)("thead",null,Object(o.createElement)("tr",null,Object(o.createElement)("th",{scope:"col",className:"yoast-table--primary"},Object(s.__)("Related keyphrase","wordpress-seo")),Object(o.createElement)("th",{scope:"col",abbr:Object(s.__)("Volume","wordpress-seo")},Object(s.__)("Volume","wordpress-seo"),Object(o.createElement)(K.a,{href:window.wpseoAdminL10n["shortlinks.semrush.volume_help"],className:"dashicons"},Object(o.createElement)("span",{className:"screen-reader-text"},Object(s.__)("Learn more about the related keyphrases volume","wordpress-seo")))),Object(o.createElement)("th",{scope:"col",abbr:Object(s.__)("Trend","wordpress-seo")},Object(s.__)("Trend","wordpress-seo"),Object(o.createElement)(K.a,{href:window.wpseoAdminL10n["shortlinks.semrush.trend_help"],className:"dashicons"},Object(o.createElement)("span",{className:"screen-reader-text"},Object(s.__)("Learn more about the related keyphrases trend","wordpress-seo")))),c&&Object(o.createElement)("td",{className:"yoast-table--nobreak"}))),Object(o.createElement)("tbody",null,i.results.rows.map((function(t,n){var a=t[0],i=e.transformTrendDataToChartPoints(t[2]),u=e.getAreaChartDataTableHeaderLabels();return Object(o.createElement)("tr",{key:n},Object(o.createElement)("td",null,a),Object(o.createElement)("td",null,t[1]),Object(o.createElement)("td",{className:"yoast-table--nopadding"},Object(o.createElement)(M.a,{width:66,height:24,data:i,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:e.mapAreaChartDataToTableData,dataTableCaption:Object(s.__)("Keyphrase volume in the last 12 months on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:u})),c&&Object(o.createElement)("td",{className:"yoast-table--nobreak"},c(a,r)))})))),Object(o.createElement)("p",{style:{marginBottom:0}},Object(o.createElement)(B,{href:l},Object(s.sprintf)(
34
  /* translators: %s expands to Semrush */
35
  Object(s.__)("Get more insights at %s","wordpress-seo"),"Semrush"))))}}]),a}(o.Component);F.propTypes={data:c.a.object,keyphrase:c.a.string,relatedKeyphrases:c.a.array,countryCode:c.a.string,renderAction:c.a.func},F.defaultProps={data:{},keyphrase:"",relatedKeyphrases:[],countryCode:"us",renderAction:null};var W=F,H=Object(p.makeOutboundLink)(),V=function(){return Object(o.createElement)(l.Alert,{type:"info"},Object(s.sprintf)(
36
  /* translators: %s: Expands to "Yoast SEO". */
@@ -38,4 +38,4 @@ Object(s.__)("Would you like to be able to add these related keyphrases to the %
38
  /* translators: %s: Expands to "Yoast SEO Premium". */
39
  Object(s.__)("Check out %s!","wordpress-seo"),"Yoast SEO Premium")))},z=function(){return Object(o.createElement)(l.Alert,{type:"error"},Object(s.__)("We've encountered a problem trying to get related keyphrases. Please try again later.","wordpress-seo"))},U=function(){return Object(o.createElement)(l.Alert,{type:"warning"},Object(s.sprintf)(
40
  /* translators: %s: Expands to "Yoast SEO". */
41
- Object(s.__)("You've reached the maximum amount of 4 related keyphrases. You can change or remove related keyphrases in the %s metabox or sidebar.","wordpress-seo"),"Yoast SEO"))},Y=n(23);function G(e){var t=e.response,n=e.lastRequestKeyphrase,r=e.keyphrase,a=e.newRequest,i=e.setCountry,c=e.renderAction,l=e.countryCode,p=e.requestLimitReached,f=e.setRequestFailed,h=e.setNoResultsFound,b=e.relatedKeyphrases,y=e.setRequestSucceeded,v=e.setRequestLimitReached,g=Object(Y.a)().isPremium;return Object(o.createElement)(o.Fragment,null,!p&&Object(o.createElement)(o.Fragment,null,!g&&Object(o.createElement)(V,null),g&&function(e){return e&&e.length>=4}(b)&&Object(o.createElement)(U,null),Object(o.createElement)(D,{countryCode:l,setCountry:i,newRequest:a,keyphrase:r,setRequestFailed:f,setNoResultsFound:h,setRequestSucceeded:y,setRequestLimitReached:v,response:t,lastRequestKeyphrase:n})),function(e){var t=e.isPending,n=e.requestLimitReached,r=e.isSuccess,a=e.response,i=e.requestHasData;return t?Object(o.createElement)(d,null):n?Object(o.createElement)(m,null):!r&&function(e){return!Object(u.isEmpty)(e)&&"error"in e}(a)?Object(o.createElement)(z,null):i?void 0:Object(o.createElement)("p",null,Object(s.__)("Sorry, there's no data available for that keyphrase/country combination.","wordpress-seo"))}(e),Object(o.createElement)(W,{keyphrase:r,relatedKeyphrases:b,countryCode:l,renderAction:c,data:t}))}G.propTypes={keyphrase:c.a.string,relatedKeyphrases:c.a.array,renderAction:c.a.func,requestLimitReached:c.a.bool,countryCode:c.a.string.isRequired,setCountry:c.a.func.isRequired,newRequest:c.a.func.isRequired,setRequestSucceeded:c.a.func.isRequired,setRequestLimitReached:c.a.func.isRequired,setRequestFailed:c.a.func.isRequired,setNoResultsFound:c.a.func.isRequired,response:c.a.object,lastRequestKeyphrase:c.a.string},G.defaultProps={keyphrase:"",relatedKeyphrases:[],renderAction:null,requestLimitReached:!1,response:{},lastRequestKeyphrase:""},t.a=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getFocusKeyphrase,r=t.getSEMrushSelectedCountry,a=t.getSEMrushRequestLimitReached,o=t.getSEMrushRequestResponse,s=t.getSEMrushRequestIsSuccess,i=t.getSEMrushIsRequestPending,c=t.getSEMrushRequestHasData,u=t.getSEMrushRequestKeyphrase;return{keyphrase:n(),countryCode:r(),requestLimitReached:a(),response:o(),isSuccess:s(),isPending:i(),requestHasData:c(),lastRequestKeyphrase:u()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setSEMrushChangeCountry,r=t.setSEMrushNewRequest,a=t.setSEMrushRequestSucceeded,o=t.setSEMrushRequestFailed,s=t.setSEMrushSetRequestLimitReached,i=t.setSEMrushNoResultsFound;return{setCountry:function(e){n(e)},newRequest:function(e,t){r(e,t)},setRequestSucceeded:function(e){a(e)},setRequestFailed:function(e){o(e)},setRequestLimitReached:function(){s()},setNoResultsFound:function(){i()}}}))])(G)},,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var r=n(0),a=n(1),o=n.n(a),s=n(9),i=n.n(s),c=n(10),u=n.n(c),l=n(12),d=n.n(l),p=n(18),f=n.n(p),m=n(19),h=n.n(m),b=n(11),y=n.n(b),v=n(4),g=n(8),O=n(59);var w=function(e){f()(o,e);var t,n,a=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=y()(t);if(n){var a=y()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return h()(this,e)});function o(e){var t;return i()(this,o),(t=a.call(this,e)).hiddenField=document.getElementById(t.props.hiddenField),t.hiddenFieldImageId=document.getElementById(t.props.hiddenFieldImageId),t.state={imageUrl:t.getInitialValue(),imageId:t.getInitialId(),warnings:[]},t.setMyImageUrl=t.setMyImageUrl.bind(d()(t)),t.setMyImageId=t.setMyImageId.bind(d()(t)),t.onClick=t.onClick.bind(d()(t)),t.removeImage=t.removeImage.bind(d()(t)),t.setWarnings=t.setWarnings.bind(d()(t)),t}return u()(o,[{key:"getInitialValue",value:function(){return this.hiddenField.value}},{key:"getInitialId",value:function(){if(null!==this.hiddenFieldImageId)return this.hiddenFieldImageId.value}},{key:"setMyImageUrl",value:function(e){var t=this;this.setState({imageUrl:e},(function(){t.hiddenField.value=e}))}},{key:"setMyImageId",value:function(e){var t=this;this.setState({imageId:e},(function(){t.hiddenFieldImageId.value=e}))}},{key:"onClick",value:function(){var e=this;Object(O.a)((function(t){e.props.hasImageValidation&&e.setWarnings(Object(g.validateFacebookImage)(t)),e.setMyImageUrl(t.url),null!==e.hiddenFieldImageId&&e.setMyImageId(t.id)}))}},{key:"removeImage",value:function(){this.setMyImageUrl(""),null!==this.hiddenFieldImageId&&this.setMyImageId("")}},{key:"setWarnings",value:function(e){this.setState({warnings:e})}},{key:"render",value:function(){return Object(r.createElement)(v.ImageSelect,{label:this.props.label,hasPreview:this.props.hasPreview,imageUrl:this.state.imageUrl,imageId:this.state.imageId,onClick:this.onClick,onRemoveImageClick:this.removeImage,selectImageButtonId:this.props.selectImageButtonId,replaceImageButtonId:this.props.replaceImageButtonId,removeImageButtonId:this.props.removeImageButtonId,hasNewBadge:this.props.hasNewBadge,isDisabled:this.props.isDisabled,hasPremiumBadge:this.props.hasPremiumBadge,warnings:this.state.warnings})}}]),o}(r.Component);w.propTypes={hiddenField:o.a.string.isRequired,hiddenFieldImageId:o.a.string,label:o.a.string,hasPreview:o.a.bool,selectImageButtonId:o.a.string,replaceImageButtonId:o.a.string,removeImageButtonId:o.a.string,hasNewBadge:o.a.bool,isDisabled:o.a.bool,hasPremiumBadge:o.a.bool,hasImageValidation:o.a.bool},w.defaultProps={hiddenFieldImageId:"",label:"",hasPreview:!0,selectImageButtonId:"",replaceImageButtonId:"",removeImageButtonId:"",hasNewBadge:!1,isDisabled:!1,hasPremiumBadge:!1,hasImageValidation:!1};var j=w,k=n(42);function E(e){var t=e.target,n=e.label,a=e.hasPreview,o=e.hiddenField,s=e.hiddenFieldImageId,i=e.selectImageButtonId,c=e.replaceImageButtonId,u=e.removeImageButtonId,l=e.hasNewBadge,d=e.isDisabled,p=e.hasPremiumBadge,f=e.hasImageValidation;return Object(r.createElement)(k.a,{target:t},Object(r.createElement)(j,{label:n,hasPreview:a,hiddenField:o,hiddenFieldImageId:s,selectImageButtonId:i,replaceImageButtonId:c,removeImageButtonId:u,hasNewBadge:l,isDisabled:d,hasPremiumBadge:p,hasImageValidation:f}))}E.propTypes={target:o.a.string.isRequired,label:o.a.string.isRequired,hasPreview:o.a.bool.isRequired,hiddenField:o.a.string.isRequired,hiddenFieldImageId:o.a.string,selectImageButtonId:o.a.string,replaceImageButtonId:o.a.string,removeImageButtonId:o.a.string,hasNewBadge:o.a.bool,isDisabled:o.a.bool,hasPremiumBadge:o.a.bool,hasImageValidation:o.a.bool},E.defaultProps={hiddenFieldImageId:"",selectImageButtonId:"",replaceImageButtonId:"",removeImageButtonId:"",hasNewBadge:!1,isDisabled:!1,hasPremiumBadge:!1,hasImageValidation:!1}},,,,,,function(e,t){e.exports=window.yoast.analysisReport},,,,,,,,,,,function(e,t,n){"use strict";var r=n(6),a=n(20),o=n(9),s=n.n(o),i=n(10),c=n.n(i),u=n(12),l=n.n(u),d=n(18),p=n.n(d),f=n(19),m=n.n(f),h=n(11),b=n.n(h),y=n(0),v=n(1),g=n.n(v),O=n(128),w=n(27),j=n(63);var k=function(e){p()(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=b()(t);if(n){var a=b()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return m()(this,e)});function a(e){var t;s()(this,a);var n=(t=r.call(this,e)).props.results;return t.state={mappedResults:{}},null!==n&&(t.state={mappedResults:Object(j.default)(n,t.props.keywordKey)}),t.handleMarkButtonClick=t.handleMarkButtonClick.bind(l()(t)),t}return c()(a,[{key:"componentDidUpdate",value:function(e){null!==this.props.results&&this.props.results!==e.results&&this.setState({mappedResults:Object(j.default)(this.props.results,this.props.keywordKey)})}},{key:"handleMarkButtonClick",value:function(e,t){var n=this.props.keywordKey.length>0?"".concat(this.props.keywordKey,":").concat(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 w.Paper("",{}),[])}},{key:"render",value:function(){var e=this.state.mappedResults,t=e.errorsResults,n=e.improvementsResults,r=e.goodResults,a=e.considerationsResults,o=e.problemsResults;return Object(y.createElement)(y.Fragment,null,Object(y.createElement)(O.ContentAnalysis,{errorsResults:t,problemsResults:o,improvementsResults:n,considerationsResults:a,goodResults:r,activeMarker:this.props.activeMarker,onMarkButtonClick:this.handleMarkButtonClick,marksButtonClassName:this.props.marksButtonClassName,marksButtonStatus:this.props.marksButtonStatus,headingLevel:3,keywordKey:this.props.keywordKey}))}}]),a}(y.Component);k.propTypes={results:g.a.array,marksButtonClassName:g.a.string,marksButtonStatus:g.a.string,setActiveMarker:g.a.func.isRequired,setMarkerPauseStatus:g.a.func.isRequired,activeMarker:g.a.string,keywordKey:g.a.string},k.defaultProps={results:null,marksButtonStatus:"enabled",marksButtonClassName:"",activeMarker:null,keywordKey:""};var E=k;t.a=Object(a.compose)([Object(r.withSelect)((function(e){return{activeMarker:(0,e("yoast-seo/editor").getActiveMarker)()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor");return{setActiveMarker:t.setActiveMarker,setMarkerPauseStatus:t.setMarkerPauseStatus}}))])(E)},,,,,,,function(e,t,n){"use strict";var r,a,o,s,i=n(34),c=n.n(i),u=n(24),l=n.n(u),d=n(29),p=n.n(d),f=n(0),m=/<(\/)?(\w+)\s*(\/)?>/g;function h(e,t,n,r,a){return{element:e,tokenStart:t,tokenLength:n,prevOffset:r,leadingTextStart:a,children:[]}}function b(){var e=r.length-a;0!==e&&o.push(r.substr(a,e))}function y(e){var t=e.element,n=e.tokenStart,a=e.tokenLength,o=e.prevOffset,i=e.children,c=s[s.length-1],u=r.substr(c.prevOffset,n-c.prevOffset);u&&c.children.push(u),c.children.push(f.cloneElement.apply(void 0,[t,null].concat(l()(i)))),c.prevOffset=o||n+a}function v(e){var t=function(){var e=m.exec(r);if(null===e)return["no-more-tokens"];var t=e.index,n=p()(e,4),a=n[0],o=n[1],s=n[2],i=n[3],c=a.length;return i?["self-closed",s,t,c]:o?["closer",s,t,c]:["opener",s,t,c]}(),n=p()(t,4),i=n[0],c=n[1],u=n[2],d=n[3],v=s.length,g=u>a?a:null;if(!e[c])return b(),!1;switch(i){case"no-more-tokens":if(0!==v){var O=s.pop(),w=O.leadingTextStart,j=O.tokenStart;o.push(r.substr(w,j))}return b(),!1;case"self-closed":return 0===v?(null!==g&&o.push(r.substr(g,u-g)),o.push(e[c]),a=u+d,!0):(y(h(e[c],u,d)),a=u+d,!0);case"opener":return s.push(h(e[c],u,d,u+d,g)),a=u+d,!0;case"closer":if(1===v)return function(e){var t=s.pop(),n=t.element,a=t.leadingTextStart,i=t.prevOffset,c=t.tokenStart,u=t.children,d=e?r.substr(i,e-i):r.substr(i);d&&u.push(d),null!==a&&o.push(r.substr(a,c-a)),o.push(f.cloneElement.apply(void 0,[n,null].concat(l()(u))))}(u),a=u+d,!0;var k=s.pop(),E=r.substr(k.prevOffset,u-k.prevOffset);k.children.push(E),k.prevOffset=u+d;var R=h(k.element,k.tokenStart,k.tokenLength,u+d);return R.children=k.children,y(R),a=u+d,!0;default:return b(),!1}}t.a=function(e,t){if(r=e,a=0,o=[],s=[],m.lastIndex=0,!function(e){var t="object"===c()(e),n=t&&Object.values(e);return t&&n.length&&n.every((function(e){return Object(f.isValidElement)(e)}))}(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(v(t));return f.createElement.apply(void 0,[f.Fragment,null].concat(l()(o)))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"doAjaxRequest",(function(){return T}));var a=n(23),o=n(52),s=n(46),i=n(96),c=n(79),u=n(53),l=n(70),d=n(44),p=n(38),f=n.n(p),m=n(0),h=n(1),b=n.n(h),y=n(63),v=n(54),g=n(109),O=n(72),w=n(139),j=n(146),k=n(73),E=n(57),R=n(30),_=n(51),I=n(33);function T(e,t,n,r){return new Promise((function(a,o){jQuery.ajax({type:e,url:t,beforeSend:n?function(e){e.setRequestHeader("X-WP-Nonce",n)}:null,data:r,dataType:"json",success:a,error:o})}))}var x=n(76),S=n(122),P=n(4),C=n(20),L=n(6),A=Object(C.compose)([Object(L.withSelect)((function(e,t){return{isAlertDismissed:(0,e(t.store||"yoast-seo/editor").isAlertDismissed)(t.alertKey)}})),Object(L.withDispatch)((function(e,t){var n=e(t.store||"yoast-seo/editor").dismissAlert;return{onDismissed:function(){return n(t.alertKey)}}}))])(P.Alert),q=n(95);window.yoast=window.yoast||{},window.yoast.editorModules={analysis:{getL10nObject:a.a,getContentLocale:o.a,getIndicatorForScore:s.a,constants:i,refreshAnalysis:c},components:{HelpLink:u.a,TopLevelProviders:l.a,higherorder:{withYoastSidebarPriority:function(e){var t=function(t){t.renderPriority;var n=f()(t,["renderPriority"]);return Object(m.createElement)(e,n)};return t.propTypes={renderPriority:b.a.number},t}},contentAnalysis:{mapResults:y},contexts:{location:{LocationContext:R.LocationContext,LocationProvider:R.LocationProvider,LocationConsumer:R.LocationConsumer}},SidebarItem:I.a,SidebarCollapsible:O.a,MetaboxCollapsible:v.a,Modal:_.a,portals:{ImageSelectPortal:S.a}},containers:{EditorModal:x.a,PersistentDismissableAlert:A,Results:w.a,SEMrushRelatedKeyphrases:g.a,WincherSEOPerformance:q.a},helpers:{ajaxHelper:r,createInterpolateElement:j.a,isBlockEditor:k.a,i18n:d,replacementVariableHelpers:E}}}]);
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=213)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.yoast.propTypes},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.lodash},function(e,t){e.exports=window.yoast.componentsNew},function(e,t){e.exports=window.React},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.regeneratorRuntime},function(e,t){e.exports=window.yoast.helpers},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=window.yoast.styledComponents},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},function(e,t){function n(e,t,n,r,a,o,s){try{var i=e[o](s),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(r,a)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(a,o){var s=e.apply(t,r);function i(e){n(s,a,o,i,c,"next",e)}function c(e){n(s,a,o,i,c,"throw",e)}i(void 0)}))}}},function(e,t){e.exports=window.yoast.externals.redux},function(e,t,n){var r=n(43);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(34),a=n(12);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t}},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.wp.components},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3);function a(){return Object(r.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}},function(e,t,n){var r=n(66),a=n(67),o=n(68);e.exports=function(e){return r(e)||a(e)||o()}},function(e,t){e.exports=window.yoast.styleGuide},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){e.exports=window.yoast.analysis},,function(e,t,n){var r=n(59),a=n(60),o=n(61);e.exports=function(e,t){return r(e)||a(e,t)||o()}},function(e,t){e.exports=window.yoast.externals.contexts},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=i(n(5)),o=i(n(89)),s=i(n(92));function i(e){return e&&e.__esModule?e:{default:e}}var c=void 0;t.default=function(e){var t=e.mixedString,n=e.components,i=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var u=(0,s.default)(t);try{return function e(t,n){var s,i,u,l,d,p,f,m,h=[],b={};for(p=0;p<t.length;p++)if("string"!==(d=t[p]).type){if(!n.hasOwnProperty(d.value)||void 0===n[d.value])throw new Error("Invalid interpolation, missing component node: `"+d.value+"`");if("object"!==r(n[d.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+d.value+"`","\n> "+c);if("componentClose"===d.type)throw new Error("Missing opening component token: `"+d.value+"`");if("componentOpen"===d.type){s=n[d.value],u=p;break}h.push(n[d.value])}else h.push(d.value);return s&&(l=function(e,t){var n,r,a=t[e],o=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){o++;continue}if("componentClose"===n.type){if(0===o)return r;o--}}throw new Error("Missing closing component token `"+a.value+"`")}(u,t),f=e(t.slice(u+1,l),n),i=a.default.cloneElement(s,{},f),h.push(i),l<t.length-1&&(m=e(t.slice(l+1),n),h=h.concat(m))),1===h.length?h[0]:(h.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,o.default)(b))}(u,n)}catch(e){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return p})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return v})),n.d(t,"e",(function(){return O})),n.d(t,"f",(function(){return j}));var r=n(16),a=n.n(r),o=n(7),s=n.n(o),i=n(36),c=n.n(i),u=n(3);function l(_x){return d.apply(this,arguments)}function d(){return(d=a()(s.a.mark((function e(t){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c()(t);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),!e.t0.error||!e.t0.status){e.next=10;break}return e.abrupt("return",e.t0);case 10:if(!(e.t0 instanceof Response)){e.next=14;break}return e.next=13,e.t0.json();case 13:return e.abrupt("return",e.sent);case 14:return e.abrupt("return",!1);case 15:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function p(e,t,n){return f.apply(this,arguments)}function f(){return(f=a()(s.a.mark((function e(t,n,r){var a,o,i=arguments;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=i.length>3&&void 0!==i[3]?i[3]:200,e.prev=1,e.next=4,t();case 4:if(!(o=e.sent)){e.next=9;break}if(o.status!==a){e.next=8;break}return e.abrupt("return",n(o));case 8:return e.abrupt("return",r(o));case 9:return e.abrupt("return",!1);case 12:e.prev=12,e.t0=e.catch(1),console.error(e.t0.message);case 15:case"end":return e.stop()}}),e,null,[[1,12]])})))).apply(this,arguments)}function m(){return h.apply(this,arguments)}function h(){return(h=a()(s.a.mark((function e(){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l({path:"yoast/v1/wincher/authorization-url",method:"GET"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(e){return y.apply(this,arguments)}function y(){return(y=a()(s.a.mark((function e(t){var n,r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.code,r=t.websiteId,e.next=3,l({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:n,websiteId:r}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(){return g.apply(this,arguments)}function g(){return(g=a()(s.a.mark((function e(){var t,n,r,a=arguments;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:null,n=a.length>1&&void 0!==a[1]?a[1]:null,r=a.length>2?a[2]:void 0,e.next=5,l({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:t,permalink:n},signal:r});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e){return w.apply(this,arguments)}function w(){return(w=a()(s.a.mark((function e(t){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(u.isArray)(t)||(t=[t]),e.next=3,l({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:t}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e){return k.apply(this,arguments)}function k(){return(k=a()(s.a.mark((function e(t){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:t}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),s=function(e){var t=e.children;return Object(r.createElement)("div",null,t)};s.propTypes={renderPriority:o.a.number.isRequired,children:o.a.node.isRequired},t.a=s},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},,function(e,t){e.exports=window.wp.apiFetch},,function(e,t,n){var r=n(79);e.exports=function(e,t){if(null==e)return{};var n,a,o=r(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)n=s[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t){e.exports=window.wp.url},function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return s})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"h",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"l",(function(){return p})),n.d(t,"m",(function(){return f})),n.d(t,"n",(function(){return m})),n.d(t,"o",(function(){return h})),n.d(t,"k",(function(){return b})),n.d(t,"j",(function(){return y})),n.d(t,"i",(function(){return v}));var r=n(8),a="SNIPPET_EDITOR_SWITCH_MODE",o="SNIPPET_EDITOR_UPDATE_DATA",s="SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLE",i="SNIPPET_EDITOR_HIDE_REPLACEMENT_VARIABLES",c="SNIPPET_EDITOR_REMOVE_REPLACEMENT_VARIABLE",u="SNIPPET_EDITOR_REFRESH",l="SNIPPET_EDITOR_UPDATE_WORDS_TO_HIGHLIGHT",d="LOAD_SNIPPET_EDITOR_DATA";function p(e){return{type:a,mode:e}}function f(e){return{type:o,data:e}}function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o="string"==typeof t?Object(r.decodeHTML)(t):t;return{type:s,name:e,value:o,label:n,hidden:a}}function h(e){return{type:l,wordsToHighlight:e}}function b(e){return{type:c,name:e}}function y(){return{type:u,time:(new Date).getMilliseconds()}}function v(e){return{type:i,data:e}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o}));var r=n(0);function a(e){return e.charAt(0).toUpperCase()+e.slice(1)}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return Object(r.createInterpolateElement)(e,{a:Object(r.createElement)("a",{id:n,href:t,target:"_blank",rel:"noopener noreferrer"})})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(0),a=n(1),o=n.n(a);function s(e){var t=e.target,n=e.children,a=t;return"string"==typeof t&&(a=document.getElementById(t)),a?Object(r.createPortal)(n,a):null}s.propTypes={target:o.a.oneOfType([o.a.string,o.a.object]).isRequired,children:o.a.node.isRequired}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(2),a=n(27),o=n(3);function s(e){return Object(o.isNil)(e)||(e/=10),function(e){switch(e){case"feedback":return{className:"na",screenReaderText:Object(r.__)("Feedback","wordpress-seo"),screenReaderReadabilityText:""};case"bad":return{className:"bad",screenReaderText:Object(r.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:Object(r.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:Object(r.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:Object(r.__)("OK","wordpress-seo")};case"good":return{className:"good",screenReaderText:Object(r.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:Object(r.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:""}}}(a.interpreters.scoreToRating(e))}},,,function(e,t){e.exports=window.yoast.components},,function(e,t,n){"use strict";n.d(t,"b",(function(){return d}));var r=n(26),a=n.n(r),o=n(38),s=n.n(o),i=n(0),c=n(1),u=n.n(c),l=n(21),d="yoast yoast-gutenberg-modal",p=function(e){var t=e.title,n=e.className,r=e.showYoastIcon,o=e.additionalClassName,c=s()(e,["title","className","showYoastIcon","additionalClassName"]),u=r?Object(i.createElement)("span",{className:"yoast-icon"}):null;return Object(i.createElement)(l.Modal,a()({title:t,className:"".concat(n," ").concat(o),icon:u},c),e.children)};p.propTypes={title:u.a.string,className:u.a.string,showYoastIcon:u.a.bool,children:u.a.oneOfType([u.a.node,u.a.arrayOf(u.a.node)]),additionalClassName:u.a.string},p.defaultProps={title:"Yoast SEO",className:d,showYoastIcon:!0,children:null,additionalClassName:""},t.a=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=n(23);function o(){var e=Object(a.a)();return Object(r.get)(e,"contentLocale","en_US")}},function(e,t,n){"use strict";var r,a=n(15),o=n.n(a),s=n(25),i=n(8),c=n(13),u=n.n(c),l=Object(i.makeOutboundLink)(u.a.a(r||(r=o()(["\n\tdisplay: inline-block;\n\tposition: relative;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 100%;\n\twidth: 24px;\n\theight: 24px;\n\tmargin: -4px 0;\n\tvertical-align: middle;\n\n\tcolor: ",";\n\t\n\t&:hover,\n\t&:focus {\n\t\tcolor: ",";\t\n\t}\n\t\n\t// Overwrite the default blue active color for links.\n\t&:active {\n\t\tcolor: ",';\t\n\t}\n\n\t&::before {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tpadding: 2px;\n\t\tcontent: "\f223";\n\t}\n'],["\n\tdisplay: inline-block;\n\tposition: relative;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 100%;\n\twidth: 24px;\n\theight: 24px;\n\tmargin: -4px 0;\n\tvertical-align: middle;\n\n\tcolor: ",";\n\t\n\t&:hover,\n\t&:focus {\n\t\tcolor: ",";\t\n\t}\n\t\n\t// Overwrite the default blue active color for links.\n\t&:active {\n\t\tcolor: ",';\t\n\t}\n\n\t&::before {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tpadding: 2px;\n\t\tcontent: "\\f223";\n\t}\n'])),s.colors.$color_help_text,s.colors.$color_snippet_focus,s.colors.$color_help_text));t.a=l},function(e,t,n){"use strict";var r,a=n(26),o=n.n(a),s=n(15),i=n.n(s),c=n(0),u=n(4),l=n(13),d=n.n(l)()(u.Collapsible)(r||(r=i()(['\n\th2 > button {\n\t\tpadding-left: 24px;\n\t\tpadding-top: 16px;\n\n\t\t&:hover {\n\t\t\tbackground-color: #f0f0f0;\n\t\t}\n\t}\n\n\tdiv[class^="collapsible_content"] {\n\t\tpadding: 24px 0;\n\t\tmargin: 0 24px;\n\t\tborder-top: 1px solid rgba(0,0,0,0.2);\n\t}\n\n'])));t.a=function(e){return Object(c.createElement)(d,o()({hasPadding:!0,hasSeparator:!0},e))}},,,function(e,t,n){"use strict";n.r(t),n.d(t,"nonReplaceVars",(function(){return p})),n.d(t,"fillReplacementVariables",(function(){return f})),n.d(t,"handlePrefixes",(function(){return m})),n.d(t,"createLabelFromName",(function(){return h})),n.d(t,"pushNewReplaceVar",(function(){return b})),n.d(t,"replaceSpaces",(function(){return y})),n.d(t,"prepareCustomFieldForDispatch",(function(){return v})),n.d(t,"prepareCustomTaxonomyForDispatch",(function(){return g})),n.d(t,"mapCustomTaxonomies",(function(){return O})),n.d(t,"mapCustomFields",(function(){return w})),n.d(t,"excerptFromContent",(function(){return j})),n.d(t,"applyReplaceUsingPlugin",(function(){return k}));var r=n(14),a=n.n(r),o=n(3),s=n(106),i=n(40),c=n(41);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=n(8).strings.stripHTMLTags,p=["slug","content","contentImage","snippetPreviewImageURL"];function f(e,t){Object(o.forEach)(e,(function(e,n){p.includes(n)||t.dispatch(Object(i.n)(n,e))}))}function m(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 h(e){return e=m(e),Object(c.b)(e)}function b(e,t){return e.push({name:t.name,label:t.label||h(t.name),value:t.value}),e}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e.replace(/\s/g,t)}function v(e){return{name:"cf_"+y(e),label:Object(c.b)(e+" (custom field)")}}function g(e){var t=y(e);return{name:"ct_"+t,label:Object(c.b)(e+" (custom taxonomy)"),descriptionName:"ct_desc_"+t,descriptionLabel:Object(c.b)(e+" description (custom taxonomy)")}}function O(e,t){return e.custom_taxonomies?(Object(o.forEach)(e.custom_taxonomies,(function(e,n){var r=g(n),a=r.name,o=r.label,s=r.descriptionName,c=r.descriptionLabel;t.dispatch(Object(i.n)(a,e.name,o)),t.dispatch(Object(i.n)(s,e.description,c))})),Object(o.omit)(l({},e),"custom_taxonomies")):e}function w(e,t){return e.custom_fields?(Object(o.forEach)(e.custom_fields,(function(e,n){var r=v(n),a=r.name,o=r.label;t.dispatch(Object(i.n)(a,e,o))})),Object(o.omit)(l({},e),"custom_fields")):e}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:156;return(e=(e=Object(s.stripTags)(e)).trim()).length<=t||(e=e.substring(0,t),/\s/.test(e)&&(e=e.substring(0,e.lastIndexOf(" ")))),e}var k=function(e){var t=Object(o.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!Object(o.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){var t=Object(o.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],o.identity);return{url:e.url,title:d(t(e.title)),description:d(t(e.description))}}(e);var n=t._applyModifications.bind(t);return{url:e.url,title:d(n("data_page_title",e.title)),description:d(n("data_meta_desc",e.description))}}},function(e,t,n){"use strict";var r=n(24),a=n.n(r),o=n(0),s=n(1),i=n.n(s),c=n(2),u=function(e){var t=e.data,n=e.mapChartDataToTableData,r=e.dataTableCaption,a=e.dataTableHeaderLabels,s=e.isDataTableVisuallyHidden;return t.length!==a.length?Object(o.createElement)("p",null,Object(c.__)("The number of headers and header labels don't match.","wordpress-seo")):Object(o.createElement)("div",{className:s?"screen-reader-text":null},Object(o.createElement)("table",null,Object(o.createElement)("caption",null,r),Object(o.createElement)("thead",null,Object(o.createElement)("tr",null,a.map((function(e,t){return Object(o.createElement)("th",{key:t},e)})))),Object(o.createElement)("tbody",null,Object(o.createElement)("tr",null,t.map((function(e,t){return Object(o.createElement)("td",{key:t},n(e.y))}))))))};u.propTypes={data:i.a.arrayOf(i.a.shape({x:i.a.number,y:i.a.number})).isRequired,mapChartDataToTableData:i.a.func,dataTableCaption:i.a.string.isRequired,dataTableHeaderLabels:i.a.array.isRequired,isDataTableVisuallyHidden:i.a.bool},u.defaultProps={mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};var l=u,d=function(e){var t=e.data,n=e.width,r=e.height,s=e.fillColor,i=e.strokeColor,c=e.strokeWidth,u=e.className,d=e.mapChartDataToTableData,p=e.dataTableCaption,f=e.dataTableHeaderLabels,m=e.isDataTableVisuallyHidden,h=Math.max(1,Math.max.apply(Math,a()(t.map((function(e){return e.x}))))),b=Math.max(1,Math.max.apply(Math,a()(t.map((function(e){return e.y}))))),y=r-c,v=t.map((function(e){var t=e.x/h*n,r=y-e.y/b*y+c;return"".concat(t,",").concat(r)})).join(" "),g="0,".concat(y+c," ")+v+" ".concat(n,",").concat(y+c);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("svg",{width:n,height:r,viewBox:"0 0 ".concat(n," ").concat(r),className:u,role:"img","aria-hidden":"true",focusable:"false"},Object(o.createElement)("polygon",{fill:s,points:g}),Object(o.createElement)("polyline",{fill:"none",stroke:i,strokeWidth:c,strokeLinejoin:"round",strokeLinecap:"round",points:v})),d&&Object(o.createElement)(l,{data:t,mapChartDataToTableData:d,dataTableCaption:p,dataTableHeaderLabels:f,isDataTableVisuallyHidden:m}))};d.propTypes={data:i.a.arrayOf(i.a.shape({x:i.a.number,y:i.a.number})).isRequired,width:i.a.number.isRequired,height:i.a.number.isRequired,fillColor:i.a.string,strokeColor:i.a.string,strokeWidth:i.a.number,className:i.a.string,mapChartDataToTableData:i.a.func,dataTableCaption:i.a.string.isRequired,dataTableHeaderLabels:i.a.array.isRequired,isDataTableVisuallyHidden:i.a.bool},d.defaultProps={fillColor:null,strokeColor:"#000000",strokeWidth:1,className:"",mapChartDataToTableData:null,isDataTableVisuallyHidden:!0},t.a=d},function(e,t,n){"use strict";function r(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()}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],_n=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(_n=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,a=e}finally{try{_n||null==s.return||s.return()}finally{if(r)throw a}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){"use strict";function r(){}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},function(e,t,n){"use strict";n.r(t),n.d(t,"getIconForScore",(function(){return i})),n.d(t,"default",(function(){return c}));var r=n(27),a=n(25);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.getIdentifier(),a={score:e.score,rating:r.interpreters.scoreToRating(e.score),hasMarks:e.hasMarks(),marker:e.getMarker(),id:n,text:e.text,markerId:t.length>0?"".concat(t,":").concat(n):n};return"ok"===a.rating&&(a.rating="OK"),a}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 i(e){var t={icon:"seo-score-none",color:a.colors.$color_red};switch(e){case"loading":t={icon:"loading-spinner",color:a.colors.$color_green_medium_light};break;case"good":t={icon:"seo-score-good",color:a.colors.$color_green_medium};break;case"ok":t={icon:"seo-score-ok",color:a.colors.$color_ok};break;case"bad":t={icon:"seo-score-bad",color:a.colors.$color_red}}return t}function c(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 a=e[r];if(a.text){var i=o(a,t);n=s(i,n)}}return n}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),s=n(13),i=n(30),c=function(e){var t=e.theme,n=e.location,a=e.children;return Object(r.createElement)(i.LocationProvider,{value:n},Object(r.createElement)(s.ThemeProvider,{theme:t},a))};c.propTypes={theme:o.a.object.isRequired,location:o.a.oneOf(["sidebar","metabox","modal"]).isRequired,children:o.a.element.isRequired},t.a=c},function(e,t){e.exports=window.moment},function(e,t,n){"use strict";var r=n(29),a=n.n(r),o=n(0),s=n(4),i=n(1),c=n.n(i),u=function(e){var t=Object(o.useState)(!1),n=a()(t,2),r=n[0],i=n[1],c=e.prefixIcon;return Object(o.createElement)("div",{className:"yoast components-panel__body ".concat(r?"is-opened":"")},Object(o.createElement)("h2",{className:"components-panel__body-title"},Object(o.createElement)("button",{onClick:function(){i(!r)},className:"components-button components-panel__body-toggle"},Object(o.createElement)("span",{className:"yoast-icon-span",style:{fill:"".concat(c&&c.color||"")}},c&&Object(o.createElement)(s.SvgIcon,{icon:c.icon,color:c.color,size:c.size})),Object(o.createElement)("span",{className:"yoast-title-container"},Object(o.createElement)("div",{className:"yoast-title"},e.title),Object(o.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),Object(o.createElement)("span",{className:"yoast-chevron","aria-hidden":"true"}))),r&&e.children)};t.a=u,u.propTypes={title:c.a.string.isRequired,children:c.a.oneOfType([c.a.node,c.a.arrayOf(c.a.node)]).isRequired,prefixIcon:c.a.object,subTitle:c.a.string},u.defaultProps={prefixIcon:null,subTitle:""}},function(e,t,n){"use strict";function r(){return window.wpseoScriptData&&"1"===window.wpseoScriptData.isBlockEditor}n.d(t,"a",(function(){return r}))},,,function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(80);t.a=Object(r.compose)([Object(a.withSelect)((function(e,t){var n=e("yoast-seo/editor"),r=n.getPostOrPageString,a=n.getIsModalOpen;return{postTypeName:r(),isOpen:a(t.id)}})),Object(a.withDispatch)((function(e,t){var n=e("yoast-seo/editor"),r=n.openEditorModal;return{open:function(){return r(t.id)},close:n.closeEditorModal}}))])(o.a)},,,function(e,t,n){"use strict";n.r(t),n.d(t,"sortResultsByIdentifier",(function(){return i})),n.d(t,"default",(function(){return c})),n.d(t,"initializationDone",(function(){return u}));var r=n(17),a=n(62),o=n(48),s=!1;function i(e){return e.sort((function(e,t){return e._identifier.localeCompare(t._identifier)}))}function c(e,t,n,c,u){var l=t();s&&e.analyze(l).then((function(e){var t=e.result,a=t.seo,s=t.readability;if(a){var d=a[""];d.results.forEach((function(e){e.getMarker=function(){return function(){return n(l,e.marks)}}})),d.results=i(d.results),c.dispatch(r.actions.setSeoResultsForKeyword(l.getKeyword(),d.results)),c.dispatch(Object(o.setOverallSeoScore)(d.score,l.getKeyword())),c.dispatch(r.actions.refreshSnippetEditor()),u.saveScores(d.score,l.getKeyword())}s&&(s.results.forEach((function(e){e.getMarker=function(){return function(){return n(l,e.marks)}}})),s.results=i(s.results),c.dispatch(r.actions.setReadabilityResults(s.results)),c.dispatch(Object(o.setOverallReadabilityScore)(s.score)),c.dispatch(r.actions.refreshSnippetEditor()),u.saveContentScore(s.score))})).catch(a.a)}function u(){s=!0}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}},function(e,t,n){"use strict";n.d(t,"b",(function(){return d}));var r=n(0),a=n(2),o=n(50),s=n(1),i=n.n(s),c=n(3),u=n(81),l=n(30),d=function(e){var t=!0;if("blur"===e.type){var n=e.relatedTarget;if(n){var r=["media-modal","wp-core-ui"];t=Object(c.intersection)(r,Array.from(n.classList)).length!==r.length}}return t},p=function(e){var t=e.id,n=e.postTypeName,s=e.children,i=e.title,c=e.isOpen,p=e.close,f=e.open,m=Object(r.useCallback)((function(e){d(e)&&p()}),[p]);return Object(r.createElement)(r.Fragment,null,c&&Object(r.createElement)(l.LocationProvider,{value:"modal"},Object(r.createElement)(o.a,{title:i,onRequestClose:m,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal"},Object(r.createElement)("div",{className:"yoast-content-container"},Object(r.createElement)("div",{className:"yoast-modal-content"},s)),Object(r.createElement)("div",{className:"yoast-notice-container"},Object(r.createElement)("hr",null),Object(r.createElement)("div",{className:"yoast-button-container"},Object(r.createElement)("p",null,
2
  /* Translators: %s translates to the Post Label in singular form */
3
  Object(a.sprintf)(Object(a.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),n)),Object(r.createElement)("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:m},
4
  /* Translators: %s translates to the Post Label in singular form */
5
+ Object(a.sprintf)(Object(a.__)("Return to your %s","wordpress-seo"),n)))))),Object(r.createElement)(u.a,{id:t+"-open-button",title:i,suffixIcon:{size:"20px",icon:"pencil-square"},onClick:f}))};p.propTypes={id:i.a.string.isRequired,postTypeName:i.a.string.isRequired,children:i.a.oneOfType([i.a.node,i.a.arrayOf(i.a.node)]).isRequired,title:i.a.string.isRequired,isOpen:i.a.bool.isRequired,open:i.a.func.isRequired,close:i.a.func.isRequired},t.a=p},function(e,t,n){"use strict";var r=n(0),a=n(4),o=n(1),s=n.n(o),i=function(e){return Object(r.createElement)("div",{className:"yoast components-panel__body"},Object(r.createElement)("h2",{className:"components-panel__body-title"},Object(r.createElement)("button",{id:e.id,onClick:e.onClick,className:"components-button components-panel__body-toggle"},e.prefixIcon&&Object(r.createElement)("span",{className:"yoast-icon-span",style:{fill:"".concat(e.prefixIcon&&e.prefixIcon.color||"")}},Object(r.createElement)(a.SvgIcon,{size:e.prefixIcon.size,icon:e.prefixIcon.icon})),Object(r.createElement)("span",{className:"yoast-title-container"},Object(r.createElement)("div",{className:"yoast-title"},e.title),Object(r.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),e.suffixIcon&&Object(r.createElement)(a.SvgIcon,{size:e.suffixIcon.size,icon:e.suffixIcon.icon}))))};t.a=i,i.propTypes={onClick:s.a.func.isRequired,title:s.a.string.isRequired,id:s.a.string,subTitle:s.a.string,suffixIcon:s.a.object,prefixIcon:s.a.object},i.defaultProps={id:"",suffixIcon:null,prefixIcon:null,subTitle:""}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return y})),n.d(t,"b",(function(){return v}));var r=n(0),a=n(1),o=n.n(a),s=n(2),i=n(3),c=n(70),u=n.n(c),l=n(4),d=n(8),p=n(57),f=function(){return Object(r.createElement)("p",{className:"yoast-wincher-seo-performance-modal__loading-message"},Object(s.__)("Tracking the ranking position...","wordpress-seo")," ",Object(r.createElement)(l.SvgIcon,{icon:"loading-spinner"}))},m=Object(d.makeOutboundLink)();function h(e){return Math.round(100*e)}function b(e){var t=e.chartData;if(Object(i.isEmpty)(t)||Object(i.isEmpty)(t.position))return"?";var n=function(e){return Array.from({length:e.position.history.length},(function(e,t){return t+1})).map((function(e){
6
  /* translators: %d expands to the amount of days */
7
  return Object(s.sprintf)(Object(s._n)("%d day","%d days",e,"wordpress-seo"),e)}))}(t),a=t.position.history.map((function(e,t){return{x:t,y:101-e.value}}));return Object(r.createElement)(p.a,{width:66,height:24,data:a,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:h,dataTableCaption:Object(s.__)("Keyphrase position in the last 90 days on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:n})}function y(e){return!e||!e.position||e.position.value>100?"> 100":e.position.value}function v(e){var t=e.keyphrase,n=e.rowData,a=e.onTrackKeyphrase,o=e.onUntrackKeyphrase,c=e.isFocusKeyphrase,d=e.isDisabled,p=e.isLoading,h=!Object(i.isEmpty)(n),v=Object(r.useCallback)((function(){d||(h?o(t,n.id):a(t))}),[t,a,o,h,n,d]);return Object(r.createElement)("tr",null,Object(r.createElement)("td",{className:"yoast-table--nopadding"},function(e){var t=e.keyphrase,n=e.isEnabled,a=e.toggleAction;return e.isLoading?Object(r.createElement)(l.SvgIcon,{icon:"loading-spinner"}):Object(r.createElement)(l.Toggle,{id:"toggle-keyphrase-tracking-".concat(t),className:"wincher-toggle",isEnabled:n,onSetToggleState:a,showToggleStateLabel:!1})}({keyphrase:t,isEnabled:h,toggleAction:v,isLoading:p})),Object(r.createElement)("td",null,t,c&&Object(r.createElement)("span",null,"*")),function(e){var t=e.rowData,n=e.websiteId,a=!Object(i.isEmpty)(t),o=t&&t.updated_at&&u()(t.updated_at)>=u()().subtract(7,"days"),c=t?Object(s.sprintf)("https://app.wincher.com/websites/%s/keywords?serp=%s&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast",n,t.id):null;return a?o?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",null,y(t)),Object(r.createElement)("td",{className:"yoast-table--nopadding"},Object(r.createElement)(b,{chartData:t})),Object(r.createElement)("td",{className:"yoast-table--nobreak"},Object(r.createElement)(m,{href:c},Object(s.__)("View","wordpress-seo")))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},Object(r.createElement)(f,null))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",null,"?"),Object(r.createElement)("td",{className:"yoast-table--nopadding"},"?"),Object(r.createElement)("td",{className:"yoast-table--nobreak"}))}(e))}b.propTypes={chartData:o.a.object},b.defaultProps={chartData:{}},v.propTypes={rowData:o.a.object,keyphrase:o.a.string.isRequired,onTrackKeyphrase:o.a.func,onUntrackKeyphrase:o.a.func,isFocusKeyphrase:o.a.bool,isDisabled:o.a.bool,isLoading:o.a.bool,websiteId:o.a.string},v.defaultProps={rowData:{},onTrackKeyphrase:function(){},onUntrackKeyphrase:function(){},isFocusKeyphrase:!1,isDisabled:!1,isLoading:!1,websiteId:""}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(16),a=n.n(r),o=n(9),s=n.n(o),i=n(10),c=n.n(i),u=n(7),l=n.n(u),d=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};s()(this,e),this.url=t,this.origin=new URL(t).origin,this.eventHandlers=Object.assign({success:{type:"",callback:function(){}},error:{type:"",callback:function(){}}},n),this.options=Object.assign({height:570,width:340,title:""},r),this.popup=null,this.createPopup=this.createPopup.bind(this),this.messageHandler=this.messageHandler.bind(this),this.getPopup=this.getPopup.bind(this)}var t;return c()(e,[{key:"createPopup",value:function(){var e=this.options,t=e.height,n=e.width,r=e.title,a=["top="+(window.top.outerHeight/2+window.top.screenY-t/2),"left="+(window.top.outerWidth/2+window.top.screenX-n/2),"width="+n,"height="+t,"resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(this.url,r,a.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}},{key:"messageHandler",value:(t=a()(l.a.mark((function e(t){var n,r;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.data,r=t.source,t.origin===this.origin&&this.popup===r){e.next=3;break}return e.abrupt("return");case 3:if(n.type!==this.eventHandlers.success.type){e.next=8;break}return this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),e.next=8,this.eventHandlers.success.callback(n);case 8:if(n.type!==this.eventHandlers.error.type){e.next=13;break}return this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),e.next=13,this.eventHandlers.error.callback(n);case 13:case"end":return e.stop()}}),e,this)}))),function(_x){return t.apply(this,arguments)})},{key:"getPopup",value:function(){return this.popup}},{key:"isClosed",value:function(){return!this.popup||this.popup.closed}},{key:"focus",value:function(){this.isClosed()||this.popup.focus()}}]),e}()},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),s=n(2),i=n(31),c=n.n(i),u=n(4),l=function(e){var t=Object(s.sprintf)(
8
  /* translators: %s expands to a link to open the Wincher login popup. */
9
  Object(s.__)("It seems like something went wrong when retrieving your website's data. Please %s and try again.","wordpress-seo"),"{{reconnectToWincher/}}","Wincher");return Object(r.createElement)(u.Alert,{type:"error"},c()({mixedString:t,components:{reconnectToWincher:Object(r.createElement)("a",{href:"#",onClick:e.onReconnect},Object(s.sprintf)(
10
  /* translators: %s : Expands to "Wincher". */
11
+ Object(s.__)("reconnect to %s","wordpress-seo"),"Wincher"))}}))};l.propTypes={onReconnect:o.a.func.isRequired},t.a=l},,,function(e,t,n){"use strict";var r=n(5),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(64),s=n(90),i=n(91),c="function"==typeof Symbol&&Symbol.iterator;function u(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}var l=/\/+/g;function d(e){return(""+e).replace(l,"$&/")}var p,f,m=h,h=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)};function b(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var a,s,i=e.result,c=e.keyPrefix,u=e.func,l=e.context,p=u.call(l,t,e.count++);Array.isArray(p)?v(p,i,n,o.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(a=p,s=c+(!p.key||t&&t.key===p.key?"":d(p.key)+"/")+n,p=r.cloneElement(a,{key:s},void 0!==a.props?a.props.children:void 0)),i.push(p))}function v(e,t,n,r,o){var i="";null!=n&&(i=d(n)+"/");var l=b.getPooled(t,i,r,o);!function(e,t,n){null==e||function e(t,n,r,o){var i,l=typeof t;if("undefined"!==l&&"boolean"!==l||(t=null),null===t||"string"===l||"number"===l||"object"===l&&t.$$typeof===a)return r(o,t,""===n?"."+u(t,0):n),1;var d=0,p=""===n?".":n+":";if(Array.isArray(t))for(var f=0;f<t.length;f++)d+=e(i=t[f],p+u(i,f),r,o);else{var m=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(m)for(var h,b=m.call(t),y=0;!(h=b.next()).done;)d+=e(i=h.value,p+u(i,y++),r,o);else if("object"===l){var v=""+t;s(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===v?"object with keys {"+Object.keys(t).join(", ")+"}":v,"")}}return d}(e,"",t,n)}(e,y,l),b.release(l)}b.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},p=function(e,t,n,r){if(this.instancePool.length){var a=this.instancePool.pop();return this.call(a,e,t,n,r),a}return new this(e,t,n,r)},(f=b).instancePool=[],f.getPooled=p||m,f.poolSize||(f.poolSize=10),f.release=function(e){s(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)},e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return i(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return i(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;s(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)v(e[n],t,n,o.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,o,s,i){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,a,o,s,i],l=0;(c=new Error(t.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(64);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t,n){"use strict";var r=n(0),a=n(2),o=n(31),s=n.n(o),i=n(8),c=Object(i.makeOutboundLink)(),u=Object(i.makeOutboundLink)();t.a=function(){var e=Object(a.sprintf)(Object(a.__)(
12
  /* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */
13
  "With %1$s you can track the ranking position of your page in the search results based on your keyphrase(s). %2$s","wordpress-seo"),"{{wincherLink/}}","{{wincherReadMoreLink/}}");return Object(r.createElement)("p",null,s()({mixedString:e,components:{wincherLink:Object(r.createElement)(c,{href:wpseoAdminGlobalL10n["links.wincher.website"]},"Wincher"),wincherReadMoreLink:Object(r.createElement)(u,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"]},Object(a.__)("Read more about keyphrase tracking with Wincher","wordpress-seo"))}}))}},function(e,t,n){"use strict";var r=n(6),a=n(20),o=n(26),s=n.n(o),i=n(15),c=n.n(i),u=n(16),l=n.n(u),d=n(0),p=n(7),f=n.n(p),m=n(2),h=n(1),b=n.n(h),y=n(3),v=n(13),g=n.n(v),O=n(4),w=n(8),j=n(31),k=n.n(j),E=Object(w.makeOutboundLink)(),R=function(e){var t=Object(m.sprintf)(
14
  /* translators: %d expands to the amount of allowed keyphrases on a free account, %s expands to a link to Wincher plans. */
18
  /* translators: %s: Expands to "Wincher". */
19
  Object(m.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher"))},C=function(){return Object(d.createElement)(O.Alert,{type:"info"},Object(m.sprintf)(
20
  /* translators: %s: Expands to "Wincher". */
21
+ Object(m.__)("%s is currently tracking the ranking position(s) of your page. This may take a few minutes. Please wait or check back later.","wordpress-seo"),"Wincher"))},L=n(24),A=n.n(L),q=n(29),N=n.n(q),D=n(83),M=n(32),K=Object(w.makeOutboundLink)(),B=g.a.span(_||(_=c()(["\n\tdisplay: block;\n\tfont-style: italic;\n\n\t@media (min-width: 782px) {\n\t\tdisplay: inline;\n\t\tposition: absolute;\n\t\t",": 8px;\n\t}\n"])),Object(w.getDirectionalStyle)("right","left")),F=g.a.th(I||(I=c()(["\n\tmin-width: 60px;\n"]))),W=g.a.div(T||(T=c()(["\n\twidth: 100%;\n\toverflow-y: auto;\n"]))),H=function(e){var t=Object(d.useRef)();return Object(d.useEffect)((function(){t.current=e})),t.current},V=Object(y.debounce)(M.c,500,{leading:!0}),z=function(e){var t=e.addTrackedKeyphrase,n=e.isLoggedIn,r=e.keyphrases,a=e.permalink,o=e.removeTrackedKeyphrase,s=e.setKeyphraseLimitReached,i=e.setRequestFailed,c=e.setRequestSucceeded,u=e.setTrackedKeyphrases,p=e.setHasTrackedAll,h=e.trackAll,b=e.trackedKeyphrases,v=e.isNewlyAuthenticated,g=e.websiteId,O=e.focusKeyphrase,w=e.newRequest,j=Object(d.useRef)(),k=Object(d.useRef)(),E=Object(d.useRef)(!1),R=Object(d.useState)([]),_=N()(R,2),I=_[0],T=_[1],x=Object(d.useCallback)((function(e){var t=e.toLowerCase();return b&&!Object(y.isEmpty)(b)&&b.hasOwnProperty(t)?b[t]:null}),[b]),S=Object(d.useMemo)((function(){return l()(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(M.d)((function(){return k.current&&k.current.abort(),k.current="undefined"==typeof AbortController?null:new AbortController,V(r,a,k.current.signal)}),(function(e){c(e),u(e.results)}),(function(e){i(e)}));case 2:case"end":return e.stop()}}),e)})))}),[c,i,u,r,a]),P=Object(d.useCallback)(function(){var e=l()(f.a.mark((function e(n){var r;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(Array.isArray(n)?n:[n]).map((function(e){return e.toLowerCase()})),T((function(e){return[].concat(A()(e),A()(r))})),e.next=4,Object(M.d)((function(){return Object(M.e)(r)}),(function(e){c(e),t(e.results),S()}),(function(e){400===e.status&&e.limit&&s(e.limit),i(e)}),201);case 4:T((function(e){return y.without.apply(void 0,[e].concat(A()(r)))}));case 5:case"end":return e.stop()}}),e)})));return function(_x){return e.apply(this,arguments)}}(),[c,i,s,t,S]),C=Object(d.useCallback)(function(){var e=l()(f.a.mark((function e(t,n){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=t.toLowerCase(),T((function(e){return[].concat(A()(e),[t])})),e.next=4,Object(M.d)((function(){return Object(M.f)(n)}),(function(e){c(e),o(t)}),(function(e){i(e)}));case 4:T((function(e){return Object(y.without)(e,t)}));case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[c,o,i]),L=Object(d.useCallback)(function(){var e=l()(f.a.mark((function e(t){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(),e.next=3,P(t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[w,P]),q=H(a),z=H(r);Object(d.useEffect)((function(){n&&a&&(a!==q||Object(y.difference)(r,z).length)&&S()}),[n,a,q,r,z,S]),Object(d.useEffect)((function(){if(n&&h&&null!==b){var e=r.filter((function(e){return!x(e)}));e.length&&P(e),p()}}),[n,h,b,P,p,x,r]),Object(d.useEffect)((function(){v&&!E.current&&(S(),E.current=!0)}),[v,S]),Object(d.useEffect)((function(){if(n&&!Object(y.isEmpty)(b))return Object(y.filter)(b,(function(e){return Object(y.isEmpty)(e.updated_at)})).length>0&&(j.current=setInterval((function(){S()}),1e4)),function(){clearInterval(j.current)}}),[n,b,S]);var U=n&&null===b;return r&&!Object(y.isEmpty)(r)&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(W,null,Object(d.createElement)("table",{className:"yoast yoast-table"},Object(d.createElement)("thead",null,Object(d.createElement)("tr",null,Object(d.createElement)("th",{scope:"col",abbr:Object(m.__)("Tracking","wordpress-seo")},Object(m.__)("Tracking","wordpress-seo")),Object(d.createElement)("th",{scope:"col",abbr:Object(m.__)("Keyphrase","wordpress-seo")},Object(m.__)("Keyphrase","wordpress-seo")),Object(d.createElement)("th",{scope:"col",abbr:Object(m.__)("Position","wordpress-seo")},Object(m.__)("Position","wordpress-seo")),Object(d.createElement)("th",{scope:"col",abbr:Object(m.__)("Position over time","wordpress-seo")},Object(m.__)("Position over time","wordpress-seo")),Object(d.createElement)(F,{className:"yoast-table--nobreak"}))),Object(d.createElement)("tbody",null,r.map((function(e,t){return Object(d.createElement)(D.b,{key:"trackable-keyphrase-".concat(t),keyphrase:e,onTrackKeyphrase:L,onUntrackKeyphrase:C,rowData:x(e),isFocusKeyphrase:e===O.trim(),websiteId:g,isDisabled:!n,isLoading:U||I.indexOf(e.toLowerCase())>=0})}))))),Object(d.createElement)("p",{style:{marginBottom:0,position:"relative"}},Object(d.createElement)(K,{href:wpseoAdminGlobalL10n["links.wincher.login"]},Object(m.sprintf)(
22
  /* translators: %s expands to Wincher */
23
+ Object(m.__)("Get more insights over at %s","wordpress-seo"),"Wincher")),Object(d.createElement)(B,null,Object(m.__)("* focus keyphrase","wordpress-seo"))))};z.propTypes={addTrackedKeyphrase:b.a.func.isRequired,isLoggedIn:b.a.bool,isNewlyAuthenticated:b.a.bool,keyphrases:b.a.array,newRequest:b.a.func.isRequired,removeTrackedKeyphrase:b.a.func.isRequired,setRequestFailed:b.a.func.isRequired,setKeyphraseLimitReached:b.a.func.isRequired,setRequestSucceeded:b.a.func.isRequired,setTrackedKeyphrases:b.a.func.isRequired,setHasTrackedAll:b.a.func.isRequired,trackAll:b.a.bool,trackedKeyphrases:b.a.object,websiteId:b.a.string,permalink:b.a.string.isRequired,focusKeyphrase:b.a.string},z.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],trackAll:!1,trackedKeyphrases:null,websiteId:"",focusKeyphrase:""};var U,Y,G,$=z,Z=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getWincherWebsiteId,r=t.getWincherTrackedKeyphrases,a=t.getWincherTrackableKeyphrases,o=t.getWincherLoginStatus,s=t.getWincherPermalink,i=t.getFocusKeyphrase,c=t.isWincherNewlyAuthenticated,u=t.shouldWincherTrackAll;return{focusKeyphrase:i(),keyphrases:a(),trackedKeyphrases:r(),isLoggedIn:o(),trackAll:u(),websiteId:n(),isNewlyAuthenticated:c(),permalink:s()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setWincherNewRequest,r=t.setWincherRequestSucceeded,a=t.setWincherRequestFailed,o=t.setWincherSetKeyphraseLimitReached,s=t.setWincherTrackedKeyphrases,i=t.setWincherTrackingForKeyphrase,c=t.setWincherTrackAllKeyphrases,u=t.unsetWincherTrackingForKeyphrase;return{newRequest:function(){n()},setRequestSucceeded:function(e){r(e)},setRequestFailed:function(e){a(e)},setKeyphraseLimitReached:function(e){o(e)},addTrackedKeyphrase:function(e){i(e)},removeTrackedKeyphrase:function(e){u(e)},setTrackedKeyphrases:function(e){s(e)},setHasTrackedAll:function(){c(!1)}}}))])($),J=n(93),X=function(){return Object(d.createElement)(O.Alert,{type:"error"},Object(m.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo"))},Q=function(){return Object(d.createElement)(O.Alert,{type:"info"},Object(m.sprintf)(
24
  /* translators: %s: Expands to "Wincher". */
25
+ Object(m.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher"))},ee=n(85),te=n(86),ne=function(){return Object(d.createElement)(O.Alert,{type:"error"},Object(m.__)("Before you can track your SEO performance make sure to set either the post’s title and save it as a draft or manually set the post’s slug.","wordpress-seo"))},re=function(e){var t=e.response,n=e.onLogin;return 403===t.status||404===t.status?Object(d.createElement)(te.a,{onReconnect:n}):Object(d.createElement)(S,null)};re.propTypes={response:b.a.object.isRequired,onLogin:b.a.func.isRequired};var ae=function(e){var t=e.isSuccess,n=e.response,r=e.allKeyphrasesMissRanking,a=e.onLogin,o=e.keyphraseLimitReached,s=e.limit;return o?Object(d.createElement)(x,{limit:s}):Object(y.isEmpty)(n)||t?r?Object(d.createElement)(C,null):null:Object(d.createElement)(re,{response:n,onLogin:a})};ae.propTypes={isSuccess:b.a.bool.isRequired,allKeyphrasesMissRanking:b.a.bool.isRequired,response:b.a.object,onLogin:b.a.func.isRequired,keyphraseLimitReached:b.a.bool.isRequired,limit:b.a.number.isRequired},ae.defaultProps={response:{}};var oe=null,se=function(){var e=l()(f.a.mark((function e(t,n){var r,a,o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.onAuthentication,a=t.setRequestSucceeded,o=t.setRequestFailed,e.next=3,Object(M.d)((function(){return Object(M.a)(n)}),function(){var e=l()(f.a.mark((function e(t){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r(!0,!0,n.websiteId.toString()),a(t),(o=oe.getPopup())&&o.close();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),function(){var e=l()(f.a.mark((function e(t){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",o(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e)})));return function(_x,t){return e.apply(this,arguments)}}(),ie=function(){var e=l()(f.a.mark((function e(t){var n,r;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!oe||oe.isClosed()){e.next=3;break}return oe.focus(),e.abrupt("return");case 3:return e.next=5,Object(M.b)();case 5:n=e.sent,r=n.url,(oe=new ee.a(r,{success:{type:"wincher:oauth:success",callback:function(e){return se(t,e)}},error:{type:"wincher:oauth:error",callback:function(){return t.onAuthentication(!1,!1)}}},{title:"Wincher_login",width:500,height:700})).createPopup();case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ce=function(e){return e.isLoggedIn?null:Object(d.createElement)("p",null,Object(d.createElement)(O.NewButton,{onClick:e.onLogin,variant:"primary"},Object(m.sprintf)(
26
  /* translators: %s expands to Wincher */
27
  Object(m.__)("Connect with %s","wordpress-seo"),"Wincher")))};ce.propTypes={isLoggedIn:b.a.bool.isRequired,onLogin:b.a.func.isRequired};var ue=g.a.div(U||(U=c()(["\n\tp {\n\t\tmargin: 1em 0;\n\t}\n"]))),le=g.a.div(Y||(Y=c()(["\n\t",";\n"])),(function(e){return e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"})),de=g.a.div(G||(G=c()(["\n\tfont-weight: var(--yoast-font-weight-bold);\n\tcolor: var(--yoast-color-label);\n\tfont-size: var(--yoast-font-size-default);\n"]))),pe=function(e){var t=e.isLoggedIn,n=e.keyphrases,r=e.shouldTrackAll;return!e.permalink&&t?Object(d.createElement)(ne,null):0===n.length?Object(d.createElement)(X,null):Object(d.createElement)(le,{isDisabled:!t},Object(d.createElement)("p",null,Object(m.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")),t&&r&&Object(d.createElement)(Q,null),Object(d.createElement)(Z,null))};function fe(e){var t=e.isNewlyAuthenticated,n=e.isLoggedIn,r=Object(d.useCallback)((function(){ie(e)}),[ie,e]);return Object(d.createElement)(ue,null,t&&Object(d.createElement)(P,null),Object(d.createElement)(de,null,Object(m.__)("SEO performance","wordpress-seo"),Object(d.createElement)(O.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"],linkText:Object(m.__)("Learn more about the SEO performance feature.","wordpress-seo")})),Object(d.createElement)(J.a,null),Object(d.createElement)(ce,{isLoggedIn:n,onLogin:r}),Object(d.createElement)(ae,s()({},e,{onLogin:r})),Object(d.createElement)(pe,e))}pe.propTypes={keyphrases:b.a.array.isRequired,isLoggedIn:b.a.bool.isRequired,shouldTrackAll:b.a.bool.isRequired,permalink:b.a.string.isRequired},fe.propTypes={isLoggedIn:b.a.bool,isNewlyAuthenticated:b.a.bool,keyphrases:b.a.array,response:b.a.object,shouldTrackAll:b.a.bool,permalink:b.a.string},fe.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],response:{},shouldTrackAll:!1,permalink:""},t.a=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.isWincherNewlyAuthenticated,r=t.getWincherKeyphraseLimitReached,a=t.getWincherLimit,o=t.getWincherLoginStatus,s=t.getWincherRequestIsSuccess,i=t.getWincherRequestResponse,c=t.getWincherTrackableKeyphrases,u=t.getWincherAllKeyphrasesMissRanking,l=t.getWincherPermalink,d=t.shouldWincherAutomaticallyTrackAll;return{keyphrases:c(),allKeyphrasesMissRanking:u(),isLoggedIn:o(),isNewlyAuthenticated:n(),isSuccess:s(),keyphraseLimitReached:r(),limit:a(),response:i(),shouldTrackAll:d(),permalink:l()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setWincherWebsiteId,r=t.setWincherRequestSucceeded,a=t.setWincherRequestFailed,o=t.setWincherLoginStatus;return{setRequestSucceeded:function(e){r(e)},setRequestFailed:function(e){a(e)},onAuthentication:function(e,t,r){n(r),o(e,t)}}}))])(fe)},function(e,t,n){"use strict";n.r(t),n.d(t,"refreshDelay",(function(){return r}));var r=500},,,,,,,,,,,function(e,t){e.exports=window.wp.sanitize},,function(e,t,n){"use strict";var r=n(6),a=n(20),o=n(0),s=n(2),i=n(1),c=n.n(i),u=n(3),l=n(4),d=function(){return Object(o.createElement)("p",{className:"yoast-related-keyphrases-modal__loading-message"},Object(s.sprintf)(
28
  /* translators: %1$s expands to "Yoast SEO", %2$s expands to "Semrush". */
30
  /* translators: %s : Expands to "Semrush". */
31
  Object(s.__)("You've reached your request limit for today. Check back tomorrow or upgrade your plan over at %s.","wordpress-seo"),"Semrush")),Object(o.createElement)(f,{href:window.wpseoAdminL10n["shortlinks.semrush.prices"],className:"yoast-button-upsell"},Object(s.sprintf)(
32
  /* translators: %s : Expands to "Semrush". */
33
+ Object(s.__)("Upgrade your %s plan","wordpress-seo"),"Semrush"),Object(o.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})))},h=n(16),b=n.n(h),y=n(9),v=n.n(y),g=n(10),O=n.n(g),w=n(12),j=n.n(w),k=n(18),E=n.n(k),R=n(19),_=n.n(R),I=n(11),T=n.n(I),x=n(7),S=n.n(x),P=n(36),C=n.n(P),L=n(39);var A="yoast-semrush-country-selector",q=[{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"}],N=function(e){E()(c,e);var t,n,r,a,i=(r=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=T()(r);if(a){var n=T()(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _()(this,e)});function c(e){var t;return v()(this,c),(t=i.call(this,e)).relatedKeyphrasesRequest=t.relatedKeyphrasesRequest.bind(j()(t)),t.onChangeHandler=t.onChangeHandler.bind(j()(t)),t}return O()(c,[{key:"componentDidMount",value:function(){this.props.response&&this.props.keyphrase===this.props.lastRequestKeyphrase||this.relatedKeyphrasesRequest()}},{key:"storeCountryCode",value:function(e){C()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}})}},{key:"relatedKeyphrasesRequest",value:(n=b()(S.a.mark((function e(){var t,n,r,a;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,n=t.keyphrase,r=t.countryCode,(0,t.newRequest)(r,n),this.storeCountryCode(r),e.next=5,this.doRequest(n,r);case 5:if(200!==(a=e.sent).status){e.next=9;break}return this.handleSuccessResponse(a),e.abrupt("return");case 9:this.handleFailedResponse(a);case 10:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"handleSuccessResponse",value:function(e){var t=this.props,n=t.setNoResultsFound,r=t.setRequestSucceeded;0!==e.results.rows.length?r(e):n()}},{key:"handleFailedResponse",value:function(e){var t=this.props,n=t.setRequestLimitReached,r=t.setRequestFailed;"error"in e&&(e.error.includes("TOTAL LIMIT EXCEEDED")?n():r(e))}},{key:"doRequest",value:(t=b()(S.a.mark((function e(t,n){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C()({path:Object(L.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:t,country_code:n})});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(_x,e){return t.apply(this,arguments)})},{key:"onChangeHandler",value:function(e){this.props.setCountry(e)}},{key:"render",value:function(){return Object(o.createElement)("div",{id:A},Object(o.createElement)(l.SingleSelect,{id:A+"-select",label:Object(s.__)("Show results for:","wordpress-seo"),name:"semrush-country-code",options:q,selected:this.props.countryCode,onChange:this.onChangeHandler,wrapperClassName:"yoast-field-group yoast-field-group--inline"}),Object(o.createElement)(l.NewButton,{id:A+"-button",variant:"secondary",onClick:this.relatedKeyphrasesRequest},Object(s.__)("Select country","wordpress-seo")))}}]),c}(o.Component);N.propTypes={keyphrase:c.a.string,countryCode:c.a.string,response:c.a.object,lastRequestKeyphrase:c.a.string,setCountry:c.a.func.isRequired,newRequest:c.a.func.isRequired,setNoResultsFound:c.a.func.isRequired,setRequestSucceeded:c.a.func.isRequired,setRequestLimitReached:c.a.func.isRequired,setRequestFailed:c.a.func.isRequired},N.defaultProps={keyphrase:"",countryCode:"us",response:{},lastRequestKeyphrase:""};var D=N,M=n(57),K=n(52);var B=Object(p.makeOutboundLink)(),F=function(e){E()(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=T()(t);if(n){var a=T()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return _()(this,e)});function a(e){var t;return v()(this,a),(t=r.call(this,e)).transformTrendDataToChartPoints=t.transformTrendDataToChartPoints.bind(j()(t)),t.getAreaChartDataTableHeaderLabels=t.getAreaChartDataTableHeaderLabels.bind(j()(t)),t.mapAreaChartDataToTableData=t.mapAreaChartDataToTableData.bind(j()(t)),t}return O()(a,[{key:"transformTrendDataToChartPoints",value:function(e){return e.split(",").map((function(e,t){return{x:t,y:parseFloat(e)}}))}},{key:"getAreaChartDataTableHeaderLabels",value:function(){return[Object(s.__)("Twelve months ago","wordpress-seo"),Object(s.__)("Eleven months ago","wordpress-seo"),Object(s.__)("Ten months ago","wordpress-seo"),Object(s.__)("Nine months ago","wordpress-seo"),Object(s.__)("Eight months ago","wordpress-seo"),Object(s.__)("Seven months ago","wordpress-seo"),Object(s.__)("Six months ago","wordpress-seo"),Object(s.__)("Five months ago","wordpress-seo"),Object(s.__)("Four months ago","wordpress-seo"),Object(s.__)("Three months ago","wordpress-seo"),Object(s.__)("Two months ago","wordpress-seo"),Object(s.__)("Last month","wordpress-seo")]}},{key:"mapAreaChartDataToTableData",value:function(e){return Math.round(100*e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.keyphrase,r=t.relatedKeyphrases,a=t.countryCode,i=t.data,c=t.renderAction,l="https://www.semrush.com/analytics/keywordoverview/?q="+encodeURIComponent(n)+"&db="+encodeURIComponent(a);return i&&!Object(u.isEmpty)(i.results)&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("table",{className:"yoast yoast-table"},Object(o.createElement)("thead",null,Object(o.createElement)("tr",null,Object(o.createElement)("th",{scope:"col",className:"yoast-table--primary"},Object(s.__)("Related keyphrase","wordpress-seo")),Object(o.createElement)("th",{scope:"col",abbr:Object(s.__)("Volume","wordpress-seo")},Object(s.__)("Volume","wordpress-seo"),Object(o.createElement)(K.a,{href:window.wpseoAdminL10n["shortlinks.semrush.volume_help"],className:"dashicons"},Object(o.createElement)("span",{className:"screen-reader-text"},Object(s.__)("Learn more about the related keyphrases volume","wordpress-seo")))),Object(o.createElement)("th",{scope:"col",abbr:Object(s.__)("Trend","wordpress-seo")},Object(s.__)("Trend","wordpress-seo"),Object(o.createElement)(K.a,{href:window.wpseoAdminL10n["shortlinks.semrush.trend_help"],className:"dashicons"},Object(o.createElement)("span",{className:"screen-reader-text"},Object(s.__)("Learn more about the related keyphrases trend","wordpress-seo")))),c&&Object(o.createElement)("td",{className:"yoast-table--nobreak"}))),Object(o.createElement)("tbody",null,i.results.rows.map((function(t,n){var a=t[0],i=e.transformTrendDataToChartPoints(t[2]),u=e.getAreaChartDataTableHeaderLabels();return Object(o.createElement)("tr",{key:n},Object(o.createElement)("td",null,a),Object(o.createElement)("td",null,t[1]),Object(o.createElement)("td",{className:"yoast-table--nopadding"},Object(o.createElement)(M.a,{width:66,height:24,data:i,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:e.mapAreaChartDataToTableData,dataTableCaption:Object(s.__)("Keyphrase volume in the last 12 months on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:u})),c&&Object(o.createElement)("td",{className:"yoast-table--nobreak"},c(a,r)))})))),Object(o.createElement)("p",{style:{marginBottom:0}},Object(o.createElement)(B,{href:l},Object(s.sprintf)(
34
  /* translators: %s expands to Semrush */
35
  Object(s.__)("Get more insights at %s","wordpress-seo"),"Semrush"))))}}]),a}(o.Component);F.propTypes={data:c.a.object,keyphrase:c.a.string,relatedKeyphrases:c.a.array,countryCode:c.a.string,renderAction:c.a.func},F.defaultProps={data:{},keyphrase:"",relatedKeyphrases:[],countryCode:"us",renderAction:null};var W=F,H=Object(p.makeOutboundLink)(),V=function(){return Object(o.createElement)(l.Alert,{type:"info"},Object(s.sprintf)(
36
  /* translators: %s: Expands to "Yoast SEO". */
38
  /* translators: %s: Expands to "Yoast SEO Premium". */
39
  Object(s.__)("Check out %s!","wordpress-seo"),"Yoast SEO Premium")))},z=function(){return Object(o.createElement)(l.Alert,{type:"error"},Object(s.__)("We've encountered a problem trying to get related keyphrases. Please try again later.","wordpress-seo"))},U=function(){return Object(o.createElement)(l.Alert,{type:"warning"},Object(s.sprintf)(
40
  /* translators: %s: Expands to "Yoast SEO". */
41
+ Object(s.__)("You've reached the maximum amount of 4 related keyphrases. You can change or remove related keyphrases in the %s metabox or sidebar.","wordpress-seo"),"Yoast SEO"))},Y=n(23);function G(e){var t=e.response,n=e.lastRequestKeyphrase,r=e.keyphrase,a=e.newRequest,i=e.setCountry,c=e.renderAction,l=e.countryCode,p=e.requestLimitReached,f=e.setRequestFailed,h=e.setNoResultsFound,b=e.relatedKeyphrases,y=e.setRequestSucceeded,v=e.setRequestLimitReached,g=Object(Y.a)().isPremium;return Object(o.createElement)(o.Fragment,null,!p&&Object(o.createElement)(o.Fragment,null,!g&&Object(o.createElement)(V,null),g&&function(e){return e&&e.length>=4}(b)&&Object(o.createElement)(U,null),Object(o.createElement)(D,{countryCode:l,setCountry:i,newRequest:a,keyphrase:r,setRequestFailed:f,setNoResultsFound:h,setRequestSucceeded:y,setRequestLimitReached:v,response:t,lastRequestKeyphrase:n})),function(e){var t=e.isPending,n=e.requestLimitReached,r=e.isSuccess,a=e.response,i=e.requestHasData;return t?Object(o.createElement)(d,null):n?Object(o.createElement)(m,null):!r&&function(e){return!Object(u.isEmpty)(e)&&"error"in e}(a)?Object(o.createElement)(z,null):i?void 0:Object(o.createElement)("p",null,Object(s.__)("Sorry, there's no data available for that keyphrase/country combination.","wordpress-seo"))}(e),Object(o.createElement)(W,{keyphrase:r,relatedKeyphrases:b,countryCode:l,renderAction:c,data:t}))}G.propTypes={keyphrase:c.a.string,relatedKeyphrases:c.a.array,renderAction:c.a.func,requestLimitReached:c.a.bool,countryCode:c.a.string.isRequired,setCountry:c.a.func.isRequired,newRequest:c.a.func.isRequired,setRequestSucceeded:c.a.func.isRequired,setRequestLimitReached:c.a.func.isRequired,setRequestFailed:c.a.func.isRequired,setNoResultsFound:c.a.func.isRequired,response:c.a.object,lastRequestKeyphrase:c.a.string},G.defaultProps={keyphrase:"",relatedKeyphrases:[],renderAction:null,requestLimitReached:!1,response:{},lastRequestKeyphrase:""},t.a=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getFocusKeyphrase,r=t.getSEMrushSelectedCountry,a=t.getSEMrushRequestLimitReached,o=t.getSEMrushRequestResponse,s=t.getSEMrushRequestIsSuccess,i=t.getSEMrushIsRequestPending,c=t.getSEMrushRequestHasData,u=t.getSEMrushRequestKeyphrase;return{keyphrase:n(),countryCode:r(),requestLimitReached:a(),response:o(),isSuccess:s(),isPending:i(),requestHasData:c(),lastRequestKeyphrase:u()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setSEMrushChangeCountry,r=t.setSEMrushNewRequest,a=t.setSEMrushRequestSucceeded,o=t.setSEMrushRequestFailed,s=t.setSEMrushSetRequestLimitReached,i=t.setSEMrushNoResultsFound;return{setCountry:function(e){n(e)},newRequest:function(e,t){r(e,t)},setRequestSucceeded:function(e){a(e)},setRequestFailed:function(e){o(e)},setRequestLimitReached:function(){s()},setNoResultsFound:function(){i()}}}))])(G)},,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var r=n(0),a=n(1),o=n.n(a),s=n(9),i=n.n(s),c=n(10),u=n.n(c),l=n(12),d=n.n(l),p=n(18),f=n.n(p),m=n(19),h=n.n(m),b=n(11),y=n.n(b),v=n(4),g=n(8),O=n(58);var w=function(e){f()(o,e);var t,n,a=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=y()(t);if(n){var a=y()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return h()(this,e)});function o(e){var t;return i()(this,o),(t=a.call(this,e)).hiddenField=document.getElementById(t.props.hiddenField),t.hiddenFieldImageId=document.getElementById(t.props.hiddenFieldImageId),t.state={imageUrl:t.getInitialValue(),imageId:t.getInitialId(),warnings:[]},t.setMyImageUrl=t.setMyImageUrl.bind(d()(t)),t.setMyImageId=t.setMyImageId.bind(d()(t)),t.onClick=t.onClick.bind(d()(t)),t.removeImage=t.removeImage.bind(d()(t)),t.setWarnings=t.setWarnings.bind(d()(t)),t}return u()(o,[{key:"getInitialValue",value:function(){return this.hiddenField.value}},{key:"getInitialId",value:function(){if(null!==this.hiddenFieldImageId)return this.hiddenFieldImageId.value}},{key:"setMyImageUrl",value:function(e){var t=this;this.setState({imageUrl:e},(function(){t.hiddenField.value=e}))}},{key:"setMyImageId",value:function(e){var t=this;this.setState({imageId:e},(function(){t.hiddenFieldImageId.value=e}))}},{key:"onClick",value:function(){var e=this;Object(O.a)((function(t){e.props.hasImageValidation&&e.setWarnings(Object(g.validateFacebookImage)(t)),e.setMyImageUrl(t.url),null!==e.hiddenFieldImageId&&e.setMyImageId(t.id)}))}},{key:"removeImage",value:function(){this.setMyImageUrl(""),null!==this.hiddenFieldImageId&&this.setMyImageId("")}},{key:"setWarnings",value:function(e){this.setState({warnings:e})}},{key:"render",value:function(){return Object(r.createElement)(v.ImageSelect,{label:this.props.label,hasPreview:this.props.hasPreview,imageUrl:this.state.imageUrl,imageId:this.state.imageId,onClick:this.onClick,onRemoveImageClick:this.removeImage,selectImageButtonId:this.props.selectImageButtonId,replaceImageButtonId:this.props.replaceImageButtonId,removeImageButtonId:this.props.removeImageButtonId,hasNewBadge:this.props.hasNewBadge,isDisabled:this.props.isDisabled,hasPremiumBadge:this.props.hasPremiumBadge,warnings:this.state.warnings})}}]),o}(r.Component);w.propTypes={hiddenField:o.a.string.isRequired,hiddenFieldImageId:o.a.string,label:o.a.string,hasPreview:o.a.bool,selectImageButtonId:o.a.string,replaceImageButtonId:o.a.string,removeImageButtonId:o.a.string,hasNewBadge:o.a.bool,isDisabled:o.a.bool,hasPremiumBadge:o.a.bool,hasImageValidation:o.a.bool},w.defaultProps={hiddenFieldImageId:"",label:"",hasPreview:!0,selectImageButtonId:"",replaceImageButtonId:"",removeImageButtonId:"",hasNewBadge:!1,isDisabled:!1,hasPremiumBadge:!1,hasImageValidation:!1};var j=w,k=n(42);function E(e){var t=e.target,n=e.label,a=e.hasPreview,o=e.hiddenField,s=e.hiddenFieldImageId,i=e.selectImageButtonId,c=e.replaceImageButtonId,u=e.removeImageButtonId,l=e.hasNewBadge,d=e.isDisabled,p=e.hasPremiumBadge,f=e.hasImageValidation;return Object(r.createElement)(k.a,{target:t},Object(r.createElement)(j,{label:n,hasPreview:a,hiddenField:o,hiddenFieldImageId:s,selectImageButtonId:i,replaceImageButtonId:c,removeImageButtonId:u,hasNewBadge:l,isDisabled:d,hasPremiumBadge:p,hasImageValidation:f}))}E.propTypes={target:o.a.string.isRequired,label:o.a.string.isRequired,hasPreview:o.a.bool.isRequired,hiddenField:o.a.string.isRequired,hiddenFieldImageId:o.a.string,selectImageButtonId:o.a.string,replaceImageButtonId:o.a.string,removeImageButtonId:o.a.string,hasNewBadge:o.a.bool,isDisabled:o.a.bool,hasPremiumBadge:o.a.bool,hasImageValidation:o.a.bool},E.defaultProps={hiddenFieldImageId:"",selectImageButtonId:"",replaceImageButtonId:"",removeImageButtonId:"",hasNewBadge:!1,isDisabled:!1,hasPremiumBadge:!1,hasImageValidation:!1}},,,,,,function(e,t){e.exports=window.yoast.analysisReport},,,,,,,,,,,function(e,t,n){"use strict";var r=n(6),a=n(20),o=n(9),s=n.n(o),i=n(10),c=n.n(i),u=n(12),l=n.n(u),d=n(18),p=n.n(d),f=n(19),m=n.n(f),h=n(11),b=n.n(h),y=n(0),v=n(1),g=n.n(v),O=n(127),w=n(27),j=n(65);var k=function(e){p()(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=b()(t);if(n){var a=b()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return m()(this,e)});function a(e){var t;s()(this,a);var n=(t=r.call(this,e)).props.results;return t.state={mappedResults:{}},null!==n&&(t.state={mappedResults:Object(j.default)(n,t.props.keywordKey)}),t.handleMarkButtonClick=t.handleMarkButtonClick.bind(l()(t)),t}return c()(a,[{key:"componentDidUpdate",value:function(e){null!==this.props.results&&this.props.results!==e.results&&this.setState({mappedResults:Object(j.default)(this.props.results,this.props.keywordKey)})}},{key:"handleMarkButtonClick",value:function(e,t){var n=this.props.keywordKey.length>0?"".concat(this.props.keywordKey,":").concat(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 w.Paper("",{}),[])}},{key:"render",value:function(){var e=this.state.mappedResults,t=e.errorsResults,n=e.improvementsResults,r=e.goodResults,a=e.considerationsResults,o=e.problemsResults;return Object(y.createElement)(y.Fragment,null,Object(y.createElement)(O.ContentAnalysis,{errorsResults:t,problemsResults:o,improvementsResults:n,considerationsResults:a,goodResults:r,activeMarker:this.props.activeMarker,onMarkButtonClick:this.handleMarkButtonClick,marksButtonClassName:this.props.marksButtonClassName,marksButtonStatus:this.props.marksButtonStatus,headingLevel:3,keywordKey:this.props.keywordKey}))}}]),a}(y.Component);k.propTypes={results:g.a.array,marksButtonClassName:g.a.string,marksButtonStatus:g.a.string,setActiveMarker:g.a.func.isRequired,setMarkerPauseStatus:g.a.func.isRequired,activeMarker:g.a.string,keywordKey:g.a.string},k.defaultProps={results:null,marksButtonStatus:"enabled",marksButtonClassName:"",activeMarker:null,keywordKey:""};var E=k;t.a=Object(a.compose)([Object(r.withSelect)((function(e){return{activeMarker:(0,e("yoast-seo/editor").getActiveMarker)()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor");return{setActiveMarker:t.setActiveMarker,setMarkerPauseStatus:t.setMarkerPauseStatus}}))])(E)},,,,,,,function(e,t,n){"use strict";var r,a,o,s,i=n(34),c=n.n(i),u=n(24),l=n.n(u),d=n(29),p=n.n(d),f=n(0),m=/<(\/)?(\w+)\s*(\/)?>/g;function h(e,t,n,r,a){return{element:e,tokenStart:t,tokenLength:n,prevOffset:r,leadingTextStart:a,children:[]}}function b(){var e=r.length-a;0!==e&&o.push(r.substr(a,e))}function y(e){var t=e.element,n=e.tokenStart,a=e.tokenLength,o=e.prevOffset,i=e.children,c=s[s.length-1],u=r.substr(c.prevOffset,n-c.prevOffset);u&&c.children.push(u),c.children.push(f.cloneElement.apply(void 0,[t,null].concat(l()(i)))),c.prevOffset=o||n+a}function v(e){var t=function(){var e=m.exec(r);if(null===e)return["no-more-tokens"];var t=e.index,n=p()(e,4),a=n[0],o=n[1],s=n[2],i=n[3],c=a.length;return i?["self-closed",s,t,c]:o?["closer",s,t,c]:["opener",s,t,c]}(),n=p()(t,4),i=n[0],c=n[1],u=n[2],d=n[3],v=s.length,g=u>a?a:null;if(!e[c])return b(),!1;switch(i){case"no-more-tokens":if(0!==v){var O=s.pop(),w=O.leadingTextStart,j=O.tokenStart;o.push(r.substr(w,j))}return b(),!1;case"self-closed":return 0===v?(null!==g&&o.push(r.substr(g,u-g)),o.push(e[c]),a=u+d,!0):(y(h(e[c],u,d)),a=u+d,!0);case"opener":return s.push(h(e[c],u,d,u+d,g)),a=u+d,!0;case"closer":if(1===v)return function(e){var t=s.pop(),n=t.element,a=t.leadingTextStart,i=t.prevOffset,c=t.tokenStart,u=t.children,d=e?r.substr(i,e-i):r.substr(i);d&&u.push(d),null!==a&&o.push(r.substr(a,c-a)),o.push(f.cloneElement.apply(void 0,[n,null].concat(l()(u))))}(u),a=u+d,!0;var k=s.pop(),E=r.substr(k.prevOffset,u-k.prevOffset);k.children.push(E),k.prevOffset=u+d;var R=h(k.element,k.tokenStart,k.tokenLength,u+d);return R.children=k.children,y(R),a=u+d,!0;default:return b(),!1}}t.a=function(e,t){if(r=e,a=0,o=[],s=[],m.lastIndex=0,!function(e){var t="object"===c()(e),n=t&&Object.values(e);return t&&n.length&&n.every((function(e){return Object(f.isValidElement)(e)}))}(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(v(t));return f.createElement.apply(void 0,[f.Fragment,null].concat(l()(o)))}},,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"setTextdomainL10n",(function(){return o}));var r=n(2),a=n(3);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wpseoYoastJSL10n",n=Object(a.get)(window,[t,e,"locale_data",e],!1);"yoast-components"===e&&(e="wordpress-seo"),!1===n?Object(r.setLocaleData)({"":{}},e):Object(r.setLocaleData)(n,e)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"doAjaxRequest",(function(){return T}));var a=n(23),o=n(51),s=n(45),i=n(95),c=n(78),u=n(52),l=n(69),d=n(150),p=n(38),f=n.n(p),m=n(0),h=n(1),b=n.n(h),y=n(65),v=n(53),g=n(108),O=n(71),w=n(138),j=n(145),k=n(72),E=n(56),R=n(30),_=n(50),I=n(33);function T(e,t,n,r){return new Promise((function(a,o){jQuery.ajax({type:e,url:t,beforeSend:n?function(e){e.setRequestHeader("X-WP-Nonce",n)}:null,data:r,dataType:"json",success:a,error:o})}))}var x=n(75),S=n(121),P=n(4),C=n(20),L=n(6),A=Object(C.compose)([Object(L.withSelect)((function(e,t){return{isAlertDismissed:(0,e(t.store||"yoast-seo/editor").isAlertDismissed)(t.alertKey)}})),Object(L.withDispatch)((function(e,t){var n=e(t.store||"yoast-seo/editor").dismissAlert;return{onDismissed:function(){return n(t.alertKey)}}}))])(P.Alert),q=n(94);window.yoast=window.yoast||{},window.yoast.editorModules={analysis:{getL10nObject:a.a,getContentLocale:o.a,getIndicatorForScore:s.a,constants:i,refreshAnalysis:c},components:{HelpLink:u.a,TopLevelProviders:l.a,higherorder:{withYoastSidebarPriority:function(e){var t=function(t){t.renderPriority;var n=f()(t,["renderPriority"]);return Object(m.createElement)(e,n)};return t.propTypes={renderPriority:b.a.number},t}},contentAnalysis:{mapResults:y},contexts:{location:{LocationContext:R.LocationContext,LocationProvider:R.LocationProvider,LocationConsumer:R.LocationConsumer}},SidebarItem:I.a,SidebarCollapsible:O.a,MetaboxCollapsible:v.a,Modal:_.a,portals:{ImageSelectPortal:S.a}},containers:{EditorModal:x.a,PersistentDismissableAlert:A,Results:w.a,SEMrushRelatedKeyphrases:g.a,WincherSEOPerformance:q.a},helpers:{ajaxHelper:r,createInterpolateElement:j.a,isBlockEditor:k.a,i18n:d,replacementVariableHelpers:E}}}]);
js/dist/elementor.js CHANGED
@@ -1,12 +1,12 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=204)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.yoast.propTypes},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.lodash},function(e,t){e.exports=window.yoast.componentsNew},function(e,t){e.exports=window.React},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.regeneratorRuntime},function(e,t){e.exports=window.yoast.helpers},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=window.yoast.styledComponents},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},function(e,t){function n(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(a,o){var i=e.apply(t,r);function s(e){n(i,a,o,s,c,"next",e)}function c(e){n(i,a,o,s,c,"throw",e)}s(void 0)}))}}},function(e,t){e.exports=window.yoast.externals.redux},function(e,t,n){var r=n(43);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(34),a=n(12);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t}},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.wp.components},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3);function a(){return Object(r.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}},function(e,t,n){var r=n(67),a=n(68),o=n(69);e.exports=function(e){return r(e)||a(e)||o()}},function(e,t){e.exports=window.yoast.styleGuide},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){e.exports=window.yoast.analysis},function(e,t,n){"use strict";var r=n(3),a={source:"wpseoScriptData.analysis.plugins.replaceVars",scope:[],aliases:[]},o=function(e,t,n){this.placeholder=e,this.replacement=t,this.options=Object(r.defaults)(n,a)};o.prototype.getPlaceholder=function(e){return(e=e||!1)&&this.hasAlias()?this.placeholder+"|"+this.getAliases().join("|"):this.placeholder},o.prototype.setSource=function(e){this.options.source=e},o.prototype.hasScope=function(){return!Object(r.isEmpty)(this.options.scope)},o.prototype.addScope=function(e){this.hasScope()||(this.options.scope=[]),this.options.scope.push(e)},o.prototype.inScope=function(e){return!this.hasScope()||Object(r.indexOf)(this.options.scope,e)>-1},o.prototype.hasAlias=function(){return!Object(r.isEmpty)(this.options.aliases)},o.prototype.addAlias=function(e){this.hasAlias()||(this.options.aliases=[]),this.options.aliases.push(e)},o.prototype.getAliases=function(){return this.options.aliases},t.a=o},function(e,t,n){var r=n(64),a=n(65),o=n(66);e.exports=function(e,t){return r(e)||a(e,t)||o()}},function(e,t){e.exports=window.yoast.externals.contexts},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=s(n(5)),o=s(n(90)),i=s(n(93));function s(e){return e&&e.__esModule?e:{default:e}}var c=void 0;t.default=function(e){var t=e.mixedString,n=e.components,s=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(s)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var l=(0,i.default)(t);try{return function e(t,n){var i,s,l,u,p,d,m,f,h=[],b={};for(d=0;d<t.length;d++)if("string"!==(p=t[d]).type){if(!n.hasOwnProperty(p.value)||void 0===n[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(n[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){i=n[p.value],l=d;break}h.push(n[p.value])}else h.push(p.value);return i&&(u=function(e,t){var n,r,a=t[e],o=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){o++;continue}if("componentClose"===n.type){if(0===o)return r;o--}}throw new Error("Missing closing component token `"+a.value+"`")}(l,t),m=e(t.slice(l+1,u),n),s=a.default.cloneElement(i,{},m),h.push(s),u<t.length-1&&(f=e(t.slice(u+1),n),h=h.concat(f))),1===h.length?h[0]:(h.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,o.default)(b))}(l,n)}catch(e){if(s)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return y})),n.d(t,"e",(function(){return O})),n.d(t,"f",(function(){return j}));var r=n(16),a=n.n(r),o=n(7),i=n.n(o),s=n(36),c=n.n(s),l=n(3);function u(_x){return p.apply(this,arguments)}function p(){return(p=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c()(t);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),!e.t0.error||!e.t0.status){e.next=10;break}return e.abrupt("return",e.t0);case 10:if(!(e.t0 instanceof Response)){e.next=14;break}return e.next=13,e.t0.json();case 13:return e.abrupt("return",e.sent);case 14:return e.abrupt("return",!1);case 15:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function d(e,t,n){return m.apply(this,arguments)}function m(){return(m=a()(i.a.mark((function e(t,n,r){var a,o,s=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=s.length>3&&void 0!==s[3]?s[3]:200,e.prev=1,e.next=4,t();case 4:if(!(o=e.sent)){e.next=9;break}if(o.status!==a){e.next=8;break}return e.abrupt("return",n(o));case 8:return e.abrupt("return",r(o));case 9:return e.abrupt("return",!1);case 12:e.prev=12,e.t0=e.catch(1),console.error(e.t0.message);case 15:case"end":return e.stop()}}),e,null,[[1,12]])})))).apply(this,arguments)}function f(){return h.apply(this,arguments)}function h(){return(h=a()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u({path:"yoast/v1/wincher/authorization-url",method:"GET"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(e){return g.apply(this,arguments)}function g(){return(g=a()(i.a.mark((function e(t){var n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.code,r=t.websiteId,e.next=3,u({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:n,websiteId:r}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(){return w.apply(this,arguments)}function w(){return(w=a()(i.a.mark((function e(){var t,n,r,a=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:null,n=a.length>1&&void 0!==a[1]?a[1]:null,r=a.length>2?a[2]:void 0,e.next=5,u({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:t,permalink:n},signal:r});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e){return v.apply(this,arguments)}function v(){return(v=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(l.isArray)(t)||(t=[t]),e.next=3,u({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:t}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e){return E.apply(this,arguments)}function E(){return(E=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:t}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),i=function(e){var t=e.children;return Object(r.createElement)("div",null,t)};i.propTypes={renderPriority:o.a.number.isRequired,children:o.a.node.isRequired},t.a=i},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},,function(e,t){e.exports=window.wp.apiFetch},,function(e,t,n){var r=n(80);e.exports=function(e,t){if(null==e)return{};var n,a,o=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t){e.exports=window.wp.url},,,,function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";n.r(t),n.d(t,"setTextdomainL10n",(function(){return o})),n.d(t,"setYoastComponentsL10n",(function(){return i})),n.d(t,"setWordPressSeoL10n",(function(){return s}));var r=n(2),a=n(3);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wpseoYoastJSL10n",n=Object(a.get)(window,[t,e,"locale_data",e],!1);"yoast-components"===e&&(e="wordpress-seo"),!1===n?Object(r.setLocaleData)({"":{}},e):Object(r.setLocaleData)(n,e)}function i(){o("yoast-components")}function s(){o("wordpress-seo")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(14),a=n.n(r),o=n(20),i=n(0),s=n(30);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(){return Object(o.createHigherOrderComponent)((function(e){return Object(o.pure)((function(t){var n=Object(i.useContext)(s.LocationContext);return Object(i.createElement)(e,l(l({},t),{},{location:n}))}))}),"withLocation")}},,function(e,t){e.exports=window.yoast.replacementVariableEditor},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(23),a=n(3);function o(){var e=Object(r.a)();return 1===Object(a.get)(e,"keywordAnalysisActive",0)}},function(e,t){e.exports=window.yoast.components},function(e,t,n){"use strict";n.d(t,"b",(function(){return T}));var r=n(26),a=n.n(r),o=n(38),i=n.n(o),s=n(14),c=n.n(s),l=n(9),u=n.n(l),p=n(10),d=n.n(p),m=n(12),f=n.n(m),h=n(18),b=n.n(h),g=n(19),y=n.n(g),w=n(11),O=n.n(w),v=n(0),j=n(1),E=n.n(j);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var T=E.a.shape({value:E.a.string.isRequired,onChange:E.a.func.isRequired});t.a=function(e){return function(t){return function(n){b()(l,n);var r,o,s=(r=l,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=O()(r);if(o){var n=O()(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return y()(this,e)});function l(t){var n;u()(this,l),(n=s.call(this,t)).elements={};var r={};return n.fields=e(t),n.fields.forEach((function(e){var t=e.name,a=e.fieldId,o=document.getElementById(a);o&&(n.elements[t]=o,r[t]={value:o.value,onChange:n.onChange.bind(f()(n),t)})})),n.state=r,n}return d()(l,[{key:"onChange",value:function(e,t){var n=this;this.setState(k(k({},this.state),{},c()({},e,k(k({},this.state[e]),{},{value:t}))),(function(){n.elements[e]&&(n.elements[e].value=t)}))}},{key:"render",value:function(){var e=this.props,n=e.children,r=i()(e,["children"]);return Object(v.createElement)(t,a()({},r,this.state),n)}}],[{key:"propTypes",get:function(){return{children:E.a.node}}}]),l}(v.Component)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return p}));var r=n(26),a=n.n(r),o=n(38),i=n.n(o),s=n(0),c=n(1),l=n.n(c),u=n(21),p="yoast yoast-gutenberg-modal",d=function(e){var t=e.title,n=e.className,r=e.showYoastIcon,o=e.additionalClassName,c=i()(e,["title","className","showYoastIcon","additionalClassName"]),l=r?Object(s.createElement)("span",{className:"yoast-icon"}):null;return Object(s.createElement)(u.Modal,a()({title:t,className:"".concat(n," ").concat(o),icon:l},c),e.children)};d.propTypes={title:l.a.string,className:l.a.string,showYoastIcon:l.a.bool,children:l.a.oneOfType([l.a.node,l.a.arrayOf(l.a.node)]),additionalClassName:l.a.string},d.defaultProps={title:"Yoast SEO",className:p,showYoastIcon:!0,children:null,additionalClassName:""},t.a=d},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=n(23);function o(){var e=Object(a.a)();return Object(r.get)(e,"contentLocale","en_US")}},function(e,t,n){"use strict";var r,a=n(15),o=n.n(a),i=n(25),s=n(8),c=n(13),l=n.n(c),u=Object(s.makeOutboundLink)(l.a.a(r||(r=o()(["\n\tdisplay: inline-block;\n\tposition: relative;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 100%;\n\twidth: 24px;\n\theight: 24px;\n\tmargin: -4px 0;\n\tvertical-align: middle;\n\n\tcolor: ",";\n\t\n\t&:hover,\n\t&:focus {\n\t\tcolor: ",";\t\n\t}\n\t\n\t// Overwrite the default blue active color for links.\n\t&:active {\n\t\tcolor: ",';\t\n\t}\n\n\t&::before {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tpadding: 2px;\n\t\tcontent: "\f223";\n\t}\n'],["\n\tdisplay: inline-block;\n\tposition: relative;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 100%;\n\twidth: 24px;\n\theight: 24px;\n\tmargin: -4px 0;\n\tvertical-align: middle;\n\n\tcolor: ",";\n\t\n\t&:hover,\n\t&:focus {\n\t\tcolor: ",";\t\n\t}\n\t\n\t// Overwrite the default blue active color for links.\n\t&:active {\n\t\tcolor: ",';\t\n\t}\n\n\t&::before {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tpadding: 2px;\n\t\tcontent: "\\f223";\n\t}\n'])),i.colors.$color_help_text,i.colors.$color_snippet_focus,i.colors.$color_help_text));t.a=u},,function(e,t){e.exports=window.yoast.externals.components},,,function(e,t,n){"use strict";var r=n(24),a=n.n(r),o=n(0),i=n(1),s=n.n(i),c=n(2),l=function(e){var t=e.data,n=e.mapChartDataToTableData,r=e.dataTableCaption,a=e.dataTableHeaderLabels,i=e.isDataTableVisuallyHidden;return t.length!==a.length?Object(o.createElement)("p",null,Object(c.__)("The number of headers and header labels don't match.","wordpress-seo")):Object(o.createElement)("div",{className:i?"screen-reader-text":null},Object(o.createElement)("table",null,Object(o.createElement)("caption",null,r),Object(o.createElement)("thead",null,Object(o.createElement)("tr",null,a.map((function(e,t){return Object(o.createElement)("th",{key:t},e)})))),Object(o.createElement)("tbody",null,Object(o.createElement)("tr",null,t.map((function(e,t){return Object(o.createElement)("td",{key:t},n(e.y))}))))))};l.propTypes={data:s.a.arrayOf(s.a.shape({x:s.a.number,y:s.a.number})).isRequired,mapChartDataToTableData:s.a.func,dataTableCaption:s.a.string.isRequired,dataTableHeaderLabels:s.a.array.isRequired,isDataTableVisuallyHidden:s.a.bool},l.defaultProps={mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};var u=l,p=function(e){var t=e.data,n=e.width,r=e.height,i=e.fillColor,s=e.strokeColor,c=e.strokeWidth,l=e.className,p=e.mapChartDataToTableData,d=e.dataTableCaption,m=e.dataTableHeaderLabels,f=e.isDataTableVisuallyHidden,h=Math.max(1,Math.max.apply(Math,a()(t.map((function(e){return e.x}))))),b=Math.max(1,Math.max.apply(Math,a()(t.map((function(e){return e.y}))))),g=r-c,y=t.map((function(e){var t=e.x/h*n,r=g-e.y/b*g+c;return"".concat(t,",").concat(r)})).join(" "),w="0,".concat(g+c," ")+y+" ".concat(n,",").concat(g+c);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("svg",{width:n,height:r,viewBox:"0 0 ".concat(n," ").concat(r),className:l,role:"img","aria-hidden":"true",focusable:"false"},Object(o.createElement)("polygon",{fill:i,points:w}),Object(o.createElement)("polyline",{fill:"none",stroke:s,strokeWidth:c,strokeLinejoin:"round",strokeLinecap:"round",points:y})),p&&Object(o.createElement)(u,{data:t,mapChartDataToTableData:p,dataTableCaption:d,dataTableHeaderLabels:m,isDataTableVisuallyHidden:f}))};p.propTypes={data:s.a.arrayOf(s.a.shape({x:s.a.number,y:s.a.number})).isRequired,width:s.a.number.isRequired,height:s.a.number.isRequired,fillColor:s.a.string,strokeColor:s.a.string,strokeWidth:s.a.number,className:s.a.string,mapChartDataToTableData:s.a.func,dataTableCaption:s.a.string.isRequired,dataTableHeaderLabels:s.a.array.isRequired,isDataTableVisuallyHidden:s.a.bool},p.defaultProps={fillColor:null,strokeColor:"#000000",strokeWidth:1,className:"",mapChartDataToTableData:null,isDataTableVisuallyHidden:!0},t.a=p},,function(e,t,n){"use strict";function r(){}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(23),a=n(3);function o(){var e=Object(r.a)();return 1===Object(a.get)(e,"contentAnalysisActive",0)}},function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},,function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],_n=!0,r=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(_n=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,a=e}finally{try{_n||null==i.return||i.return()}finally{if(r)throw a}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),i=n(13),s=n(30),c=function(e){var t=e.theme,n=e.location,a=e.children;return Object(r.createElement)(s.LocationProvider,{value:n},Object(r.createElement)(i.ThemeProvider,{theme:t},a))};c.propTypes={theme:o.a.object.isRequired,location:o.a.oneOf(["sidebar","metabox","modal"]).isRequired,children:o.a.element.isRequired},t.a=c},function(e,t){e.exports=window.moment},function(e,t,n){"use strict";var r=n(29),a=n.n(r),o=n(0),i=n(4),s=n(1),c=n.n(s),l=function(e){var t=Object(o.useState)(!1),n=a()(t,2),r=n[0],s=n[1],c=e.prefixIcon;return Object(o.createElement)("div",{className:"yoast components-panel__body ".concat(r?"is-opened":"")},Object(o.createElement)("h2",{className:"components-panel__body-title"},Object(o.createElement)("button",{onClick:function(){s(!r)},className:"components-button components-panel__body-toggle"},Object(o.createElement)("span",{className:"yoast-icon-span",style:{fill:"".concat(c&&c.color||"")}},c&&Object(o.createElement)(i.SvgIcon,{icon:c.icon,color:c.color,size:c.size})),Object(o.createElement)("span",{className:"yoast-title-container"},Object(o.createElement)("div",{className:"yoast-title"},e.title),Object(o.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),Object(o.createElement)("span",{className:"yoast-chevron","aria-hidden":"true"}))),r&&e.children)};t.a=l,l.propTypes={title:c.a.string.isRequired,children:c.a.oneOfType([c.a.node,c.a.arrayOf(c.a.node)]).isRequired,prefixIcon:c.a.object,subTitle:c.a.string},l.defaultProps={prefixIcon:null,subTitle:""}},,,function(e,t){e.exports=window.yoast.featureFlag},function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(81);t.a=Object(r.compose)([Object(a.withSelect)((function(e,t){var n=e("yoast-seo/editor"),r=n.getPostOrPageString,a=n.getIsModalOpen;return{postTypeName:r(),isOpen:a(t.id)}})),Object(a.withDispatch)((function(e,t){var n=e("yoast-seo/editor"),r=n.openEditorModal;return{open:function(){return r(t.id)},close:n.closeEditorModal}}))])(o.a)},function(e,t,n){"use strict";n.d(t,"b",(function(){return _}));var r=n(14),a=n.n(r),o=n(9),i=n.n(o),s=n(10),c=n.n(s),l=n(12),u=n.n(l),p=n(18),d=n.n(p),m=n(19),f=n.n(m),h=n(11),b=n.n(h),g=n(0),y=n(2),w=n(4),O=n(1),v=n.n(O),j=n(50);var E=function(e){d()(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=b()(t);if(n){var a=b()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return f()(this,e)});function o(e){var t;return i()(this,o),(t=r.call(this,e)).initialPageType=e.pageType.value,t.initialArticleType=e.articleType?e.articleType.value:"None",t.state={schema_page_type:t.initialPageType,schema_article_type:t.initialArticleType},t.handleOptionFocus=t.handleOptionFocus.bind(u()(t)),t}return c()(o,[{key:"shouldShowAlert",value:function(){return this.state.schema_page_type!==this.initialPageType||this.state.schema_article_type!==this.initialArticleType}},{key:"handleOptionFocus",value:function(e,t){this.setState(a()({},e,t))}},{key:"render",value:function(){return Object(g.createElement)(g.Fragment,null,Object(g.createElement)(w.FieldGroup,{label:Object(y.__)("Schema settings","wordpress-seo"),linkTo:"https://yoa.st/404",linkText:Object(y.__)("Learn more about the schema settings","wordpress-seo"),description:Object(y.sprintf)(
2
  /* translators: %1$s expands to an indexable object's name, e.g. Posts or Pages. */
3
  Object(y.__)("Choose how your %1$s should be described by default in your site's schema.org markup. You can change these settings for individual %1$s.","wordpress-seo"),this.props.postTypeName)}),this.shouldShowAlert()&&Object(g.createElement)(w.Alert,{type:"warning"},Object(y.sprintf)(
4
  /* translators: %1$s expands to an indexable object's name, e.g. Posts or Pages. */
5
- Object(y._n)("Upon saving, this setting will apply to all of your %1$s. %1$s that are manually configured will be left untouched.","Upon saving, these settings will apply to all of your %1$s. %1$s that are manually configured will be left untouched.",this.props.articleType?2:1,"wordpress-seo"),this.props.postTypeName)),Object(g.createElement)(w.Select,{id:"schema-page-type-".concat(this.props.postType),name:"schema_page_type",options:this.props.pageTypeOptions,label:Object(y.__)("Default Page type","wordpress-seo"),onChange:this.props.pageType.onChange,selected:this.props.pageType.value,onOptionFocus:this.handleOptionFocus}),this.props.articleType&&Object(g.createElement)(w.Select,{id:"schema-article-type-".concat(this.props.postType),name:"schema_article_type",options:this.props.articleTypeOptions,label:Object(y.__)("Default Article type","wordpress-seo"),onChange:this.props.articleType.onChange,onOptionFocus:this.handleOptionFocus,selected:this.props.articleType.value}))}}]),o}(g.Component),_=v.a.arrayOf(v.a.shape({name:v.a.string,value:v.a.string}));E.propTypes={postType:v.a.string.isRequired,postTypeName:v.a.string.isRequired,pageType:j.b.isRequired,articleType:j.b,pageTypeOptions:_.isRequired,articleTypeOptions:_.isRequired},E.defaultProps={articleType:null},t.a=Object(j.a)((function(e){return[{name:"pageType",fieldId:e.pageTypeFieldId},{name:"articleType",fieldId:e.articleTypeFieldId}]}))(E)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(9),a=n.n(r),o=n(10),i=n.n(o),s=function(){function e(){a()(this,e)}return i()(e,null,[{key:"articleTypeInput",get:function(){return document.getElementById("yoast_wpseo_schema_article_type")}},{key:"defaultArticleType",get:function(){return e.articleTypeInput.getAttribute("data-default")}},{key:"articleType",get:function(){return e.articleTypeInput.value},set:function(t){e.articleTypeInput.value=t}},{key:"pageTypeInput",get:function(){return document.getElementById("yoast_wpseo_schema_page_type")}},{key:"defaultPageType",get:function(){return e.pageTypeInput.getAttribute("data-default")}},{key:"pageType",get:function(){return e.pageTypeInput.value},set:function(t){e.pageTypeInput.value=t}}]),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"sortResultsByIdentifier",(function(){return s})),n.d(t,"default",(function(){return c})),n.d(t,"initializationDone",(function(){return l}));var r=n(17),a=n(60),o=n(49),i=!1;function s(e){return e.sort((function(e,t){return e._identifier.localeCompare(t._identifier)}))}function c(e,t,n,c,l){var u=t();i&&e.analyze(u).then((function(e){var t=e.result,a=t.seo,i=t.readability;if(a){var p=a[""];p.results.forEach((function(e){e.getMarker=function(){return function(){return n(u,e.marks)}}})),p.results=s(p.results),c.dispatch(r.actions.setSeoResultsForKeyword(u.getKeyword(),p.results)),c.dispatch(Object(o.setOverallSeoScore)(p.score,u.getKeyword())),c.dispatch(r.actions.refreshSnippetEditor()),l.saveScores(p.score,u.getKeyword())}i&&(i.results.forEach((function(e){e.getMarker=function(){return function(){return n(u,e.marks)}}})),i.results=s(i.results),c.dispatch(r.actions.setReadabilityResults(i.results)),c.dispatch(Object(o.setOverallReadabilityScore)(i.score)),c.dispatch(r.actions.refreshSnippetEditor()),l.saveContentScore(i.score))})).catch(a.a)}function l(){i=!0}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}},function(e,t,n){"use strict";n.d(t,"b",(function(){return p}));var r=n(0),a=n(2),o=n(51),i=n(1),s=n.n(i),c=n(3),l=n(82),u=n(30),p=function(e){var t=!0;if("blur"===e.type){var n=e.relatedTarget;if(n){var r=["media-modal","wp-core-ui"];t=Object(c.intersection)(r,Array.from(n.classList)).length!==r.length}}return t},d=function(e){var t=e.id,n=e.postTypeName,i=e.children,s=e.title,c=e.isOpen,d=e.close,m=e.open,f=Object(r.useCallback)((function(e){p(e)&&d()}),[d]);return Object(r.createElement)(r.Fragment,null,c&&Object(r.createElement)(u.LocationProvider,{value:"modal"},Object(r.createElement)(o.a,{title:s,onRequestClose:f,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal"},Object(r.createElement)("div",{className:"yoast-content-container"},Object(r.createElement)("div",{className:"yoast-modal-content"},i)),Object(r.createElement)("div",{className:"yoast-notice-container"},Object(r.createElement)("hr",null),Object(r.createElement)("div",{className:"yoast-button-container"},Object(r.createElement)("p",null,
6
  /* Translators: %s translates to the Post Label in singular form */
7
  Object(a.sprintf)(Object(a.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),n)),Object(r.createElement)("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:f},
8
  /* Translators: %s translates to the Post Label in singular form */
9
- Object(a.sprintf)(Object(a.__)("Return to your %s","wordpress-seo"),n)))))),Object(r.createElement)(l.a,{id:t+"-open-button",title:s,suffixIcon:{size:"20px",icon:"pencil-square"},onClick:m}))};d.propTypes={id:s.a.string.isRequired,postTypeName:s.a.string.isRequired,children:s.a.oneOfType([s.a.node,s.a.arrayOf(s.a.node)]).isRequired,title:s.a.string.isRequired,isOpen:s.a.bool.isRequired,open:s.a.func.isRequired,close:s.a.func.isRequired},t.a=d},function(e,t,n){"use strict";var r=n(0),a=n(4),o=n(1),i=n.n(o),s=function(e){return Object(r.createElement)("div",{className:"yoast components-panel__body"},Object(r.createElement)("h2",{className:"components-panel__body-title"},Object(r.createElement)("button",{id:e.id,onClick:e.onClick,className:"components-button components-panel__body-toggle"},e.prefixIcon&&Object(r.createElement)("span",{className:"yoast-icon-span",style:{fill:"".concat(e.prefixIcon&&e.prefixIcon.color||"")}},Object(r.createElement)(a.SvgIcon,{size:e.prefixIcon.size,icon:e.prefixIcon.icon})),Object(r.createElement)("span",{className:"yoast-title-container"},Object(r.createElement)("div",{className:"yoast-title"},e.title),Object(r.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),e.suffixIcon&&Object(r.createElement)(a.SvgIcon,{size:e.suffixIcon.size,icon:e.suffixIcon.icon}))))};t.a=s,s.propTypes={onClick:i.a.func.isRequired,title:i.a.string.isRequired,id:i.a.string,subTitle:i.a.string,suffixIcon:i.a.object,prefixIcon:i.a.object},s.defaultProps={id:"",suffixIcon:null,prefixIcon:null,subTitle:""}},function(e,t,n){"use strict";function r(e){var t,n=document.getElementById("yoast-measurement-element");return n||((t=document.createElement("div")).id="yoast-measurement-element",t.style.position="absolute",t.style.left="-9999em",t.style.top=0,t.style.height=0,t.style.overflow="hidden",t.style.fontFamily="arial, sans-serif",t.style.fontSize="18px",t.style.fontWeight="400",document.body.appendChild(t),n=t),n.innerHTML=e,n.offsetWidth}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return y}));var r=n(0),a=n(1),o=n.n(a),i=n(2),s=n(3),c=n(71),l=n.n(c),u=n(4),p=n(8),d=n(58),m=function(){return Object(r.createElement)("p",{className:"yoast-wincher-seo-performance-modal__loading-message"},Object(i.__)("Tracking the ranking position...","wordpress-seo")," ",Object(r.createElement)(u.SvgIcon,{icon:"loading-spinner"}))},f=Object(p.makeOutboundLink)();function h(e){return Math.round(100*e)}function b(e){var t=e.chartData;if(Object(s.isEmpty)(t)||Object(s.isEmpty)(t.position))return"?";var n=function(e){return Array.from({length:e.position.history.length},(function(e,t){return t+1})).map((function(e){
10
  /* translators: %d expands to the amount of days */
11
  return Object(i.sprintf)(Object(i._n)("%d day","%d days",e,"wordpress-seo"),e)}))}(t),a=t.position.history.map((function(e,t){return{x:t,y:101-e.value}}));return Object(r.createElement)(d.a,{width:66,height:24,data:a,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:h,dataTableCaption:Object(i.__)("Keyphrase position in the last 90 days on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:n})}function g(e){return!e||!e.position||e.position.value>100?"> 100":e.position.value}function y(e){var t=e.keyphrase,n=e.rowData,a=e.onTrackKeyphrase,o=e.onUntrackKeyphrase,c=e.isFocusKeyphrase,p=e.isDisabled,d=e.isLoading,h=!Object(s.isEmpty)(n),y=Object(r.useCallback)((function(){p||(h?o(t,n.id):a(t))}),[t,a,o,h,n,p]);return Object(r.createElement)("tr",null,Object(r.createElement)("td",{className:"yoast-table--nopadding"},function(e){var t=e.keyphrase,n=e.isEnabled,a=e.toggleAction;return e.isLoading?Object(r.createElement)(u.SvgIcon,{icon:"loading-spinner"}):Object(r.createElement)(u.Toggle,{id:"toggle-keyphrase-tracking-".concat(t),className:"wincher-toggle",isEnabled:n,onSetToggleState:a,showToggleStateLabel:!1})}({keyphrase:t,isEnabled:h,toggleAction:y,isLoading:d})),Object(r.createElement)("td",null,t,c&&Object(r.createElement)("span",null,"*")),function(e){var t=e.rowData,n=e.websiteId,a=!Object(s.isEmpty)(t),o=t&&t.updated_at&&l()(t.updated_at)>=l()().subtract(7,"days"),c=t?Object(i.sprintf)("https://app.wincher.com/websites/%s/keywords?serp=%s&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast",n,t.id):null;return a?o?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",null,g(t)),Object(r.createElement)("td",{className:"yoast-table--nopadding"},Object(r.createElement)(b,{chartData:t})),Object(r.createElement)("td",{className:"yoast-table--nobreak"},Object(r.createElement)(f,{href:c},Object(i.__)("View","wordpress-seo")))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},Object(r.createElement)(m,null))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",null,"?"),Object(r.createElement)("td",{className:"yoast-table--nopadding"},"?"),Object(r.createElement)("td",{className:"yoast-table--nobreak"}))}(e))}b.propTypes={chartData:o.a.object},b.defaultProps={chartData:{}},y.propTypes={rowData:o.a.object,keyphrase:o.a.string.isRequired,onTrackKeyphrase:o.a.func,onUntrackKeyphrase:o.a.func,isFocusKeyphrase:o.a.bool,isDisabled:o.a.bool,isLoading:o.a.bool,websiteId:o.a.string},y.defaultProps={rowData:{},onTrackKeyphrase:function(){},onUntrackKeyphrase:function(){},isFocusKeyphrase:!1,isDisabled:!1,isLoading:!1,websiteId:""}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(16),a=n.n(r),o=n(9),i=n.n(o),s=n(10),c=n.n(s),l=n(7),u=n.n(l),p=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i()(this,e),this.url=t,this.origin=new URL(t).origin,this.eventHandlers=Object.assign({success:{type:"",callback:function(){}},error:{type:"",callback:function(){}}},n),this.options=Object.assign({height:570,width:340,title:""},r),this.popup=null,this.createPopup=this.createPopup.bind(this),this.messageHandler=this.messageHandler.bind(this),this.getPopup=this.getPopup.bind(this)}var t;return c()(e,[{key:"createPopup",value:function(){var e=this.options,t=e.height,n=e.width,r=e.title,a=["top="+(window.top.outerHeight/2+window.top.screenY-t/2),"left="+(window.top.outerWidth/2+window.top.screenX-n/2),"width="+n,"height="+t,"resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(this.url,r,a.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}},{key:"messageHandler",value:(t=a()(u.a.mark((function e(t){var n,r;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.data,r=t.source,t.origin===this.origin&&this.popup===r){e.next=3;break}return e.abrupt("return");case 3:if(n.type!==this.eventHandlers.success.type){e.next=8;break}return this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),e.next=8,this.eventHandlers.success.callback(n);case 8:if(n.type!==this.eventHandlers.error.type){e.next=13;break}return this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),e.next=13,this.eventHandlers.error.callback(n);case 13:case"end":return e.stop()}}),e,this)}))),function(_x){return t.apply(this,arguments)})},{key:"getPopup",value:function(){return this.popup}},{key:"isClosed",value:function(){return!this.popup||this.popup.closed}},{key:"focus",value:function(){this.isClosed()||this.popup.focus()}}]),e}()},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),i=n(2),s=n(31),c=n.n(s),l=n(4),u=function(e){var t=Object(i.sprintf)(
12
  /* translators: %s expands to a link to open the Wincher login popup. */
@@ -16,7 +16,7 @@ Object(i.__)("reconnect to %s","wordpress-seo"),"Wincher"))}}))};u.propTypes={on
16
  /* Translators: %s expands to the social medium name, which is either Twitter or Facebook. %s expands to Yoast SEO Premium */
17
  Object(k.__)("Want to see how your content will look when it’s shared on %s?","wordpress-seo"),e.socialMediumName),n=Object(k.sprintf)(
18
  /* Translators: %s expands to Yoast SEO Premium */
19
- Object(k.__)("Get %s to unlock social previews!","wordpress-seo"),"Yoast SEO Premium");return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(S,{type:"info"},_()({mixedString:t,components:{strong:Object(b.createElement)("b",null)}}),Object(b.createElement)("br",null),Object(b.createElement)(x,{href:wpseoAdminL10n["shortlinks.upsell.social_previews"]},Object(b.createElement)("p",null,n))))};C.propTypes={socialMediumName:y.a.oneOf(["Twitter","Facebook"]).isRequired};var P=C,D=n(126),A=n(47);var L=function(e){p()(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=h()(t);if(n){var a=h()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return m()(this,e)});function a(e){var t;return o()(this,a),(t=r.call(this,e)).state={activeField:"",hoveredField:""},t.setHoveredField=t.setHoveredField.bind(l()(t)),t.setActiveField=t.setActiveField.bind(l()(t)),t.setEditorRef=t.setEditorRef.bind(l()(t)),t.setEditorFocus=t.setEditorFocus.bind(l()(t)),t}return s()(a,[{key:"setHoveredField",value:function(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}},{key:"setActiveField",value:function(e){var t=this;e!==this.state.activeField&&this.setState({activeField:e},(function(){return t.setEditorFocus(e)}))}},{key:"setEditorFocus",value:function(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}},{key:"setEditorRef",value:function(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}},{key:"render",value:function(){var e=this.props,t=e.onDescriptionChange,n=e.onTitleChange,r=e.onSelectImageClick,a=e.onRemoveImageClick,o=e.socialMediumName,i=e.imageWarnings,s=e.description,c=e.descriptionInputPlaceholder,l=e.imageUrl,u=e.title,p=e.titleInputPlaceholder,d=e.replacementVariables,m=e.recommendedReplacementVariables,f=e.isPremium,h=e.location;return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(P,{socialMediumName:o}),Object(b.createElement)(D.SocialMetadataPreviewForm,{onDescriptionChange:t,socialMediumName:o,title:u,titleInputPlaceholder:p,onRemoveImageClick:a,imageSelected:!!l,imageUrl:l,onTitleChange:n,onSelectImageClick:r,description:s,descriptionInputPlaceholder:c,imageWarnings:i,replacementVariables:d,recommendedReplacementVariables:m,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:f,setEditorRef:this.setEditorRef,idSuffix:h}))}}]),a}(b.Component);L.propTypes={title:y.a.string.isRequired,onTitleChange:y.a.func.isRequired,description:y.a.string.isRequired,onDescriptionChange:y.a.func.isRequired,imageUrl:y.a.string.isRequired,onSelectImageClick:y.a.func.isRequired,onRemoveImageClick:y.a.func.isRequired,socialMediumName:y.a.string.isRequired,isPremium:y.a.bool,imageWarnings:y.a.array,descriptionInputPlaceholder:y.a.string,titleInputPlaceholder:y.a.string,replacementVariables:A.replacementVariablesShape,recommendedReplacementVariables:A.recommendedReplacementVariablesShape,location:y.a.string},L.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",location:""},t.a=L},function(e,t,n){"use strict";var r=n(5),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(62),i=n(91),s=n(92),c="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}var u=/\/+/g;function p(e){return(""+e).replace(u,"$&/")}var d,m,f=h,h=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)};function b(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function g(e,t,n){var a,i,s=e.result,c=e.keyPrefix,l=e.func,u=e.context,d=l.call(u,t,e.count++);Array.isArray(d)?y(d,s,n,o.thatReturnsArgument):null!=d&&(r.isValidElement(d)&&(a=d,i=c+(!d.key||t&&t.key===d.key?"":p(d.key)+"/")+n,d=r.cloneElement(a,{key:i},void 0!==a.props?a.props.children:void 0)),s.push(d))}function y(e,t,n,r,o){var s="";null!=n&&(s=p(n)+"/");var u=b.getPooled(t,s,r,o);!function(e,t,n){null==e||function e(t,n,r,o){var s,u=typeof t;if("undefined"!==u&&"boolean"!==u||(t=null),null===t||"string"===u||"number"===u||"object"===u&&t.$$typeof===a)return r(o,t,""===n?"."+l(t,0):n),1;var p=0,d=""===n?".":n+":";if(Array.isArray(t))for(var m=0;m<t.length;m++)p+=e(s=t[m],d+l(s,m),r,o);else{var f=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(f)for(var h,b=f.call(t),g=0;!(h=b.next()).done;)p+=e(s=h.value,d+l(s,g++),r,o);else if("object"===u){var y=""+t;i(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===y?"object with keys {"+Object.keys(t).join(", ")+"}":y,"")}}return p}(e,"",t,n)}(e,g,u),b.release(u)}b.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){if(this.instancePool.length){var a=this.instancePool.pop();return this.call(a,e,t,n,r),a}return new this(e,t,n,r)},(m=b).instancePool=[],m.getPooled=d||f,m.poolSize||(m.poolSize=10),m.release=function(e){i(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)},e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return s(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return s(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;i(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)y(e[n],t,n,o.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,o,i,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,a,o,i,s],u=0;(c=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(62);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t,n){"use strict";var r=n(0),a=n(2),o=n(31),i=n.n(o),s=n(8),c=Object(s.makeOutboundLink)(),l=Object(s.makeOutboundLink)();t.a=function(){var e=Object(a.sprintf)(Object(a.__)(
20
  /* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */
21
  "With %1$s you can track the ranking position of your page in the search results based on your keyphrase(s). %2$s","wordpress-seo"),"{{wincherLink/}}","{{wincherReadMoreLink/}}");return Object(r.createElement)("p",null,i()({mixedString:e,components:{wincherLink:Object(r.createElement)(c,{href:wpseoAdminGlobalL10n["links.wincher.website"]},"Wincher"),wincherReadMoreLink:Object(r.createElement)(l,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"]},Object(a.__)("Read more about keyphrase tracking with Wincher","wordpress-seo"))}}))}},function(e,t,n){"use strict";var r=n(6),a=n(20),o=n(26),i=n.n(o),s=n(15),c=n.n(s),l=n(16),u=n.n(l),p=n(0),d=n(7),m=n.n(d),f=n(2),h=n(1),b=n.n(h),g=n(3),y=n(13),w=n.n(y),O=n(4),v=n(8),j=n(31),E=n.n(j),_=Object(v.makeOutboundLink)(),k=function(e){var t=Object(f.sprintf)(
22
  /* translators: %d expands to the amount of allowed keyphrases on a free account, %s expands to a link to Wincher plans. */
@@ -26,11 +26,11 @@ Object(f.__)("upgrade your %s plan","wordpress-seo"),"Wincher"))}}))};k.propType
26
  /* translators: %s: Expands to "Wincher". */
27
  Object(f.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher"))},D=function(){return Object(p.createElement)(O.Alert,{type:"info"},Object(f.sprintf)(
28
  /* translators: %s: Expands to "Wincher". */
29
- Object(f.__)("%s is currently tracking the ranking position(s) of your page. This may take a few minutes. Please wait or check back later.","wordpress-seo"),"Wincher"))},A=n(24),L=n.n(A),q=n(29),I=n.n(q),F=n(84),N=n(32),M=Object(v.makeOutboundLink)(),K=w.a.span(T||(T=c()(["\n\tdisplay: block;\n\tfont-style: italic;\n\n\t@media (min-width: 782px) {\n\t\tdisplay: inline;\n\t\tposition: absolute;\n\t\t",": 8px;\n\t}\n"])),Object(v.getDirectionalStyle)("right","left")),W=w.a.th(R||(R=c()(["\n\tmin-width: 60px;\n"]))),U=w.a.div(S||(S=c()(["\n\twidth: 100%;\n\toverflow-y: auto;\n"]))),B=function(e){var t=Object(p.useRef)();return Object(p.useEffect)((function(){t.current=e})),t.current},V=Object(g.debounce)(N.c,500,{leading:!0}),H=function(e){var t=e.addTrackedKeyphrase,n=e.isLoggedIn,r=e.keyphrases,a=e.permalink,o=e.removeTrackedKeyphrase,i=e.setKeyphraseLimitReached,s=e.setRequestFailed,c=e.setRequestSucceeded,l=e.setTrackedKeyphrases,d=e.setHasTrackedAll,h=e.trackAll,b=e.trackedKeyphrases,y=e.isNewlyAuthenticated,w=e.websiteId,O=e.focusKeyphrase,v=e.newRequest,j=Object(p.useRef)(),E=Object(p.useRef)(),_=Object(p.useRef)(!1),k=Object(p.useState)([]),T=I()(k,2),R=T[0],S=T[1],x=Object(p.useCallback)((function(e){var t=e.toLowerCase();return b&&!Object(g.isEmpty)(b)&&b.hasOwnProperty(t)?b[t]:null}),[b]),C=Object(p.useMemo)((function(){return u()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(N.d)((function(){return E.current&&E.current.abort(),E.current="undefined"==typeof AbortController?null:new AbortController,V(r,a,E.current.signal)}),(function(e){c(e),l(e.results)}),(function(e){s(e)}));case 2:case"end":return e.stop()}}),e)})))}),[c,s,l,r,a]),P=Object(p.useCallback)(function(){var e=u()(m.a.mark((function e(n){var r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(Array.isArray(n)?n:[n]).map((function(e){return e.toLowerCase()})),S((function(e){return[].concat(L()(e),L()(r))})),e.next=4,Object(N.d)((function(){return Object(N.e)(r)}),(function(e){c(e),t(e.results),C()}),(function(e){400===e.status&&e.limit&&i(e.limit),s(e)}),201);case 4:S((function(e){return g.without.apply(void 0,[e].concat(L()(r)))}));case 5:case"end":return e.stop()}}),e)})));return function(_x){return e.apply(this,arguments)}}(),[c,s,i,t,C]),D=Object(p.useCallback)(function(){var e=u()(m.a.mark((function e(t,n){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=t.toLowerCase(),S((function(e){return[].concat(L()(e),[t])})),e.next=4,Object(N.d)((function(){return Object(N.f)(n)}),(function(e){c(e),o(t)}),(function(e){s(e)}));case 4:S((function(e){return Object(g.without)(e,t)}));case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[c,o,s]),A=Object(p.useCallback)(function(){var e=u()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return v(),e.next=3,P(t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[v,P]),q=B(a),H=B(r);Object(p.useEffect)((function(){n&&a&&(a!==q||Object(g.difference)(r,H).length)&&C()}),[n,a,q,r,H,C]),Object(p.useEffect)((function(){if(n&&h&&null!==b){var e=r.filter((function(e){return!x(e)}));e.length&&P(e),d()}}),[n,h,b,P,d,x,r]),Object(p.useEffect)((function(){y&&!_.current&&(C(),_.current=!0)}),[y,C]),Object(p.useEffect)((function(){if(n&&!Object(g.isEmpty)(b))return Object(g.filter)(b,(function(e){return Object(g.isEmpty)(e.updated_at)})).length>0&&(j.current=setInterval((function(){C()}),1e4)),function(){clearInterval(j.current)}}),[n,b,C]);var Y=n&&null===b;return r&&!Object(g.isEmpty)(r)&&Object(p.createElement)(p.Fragment,null,Object(p.createElement)(U,null,Object(p.createElement)("table",{className:"yoast yoast-table"},Object(p.createElement)("thead",null,Object(p.createElement)("tr",null,Object(p.createElement)("th",{scope:"col",abbr:Object(f.__)("Tracking","wordpress-seo")},Object(f.__)("Tracking","wordpress-seo")),Object(p.createElement)("th",{scope:"col",abbr:Object(f.__)("Keyphrase","wordpress-seo")},Object(f.__)("Keyphrase","wordpress-seo")),Object(p.createElement)("th",{scope:"col",abbr:Object(f.__)("Position","wordpress-seo")},Object(f.__)("Position","wordpress-seo")),Object(p.createElement)("th",{scope:"col",abbr:Object(f.__)("Position over time","wordpress-seo")},Object(f.__)("Position over time","wordpress-seo")),Object(p.createElement)(W,{className:"yoast-table--nobreak"}))),Object(p.createElement)("tbody",null,r.map((function(e,t){return Object(p.createElement)(F.b,{key:"trackable-keyphrase-".concat(t),keyphrase:e,onTrackKeyphrase:A,onUntrackKeyphrase:D,rowData:x(e),isFocusKeyphrase:e===O.trim(),websiteId:w,isDisabled:!n,isLoading:Y||R.indexOf(e.toLowerCase())>=0})}))))),Object(p.createElement)("p",{style:{marginBottom:0,position:"relative"}},Object(p.createElement)(M,{href:wpseoAdminGlobalL10n["links.wincher.login"]},Object(f.sprintf)(
30
  /* translators: %s expands to Wincher */
31
- Object(f.__)("Get more insights over at %s","wordpress-seo"),"Wincher")),Object(p.createElement)(K,null,Object(f.__)("* focus keyphrase","wordpress-seo"))))};H.propTypes={addTrackedKeyphrase:b.a.func.isRequired,isLoggedIn:b.a.bool,isNewlyAuthenticated:b.a.bool,keyphrases:b.a.array,newRequest:b.a.func.isRequired,removeTrackedKeyphrase:b.a.func.isRequired,setRequestFailed:b.a.func.isRequired,setKeyphraseLimitReached:b.a.func.isRequired,setRequestSucceeded:b.a.func.isRequired,setTrackedKeyphrases:b.a.func.isRequired,setHasTrackedAll:b.a.func.isRequired,trackAll:b.a.bool,trackedKeyphrases:b.a.object,websiteId:b.a.string,permalink:b.a.string.isRequired,focusKeyphrase:b.a.string},H.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],trackAll:!1,trackedKeyphrases:null,websiteId:"",focusKeyphrase:""};var Y,z,$,G=H,Z=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getWincherWebsiteId,r=t.getWincherTrackedKeyphrases,a=t.getWincherTrackableKeyphrases,o=t.getWincherLoginStatus,i=t.getWincherPermalink,s=t.getFocusKeyphrase,c=t.isWincherNewlyAuthenticated,l=t.shouldWincherTrackAll;return{focusKeyphrase:s(),keyphrases:a(),trackedKeyphrases:r(),isLoggedIn:o(),trackAll:l(),websiteId:n(),isNewlyAuthenticated:c(),permalink:i()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setWincherNewRequest,r=t.setWincherRequestSucceeded,a=t.setWincherRequestFailed,o=t.setWincherSetKeyphraseLimitReached,i=t.setWincherTrackedKeyphrases,s=t.setWincherTrackingForKeyphrase,c=t.setWincherTrackAllKeyphrases,l=t.unsetWincherTrackingForKeyphrase;return{newRequest:function(){n()},setRequestSucceeded:function(e){r(e)},setRequestFailed:function(e){a(e)},setKeyphraseLimitReached:function(e){o(e)},addTrackedKeyphrase:function(e){s(e)},removeTrackedKeyphrase:function(e){l(e)},setTrackedKeyphrases:function(e){i(e)},setHasTrackedAll:function(){c(!1)}}}))])(G),Q=n(94),J=function(){return Object(p.createElement)(O.Alert,{type:"error"},Object(f.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo"))},X=function(){return Object(p.createElement)(O.Alert,{type:"info"},Object(f.sprintf)(
32
  /* translators: %s: Expands to "Wincher". */
33
- Object(f.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher"))},ee=n(86),te=n(87),ne=function(){return Object(p.createElement)(O.Alert,{type:"error"},Object(f.__)("Before you can track your SEO performance make sure to set either the post’s title and save it as a draft or manually set the post’s slug.","wordpress-seo"))},re=function(e){var t=e.response,n=e.onLogin;return 403===t.status||404===t.status?Object(p.createElement)(te.a,{onReconnect:n}):Object(p.createElement)(C,null)};re.propTypes={response:b.a.object.isRequired,onLogin:b.a.func.isRequired};var ae=function(e){var t=e.isSuccess,n=e.response,r=e.allKeyphrasesMissRanking,a=e.onLogin,o=e.keyphraseLimitReached,i=e.limit;return o?Object(p.createElement)(x,{limit:i}):Object(g.isEmpty)(n)||t?r?Object(p.createElement)(D,null):null:Object(p.createElement)(re,{response:n,onLogin:a})};ae.propTypes={isSuccess:b.a.bool.isRequired,allKeyphrasesMissRanking:b.a.bool.isRequired,response:b.a.object,onLogin:b.a.func.isRequired,keyphraseLimitReached:b.a.bool.isRequired,limit:b.a.number.isRequired},ae.defaultProps={response:{}};var oe=null,ie=function(){var e=u()(m.a.mark((function e(t,n){var r,a,o;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.onAuthentication,a=t.setRequestSucceeded,o=t.setRequestFailed,e.next=3,Object(N.d)((function(){return Object(N.a)(n)}),function(){var e=u()(m.a.mark((function e(t){var o;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r(!0,!0,n.websiteId.toString()),a(t),(o=oe.getPopup())&&o.close();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),function(){var e=u()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",o(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e)})));return function(_x,t){return e.apply(this,arguments)}}(),se=function(){var e=u()(m.a.mark((function e(t){var n,r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!oe||oe.isClosed()){e.next=3;break}return oe.focus(),e.abrupt("return");case 3:return e.next=5,Object(N.b)();case 5:n=e.sent,r=n.url,(oe=new ee.a(r,{success:{type:"wincher:oauth:success",callback:function(e){return ie(t,e)}},error:{type:"wincher:oauth:error",callback:function(){return t.onAuthentication(!1,!1)}}},{title:"Wincher_login",width:500,height:700})).createPopup();case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ce=function(e){return e.isLoggedIn?null:Object(p.createElement)("p",null,Object(p.createElement)(O.NewButton,{onClick:e.onLogin,variant:"primary"},Object(f.sprintf)(
34
  /* translators: %s expands to Wincher */
35
  Object(f.__)("Connect with %s","wordpress-seo"),"Wincher")))};ce.propTypes={isLoggedIn:b.a.bool.isRequired,onLogin:b.a.func.isRequired};var le=w.a.div(Y||(Y=c()(["\n\tp {\n\t\tmargin: 1em 0;\n\t}\n"]))),ue=w.a.div(z||(z=c()(["\n\t",";\n"])),(function(e){return e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"})),pe=w.a.div($||($=c()(["\n\tfont-weight: var(--yoast-font-weight-bold);\n\tcolor: var(--yoast-color-label);\n\tfont-size: var(--yoast-font-size-default);\n"]))),de=function(e){var t=e.isLoggedIn,n=e.keyphrases,r=e.shouldTrackAll;return!e.permalink&&t?Object(p.createElement)(ne,null):0===n.length?Object(p.createElement)(J,null):Object(p.createElement)(ue,{isDisabled:!t},Object(p.createElement)("p",null,Object(f.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")),t&&r&&Object(p.createElement)(X,null),Object(p.createElement)(Z,null))};function me(e){var t=e.isNewlyAuthenticated,n=e.isLoggedIn,r=Object(p.useCallback)((function(){se(e)}),[se,e]);return Object(p.createElement)(le,null,t&&Object(p.createElement)(P,null),Object(p.createElement)(pe,null,Object(f.__)("SEO performance","wordpress-seo"),Object(p.createElement)(O.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"],linkText:Object(f.__)("Learn more about the SEO performance feature.","wordpress-seo")})),Object(p.createElement)(Q.a,null),Object(p.createElement)(ce,{isLoggedIn:n,onLogin:r}),Object(p.createElement)(ae,i()({},e,{onLogin:r})),Object(p.createElement)(de,e))}de.propTypes={keyphrases:b.a.array.isRequired,isLoggedIn:b.a.bool.isRequired,shouldTrackAll:b.a.bool.isRequired,permalink:b.a.string.isRequired},me.propTypes={isLoggedIn:b.a.bool,isNewlyAuthenticated:b.a.bool,keyphrases:b.a.array,response:b.a.object,shouldTrackAll:b.a.bool,permalink:b.a.string},me.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],response:{},shouldTrackAll:!1,permalink:""},t.a=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.isWincherNewlyAuthenticated,r=t.getWincherKeyphraseLimitReached,a=t.getWincherLimit,o=t.getWincherLoginStatus,i=t.getWincherRequestIsSuccess,s=t.getWincherRequestResponse,c=t.getWincherTrackableKeyphrases,l=t.getWincherAllKeyphrasesMissRanking,u=t.getWincherPermalink,p=t.shouldWincherAutomaticallyTrackAll;return{keyphrases:c(),allKeyphrasesMissRanking:l(),isLoggedIn:o(),isNewlyAuthenticated:n(),isSuccess:i(),keyphraseLimitReached:r(),limit:a(),response:s(),shouldTrackAll:p(),permalink:u()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setWincherWebsiteId,r=t.setWincherRequestSucceeded,a=t.setWincherRequestFailed,o=t.setWincherLoginStatus;return{setRequestSucceeded:function(e){r(e)},setRequestFailed:function(e){a(e)},onAuthentication:function(e,t,r){n(r),o(e,t)}}}))])(me)},function(e,t,n){"use strict";n.r(t),n.d(t,"refreshDelay",(function(){return r}));var r=500},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return d}));var r,a,o=n(15),i=n.n(o),s=n(13),c=n.n(s),l=n(4),u=n(8),p=c.a.div(r||(r=i()(["\n\tmin-width: 600px;\n\n\t@media screen and ( max-width: 680px ) {\n\t\tmin-width: 0;\n\t\twidth: 86vw;\n\t}\n"]))),d=c()(l.Icon)(a||(a=i()(["\n\tfloat: ",";\n\tmargin: ",";\n\n\t&& {\n\t\twidth: 150px;\n\t\theight: 150px;\n\n\t\t@media screen and ( max-width: 680px ) {\n\t\t\twidth: 80px;\n\t\t\theight: 80px;\n\t\t}\n\t}\n"])),Object(u.getDirectionalStyle)("right","left"),Object(u.getDirectionalStyle)("0 0 16px 16px","0 16px 16px 0"))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=n(23);function o(){var e=Object(a.a)();return Object(r.get)(e,"translations",{domain:"wordpress-seo",locale_data:{"wordpress-seo":{"":{}}}})}},,,,function(e,t,n){"use strict";function r(e){var t=e.alertKey;return new Promise((function(e){return wpseoApi.post("alerts/dismiss",{key:t},(function(){return e()}))}))}n.r(t),n.d(t,"DISMISS_ALERT",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r,a,o=n(5);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 425 456.27","aria-hidden":"true"},e),r||(r=o.createElement("path",{d:"M73 405.26a66.79 66.79 0 01-6.54-1.7 64.75 64.75 0 01-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 01-5.08-4.19 69.21 69.21 0 01-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 01-3.44-5.64 68.29 68.29 0 01-8.29-32.55V142.13a68.26 68.26 0 018.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0114.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0173 75.09a68.75 68.75 0 0113.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 000 142.13v196.09A86.84 86.84 0 0086.75 425h11.32v-18.35H86.75A68.75 68.75 0 0173 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 018.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 01391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 018.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 00-56.45-81.28z"})),a||(a=o.createElement("path",{d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 010 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z",stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81})))}},function(e,t,n){"use strict";var r,a=n(15),o=n.n(a),i=n(0),s=n(1),c=n.n(s),l=n(13),u=n.n(l),p=n(4),d=n(8),m=u()(p.StyledSection)(r||(r=o()(["\n\t&"," {\n\t\tpadding: 0;\n\n\t\t& "," {\n\t\t\t",": 20px;\n\t\t\tmargin-left: ",";\n\t\t}\n\t}\n"])),p.StyledSectionBase,p.StyledHeading,Object(d.getDirectionalStyle)("padding-left","padding-right"),Object(d.getDirectionalStyle)("0","20px")),f=function(e){var t=e.children,n=e.title,r=e.icon,a=e.hasPaperStyle,o=e.shoppingData;return Object(i.createElement)(m,{headingLevel:3,headingText:n,headingIcon:r,headingIconColor:"#555",hasPaperStyle:a,shoppingData:o},t)};f.propTypes={children:c.a.element,title:c.a.string,icon:c.a.string,hasPaperStyle:c.a.bool,shoppingData:c.a.object},f.defaultProps={hasPaperStyle:!0,shoppingData:null},t.a=f},,,function(e,t,n){"use strict";var r=n(6),a=n(20),o=n(0),i=n(2),s=n(1),c=n.n(s),l=n(3),u=n(4),p=function(){return Object(o.createElement)("p",{className:"yoast-related-keyphrases-modal__loading-message"},Object(i.sprintf)(
36
  /* translators: %1$s expands to "Yoast SEO", %2$s expands to "Semrush". */
@@ -38,7 +38,7 @@ Object(i.__)("Please wait while %1$s connects to %2$s to get related keyphrases.
38
  /* translators: %s : Expands to "Semrush". */
39
  Object(i.__)("You've reached your request limit for today. Check back tomorrow or upgrade your plan over at %s.","wordpress-seo"),"Semrush")),Object(o.createElement)(m,{href:window.wpseoAdminL10n["shortlinks.semrush.prices"],className:"yoast-button-upsell"},Object(i.sprintf)(
40
  /* translators: %s : Expands to "Semrush". */
41
- Object(i.__)("Upgrade your %s plan","wordpress-seo"),"Semrush"),Object(o.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})))},h=n(16),b=n.n(h),g=n(9),y=n.n(g),w=n(10),O=n.n(w),v=n(12),j=n.n(v),E=n(18),_=n.n(E),k=n(19),T=n.n(k),R=n(11),S=n.n(R),x=n(7),C=n.n(x),P=n(36),D=n.n(P),A=n(39);var L="yoast-semrush-country-selector",q=[{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"}],I=function(e){_()(c,e);var t,n,r,a,s=(r=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=S()(r);if(a){var n=S()(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return T()(this,e)});function c(e){var t;return y()(this,c),(t=s.call(this,e)).relatedKeyphrasesRequest=t.relatedKeyphrasesRequest.bind(j()(t)),t.onChangeHandler=t.onChangeHandler.bind(j()(t)),t}return O()(c,[{key:"componentDidMount",value:function(){this.props.response&&this.props.keyphrase===this.props.lastRequestKeyphrase||this.relatedKeyphrasesRequest()}},{key:"storeCountryCode",value:function(e){D()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}})}},{key:"relatedKeyphrasesRequest",value:(n=b()(C.a.mark((function e(){var t,n,r,a;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,n=t.keyphrase,r=t.countryCode,(0,t.newRequest)(r,n),this.storeCountryCode(r),e.next=5,this.doRequest(n,r);case 5:if(200!==(a=e.sent).status){e.next=9;break}return this.handleSuccessResponse(a),e.abrupt("return");case 9:this.handleFailedResponse(a);case 10:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"handleSuccessResponse",value:function(e){var t=this.props,n=t.setNoResultsFound,r=t.setRequestSucceeded;0!==e.results.rows.length?r(e):n()}},{key:"handleFailedResponse",value:function(e){var t=this.props,n=t.setRequestLimitReached,r=t.setRequestFailed;"error"in e&&(e.error.includes("TOTAL LIMIT EXCEEDED")?n():r(e))}},{key:"doRequest",value:(t=b()(C.a.mark((function e(t,n){return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,D()({path:Object(A.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:t,country_code:n})});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(_x,e){return t.apply(this,arguments)})},{key:"onChangeHandler",value:function(e){this.props.setCountry(e)}},{key:"render",value:function(){return Object(o.createElement)("div",{id:L},Object(o.createElement)(u.SingleSelect,{id:L+"-select",label:Object(i.__)("Show results for:","wordpress-seo"),name:"semrush-country-code",options:q,selected:this.props.countryCode,onChange:this.onChangeHandler,wrapperClassName:"yoast-field-group yoast-field-group--inline"}),Object(o.createElement)(u.NewButton,{id:L+"-button",variant:"secondary",onClick:this.relatedKeyphrasesRequest},Object(i.__)("Select country","wordpress-seo")))}}]),c}(o.Component);I.propTypes={keyphrase:c.a.string,countryCode:c.a.string,response:c.a.object,lastRequestKeyphrase:c.a.string,setCountry:c.a.func.isRequired,newRequest:c.a.func.isRequired,setNoResultsFound:c.a.func.isRequired,setRequestSucceeded:c.a.func.isRequired,setRequestLimitReached:c.a.func.isRequired,setRequestFailed:c.a.func.isRequired},I.defaultProps={keyphrase:"",countryCode:"us",response:{},lastRequestKeyphrase:""};var F=I,N=n(58),M=n(53);var K=Object(d.makeOutboundLink)(),W=function(e){_()(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=S()(t);if(n){var a=S()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return T()(this,e)});function a(e){var t;return y()(this,a),(t=r.call(this,e)).transformTrendDataToChartPoints=t.transformTrendDataToChartPoints.bind(j()(t)),t.getAreaChartDataTableHeaderLabels=t.getAreaChartDataTableHeaderLabels.bind(j()(t)),t.mapAreaChartDataToTableData=t.mapAreaChartDataToTableData.bind(j()(t)),t}return O()(a,[{key:"transformTrendDataToChartPoints",value:function(e){return e.split(",").map((function(e,t){return{x:t,y:parseFloat(e)}}))}},{key:"getAreaChartDataTableHeaderLabels",value:function(){return[Object(i.__)("Twelve months ago","wordpress-seo"),Object(i.__)("Eleven months ago","wordpress-seo"),Object(i.__)("Ten months ago","wordpress-seo"),Object(i.__)("Nine months ago","wordpress-seo"),Object(i.__)("Eight months ago","wordpress-seo"),Object(i.__)("Seven months ago","wordpress-seo"),Object(i.__)("Six months ago","wordpress-seo"),Object(i.__)("Five months ago","wordpress-seo"),Object(i.__)("Four months ago","wordpress-seo"),Object(i.__)("Three months ago","wordpress-seo"),Object(i.__)("Two months ago","wordpress-seo"),Object(i.__)("Last month","wordpress-seo")]}},{key:"mapAreaChartDataToTableData",value:function(e){return Math.round(100*e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.keyphrase,r=t.relatedKeyphrases,a=t.countryCode,s=t.data,c=t.renderAction,u="https://www.semrush.com/analytics/keywordoverview/?q="+encodeURIComponent(n)+"&db="+encodeURIComponent(a);return s&&!Object(l.isEmpty)(s.results)&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("table",{className:"yoast yoast-table"},Object(o.createElement)("thead",null,Object(o.createElement)("tr",null,Object(o.createElement)("th",{scope:"col",className:"yoast-table--primary"},Object(i.__)("Related keyphrase","wordpress-seo")),Object(o.createElement)("th",{scope:"col",abbr:Object(i.__)("Volume","wordpress-seo")},Object(i.__)("Volume","wordpress-seo"),Object(o.createElement)(M.a,{href:window.wpseoAdminL10n["shortlinks.semrush.volume_help"],className:"dashicons"},Object(o.createElement)("span",{className:"screen-reader-text"},Object(i.__)("Learn more about the related keyphrases volume","wordpress-seo")))),Object(o.createElement)("th",{scope:"col",abbr:Object(i.__)("Trend","wordpress-seo")},Object(i.__)("Trend","wordpress-seo"),Object(o.createElement)(M.a,{href:window.wpseoAdminL10n["shortlinks.semrush.trend_help"],className:"dashicons"},Object(o.createElement)("span",{className:"screen-reader-text"},Object(i.__)("Learn more about the related keyphrases trend","wordpress-seo")))),c&&Object(o.createElement)("td",{className:"yoast-table--nobreak"}))),Object(o.createElement)("tbody",null,s.results.rows.map((function(t,n){var a=t[0],s=e.transformTrendDataToChartPoints(t[2]),l=e.getAreaChartDataTableHeaderLabels();return Object(o.createElement)("tr",{key:n},Object(o.createElement)("td",null,a),Object(o.createElement)("td",null,t[1]),Object(o.createElement)("td",{className:"yoast-table--nopadding"},Object(o.createElement)(N.a,{width:66,height:24,data:s,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:e.mapAreaChartDataToTableData,dataTableCaption:Object(i.__)("Keyphrase volume in the last 12 months on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:l})),c&&Object(o.createElement)("td",{className:"yoast-table--nobreak"},c(a,r)))})))),Object(o.createElement)("p",{style:{marginBottom:0}},Object(o.createElement)(K,{href:u},Object(i.sprintf)(
42
  /* translators: %s expands to Semrush */
43
  Object(i.__)("Get more insights at %s","wordpress-seo"),"Semrush"))))}}]),a}(o.Component);W.propTypes={data:c.a.object,keyphrase:c.a.string,relatedKeyphrases:c.a.array,countryCode:c.a.string,renderAction:c.a.func},W.defaultProps={data:{},keyphrase:"",relatedKeyphrases:[],countryCode:"us",renderAction:null};var U=W,B=Object(d.makeOutboundLink)(),V=function(){return Object(o.createElement)(u.Alert,{type:"info"},Object(i.sprintf)(
44
  /* translators: %s: Expands to "Yoast SEO". */
@@ -46,11 +46,11 @@ Object(i.__)("Would you like to be able to add these related keyphrases to the %
46
  /* translators: %s: Expands to "Yoast SEO Premium". */
47
  Object(i.__)("Check out %s!","wordpress-seo"),"Yoast SEO Premium")))},H=function(){return Object(o.createElement)(u.Alert,{type:"error"},Object(i.__)("We've encountered a problem trying to get related keyphrases. Please try again later.","wordpress-seo"))},Y=function(){return Object(o.createElement)(u.Alert,{type:"warning"},Object(i.sprintf)(
48
  /* translators: %s: Expands to "Yoast SEO". */
49
- Object(i.__)("You've reached the maximum amount of 4 related keyphrases. You can change or remove related keyphrases in the %s metabox or sidebar.","wordpress-seo"),"Yoast SEO"))},z=n(23);function $(e){var t=e.response,n=e.lastRequestKeyphrase,r=e.keyphrase,a=e.newRequest,s=e.setCountry,c=e.renderAction,u=e.countryCode,d=e.requestLimitReached,m=e.setRequestFailed,h=e.setNoResultsFound,b=e.relatedKeyphrases,g=e.setRequestSucceeded,y=e.setRequestLimitReached,w=Object(z.a)().isPremium;return Object(o.createElement)(o.Fragment,null,!d&&Object(o.createElement)(o.Fragment,null,!w&&Object(o.createElement)(V,null),w&&function(e){return e&&e.length>=4}(b)&&Object(o.createElement)(Y,null),Object(o.createElement)(F,{countryCode:u,setCountry:s,newRequest:a,keyphrase:r,setRequestFailed:m,setNoResultsFound:h,setRequestSucceeded:g,setRequestLimitReached:y,response:t,lastRequestKeyphrase:n})),function(e){var t=e.isPending,n=e.requestLimitReached,r=e.isSuccess,a=e.response,s=e.requestHasData;return t?Object(o.createElement)(p,null):n?Object(o.createElement)(f,null):!r&&function(e){return!Object(l.isEmpty)(e)&&"error"in e}(a)?Object(o.createElement)(H,null):s?void 0:Object(o.createElement)("p",null,Object(i.__)("Sorry, there's no data available for that keyphrase/country combination.","wordpress-seo"))}(e),Object(o.createElement)(U,{keyphrase:r,relatedKeyphrases:b,countryCode:u,renderAction:c,data:t}))}$.propTypes={keyphrase:c.a.string,relatedKeyphrases:c.a.array,renderAction:c.a.func,requestLimitReached:c.a.bool,countryCode:c.a.string.isRequired,setCountry:c.a.func.isRequired,newRequest:c.a.func.isRequired,setRequestSucceeded:c.a.func.isRequired,setRequestLimitReached:c.a.func.isRequired,setRequestFailed:c.a.func.isRequired,setNoResultsFound:c.a.func.isRequired,response:c.a.object,lastRequestKeyphrase:c.a.string},$.defaultProps={keyphrase:"",relatedKeyphrases:[],renderAction:null,requestLimitReached:!1,response:{},lastRequestKeyphrase:""},t.a=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getFocusKeyphrase,r=t.getSEMrushSelectedCountry,a=t.getSEMrushRequestLimitReached,o=t.getSEMrushRequestResponse,i=t.getSEMrushRequestIsSuccess,s=t.getSEMrushIsRequestPending,c=t.getSEMrushRequestHasData,l=t.getSEMrushRequestKeyphrase;return{keyphrase:n(),countryCode:r(),requestLimitReached:a(),response:o(),isSuccess:i(),isPending:s(),requestHasData:c(),lastRequestKeyphrase:l()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setSEMrushChangeCountry,r=t.setSEMrushNewRequest,a=t.setSEMrushRequestSucceeded,o=t.setSEMrushRequestFailed,i=t.setSEMrushSetRequestLimitReached,s=t.setSEMrushNoResultsFound;return{setCountry:function(e){n(e)},newRequest:function(e,t){r(e,t)},setRequestSucceeded:function(e){a(e)},setRequestFailed:function(e){o(e)},setRequestLimitReached:function(){i()},setNoResultsFound:function(){s()}}}))])($)},,,function(e,t){e.exports=window.wp.hooks},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return d}));var r=n(3),a=n(27),o=n(52);function i(){return Object(r.get)(window,["wpseoAdminL10n","default_query_params"],{})}var s=n(100),c=n(61),l=n(48),u=n(75);function p(){var e=Object(r.get)(window,["wpseoScriptData","analysis","worker","url"],"analysis-worker.js"),t=Object(a.createWorker)(e);return t.postMessage({dependencies:Object(r.get)(window,["wpseoScriptData","analysis","worker","dependencies"],[])}),new a.AnalysisWorkerWrapper(t)}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={locale:Object(o.a)(),contentAnalysisActive:Object(c.a)(),keywordAnalysisActive:Object(l.a)(),defaultQueryParams:i(),logLevel:Object(r.get)(window,["wpseoScriptData","analysis","worker","log_level"],"ERROR"),enabledFeatures:Object(u.enabledFeatures)()};t=Object(r.merge)(t,e);var n=Object(s.a)();return Object(r.isUndefined)(n)||Object(r.isUndefined)(n.domain)||(t.translations=n),t}},function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(55),i=n(45);t.a=Object(r.compose)([Object(a.withSelect)((function(e){return{isCornerstone:(0,e("yoast-seo/editor").isCornerstoneContent)(),learnMoreUrl:wpseoAdminL10n["shortlinks.cornerstone_content_info"]}})),Object(a.withDispatch)((function(e){return{onChange:e("yoast-seo/editor").toggleCornerstoneContent}})),Object(i.a)()])(o.CollapsibleCornerstone)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3);function a(e){return void 0===e.length?e:Object(r.flatten)(e).sort((function(e,t){return void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority}))}},,,function(e,t,n){"use strict";var r,a=n(14),o=n.n(a),i=n(0),s=n(20),c=n(6),l=n(2),u=n(1),p=n.n(u),d=n(24),m=n.n(d),f=n(15),h=n.n(f),b=n(4),g=n(21),y=n(8),w=n(31),O=n.n(w),v=n(13),j=n.n(v),E=n(77),_=n(75),k=j.a.div(r||(r=h()(["\n\tpadding: 16px;\n"]))),T=function(e,t,n){var r=e.find((function(e){return e.value===t}));return[{name:Object(l.sprintf)(
50
  /* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */
51
  Object(l.__)("Default for %1$s (%2$s)","wordpress-seo"),n,r?r.name:""),value:""}].concat(m()(e))},R=function(e){return Object(l.sprintf)(
52
  /* translators: %1$s expands to the plural name of the current post type, %2$s and %3$s expand to a link to the Search Appearance Settings page */
53
- Object(l.__)("You can change the default type for %1$s in your %2$sSearch Appearance Settings%3$s.","wordpress-seo"),e,"{{link}}","{{/link}}")},S=function(e){return Object(i.createElement)(b.FieldGroup,{label:e.helpTextTitle,linkTo:e.helpTextLink,linkText:Object(l.__)("Learn more about structured data with Schema.org","wordpress-seo"),description:e.helpTextDescription})};S.propTypes={helpTextTitle:p.a.string.isRequired,helpTextLink:p.a.string.isRequired,helpTextDescription:p.a.string.isRequired};var x=function(e){return Object(i.createElement)("p",null,e.helpTextDescription+" ",Object(i.createElement)("a",{href:e.helpTextLink},Object(l.__)("Read more about Schema.","wordpress-seo")))};x.propTypes={helpTextDescription:p.a.string.isRequired,helpTextLink:p.a.string.isRequired};var C=function(e){var t,n=T(e.pageTypeOptions,e.defaultPageType,e.postTypeName),r=T(e.articleTypeOptions,e.defaultArticleType,e.postTypeName),a=Object(_.isFeatureEnabled)("SCHEMA_BLOCKS");return Object(i.createElement)(i.Fragment,null,a?Object(i.createElement)(x,e):Object(i.createElement)(S,e),a&&Object(i.createElement)(g.Slot,{name:Object(y.join)(["yoast-schema-blocks-analysis",e.location])}),Object(i.createElement)(b.FieldGroup,{label:Object(l.__)("What type of page or content is this?","wordpress-seo"),linkTo:e.additionalHelpTextLink,linkText:Object(l.__)("Learn more about page or content types","wordpress-seo")}),Object(i.createElement)(b.Select,{id:Object(y.join)(["yoast-schema-page-type",e.location]),options:n,label:Object(l.__)("Page type","wordpress-seo"),onChange:e.schemaPageTypeChange,selected:e.schemaPageTypeSelected}),e.showArticleTypeInput&&Object(i.createElement)(b.Select,{id:Object(y.join)(["yoast-schema-article-type",e.location]),options:r,label:Object(l.__)("Article type","wordpress-seo"),onChange:e.schemaArticleTypeChange,selected:e.schemaArticleTypeSelected}),e.displayFooter&&Object(i.createElement)("p",null,(t=e.postTypeName,O()({mixedString:R(t),components:{link:Object(i.createElement)("a",{href:"/wp-admin/admin.php?page=wpseo_titles#top#post-types",target:"_blank"})}}))))};C.propTypes={schemaPageTypeChange:p.a.func,schemaPageTypeSelected:p.a.string,pageTypeOptions:E.b.isRequired,schemaArticleTypeChange:p.a.func,schemaArticleTypeSelected:p.a.string,articleTypeOptions:E.b.isRequired,showArticleTypeInput:p.a.bool.isRequired,additionalHelpTextLink:p.a.string.isRequired,helpTextLink:p.a.string.isRequired,helpTextTitle:p.a.string.isRequired,helpTextDescription:p.a.string.isRequired,postTypeName:p.a.string.isRequired,displayFooter:p.a.bool,defaultPageType:p.a.string.isRequired,defaultArticleType:p.a.string.isRequired,location:p.a.string.isRequired},C.defaultProps={schemaPageTypeChange:function(){},schemaPageTypeSelected:null,schemaArticleTypeChange:function(){},schemaArticleTypeSelected:null,displayFooter:!1};var P=function(e){return e.isMetabox?Object(i.createPortal)(Object(i.createElement)(k,null,Object(i.createElement)(C,e)),document.getElementById("wpseo-meta-section-schema")):Object(i.createElement)(C,e)};P.propTypes={showArticleTypeInput:p.a.bool,articleTypeLabel:p.a.string,additionalHelpTextLink:p.a.string,pageTypeLabel:p.a.string.isRequired,helpTextLink:p.a.string.isRequired,helpTextTitle:p.a.string.isRequired,helpTextDescription:p.a.string.isRequired,isMetabox:p.a.bool.isRequired,postTypeName:p.a.string.isRequired,displayFooter:p.a.bool,loadSchemaArticleData:p.a.func.isRequired,loadSchemaPageData:p.a.func.isRequired,location:p.a.string.isRequired},P.defaultProps={showArticleTypeInput:!1,articleTypeLabel:"",additionalHelpTextLink:"",displayFooter:!1};var D=P,A=n(78),L=n(45);function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var F=function(e){var t=null!==A.a.articleTypeInput;Object(i.useEffect)((function(){e.loadSchemaPageData(),t&&e.loadSchemaArticleData()}),[]);var n=window.wpseoScriptData.metabox.schema,r=n.pageTypeOptions,a=n.articleTypeOptions,o={articleTypeLabel:Object(l.__)("Article type","wordpress-seo"),pageTypeLabel:Object(l.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:Object(l.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:Object(l.__)("This helps search engines understand your website and your content. You can change some of your settings for this page below.","wordpress-seo"),showArticleTypeInput:t,pageTypeOptions:r,articleTypeOptions:a},s=I(I(I({},e),o),"metabox"===e.location?{helpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.page_type"],isMetabox:!0}:{helpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.page_type"],isMetabox:!1});return Object(i.createElement)(D,s)};F.propTypes={displayFooter:p.a.bool.isRequired,schemaPageTypeSelected:p.a.string.isRequired,schemaArticleTypeSelected:p.a.string.isRequired,defaultArticleType:p.a.string.isRequired,defaultPageType:p.a.string.isRequired,loadSchemaPageData:p.a.func.isRequired,loadSchemaArticleData:p.a.func.isRequired,schemaPageTypeChange:p.a.func.isRequired,schemaArticleTypeChange:p.a.func.isRequired,location:p.a.string.isRequired},t.a=Object(s.compose)([Object(c.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getPreferences,r=t.getPageType,a=t.getDefaultPageType,o=t.getArticleType,i=t.getDefaultArticleType;return{displayFooter:n().displaySchemaSettingsFooter,schemaPageTypeSelected:r(),schemaArticleTypeSelected:o(),defaultArticleType:i(),defaultPageType:a()}})),Object(c.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setPageType,r=t.setArticleType;return{loadSchemaPageData:t.getSchemaPageData,loadSchemaArticleData:t.getSchemaArticleData,schemaPageTypeChange:n,schemaArticleTypeChange:r}})),Object(L.a)()])(F)},function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(0),i=n(2),s=n(4),c=n(8),l=n(1),u=n.n(l),p=n(30),d=function(e){var t=e.noIndex,n=e.onNoIndexChange,r=e.editorContext,a=e.isPrivateBlog,l=function(e){var t=Object(i.__)("No","wordpress-seo"),n=Object(i.__)("Yes","wordpress-seo"),r=e.noIndex?t:n;return window.wpseoScriptData.isPost?[{name:Object(i.sprintf)(
54
  /* Translators: %s translates to "yes" or "no", %s translates to the Post Label in plural form */
55
  Object(i.__)("%s (current default for %s)","wordpress-seo"),r,e.postTypeNamePlural),value:"0"},{name:t,value:"1"},{name:n,value:"2"}]:[{name:Object(i.sprintf)(
56
  /* Translators: %s translates to the "yes" or "no" ,%s translates to the Post Label in plural form */
@@ -58,6 +58,6 @@ Object(i.__)("%s (current default for %s)","wordpress-seo"),r,e.postTypeNamePlur
58
  /* Translators: %s translates to the Post Label in singular form */
59
  Object(i.__)("Allow search engines to show this %s in search results?","wordpress-seo"),r.postTypeNameSingular),onChange:n,id:Object(c.join)(["yoast-meta-robots-noindex",e]),options:l,selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.allow_search_engines"],linkText:Object(i.__)("Learn more about the no-index setting on our help page.","wordpress-seo")}))}))};d.propTypes={noIndex:u.a.string.isRequired,onNoIndexChange:u.a.func.isRequired,editorContext:u.a.object.isRequired,isPrivateBlog:u.a.bool},d.defaultProps={isPrivateBlog:!1};var m=function(e){var t=e.noFollow,n=e.onNoFollowChange,r=e.postTypeName;return Object(o.createElement)(p.LocationConsumer,null,(function(e){var a=Object(c.join)(["yoast-meta-robots-nofollow",e]);return Object(o.createElement)(s.RadioButtonGroup,{id:a,options:[{value:"0",label:"Yes"},{value:"1",label:"No"}],label:Object(i.sprintf)(
60
  /* Translators: %s translates to the Post Label in singular form */
61
- Object(i.__)("Should search engines follow links on this %s","wordpress-seo"),r),groupName:a,onChange:n,selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.follow_links"],linkText:Object(i.__)("Learn more about the no-follow setting on our help page.","wordpress-seo")})}))};m.propTypes={noFollow:u.a.string.isRequired,onNoFollowChange:u.a.func.isRequired,postTypeName:u.a.string.isRequired};var f=function(e){var t=e.advanced,n=e.onAdvancedChange;return Object(o.createElement)(p.LocationConsumer,null,(function(e){var r=Object(c.join)(["yoast-meta-robots-advanced",e]),a="".concat(r,"-input");return Object(o.createElement)(s.MultiSelect,{label:Object(i.__)("Meta robots advanced","wordpress-seo"),onChange:n,id:r,inputId:a,options:[{name:Object(i.__)("No Image Index","wordpress-seo"),value:"noimageindex"},{name:Object(i.__)("No Archive","wordpress-seo"),value:"noarchive"},{name:Object(i.__)("No Snippet","wordpress-seo"),value:"nosnippet"}],selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.meta_robots"],linkText:Object(i.__)("Learn more about advanced meta robots settings on our help page.","wordpress-seo")})}))};f.propTypes={advanced:u.a.array.isRequired,onAdvancedChange:u.a.func.isRequired};var h=function(e){var t=e.breadcrumbsTitle,n=e.onBreadcrumbsTitleChange;return Object(o.createElement)(p.LocationConsumer,null,(function(e){return Object(o.createElement)(s.TextInput,{label:Object(i.__)("Breadcrumbs Title","wordpress-seo"),id:Object(c.join)(["yoast-breadcrumbs-title",e]),onChange:n,value:t,linkTo:wpseoAdminL10n["shortlinks.advanced.breadcrumbs_title"],linkText:Object(i.__)("Learn more about the breadcrumbs title setting on our help page.","wordpress-seo")})}))};h.propTypes={breadcrumbsTitle:u.a.string.isRequired,onBreadcrumbsTitleChange:u.a.func.isRequired};var b=function(e){var t=e.canonical,n=e.onCanonicalChange;return Object(o.createElement)(p.LocationConsumer,null,(function(e){return Object(o.createElement)(s.TextInput,{label:Object(i.__)("Canonical URL","wordpress-seo"),id:Object(c.join)(["yoast-canonical",e]),onChange:n,value:t,linkTo:"https://yoa.st/canonical-url",linkText:Object(i.__)("Learn more about canonical URLs on our help page.","wordpress-seo")})}))};b.propTypes={canonical:u.a.string.isRequired,onCanonicalChange:u.a.func.isRequired};var g=function(e){var t=e.noIndex,n=e.noFollow,r=e.advanced,a=e.breadcrumbsTitle,i=e.canonical,s=e.onNoIndexChange,c=e.onNoFollowChange,l=e.onAdvancedChange,u=e.onBreadcrumbsTitleChange,p=e.onCanonicalChange,g=e.onLoad,y=e.isLoading,w=e.editorContext,O=e.isBreadcrumbsDisabled,v=e.isPrivateBlog;Object(o.useEffect)((function(){setTimeout((function(){y&&g()}))}));var j={noIndex:t,onNoIndexChange:s,editorContext:w,isPrivateBlog:v},E={noFollow:n,onNoFollowChange:c,postTypeName:w.postTypeNameSingular},_={advanced:r,onAdvancedChange:l},k={breadcrumbsTitle:a,onBreadcrumbsTitleChange:u},T={canonical:i,onCanonicalChange:p};return y?null:Object(o.createElement)(o.Fragment,null,Object(o.createElement)(d,j),w.isPost&&Object(o.createElement)(m,E),w.isPost&&Object(o.createElement)(f,_),!O&&Object(o.createElement)(h,k),Object(o.createElement)(b,T))};g.propTypes={noIndex:u.a.string.isRequired,canonical:u.a.string.isRequired,onNoIndexChange:u.a.func.isRequired,onCanonicalChange:u.a.func.isRequired,onLoad:u.a.func.isRequired,isLoading:u.a.bool.isRequired,editorContext:u.a.object.isRequired,isBreadcrumbsDisabled:u.a.bool.isRequired,isPrivateBlog:u.a.bool,advanced:u.a.array,onAdvancedChange:u.a.func,noFollow:u.a.string,onNoFollowChange:u.a.func,breadcrumbsTitle:u.a.string,onBreadcrumbsTitleChange:u.a.func},g.defaultProps={advanced:[],onAdvancedChange:function(){},noFollow:"",onNoFollowChange:function(){},breadcrumbsTitle:"",onBreadcrumbsTitleChange:function(){},isPrivateBlog:!1};var y=g;t.a=Object(r.compose)([Object(a.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getNoIndex,r=t.getNoFollow,a=t.getAdvanced,o=t.getBreadcrumbsTitle,i=t.getCanonical,s=t.getIsLoading,c=t.getEditorContext,l=(0,t.getPreferences)(),u=l.isBreadcrumbsDisabled,p=l.isPrivateBlog;return{noIndex:n(),noFollow:r(),advanced:a(),breadcrumbsTitle:o(),canonical:i(),isLoading:s(),editorContext:c(),isBreadcrumbsDisabled:u,isPrivateBlog:p}})),Object(a.withDispatch)((function(e){var t=e("yoast-seo/editor");return{onNoIndexChange:t.setNoIndex,onNoFollowChange:t.setNoFollow,onAdvancedChange:t.setAdvanced,onBreadcrumbsTitleChange:t.setBreadcrumbsTitle,onCanonicalChange:t.setCanonical,onLoad:t.loadAdvancedSettingsData}}))])(y)},function(e,t,n){"use strict";n.d(t,"b",(function(){return j})),n.d(t,"a",(function(){return E}));var r=n(24),a=n.n(r),o=n(9),i=n.n(o),s=n(10),c=n.n(s),l=n(18),u=n.n(l),p=n(19),d=n.n(p),m=n(11),f=n.n(m),h=n(0),b=n(21),g=n(23),y=n(70);var w=[],O=null,v=function(e){u()(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=f()(t);if(n){var a=f()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return d()(this,e)});function o(e){var t;return i()(this,o),(t=r.call(this,e)).state={registeredComponents:[]},t}return c()(o,[{key:"registerComponent",value:function(e,t){this.setState({registeredComponents:[].concat(a()(this.state.registeredComponents),[{key:e,Component:t}])})}},{key:"render",value:function(){return this.state.registeredComponents.map((function(e){var t=e.Component,n=e.key;return Object(h.createElement)(t,{key:n})}))}}]),o}(h.Component);function j(e,t){var n=Object(g.a)();O=Object(h.createRef)();var r={isRtl:n.isRtl};Object(h.render)(Object(h.createElement)(y.a,{theme:r,location:"sidebar"},Object(h.createElement)(b.SlotFillProvider,null,Object(h.createElement)(h.Fragment,null,t,Object(h.createElement)(v,{ref:O})))),document.getElementById(e)),w.forEach((function(e){O.current.registerComponent(e.key,e.Component)}))}function E(e,t){null===O||null===O.current?w.push({key:e,Component:t}):O.current.registerComponent(e,t)}},,,,function(e,t){e.exports=window.yoast.searchMetadataPreviews},function(e,t,n){"use strict";var r=n(0),a=n(21),o=n(1),i=n.n(o),s=n(89),c=function(e){return Object(r.useEffect)((function(){setTimeout(e.onLoad)}),[]),e.isPremium?Object(r.createElement)(a.Slot,{name:"YoastTwitterPremium".concat(e.location.charAt(0).toUpperCase()+e.location.slice(1)),fillProps:e}):Object(r.createElement)(s.a,e)};c.propTypes={isPremium:i.a.bool.isRequired,onLoad:i.a.func.isRequired,location:i.a.string.isRequired},t.a=c},function(e,t){e.exports=window.yoast.socialMetadataForms},function(e,t,n){"use strict";var r=n(14),a=n.n(r),o=n(29),i=n.n(o),s=n(0),c=n(21),l=n(1),u=n.n(l),p=n(89);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=function(e){var t=Object(s.useState)(""),n=i()(t,2),r=n[0],a=n[1],o=Object(s.useCallback)((function(e){a(e.detail.metaTabId)}),[a]);Object(s.useEffect)((function(){return setTimeout(e.onLoad),window.addEventListener("YoastSEO:metaTabChange",o),function(){window.removeEventListener("YoastSEO:metaTabChange",o)}}),[]);var l=Object(s.useMemo)((function(){return m(m({},e),{},{activeMetaTabId:r})}),[e,r]);return e.isPremium?Object(s.createElement)(c.Slot,{name:"YoastFacebookPremium".concat(e.location.charAt(0).toUpperCase()+e.location.slice(1)),fillProps:l}):Object(s.createElement)(p.a,l)};f.propTypes={isPremium:u.a.bool.isRequired,onLoad:u.a.func.isRequired,location:u.a.string.isRequired},t.a=f},,function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(34),a=n.n(r),o=n(9),i=n.n(o),s=n(10),c=n.n(s),l=n(3),u=function(){function e(t){i()(this,e),this.refresh=t,this.loaded=!1,this.preloadThreshold=3e3,this.plugins={},this.modifications={},this._registerPlugin=this._registerPlugin.bind(this),this._ready=this._ready.bind(this),this._reloaded=this._reloaded.bind(this),this._registerModification=this._registerModification.bind(this),this._registerAssessment=this._registerAssessment.bind(this),this._applyModifications=this._applyModifications.bind(this),setTimeout(this._pollLoadingPlugins.bind(this),1500)}return c()(e,[{key:"_registerPlugin",value:function(e,t){return Object(l.isString)(e)?Object(l.isUndefined)(t)||Object(l.isObject)(t)?!1===this._validateUniqueness(e)?(console.error("Failed to register plugin. Plugin with name "+e+" already exists"),!1):(this.plugins[e]=t,!0):(console.error("Failed to register plugin "+e+". Expected parameters `options` to be a object."),!1):(console.error("Failed to register plugin. Expected parameter `pluginName` to be a string."),!1)}},{key:"_ready",value:function(e){return Object(l.isString)(e)?Object(l.isUndefined)(this.plugins[e])?(console.error("Failed to modify status for plugin "+e+". The plugin was not properly registered."),!1):(this.plugins[e].status="ready",!0):(console.error("Failed to modify status for plugin "+e+". Expected parameter `pluginName` to be a string."),!1)}},{key:"_reloaded",value:function(e){return Object(l.isString)(e)?Object(l.isUndefined)(this.plugins[e])?(console.error("Failed to reload Content Analysis for plugin "+e+". The plugin was not properly registered."),!1):(this.refresh(),!0):(console.error("Failed to reload Content Analysis for "+e+". Expected parameter `pluginName` to be a string."),!1)}},{key:"_registerModification",value:function(e,t,n,r){if(!Object(l.isString)(e))return console.error("Failed to register modification for plugin "+n+". Expected parameter `modification` to be a string."),!1;if(!Object(l.isFunction)(t))return console.error("Failed to register modification for plugin "+n+". Expected parameter `callable` to be a function."),!1;if(!Object(l.isString)(n))return console.error("Failed to register modification for plugin "+n+". Expected parameter `pluginName` to be a string."),!1;if(!1===this._validateOrigin(n))return console.error("Failed to register modification for plugin "+n+". The integration has not finished loading yet."),!1;var a={callable:t,origin:n,priority:Object(l.isNumber)(r)?r:10};return Object(l.isUndefined)(this.modifications[e])&&(this.modifications[e]=[]),this.modifications[e].push(a),!0}},{key:"_registerAssessment",value:function(e,t,n,r){return Object(l.isString)(t)?Object(l.isObject)(n)?Object(l.isString)(r)?(t=r+"-"+t,e.addAssessment(t,n),!0):(console.error("Failed to register assessment for plugin "+r+". Expected parameter `pluginName` to be a string."),!1):(console.error("Failed to register assessment for plugin "+r+". Expected parameter `assessment` to be a function."),!1):(console.error("Failed to register test for plugin "+r+". Expected parameter `name` to be a string."),!1)}},{key:"_applyModifications",value:function(e,t,n){var r=this.modifications[e];return!Object(l.isArray)(r)||r.length<1||((r=this._stripIllegalModifications(r)).sort((function(e,t){return e.priority-t.priority})),Object(l.forEach)(r,(function(r){var o=r.callable(t,n);a()(o)===a()(t)?t=o:console.error("Modification with name "+e+" performed by plugin with name "+r.origin+" was ignored because the data that was returned by it was of a different type than the data we had passed it.")}))),t}},{key:"_pollLoadingPlugins",value:function(e){e=Object(l.isUndefined)(e)?0:e,!0===this._allReady()?(this.loaded=!0,this.refresh()):e>=this.preloadThreshold?(this._pollTimeExceeded(),this.loaded=!0,this.refresh()):(e+=50,setTimeout(this._pollLoadingPlugins.bind(this,e),50))}},{key:"_allReady",value:function(){return Object(l.reduce)(this.plugins,(function(e,t){return e&&"ready"===t.status}),!0)}},{key:"_pollTimeExceeded",value:function(){Object(l.forEach)(this.plugins,(function(e,t){Object(l.isUndefined)(e.options)||"ready"===e.options.status||(console.error("Error: Plugin "+t+". did not finish loading in time."),delete this.plugins[t])}))}},{key:"_stripIllegalModifications",value:function(e){var t=this;return Object(l.forEach)(e,(function(n,r){!1===t._validateOrigin(n.origin)&&delete e[r]})),e}},{key:"_validateOrigin",value:function(e){return"ready"===this.plugins[e].status}},{key:"_validateUniqueness",value:function(e){return Object(l.isUndefined)(this.plugins[e])}}]),e}()},function(e,t,n){"use strict";n.r(t);var r=n(104);n.d(t,"DISMISS_ALERT",(function(){return r.DISMISS_ALERT}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=jQuery;function o(e,t,n,r){this._scriptUrl=r,this._options={usedKeywords:t.keyword_usage,searchUrl:t.search_url,postUrl:t.post_edit_url},this._keywordUsage=t.keyword_usage,this._postID=a("#post_ID, [name=tag_ID]").val(),this._taxonomy=a("[name=taxonomy]").val()||"",this._ajaxAction=e,this._refreshAnalysis=n,this._initialized=!1}o.prototype.init=function(){var e=this,t=window.YoastSEO.analysis.worker;this.requestKeywordUsage=Object(r.debounce)(this.requestKeywordUsage.bind(this),500),t.loadScript(this._scriptUrl).then((function(){t.sendMessage("initialize",e._options,"used-keywords-assessment")})).then((function(){e._initialized=!0,Object(r.isEqual)(e._options.usedKeywords,e._keywordUsage)?e._refreshAnalysis():t.sendMessage("updateKeywordUsage",e._keywordUsage,"used-keywords-assessment").then((function(){return e._refreshAnalysis()}))})).catch((function(e){return console.error(e)}))},o.prototype.setKeyword=function(e){Object(r.has)(this._keywordUsage,e)||this.requestKeywordUsage(e)},o.prototype.requestKeywordUsage=function(e){a.post(ajaxurl,{action:this._ajaxAction,post_id:this._postID,keyword:e,taxonomy:this._taxonomy},this.updateKeywordUsage.bind(this,e),"json")},o.prototype.updateKeywordUsage=function(e,t){var n=this,a=window.YoastSEO.analysis.worker;t&&Object(r.isArray)(t)&&(this._keywordUsage[e]=t,this._initialized&&a.sendMessage("updateKeywordUsage",this._keywordUsage,"used-keywords-assessment").then((function(){return n._refreshAnalysis()})))}},,,,,,,,,function(e,t,n){"use strict";var r=n(6),a=n(20),o=n(0),i=n(2),s=n(1),c=n.n(s),l=n(25),u=n(97),p=n(51),d=n(105),m=n(81),f=n(82),h=n(95);function b(e){var t=e.keyphrases,n=e.onNoKeyphraseSet,r=e.onOpen,a=e.location;if(!t.length)return document.querySelector("#focus-keyword-input-sidebar").focus(),void n();r(a)}function g(e,t){Object(m.b)(t)&&e.onClose()}function y(e){var t=e.location,n=e.whichModalOpen,r=Object(o.useCallback)((function(){b(e)}),[b,e]),a=Object(o.useCallback)((function(t){g(e,t)}),[g,e]),s=Object(i.__)("Track SEO performance","wordpress-seo");return Object(o.createElement)(o.Fragment,null,n===t&&Object(o.createElement)(p.a,{title:s,onRequestClose:a,icon:Object(o.createElement)(d.a,null),additionalClassName:"yoast-wincher-seo-performance-modal"},Object(o.createElement)(u.a,{className:"yoast-gutenberg-modal__content yoast-wincher-seo-performance-modal__content"},Object(o.createElement)(h.a,null))),"sidebar"===t&&Object(o.createElement)(f.a,{id:"wincher-open-button-".concat(t),title:s,suffixIcon:{size:"20px",icon:"pencil-square"},prefixIcon:{icon:"chart-square-bar",color:l.colors.$color_grey_medium_dark},onClick:r}))}y.propTypes={location:c.a.string,whichModalOpen:c.a.oneOf(["none","metabox","sidebar","postpublish"])},y.defaultProps={location:"",whichModalOpen:"none"},t.a=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getWincherModalOpen;return{keyphrases:(0,t.getWincherTrackableKeyphrases)(),whichModalOpen:n()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setWincherOpenModal,r=t.setWincherDismissModal,a=t.setWincherNoKeyphrase;return{onOpen:function(e){n(e)},onClose:function(){r()},onNoKeyphraseSet:function(){a()}}}))])(y)},,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(6),a=n(3),o=n(27);function i(e,t){window.YoastSEO.analysis.worker.runResearch("readingTime",new o.Paper(e,{locale:t})).then((function(e){Object(r.dispatch)("yoast-seo/editor").setEstimatedReadingTime(e.result)}))}var s=Object(a.debounce)(i,1500,{maxWait:3e3}),c="",l="",u=null;function p(){var e=Object(r.select)("core/editor").getCurrentPostId(),t=Object(r.select)("core/editor").getCurrentPostType(),n=Object(r.select)("core").getEditedEntityRecord("postType",t,e);if(u!==n){u=n;var a=Object(r.select)("core/editor").getEditedPostAttribute("content"),o=Object(r.select)("yoast-seo/editor").getContentLocale();c===a&&l===o||(c=a,l=o,i(a,o))}}function d(){var e=Object(r.select)("yoast-seo/editor").getEditorDataContent(),t=Object(r.select)("yoast-seo/editor").getContentLocale();c===e&&l===t||(c=e,l=t,i(e,t))}function m(){var e,t,n;!1!==Object(a.get)(window,"wpseoScriptData.analysis.estimatedReadingTimeEnabled",!1)&&(Object(r.dispatch)("yoast-seo/editor").loadEstimatedReadingTime(),"1"===window.wpseoScriptData.isElementorEditor?Object(r.subscribe)(Object(a.debounce)(d,1500,{maxWait:3e3})):"1"===window.wpseoScriptData.isBlockEditor?Object(r.subscribe)(Object(a.debounce)(p,1500,{maxWait:3e3})):(e=["input","change","cut","paste"],t="1"===Object(a.get)(window,"wpseoScriptData.isPost","0")?"content":"description",n=Object(r.select)("yoast-seo/editor").getContentLocale(),jQuery(document).on("tinymce-editor-init",(function(r,a){a.id===t&&e.forEach((function(e){a.on(e,(function(){s(a.getContent(),n)}))}))}))))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"authorFirstName",(function(){return ge})),n.d(r,"authorLastName",(function(){return ye})),n.d(r,"currentDate",(function(){return we})),n.d(r,"currentDay",(function(){return Oe})),n.d(r,"currentMonth",(function(){return ve})),n.d(r,"category",(function(){return je})),n.d(r,"categoryTitle",(function(){return Ee})),n.d(r,"currentYear",(function(){return _e})),n.d(r,"date",(function(){return ke})),n.d(r,"excerpt",(function(){return Te})),n.d(r,"focusKeyphrase",(function(){return Re})),n.d(r,"id",(function(){return Se})),n.d(r,"modified",(function(){return xe})),n.d(r,"name",(function(){return Ce})),n.d(r,"page",(function(){return Pe})),n.d(r,"pageNumber",(function(){return De})),n.d(r,"pageTotal",(function(){return Ae})),n.d(r,"permalink",(function(){return Le})),n.d(r,"postContent",(function(){return qe})),n.d(r,"postDay",(function(){return Ie})),n.d(r,"postMonth",(function(){return Fe})),n.d(r,"postYear",(function(){return Ne})),n.d(r,"postTypeNamePlural",(function(){return Me})),n.d(r,"postTypeNameSingular",(function(){return Ke})),n.d(r,"primaryCategory",(function(){return We})),n.d(r,"searchPhrase",(function(){return Ue})),n.d(r,"separator",(function(){return Be})),n.d(r,"siteDescription",(function(){return Ve})),n.d(r,"siteName",(function(){return He})),n.d(r,"tag",(function(){return Ye})),n.d(r,"term404",(function(){return ze})),n.d(r,"termDescription",(function(){return Ge})),n.d(r,"termHierarchy",(function(){return Ze})),n.d(r,"termTitle",(function(){return Qe})),n.d(r,"title",(function(){return Je})),n.d(r,"userDescription",(function(){return Xe}));var a={};n.r(a),n.d(a,"getAnalysisData",(function(){return Gt}));var o={};n.r(o),n.d(o,"updateData",(function(){return en})),n.d(o,"loadSnippetEditorData",(function(){return tn}));var i=n(6),s=n(112),c=n(129),l=null,u=function(){if(null===l){var e=Object(i.dispatch)("yoast-seo/editor").runAnalysis;l=new c.a(e)}return l},p=function(e){return u()._ready(e)},d=function(e){return u()._reloaded(e)},m=function(e,t,n,r){return u()._registerModification(e,t,n,r)},f=function(e,t){return u()._registerPlugin(e,t)},h=function(e,t,n){return u().loaded?u()._applyModifications(e,t,n):t},b=n(44),g=n(38),y=n.n(g),w=n(16),O=n.n(w),v=n(7),j=n.n(v),E=n(3),_=n(27),k=n(96),T=n(60),R=n(79),S=n(113);function x(){return(x=O()(j.a.mark((function e(t,n){var r,a,o,s,c,l,u,p;return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.text,a=y()(n,["text"]),o=new _.Paper(r,a),e.prev=2,e.next=5,t.analyze(o);case 5:s=e.sent,c=s.result,l=c.seo,u=c.readability,l&&((p=l[""]).results=Object(R.sortResultsByIdentifier)(p.results),Object(i.dispatch)("yoast-seo/editor").setSeoResultsForKeyword(o.getKeyword(),p.results),Object(i.dispatch)("yoast-seo/editor").setOverallSeoScore(p.score,o.getKeyword())),u&&(u.results=Object(R.sortResultsByIdentifier)(u.results),Object(i.dispatch)("yoast-seo/editor").setReadabilityResults(u.results),Object(i.dispatch)("yoast-seo/editor").setOverallReadabilityScore(u.score)),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(2),Object(T.a)();case 14:case"end":return e.stop()}}),e,null,[[2,11]])})))).apply(this,arguments)}var C=Object(E.debounce)((function(_x,e){return x.apply(this,arguments)}),k.refreshDelay);function P(){var e=function(e){return e.title=h("data_page_title",e.title),e.title=h("title",e.title),e.description=h("data_meta_desc",e.description),e.text=h("content",e.text),e}((0,Object(i.select)("yoast-seo/editor").getAnalysisData)());return Object(s.applyFilters)("yoast.analysis.data",e)}var D=n(0),A=n(2),L=n(13),q=n(9),I=n.n(q),F=n(10),N=n.n(F),M=n(18),K=n.n(M),W=n(19),U=n.n(W),B=n(11),V=n.n(B);function H(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=V()(e);if(t){var a=V()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return U()(this,n)}}var Y=function(e){K()(n,e);var t=H(n);function n(e,r,a){var o;return I()(this,n),(o=t.call(this)).hook=e,o.id=r,o.callback=a,o}return N()(n,[{key:"getCommand",value:function(){return this.hook}},{key:"getId",value:function(){return this.id}},{key:"apply",value:function(){return this.callback()}}]),n}($e.modules.hookUI.Base),z=function(e){K()(n,e);var t=H(n);function n(e,r,a){var o;return I()(this,n),(o=t.call(this)).hook=e,o.id=r,o.callback=a,o}return N()(n,[{key:"getCommand",value:function(){return this.hook}},{key:"getId",value:function(){return this.id}},{key:"apply",value:function(){return this.callback()}}]),n}($e.modules.hookData.Base);function $(e,t,n){$e.hooks.registerUIAfter(new Y(e,t,n))}var G=n(120),Z=n(21),Q=n(115);function J(){return Object(D.createElement)(Z.Slot,{name:"YoastElementor"},(function(e){return Object(Q.a)(e)}))}var X=n(20),ee=n(1),te=n.n(ee),ne=n(114),re=n(4);function ae(e){return 0===e.message.length?null:Object(D.createElement)(re.Alert,{type:e.type},e.message)}ae.propTypes={message:te.a.oneOfType([te.a.array,te.a.string]).isRequired,type:te.a.string.isRequired};var oe=Object(i.withSelect)((function(e){return{message:(0,e("yoast-seo/editor").getWarningMessage)(),type:"info"}}))(ae),ie=n(55),se=n(33),ce=n(76),le=n(14),ue=n.n(le),pe=n(26),de=n.n(pe),me=n(124),fe=n(106),he=n(45),be=n(8),ge={name:"author_first_name",label:"Author first name",placeholder:"%%author_first_name%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_first_name","")},regexp:new RegExp("%%author_first_name%%","g")},ye={name:"author_last_name",label:"Author last name",placeholder:"%%author_last_name%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_last_name","")},regexp:new RegExp("%%author_last_name%%","g")},we={name:"currentdate",label:"Current date",placeholder:"%%currentdate%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentdate","")},regexp:new RegExp("%%currentdate%%","g")},Oe={name:"currentday",label:"Current day",placeholder:"%%currentday%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentday","")},regexp:new RegExp("%%currentday%%","g")},ve={name:"currentmonth",label:"Current month",placeholder:"%%currentmonth%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentmonth","")},regexp:new RegExp("%%currentmonth%%","g")},je={name:"category",label:"Category",placeholder:"%%category%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category","")},regexp:new RegExp("%%category%%","g")},Ee={name:"category_title",label:"Category Title",placeholder:"%%category_title%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category_title","")},regexp:new RegExp("%%category_title%%","g")},_e={name:"currentyear",label:"Current year",placeholder:"%%currentyear%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentyear","")},regexp:new RegExp("%%currentyear%%","g")},ke={name:"date",label:"Date",placeholder:"%%date%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.date","")},regexp:new RegExp("%%date%%","g")},Te={name:"excerpt",label:"Excerpt",placeholder:"%%excerpt%%",aliases:[{name:"excerpt_only",label:"Excerpt only",placeholder:"%%excerpt_only%%"}],getReplacement:function(){return Object(i.select)("yoast-seo/editor").getEditorDataExcerptWithFallback()},regexp:new RegExp("%%excerpt%%|%%excerpt_only%%","g")},Re={name:"focuskw",label:"Focus keyphrase",placeholder:"%%focuskw%%",aliases:[],getReplacement:function(){return Object(i.select)("yoast-seo/editor").getFocusKeyphrase()},regexp:new RegExp("%%focuskw%%|%%keyword%%","g")},Se={name:"id",label:"ID",placeholder:"%%id%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.id","")},regexp:new RegExp("%%id%%","g")},xe={name:"modified",label:"Modified",placeholder:"%%modified%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.modified","")},regexp:new RegExp("%%modified%%","g")},Ce={name:"name",label:"Name",placeholder:"%%name%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.name","")},regexp:new RegExp("%%name%%","g")},Pe={name:"page",label:"Page",placeholder:"%%page%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.page","")},regexp:new RegExp("%%page%%","g")},De={name:"pagenumber",label:"Pagenumber",placeholder:"%%pagenumber%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagenumber","")},regexp:new RegExp("%%pagenumber%%","g")},Ae={name:"pagetotal",label:"Pagetotal",placeholder:"%%pagetotal%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagetotal","")},regexp:new RegExp("%%pagetotal%%","g")},Le={name:"permalink",label:"Permalink",placeholder:"%%permalink%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.permalink","")},regexp:new RegExp("%%permalink%%","g")},qe={name:"post_content",label:"Post Content",placeholder:"%%post_content%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_content","")},regexp:new RegExp("%%post_content%%","g")},Ie={name:"post_day",label:"Post Day",placeholder:"%%post_day%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_day","")},regexp:new RegExp("%%post_day%%","g")},Fe={name:"post_month",label:"Post Month",placeholder:"%%post_month%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_month","")},regexp:new RegExp("%%post_month%%","g")},Ne={name:"post_year",label:"Post Year",placeholder:"%%post_year%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_year","")},regexp:new RegExp("%%post_year%%","g")},Me={name:"pt_plural",label:"Post type (plural)",placeholder:"%%pt_plural%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_plural","")},regexp:new RegExp("%%pt_plural%%","g")},Ke={name:"pt_single",label:"Post type (singular)",placeholder:"%%pt_single%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_single","")},regexp:new RegExp("%%pt_single%%","g")},We={name:"primary_category",label:"Primary category",placeholder:"%%primary_category%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.primary_category","")},regexp:new RegExp("%%primary_category%%","g")},Ue={name:"searchphrase",label:"Search phrase",placeholder:"%%searchphrase%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.searchphrase","")},regexp:new RegExp("%%searchphrase%%","g")},Be={name:"sep",label:"Separator",placeholder:"%%sep%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sep","")},regexp:new RegExp("%%sep%%(\\s*%%sep%%)*","g")},Ve={name:"sitedesc",label:"Tagline",placeholder:"%%sitedesc%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitedesc","")},regexp:new RegExp("%%sitedesc%%","g")},He={name:"sitename",label:"Site title",placeholder:"%%sitename%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitename","")},regexp:new RegExp("%%sitename%%","g")},Ye={name:"tag",label:"Tag",placeholder:"%%tag%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.tag","")},regexp:new RegExp("%%tag%%","g")},ze={name:"term404",label:"Term404",placeholder:"%%term404%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term404","")},regexp:new RegExp("%%term404%%","g")},Ge={name:"term_description",label:"Term description",placeholder:"%%term_description%%",aliases:[{name:"tag_description",label:"Tag description",placeholder:"%%tag_description%%"},{name:"category_description",label:"Category description",placeholder:"%%category_description%%"}],getReplacement:function(){return Object(E.get)(window,"YoastSEO.app.rawData.text","")},regexp:new RegExp("%%term_description%%|%%tag_description%%|%%category_description%%","g")},Ze={name:"term_hierarchy",label:"Term hierarchy",placeholder:"%%term_hierarchy%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_hierarchy","")},regexp:new RegExp("%%term_hierarchy%%","g")},Qe={name:"term_title",label:"Term title",placeholder:"%%term_title%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_title","")},regexp:new RegExp("%%term_title%%","g")},Je={name:"title",label:"Title",placeholder:"%%title%%",aliases:[],getReplacement:function(){return Object(i.select)("yoast-seo/editor").getEditorDataTitle()},regexp:new RegExp("%%title%%","g")},Xe={name:"user_description",label:"User description",placeholder:"%%user_description%%",aliases:[],getReplacement:function(){return Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.user_description","")},regexp:new RegExp("%%user_description%%","g")},et=n(28),tt=null,nt=null,rt=function(e){["content","title","snippet_title","snippet_meta","primary_category","data_page_title","data_meta_desc","excerpt"].forEach((function(t){m(t,e,"replaceVariablePlugin",10)}))},at=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(""===e&&(e=Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.scope","")),e){case"post":case"page":return["authorFirstName","authorLastName","category","categoryTitle","currentDate","currentDay","currentMonth","currentYear","date","excerpt","id","focusKeyphrase","modified","name","page","primaryCategory","pageNumber","pageTotal","permalink","postContent","postDay","postMonth","postYear","postTypeNamePlural","postTypeNameSingular","searchPhrase","separator","siteDescription","siteName","tag","title","userDescription"]}return[]},ot=function(e){return rt((function(t){return t.replace(new RegExp(e.placeholder,"g"),e.replacement)}))},it=function(){if(null===nt){nt=[];var e=Object(E.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.hidden_replace_vars",[]);(null===tt&&(tt=at().map((function(e){return r[e]}))),tt).forEach((function(t){var n=e.includes(t.name);nt.push({name:t.name,label:t.label,value:t.placeholder,hidden:n}),t.aliases.forEach((function(e){nt.push({name:e.name,label:e.label,value:e.placeholder,hidden:n})}))}))}return nt};var st=be.strings.stripHTMLTags,ct=function(e,t){var n=Object(i.select)("yoast-seo/editor").getSnippetEditorTemplates();""===e.title&&(e.title=n.title),""===e.description&&(e.description=n.description);var r=0;return t.shortenedBaseUrl&&"string"==typeof t.shortenedBaseUrl&&(r=t.shortenedBaseUrl.length),e.url=e.url.replace(/\s+/g,"-"),"-"===e.url[e.url.length-1]&&(e.url=e.url.slice(0,-1)),"-"===e.url[r]&&(e.url=e.url.slice(0,r)+e.url.slice(r+1)),{url:e.url,title:st(h("data_page_title",e.title)),description:st(h("data_meta_desc",e.description))}},lt=function(e){var t=e.isLoading,n=e.onLoad,r=e.location,a=y()(e,["isLoading","onLoad","location"]);return Object(D.useEffect)((function(){setTimeout((function(){t&&n()}))})),t?null:Object(D.createElement)(fe.a,{icon:"eye",hasPaperStyle:a.hasPaperStyle},Object(D.createElement)(me.SnippetEditor,de()({},a,{descriptionPlaceholder:Object(A.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:ct,showCloseButton:!1,idSuffix:r})))};lt.propTypes={isLoading:te.a.bool.isRequired,onLoad:te.a.func.isRequired,hasPaperStyle:te.a.bool.isRequired,location:te.a.string.isRequired};var ut=Object(X.compose)([Object(i.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getBaseUrlFromSettings,r=t.getDateFromSettings,a=t.getEditorDataImageUrl,o=t.getFocusKeyphrase,i=t.getRecommendedReplaceVars,s=t.getSiteIconUrlFromSettings,c=t.getSnippetEditorData,l=t.getSnippetEditorIsLoading,u=t.getSnippetEditorMode,p=t.getSnippetEditorWordsToHighlight,d=t.isCornerstoneContent,m=t.getContentLocale;return{baseUrl:n(),data:c(),date:r(),faviconSrc:s(),isLoading:l(),keyword:o(),mobileImageSrc:a(),mode:u(),recommendedReplacementVariables:i(),replacementVariables:it(),wordsToHighlight:p(),isCornerstone:d(),locale:m()}})),Object(i.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.updateData,r=t.switchMode,a=t.updateAnalysisData;return{onChange:function(e,t){switch(e){case"mode":r(t);break;case"slug":n({slug:t});break;default:n(ue()({},e,t))}},onChangeAnalysisData:function(e){a(e)},onLoad:t.loadSnippetEditorData}})),Object(he.a)()])(lt),pt=function(){return Object(D.createElement)(ce.a,{title:Object(A.__)("Google preview","wordpress-seo"),id:"yoast-google-preview-modal"},Object(D.createElement)(ut,{showCloseButton:!1,hasPaperStyle:!1}))},dt=n(125),mt=n(23),ft=null,ht=function(){return(ft||(ft=window.wp.media()).on("select",(function(){var e=ft.state().get("selection").first(),t={type:e.attributes.subtype,width:e.attributes.width,height:e.attributes.height};Object(i.dispatch)("yoast-seo/editor").setTwitterPreviewImage({url:e.attributes.url,id:e.attributes.id,warnings:Object(be.validateTwitterImage)(t)})})),ft).open()},bt=Object(X.compose)([Object(i.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getTwitterDescription,r=t.getTwitterTitle,a=t.getTwitterImageUrl,o=t.getFacebookImageUrl,i=t.getFacebookTitle,s=t.getFacebookDescription,c=t.getDescription,l=t.getSeoTitle,u=t.getTwitterWarnings,p=t.getTwitterImageType,d=t.getEditorDataImageFallback,m=t.getRecommendedReplaceVars,f=t.getSiteUrl,h=t.getSeoTitleTemplate,b=t.getSeoTitleTemplateNoFallback,g=t.getSocialTitleTemplate,y=t.getSeoDescriptionTemplate,w=t.getSocialDescriptionTemplate,O=t.getEditorDataExcerptWithFallback;return{imageUrl:a(),imageFallbackUrl:o()||d(),recommendedReplacementVariables:m(),replacementVariables:it(),description:n(),descriptionPreviewFallback:w()||s()||c()||y()||O()||"",title:r(),titlePreviewFallback:g()||i()||l()||b()||h()||"",imageWarnings:u(),siteUrl:f(),isPremium:!!Object(mt.a)().isPremium,isLarge:"summary"!==p(),titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Twitter"}})),Object(i.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setTwitterPreviewTitle,r=t.setTwitterPreviewDescription,a=t.clearTwitterPreviewImage,o=t.loadTwitterPreviewData;return{onSelectImageClick:ht,onRemoveImageClick:a,onDescriptionChange:r,onTitleChange:n,onLoad:o}})),Object(he.a)()])(dt.a),gt=function(){return Object(D.createElement)(ce.a,{title:Object(A.__)("Twitter preview","wordpress-seo"),id:"yoast-twitter-preview-modal"},Object(D.createElement)(bt,null))},yt=n(127),wt=null,Ot=function(){return(wt||(wt=window.wp.media()).on("select",(function(){var e=wt.state().get("selection").first(),t={type:e.attributes.subtype,width:e.attributes.width,height:e.attributes.height};Object(i.dispatch)("yoast-seo/editor").setFacebookPreviewImage({url:e.attributes.url,id:e.attributes.id,warnings:Object(be.validateFacebookImage)(t)})})),wt).open()},vt=Object(X.compose)([Object(i.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getFacebookDescription,r=t.getDescription,a=t.getFacebookTitle,o=t.getSeoTitle,i=t.getFacebookImageUrl,s=t.getEditorDataImageFallback,c=t.getFacebookWarnings,l=t.getRecommendedReplaceVars,u=t.getSiteUrl,p=t.getSeoTitleTemplate,d=t.getSeoTitleTemplateNoFallback,m=t.getSocialTitleTemplate,f=t.getSeoDescriptionTemplate,h=t.getSocialDescriptionTemplate,b=t.getEditorDataExcerptWithFallback;return{imageUrl:i(),imageFallbackUrl:s(),recommendedReplacementVariables:l(),replacementVariables:it(),description:n(),descriptionPreviewFallback:h()||r()||f()||b()||"",title:a(),titlePreviewFallback:m()||o()||d()||p()||"",imageWarnings:c(),siteUrl:u(),isPremium:!!Object(mt.a)().isPremium,titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Facebook"}})),Object(i.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setFacebookPreviewTitle,r=t.setFacebookPreviewDescription,a=t.clearFacebookPreviewImage,o=t.loadFacebookPreviewData;return{onSelectImageClick:Ot,onRemoveImageClick:a,onDescriptionChange:r,onTitleChange:n,onLoad:o}})),Object(he.a)()])(yt.a),jt=function(){return Object(D.createElement)(ce.a,{title:Object(A.__)("Facebook preview","wordpress-seo"),id:"yoast-facebook-preview-modal"},Object(D.createElement)(vt,null))},Et=n(72),_t=n(118),kt=n(119),Tt=n(109),Rt=n(140);function St(e){var t=e.isLoading,n=e.onLoad,r=e.settings;return Object(D.useEffect)((function(){setTimeout((function(){t&&n()}))})),t?null:Object(D.createElement)(Z.Fill,{name:"YoastElementor"},Object(D.createElement)(se.a,{renderPriority:1},Object(D.createElement)(oe,null)),r.isKeywordAnalysisActive&&Object(D.createElement)(se.a,{renderPriority:8},Object(D.createElement)(ie.KeywordInput,{isSEMrushIntegrationActive:r.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&Object(D.createElement)(Z.Fill,{name:"YoastRelatedKeyphrases"},Object(D.createElement)(Tt.a,null))),Object(D.createElement)(se.a,{renderPriority:23},Object(D.createElement)(pt,null)),r.displayFacebook&&Object(D.createElement)(se.a,{renderPriority:24},Object(D.createElement)(jt,null)),r.displayTwitter&&Object(D.createElement)(se.a,{renderPriority:25},Object(D.createElement)(gt,null)),r.displaySchemaSettings&&Object(D.createElement)(se.a,{renderPriority:26},Object(D.createElement)(Et.a,{title:Object(A.__)("Schema","wordpress-seo")},Object(D.createElement)(_t.a,null))),r.displayAdvancedTab&&Object(D.createElement)(se.a,{renderPriority:27},Object(D.createElement)(Et.a,{title:Object(A.__)("Advanced","wordpress-seo")},Object(D.createElement)(kt.a,{location:"sidebar"}))),r.isContentAnalysisActive&&Object(D.createElement)(se.a,{renderPriority:10},Object(D.createElement)(ie.ReadabilityAnalysis,null)),r.isKeywordAnalysisActive&&Object(D.createElement)(se.a,{renderPriority:20},Object(D.createElement)(ie.SeoAnalysis,{shouldUpsell:r.shouldUpsell,shouldUpsellWordFormRecognition:r.isWordFormRecognitionActive})),r.isKeywordAnalysisActive&&r.isWincherIntegrationActive&&Object(D.createElement)(se.a,{key:"wincher-seo-performance",renderPriority:21},Object(D.createElement)(Rt.a,{location:"sidebar"})),r.isCornerstoneActive&&Object(D.createElement)(se.a,{renderPriority:30},Object(D.createElement)(ne.a,null)))}St.propTypes={isLoading:te.a.bool.isRequired,onLoad:te.a.func.isRequired,settings:te.a.object.isRequired};var xt,Ct=Object(X.compose)([Object(i.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getPreferences,r=t.getSnippetEditorIsLoading;return{settings:n(),isLoading:r()}})),Object(i.withDispatch)((function(e){return{onLoad:e("yoast-seo/editor").loadSnippetEditorData}}))])(St),Pt=!1;function Dt(e){e.oldValue=e.value}function At(){xt.forEach((function(e){return Dt(e)}))}var Lt=Object(E.debounce)((function(){var e;Pt&&(
62
  /* Translators: %1$s translates to the Post Label in singular form */
63
- e=Object(A.sprintf)(Object(A.__)("Unfortunately we cannot save changes to your SEO settings while you are working on a draft of an already-published %1$s. If you want to save your SEO changes, make sure to click 'Update', or wait to make your SEO changes until you are ready to update the %1$s.","wordpress-seo"),window.wpseoAdminL10n.postTypeNameSingular.toLowerCase())),"draft"===window.elementor.settings.page.model.get("post_status")&&(e=""),Object(i.dispatch)("yoast-seo/editor").setWarningMessage(e)}),500,{trailing:!0});function qt(e){"yoast_wpseo_linkdex"!==e.name&&"yoast_wpseo_content_score"!==e.name&&"yoast_wpseo_words_for_linking"!==e.name&&e.value!==e.oldValue&&(Pt=!0,Lt(),window.$e.internal("document/save/set-is-modified",{status:!0}),Dt(e))}function It(e){Pt=!1;var t=jQuery(e).serializeArray().reduce((function(e,t){var n=t.name,r=t.value;return e[n]=r,e}),{});jQuery.post(e.getAttribute("action"),t,(function(e,n,r){var a=e.success,o=e.data;a?(Object(s.doAction)("yoast.elementor.save.success",r),o.slug&&o.slug!==t.slug&&Object(i.dispatch)("yoast-seo/editor").updateData({slug:o.slug}),At(),Lt()):Pt=!0}))}function Ft(){window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=G.a,window.$e.routes.on("run:after",(function(e,t){"panel/page-settings/yoast-tab"===t&&Object(G.b)("elementor-panel-page-settings-controls",Object(D.createElement)(L.StyleSheetManager,{target:document.getElementById("elementor-panel-inner")},Object(D.createElement)("div",{className:"yoast yoast-elementor-panel__fills"},Object(D.createElement)(J,null),Object(D.createElement)(Ct,null))))})),window.elementor.settings.page.model.on("change",(function(e){e.changed&&e.changed.post_status&&Lt()}));var e,t=It.bind(null,document.getElementById("yoast-form"));e=function(){window.elementor.config.document.id===window.elementor.config.document.revisions.current_id&&t()},$e.hooks.registerDataAfter(new z("document/save/save","yoast-seo-save",e)),window.elementor.modules.layouts.panel.pages.menu.Menu.addItem({name:"yoast",icon:"yoast yoast-element-menu-icon",title:"Yoast SEO",type:"page",callback:function(){try{window.$e.routes.run("panel/page-settings/yoast-tab")}catch(e){window.$e.routes.run("panel/page-settings/settings"),window.$e.routes.run("panel/page-settings/yoast-tab")}}},"more"),xt=document.querySelectorAll("input[name^='yoast']"),At(),setInterval((function(){return xt.forEach(qt)}),500)}var Nt=n(151),Mt=n(17),Kt=n(83),Wt=Mt.selectors.getBaseUrlFromSettings,Ut=Mt.selectors.getContentLocale,Bt=Mt.selectors.getEditorDataContent,Vt=Mt.selectors.getFocusKeyphrase,Ht=Mt.selectors.getSnippetEditorDescriptionWithTemplate,Yt=Mt.selectors.getSnippetEditorSlug,zt=Mt.selectors.getSnippetEditorTitleWithTemplate,$t=Mt.selectors.getDateFromSettings,Gt=function(e){var t=zt(e),n=Ht(e),r=Yt(e),a=Wt(e);return t=be.strings.stripHTMLTags(h("data_page_title",t)),n=be.strings.stripHTMLTags(h("data_meta_desc",n)),r=r.trim().replace(/\s+/g,"-"),{text:Bt(e),title:t,keyword:Vt(e),description:n,locale:Ut(e),titleWidth:Object(Kt.a)(t),url:r,permalink:a+r,date:$t(e)}},Zt=n(130),Qt=function(){function e(){I()(this,e)}return N()(e,null,[{key:"titleElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_title":"hidden_wpseo_title")}},{key:"descriptionElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_metadesc":"hidden_wpseo_desc")}},{key:"slugElement",get:function(){return document.getElementById("yoast_wpseo_slug")}},{key:"title",get:function(){return e.titleElement.value},set:function(t){e.titleElement.value=t}},{key:"description",get:function(){return e.descriptionElement.value},set:function(t){e.descriptionElement.value=t}},{key:"slug",get:function(){return e.slugElement.value},set:function(t){e.slugElement.value=t}}]),e}(),Jt=Mt.actions.UPDATE_DATA,Xt=Mt.actions.LOAD_SNIPPET_EDITOR_DATA;function en(e){if(e.hasOwnProperty("title")){var t=e.title;e.title===Object(E.get)(window,"wpseoScriptData.metabox.title_template","")&&(t=""),Qt.title=t}if(e.hasOwnProperty("description")){var n=e.description;e.description===Object(E.get)(window,"wpseoScriptData.metabox.metadesc_template","")&&(n=""),Qt.description=n}return e.hasOwnProperty("slug")&&(Qt.slug=e.slug),{type:Jt,data:e}}var tn=function(){var e=Object(E.get)(window,"wpseoScriptData.metabox.title_template",""),t=Object(E.get)(window,"wpseoScriptData.metabox.metadesc_template","");return{type:Xt,data:{title:Qt.title||e,description:Qt.description||t,slug:Qt.slug},templates:{title:e,description:t}}};function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nn(Object(n),!0).forEach((function(t){ue()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var an=n(131),on={content:"",title:"",excerpt:"",slug:"",imageUrl:""};function sn(e){var t=window.elementor.settings.page.model.get("post_featured_image"),n=Object(E.get)(t,"url","");return""===n?function(e){var t=_.languageProcessing.imageInText(e),n="";if(0===t.length)return"";do{var r=t.shift(),a=(r=jQuery(r)).prop("src");a&&(n=a)}while(""===n&&t.length>0);return n}(e):n}var cn=Object(E.debounce)((function(){var e=window.elementor.documents.getCurrent();if(["wp-post","wp-page"].includes(e.config.type)){var t,n={content:t=function(e){var t=[];return e.$element.find(".elementor-widget-container").each((function(e,n){t.push(n.innerHTML.trim())})),t.join("")}(e),title:window.elementor.settings.page.model.get("post_title"),excerpt:window.elementor.settings.page.model.get("post_excerpt")||"",imageUrl:sn(t)};n.content!==on.content&&(on.content=n.content,Object(i.dispatch)("yoast-seo/editor").setEditorDataContent(on.content)),n.title!==on.title&&(on.title=n.title,Object(i.dispatch)("yoast-seo/editor").setEditorDataTitle(on.title)),n.excerpt!==on.excerpt&&(on.excerpt=n.excerpt,Object(i.dispatch)("yoast-seo/editor").setEditorDataExcerpt(on.excerpt)),n.imageUrl!==on.imageUrl&&(on.imageUrl=n.imageUrl,Object(i.dispatch)("yoast-seo/editor").setEditorDataImageUrl(on.imageUrl))}}),500);function ln(e,t){var n=Object(i.dispatch)("yoast-seo/editor").updateWordsToHighlight;e("morphology",new _.Paper("",{keyword:t})).then((function(e){var t=e.result.keyphraseForms;n(Object(E.uniq)(Object(E.flatten)(t)))})).catch((function(){n([])}))}var un=Object(E.debounce)(ln,500);function pn(){var e,t,n,c;window.YoastSEO=window.YoastSEO||{},window.YoastSEO.store=(function(e){e.dispatch(Mt.actions.loadCornerstoneContent()),e.dispatch(Mt.actions.loadFocusKeyword()),e.dispatch(Mt.actions.setMarkerStatus("hidden")),e.dispatch(Mt.actions.setSettings({socialPreviews:{sitewideImage:window.wpseoScriptData.metabox.sitewide_social_image,siteName:window.wpseoScriptData.metabox.site_name,contentImage:window.wpseoScriptData.metabox.first_content_image,twitterCardType:window.wpseoScriptData.metabox.twitterCardType},snippetEditor:{baseUrl:window.wpseoScriptData.metabox.base_url,date:window.wpseoScriptData.metabox.metaDescriptionDate,recommendedReplacementVariables:window.wpseoScriptData.analysis.plugins.replaceVars.recommended_replace_vars,siteIconUrl:window.wpseoScriptData.metabox.siteIconUrl}}));var t=window.wpseoScriptData.metabox.showSocial,n=t.facebook,r=t.twitter;n&&e.dispatch(Mt.actions.loadFacebookPreviewData()),r&&e.dispatch(Mt.actions.loadTwitterPreviewData()),e.dispatch(Mt.actions.setSEMrushChangeCountry(window.wpseoScriptData.metabox.countryCode)),e.dispatch(Mt.actions.setSEMrushLoginStatus(window.wpseoScriptData.metabox.SEMrushLoginStatus)),e.dispatch(Mt.actions.setWincherLoginStatus(window.wpseoScriptData.metabox.wincherLoginStatus,!1)),e.dispatch(Mt.actions.setWincherWebsiteId(window.wpseoScriptData.metabox.wincherWebsiteId)),e.dispatch(Mt.actions.setWincherAutomaticKeyphaseTracking(window.wpseoScriptData.metabox.wincherAutoAddKeyphrases))}(c=Object(i.registerStore)("yoast-seo/editor",{reducer:Object(i.combineReducers)(Mt.reducers),selectors:rn(rn({},Mt.selectors),a),actions:Object(E.pickBy)(rn(rn({},Mt.actions),o),(function(e){return"function"==typeof e})),controls:Zt})),c),$("editor/documents/attach-preview","yoast-seo-content-scraper-attach-preview",cn),$("document/save/set-is-modified","yoast-seo-content-scraper-on-modified",cn),window.YoastSEO.pluginReady=p,window.YoastSEO.pluginReloaded=d,window.YoastSEO.registerModification=m,window.YoastSEO.registerPlugin=f,window.YoastSEO.applyModifications=h,window.YoastSEO.analysis=window.YoastSEO.analysis||{},window.YoastSEO.analysis.run=Object(i.dispatch)("yoast-seo/editor").runAnalysis,window.YoastSEO.analysis.worker=function(){var e=Object(i.select)("yoast-seo/editor"),t=e.getAnalysisTimestamp,n=e.isCornerstoneContent,r=Object(S.a)();r.initialize(Object(S.b)({useCornerstone:n()})).catch(T.a);var a=P(),o=n(),s=t();return Object(i.subscribe)((function(){var e=n(),i=P(),c=t();if(e!==o)return o=e,a=i,void r.initialize({useCornerstone:e}).then((function(){return C(r,i)})).catch(T.a);c===s&&!1!==Object(E.isEqual)(i,a)||(a=i,s=c,C(r,i))})),r}(),window.YoastSEO.analysis.collectData=P,f("replaceVariablePlugin",{status:"ready"}),at().forEach((function(e){var t,n,a,o=(n=(t=r[e]).getReplacement,a=t.regexp,function(e){return e.replace(a,n())});rt(o)})),window.YoastSEO.wp=window.YoastSEO.wp||{},window.YoastSEO.wp.replaceVarsPlugin={addReplacement:ot,ReplaceVar:et.a},function(){var e=Object(mt.a)(),t=Object(E.get)(window,["wpseoScriptData","analysis","worker","keywords_assessment_url"],"used-keywords-assessment.js"),n=new an.a("get_focus_keyword_usage",e,Object(i.dispatch)("yoast-seo/editor").runAnalysis,t);n.init();var r="";Object(i.subscribe)((function(){var e=Object(i.select)("yoast-seo/editor").getFocusKeyphrase();e!==r&&(r=e,n.setKeyword(e))}))}(),Object(Nt.a)(),e=window.YoastSEO.analysis.worker.runResearch,t=Object(i.select)("yoast-seo/editor").getFocusKeyphrase,n=t(),ln(e,n),Object(i.subscribe)((function(){var r=t();n!==r&&(n=r,un(e,r))})),function(){if(!0!==window.elementor.config.user.introduction["yoast-introduction"]){var e=new window.elementorModules.editor.utils.Introduction({introductionKey:"yoast-introduction",dialogOptions:{id:"yoast-introduction",className:"elementor-right-click-introduction",headerMessage:Object(A.__)("New: Yoast SEO for Elementor","wordpress-seo"),message:Object(A.__)("Get started with Yoast SEO's content analysis for Elementor!","wordpress-seo"),position:{my:"left top",at:"right top",autoRefresh:!0},hide:{onOutsideClick:!1}},onDialogInitCallback:function(t){window.$e.routes.on("run:after",(function(e,n){"panel/menu"===n&&t.getElements("ok").trigger("click")})),t.addButton({name:"ok",text:Object(A.__)("Got it","wordpress-seo"),callback:function(){return e.setViewed()}}),t.getElements("ok").addClass("elementor-button elementor-button-success")}});setTimeout((function t(){try{e.show(window.elementor.getPanelView().header.currentView.ui.menuButton[0])}catch(e){setTimeout(t,100)}}),100)}}(),Ft(),Object(s.doAction)("yoast.elementor.loaded")}Object(b.setYoastComponentsL10n)(),Object(b.setWordPressSeoL10n)(),jQuery(window).on("elementor:init",(function(){window.elementor.on("panel:init",(function(){setTimeout(pn)}))}))}]);
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=204)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.yoast.propTypes},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.lodash},function(e,t){e.exports=window.yoast.componentsNew},function(e,t){e.exports=window.React},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.regeneratorRuntime},function(e,t){e.exports=window.yoast.helpers},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=window.yoast.styledComponents},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},function(e,t){function n(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(a,o){var i=e.apply(t,r);function s(e){n(i,a,o,s,c,"next",e)}function c(e){n(i,a,o,s,c,"throw",e)}s(void 0)}))}}},function(e,t){e.exports=window.yoast.externals.redux},function(e,t,n){var r=n(43);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(34),a=n(12);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t}},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.wp.components},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3);function a(){return Object(r.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}},function(e,t,n){var r=n(66),a=n(67),o=n(68);e.exports=function(e){return r(e)||a(e)||o()}},function(e,t){e.exports=window.yoast.styleGuide},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){e.exports=window.yoast.analysis},function(e,t,n){"use strict";var r=n(3),a={source:"wpseoScriptData.analysis.plugins.replaceVars",scope:[],aliases:[]},o=function(e,t,n){this.placeholder=e,this.replacement=t,this.options=Object(r.defaults)(n,a)};o.prototype.getPlaceholder=function(e){return(e=e||!1)&&this.hasAlias()?this.placeholder+"|"+this.getAliases().join("|"):this.placeholder},o.prototype.setSource=function(e){this.options.source=e},o.prototype.hasScope=function(){return!Object(r.isEmpty)(this.options.scope)},o.prototype.addScope=function(e){this.hasScope()||(this.options.scope=[]),this.options.scope.push(e)},o.prototype.inScope=function(e){return!this.hasScope()||Object(r.indexOf)(this.options.scope,e)>-1},o.prototype.hasAlias=function(){return!Object(r.isEmpty)(this.options.aliases)},o.prototype.addAlias=function(e){this.hasAlias()||(this.options.aliases=[]),this.options.aliases.push(e)},o.prototype.getAliases=function(){return this.options.aliases},t.a=o},function(e,t,n){var r=n(59),a=n(60),o=n(61);e.exports=function(e,t){return r(e)||a(e,t)||o()}},function(e,t){e.exports=window.yoast.externals.contexts},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=s(n(5)),o=s(n(89)),i=s(n(92));function s(e){return e&&e.__esModule?e:{default:e}}var c=void 0;t.default=function(e){var t=e.mixedString,n=e.components,s=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(s)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var l=(0,i.default)(t);try{return function e(t,n){var i,s,l,u,p,d,m,f,h=[],b={};for(d=0;d<t.length;d++)if("string"!==(p=t[d]).type){if(!n.hasOwnProperty(p.value)||void 0===n[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(n[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){i=n[p.value],l=d;break}h.push(n[p.value])}else h.push(p.value);return i&&(u=function(e,t){var n,r,a=t[e],o=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){o++;continue}if("componentClose"===n.type){if(0===o)return r;o--}}throw new Error("Missing closing component token `"+a.value+"`")}(l,t),m=e(t.slice(l+1,u),n),s=a.default.cloneElement(i,{},m),h.push(s),u<t.length-1&&(f=e(t.slice(u+1),n),h=h.concat(f))),1===h.length?h[0]:(h.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,o.default)(b))}(l,n)}catch(e){if(s)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return y})),n.d(t,"e",(function(){return O})),n.d(t,"f",(function(){return j}));var r=n(16),a=n.n(r),o=n(7),i=n.n(o),s=n(36),c=n.n(s),l=n(3);function u(_x){return p.apply(this,arguments)}function p(){return(p=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c()(t);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),!e.t0.error||!e.t0.status){e.next=10;break}return e.abrupt("return",e.t0);case 10:if(!(e.t0 instanceof Response)){e.next=14;break}return e.next=13,e.t0.json();case 13:return e.abrupt("return",e.sent);case 14:return e.abrupt("return",!1);case 15:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function d(e,t,n){return m.apply(this,arguments)}function m(){return(m=a()(i.a.mark((function e(t,n,r){var a,o,s=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=s.length>3&&void 0!==s[3]?s[3]:200,e.prev=1,e.next=4,t();case 4:if(!(o=e.sent)){e.next=9;break}if(o.status!==a){e.next=8;break}return e.abrupt("return",n(o));case 8:return e.abrupt("return",r(o));case 9:return e.abrupt("return",!1);case 12:e.prev=12,e.t0=e.catch(1),console.error(e.t0.message);case 15:case"end":return e.stop()}}),e,null,[[1,12]])})))).apply(this,arguments)}function f(){return h.apply(this,arguments)}function h(){return(h=a()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u({path:"yoast/v1/wincher/authorization-url",method:"GET"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(e){return g.apply(this,arguments)}function g(){return(g=a()(i.a.mark((function e(t){var n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.code,r=t.websiteId,e.next=3,u({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:n,websiteId:r}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(){return w.apply(this,arguments)}function w(){return(w=a()(i.a.mark((function e(){var t,n,r,a=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:null,n=a.length>1&&void 0!==a[1]?a[1]:null,r=a.length>2?a[2]:void 0,e.next=5,u({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:t,permalink:n},signal:r});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e){return v.apply(this,arguments)}function v(){return(v=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(l.isArray)(t)||(t=[t]),e.next=3,u({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:t}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e){return E.apply(this,arguments)}function E(){return(E=a()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:t}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),i=function(e){var t=e.children;return Object(r.createElement)("div",null,t)};i.propTypes={renderPriority:o.a.number.isRequired,children:o.a.node.isRequired},t.a=i},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},,function(e,t){e.exports=window.wp.apiFetch},,function(e,t,n){var r=n(79);e.exports=function(e,t){if(null==e)return{};var n,a,o=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t){e.exports=window.wp.url},,,,function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(14),a=n.n(r),o=n(20),i=n(0),s=n(30);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(){return Object(o.createHigherOrderComponent)((function(e){return Object(o.pure)((function(t){var n=Object(i.useContext)(s.LocationContext);return Object(i.createElement)(e,l(l({},t),{},{location:n}))}))}),"withLocation")}},,function(e,t){e.exports=window.yoast.replacementVariableEditor},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(23),a=n(3);function o(){var e=Object(r.a)();return 1===Object(a.get)(e,"keywordAnalysisActive",0)}},function(e,t){e.exports=window.yoast.components},function(e,t,n){"use strict";n.d(t,"b",(function(){return T}));var r=n(26),a=n.n(r),o=n(38),i=n.n(o),s=n(14),c=n.n(s),l=n(9),u=n.n(l),p=n(10),d=n.n(p),m=n(12),f=n.n(m),h=n(18),b=n.n(h),g=n(19),y=n.n(g),w=n(11),O=n.n(w),v=n(0),j=n(1),E=n.n(j);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var T=E.a.shape({value:E.a.string.isRequired,onChange:E.a.func.isRequired});t.a=function(e){return function(t){return function(n){b()(l,n);var r,o,s=(r=l,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=O()(r);if(o){var n=O()(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return y()(this,e)});function l(t){var n;u()(this,l),(n=s.call(this,t)).elements={};var r={};return n.fields=e(t),n.fields.forEach((function(e){var t=e.name,a=e.fieldId,o=document.getElementById(a);o&&(n.elements[t]=o,r[t]={value:o.value,onChange:n.onChange.bind(f()(n),t)})})),n.state=r,n}return d()(l,[{key:"onChange",value:function(e,t){var n=this;this.setState(k(k({},this.state),{},c()({},e,k(k({},this.state[e]),{},{value:t}))),(function(){n.elements[e]&&(n.elements[e].value=t)}))}},{key:"render",value:function(){var e=this.props,n=e.children,r=i()(e,["children"]);return Object(v.createElement)(t,a()({},r,this.state),n)}}],[{key:"propTypes",get:function(){return{children:E.a.node}}}]),l}(v.Component)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return p}));var r=n(26),a=n.n(r),o=n(38),i=n.n(o),s=n(0),c=n(1),l=n.n(c),u=n(21),p="yoast yoast-gutenberg-modal",d=function(e){var t=e.title,n=e.className,r=e.showYoastIcon,o=e.additionalClassName,c=i()(e,["title","className","showYoastIcon","additionalClassName"]),l=r?Object(s.createElement)("span",{className:"yoast-icon"}):null;return Object(s.createElement)(u.Modal,a()({title:t,className:"".concat(n," ").concat(o),icon:l},c),e.children)};d.propTypes={title:l.a.string,className:l.a.string,showYoastIcon:l.a.bool,children:l.a.oneOfType([l.a.node,l.a.arrayOf(l.a.node)]),additionalClassName:l.a.string},d.defaultProps={title:"Yoast SEO",className:p,showYoastIcon:!0,children:null,additionalClassName:""},t.a=d},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=n(23);function o(){var e=Object(a.a)();return Object(r.get)(e,"contentLocale","en_US")}},function(e,t,n){"use strict";var r,a=n(15),o=n.n(a),i=n(25),s=n(8),c=n(13),l=n.n(c),u=Object(s.makeOutboundLink)(l.a.a(r||(r=o()(["\n\tdisplay: inline-block;\n\tposition: relative;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 100%;\n\twidth: 24px;\n\theight: 24px;\n\tmargin: -4px 0;\n\tvertical-align: middle;\n\n\tcolor: ",";\n\t\n\t&:hover,\n\t&:focus {\n\t\tcolor: ",";\t\n\t}\n\t\n\t// Overwrite the default blue active color for links.\n\t&:active {\n\t\tcolor: ",';\t\n\t}\n\n\t&::before {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tpadding: 2px;\n\t\tcontent: "\f223";\n\t}\n'],["\n\tdisplay: inline-block;\n\tposition: relative;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 100%;\n\twidth: 24px;\n\theight: 24px;\n\tmargin: -4px 0;\n\tvertical-align: middle;\n\n\tcolor: ",";\n\t\n\t&:hover,\n\t&:focus {\n\t\tcolor: ",";\t\n\t}\n\t\n\t// Overwrite the default blue active color for links.\n\t&:active {\n\t\tcolor: ",';\t\n\t}\n\n\t&::before {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tpadding: 2px;\n\t\tcontent: "\\f223";\n\t}\n'])),i.colors.$color_help_text,i.colors.$color_snippet_focus,i.colors.$color_help_text));t.a=u},,function(e,t){e.exports=window.yoast.externals.components},,,function(e,t,n){"use strict";var r=n(24),a=n.n(r),o=n(0),i=n(1),s=n.n(i),c=n(2),l=function(e){var t=e.data,n=e.mapChartDataToTableData,r=e.dataTableCaption,a=e.dataTableHeaderLabels,i=e.isDataTableVisuallyHidden;return t.length!==a.length?Object(o.createElement)("p",null,Object(c.__)("The number of headers and header labels don't match.","wordpress-seo")):Object(o.createElement)("div",{className:i?"screen-reader-text":null},Object(o.createElement)("table",null,Object(o.createElement)("caption",null,r),Object(o.createElement)("thead",null,Object(o.createElement)("tr",null,a.map((function(e,t){return Object(o.createElement)("th",{key:t},e)})))),Object(o.createElement)("tbody",null,Object(o.createElement)("tr",null,t.map((function(e,t){return Object(o.createElement)("td",{key:t},n(e.y))}))))))};l.propTypes={data:s.a.arrayOf(s.a.shape({x:s.a.number,y:s.a.number})).isRequired,mapChartDataToTableData:s.a.func,dataTableCaption:s.a.string.isRequired,dataTableHeaderLabels:s.a.array.isRequired,isDataTableVisuallyHidden:s.a.bool},l.defaultProps={mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};var u=l,p=function(e){var t=e.data,n=e.width,r=e.height,i=e.fillColor,s=e.strokeColor,c=e.strokeWidth,l=e.className,p=e.mapChartDataToTableData,d=e.dataTableCaption,m=e.dataTableHeaderLabels,f=e.isDataTableVisuallyHidden,h=Math.max(1,Math.max.apply(Math,a()(t.map((function(e){return e.x}))))),b=Math.max(1,Math.max.apply(Math,a()(t.map((function(e){return e.y}))))),g=r-c,y=t.map((function(e){var t=e.x/h*n,r=g-e.y/b*g+c;return"".concat(t,",").concat(r)})).join(" "),w="0,".concat(g+c," ")+y+" ".concat(n,",").concat(g+c);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("svg",{width:n,height:r,viewBox:"0 0 ".concat(n," ").concat(r),className:l,role:"img","aria-hidden":"true",focusable:"false"},Object(o.createElement)("polygon",{fill:i,points:w}),Object(o.createElement)("polyline",{fill:"none",stroke:s,strokeWidth:c,strokeLinejoin:"round",strokeLinecap:"round",points:y})),p&&Object(o.createElement)(u,{data:t,mapChartDataToTableData:p,dataTableCaption:d,dataTableHeaderLabels:m,isDataTableVisuallyHidden:f}))};p.propTypes={data:s.a.arrayOf(s.a.shape({x:s.a.number,y:s.a.number})).isRequired,width:s.a.number.isRequired,height:s.a.number.isRequired,fillColor:s.a.string,strokeColor:s.a.string,strokeWidth:s.a.number,className:s.a.string,mapChartDataToTableData:s.a.func,dataTableCaption:s.a.string.isRequired,dataTableHeaderLabels:s.a.array.isRequired,isDataTableVisuallyHidden:s.a.bool},p.defaultProps={fillColor:null,strokeColor:"#000000",strokeWidth:1,className:"",mapChartDataToTableData:null,isDataTableVisuallyHidden:!0},t.a=p},,function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],_n=!0,r=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(_n=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,a=e}finally{try{_n||null==i.return||i.return()}finally{if(r)throw a}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){"use strict";function r(){}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(23),a=n(3);function o(){var e=Object(r.a)();return 1===Object(a.get)(e,"contentAnalysisActive",0)}},function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},,function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),i=n(13),s=n(30),c=function(e){var t=e.theme,n=e.location,a=e.children;return Object(r.createElement)(s.LocationProvider,{value:n},Object(r.createElement)(i.ThemeProvider,{theme:t},a))};c.propTypes={theme:o.a.object.isRequired,location:o.a.oneOf(["sidebar","metabox","modal"]).isRequired,children:o.a.element.isRequired},t.a=c},function(e,t){e.exports=window.moment},function(e,t,n){"use strict";var r=n(29),a=n.n(r),o=n(0),i=n(4),s=n(1),c=n.n(s),l=function(e){var t=Object(o.useState)(!1),n=a()(t,2),r=n[0],s=n[1],c=e.prefixIcon;return Object(o.createElement)("div",{className:"yoast components-panel__body ".concat(r?"is-opened":"")},Object(o.createElement)("h2",{className:"components-panel__body-title"},Object(o.createElement)("button",{onClick:function(){s(!r)},className:"components-button components-panel__body-toggle"},Object(o.createElement)("span",{className:"yoast-icon-span",style:{fill:"".concat(c&&c.color||"")}},c&&Object(o.createElement)(i.SvgIcon,{icon:c.icon,color:c.color,size:c.size})),Object(o.createElement)("span",{className:"yoast-title-container"},Object(o.createElement)("div",{className:"yoast-title"},e.title),Object(o.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),Object(o.createElement)("span",{className:"yoast-chevron","aria-hidden":"true"}))),r&&e.children)};t.a=l,l.propTypes={title:c.a.string.isRequired,children:c.a.oneOfType([c.a.node,c.a.arrayOf(c.a.node)]).isRequired,prefixIcon:c.a.object,subTitle:c.a.string},l.defaultProps={prefixIcon:null,subTitle:""}},,,function(e,t){e.exports=window.yoast.featureFlag},function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(80);t.a=Object(r.compose)([Object(a.withSelect)((function(e,t){var n=e("yoast-seo/editor"),r=n.getPostOrPageString,a=n.getIsModalOpen;return{postTypeName:r(),isOpen:a(t.id)}})),Object(a.withDispatch)((function(e,t){var n=e("yoast-seo/editor"),r=n.openEditorModal;return{open:function(){return r(t.id)},close:n.closeEditorModal}}))])(o.a)},function(e,t,n){"use strict";n.d(t,"b",(function(){return _}));var r=n(14),a=n.n(r),o=n(9),i=n.n(o),s=n(10),c=n.n(s),l=n(12),u=n.n(l),p=n(18),d=n.n(p),m=n(19),f=n.n(m),h=n(11),b=n.n(h),g=n(0),y=n(2),w=n(4),O=n(1),v=n.n(O),j=n(49);var E=function(e){d()(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=b()(t);if(n){var a=b()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return f()(this,e)});function o(e){var t;return i()(this,o),(t=r.call(this,e)).initialPageType=e.pageType.value,t.initialArticleType=e.articleType?e.articleType.value:"None",t.state={schema_page_type:t.initialPageType,schema_article_type:t.initialArticleType},t.handleOptionFocus=t.handleOptionFocus.bind(u()(t)),t}return c()(o,[{key:"shouldShowAlert",value:function(){return this.state.schema_page_type!==this.initialPageType||this.state.schema_article_type!==this.initialArticleType}},{key:"handleOptionFocus",value:function(e,t){this.setState(a()({},e,t))}},{key:"render",value:function(){return Object(g.createElement)(g.Fragment,null,Object(g.createElement)(w.FieldGroup,{label:Object(y.__)("Schema settings","wordpress-seo"),linkTo:"https://yoa.st/404",linkText:Object(y.__)("Learn more about the schema settings","wordpress-seo"),description:Object(y.sprintf)(
2
  /* translators: %1$s expands to an indexable object's name, e.g. Posts or Pages. */
3
  Object(y.__)("Choose how your %1$s should be described by default in your site's schema.org markup. You can change these settings for individual %1$s.","wordpress-seo"),this.props.postTypeName)}),this.shouldShowAlert()&&Object(g.createElement)(w.Alert,{type:"warning"},Object(y.sprintf)(
4
  /* translators: %1$s expands to an indexable object's name, e.g. Posts or Pages. */
5
+ Object(y._n)("Upon saving, this setting will apply to all of your %1$s. %1$s that are manually configured will be left untouched.","Upon saving, these settings will apply to all of your %1$s. %1$s that are manually configured will be left untouched.",this.props.articleType?2:1,"wordpress-seo"),this.props.postTypeName)),Object(g.createElement)(w.Select,{id:"schema-page-type-".concat(this.props.postType),name:"schema_page_type",options:this.props.pageTypeOptions,label:Object(y.__)("Default Page type","wordpress-seo"),onChange:this.props.pageType.onChange,selected:this.props.pageType.value,onOptionFocus:this.handleOptionFocus}),this.props.articleType&&Object(g.createElement)(w.Select,{id:"schema-article-type-".concat(this.props.postType),name:"schema_article_type",options:this.props.articleTypeOptions,label:Object(y.__)("Default Article type","wordpress-seo"),onChange:this.props.articleType.onChange,onOptionFocus:this.handleOptionFocus,selected:this.props.articleType.value}))}}]),o}(g.Component),_=v.a.arrayOf(v.a.shape({name:v.a.string,value:v.a.string}));E.propTypes={postType:v.a.string.isRequired,postTypeName:v.a.string.isRequired,pageType:j.b.isRequired,articleType:j.b,pageTypeOptions:_.isRequired,articleTypeOptions:_.isRequired},E.defaultProps={articleType:null},t.a=Object(j.a)((function(e){return[{name:"pageType",fieldId:e.pageTypeFieldId},{name:"articleType",fieldId:e.articleTypeFieldId}]}))(E)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(9),a=n.n(r),o=n(10),i=n.n(o),s=function(){function e(){a()(this,e)}return i()(e,null,[{key:"articleTypeInput",get:function(){return document.getElementById("yoast_wpseo_schema_article_type")}},{key:"defaultArticleType",get:function(){return e.articleTypeInput.getAttribute("data-default")}},{key:"articleType",get:function(){return e.articleTypeInput.value},set:function(t){e.articleTypeInput.value=t}},{key:"pageTypeInput",get:function(){return document.getElementById("yoast_wpseo_schema_page_type")}},{key:"defaultPageType",get:function(){return e.pageTypeInput.getAttribute("data-default")}},{key:"pageType",get:function(){return e.pageTypeInput.value},set:function(t){e.pageTypeInput.value=t}}]),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"sortResultsByIdentifier",(function(){return s})),n.d(t,"default",(function(){return c})),n.d(t,"initializationDone",(function(){return l}));var r=n(17),a=n(62),o=n(48),i=!1;function s(e){return e.sort((function(e,t){return e._identifier.localeCompare(t._identifier)}))}function c(e,t,n,c,l){var u=t();i&&e.analyze(u).then((function(e){var t=e.result,a=t.seo,i=t.readability;if(a){var p=a[""];p.results.forEach((function(e){e.getMarker=function(){return function(){return n(u,e.marks)}}})),p.results=s(p.results),c.dispatch(r.actions.setSeoResultsForKeyword(u.getKeyword(),p.results)),c.dispatch(Object(o.setOverallSeoScore)(p.score,u.getKeyword())),c.dispatch(r.actions.refreshSnippetEditor()),l.saveScores(p.score,u.getKeyword())}i&&(i.results.forEach((function(e){e.getMarker=function(){return function(){return n(u,e.marks)}}})),i.results=s(i.results),c.dispatch(r.actions.setReadabilityResults(i.results)),c.dispatch(Object(o.setOverallReadabilityScore)(i.score)),c.dispatch(r.actions.refreshSnippetEditor()),l.saveContentScore(i.score))})).catch(a.a)}function l(){i=!0}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}},function(e,t,n){"use strict";n.d(t,"b",(function(){return p}));var r=n(0),a=n(2),o=n(50),i=n(1),s=n.n(i),c=n(3),l=n(81),u=n(30),p=function(e){var t=!0;if("blur"===e.type){var n=e.relatedTarget;if(n){var r=["media-modal","wp-core-ui"];t=Object(c.intersection)(r,Array.from(n.classList)).length!==r.length}}return t},d=function(e){var t=e.id,n=e.postTypeName,i=e.children,s=e.title,c=e.isOpen,d=e.close,m=e.open,f=Object(r.useCallback)((function(e){p(e)&&d()}),[d]);return Object(r.createElement)(r.Fragment,null,c&&Object(r.createElement)(u.LocationProvider,{value:"modal"},Object(r.createElement)(o.a,{title:s,onRequestClose:f,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal"},Object(r.createElement)("div",{className:"yoast-content-container"},Object(r.createElement)("div",{className:"yoast-modal-content"},i)),Object(r.createElement)("div",{className:"yoast-notice-container"},Object(r.createElement)("hr",null),Object(r.createElement)("div",{className:"yoast-button-container"},Object(r.createElement)("p",null,
6
  /* Translators: %s translates to the Post Label in singular form */
7
  Object(a.sprintf)(Object(a.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),n)),Object(r.createElement)("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:f},
8
  /* Translators: %s translates to the Post Label in singular form */
9
+ Object(a.sprintf)(Object(a.__)("Return to your %s","wordpress-seo"),n)))))),Object(r.createElement)(l.a,{id:t+"-open-button",title:s,suffixIcon:{size:"20px",icon:"pencil-square"},onClick:m}))};d.propTypes={id:s.a.string.isRequired,postTypeName:s.a.string.isRequired,children:s.a.oneOfType([s.a.node,s.a.arrayOf(s.a.node)]).isRequired,title:s.a.string.isRequired,isOpen:s.a.bool.isRequired,open:s.a.func.isRequired,close:s.a.func.isRequired},t.a=d},function(e,t,n){"use strict";var r=n(0),a=n(4),o=n(1),i=n.n(o),s=function(e){return Object(r.createElement)("div",{className:"yoast components-panel__body"},Object(r.createElement)("h2",{className:"components-panel__body-title"},Object(r.createElement)("button",{id:e.id,onClick:e.onClick,className:"components-button components-panel__body-toggle"},e.prefixIcon&&Object(r.createElement)("span",{className:"yoast-icon-span",style:{fill:"".concat(e.prefixIcon&&e.prefixIcon.color||"")}},Object(r.createElement)(a.SvgIcon,{size:e.prefixIcon.size,icon:e.prefixIcon.icon})),Object(r.createElement)("span",{className:"yoast-title-container"},Object(r.createElement)("div",{className:"yoast-title"},e.title),Object(r.createElement)("div",{className:"yoast-subtitle"},e.subTitle)),e.suffixIcon&&Object(r.createElement)(a.SvgIcon,{size:e.suffixIcon.size,icon:e.suffixIcon.icon}))))};t.a=s,s.propTypes={onClick:i.a.func.isRequired,title:i.a.string.isRequired,id:i.a.string,subTitle:i.a.string,suffixIcon:i.a.object,prefixIcon:i.a.object},s.defaultProps={id:"",suffixIcon:null,prefixIcon:null,subTitle:""}},function(e,t,n){"use strict";function r(e){var t,n=document.getElementById("yoast-measurement-element");return n||((t=document.createElement("div")).id="yoast-measurement-element",t.style.position="absolute",t.style.left="-9999em",t.style.top=0,t.style.height=0,t.style.overflow="hidden",t.style.fontFamily="arial, sans-serif",t.style.fontSize="18px",t.style.fontWeight="400",document.body.appendChild(t),n=t),n.innerHTML=e,n.offsetWidth}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return y}));var r=n(0),a=n(1),o=n.n(a),i=n(2),s=n(3),c=n(70),l=n.n(c),u=n(4),p=n(8),d=n(57),m=function(){return Object(r.createElement)("p",{className:"yoast-wincher-seo-performance-modal__loading-message"},Object(i.__)("Tracking the ranking position...","wordpress-seo")," ",Object(r.createElement)(u.SvgIcon,{icon:"loading-spinner"}))},f=Object(p.makeOutboundLink)();function h(e){return Math.round(100*e)}function b(e){var t=e.chartData;if(Object(s.isEmpty)(t)||Object(s.isEmpty)(t.position))return"?";var n=function(e){return Array.from({length:e.position.history.length},(function(e,t){return t+1})).map((function(e){
10
  /* translators: %d expands to the amount of days */
11
  return Object(i.sprintf)(Object(i._n)("%d day","%d days",e,"wordpress-seo"),e)}))}(t),a=t.position.history.map((function(e,t){return{x:t,y:101-e.value}}));return Object(r.createElement)(d.a,{width:66,height:24,data:a,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:h,dataTableCaption:Object(i.__)("Keyphrase position in the last 90 days on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:n})}function g(e){return!e||!e.position||e.position.value>100?"> 100":e.position.value}function y(e){var t=e.keyphrase,n=e.rowData,a=e.onTrackKeyphrase,o=e.onUntrackKeyphrase,c=e.isFocusKeyphrase,p=e.isDisabled,d=e.isLoading,h=!Object(s.isEmpty)(n),y=Object(r.useCallback)((function(){p||(h?o(t,n.id):a(t))}),[t,a,o,h,n,p]);return Object(r.createElement)("tr",null,Object(r.createElement)("td",{className:"yoast-table--nopadding"},function(e){var t=e.keyphrase,n=e.isEnabled,a=e.toggleAction;return e.isLoading?Object(r.createElement)(u.SvgIcon,{icon:"loading-spinner"}):Object(r.createElement)(u.Toggle,{id:"toggle-keyphrase-tracking-".concat(t),className:"wincher-toggle",isEnabled:n,onSetToggleState:a,showToggleStateLabel:!1})}({keyphrase:t,isEnabled:h,toggleAction:y,isLoading:d})),Object(r.createElement)("td",null,t,c&&Object(r.createElement)("span",null,"*")),function(e){var t=e.rowData,n=e.websiteId,a=!Object(s.isEmpty)(t),o=t&&t.updated_at&&l()(t.updated_at)>=l()().subtract(7,"days"),c=t?Object(i.sprintf)("https://app.wincher.com/websites/%s/keywords?serp=%s&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast",n,t.id):null;return a?o?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",null,g(t)),Object(r.createElement)("td",{className:"yoast-table--nopadding"},Object(r.createElement)(b,{chartData:t})),Object(r.createElement)("td",{className:"yoast-table--nobreak"},Object(r.createElement)(f,{href:c},Object(i.__)("View","wordpress-seo")))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},Object(r.createElement)(m,null))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("td",null,"?"),Object(r.createElement)("td",{className:"yoast-table--nopadding"},"?"),Object(r.createElement)("td",{className:"yoast-table--nobreak"}))}(e))}b.propTypes={chartData:o.a.object},b.defaultProps={chartData:{}},y.propTypes={rowData:o.a.object,keyphrase:o.a.string.isRequired,onTrackKeyphrase:o.a.func,onUntrackKeyphrase:o.a.func,isFocusKeyphrase:o.a.bool,isDisabled:o.a.bool,isLoading:o.a.bool,websiteId:o.a.string},y.defaultProps={rowData:{},onTrackKeyphrase:function(){},onUntrackKeyphrase:function(){},isFocusKeyphrase:!1,isDisabled:!1,isLoading:!1,websiteId:""}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(16),a=n.n(r),o=n(9),i=n.n(o),s=n(10),c=n.n(s),l=n(7),u=n.n(l),p=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i()(this,e),this.url=t,this.origin=new URL(t).origin,this.eventHandlers=Object.assign({success:{type:"",callback:function(){}},error:{type:"",callback:function(){}}},n),this.options=Object.assign({height:570,width:340,title:""},r),this.popup=null,this.createPopup=this.createPopup.bind(this),this.messageHandler=this.messageHandler.bind(this),this.getPopup=this.getPopup.bind(this)}var t;return c()(e,[{key:"createPopup",value:function(){var e=this.options,t=e.height,n=e.width,r=e.title,a=["top="+(window.top.outerHeight/2+window.top.screenY-t/2),"left="+(window.top.outerWidth/2+window.top.screenX-n/2),"width="+n,"height="+t,"resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(this.url,r,a.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}},{key:"messageHandler",value:(t=a()(u.a.mark((function e(t){var n,r;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.data,r=t.source,t.origin===this.origin&&this.popup===r){e.next=3;break}return e.abrupt("return");case 3:if(n.type!==this.eventHandlers.success.type){e.next=8;break}return this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),e.next=8,this.eventHandlers.success.callback(n);case 8:if(n.type!==this.eventHandlers.error.type){e.next=13;break}return this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),e.next=13,this.eventHandlers.error.callback(n);case 13:case"end":return e.stop()}}),e,this)}))),function(_x){return t.apply(this,arguments)})},{key:"getPopup",value:function(){return this.popup}},{key:"isClosed",value:function(){return!this.popup||this.popup.closed}},{key:"focus",value:function(){this.isClosed()||this.popup.focus()}}]),e}()},function(e,t,n){"use strict";var r=n(0),a=n(1),o=n.n(a),i=n(2),s=n(31),c=n.n(s),l=n(4),u=function(e){var t=Object(i.sprintf)(
12
  /* translators: %s expands to a link to open the Wincher login popup. */
16
  /* Translators: %s expands to the social medium name, which is either Twitter or Facebook. %s expands to Yoast SEO Premium */
17
  Object(k.__)("Want to see how your content will look when it’s shared on %s?","wordpress-seo"),e.socialMediumName),n=Object(k.sprintf)(
18
  /* Translators: %s expands to Yoast SEO Premium */
19
+ Object(k.__)("Get %s to unlock social previews!","wordpress-seo"),"Yoast SEO Premium");return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(S,{type:"info"},_()({mixedString:t,components:{strong:Object(b.createElement)("b",null)}}),Object(b.createElement)("br",null),Object(b.createElement)(x,{href:wpseoAdminL10n["shortlinks.upsell.social_previews"]},Object(b.createElement)("p",null,n))))};C.propTypes={socialMediumName:y.a.oneOf(["Twitter","Facebook"]).isRequired};var P=C,D=n(125),A=n(46);var q=function(e){p()(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=h()(t);if(n){var a=h()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return m()(this,e)});function a(e){var t;return o()(this,a),(t=r.call(this,e)).state={activeField:"",hoveredField:""},t.setHoveredField=t.setHoveredField.bind(l()(t)),t.setActiveField=t.setActiveField.bind(l()(t)),t.setEditorRef=t.setEditorRef.bind(l()(t)),t.setEditorFocus=t.setEditorFocus.bind(l()(t)),t}return s()(a,[{key:"setHoveredField",value:function(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}},{key:"setActiveField",value:function(e){var t=this;e!==this.state.activeField&&this.setState({activeField:e},(function(){return t.setEditorFocus(e)}))}},{key:"setEditorFocus",value:function(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}},{key:"setEditorRef",value:function(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}},{key:"render",value:function(){var e=this.props,t=e.onDescriptionChange,n=e.onTitleChange,r=e.onSelectImageClick,a=e.onRemoveImageClick,o=e.socialMediumName,i=e.imageWarnings,s=e.description,c=e.descriptionInputPlaceholder,l=e.imageUrl,u=e.title,p=e.titleInputPlaceholder,d=e.replacementVariables,m=e.recommendedReplacementVariables,f=e.isPremium,h=e.location;return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(P,{socialMediumName:o}),Object(b.createElement)(D.SocialMetadataPreviewForm,{onDescriptionChange:t,socialMediumName:o,title:u,titleInputPlaceholder:p,onRemoveImageClick:a,imageSelected:!!l,imageUrl:l,onTitleChange:n,onSelectImageClick:r,description:s,descriptionInputPlaceholder:c,imageWarnings:i,replacementVariables:d,recommendedReplacementVariables:m,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:f,setEditorRef:this.setEditorRef,idSuffix:h}))}}]),a}(b.Component);q.propTypes={title:y.a.string.isRequired,onTitleChange:y.a.func.isRequired,description:y.a.string.isRequired,onDescriptionChange:y.a.func.isRequired,imageUrl:y.a.string.isRequired,onSelectImageClick:y.a.func.isRequired,onRemoveImageClick:y.a.func.isRequired,socialMediumName:y.a.string.isRequired,isPremium:y.a.bool,imageWarnings:y.a.array,descriptionInputPlaceholder:y.a.string,titleInputPlaceholder:y.a.string,replacementVariables:A.replacementVariablesShape,recommendedReplacementVariables:A.recommendedReplacementVariablesShape,location:y.a.string},q.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",location:""},t.a=q},function(e,t,n){"use strict";var r=n(5),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(64),i=n(90),s=n(91),c="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}var u=/\/+/g;function p(e){return(""+e).replace(u,"$&/")}var d,m,f=h,h=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)};function b(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function g(e,t,n){var a,i,s=e.result,c=e.keyPrefix,l=e.func,u=e.context,d=l.call(u,t,e.count++);Array.isArray(d)?y(d,s,n,o.thatReturnsArgument):null!=d&&(r.isValidElement(d)&&(a=d,i=c+(!d.key||t&&t.key===d.key?"":p(d.key)+"/")+n,d=r.cloneElement(a,{key:i},void 0!==a.props?a.props.children:void 0)),s.push(d))}function y(e,t,n,r,o){var s="";null!=n&&(s=p(n)+"/");var u=b.getPooled(t,s,r,o);!function(e,t,n){null==e||function e(t,n,r,o){var s,u=typeof t;if("undefined"!==u&&"boolean"!==u||(t=null),null===t||"string"===u||"number"===u||"object"===u&&t.$$typeof===a)return r(o,t,""===n?"."+l(t,0):n),1;var p=0,d=""===n?".":n+":";if(Array.isArray(t))for(var m=0;m<t.length;m++)p+=e(s=t[m],d+l(s,m),r,o);else{var f=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(f)for(var h,b=f.call(t),g=0;!(h=b.next()).done;)p+=e(s=h.value,d+l(s,g++),r,o);else if("object"===u){var y=""+t;i(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===y?"object with keys {"+Object.keys(t).join(", ")+"}":y,"")}}return p}(e,"",t,n)}(e,g,u),b.release(u)}b.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){if(this.instancePool.length){var a=this.instancePool.pop();return this.call(a,e,t,n,r),a}return new this(e,t,n,r)},(m=b).instancePool=[],m.getPooled=d||f,m.poolSize||(m.poolSize=10),m.release=function(e){i(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)},e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return s(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return s(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;i(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)y(e[n],t,n,o.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,o,i,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,a,o,i,s],u=0;(c=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(64);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t,n){"use strict";var r=n(0),a=n(2),o=n(31),i=n.n(o),s=n(8),c=Object(s.makeOutboundLink)(),l=Object(s.makeOutboundLink)();t.a=function(){var e=Object(a.sprintf)(Object(a.__)(
20
  /* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */
21
  "With %1$s you can track the ranking position of your page in the search results based on your keyphrase(s). %2$s","wordpress-seo"),"{{wincherLink/}}","{{wincherReadMoreLink/}}");return Object(r.createElement)("p",null,i()({mixedString:e,components:{wincherLink:Object(r.createElement)(c,{href:wpseoAdminGlobalL10n["links.wincher.website"]},"Wincher"),wincherReadMoreLink:Object(r.createElement)(l,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"]},Object(a.__)("Read more about keyphrase tracking with Wincher","wordpress-seo"))}}))}},function(e,t,n){"use strict";var r=n(6),a=n(20),o=n(26),i=n.n(o),s=n(15),c=n.n(s),l=n(16),u=n.n(l),p=n(0),d=n(7),m=n.n(d),f=n(2),h=n(1),b=n.n(h),g=n(3),y=n(13),w=n.n(y),O=n(4),v=n(8),j=n(31),E=n.n(j),_=Object(v.makeOutboundLink)(),k=function(e){var t=Object(f.sprintf)(
22
  /* translators: %d expands to the amount of allowed keyphrases on a free account, %s expands to a link to Wincher plans. */
26
  /* translators: %s: Expands to "Wincher". */
27
  Object(f.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher"))},D=function(){return Object(p.createElement)(O.Alert,{type:"info"},Object(f.sprintf)(
28
  /* translators: %s: Expands to "Wincher". */
29
+ Object(f.__)("%s is currently tracking the ranking position(s) of your page. This may take a few minutes. Please wait or check back later.","wordpress-seo"),"Wincher"))},A=n(24),q=n.n(A),L=n(29),I=n.n(L),F=n(83),N=n(32),M=Object(v.makeOutboundLink)(),K=w.a.span(T||(T=c()(["\n\tdisplay: block;\n\tfont-style: italic;\n\n\t@media (min-width: 782px) {\n\t\tdisplay: inline;\n\t\tposition: absolute;\n\t\t",": 8px;\n\t}\n"])),Object(v.getDirectionalStyle)("right","left")),W=w.a.th(R||(R=c()(["\n\tmin-width: 60px;\n"]))),U=w.a.div(S||(S=c()(["\n\twidth: 100%;\n\toverflow-y: auto;\n"]))),B=function(e){var t=Object(p.useRef)();return Object(p.useEffect)((function(){t.current=e})),t.current},V=Object(g.debounce)(N.c,500,{leading:!0}),H=function(e){var t=e.addTrackedKeyphrase,n=e.isLoggedIn,r=e.keyphrases,a=e.permalink,o=e.removeTrackedKeyphrase,i=e.setKeyphraseLimitReached,s=e.setRequestFailed,c=e.setRequestSucceeded,l=e.setTrackedKeyphrases,d=e.setHasTrackedAll,h=e.trackAll,b=e.trackedKeyphrases,y=e.isNewlyAuthenticated,w=e.websiteId,O=e.focusKeyphrase,v=e.newRequest,j=Object(p.useRef)(),E=Object(p.useRef)(),_=Object(p.useRef)(!1),k=Object(p.useState)([]),T=I()(k,2),R=T[0],S=T[1],x=Object(p.useCallback)((function(e){var t=e.toLowerCase();return b&&!Object(g.isEmpty)(b)&&b.hasOwnProperty(t)?b[t]:null}),[b]),C=Object(p.useMemo)((function(){return u()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(N.d)((function(){return E.current&&E.current.abort(),E.current="undefined"==typeof AbortController?null:new AbortController,V(r,a,E.current.signal)}),(function(e){c(e),l(e.results)}),(function(e){s(e)}));case 2:case"end":return e.stop()}}),e)})))}),[c,s,l,r,a]),P=Object(p.useCallback)(function(){var e=u()(m.a.mark((function e(n){var r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(Array.isArray(n)?n:[n]).map((function(e){return e.toLowerCase()})),S((function(e){return[].concat(q()(e),q()(r))})),e.next=4,Object(N.d)((function(){return Object(N.e)(r)}),(function(e){c(e),t(e.results),C()}),(function(e){400===e.status&&e.limit&&i(e.limit),s(e)}),201);case 4:S((function(e){return g.without.apply(void 0,[e].concat(q()(r)))}));case 5:case"end":return e.stop()}}),e)})));return function(_x){return e.apply(this,arguments)}}(),[c,s,i,t,C]),D=Object(p.useCallback)(function(){var e=u()(m.a.mark((function e(t,n){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=t.toLowerCase(),S((function(e){return[].concat(q()(e),[t])})),e.next=4,Object(N.d)((function(){return Object(N.f)(n)}),(function(e){c(e),o(t)}),(function(e){s(e)}));case 4:S((function(e){return Object(g.without)(e,t)}));case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[c,o,s]),A=Object(p.useCallback)(function(){var e=u()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return v(),e.next=3,P(t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[v,P]),L=B(a),H=B(r);Object(p.useEffect)((function(){n&&a&&(a!==L||Object(g.difference)(r,H).length)&&C()}),[n,a,L,r,H,C]),Object(p.useEffect)((function(){if(n&&h&&null!==b){var e=r.filter((function(e){return!x(e)}));e.length&&P(e),d()}}),[n,h,b,P,d,x,r]),Object(p.useEffect)((function(){y&&!_.current&&(C(),_.current=!0)}),[y,C]),Object(p.useEffect)((function(){if(n&&!Object(g.isEmpty)(b))return Object(g.filter)(b,(function(e){return Object(g.isEmpty)(e.updated_at)})).length>0&&(j.current=setInterval((function(){C()}),1e4)),function(){clearInterval(j.current)}}),[n,b,C]);var Y=n&&null===b;return r&&!Object(g.isEmpty)(r)&&Object(p.createElement)(p.Fragment,null,Object(p.createElement)(U,null,Object(p.createElement)("table",{className:"yoast yoast-table"},Object(p.createElement)("thead",null,Object(p.createElement)("tr",null,Object(p.createElement)("th",{scope:"col",abbr:Object(f.__)("Tracking","wordpress-seo")},Object(f.__)("Tracking","wordpress-seo")),Object(p.createElement)("th",{scope:"col",abbr:Object(f.__)("Keyphrase","wordpress-seo")},Object(f.__)("Keyphrase","wordpress-seo")),Object(p.createElement)("th",{scope:"col",abbr:Object(f.__)("Position","wordpress-seo")},Object(f.__)("Position","wordpress-seo")),Object(p.createElement)("th",{scope:"col",abbr:Object(f.__)("Position over time","wordpress-seo")},Object(f.__)("Position over time","wordpress-seo")),Object(p.createElement)(W,{className:"yoast-table--nobreak"}))),Object(p.createElement)("tbody",null,r.map((function(e,t){return Object(p.createElement)(F.b,{key:"trackable-keyphrase-".concat(t),keyphrase:e,onTrackKeyphrase:A,onUntrackKeyphrase:D,rowData:x(e),isFocusKeyphrase:e===O.trim(),websiteId:w,isDisabled:!n,isLoading:Y||R.indexOf(e.toLowerCase())>=0})}))))),Object(p.createElement)("p",{style:{marginBottom:0,position:"relative"}},Object(p.createElement)(M,{href:wpseoAdminGlobalL10n["links.wincher.login"]},Object(f.sprintf)(
30
  /* translators: %s expands to Wincher */
31
+ Object(f.__)("Get more insights over at %s","wordpress-seo"),"Wincher")),Object(p.createElement)(K,null,Object(f.__)("* focus keyphrase","wordpress-seo"))))};H.propTypes={addTrackedKeyphrase:b.a.func.isRequired,isLoggedIn:b.a.bool,isNewlyAuthenticated:b.a.bool,keyphrases:b.a.array,newRequest:b.a.func.isRequired,removeTrackedKeyphrase:b.a.func.isRequired,setRequestFailed:b.a.func.isRequired,setKeyphraseLimitReached:b.a.func.isRequired,setRequestSucceeded:b.a.func.isRequired,setTrackedKeyphrases:b.a.func.isRequired,setHasTrackedAll:b.a.func.isRequired,trackAll:b.a.bool,trackedKeyphrases:b.a.object,websiteId:b.a.string,permalink:b.a.string.isRequired,focusKeyphrase:b.a.string},H.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],trackAll:!1,trackedKeyphrases:null,websiteId:"",focusKeyphrase:""};var Y,z,$,G=H,Z=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getWincherWebsiteId,r=t.getWincherTrackedKeyphrases,a=t.getWincherTrackableKeyphrases,o=t.getWincherLoginStatus,i=t.getWincherPermalink,s=t.getFocusKeyphrase,c=t.isWincherNewlyAuthenticated,l=t.shouldWincherTrackAll;return{focusKeyphrase:s(),keyphrases:a(),trackedKeyphrases:r(),isLoggedIn:o(),trackAll:l(),websiteId:n(),isNewlyAuthenticated:c(),permalink:i()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setWincherNewRequest,r=t.setWincherRequestSucceeded,a=t.setWincherRequestFailed,o=t.setWincherSetKeyphraseLimitReached,i=t.setWincherTrackedKeyphrases,s=t.setWincherTrackingForKeyphrase,c=t.setWincherTrackAllKeyphrases,l=t.unsetWincherTrackingForKeyphrase;return{newRequest:function(){n()},setRequestSucceeded:function(e){r(e)},setRequestFailed:function(e){a(e)},setKeyphraseLimitReached:function(e){o(e)},addTrackedKeyphrase:function(e){s(e)},removeTrackedKeyphrase:function(e){l(e)},setTrackedKeyphrases:function(e){i(e)},setHasTrackedAll:function(){c(!1)}}}))])(G),Q=n(93),J=function(){return Object(p.createElement)(O.Alert,{type:"error"},Object(f.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo"))},X=function(){return Object(p.createElement)(O.Alert,{type:"info"},Object(f.sprintf)(
32
  /* translators: %s: Expands to "Wincher". */
33
+ Object(f.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher"))},ee=n(85),te=n(86),ne=function(){return Object(p.createElement)(O.Alert,{type:"error"},Object(f.__)("Before you can track your SEO performance make sure to set either the post’s title and save it as a draft or manually set the post’s slug.","wordpress-seo"))},re=function(e){var t=e.response,n=e.onLogin;return 403===t.status||404===t.status?Object(p.createElement)(te.a,{onReconnect:n}):Object(p.createElement)(C,null)};re.propTypes={response:b.a.object.isRequired,onLogin:b.a.func.isRequired};var ae=function(e){var t=e.isSuccess,n=e.response,r=e.allKeyphrasesMissRanking,a=e.onLogin,o=e.keyphraseLimitReached,i=e.limit;return o?Object(p.createElement)(x,{limit:i}):Object(g.isEmpty)(n)||t?r?Object(p.createElement)(D,null):null:Object(p.createElement)(re,{response:n,onLogin:a})};ae.propTypes={isSuccess:b.a.bool.isRequired,allKeyphrasesMissRanking:b.a.bool.isRequired,response:b.a.object,onLogin:b.a.func.isRequired,keyphraseLimitReached:b.a.bool.isRequired,limit:b.a.number.isRequired},ae.defaultProps={response:{}};var oe=null,ie=function(){var e=u()(m.a.mark((function e(t,n){var r,a,o;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.onAuthentication,a=t.setRequestSucceeded,o=t.setRequestFailed,e.next=3,Object(N.d)((function(){return Object(N.a)(n)}),function(){var e=u()(m.a.mark((function e(t){var o;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r(!0,!0,n.websiteId.toString()),a(t),(o=oe.getPopup())&&o.close();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),function(){var e=u()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",o(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e)})));return function(_x,t){return e.apply(this,arguments)}}(),se=function(){var e=u()(m.a.mark((function e(t){var n,r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!oe||oe.isClosed()){e.next=3;break}return oe.focus(),e.abrupt("return");case 3:return e.next=5,Object(N.b)();case 5:n=e.sent,r=n.url,(oe=new ee.a(r,{success:{type:"wincher:oauth:success",callback:function(e){return ie(t,e)}},error:{type:"wincher:oauth:error",callback:function(){return t.onAuthentication(!1,!1)}}},{title:"Wincher_login",width:500,height:700})).createPopup();case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ce=function(e){return e.isLoggedIn?null:Object(p.createElement)("p",null,Object(p.createElement)(O.NewButton,{onClick:e.onLogin,variant:"primary"},Object(f.sprintf)(
34
  /* translators: %s expands to Wincher */
35
  Object(f.__)("Connect with %s","wordpress-seo"),"Wincher")))};ce.propTypes={isLoggedIn:b.a.bool.isRequired,onLogin:b.a.func.isRequired};var le=w.a.div(Y||(Y=c()(["\n\tp {\n\t\tmargin: 1em 0;\n\t}\n"]))),ue=w.a.div(z||(z=c()(["\n\t",";\n"])),(function(e){return e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"})),pe=w.a.div($||($=c()(["\n\tfont-weight: var(--yoast-font-weight-bold);\n\tcolor: var(--yoast-color-label);\n\tfont-size: var(--yoast-font-size-default);\n"]))),de=function(e){var t=e.isLoggedIn,n=e.keyphrases,r=e.shouldTrackAll;return!e.permalink&&t?Object(p.createElement)(ne,null):0===n.length?Object(p.createElement)(J,null):Object(p.createElement)(ue,{isDisabled:!t},Object(p.createElement)("p",null,Object(f.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")),t&&r&&Object(p.createElement)(X,null),Object(p.createElement)(Z,null))};function me(e){var t=e.isNewlyAuthenticated,n=e.isLoggedIn,r=Object(p.useCallback)((function(){se(e)}),[se,e]);return Object(p.createElement)(le,null,t&&Object(p.createElement)(P,null),Object(p.createElement)(pe,null,Object(f.__)("SEO performance","wordpress-seo"),Object(p.createElement)(O.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"],linkText:Object(f.__)("Learn more about the SEO performance feature.","wordpress-seo")})),Object(p.createElement)(Q.a,null),Object(p.createElement)(ce,{isLoggedIn:n,onLogin:r}),Object(p.createElement)(ae,i()({},e,{onLogin:r})),Object(p.createElement)(de,e))}de.propTypes={keyphrases:b.a.array.isRequired,isLoggedIn:b.a.bool.isRequired,shouldTrackAll:b.a.bool.isRequired,permalink:b.a.string.isRequired},me.propTypes={isLoggedIn:b.a.bool,isNewlyAuthenticated:b.a.bool,keyphrases:b.a.array,response:b.a.object,shouldTrackAll:b.a.bool,permalink:b.a.string},me.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],response:{},shouldTrackAll:!1,permalink:""},t.a=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.isWincherNewlyAuthenticated,r=t.getWincherKeyphraseLimitReached,a=t.getWincherLimit,o=t.getWincherLoginStatus,i=t.getWincherRequestIsSuccess,s=t.getWincherRequestResponse,c=t.getWincherTrackableKeyphrases,l=t.getWincherAllKeyphrasesMissRanking,u=t.getWincherPermalink,p=t.shouldWincherAutomaticallyTrackAll;return{keyphrases:c(),allKeyphrasesMissRanking:l(),isLoggedIn:o(),isNewlyAuthenticated:n(),isSuccess:i(),keyphraseLimitReached:r(),limit:a(),response:s(),shouldTrackAll:p(),permalink:u()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setWincherWebsiteId,r=t.setWincherRequestSucceeded,a=t.setWincherRequestFailed,o=t.setWincherLoginStatus;return{setRequestSucceeded:function(e){r(e)},setRequestFailed:function(e){a(e)},onAuthentication:function(e,t,r){n(r),o(e,t)}}}))])(me)},function(e,t,n){"use strict";n.r(t),n.d(t,"refreshDelay",(function(){return r}));var r=500},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return d}));var r,a,o=n(15),i=n.n(o),s=n(13),c=n.n(s),l=n(4),u=n(8),p=c.a.div(r||(r=i()(["\n\tmin-width: 600px;\n\n\t@media screen and ( max-width: 680px ) {\n\t\tmin-width: 0;\n\t\twidth: 86vw;\n\t}\n"]))),d=c()(l.Icon)(a||(a=i()(["\n\tfloat: ",";\n\tmargin: ",";\n\n\t&& {\n\t\twidth: 150px;\n\t\theight: 150px;\n\n\t\t@media screen and ( max-width: 680px ) {\n\t\t\twidth: 80px;\n\t\t\theight: 80px;\n\t\t}\n\t}\n"])),Object(u.getDirectionalStyle)("right","left"),Object(u.getDirectionalStyle)("0 0 16px 16px","0 16px 16px 0"))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=n(23);function o(){var e=Object(a.a)();return Object(r.get)(e,"translations",{domain:"wordpress-seo",locale_data:{"wordpress-seo":{"":{}}}})}},,,,function(e,t,n){"use strict";function r(e){var t=e.alertKey;return new Promise((function(e){return wpseoApi.post("alerts/dismiss",{key:t},(function(){return e()}))}))}n.r(t),n.d(t,"DISMISS_ALERT",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r,a,o=n(5);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 425 456.27","aria-hidden":"true"},e),r||(r=o.createElement("path",{d:"M73 405.26a66.79 66.79 0 01-6.54-1.7 64.75 64.75 0 01-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 01-5.08-4.19 69.21 69.21 0 01-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 01-3.44-5.64 68.29 68.29 0 01-8.29-32.55V142.13a68.26 68.26 0 018.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0114.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0173 75.09a68.75 68.75 0 0113.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 000 142.13v196.09A86.84 86.84 0 0086.75 425h11.32v-18.35H86.75A68.75 68.75 0 0173 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 018.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 01391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 018.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 00-56.45-81.28z"})),a||(a=o.createElement("path",{d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 010 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z",stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81})))}},function(e,t,n){"use strict";var r,a=n(15),o=n.n(a),i=n(0),s=n(1),c=n.n(s),l=n(13),u=n.n(l),p=n(4),d=n(8),m=u()(p.StyledSection)(r||(r=o()(["\n\t&"," {\n\t\tpadding: 0;\n\n\t\t& "," {\n\t\t\t",": 20px;\n\t\t\tmargin-left: ",";\n\t\t}\n\t}\n"])),p.StyledSectionBase,p.StyledHeading,Object(d.getDirectionalStyle)("padding-left","padding-right"),Object(d.getDirectionalStyle)("0","20px")),f=function(e){var t=e.children,n=e.title,r=e.icon,a=e.hasPaperStyle,o=e.shoppingData;return Object(i.createElement)(m,{headingLevel:3,headingText:n,headingIcon:r,headingIconColor:"#555",hasPaperStyle:a,shoppingData:o},t)};f.propTypes={children:c.a.element,title:c.a.string,icon:c.a.string,hasPaperStyle:c.a.bool,shoppingData:c.a.object},f.defaultProps={hasPaperStyle:!0,shoppingData:null},t.a=f},,,function(e,t,n){"use strict";var r=n(6),a=n(20),o=n(0),i=n(2),s=n(1),c=n.n(s),l=n(3),u=n(4),p=function(){return Object(o.createElement)("p",{className:"yoast-related-keyphrases-modal__loading-message"},Object(i.sprintf)(
36
  /* translators: %1$s expands to "Yoast SEO", %2$s expands to "Semrush". */
38
  /* translators: %s : Expands to "Semrush". */
39
  Object(i.__)("You've reached your request limit for today. Check back tomorrow or upgrade your plan over at %s.","wordpress-seo"),"Semrush")),Object(o.createElement)(m,{href:window.wpseoAdminL10n["shortlinks.semrush.prices"],className:"yoast-button-upsell"},Object(i.sprintf)(
40
  /* translators: %s : Expands to "Semrush". */
41
+ Object(i.__)("Upgrade your %s plan","wordpress-seo"),"Semrush"),Object(o.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})))},h=n(16),b=n.n(h),g=n(9),y=n.n(g),w=n(10),O=n.n(w),v=n(12),j=n.n(v),E=n(18),_=n.n(E),k=n(19),T=n.n(k),R=n(11),S=n.n(R),x=n(7),C=n.n(x),P=n(36),D=n.n(P),A=n(39);var q="yoast-semrush-country-selector",L=[{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"}],I=function(e){_()(c,e);var t,n,r,a,s=(r=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=S()(r);if(a){var n=S()(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return T()(this,e)});function c(e){var t;return y()(this,c),(t=s.call(this,e)).relatedKeyphrasesRequest=t.relatedKeyphrasesRequest.bind(j()(t)),t.onChangeHandler=t.onChangeHandler.bind(j()(t)),t}return O()(c,[{key:"componentDidMount",value:function(){this.props.response&&this.props.keyphrase===this.props.lastRequestKeyphrase||this.relatedKeyphrasesRequest()}},{key:"storeCountryCode",value:function(e){D()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}})}},{key:"relatedKeyphrasesRequest",value:(n=b()(C.a.mark((function e(){var t,n,r,a;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,n=t.keyphrase,r=t.countryCode,(0,t.newRequest)(r,n),this.storeCountryCode(r),e.next=5,this.doRequest(n,r);case 5:if(200!==(a=e.sent).status){e.next=9;break}return this.handleSuccessResponse(a),e.abrupt("return");case 9:this.handleFailedResponse(a);case 10:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"handleSuccessResponse",value:function(e){var t=this.props,n=t.setNoResultsFound,r=t.setRequestSucceeded;0!==e.results.rows.length?r(e):n()}},{key:"handleFailedResponse",value:function(e){var t=this.props,n=t.setRequestLimitReached,r=t.setRequestFailed;"error"in e&&(e.error.includes("TOTAL LIMIT EXCEEDED")?n():r(e))}},{key:"doRequest",value:(t=b()(C.a.mark((function e(t,n){return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,D()({path:Object(A.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:t,country_code:n})});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(_x,e){return t.apply(this,arguments)})},{key:"onChangeHandler",value:function(e){this.props.setCountry(e)}},{key:"render",value:function(){return Object(o.createElement)("div",{id:q},Object(o.createElement)(u.SingleSelect,{id:q+"-select",label:Object(i.__)("Show results for:","wordpress-seo"),name:"semrush-country-code",options:L,selected:this.props.countryCode,onChange:this.onChangeHandler,wrapperClassName:"yoast-field-group yoast-field-group--inline"}),Object(o.createElement)(u.NewButton,{id:q+"-button",variant:"secondary",onClick:this.relatedKeyphrasesRequest},Object(i.__)("Select country","wordpress-seo")))}}]),c}(o.Component);I.propTypes={keyphrase:c.a.string,countryCode:c.a.string,response:c.a.object,lastRequestKeyphrase:c.a.string,setCountry:c.a.func.isRequired,newRequest:c.a.func.isRequired,setNoResultsFound:c.a.func.isRequired,setRequestSucceeded:c.a.func.isRequired,setRequestLimitReached:c.a.func.isRequired,setRequestFailed:c.a.func.isRequired},I.defaultProps={keyphrase:"",countryCode:"us",response:{},lastRequestKeyphrase:""};var F=I,N=n(57),M=n(52);var K=Object(d.makeOutboundLink)(),W=function(e){_()(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=S()(t);if(n){var a=S()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return T()(this,e)});function a(e){var t;return y()(this,a),(t=r.call(this,e)).transformTrendDataToChartPoints=t.transformTrendDataToChartPoints.bind(j()(t)),t.getAreaChartDataTableHeaderLabels=t.getAreaChartDataTableHeaderLabels.bind(j()(t)),t.mapAreaChartDataToTableData=t.mapAreaChartDataToTableData.bind(j()(t)),t}return O()(a,[{key:"transformTrendDataToChartPoints",value:function(e){return e.split(",").map((function(e,t){return{x:t,y:parseFloat(e)}}))}},{key:"getAreaChartDataTableHeaderLabels",value:function(){return[Object(i.__)("Twelve months ago","wordpress-seo"),Object(i.__)("Eleven months ago","wordpress-seo"),Object(i.__)("Ten months ago","wordpress-seo"),Object(i.__)("Nine months ago","wordpress-seo"),Object(i.__)("Eight months ago","wordpress-seo"),Object(i.__)("Seven months ago","wordpress-seo"),Object(i.__)("Six months ago","wordpress-seo"),Object(i.__)("Five months ago","wordpress-seo"),Object(i.__)("Four months ago","wordpress-seo"),Object(i.__)("Three months ago","wordpress-seo"),Object(i.__)("Two months ago","wordpress-seo"),Object(i.__)("Last month","wordpress-seo")]}},{key:"mapAreaChartDataToTableData",value:function(e){return Math.round(100*e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.keyphrase,r=t.relatedKeyphrases,a=t.countryCode,s=t.data,c=t.renderAction,u="https://www.semrush.com/analytics/keywordoverview/?q="+encodeURIComponent(n)+"&db="+encodeURIComponent(a);return s&&!Object(l.isEmpty)(s.results)&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("table",{className:"yoast yoast-table"},Object(o.createElement)("thead",null,Object(o.createElement)("tr",null,Object(o.createElement)("th",{scope:"col",className:"yoast-table--primary"},Object(i.__)("Related keyphrase","wordpress-seo")),Object(o.createElement)("th",{scope:"col",abbr:Object(i.__)("Volume","wordpress-seo")},Object(i.__)("Volume","wordpress-seo"),Object(o.createElement)(M.a,{href:window.wpseoAdminL10n["shortlinks.semrush.volume_help"],className:"dashicons"},Object(o.createElement)("span",{className:"screen-reader-text"},Object(i.__)("Learn more about the related keyphrases volume","wordpress-seo")))),Object(o.createElement)("th",{scope:"col",abbr:Object(i.__)("Trend","wordpress-seo")},Object(i.__)("Trend","wordpress-seo"),Object(o.createElement)(M.a,{href:window.wpseoAdminL10n["shortlinks.semrush.trend_help"],className:"dashicons"},Object(o.createElement)("span",{className:"screen-reader-text"},Object(i.__)("Learn more about the related keyphrases trend","wordpress-seo")))),c&&Object(o.createElement)("td",{className:"yoast-table--nobreak"}))),Object(o.createElement)("tbody",null,s.results.rows.map((function(t,n){var a=t[0],s=e.transformTrendDataToChartPoints(t[2]),l=e.getAreaChartDataTableHeaderLabels();return Object(o.createElement)("tr",{key:n},Object(o.createElement)("td",null,a),Object(o.createElement)("td",null,t[1]),Object(o.createElement)("td",{className:"yoast-table--nopadding"},Object(o.createElement)(N.a,{width:66,height:24,data:s,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:e.mapAreaChartDataToTableData,dataTableCaption:Object(i.__)("Keyphrase volume in the last 12 months on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:l})),c&&Object(o.createElement)("td",{className:"yoast-table--nobreak"},c(a,r)))})))),Object(o.createElement)("p",{style:{marginBottom:0}},Object(o.createElement)(K,{href:u},Object(i.sprintf)(
42
  /* translators: %s expands to Semrush */
43
  Object(i.__)("Get more insights at %s","wordpress-seo"),"Semrush"))))}}]),a}(o.Component);W.propTypes={data:c.a.object,keyphrase:c.a.string,relatedKeyphrases:c.a.array,countryCode:c.a.string,renderAction:c.a.func},W.defaultProps={data:{},keyphrase:"",relatedKeyphrases:[],countryCode:"us",renderAction:null};var U=W,B=Object(d.makeOutboundLink)(),V=function(){return Object(o.createElement)(u.Alert,{type:"info"},Object(i.sprintf)(
44
  /* translators: %s: Expands to "Yoast SEO". */
46
  /* translators: %s: Expands to "Yoast SEO Premium". */
47
  Object(i.__)("Check out %s!","wordpress-seo"),"Yoast SEO Premium")))},H=function(){return Object(o.createElement)(u.Alert,{type:"error"},Object(i.__)("We've encountered a problem trying to get related keyphrases. Please try again later.","wordpress-seo"))},Y=function(){return Object(o.createElement)(u.Alert,{type:"warning"},Object(i.sprintf)(
48
  /* translators: %s: Expands to "Yoast SEO". */
49
+ Object(i.__)("You've reached the maximum amount of 4 related keyphrases. You can change or remove related keyphrases in the %s metabox or sidebar.","wordpress-seo"),"Yoast SEO"))},z=n(23);function $(e){var t=e.response,n=e.lastRequestKeyphrase,r=e.keyphrase,a=e.newRequest,s=e.setCountry,c=e.renderAction,u=e.countryCode,d=e.requestLimitReached,m=e.setRequestFailed,h=e.setNoResultsFound,b=e.relatedKeyphrases,g=e.setRequestSucceeded,y=e.setRequestLimitReached,w=Object(z.a)().isPremium;return Object(o.createElement)(o.Fragment,null,!d&&Object(o.createElement)(o.Fragment,null,!w&&Object(o.createElement)(V,null),w&&function(e){return e&&e.length>=4}(b)&&Object(o.createElement)(Y,null),Object(o.createElement)(F,{countryCode:u,setCountry:s,newRequest:a,keyphrase:r,setRequestFailed:m,setNoResultsFound:h,setRequestSucceeded:g,setRequestLimitReached:y,response:t,lastRequestKeyphrase:n})),function(e){var t=e.isPending,n=e.requestLimitReached,r=e.isSuccess,a=e.response,s=e.requestHasData;return t?Object(o.createElement)(p,null):n?Object(o.createElement)(f,null):!r&&function(e){return!Object(l.isEmpty)(e)&&"error"in e}(a)?Object(o.createElement)(H,null):s?void 0:Object(o.createElement)("p",null,Object(i.__)("Sorry, there's no data available for that keyphrase/country combination.","wordpress-seo"))}(e),Object(o.createElement)(U,{keyphrase:r,relatedKeyphrases:b,countryCode:u,renderAction:c,data:t}))}$.propTypes={keyphrase:c.a.string,relatedKeyphrases:c.a.array,renderAction:c.a.func,requestLimitReached:c.a.bool,countryCode:c.a.string.isRequired,setCountry:c.a.func.isRequired,newRequest:c.a.func.isRequired,setRequestSucceeded:c.a.func.isRequired,setRequestLimitReached:c.a.func.isRequired,setRequestFailed:c.a.func.isRequired,setNoResultsFound:c.a.func.isRequired,response:c.a.object,lastRequestKeyphrase:c.a.string},$.defaultProps={keyphrase:"",relatedKeyphrases:[],renderAction:null,requestLimitReached:!1,response:{},lastRequestKeyphrase:""},t.a=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getFocusKeyphrase,r=t.getSEMrushSelectedCountry,a=t.getSEMrushRequestLimitReached,o=t.getSEMrushRequestResponse,i=t.getSEMrushRequestIsSuccess,s=t.getSEMrushIsRequestPending,c=t.getSEMrushRequestHasData,l=t.getSEMrushRequestKeyphrase;return{keyphrase:n(),countryCode:r(),requestLimitReached:a(),response:o(),isSuccess:i(),isPending:s(),requestHasData:c(),lastRequestKeyphrase:l()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setSEMrushChangeCountry,r=t.setSEMrushNewRequest,a=t.setSEMrushRequestSucceeded,o=t.setSEMrushRequestFailed,i=t.setSEMrushSetRequestLimitReached,s=t.setSEMrushNoResultsFound;return{setCountry:function(e){n(e)},newRequest:function(e,t){r(e,t)},setRequestSucceeded:function(e){a(e)},setRequestFailed:function(e){o(e)},setRequestLimitReached:function(){i()},setNoResultsFound:function(){s()}}}))])($)},,,function(e,t){e.exports=window.wp.hooks},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return d}));var r=n(3),a=n(27),o=n(51);function i(){return Object(r.get)(window,["wpseoAdminL10n","default_query_params"],{})}var s=n(99),c=n(63),l=n(47),u=n(74);function p(){var e=Object(r.get)(window,["wpseoScriptData","analysis","worker","url"],"analysis-worker.js"),t=Object(a.createWorker)(e),n=Object(r.get)(window,["wpseoScriptData","analysis","worker","dependencies"],[]),o=[];for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var s=window.document.getElementById("".concat(i,"-js-translations"));if(s){var c=s.innerHTML.slice(214),l=c.indexOf(","),u=c.slice(0,l-1);try{var p=JSON.parse(c.slice(l+1,-4));o.push([u,p])}catch(e){console.warn("Failed to parse translation data for ".concat(i," to send to the Yoast SEO worker"));continue}}}return t.postMessage({dependencies:n,translations:o}),new a.AnalysisWorkerWrapper(t)}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={locale:Object(o.a)(),contentAnalysisActive:Object(c.a)(),keywordAnalysisActive:Object(l.a)(),defaultQueryParams:i(),logLevel:Object(r.get)(window,["wpseoScriptData","analysis","worker","log_level"],"ERROR"),enabledFeatures:Object(u.enabledFeatures)()};t=Object(r.merge)(t,e);var n=Object(s.a)();return Object(r.isUndefined)(n)||Object(r.isUndefined)(n.domain)||(t.translations=n),t}},function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(54),i=n(44);t.a=Object(r.compose)([Object(a.withSelect)((function(e){return{isCornerstone:(0,e("yoast-seo/editor").isCornerstoneContent)(),learnMoreUrl:wpseoAdminL10n["shortlinks.cornerstone_content_info"]}})),Object(a.withDispatch)((function(e){return{onChange:e("yoast-seo/editor").toggleCornerstoneContent}})),Object(i.a)()])(o.CollapsibleCornerstone)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3);function a(e){return void 0===e.length?e:Object(r.flatten)(e).sort((function(e,t){return void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority}))}},,,function(e,t,n){"use strict";var r,a=n(14),o=n.n(a),i=n(0),s=n(20),c=n(6),l=n(2),u=n(1),p=n.n(u),d=n(24),m=n.n(d),f=n(15),h=n.n(f),b=n(4),g=n(21),y=n(8),w=n(31),O=n.n(w),v=n(13),j=n.n(v),E=n(76),_=n(74),k=j.a.div(r||(r=h()(["\n\tpadding: 16px;\n"]))),T=function(e,t,n){var r=e.find((function(e){return e.value===t}));return[{name:Object(l.sprintf)(
50
  /* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */
51
  Object(l.__)("Default for %1$s (%2$s)","wordpress-seo"),n,r?r.name:""),value:""}].concat(m()(e))},R=function(e){return Object(l.sprintf)(
52
  /* translators: %1$s expands to the plural name of the current post type, %2$s and %3$s expand to a link to the Search Appearance Settings page */
53
+ Object(l.__)("You can change the default type for %1$s in your %2$sSearch Appearance Settings%3$s.","wordpress-seo"),e,"{{link}}","{{/link}}")},S=function(e){return Object(i.createElement)(b.FieldGroup,{label:e.helpTextTitle,linkTo:e.helpTextLink,linkText:Object(l.__)("Learn more about structured data with Schema.org","wordpress-seo"),description:e.helpTextDescription})};S.propTypes={helpTextTitle:p.a.string.isRequired,helpTextLink:p.a.string.isRequired,helpTextDescription:p.a.string.isRequired};var x=function(e){return Object(i.createElement)("p",null,e.helpTextDescription+" ",Object(i.createElement)("a",{href:e.helpTextLink},Object(l.__)("Read more about Schema.","wordpress-seo")))};x.propTypes={helpTextDescription:p.a.string.isRequired,helpTextLink:p.a.string.isRequired};var C=function(e){var t,n=T(e.pageTypeOptions,e.defaultPageType,e.postTypeName),r=T(e.articleTypeOptions,e.defaultArticleType,e.postTypeName),a=Object(_.isFeatureEnabled)("SCHEMA_BLOCKS");return Object(i.createElement)(i.Fragment,null,a?Object(i.createElement)(x,e):Object(i.createElement)(S,e),a&&Object(i.createElement)(g.Slot,{name:Object(y.join)(["yoast-schema-blocks-analysis",e.location])}),Object(i.createElement)(b.FieldGroup,{label:Object(l.__)("What type of page or content is this?","wordpress-seo"),linkTo:e.additionalHelpTextLink,linkText:Object(l.__)("Learn more about page or content types","wordpress-seo")}),Object(i.createElement)(b.Select,{id:Object(y.join)(["yoast-schema-page-type",e.location]),options:n,label:Object(l.__)("Page type","wordpress-seo"),onChange:e.schemaPageTypeChange,selected:e.schemaPageTypeSelected}),e.showArticleTypeInput&&Object(i.createElement)(b.Select,{id:Object(y.join)(["yoast-schema-article-type",e.location]),options:r,label:Object(l.__)("Article type","wordpress-seo"),onChange:e.schemaArticleTypeChange,selected:e.schemaArticleTypeSelected}),e.displayFooter&&Object(i.createElement)("p",null,(t=e.postTypeName,O()({mixedString:R(t),components:{link:Object(i.createElement)("a",{href:"/wp-admin/admin.php?page=wpseo_titles#top#post-types",target:"_blank"})}}))))};C.propTypes={schemaPageTypeChange:p.a.func,schemaPageTypeSelected:p.a.string,pageTypeOptions:E.b.isRequired,schemaArticleTypeChange:p.a.func,schemaArticleTypeSelected:p.a.string,articleTypeOptions:E.b.isRequired,showArticleTypeInput:p.a.bool.isRequired,additionalHelpTextLink:p.a.string.isRequired,helpTextLink:p.a.string.isRequired,helpTextTitle:p.a.string.isRequired,helpTextDescription:p.a.string.isRequired,postTypeName:p.a.string.isRequired,displayFooter:p.a.bool,defaultPageType:p.a.string.isRequired,defaultArticleType:p.a.string.isRequired,location:p.a.string.isRequired},C.defaultProps={schemaPageTypeChange:function(){},schemaPageTypeSelected:null,schemaArticleTypeChange:function(){},schemaArticleTypeSelected:null,displayFooter:!1};var P=function(e){return e.isMetabox?Object(i.createPortal)(Object(i.createElement)(k,null,Object(i.createElement)(C,e)),document.getElementById("wpseo-meta-section-schema")):Object(i.createElement)(C,e)};P.propTypes={showArticleTypeInput:p.a.bool,articleTypeLabel:p.a.string,additionalHelpTextLink:p.a.string,pageTypeLabel:p.a.string.isRequired,helpTextLink:p.a.string.isRequired,helpTextTitle:p.a.string.isRequired,helpTextDescription:p.a.string.isRequired,isMetabox:p.a.bool.isRequired,postTypeName:p.a.string.isRequired,displayFooter:p.a.bool,loadSchemaArticleData:p.a.func.isRequired,loadSchemaPageData:p.a.func.isRequired,location:p.a.string.isRequired},P.defaultProps={showArticleTypeInput:!1,articleTypeLabel:"",additionalHelpTextLink:"",displayFooter:!1};var D=P,A=n(77),q=n(44);function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var F=function(e){var t=null!==A.a.articleTypeInput;Object(i.useEffect)((function(){e.loadSchemaPageData(),t&&e.loadSchemaArticleData()}),[]);var n=window.wpseoScriptData.metabox.schema,r=n.pageTypeOptions,a=n.articleTypeOptions,o={articleTypeLabel:Object(l.__)("Article type","wordpress-seo"),pageTypeLabel:Object(l.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:Object(l.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:Object(l.__)("This helps search engines understand your website and your content. You can change some of your settings for this page below.","wordpress-seo"),showArticleTypeInput:t,pageTypeOptions:r,articleTypeOptions:a},s=I(I(I({},e),o),"metabox"===e.location?{helpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.page_type"],isMetabox:!0}:{helpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.page_type"],isMetabox:!1});return Object(i.createElement)(D,s)};F.propTypes={displayFooter:p.a.bool.isRequired,schemaPageTypeSelected:p.a.string.isRequired,schemaArticleTypeSelected:p.a.string.isRequired,defaultArticleType:p.a.string.isRequired,defaultPageType:p.a.string.isRequired,loadSchemaPageData:p.a.func.isRequired,loadSchemaArticleData:p.a.func.isRequired,schemaPageTypeChange:p.a.func.isRequired,schemaArticleTypeChange:p.a.func.isRequired,location:p.a.string.isRequired},t.a=Object(s.compose)([Object(c.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getPreferences,r=t.getPageType,a=t.getDefaultPageType,o=t.getArticleType,i=t.getDefaultArticleType;return{displayFooter:n().displaySchemaSettingsFooter,schemaPageTypeSelected:r(),schemaArticleTypeSelected:o(),defaultArticleType:i(),defaultPageType:a()}})),Object(c.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setPageType,r=t.setArticleType;return{loadSchemaPageData:t.getSchemaPageData,loadSchemaArticleData:t.getSchemaArticleData,schemaPageTypeChange:n,schemaArticleTypeChange:r}})),Object(q.a)()])(F)},function(e,t,n){"use strict";var r=n(20),a=n(6),o=n(0),i=n(2),s=n(4),c=n(8),l=n(1),u=n.n(l),p=n(30),d=function(e){var t=e.noIndex,n=e.onNoIndexChange,r=e.editorContext,a=e.isPrivateBlog,l=function(e){var t=Object(i.__)("No","wordpress-seo"),n=Object(i.__)("Yes","wordpress-seo"),r=e.noIndex?t:n;return window.wpseoScriptData.isPost?[{name:Object(i.sprintf)(
54
  /* Translators: %s translates to "yes" or "no", %s translates to the Post Label in plural form */
55
  Object(i.__)("%s (current default for %s)","wordpress-seo"),r,e.postTypeNamePlural),value:"0"},{name:t,value:"1"},{name:n,value:"2"}]:[{name:Object(i.sprintf)(
56
  /* Translators: %s translates to the "yes" or "no" ,%s translates to the Post Label in plural form */
58
  /* Translators: %s translates to the Post Label in singular form */
59
  Object(i.__)("Allow search engines to show this %s in search results?","wordpress-seo"),r.postTypeNameSingular),onChange:n,id:Object(c.join)(["yoast-meta-robots-noindex",e]),options:l,selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.allow_search_engines"],linkText:Object(i.__)("Learn more about the no-index setting on our help page.","wordpress-seo")}))}))};d.propTypes={noIndex:u.a.string.isRequired,onNoIndexChange:u.a.func.isRequired,editorContext:u.a.object.isRequired,isPrivateBlog:u.a.bool},d.defaultProps={isPrivateBlog:!1};var m=function(e){var t=e.noFollow,n=e.onNoFollowChange,r=e.postTypeName;return Object(o.createElement)(p.LocationConsumer,null,(function(e){var a=Object(c.join)(["yoast-meta-robots-nofollow",e]);return Object(o.createElement)(s.RadioButtonGroup,{id:a,options:[{value:"0",label:"Yes"},{value:"1",label:"No"}],label:Object(i.sprintf)(
60
  /* Translators: %s translates to the Post Label in singular form */
61
+ Object(i.__)("Should search engines follow links on this %s","wordpress-seo"),r),groupName:a,onChange:n,selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.follow_links"],linkText:Object(i.__)("Learn more about the no-follow setting on our help page.","wordpress-seo")})}))};m.propTypes={noFollow:u.a.string.isRequired,onNoFollowChange:u.a.func.isRequired,postTypeName:u.a.string.isRequired};var f=function(e){var t=e.advanced,n=e.onAdvancedChange;return Object(o.createElement)(p.LocationConsumer,null,(function(e){var r=Object(c.join)(["yoast-meta-robots-advanced",e]),a="".concat(r,"-input");return Object(o.createElement)(s.MultiSelect,{label:Object(i.__)("Meta robots advanced","wordpress-seo"),onChange:n,id:r,inputId:a,options:[{name:Object(i.__)("No Image Index","wordpress-seo"),value:"noimageindex"},{name:Object(i.__)("No Archive","wordpress-seo"),value:"noarchive"},{name:Object(i.__)("No Snippet","wordpress-seo"),value:"nosnippet"}],selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.meta_robots"],linkText:Object(i.__)("Learn more about advanced meta robots settings on our help page.","wordpress-seo")})}))};f.propTypes={advanced:u.a.array.isRequired,onAdvancedChange:u.a.func.isRequired};var h=function(e){var t=e.breadcrumbsTitle,n=e.onBreadcrumbsTitleChange;return Object(o.createElement)(p.LocationConsumer,null,(function(e){return Object(o.createElement)(s.TextInput,{label:Object(i.__)("Breadcrumbs Title","wordpress-seo"),id:Object(c.join)(["yoast-breadcrumbs-title",e]),onChange:n,value:t,linkTo:wpseoAdminL10n["shortlinks.advanced.breadcrumbs_title"],linkText:Object(i.__)("Learn more about the breadcrumbs title setting on our help page.","wordpress-seo")})}))};h.propTypes={breadcrumbsTitle:u.a.string.isRequired,onBreadcrumbsTitleChange:u.a.func.isRequired};var b=function(e){var t=e.canonical,n=e.onCanonicalChange;return Object(o.createElement)(p.LocationConsumer,null,(function(e){return Object(o.createElement)(s.TextInput,{label:Object(i.__)("Canonical URL","wordpress-seo"),id:Object(c.join)(["yoast-canonical",e]),onChange:n,value:t,linkTo:"https://yoa.st/canonical-url",linkText:Object(i.__)("Learn more about canonical URLs on our help page.","wordpress-seo")})}))};b.propTypes={canonical:u.a.string.isRequired,onCanonicalChange:u.a.func.isRequired};var g=function(e){var t=e.noIndex,n=e.noFollow,r=e.advanced,a=e.breadcrumbsTitle,i=e.canonical,s=e.onNoIndexChange,c=e.onNoFollowChange,l=e.onAdvancedChange,u=e.onBreadcrumbsTitleChange,p=e.onCanonicalChange,g=e.onLoad,y=e.isLoading,w=e.editorContext,O=e.isBreadcrumbsDisabled,v=e.isPrivateBlog;Object(o.useEffect)((function(){setTimeout((function(){y&&g()}))}));var j={noIndex:t,onNoIndexChange:s,editorContext:w,isPrivateBlog:v},E={noFollow:n,onNoFollowChange:c,postTypeName:w.postTypeNameSingular},_={advanced:r,onAdvancedChange:l},k={breadcrumbsTitle:a,onBreadcrumbsTitleChange:u},T={canonical:i,onCanonicalChange:p};return y?null:Object(o.createElement)(o.Fragment,null,Object(o.createElement)(d,j),w.isPost&&Object(o.createElement)(m,E),w.isPost&&Object(o.createElement)(f,_),!O&&Object(o.createElement)(h,k),Object(o.createElement)(b,T))};g.propTypes={noIndex:u.a.string.isRequired,canonical:u.a.string.isRequired,onNoIndexChange:u.a.func.isRequired,onCanonicalChange:u.a.func.isRequired,onLoad:u.a.func.isRequired,isLoading:u.a.bool.isRequired,editorContext:u.a.object.isRequired,isBreadcrumbsDisabled:u.a.bool.isRequired,isPrivateBlog:u.a.bool,advanced:u.a.array,onAdvancedChange:u.a.func,noFollow:u.a.string,onNoFollowChange:u.a.func,breadcrumbsTitle:u.a.string,onBreadcrumbsTitleChange:u.a.func},g.defaultProps={advanced:[],onAdvancedChange:function(){},noFollow:"",onNoFollowChange:function(){},breadcrumbsTitle:"",onBreadcrumbsTitleChange:function(){},isPrivateBlog:!1};var y=g;t.a=Object(r.compose)([Object(a.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getNoIndex,r=t.getNoFollow,a=t.getAdvanced,o=t.getBreadcrumbsTitle,i=t.getCanonical,s=t.getIsLoading,c=t.getEditorContext,l=(0,t.getPreferences)(),u=l.isBreadcrumbsDisabled,p=l.isPrivateBlog;return{noIndex:n(),noFollow:r(),advanced:a(),breadcrumbsTitle:o(),canonical:i(),isLoading:s(),editorContext:c(),isBreadcrumbsDisabled:u,isPrivateBlog:p}})),Object(a.withDispatch)((function(e){var t=e("yoast-seo/editor");return{onNoIndexChange:t.setNoIndex,onNoFollowChange:t.setNoFollow,onAdvancedChange:t.setAdvanced,onBreadcrumbsTitleChange:t.setBreadcrumbsTitle,onCanonicalChange:t.setCanonical,onLoad:t.loadAdvancedSettingsData}}))])(y)},function(e,t,n){"use strict";n.d(t,"b",(function(){return j})),n.d(t,"a",(function(){return E}));var r=n(24),a=n.n(r),o=n(9),i=n.n(o),s=n(10),c=n.n(s),l=n(18),u=n.n(l),p=n(19),d=n.n(p),m=n(11),f=n.n(m),h=n(0),b=n(21),g=n(23),y=n(69);var w=[],O=null,v=function(e){u()(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=f()(t);if(n){var a=f()(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return d()(this,e)});function o(e){var t;return i()(this,o),(t=r.call(this,e)).state={registeredComponents:[]},t}return c()(o,[{key:"registerComponent",value:function(e,t){this.setState({registeredComponents:[].concat(a()(this.state.registeredComponents),[{key:e,Component:t}])})}},{key:"render",value:function(){return this.state.registeredComponents.map((function(e){var t=e.Component,n=e.key;return Object(h.createElement)(t,{key:n})}))}}]),o}(h.Component);function j(e,t){var n=Object(g.a)();O=Object(h.createRef)();var r={isRtl:n.isRtl};Object(h.render)(Object(h.createElement)(y.a,{theme:r,location:"sidebar"},Object(h.createElement)(b.SlotFillProvider,null,Object(h.createElement)(h.Fragment,null,t,Object(h.createElement)(v,{ref:O})))),document.getElementById(e)),w.forEach((function(e){O.current.registerComponent(e.key,e.Component)}))}function E(e,t){null===O||null===O.current?w.push({key:e,Component:t}):O.current.registerComponent(e,t)}},,,,function(e,t){e.exports=window.yoast.searchMetadataPreviews},function(e,t,n){"use strict";var r=n(0),a=n(21),o=n(1),i=n.n(o),s=n(88),c=function(e){return Object(r.useEffect)((function(){setTimeout(e.onLoad)}),[]),e.isPremium?Object(r.createElement)(a.Slot,{name:"YoastTwitterPremium".concat(e.location.charAt(0).toUpperCase()+e.location.slice(1)),fillProps:e}):Object(r.createElement)(s.a,e)};c.propTypes={isPremium:i.a.bool.isRequired,onLoad:i.a.func.isRequired,location:i.a.string.isRequired},t.a=c},function(e,t){e.exports=window.yoast.socialMetadataForms},function(e,t,n){"use strict";var r=n(14),a=n.n(r),o=n(29),i=n.n(o),s=n(0),c=n(21),l=n(1),u=n.n(l),p=n(88);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=function(e){var t=Object(s.useState)(""),n=i()(t,2),r=n[0],a=n[1],o=Object(s.useCallback)((function(e){a(e.detail.metaTabId)}),[a]);Object(s.useEffect)((function(){return setTimeout(e.onLoad),window.addEventListener("YoastSEO:metaTabChange",o),function(){window.removeEventListener("YoastSEO:metaTabChange",o)}}),[]);var l=Object(s.useMemo)((function(){return m(m({},e),{},{activeMetaTabId:r})}),[e,r]);return e.isPremium?Object(s.createElement)(c.Slot,{name:"YoastFacebookPremium".concat(e.location.charAt(0).toUpperCase()+e.location.slice(1)),fillProps:l}):Object(s.createElement)(p.a,l)};f.propTypes={isPremium:u.a.bool.isRequired,onLoad:u.a.func.isRequired,location:u.a.string.isRequired},t.a=f},,function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(34),a=n.n(r),o=n(9),i=n.n(o),s=n(10),c=n.n(s),l=n(3),u=function(){function e(t){i()(this,e),this.refresh=t,this.loaded=!1,this.preloadThreshold=3e3,this.plugins={},this.modifications={},this._registerPlugin=this._registerPlugin.bind(this),this._ready=this._ready.bind(this),this._reloaded=this._reloaded.bind(this),this._registerModification=this._registerModification.bind(this),this._registerAssessment=this._registerAssessment.bind(this),this._applyModifications=this._applyModifications.bind(this),setTimeout(this._pollLoadingPlugins.bind(this),1500)}return c()(e,[{key:"_registerPlugin",value:function(e,t){return Object(l.isString)(e)?Object(l.isUndefined)(t)||Object(l.isObject)(t)?!1===this._validateUniqueness(e)?(console.error("Failed to register plugin. Plugin with name "+e+" already exists"),!1):(this.plugins[e]=t,!0):(console.error("Failed to register plugin "+e+". Expected parameters `options` to be a object."),!1):(console.error("Failed to register plugin. Expected parameter `pluginName` to be a string."),!1)}},{key:"_ready",value:function(e){return Object(l.isString)(e)?Object(l.isUndefined)(this.plugins[e])?(console.error("Failed to modify status for plugin "+e+". The plugin was not properly registered."),!1):(this.plugins[e].status="ready",!0):(console.error("Failed to modify status for plugin "+e+". Expected parameter `pluginName` to be a string."),!1)}},{key:"_reloaded",value:function(e){return Object(l.isString)(e)?Object(l.isUndefined)(this.plugins[e])?(console.error("Failed to reload Content Analysis for plugin "+e+". The plugin was not properly registered."),!1):(this.refresh(),!0):(console.error("Failed to reload Content Analysis for "+e+". Expected parameter `pluginName` to be a string."),!1)}},{key:"_registerModification",value:function(e,t,n,r){if(!Object(l.isString)(e))return console.error("Failed to register modification for plugin "+n+". Expected parameter `modification` to be a string."),!1;if(!Object(l.isFunction)(t))return console.error("Failed to register modification for plugin "+n+". Expected parameter `callable` to be a function."),!1;if(!Object(l.isString)(n))return console.error("Failed to register modification for plugin "+n+". Expected parameter `pluginName` to be a string."),!1;if(!1===this._validateOrigin(n))return console.error("Failed to register modification for plugin "+n+". The integration has not finished loading yet."),!1;var a={callable:t,origin:n,priority:Object(l.isNumber)(r)?r:10};return Object(l.isUndefined)(this.modifications[e])&&(this.modifications[e]=[]),this.modifications[e].push(a),!0}},{key:"_registerAssessment",value:function(e,t,n,r){return Object(l.isString)(t)?Object(l.isObject)(n)?Object(l.isString)(r)?(t=r+"-"+t,e.addAssessment(t,n),!0):(console.error("Failed to register assessment for plugin "+r+". Expected parameter `pluginName` to be a string."),!1):(console.error("Failed to register assessment for plugin "+r+". Expected parameter `assessment` to be a function."),!1):(console.error("Failed to register test for plugin "+r+". Expected parameter `name` to be a string."),!1)}},{key:"_applyModifications",value:function(e,t,n){var r=this.modifications[e];return!Object(l.isArray)(r)||r.length<1||((r=this._stripIllegalModifications(r)).sort((function(e,t){return e.priority-t.priority})),Object(l.forEach)(r,(function(r){var o=r.callable(t,n);a()(o)===a()(t)?t=o:console.error("Modification with name "+e+" performed by plugin with name "+r.origin+" was ignored because the data that was returned by it was of a different type than the data we had passed it.")}))),t}},{key:"_pollLoadingPlugins",value:function(e){e=Object(l.isUndefined)(e)?0:e,!0===this._allReady()?(this.loaded=!0,this.refresh()):e>=this.preloadThreshold?(this._pollTimeExceeded(),this.loaded=!0,this.refresh()):(e+=50,setTimeout(this._pollLoadingPlugins.bind(this,e),50))}},{key:"_allReady",value:function(){return Object(l.reduce)(this.plugins,(function(e,t){return e&&"ready"===t.status}),!0)}},{key:"_pollTimeExceeded",value:function(){Object(l.forEach)(this.plugins,(function(e,t){Object(l.isUndefined)(e.options)||"ready"===e.options.status||(console.error("Error: Plugin "+t+". did not finish loading in time."),delete this.plugins[t])}))}},{key:"_stripIllegalModifications",value:function(e){var t=this;return Object(l.forEach)(e,(function(n,r){!1===t._validateOrigin(n.origin)&&delete e[r]})),e}},{key:"_validateOrigin",value:function(e){return"ready"===this.plugins[e].status}},{key:"_validateUniqueness",value:function(e){return Object(l.isUndefined)(this.plugins[e])}}]),e}()},function(e,t,n){"use strict";n.r(t);var r=n(103);n.d(t,"DISMISS_ALERT",(function(){return r.DISMISS_ALERT}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=jQuery;function o(e,t,n,r){this._scriptUrl=r,this._options={usedKeywords:t.keyword_usage,searchUrl:t.search_url,postUrl:t.post_edit_url},this._keywordUsage=t.keyword_usage,this._postID=a("#post_ID, [name=tag_ID]").val(),this._taxonomy=a("[name=taxonomy]").val()||"",this._ajaxAction=e,this._refreshAnalysis=n,this._initialized=!1}o.prototype.init=function(){var e=this,t=window.YoastSEO.analysis.worker;this.requestKeywordUsage=Object(r.debounce)(this.requestKeywordUsage.bind(this),500),t.loadScript(this._scriptUrl).then((function(){t.sendMessage("initialize",e._options,"used-keywords-assessment")})).then((function(){e._initialized=!0,Object(r.isEqual)(e._options.usedKeywords,e._keywordUsage)?e._refreshAnalysis():t.sendMessage("updateKeywordUsage",e._keywordUsage,"used-keywords-assessment").then((function(){return e._refreshAnalysis()}))})).catch((function(e){return console.error(e)}))},o.prototype.setKeyword=function(e){Object(r.has)(this._keywordUsage,e)||this.requestKeywordUsage(e)},o.prototype.requestKeywordUsage=function(e){a.post(ajaxurl,{action:this._ajaxAction,post_id:this._postID,keyword:e,taxonomy:this._taxonomy},this.updateKeywordUsage.bind(this,e),"json")},o.prototype.updateKeywordUsage=function(e,t){var n=this,a=window.YoastSEO.analysis.worker;t&&Object(r.isArray)(t)&&(this._keywordUsage[e]=t,this._initialized&&a.sendMessage("updateKeywordUsage",this._keywordUsage,"used-keywords-assessment").then((function(){return n._refreshAnalysis()})))}},,,,,,,,,function(e,t,n){"use strict";var r=n(6),a=n(20),o=n(0),i=n(2),s=n(1),c=n.n(s),l=n(25),u=n(96),p=n(50),d=n(104),m=n(80),f=n(81),h=n(94);function b(e){var t=e.keyphrases,n=e.onNoKeyphraseSet,r=e.onOpen,a=e.location;if(!t.length)return document.querySelector("#focus-keyword-input-sidebar").focus(),void n();r(a)}function g(e,t){Object(m.b)(t)&&e.onClose()}function y(e){var t=e.location,n=e.whichModalOpen,r=Object(o.useCallback)((function(){b(e)}),[b,e]),a=Object(o.useCallback)((function(t){g(e,t)}),[g,e]),s=Object(i.__)("Track SEO performance","wordpress-seo");return Object(o.createElement)(o.Fragment,null,n===t&&Object(o.createElement)(p.a,{title:s,onRequestClose:a,icon:Object(o.createElement)(d.a,null),additionalClassName:"yoast-wincher-seo-performance-modal"},Object(o.createElement)(u.a,{className:"yoast-gutenberg-modal__content yoast-wincher-seo-performance-modal__content"},Object(o.createElement)(h.a,null))),"sidebar"===t&&Object(o.createElement)(f.a,{id:"wincher-open-button-".concat(t),title:s,suffixIcon:{size:"20px",icon:"pencil-square"},prefixIcon:{icon:"chart-square-bar",color:l.colors.$color_grey_medium_dark},onClick:r}))}y.propTypes={location:c.a.string,whichModalOpen:c.a.oneOf(["none","metabox","sidebar","postpublish"])},y.defaultProps={location:"",whichModalOpen:"none"},t.a=Object(a.compose)([Object(r.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getWincherModalOpen;return{keyphrases:(0,t.getWincherTrackableKeyphrases)(),whichModalOpen:n()}})),Object(r.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setWincherOpenModal,r=t.setWincherDismissModal,a=t.setWincherNoKeyphrase;return{onOpen:function(e){n(e)},onClose:function(){r()},onNoKeyphraseSet:function(){a()}}}))])(y)},,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(6),a=n(3),o=n(27);function i(e,t){window.YoastSEO.analysis.worker.runResearch("readingTime",new o.Paper(e,{locale:t})).then((function(e){Object(r.dispatch)("yoast-seo/editor").setEstimatedReadingTime(e.result)}))}var s=Object(a.debounce)(i,1500,{maxWait:3e3}),c="",l="",u=null;function p(){var e=Object(r.select)("core/editor").getCurrentPostId(),t=Object(r.select)("core/editor").getCurrentPostType(),n=Object(r.select)("core").getEditedEntityRecord("postType",t,e);if(u!==n){u=n;var a=Object(r.select)("core/editor").getEditedPostAttribute("content"),o=Object(r.select)("yoast-seo/editor").getContentLocale();c===a&&l===o||(c=a,l=o,i(a,o))}}function d(){var e=Object(r.select)("yoast-seo/editor").getEditorDataContent(),t=Object(r.select)("yoast-seo/editor").getContentLocale();c===e&&l===t||(c=e,l=t,i(e,t))}function m(){var e,t,n;!1!==Object(a.get)(window,"wpseoScriptData.analysis.estimatedReadingTimeEnabled",!1)&&(Object(r.dispatch)("yoast-seo/editor").loadEstimatedReadingTime(),"1"===window.wpseoScriptData.isElementorEditor?Object(r.subscribe)(Object(a.debounce)(d,1500,{maxWait:3e3})):"1"===window.wpseoScriptData.isBlockEditor?Object(r.subscribe)(Object(a.debounce)(p,1500,{maxWait:3e3})):(e=["input","change","cut","paste"],t="1"===Object(a.get)(window,"wpseoScriptData.isPost","0")?"content":"description",n=Object(r.select)("yoast-seo/editor").getContentLocale(),jQuery(document).on("tinymce-editor-init",(function(r,a){a.id===t&&e.forEach((function(e){a.on(e,(function(){s(a.getContent(),n)}))}))}))))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"authorFirstName",(function(){return be})),n.d(r,"authorLastName",(function(){return ge})),n.d(r,"currentDate",(function(){return ye})),n.d(r,"currentDay",(function(){return we})),n.d(r,"currentMonth",(function(){return Oe})),n.d(r,"category",(function(){return ve})),n.d(r,"categoryTitle",(function(){return je})),n.d(r,"currentYear",(function(){return Ee})),n.d(r,"date",(function(){return _e})),n.d(r,"excerpt",(function(){return ke})),n.d(r,"focusKeyphrase",(function(){return Te})),n.d(r,"id",(function(){return Re})),n.d(r,"modified",(function(){return Se})),n.d(r,"name",(function(){return xe})),n.d(r,"page",(function(){return Ce})),n.d(r,"pageNumber",(function(){return Pe})),n.d(r,"pageTotal",(function(){return De})),n.d(r,"permalink",(function(){return Ae})),n.d(r,"postContent",(function(){return qe})),n.d(r,"postDay",(function(){return Le})),n.d(r,"postMonth",(function(){return Ie})),n.d(r,"postYear",(function(){return Fe})),n.d(r,"postTypeNamePlural",(function(){return Ne})),n.d(r,"postTypeNameSingular",(function(){return Me})),n.d(r,"primaryCategory",(function(){return Ke})),n.d(r,"searchPhrase",(function(){return We})),n.d(r,"separator",(function(){return Ue})),n.d(r,"siteDescription",(function(){return Be})),n.d(r,"siteName",(function(){return Ve})),n.d(r,"tag",(function(){return He})),n.d(r,"term404",(function(){return Ye})),n.d(r,"termDescription",(function(){return ze})),n.d(r,"termHierarchy",(function(){return Ge})),n.d(r,"termTitle",(function(){return Ze})),n.d(r,"title",(function(){return Qe})),n.d(r,"userDescription",(function(){return Je}));var a={};n.r(a),n.d(a,"getAnalysisData",(function(){return $t}));var o={};n.r(o),n.d(o,"updateData",(function(){return Xt})),n.d(o,"loadSnippetEditorData",(function(){return en}));var i=n(6),s=n(111),c=n(128),l=null,u=function(){if(null===l){var e=Object(i.dispatch)("yoast-seo/editor").runAnalysis;l=new c.a(e)}return l},p=function(e){return u()._ready(e)},d=function(e){return u()._reloaded(e)},m=function(e,t,n,r){return u()._registerModification(e,t,n,r)},f=function(e,t){return u()._registerPlugin(e,t)},h=function(e,t,n){return u().loaded?u()._applyModifications(e,t,n):t},b=n(38),g=n.n(b),y=n(16),w=n.n(y),O=n(7),v=n.n(O),j=n(3),E=n(27),_=n(95),k=n(62),T=n(78),R=n(112);function S(){return(S=w()(v.a.mark((function e(t,n){var r,a,o,s,c,l,u,p;return v.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.text,a=g()(n,["text"]),o=new E.Paper(r,a),e.prev=2,e.next=5,t.analyze(o);case 5:s=e.sent,c=s.result,l=c.seo,u=c.readability,l&&((p=l[""]).results=Object(T.sortResultsByIdentifier)(p.results),Object(i.dispatch)("yoast-seo/editor").setSeoResultsForKeyword(o.getKeyword(),p.results),Object(i.dispatch)("yoast-seo/editor").setOverallSeoScore(p.score,o.getKeyword())),u&&(u.results=Object(T.sortResultsByIdentifier)(u.results),Object(i.dispatch)("yoast-seo/editor").setReadabilityResults(u.results),Object(i.dispatch)("yoast-seo/editor").setOverallReadabilityScore(u.score)),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(2),Object(k.a)();case 14:case"end":return e.stop()}}),e,null,[[2,11]])})))).apply(this,arguments)}var x=Object(j.debounce)((function(_x,e){return S.apply(this,arguments)}),_.refreshDelay);function C(){var e=function(e){return e.title=h("data_page_title",e.title),e.title=h("title",e.title),e.description=h("data_meta_desc",e.description),e.text=h("content",e.text),e}((0,Object(i.select)("yoast-seo/editor").getAnalysisData)());return Object(s.applyFilters)("yoast.analysis.data",e)}var P=n(0),D=n(2),A=n(13),q=n(9),L=n.n(q),I=n(10),F=n.n(I),N=n(18),M=n.n(N),K=n(19),W=n.n(K),U=n(11),B=n.n(U);function V(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=B()(e);if(t){var a=B()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return W()(this,n)}}var H=function(e){M()(n,e);var t=V(n);function n(e,r,a){var o;return L()(this,n),(o=t.call(this)).hook=e,o.id=r,o.callback=a,o}return F()(n,[{key:"getCommand",value:function(){return this.hook}},{key:"getId",value:function(){return this.id}},{key:"apply",value:function(){return this.callback()}}]),n}($e.modules.hookUI.Base),Y=function(e){M()(n,e);var t=V(n);function n(e,r,a){var o;return L()(this,n),(o=t.call(this)).hook=e,o.id=r,o.callback=a,o}return F()(n,[{key:"getCommand",value:function(){return this.hook}},{key:"getId",value:function(){return this.id}},{key:"apply",value:function(){return this.callback()}}]),n}($e.modules.hookData.Base);function z(e,t,n){$e.hooks.registerUIAfter(new H(e,t,n))}var $=n(119),G=n(21),Z=n(114);function Q(){return Object(P.createElement)(G.Slot,{name:"YoastElementor"},(function(e){return Object(Z.a)(e)}))}var J=n(20),X=n(1),ee=n.n(X),te=n(113),ne=n(4);function re(e){return 0===e.message.length?null:Object(P.createElement)(ne.Alert,{type:e.type},e.message)}re.propTypes={message:ee.a.oneOfType([ee.a.array,ee.a.string]).isRequired,type:ee.a.string.isRequired};var ae=Object(i.withSelect)((function(e){return{message:(0,e("yoast-seo/editor").getWarningMessage)(),type:"info"}}))(re),oe=n(54),ie=n(33),se=n(75),ce=n(14),le=n.n(ce),ue=n(26),pe=n.n(ue),de=n(123),me=n(105),fe=n(44),he=n(8),be={name:"author_first_name",label:"Author first name",placeholder:"%%author_first_name%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_first_name","")},regexp:new RegExp("%%author_first_name%%","g")},ge={name:"author_last_name",label:"Author last name",placeholder:"%%author_last_name%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_last_name","")},regexp:new RegExp("%%author_last_name%%","g")},ye={name:"currentdate",label:"Current date",placeholder:"%%currentdate%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentdate","")},regexp:new RegExp("%%currentdate%%","g")},we={name:"currentday",label:"Current day",placeholder:"%%currentday%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentday","")},regexp:new RegExp("%%currentday%%","g")},Oe={name:"currentmonth",label:"Current month",placeholder:"%%currentmonth%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentmonth","")},regexp:new RegExp("%%currentmonth%%","g")},ve={name:"category",label:"Category",placeholder:"%%category%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category","")},regexp:new RegExp("%%category%%","g")},je={name:"category_title",label:"Category Title",placeholder:"%%category_title%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category_title","")},regexp:new RegExp("%%category_title%%","g")},Ee={name:"currentyear",label:"Current year",placeholder:"%%currentyear%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentyear","")},regexp:new RegExp("%%currentyear%%","g")},_e={name:"date",label:"Date",placeholder:"%%date%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.date","")},regexp:new RegExp("%%date%%","g")},ke={name:"excerpt",label:"Excerpt",placeholder:"%%excerpt%%",aliases:[{name:"excerpt_only",label:"Excerpt only",placeholder:"%%excerpt_only%%"}],getReplacement:function(){return Object(i.select)("yoast-seo/editor").getEditorDataExcerptWithFallback()},regexp:new RegExp("%%excerpt%%|%%excerpt_only%%","g")},Te={name:"focuskw",label:"Focus keyphrase",placeholder:"%%focuskw%%",aliases:[],getReplacement:function(){return Object(i.select)("yoast-seo/editor").getFocusKeyphrase()},regexp:new RegExp("%%focuskw%%|%%keyword%%","g")},Re={name:"id",label:"ID",placeholder:"%%id%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.id","")},regexp:new RegExp("%%id%%","g")},Se={name:"modified",label:"Modified",placeholder:"%%modified%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.modified","")},regexp:new RegExp("%%modified%%","g")},xe={name:"name",label:"Name",placeholder:"%%name%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.name","")},regexp:new RegExp("%%name%%","g")},Ce={name:"page",label:"Page",placeholder:"%%page%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.page","")},regexp:new RegExp("%%page%%","g")},Pe={name:"pagenumber",label:"Pagenumber",placeholder:"%%pagenumber%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagenumber","")},regexp:new RegExp("%%pagenumber%%","g")},De={name:"pagetotal",label:"Pagetotal",placeholder:"%%pagetotal%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagetotal","")},regexp:new RegExp("%%pagetotal%%","g")},Ae={name:"permalink",label:"Permalink",placeholder:"%%permalink%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.permalink","")},regexp:new RegExp("%%permalink%%","g")},qe={name:"post_content",label:"Post Content",placeholder:"%%post_content%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_content","")},regexp:new RegExp("%%post_content%%","g")},Le={name:"post_day",label:"Post Day",placeholder:"%%post_day%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_day","")},regexp:new RegExp("%%post_day%%","g")},Ie={name:"post_month",label:"Post Month",placeholder:"%%post_month%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_month","")},regexp:new RegExp("%%post_month%%","g")},Fe={name:"post_year",label:"Post Year",placeholder:"%%post_year%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_year","")},regexp:new RegExp("%%post_year%%","g")},Ne={name:"pt_plural",label:"Post type (plural)",placeholder:"%%pt_plural%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_plural","")},regexp:new RegExp("%%pt_plural%%","g")},Me={name:"pt_single",label:"Post type (singular)",placeholder:"%%pt_single%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_single","")},regexp:new RegExp("%%pt_single%%","g")},Ke={name:"primary_category",label:"Primary category",placeholder:"%%primary_category%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.primary_category","")},regexp:new RegExp("%%primary_category%%","g")},We={name:"searchphrase",label:"Search phrase",placeholder:"%%searchphrase%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.searchphrase","")},regexp:new RegExp("%%searchphrase%%","g")},Ue={name:"sep",label:"Separator",placeholder:"%%sep%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sep","")},regexp:new RegExp("%%sep%%(\\s*%%sep%%)*","g")},Be={name:"sitedesc",label:"Tagline",placeholder:"%%sitedesc%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitedesc","")},regexp:new RegExp("%%sitedesc%%","g")},Ve={name:"sitename",label:"Site title",placeholder:"%%sitename%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitename","")},regexp:new RegExp("%%sitename%%","g")},He={name:"tag",label:"Tag",placeholder:"%%tag%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.tag","")},regexp:new RegExp("%%tag%%","g")},Ye={name:"term404",label:"Term404",placeholder:"%%term404%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term404","")},regexp:new RegExp("%%term404%%","g")},ze={name:"term_description",label:"Term description",placeholder:"%%term_description%%",aliases:[{name:"tag_description",label:"Tag description",placeholder:"%%tag_description%%"},{name:"category_description",label:"Category description",placeholder:"%%category_description%%"}],getReplacement:function(){return Object(j.get)(window,"YoastSEO.app.rawData.text","")},regexp:new RegExp("%%term_description%%|%%tag_description%%|%%category_description%%","g")},Ge={name:"term_hierarchy",label:"Term hierarchy",placeholder:"%%term_hierarchy%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_hierarchy","")},regexp:new RegExp("%%term_hierarchy%%","g")},Ze={name:"term_title",label:"Term title",placeholder:"%%term_title%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_title","")},regexp:new RegExp("%%term_title%%","g")},Qe={name:"title",label:"Title",placeholder:"%%title%%",aliases:[],getReplacement:function(){return Object(i.select)("yoast-seo/editor").getEditorDataTitle()},regexp:new RegExp("%%title%%","g")},Je={name:"user_description",label:"User description",placeholder:"%%user_description%%",aliases:[],getReplacement:function(){return Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.user_description","")},regexp:new RegExp("%%user_description%%","g")},Xe=n(28),et=null,tt=null,nt=function(e){["content","title","snippet_title","snippet_meta","primary_category","data_page_title","data_meta_desc","excerpt"].forEach((function(t){m(t,e,"replaceVariablePlugin",10)}))},rt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(""===e&&(e=Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.scope","")),e){case"post":case"page":return["authorFirstName","authorLastName","category","categoryTitle","currentDate","currentDay","currentMonth","currentYear","date","excerpt","id","focusKeyphrase","modified","name","page","primaryCategory","pageNumber","pageTotal","permalink","postContent","postDay","postMonth","postYear","postTypeNamePlural","postTypeNameSingular","searchPhrase","separator","siteDescription","siteName","tag","title","userDescription"]}return[]},at=function(e){return nt((function(t){return t.replace(new RegExp(e.placeholder,"g"),e.replacement)}))},ot=function(){if(null===tt){tt=[];var e=Object(j.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.hidden_replace_vars",[]);(null===et&&(et=rt().map((function(e){return r[e]}))),et).forEach((function(t){var n=e.includes(t.name);tt.push({name:t.name,label:t.label,value:t.placeholder,hidden:n}),t.aliases.forEach((function(e){tt.push({name:e.name,label:e.label,value:e.placeholder,hidden:n})}))}))}return tt};var it=he.strings.stripHTMLTags,st=function(e,t){var n=Object(i.select)("yoast-seo/editor").getSnippetEditorTemplates();""===e.title&&(e.title=n.title),""===e.description&&(e.description=n.description);var r=0;return t.shortenedBaseUrl&&"string"==typeof t.shortenedBaseUrl&&(r=t.shortenedBaseUrl.length),e.url=e.url.replace(/\s+/g,"-"),"-"===e.url[e.url.length-1]&&(e.url=e.url.slice(0,-1)),"-"===e.url[r]&&(e.url=e.url.slice(0,r)+e.url.slice(r+1)),{url:e.url,title:it(h("data_page_title",e.title)),description:it(h("data_meta_desc",e.description))}},ct=function(e){var t=e.isLoading,n=e.onLoad,r=e.location,a=g()(e,["isLoading","onLoad","location"]);return Object(P.useEffect)((function(){setTimeout((function(){t&&n()}))})),t?null:Object(P.createElement)(me.a,{icon:"eye",hasPaperStyle:a.hasPaperStyle},Object(P.createElement)(de.SnippetEditor,pe()({},a,{descriptionPlaceholder:Object(D.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:st,showCloseButton:!1,idSuffix:r})))};ct.propTypes={isLoading:ee.a.bool.isRequired,onLoad:ee.a.func.isRequired,hasPaperStyle:ee.a.bool.isRequired,location:ee.a.string.isRequired};var lt=Object(J.compose)([Object(i.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getBaseUrlFromSettings,r=t.getDateFromSettings,a=t.getEditorDataImageUrl,o=t.getFocusKeyphrase,i=t.getRecommendedReplaceVars,s=t.getSiteIconUrlFromSettings,c=t.getSnippetEditorData,l=t.getSnippetEditorIsLoading,u=t.getSnippetEditorMode,p=t.getSnippetEditorWordsToHighlight,d=t.isCornerstoneContent,m=t.getContentLocale;return{baseUrl:n(),data:c(),date:r(),faviconSrc:s(),isLoading:l(),keyword:o(),mobileImageSrc:a(),mode:u(),recommendedReplacementVariables:i(),replacementVariables:ot(),wordsToHighlight:p(),isCornerstone:d(),locale:m()}})),Object(i.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.updateData,r=t.switchMode,a=t.updateAnalysisData;return{onChange:function(e,t){switch(e){case"mode":r(t);break;case"slug":n({slug:t});break;default:n(le()({},e,t))}},onChangeAnalysisData:function(e){a(e)},onLoad:t.loadSnippetEditorData}})),Object(fe.a)()])(ct),ut=function(){return Object(P.createElement)(se.a,{title:Object(D.__)("Google preview","wordpress-seo"),id:"yoast-google-preview-modal"},Object(P.createElement)(lt,{showCloseButton:!1,hasPaperStyle:!1}))},pt=n(124),dt=n(23),mt=null,ft=function(){return(mt||(mt=window.wp.media()).on("select",(function(){var e=mt.state().get("selection").first(),t={type:e.attributes.subtype,width:e.attributes.width,height:e.attributes.height};Object(i.dispatch)("yoast-seo/editor").setTwitterPreviewImage({url:e.attributes.url,id:e.attributes.id,warnings:Object(he.validateTwitterImage)(t)})})),mt).open()},ht=Object(J.compose)([Object(i.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getTwitterDescription,r=t.getTwitterTitle,a=t.getTwitterImageUrl,o=t.getFacebookImageUrl,i=t.getFacebookTitle,s=t.getFacebookDescription,c=t.getDescription,l=t.getSeoTitle,u=t.getTwitterWarnings,p=t.getTwitterImageType,d=t.getEditorDataImageFallback,m=t.getRecommendedReplaceVars,f=t.getSiteUrl,h=t.getSeoTitleTemplate,b=t.getSeoTitleTemplateNoFallback,g=t.getSocialTitleTemplate,y=t.getSeoDescriptionTemplate,w=t.getSocialDescriptionTemplate,O=t.getEditorDataExcerptWithFallback;return{imageUrl:a(),imageFallbackUrl:o()||d(),recommendedReplacementVariables:m(),replacementVariables:ot(),description:n(),descriptionPreviewFallback:w()||s()||c()||y()||O()||"",title:r(),titlePreviewFallback:g()||i()||l()||b()||h()||"",imageWarnings:u(),siteUrl:f(),isPremium:!!Object(dt.a)().isPremium,isLarge:"summary"!==p(),titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Twitter"}})),Object(i.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setTwitterPreviewTitle,r=t.setTwitterPreviewDescription,a=t.clearTwitterPreviewImage,o=t.loadTwitterPreviewData;return{onSelectImageClick:ft,onRemoveImageClick:a,onDescriptionChange:r,onTitleChange:n,onLoad:o}})),Object(fe.a)()])(pt.a),bt=function(){return Object(P.createElement)(se.a,{title:Object(D.__)("Twitter preview","wordpress-seo"),id:"yoast-twitter-preview-modal"},Object(P.createElement)(ht,null))},gt=n(126),yt=null,wt=function(){return(yt||(yt=window.wp.media()).on("select",(function(){var e=yt.state().get("selection").first(),t={type:e.attributes.subtype,width:e.attributes.width,height:e.attributes.height};Object(i.dispatch)("yoast-seo/editor").setFacebookPreviewImage({url:e.attributes.url,id:e.attributes.id,warnings:Object(he.validateFacebookImage)(t)})})),yt).open()},Ot=Object(J.compose)([Object(i.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getFacebookDescription,r=t.getDescription,a=t.getFacebookTitle,o=t.getSeoTitle,i=t.getFacebookImageUrl,s=t.getEditorDataImageFallback,c=t.getFacebookWarnings,l=t.getRecommendedReplaceVars,u=t.getSiteUrl,p=t.getSeoTitleTemplate,d=t.getSeoTitleTemplateNoFallback,m=t.getSocialTitleTemplate,f=t.getSeoDescriptionTemplate,h=t.getSocialDescriptionTemplate,b=t.getEditorDataExcerptWithFallback;return{imageUrl:i(),imageFallbackUrl:s(),recommendedReplacementVariables:l(),replacementVariables:ot(),description:n(),descriptionPreviewFallback:h()||r()||f()||b()||"",title:a(),titlePreviewFallback:m()||o()||d()||p()||"",imageWarnings:c(),siteUrl:u(),isPremium:!!Object(dt.a)().isPremium,titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Facebook"}})),Object(i.withDispatch)((function(e){var t=e("yoast-seo/editor"),n=t.setFacebookPreviewTitle,r=t.setFacebookPreviewDescription,a=t.clearFacebookPreviewImage,o=t.loadFacebookPreviewData;return{onSelectImageClick:wt,onRemoveImageClick:a,onDescriptionChange:r,onTitleChange:n,onLoad:o}})),Object(fe.a)()])(gt.a),vt=function(){return Object(P.createElement)(se.a,{title:Object(D.__)("Facebook preview","wordpress-seo"),id:"yoast-facebook-preview-modal"},Object(P.createElement)(Ot,null))},jt=n(71),Et=n(117),_t=n(118),kt=n(108),Tt=n(139);function Rt(e){var t=e.isLoading,n=e.onLoad,r=e.settings;return Object(P.useEffect)((function(){setTimeout((function(){t&&n()}))})),t?null:Object(P.createElement)(G.Fill,{name:"YoastElementor"},Object(P.createElement)(ie.a,{renderPriority:1},Object(P.createElement)(ae,null)),r.isKeywordAnalysisActive&&Object(P.createElement)(ie.a,{renderPriority:8},Object(P.createElement)(oe.KeywordInput,{isSEMrushIntegrationActive:r.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&Object(P.createElement)(G.Fill,{name:"YoastRelatedKeyphrases"},Object(P.createElement)(kt.a,null))),Object(P.createElement)(ie.a,{renderPriority:23},Object(P.createElement)(ut,null)),r.displayFacebook&&Object(P.createElement)(ie.a,{renderPriority:24},Object(P.createElement)(vt,null)),r.displayTwitter&&Object(P.createElement)(ie.a,{renderPriority:25},Object(P.createElement)(bt,null)),r.displaySchemaSettings&&Object(P.createElement)(ie.a,{renderPriority:26},Object(P.createElement)(jt.a,{title:Object(D.__)("Schema","wordpress-seo")},Object(P.createElement)(Et.a,null))),r.displayAdvancedTab&&Object(P.createElement)(ie.a,{renderPriority:27},Object(P.createElement)(jt.a,{title:Object(D.__)("Advanced","wordpress-seo")},Object(P.createElement)(_t.a,{location:"sidebar"}))),r.isContentAnalysisActive&&Object(P.createElement)(ie.a,{renderPriority:10},Object(P.createElement)(oe.ReadabilityAnalysis,null)),r.isKeywordAnalysisActive&&Object(P.createElement)(ie.a,{renderPriority:20},Object(P.createElement)(oe.SeoAnalysis,{shouldUpsell:r.shouldUpsell,shouldUpsellWordFormRecognition:r.isWordFormRecognitionActive})),r.isKeywordAnalysisActive&&r.isWincherIntegrationActive&&Object(P.createElement)(ie.a,{key:"wincher-seo-performance",renderPriority:21},Object(P.createElement)(Tt.a,{location:"sidebar"})),r.isCornerstoneActive&&Object(P.createElement)(ie.a,{renderPriority:30},Object(P.createElement)(te.a,null)))}Rt.propTypes={isLoading:ee.a.bool.isRequired,onLoad:ee.a.func.isRequired,settings:ee.a.object.isRequired};var St,xt=Object(J.compose)([Object(i.withSelect)((function(e){var t=e("yoast-seo/editor"),n=t.getPreferences,r=t.getSnippetEditorIsLoading;return{settings:n(),isLoading:r()}})),Object(i.withDispatch)((function(e){return{onLoad:e("yoast-seo/editor").loadSnippetEditorData}}))])(Rt),Ct=!1;function Pt(e){e.oldValue=e.value}function Dt(){St.forEach((function(e){return Pt(e)}))}var At=Object(j.debounce)((function(){var e;Ct&&(
62
  /* Translators: %1$s translates to the Post Label in singular form */
63
+ e=Object(D.sprintf)(Object(D.__)("Unfortunately we cannot save changes to your SEO settings while you are working on a draft of an already-published %1$s. If you want to save your SEO changes, make sure to click 'Update', or wait to make your SEO changes until you are ready to update the %1$s.","wordpress-seo"),window.wpseoAdminL10n.postTypeNameSingular.toLowerCase())),"draft"===window.elementor.settings.page.model.get("post_status")&&(e=""),Object(i.dispatch)("yoast-seo/editor").setWarningMessage(e)}),500,{trailing:!0});function qt(e){"yoast_wpseo_linkdex"!==e.name&&"yoast_wpseo_content_score"!==e.name&&"yoast_wpseo_words_for_linking"!==e.name&&e.value!==e.oldValue&&(Ct=!0,At(),window.$e.internal("document/save/set-is-modified",{status:!0}),Pt(e))}function Lt(e){Ct=!1;var t=jQuery(e).serializeArray().reduce((function(e,t){var n=t.name,r=t.value;return e[n]=r,e}),{});jQuery.post(e.getAttribute("action"),t,(function(e,n,r){var a=e.success,o=e.data;a?(Object(s.doAction)("yoast.elementor.save.success",r),o.slug&&o.slug!==t.slug&&Object(i.dispatch)("yoast-seo/editor").updateData({slug:o.slug}),Dt(),At()):Ct=!0}))}function It(){window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=$.a,window.$e.routes.on("run:after",(function(e,t){"panel/page-settings/yoast-tab"===t&&Object($.b)("elementor-panel-page-settings-controls",Object(P.createElement)(A.StyleSheetManager,{target:document.getElementById("elementor-panel-inner")},Object(P.createElement)("div",{className:"yoast yoast-elementor-panel__fills"},Object(P.createElement)(Q,null),Object(P.createElement)(xt,null))))})),window.elementor.settings.page.model.on("change",(function(e){e.changed&&e.changed.post_status&&At()}));var e,t=Lt.bind(null,document.getElementById("yoast-form"));e=function(){window.elementor.config.document.id===window.elementor.config.document.revisions.current_id&&t()},$e.hooks.registerDataAfter(new Y("document/save/save","yoast-seo-save",e)),window.elementor.modules.layouts.panel.pages.menu.Menu.addItem({name:"yoast",icon:"yoast yoast-element-menu-icon",title:"Yoast SEO",type:"page",callback:function(){try{window.$e.routes.run("panel/page-settings/yoast-tab")}catch(e){window.$e.routes.run("panel/page-settings/settings"),window.$e.routes.run("panel/page-settings/yoast-tab")}}},"more"),St=document.querySelectorAll("input[name^='yoast']"),Dt(),setInterval((function(){return St.forEach(qt)}),500)}var Ft=n(151),Nt=n(17),Mt=n(82),Kt=Nt.selectors.getBaseUrlFromSettings,Wt=Nt.selectors.getContentLocale,Ut=Nt.selectors.getEditorDataContent,Bt=Nt.selectors.getFocusKeyphrase,Vt=Nt.selectors.getSnippetEditorDescriptionWithTemplate,Ht=Nt.selectors.getSnippetEditorSlug,Yt=Nt.selectors.getSnippetEditorTitleWithTemplate,zt=Nt.selectors.getDateFromSettings,$t=function(e){var t=Yt(e),n=Vt(e),r=Ht(e),a=Kt(e);return t=he.strings.stripHTMLTags(h("data_page_title",t)),n=he.strings.stripHTMLTags(h("data_meta_desc",n)),r=r.trim().replace(/\s+/g,"-"),{text:Ut(e),title:t,keyword:Bt(e),description:n,locale:Wt(e),titleWidth:Object(Mt.a)(t),url:r,permalink:a+r,date:zt(e)}},Gt=n(129),Zt=function(){function e(){L()(this,e)}return F()(e,null,[{key:"titleElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_title":"hidden_wpseo_title")}},{key:"descriptionElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_metadesc":"hidden_wpseo_desc")}},{key:"slugElement",get:function(){return document.getElementById("yoast_wpseo_slug")}},{key:"title",get:function(){return e.titleElement.value},set:function(t){e.titleElement.value=t}},{key:"description",get:function(){return e.descriptionElement.value},set:function(t){e.descriptionElement.value=t}},{key:"slug",get:function(){return e.slugElement.value},set:function(t){e.slugElement.value=t}}]),e}(),Qt=Nt.actions.UPDATE_DATA,Jt=Nt.actions.LOAD_SNIPPET_EDITOR_DATA;function Xt(e){if(e.hasOwnProperty("title")){var t=e.title;e.title===Object(j.get)(window,"wpseoScriptData.metabox.title_template","")&&(t=""),Zt.title=t}if(e.hasOwnProperty("description")){var n=e.description;e.description===Object(j.get)(window,"wpseoScriptData.metabox.metadesc_template","")&&(n=""),Zt.description=n}return e.hasOwnProperty("slug")&&(Zt.slug=e.slug),{type:Qt,data:e}}var en=function(){var e=Object(j.get)(window,"wpseoScriptData.metabox.title_template",""),t=Object(j.get)(window,"wpseoScriptData.metabox.metadesc_template","");return{type:Jt,data:{title:Zt.title||e,description:Zt.description||t,slug:Zt.slug},templates:{title:e,description:t}}};function tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(n),!0).forEach((function(t){le()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rn=n(130),an={content:"",title:"",excerpt:"",slug:"",imageUrl:""};function on(e){var t=window.elementor.settings.page.model.get("post_featured_image"),n=Object(j.get)(t,"url","");return""===n?function(e){var t=E.languageProcessing.imageInText(e),n="";if(0===t.length)return"";do{var r=t.shift(),a=(r=jQuery(r)).prop("src");a&&(n=a)}while(""===n&&t.length>0);return n}(e):n}var sn=Object(j.debounce)((function(){var e=window.elementor.documents.getCurrent();if(["wp-post","wp-page"].includes(e.config.type)){var t,n={content:t=function(e){var t=[];return e.$element.find(".elementor-widget-container").each((function(e,n){t.push(n.innerHTML.trim())})),t.join("")}(e),title:window.elementor.settings.page.model.get("post_title"),excerpt:window.elementor.settings.page.model.get("post_excerpt")||"",imageUrl:on(t)};n.content!==an.content&&(an.content=n.content,Object(i.dispatch)("yoast-seo/editor").setEditorDataContent(an.content)),n.title!==an.title&&(an.title=n.title,Object(i.dispatch)("yoast-seo/editor").setEditorDataTitle(an.title)),n.excerpt!==an.excerpt&&(an.excerpt=n.excerpt,Object(i.dispatch)("yoast-seo/editor").setEditorDataExcerpt(an.excerpt)),n.imageUrl!==an.imageUrl&&(an.imageUrl=n.imageUrl,Object(i.dispatch)("yoast-seo/editor").setEditorDataImageUrl(an.imageUrl))}}),500);function cn(e,t){var n=Object(i.dispatch)("yoast-seo/editor").updateWordsToHighlight;e("morphology",new E.Paper("",{keyword:t})).then((function(e){var t=e.result.keyphraseForms;n(Object(j.uniq)(Object(j.flatten)(t)))})).catch((function(){n([])}))}var ln=Object(j.debounce)(cn,500);function un(){var e,t,n,c;window.YoastSEO=window.YoastSEO||{},window.YoastSEO.store=(function(e){e.dispatch(Nt.actions.loadCornerstoneContent()),e.dispatch(Nt.actions.loadFocusKeyword()),e.dispatch(Nt.actions.setMarkerStatus("hidden")),e.dispatch(Nt.actions.setSettings({socialPreviews:{sitewideImage:window.wpseoScriptData.metabox.sitewide_social_image,siteName:window.wpseoScriptData.metabox.site_name,contentImage:window.wpseoScriptData.metabox.first_content_image,twitterCardType:window.wpseoScriptData.metabox.twitterCardType},snippetEditor:{baseUrl:window.wpseoScriptData.metabox.base_url,date:window.wpseoScriptData.metabox.metaDescriptionDate,recommendedReplacementVariables:window.wpseoScriptData.analysis.plugins.replaceVars.recommended_replace_vars,siteIconUrl:window.wpseoScriptData.metabox.siteIconUrl}}));var t=window.wpseoScriptData.metabox.showSocial,n=t.facebook,r=t.twitter;n&&e.dispatch(Nt.actions.loadFacebookPreviewData()),r&&e.dispatch(Nt.actions.loadTwitterPreviewData()),e.dispatch(Nt.actions.setSEMrushChangeCountry(window.wpseoScriptData.metabox.countryCode)),e.dispatch(Nt.actions.setSEMrushLoginStatus(window.wpseoScriptData.metabox.SEMrushLoginStatus)),e.dispatch(Nt.actions.setWincherLoginStatus(window.wpseoScriptData.metabox.wincherLoginStatus,!1)),e.dispatch(Nt.actions.setWincherWebsiteId(window.wpseoScriptData.metabox.wincherWebsiteId)),e.dispatch(Nt.actions.setWincherAutomaticKeyphaseTracking(window.wpseoScriptData.metabox.wincherAutoAddKeyphrases))}(c=Object(i.registerStore)("yoast-seo/editor",{reducer:Object(i.combineReducers)(Nt.reducers),selectors:nn(nn({},Nt.selectors),a),actions:Object(j.pickBy)(nn(nn({},Nt.actions),o),(function(e){return"function"==typeof e})),controls:Gt})),c),z("editor/documents/attach-preview","yoast-seo-content-scraper-attach-preview",sn),z("document/save/set-is-modified","yoast-seo-content-scraper-on-modified",sn),window.YoastSEO.pluginReady=p,window.YoastSEO.pluginReloaded=d,window.YoastSEO.registerModification=m,window.YoastSEO.registerPlugin=f,window.YoastSEO.applyModifications=h,window.YoastSEO.analysis=window.YoastSEO.analysis||{},window.YoastSEO.analysis.run=Object(i.dispatch)("yoast-seo/editor").runAnalysis,window.YoastSEO.analysis.worker=function(){var e=Object(i.select)("yoast-seo/editor"),t=e.getAnalysisTimestamp,n=e.isCornerstoneContent,r=Object(R.a)();r.initialize(Object(R.b)({useCornerstone:n()})).catch(k.a);var a=C(),o=n(),s=t();return Object(i.subscribe)((function(){var e=n(),i=C(),c=t();if(e!==o)return o=e,a=i,void r.initialize({useCornerstone:e}).then((function(){return x(r,i)})).catch(k.a);c===s&&!1!==Object(j.isEqual)(i,a)||(a=i,s=c,x(r,i))})),r}(),window.YoastSEO.analysis.collectData=C,f("replaceVariablePlugin",{status:"ready"}),rt().forEach((function(e){var t,n,a,o=(n=(t=r[e]).getReplacement,a=t.regexp,function(e){return e.replace(a,n())});nt(o)})),window.YoastSEO.wp=window.YoastSEO.wp||{},window.YoastSEO.wp.replaceVarsPlugin={addReplacement:at,ReplaceVar:Xe.a},function(){var e=Object(dt.a)(),t=Object(j.get)(window,["wpseoScriptData","analysis","worker","keywords_assessment_url"],"used-keywords-assessment.js"),n=new rn.a("get_focus_keyword_usage",e,Object(i.dispatch)("yoast-seo/editor").runAnalysis,t);n.init();var r="";Object(i.subscribe)((function(){var e=Object(i.select)("yoast-seo/editor").getFocusKeyphrase();e!==r&&(r=e,n.setKeyword(e))}))}(),Object(Ft.a)(),e=window.YoastSEO.analysis.worker.runResearch,t=Object(i.select)("yoast-se