Jetpack by WordPress.com - Version 6.2.2

Version Description

Download this release

Release Info

Developer kraftbj
Plugin Icon 128x128 Jetpack by WordPress.com
Version 6.2.2
Comparing to
See all releases

Code changes from version 6.1.2 to 6.2.2

Files changed (50) hide show
  1. 3rd-party/3rd-party.php +1 -0
  2. 3rd-party/class.jetpack-amp-support.php +351 -0
  3. _inc/build/admin.dops-style.css +21 -0
  4. _inc/build/admin.dops-style.rtl.css +21 -0
  5. _inc/build/admin.js +1 -1
  6. _inc/build/contact-form/js/editor-view.min.js +1 -1
  7. _inc/build/shortcodes/js/blocks/vr-block.min.js +2 -0
  8. _inc/build/style.min.css +1 -1
  9. _inc/build/style.min.rtl.css +1 -1
  10. _inc/build/widgets/customizer-utils.min.js +1 -1
  11. _inc/build/widgets/eu-cookie-law/eu-cookie-law.min.js +1 -1
  12. _inc/jetpack-strings.php +35 -35
  13. _inc/lib/admin-pages/class.jetpack-react-page.php +1 -36
  14. _inc/lib/class.core-rest-api-endpoints.php +81 -1
  15. bin/travis_install.sh +0 -16
  16. changelog.txt +55 -0
  17. class.jetpack-cli.php +253 -46
  18. class.jetpack-debugger.php +16 -8
  19. class.jetpack.php +56 -10
  20. class.json-api-endpoints.php +26 -7
  21. class.photon.php +3 -0
  22. css/jetpack-rtl.css +4 -1
  23. css/jetpack.css +4 -1
  24. functions.global.php +20 -0
  25. functions.photon.php +18 -27
  26. jetpack.php +22 -3
  27. json-endpoints.php +2 -2
  28. json-endpoints/class.wpcom-json-api-bulk-delete-post-endpoint.php +1 -2
  29. json-endpoints/class.wpcom-json-api-edit-media-v1-2-endpoint.php +223 -29
  30. json-endpoints/class.wpcom-json-api-get-media-v1-2-endpoint.php +6 -5
  31. json-endpoints/class.wpcom-json-api-get-site-endpoint.php +55 -4
  32. json-endpoints/class.wpcom-json-api-list-media-v1-2-endpoint.php +2 -2
  33. json-endpoints/class.wpcom-json-api-list-post-type-taxonomies-endpoint.php +22 -6
  34. json-endpoints/class.wpcom-json-api-list-post-types-endpoint.php +4 -1
  35. json-endpoints/class.wpcom-json-api-list-roles-endpoint.php +58 -13
  36. json-endpoints/class.wpcom-json-api-site-settings-endpoint.php +68 -24
  37. json-endpoints/class.wpcom-json-api-site-settings-v1-2-endpoint.php +1 -2
  38. json-endpoints/class.wpcom-json-api-site-settings-v1-3-endpoint.php +10 -16
  39. json-endpoints/class.wpcom-json-api-site-settings-v1-4-endpoint.php +1 -9
  40. json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php +5 -1
  41. json-endpoints/class.wpcom-json-api-update-post-v1-2-endpoint.php +5 -1
  42. languages/jetpack-bg_BG.mo +0 -0
  43. languages/jetpack-gl_ES.mo +0 -0
  44. languages/jetpack-pl_PL.mo +0 -0
  45. languages/json/jetpack-af.json +1 -1
  46. languages/json/jetpack-ar.json +1 -1
  47. languages/json/jetpack-ary.json +1 -1
  48. languages/json/jetpack-az.json +1 -1
  49. languages/json/jetpack-bg_BG.json +1 -1
  50. languages/json/jetpack-bs_BA.json +1 -1
3rd-party/3rd-party.php CHANGED
@@ -20,3 +20,4 @@ require_once( JETPACK__PLUGIN_DIR . '3rd-party/class.jetpack-modules-overrides.p
20
  // We can't load this conditionally since polldaddy add the call in class constuctor.
21
  require_once( JETPACK__PLUGIN_DIR . '3rd-party/polldaddy.php' );
22
  require_once( JETPACK__PLUGIN_DIR . '3rd-party/woocommerce-services.php' );
 
20
  // We can't load this conditionally since polldaddy add the call in class constuctor.
21
  require_once( JETPACK__PLUGIN_DIR . '3rd-party/polldaddy.php' );
22
  require_once( JETPACK__PLUGIN_DIR . '3rd-party/woocommerce-services.php' );
23
+ require_once( JETPACK__PLUGIN_DIR . '3rd-party/class.jetpack-amp-support.php' );
3rd-party/class.jetpack-amp-support.php ADDED
@@ -0,0 +1,351 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Manages compatibility with the amp-wp plugin
5
+ *
6
+ * @see https://github.com/Automattic/amp-wp
7
+ */
8
+ class Jetpack_AMP_Support {
9
+
10
+ static function init() {
11
+ if ( ! self::is_amp_request() ) {
12
+ return;
13
+ }
14
+
15
+ // enable stats
16
+ if ( Jetpack::is_module_active( 'stats' ) ) {
17
+ add_action( 'amp_post_template_footer', array( 'Jetpack_AMP_Support', 'add_stats_pixel' ) );
18
+ }
19
+
20
+ // carousel
21
+ add_filter( 'jp_carousel_maybe_disable', '__return_true' );
22
+
23
+ // sharing
24
+ add_filter( 'sharing_enqueue_scripts', '__return_false' );
25
+ add_filter( 'jetpack_sharing_counts', '__return_false' );
26
+ add_filter( 'sharing_js', '__return_false' );
27
+ add_filter( 'jetpack_sharing_display_markup', array( 'Jetpack_AMP_Support', 'render_sharing_html' ), 10, 2 );
28
+
29
+ // disable lazy images
30
+ add_filter( 'lazyload_is_enabled', '__return_false' );
31
+
32
+ // disable imploding CSS
33
+ add_filter( 'jetpack_implode_frontend_css', '__return_false' );
34
+
35
+ // enforce freedom mode for videopress
36
+ add_filter( 'videopress_shortcode_options', array( 'Jetpack_AMP_Support', 'videopress_enable_freedom_mode' ) );
37
+
38
+ // include Jetpack og tags when rendering native AMP head
39
+ add_action( 'amp_post_template_head', array( 'Jetpack_AMP_Support', 'amp_post_jetpack_og_tags' ) );
40
+
41
+ // Post rendering changes for legacy AMP
42
+ add_action( 'pre_amp_render_post', array( 'Jetpack_AMP_Support', 'amp_disable_the_content_filters' ) );
43
+
44
+ // Add post template metadata for legacy AMP
45
+ add_filter( 'amp_post_template_metadata', array( 'Jetpack_AMP_Support', 'amp_post_template_metadata' ), 10, 2 );
46
+ }
47
+
48
+ static function admin_init() {
49
+ // disable Likes metabox for post editor if AMP canonical disabled
50
+ add_filter( 'post_flair_disable', array( 'Jetpack_AMP_Support', 'is_amp_canonical' ), 99 );
51
+ }
52
+
53
+ static function init_filter_jetpack_widgets() {
54
+ if ( ! self::is_amp_request() ) {
55
+ return;
56
+ }
57
+
58
+ // widgets
59
+ add_filter( 'jetpack_widgets_to_include', array( 'Jetpack_AMP_Support', 'filter_available_widgets' ) );
60
+ }
61
+
62
+ static function is_amp_canonical() {
63
+ return function_exists( 'amp_is_canonical' ) && amp_is_canonical();
64
+ }
65
+
66
+ static function is_amp_request() {
67
+ // can't use is_amp_endpoint() since it's not ready early enough in init.
68
+ // is_amp_endpoint() implementation calls is_feed, which bails with a notice if plugins_loaded isn't finished
69
+ // "Conditional query tags do not work before the query is run"
70
+ $is_amp_request =
71
+ defined( 'AMP__VERSION' )
72
+ &&
73
+ ! is_admin() // this is necessary so that modules can still be enabled/disabled/configured as per normal via Jetpack admin
74
+ &&
75
+ function_exists( 'amp_is_canonical' ) // this is really just testing if the plugin exists
76
+ &&
77
+ (
78
+ amp_is_canonical()
79
+ ||
80
+ isset( $_GET[ amp_get_slug() ] )
81
+ ||
82
+ ( version_compare( AMP__VERSION, '1.0', '<' ) && self::has_amp_suffix() ) // after AMP 1.0, the amp suffix will no longer be supported
83
+ );
84
+
85
+ /**
86
+ * Returns true if the current request should return valid AMP content.
87
+ *
88
+ * @since 6.2.0
89
+ *
90
+ * @param boolean $is_amp_request Is this request supposed to return valid AMP content?
91
+ */
92
+ return apply_filters( 'jetpack_is_amp_request', $is_amp_request );
93
+ }
94
+
95
+ static function has_amp_suffix() {
96
+ $request_path = wp_parse_url( $_SERVER['REQUEST_URI'], PHP_URL_PATH );
97
+ return $request_path && preg_match( '#/amp/?$#i', $request_path );
98
+ }
99
+
100
+ static function filter_available_widgets( $widgets ) {
101
+ if ( self::is_amp_request() ) {
102
+ $widgets = array_filter( $widgets, array( 'Jetpack_AMP_Support', 'is_supported_widget' ) );
103
+ }
104
+
105
+ return $widgets;
106
+ }
107
+
108
+ static function is_supported_widget( $widget_path ) {
109
+ return substr( $widget_path, -14 ) !== '/milestone.php';
110
+ }
111
+
112
+ static function amp_disable_the_content_filters() {
113
+ if ( defined( 'WPCOM') && WPCOM ) {
114
+ add_filter( 'videopress_show_2015_player', '__return_true' );
115
+ add_filter( 'protected_embeds_use_form_post', '__return_false' );
116
+ remove_filter( 'the_title', 'widont' );
117
+ }
118
+
119
+ remove_filter( 'pre_kses', array( 'Filter_Embedded_HTML_Objects', 'filter' ), 11 );
120
+ remove_filter( 'pre_kses', array( 'Filter_Embedded_HTML_Objects', 'maybe_create_links' ), 100 );
121
+ }
122
+
123
+ /**
124
+ * Add Jetpack stats pixel.
125
+ *
126
+ * @since 6.2.1
127
+ */
128
+ static function add_stats_pixel() {
129
+ if ( ! has_action( 'wp_footer', 'stats_footer' ) ) {
130
+ return;
131
+ }
132
+ stats_render_amp_footer( stats_build_view_data() );
133
+ }
134
+
135
+ /**
136
+ * Add publisher and image metadata to legacy AMP post.
137
+ *
138
+ * @since 6.2.0
139
+ *
140
+ * @param array $metadata Metadata array.
141
+ * @param WP_Post $post Post.
142
+ * @return array Modified metadata array.
143
+ */
144
+ static function amp_post_template_metadata( $metadata, $post ) {
145
+ if ( isset( $metadata['publisher'] ) && ! isset( $metadata['publisher']['logo'] ) ) {
146
+ $metadata = self::add_site_icon_to_metadata( $metadata );
147
+ }
148
+
149
+ if ( ! isset( $metadata['image'] ) ) {
150
+ $metadata = self::add_image_to_metadata( $metadata, $post );
151
+ }
152
+
153
+ return $metadata;
154
+ }
155
+
156
+ /**
157
+ * Add blavatar to legacy AMP post metadata.
158
+ *
159
+ * @since 6.2.0
160
+ *
161
+ * @param array $metadata Metadata.
162
+ * @return array Metadata.
163
+ */
164
+ static function add_site_icon_to_metadata( $metadata ) {
165
+ $size = 60;
166
+
167
+ if ( function_exists( 'blavatar_domain' ) ) {
168
+ $metadata['publisher']['logo'] = array(
169
+ '@type' => 'ImageObject',
170
+ 'url' => blavatar_url( blavatar_domain( site_url() ), 'img', $size, self::staticize_subdomain( 'https://wordpress.com/i/favicons/apple-touch-icon-60x60.png' ) ),
171
+ 'width' => $size,
172
+ 'height' => $size,
173
+ );
174
+ } else if ( $site_icon_url = Jetpack_Sync_Functions::site_icon_url( $size ) ) {
175
+ $metadata['publisher']['logo'] = array(
176
+ '@type' => 'ImageObject',
177
+ 'url' => $site_icon_url,
178
+ 'width' => $size,
179
+ 'height' => $size,
180
+ );
181
+ }
182
+
183
+ return $metadata;
184
+ }
185
+
186
+ /**
187
+ * Add image to legacy AMP post metadata.
188
+ *
189
+ * @since 6.2.0
190
+ *
191
+ * @param array $metadata Metadata.
192
+ * @param WP_Post $post Post.
193
+ * @return array Metadata.
194
+ */
195
+ static function add_image_to_metadata( $metadata, $post ) {
196
+ $image = Jetpack_PostImages::get_image( $post->ID, array(
197
+ 'fallback_to_avatars' => true,
198
+ 'avatar_size' => 200,
199
+ // AMP already attempts these.
200
+ 'from_thumbnail' => false,
201
+ 'from_attachment' => false,
202
+ ) );
203
+
204
+ if ( empty( $image ) ) {
205
+ return self::add_fallback_image_to_metadata( $metadata );
206
+ }
207
+
208
+ if ( ! isset( $image['src_width'] ) ) {
209
+ $dimensions = self::extract_image_dimensions_from_getimagesize( array(
210
+ $image['src'] => false,
211
+ ) );
212
+
213
+ if ( false !== $dimensions[ $image['src'] ] ) {
214
+ $image['src_width'] = $dimensions['width'];
215
+ $image['src_height'] = $dimensions['height'];
216
+ }
217
+ }
218
+
219
+ $metadata['image'] = array(
220
+ '@type' => 'ImageObject',
221
+ 'url' => $image['src'],
222
+ 'width' => $image['src_width'],
223
+ 'height' => $image['src_height'],
224
+ );
225
+
226
+ return $metadata;
227
+ }
228
+
229
+ /**
230
+ * Add fallback image to legacy AMP post metadata.
231
+ *
232
+ * @since 6.2.0
233
+ *
234
+ * @param array $metadata Metadata.
235
+ * @return array Metadata.
236
+ */
237
+ static function add_fallback_image_to_metadata( $metadata ) {
238
+ /** This filter is documented in functions.opengraph.php */
239
+ $default_image = apply_filters( 'jetpack_open_graph_image_default', 'https://wordpress.com/i/blank.jpg' );
240
+
241
+ $metadata['image'] = array(
242
+ '@type' => 'ImageObject',
243
+ 'url' => self::staticize_subdomain( $default_image ),
244
+ 'width' => 200,
245
+ 'height' => 200,
246
+ );
247
+
248
+ return $metadata;
249
+ }
250
+
251
+ static function staticize_subdomain( $domain ) {
252
+ // deal with WPCOM vs Jetpack
253
+ if ( function_exists( 'staticize_subdomain' ) ) {
254
+ return staticize_subdomain( $domain );
255
+ } else {
256
+ return Jetpack::staticize_subdomain( $domain );
257
+ }
258
+ }
259
+
260
+ /**
261
+ * Extract image dimensions via wpcom/imagesize, only on WPCOM
262
+ *
263
+ * @since 6.2.0
264
+ *
265
+ * @param array $dimensions Dimensions.
266
+ * @return array Dimensions.
267
+ */
268
+ static function extract_image_dimensions_from_getimagesize( $dimensions ) {
269
+ if ( ! ( defined('WPCOM') && WPCOM && function_exists( 'require_lib' ) ) ) {
270
+ return $dimensions;
271
+ }
272
+ require_lib( 'wpcom/imagesize' );
273
+
274
+ foreach ( $dimensions as $url => $value ) {
275
+ if ( is_array( $value ) ) {
276
+ continue;
277
+ }
278
+ $result = wpcom_getimagesize( $url );
279
+ if ( is_array( $result ) ) {
280
+ $dimensions[ $url ] = array(
281
+ 'width' => $result[0],
282
+ 'height' => $result[1],
283
+ );
284
+ }
285
+ }
286
+
287
+ return $dimensions;
288
+ }
289
+
290
+ static function amp_post_jetpack_og_tags() {
291
+ Jetpack::init()->check_open_graph();
292
+ if ( function_exists( 'jetpack_og_tags' ) ) {
293
+ jetpack_og_tags();
294
+ }
295
+ }
296
+
297
+ static function videopress_enable_freedom_mode( $options ) {
298
+ $options['freedom'] = true;
299
+ return $options;
300
+ }
301
+
302
+ static function render_sharing_html( $markup, $sharing_enabled ) {
303
+ remove_action( 'wp_footer', 'sharing_add_footer' );
304
+ if ( empty( $sharing_enabled ) ) {
305
+ return $markup;
306
+ }
307
+ $supported_services = array(
308
+ 'facebook' => array(
309
+ /** This filter is documented in modules/sharedaddy/sharing-sources.php */
310
+ 'data-param-app_id' => apply_filters( 'jetpack_sharing_facebook_app_id', '249643311490' ),
311
+ ),
312
+ 'twitter' => array(),
313
+ 'pinterest' => array(),
314
+ 'whatsapp' => array(),
315
+ 'google-plus-1' => array(
316
+ 'type' => 'gplus',
317
+ ),
318
+ 'tumblr' => array(),
319
+ 'linkedin' => array(),
320
+ );
321
+ $sharing_links = array();
322
+ foreach ( $sharing_enabled['visible'] as $id => $service ) {
323
+ if ( ! isset( $supported_services[ $id ] ) ) {
324
+ $sharing_links[] = "<!-- not supported: $id -->";
325
+ continue;
326
+ }
327
+ $args = array_merge(
328
+ array(
329
+ 'type' => $id,
330
+ ),
331
+ $supported_services[ $id ]
332
+ );
333
+ $sharing_link = '<amp-social-share';
334
+ foreach ( $args as $key => $value ) {
335
+ $sharing_link .= sprintf( ' %s="%s"', sanitize_key( $key ), esc_attr( $value ) );
336
+ }
337
+ $sharing_link .= '></amp-social-share>';
338
+ $sharing_links[] = $sharing_link;
339
+ }
340
+ return preg_replace( '#(?<=<div class="sd-content">).+?(?=</div>)#s', implode( '', $sharing_links ), $markup );
341
+ }
342
+ }
343
+
344
+ add_action( 'init', array( 'Jetpack_AMP_Support', 'init' ), 1 );
345
+
346
+ add_action( 'admin_init', array( 'Jetpack_AMP_Support', 'admin_init' ), 1 );
347
+
348
+ // this is necessary since for better or worse Jetpack modules and widget files are loaded during plugins_loaded, which means we must
349
+ // take the opportunity to intercept initialisation before that point, either by adding explicit detection into the module,
350
+ // or preventing it from loading in the first place (better for performance)
351
+ add_action( 'plugins_loaded', array( 'Jetpack_AMP_Support', 'init_filter_jetpack_widgets' ), 1 );
_inc/build/admin.dops-style.css CHANGED
@@ -1251,6 +1251,9 @@
1251
 
1252
  .form-toggle.is-compact:checked + .form-toggle__label .form-toggle__switch:after {
1253
  left: 8px; }
 
 
 
1254
  /* Card */
1255
  .dops-card {
1256
  display: block;
@@ -1365,6 +1368,9 @@ a.dops-card:focus {
1365
  margin-right: 0.5rem; }
1366
  .section-header__actions .button:last-child {
1367
  margin-right: 0; }
 
 
 
1368
  @keyframes appear {
1369
  0% {
1370
  opacity: 0; }
@@ -1644,6 +1650,9 @@ a.dops-notice__action {
1644
 
1645
  .dops-plan-icon__business .dops-plan-icon__business-4 {
1646
  fill: #005082; }
 
 
 
1647
  .dops-banner.dops-card {
1648
  border-left: 3px solid;
1649
  display: -ms-flexbox;
@@ -1857,6 +1866,9 @@ a.dops-notice__action {
1857
  margin-left: 0.5rem;
1858
  top: 0.125rem;
1859
  position: relative; }
 
 
 
1860
  .jp-support-info {
1861
  position: absolute;
1862
  top: 1.6875rem;
@@ -2037,6 +2049,9 @@ button.dops-foldable-card__action {
2037
  display: none; }
2038
  .dops-foldable-card.is-expanded .dops-foldable-card__summary_expanded {
2039
  display: inline-block; }
 
 
 
2040
  .form-input-validation {
2041
  color: #4ab866;
2042
  position: relative;
@@ -2117,6 +2132,9 @@ button.dops-foldable-card__action {
2117
  right: calc( 100% + 1px); }
2118
  .dops-clipboard-button-input .dops-clipboard-button:focus::before {
2119
  right: calc( 100% + 3px); }
 
 
 
2120
  /* This hack is used to prevent the body from scrolling when the modal is showing */
2121
  body.dops-modal-showing {
2122
  overflow: hidden; }
@@ -2280,6 +2298,9 @@ https://github.com/thoughtbot/bourbon
2280
  .dops-tooltip__hr {
2281
  margin: 8px 0;
2282
  background: #87a6bc; }
 
 
 
2283
  .dops-chart {
2284
  position: relative;
2285
  box-sizing: border-box;
1251
 
1252
  .form-toggle.is-compact:checked + .form-toggle__label .form-toggle__switch:after {
1253
  left: 8px; }
1254
+ #jp-plugin-container {
1255
+ min-height: 100vh; }
1256
+
1257
  /* Card */
1258
  .dops-card {
1259
  display: block;
1368
  margin-right: 0.5rem; }
1369
  .section-header__actions .button:last-child {
1370
  margin-right: 0; }
1371
+ #jp-plugin-container {
1372
+ min-height: 100vh; }
1373
+
1374
  @keyframes appear {
1375
  0% {
1376
  opacity: 0; }
1650
 
1651
  .dops-plan-icon__business .dops-plan-icon__business-4 {
1652
  fill: #005082; }
1653
+ #jp-plugin-container {
1654
+ min-height: 100vh; }
1655
+
1656
  .dops-banner.dops-card {
1657
  border-left: 3px solid;
1658
  display: -ms-flexbox;
1866
  margin-left: 0.5rem;
1867
  top: 0.125rem;
1868
  position: relative; }
1869
+ #jp-plugin-container {
1870
+ min-height: 100vh; }
1871
+
1872
  .jp-support-info {
1873
  position: absolute;
1874
  top: 1.6875rem;
2049
  display: none; }
2050
  .dops-foldable-card.is-expanded .dops-foldable-card__summary_expanded {
2051
  display: inline-block; }
2052
+ #jp-plugin-container {
2053
+ min-height: 100vh; }
2054
+
2055
  .form-input-validation {
2056
  color: #4ab866;
2057
  position: relative;
2132
  right: calc( 100% + 1px); }
2133
  .dops-clipboard-button-input .dops-clipboard-button:focus::before {
2134
  right: calc( 100% + 3px); }
2135
+ #jp-plugin-container {
2136
+ min-height: 100vh; }
2137
+
2138
  /* This hack is used to prevent the body from scrolling when the modal is showing */
2139
  body.dops-modal-showing {
2140
  overflow: hidden; }
2298
  .dops-tooltip__hr {
2299
  margin: 8px 0;
2300
  background: #87a6bc; }
2301
+ #jp-plugin-container {
2302
+ min-height: 100vh; }
2303
+
2304
  .dops-chart {
2305
  position: relative;
2306
  box-sizing: border-box;
_inc/build/admin.dops-style.rtl.css CHANGED
@@ -1250,6 +1250,9 @@
1250
 
1251
  .form-toggle.is-compact:checked + .form-toggle__label .form-toggle__switch:after {
1252
  right: 8px; }
 
 
 
1253
  /* Card */
1254
  .dops-card {
1255
  display: block;
@@ -1364,6 +1367,9 @@ a.dops-card:focus {
1364
  margin-left: 0.5rem; }
1365
  .section-header__actions .button:last-child {
1366
  margin-left: 0; }
 
 
 
1367
  @keyframes appear {
1368
  0% {
1369
  opacity: 0; }
@@ -1643,6 +1649,9 @@ a.dops-notice__action {
1643
 
1644
  .dops-plan-icon__business .dops-plan-icon__business-4 {
1645
  fill: #005082; }
 
 
 
1646
  .dops-banner.dops-card {
1647
  border-right: 3px solid;
1648
  display: -ms-flexbox;
@@ -1856,6 +1865,9 @@ a.dops-notice__action {
1856
  margin-right: 0.5rem;
1857
  top: 0.125rem;
1858
  position: relative; }
 
 
 
1859
  .jp-support-info {
1860
  position: absolute;
1861
  top: 1.6875rem;
@@ -2036,6 +2048,9 @@ button.dops-foldable-card__action {
2036
  display: none; }
2037
  .dops-foldable-card.is-expanded .dops-foldable-card__summary_expanded {
2038
  display: inline-block; }
 
 
 
2039
  .form-input-validation {
2040
  color: #4ab866;
2041
  position: relative;
@@ -2116,6 +2131,9 @@ button.dops-foldable-card__action {
2116
  left: calc( 100% + 1px); }
2117
  .dops-clipboard-button-input .dops-clipboard-button:focus::before {
2118
  left: calc( 100% + 3px); }
 
 
 
2119
  /* This hack is used to prevent the body from scrolling when the modal is showing */
2120
  body.dops-modal-showing {
2121
  overflow: hidden; }
@@ -2279,6 +2297,9 @@ https://github.com/thoughtbot/bourbon
2279
  .dops-tooltip__hr {
2280
  margin: 8px 0;
2281
  background: #87a6bc; }
 
 
 
2282
  .dops-chart {
2283
  position: relative;
2284
  box-sizing: border-box;
1250
 
1251
  .form-toggle.is-compact:checked + .form-toggle__label .form-toggle__switch:after {
1252
  right: 8px; }
1253
+ #jp-plugin-container {
1254
+ min-height: 100vh; }
1255
+
1256
  /* Card */
1257
  .dops-card {
1258
  display: block;
1367
  margin-left: 0.5rem; }
1368
  .section-header__actions .button:last-child {
1369
  margin-left: 0; }
1370
+ #jp-plugin-container {
1371
+ min-height: 100vh; }
1372
+
1373
  @keyframes appear {
1374
  0% {
1375
  opacity: 0; }
1649
 
1650
  .dops-plan-icon__business .dops-plan-icon__business-4 {
1651
  fill: #005082; }
1652
+ #jp-plugin-container {
1653
+ min-height: 100vh; }
1654
+
1655
  .dops-banner.dops-card {
1656
  border-right: 3px solid;
1657
  display: -ms-flexbox;
1865
  margin-right: 0.5rem;
1866
  top: 0.125rem;
1867
  position: relative; }
1868
+ #jp-plugin-container {
1869
+ min-height: 100vh; }
1870
+
1871
  .jp-support-info {
1872
  position: absolute;
1873
  top: 1.6875rem;
2048
  display: none; }
2049
  .dops-foldable-card.is-expanded .dops-foldable-card__summary_expanded {
2050
  display: inline-block; }
2051
+ #jp-plugin-container {
2052
+ min-height: 100vh; }
2053
+
2054
  .form-input-validation {
2055
  color: #4ab866;
2056
  position: relative;
2131
  left: calc( 100% + 1px); }
2132
  .dops-clipboard-button-input .dops-clipboard-button:focus::before {
2133
  left: calc( 100% + 3px); }
2134
+ #jp-plugin-container {
2135
+ min-height: 100vh; }
2136
+
2137
  /* This hack is used to prevent the body from scrolling when the modal is showing */
2138
  body.dops-modal-showing {
2139
  overflow: hidden; }
2297
  .dops-tooltip__hr {
2298
  margin: 8px 0;
2299
  background: #87a6bc; }
2300
+ #jp-plugin-container {
2301
+ min-height: 100vh; }
2302
+
2303
  .dops-chart {
2304
  position: relative;
2305
  box-sizing: border-box;
_inc/build/admin.js CHANGED
@@ -40,7 +40,7 @@ points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e
40
  this.priv=this.priv.umod(this.ec.curve.n)},r.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?s(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||s(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},r.prototype.derive=function(e){return e.mul(this.priv).getX()},r.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},r.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},r.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,n){"use strict";function r(e,t){if(e instanceof r)return e;this._importDER(e,t)||(d(e.r&&e.s,"Signature without r or s"),this.r=new c(e.r,16),this.s=new c(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function a(){this.place=0}function i(e,t){var n=e[t.place++];if(!(128&n))return n;for(var r=15&n,a=0,i=0,o=t.place;i<r;i++,o++)a<<=8,a|=e[o];return t.place=o,a}function o(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function s(e,t){if(t<128)return void e.push(t);var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}var c=n(57),u=n(84),l=u.utils,d=l.assert;e.exports=r,r.prototype._importDER=function(e,t){e=l.toArray(e,t);var n=new a;if(48!==e[n.place++])return!1;if(i(e,n)+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var r=i(e,n),o=e.slice(n.place,r+n.place);if(n.place+=r,2!==e[n.place++])return!1;var s=i(e,n);if(e.length!==s+n.place)return!1;var u=e.slice(n.place,s+n.place);return 0===o[0]&&128&o[1]&&(o=o.slice(1)),0===u[0]&&128&u[1]&&(u=u.slice(1)),this.r=new c(o),this.s=new c(u),this.recoveryParam=null,!0},r.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=o(t),n=o(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];s(r,t.length),r=r.concat(t),r.push(2),s(r,n.length);var a=r.concat(n),i=[48];return s(i,a.length),i=i.concat(a),l.encode(i,e)}},function(e,t,n){"use strict";function r(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof r))return new r(e);var e=i.curves[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=a.sha512}var a=n(846),i=n(84),o=i.utils,s=o.assert,c=o.parseBytes,u=n(1055),l=n(1056);e.exports=r,r.prototype.sign=function(e,t){e=c(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),a=this.g.mul(r),i=this.encodePoint(a),o=this.hashInt(i,n.pubBytes(),e).mul(n.priv()),s=r.add(o).umod(this.curve.n);return this.makeSignature({R:a,S:s,Rencoded:i})},r.prototype.verify=function(e,t,n){e=c(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),a=this.hashInt(t.Rencoded(),r.pubBytes(),e),i=this.g.mul(t.S());return t.R().add(r.pub().mul(a)).eq(i)},r.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},r.prototype.keyFromPublic=function(e){return u.fromPublic(this,e)},r.prototype.keyFromSecret=function(e){return u.fromSecret(this,e)},r.prototype.makeSignature=function(e){return e instanceof l?e:new l(this,e)},r.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},r.prototype.decodePoint=function(e){e=o.parseBytes(e);var t=e.length-1,n=e.slice(0,t).concat(-129&e[t]),r=0!=(128&e[t]),a=o.intFromLE(n);return this.curve.pointFromY(a,r)},r.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},r.prototype.decodeInt=function(e){return o.intFromLE(e)},r.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,n){"use strict";function r(e,t){this.eddsa=e,this._secret=s(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=s(t.pub)}var a=n(84),i=a.utils,o=i.assert,s=i.parseBytes,c=i.cachedProperty;r.fromPublic=function(e,t){return t instanceof r?t:new r(e,{pub:t})},r.fromSecret=function(e,t){return t instanceof r?t:new r(e,{secret:t})},r.prototype.secret=function(){return this._secret},c(r,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),c(r,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),c(r,"privBytes",function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r}),c(r,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),c(r,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),c(r,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),r.prototype.sign=function(e){return o(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},r.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},r.prototype.getSecret=function(e){return o(this._secret,"KeyPair is public only"),i.encode(this.secret(),e)},r.prototype.getPublic=function(e){return i.encode(this.pubBytes(),e)},e.exports=r},function(e,t,n){"use strict";function r(e,t){this.eddsa=e,"object"!=typeof t&&(t=u(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),s(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof a&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}var a=n(57),i=n(84),o=i.utils,s=o.assert,c=o.cachedProperty,u=o.parseBytes;c(r,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),c(r,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),c(r,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),c(r,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),r.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},r.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},e.exports=r},function(e,t,n){"use strict";var r=n(471);t.certificate=n(1068);var a=r.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});t.RSAPrivateKey=a;var i=r.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});t.RSAPublicKey=i;var o=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});t.PublicKey=o;var s=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),c=r.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});t.PrivateKey=c;var u=r.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});t.EncryptedPrivateKey=u;var l=r.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});t.DSAPrivateKey=l,t.DSAparam=r.define("DSAparam",function(){this.int()});var d=r.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(f),this.key("publicKey").optional().explicit(1).bitstr())});t.ECPrivateKey=d;var f=r.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});t.signature=r.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},function(e,t,n){function r(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}var a=n(471),i=n(19);t.define=function(e,t){return new r(e,t)},r.prototype._createNamed=function(e){var t;try{t=n(1059).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},r.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(a.decoders[e])),this.decoders[e]},r.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},r.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(a.encoders[e])),this.encoders[e]},r.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},function(module,exports,__webpack_require__){function Context(){}var indexOf=__webpack_require__(1060),Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in e)t.push(n);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,n){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch(e){return function(e,t,n){e[t]=n}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var n=t.contentWindow,r=n.eval,a=n.execScript;!r&&a&&(a.call(n,"null"),r=n.eval),forEach(Object_keys(e),function(t){n[t]=e[t]}),forEach(globals,function(t){e[t]&&(n[t]=e[t])});var i=Object_keys(n),o=r.call(n,this.code);return forEach(Object_keys(n),function(t){(t in e||-1===indexOf(i,t))&&(e[t]=n[t])}),forEach(globals,function(t){t in e||defineProp(e,t,n[t])}),document.body.removeChild(t),o},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),n=this.runInContext(t);return forEach(Object_keys(t),function(n){e[n]=t[n]}),n},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var n=Script(t);return n[e].apply(n,[].slice.call(arguments,1))}}),exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(n){t[n]=e[n]}),t}},function(e,t){var n=[].indexOf;e.exports=function(e,t){if(n)return e.indexOf(t);for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}},function(e,t,n){function r(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}var i=n(19);t.Reporter=r,r.prototype.isError=function(e){return e instanceof a},r.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},r.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},r.prototype.enterKey=function(e){return this._reporterState.path.push(e)},r.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},r.prototype.leaveKey=function(e,t,n){var r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},r.prototype.leaveObject=function(e){var t=this._reporterState,n=t.obj;return t.obj=e,n},r.prototype.error=function(e){var t,n=this._reporterState,r=e instanceof a;if(t=r?e:new a(n.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},r.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},i(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,n){function r(e,t){var n={};this._baseState=n,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}var a=n(472).Reporter,i=n(472).EncoderBuffer,o=n(472).DecoderBuffer,s=n(105),c=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(c),l=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];e.exports=r;var d=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];r.prototype.clone=function(){var e=this._baseState,t={};d.forEach(function(n){t[n]=e[n]});var n=new this.constructor(t.parent);return n._baseState=t,n},r.prototype._wrap=function(){var e=this._baseState;u.forEach(function(t){this[t]=function(){var n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}},this)},r.prototype._init=function(e){var t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),s.equal(t.children.length,1,"Root node can have only one child")},r.prototype._useArgs=function(e){var t=this._baseState,n=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==n.length&&(s(null===t.children),t.children=n,n.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(n){n==(0|n)&&(n|=0);var r=e[n];t[r]=n}),t}))},l.forEach(function(e){r.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),c.forEach(function(e){r.prototype[e]=function(){var t=this._baseState,n=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(n),this}}),r.prototype.use=function(e){s(e);var t=this._baseState;return s(null===t.use),t.use=e,this},r.prototype.optional=function(){return this._baseState.optional=!0,this},r.prototype.def=function(e){var t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},r.prototype.explicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},r.prototype.implicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},r.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},r.prototype.key=function(e){var t=this._baseState;return s(null===t.key),t.key=e,this},r.prototype.any=function(){return this._baseState.any=!0,this},r.prototype.choice=function(e){var t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},r.prototype.contains=function(e){var t=this._baseState;return s(null===t.use),t.contains=e,this},r.prototype._decode=function(e,t){var n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var r=n.default,a=!0,i=null;if(null!==n.key&&(i=e.enterKey(n.key)),n.optional){var s=null;if(null!==n.explicit?s=n.explicit:null!==n.implicit?s=n.implicit:null!==n.tag&&(s=n.tag),null!==s||n.any){if(a=this._peekTag(e,s,n.any),e.isError(a))return a}else{var c=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(c)}}var u;if(n.obj&&a&&(u=e.enterObject()),a){if(null!==n.explicit){var l=this._decodeTag(e,n.explicit);if(e.isError(l))return l;e=l}var d=e.offset;if(null===n.use&&null===n.choice){if(n.any)var c=e.save();var f=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(f))return f;n.any?r=e.raw(c):e=f}if(t&&t.track&&null!==n.tag&&t.track(e.path(),d,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),r=n.any?r:null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),e.isError(r))return r;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(n){n._decode(e,t)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var p=new o(r);r=this._getUse(n.contains,e._reporterState.obj)._decode(p,t)}}return n.obj&&a&&(r=e.leaveObject(u)),null===n.key||null===r&&!0!==a?null!==i&&e.exitKey(i):e.leaveKey(i,n.key,r),r},r.prototype._decodeGeneric=function(e,t,n){var r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},r.prototype._getUse=function(e,t){var n=this._baseState;return n.useDecoder=this._use(e,t),s(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},r.prototype._decodeChoice=function(e,t){var n=this._baseState,r=null,a=!1;return Object.keys(n.choice).some(function(i){var o=e.save(),s=n.choice[i];try{var c=s._decode(e,t);if(e.isError(c))return!1;r={type:i,value:c},a=!0}catch(t){return e.restore(o),!1}return!0},this),a?r:e.error("Choice not matched")},r.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},r.prototype._encode=function(e,t,n){var r=this._baseState;if(null===r.default||r.default!==e){var a=this._encodeValue(e,t,n);if(void 0!==a&&!this._skipDefault(a,t,n))return a}},r.prototype._encodeValue=function(e,t,n){var r=this._baseState;if(null===r.parent)return r.children[0]._encode(e,t||new a);var i=null;if(this.reporter=t,r.optional&&void 0===e){if(null===r.default)return;e=r.default}var o=null,s=!1;if(r.any)i=this._createEncoderBuffer(e);else if(r.choice)i=this._encodeChoice(e,t);else if(r.contains)o=this._getUse(r.contains,n)._encode(e,t),s=!0;else if(r.children)o=r.children.map(function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");var r=t.enterKey(n._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var a=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),a},this).filter(function(e){return e}),o=this._createEncoderBuffer(o);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return t.error("Too many args for : "+r.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,o=this._createEncoderBuffer(e.map(function(n){var r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)},c))}else null!==r.use?i=this._getUse(r.use,n)._encode(e,t):(o=this._encodePrimitive(r.tag,e),s=!0);var i;if(!r.any&&null===r.choice){var u=null!==r.implicit?r.implicit:r.tag,l=null===r.implicit?"universal":"context";null===u?null===r.use&&t.error("Tag could be omitted only for .use()"):null===r.use&&(i=this._encodeComposite(u,s,l,o))}return null!==r.explicit&&(i=this._encodeComposite(r.explicit,!1,"context",i)),i},r.prototype._encodeChoice=function(e,t){var n=this._baseState,r=n.choice[e.type];return r||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},r.prototype._encodePrimitive=function(e,t){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},r.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},r.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},function(e,t,n){var r=n(902);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=r._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=r._reverse(t.tag)},function(e,t,n){var r=t;r.der=n(903),r.pem=n(1065)},function(e,t,n){function r(e){o.call(this,e),this.enc="pem"}var a=n(19),i=n(39).Buffer,o=n(903);a(r,o),e.exports=r,r.prototype.decode=function(e,t){for(var n=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,c=-1,u=0;u<n.length;u++){var l=n[u].match(a);if(null!==l&&l[2]===r){if(-1!==s){if("END"!==l[1])break;c=u;break}if("BEGIN"!==l[1])break;s=u}}if(-1===s||-1===c)throw new Error("PEM section not found for: "+r);var d=n.slice(s+1,c).join("");d.replace(/[^a-z0-9\+\/=]+/gi,"");var f=new i(d,"base64");return o.prototype.decode.call(this,f,t)}},function(e,t,n){var r=t;r.der=n(904),r.pem=n(1067)},function(e,t,n){function r(e){i.call(this,e),this.enc="pem"}var a=n(19),i=n(904);a(r,i),e.exports=r,r.prototype.encode=function(e,t){for(var n=i.prototype.encode.call(this,e),r=n.toString("base64"),a=["-----BEGIN "+t.label+"-----"],o=0;o<r.length;o+=64)a.push(r.slice(o,o+64));return a.push("-----END "+t.label+"-----"),a.join("\n")}},function(e,t,n){"use strict";var r=n(471),a=r.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),i=r.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),o=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional())}),s=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}),c=r.define("RelativeDistinguishedName",function(){this.setof(i)}),u=r.define("RDNSequence",function(){this.seqof(c)}),l=r.define("Name",function(){this.choice({rdnSequence:this.use(u)})}),d=r.define("Validity",function(){this.seq().obj(this.key("notBefore").use(a),this.key("notAfter").use(a))}),f=r.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),p=r.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(l),this.key("validity").use(d),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(f).optional())}),h=r.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(p),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())});e.exports=h},function(e,t){e.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},function(e,t,n){(function(t){var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,a=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----/m,i=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,o=n(511),s=n(843);e.exports=function(e,n){var c,u=e.toString(),l=u.match(r);if(l){var d="aes"+l[1],f=new t(l[2],"hex"),p=new t(l[3].replace(/[\r\n]/g,""),"base64"),h=o(n,f.slice(0,8),parseInt(l[1],10)).key,m=[],_=s.createDecipheriv(d,h,f);m.push(_.update(p)),m.push(_.final()),c=t.concat(m)}else{var M=u.match(i);c=new t(M[2].replace(/[\r\n]/g,""),"base64")}return{tag:u.match(a)[1],data:c}}}).call(t,n(39).Buffer)},function(e,t,n){(function(t){function r(e,n,r,o,c){var l=u(r);if("ec"===l.type){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");return a(e,n,l)}if("dsa"===l.type){if("dsa"!==o)throw new Error("wrong public key type");return i(e,n,l)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");n=t.concat([c,n]);for(var d=l.modulus.byteLength(),f=[1],p=0;n.length+f.length+2<d;)f.push(255),p++;f.push(0);for(var h=-1;++h<n.length;)f.push(n[h]);f=new t(f);var m=s.mont(l.modulus);e=new s(e).toRed(m),e=e.redPow(new s(l.publicExponent)),e=new t(e.fromRed().toArray());var _=p<8?1:0;for(d=Math.min(e.length,f.length),e.length!==f.length&&(_=1),h=-1;++h<d;)_|=e[h]^f[h];return 0===_}function a(e,t,n){var r=l[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var a=new c(r),i=n.data.subjectPrivateKey.data;return a.verify(t,e,i)}function i(e,t,n){var r=n.data.p,a=n.data.q,i=n.data.g,c=n.data.pub_key,l=u.signature.decode(e,"der"),d=l.s,f=l.r;o(d,a),o(f,a);var p=s.mont(r),h=d.invm(a);return 0===i.toRed(p).redPow(new s(t).mul(h).mod(a)).fromRed().mul(c.toRed(p).redPow(f.mul(h).mod(a)).fromRed()).mod(r).mod(a).cmp(f)}function o(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}var s=n(57),c=n(84).ec,u=n(513),l=n(905);e.exports=r}).call(t,n(39).Buffer)},function(e,t,n){(function(t){function r(e){this.curveType=s[e],this.curveType||(this.curveType={name:e}),this.curve=new i.ec(this.curveType.name),this.keys=void 0}function a(e,n,r){Array.isArray(e)||(e=e.toArray());var a=new t(e);if(r&&a.length<r){var i=new t(r-a.length);i.fill(0),a=t.concat([i,a])}return n?a.toString(n):a}var i=n(84),o=n(57);e.exports=function(e){return new r(e)};var s={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};s.p224=s.secp224r1,s.p256=s.secp256r1=s.prime256v1,s.p192=s.secp192r1=s.prime192v1,s.p384=s.secp384r1,s.p521=s.secp521r1,r.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},r.prototype.computeSecret=function(e,n,r){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),a(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},r.prototype.getPublicKey=function(e,t){var n=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(n[n.length-1]%2?n[0]=7:n[0]=6),a(n,e)},r.prototype.getPrivateKey=function(e){return a(this.keys.getPrivate(),e)},r.prototype.setPublicKey=function(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this.keys._importPublic(e),this},r.prototype.setPrivateKey=function(e,n){n=n||"utf8",t.isBuffer(e)||(e=new t(e,n));var r=new o(e);return r=r.toString(16),this.keys._importPrivate(r),this}}).call(t,n(39).Buffer)},function(e,t,n){t.publicEncrypt=n(1074),t.privateDecrypt=n(1075),t.privateEncrypt=function(e,n){return t.publicEncrypt(e,n,!0)},t.publicDecrypt=function(e,n){return t.privateDecrypt(e,n,!0)}},function(e,t,n){(function(t){function r(e,n){var r=e.modulus.byteLength(),a=n.length,i=c("sha1").update(new t("")).digest(),o=i.length,f=2*o;if(a>r-f-2)throw new Error("message too long");var p=new t(r-a-f-2);p.fill(0);var h=r-o-1,m=s(o),_=l(t.concat([i,p,new t([1]),n],h),u(m,h)),M=l(m,u(_,o));return new d(t.concat([new t([0]),M,_],r))}function a(e,n,r){var a=n.length,o=e.modulus.byteLength();if(a>o-11)throw new Error("message too long");var s;return r?(s=new t(o-a-3),s.fill(255)):s=i(o-a-3),new d(t.concat([new t([0,r?1:2]),s,new t([0]),n],o))}function i(e,n){for(var r,a=new t(e),i=0,o=s(2*e),c=0;i<e;)c===o.length&&(o=s(2*e),c=0),(r=o[c++])&&(a[i++]=r);return a}var o=n(513),s=n(235),c=n(467),u=n(906),l=n(907),d=n(57),f=n(908),p=n(845);e.exports=function(e,t,n){var i;i=e.padding?e.padding:n?1:4;var s,c=o(e);if(4===i)s=r(c,t);else if(1===i)s=a(c,t,n);else{if(3!==i)throw new Error("unknown padding");if(s=new d(t),s.cmp(c.modulus)>=0)throw new Error("data too long for modulus")}return n?p(s,c):f(s,c)}}).call(t,n(39).Buffer)},function(e,t,n){(function(t){function r(e,n){var r=(e.modulus,e.modulus.byteLength()),a=(n.length,d("sha1").update(new t("")).digest()),o=a.length;if(0!==n[0])throw new Error("decryption error");var u=n.slice(1,o+1),l=n.slice(o+1),f=c(u,s(l,o)),p=c(l,s(f,r-o-1));if(i(a,p.slice(0,o)))throw new Error("decryption error");for(var h=o;0===p[h];)h++;if(1!==p[h++])throw new Error("decryption error");return p.slice(h)}function a(e,t,n){for(var r=t.slice(0,2),a=2,i=0;0!==t[a++];)if(a>=t.length){i++;break}var o=t.slice(2,a-1);t.slice(a-1,a);if(("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&i++,o.length<8&&i++,i)throw new Error("decryption error");return t.slice(a)}function i(e,n){e=new t(e),n=new t(n);var r=0,a=e.length;e.length!==n.length&&(r++,a=Math.min(e.length,n.length));for(var i=-1;++i<a;)r+=e[i]^n[i];return r}var o=n(513),s=n(906),c=n(907),u=n(57),l=n(845),d=n(467),f=n(908);e.exports=function(e,n,i){var s;s=e.padding?e.padding:i?1:4;var c=o(e),d=c.modulus.byteLength();if(n.length>d||new u(n).cmp(c.modulus)>=0)throw new Error("decryption error");var p;p=i?f(new u(n),c):l(n,c);var h=new t(d-p.length);if(h.fill(0),p=t.concat([h,p],d),4===s)return r(c,p);if(1===s)return a(c,p,i);if(3===s)return p;throw new Error("unknown padding")}}).call(t,n(39).Buffer)},function(e,t,n){"use strict";(function(e,r){function a(){
41
  throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}function i(e,t){if("number"!=typeof e||e!==e)throw new TypeError("offset must be a number");if(e>m||e<0)throw new TypeError("offset must be a uint32");if(e>p||e>t)throw new RangeError("offset out of range")}function o(e,t,n){if("number"!=typeof e||e!==e)throw new TypeError("size must be a number");if(e>m||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>p)throw new RangeError("buffer too small")}function s(t,n,r,a){if(!(f.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof n)a=n,n=0,r=t.length;else if("function"==typeof r)a=r,r=t.length-n;else if("function"!=typeof a)throw new TypeError('"cb" argument must be a function');return i(n,t.length),o(r,n,t.length),c(t,n,r,a)}function c(e,t,n,a){if(r.browser){var i=e.buffer,o=new Uint8Array(i,t,n);return h.getRandomValues(o),a?void r.nextTick(function(){a(null,e)}):e}return a?void d(n,function(n,r){if(n)return a(n);r.copy(e,t),a(null,e)}):(d(n).copy(e,t),e)}function u(t,n,r){if(void 0===n&&(n=0),!(f.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return i(n,t.length),void 0===r&&(r=t.length-n),o(r,n,t.length),c(t,n,r)}var l=n(35),d=n(235),f=l.Buffer,p=l.kMaxLength,h=e.crypto||e.msCrypto,m=Math.pow(2,32)-1;h&&h.getRandomValues||!r.browser?(t.randomFill=s,t.randomFillSync=u):(t.randomFill=a,t.randomFillSync=a)}).call(t,n(45),n(63))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(113),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(149),M=r(_),b=n(7),g=r(b),v=n(1),y=r(v),A=n(10),E=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var o=arguments.length,c=Array(o),l=0;l<o;l++)c[l]=arguments[l];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(c))),r.renderChildren=function(){var e=void 0;e=r.props&&((0,i.default)(r.props).length>1||!r.props.children)?y.default.createElement("div",r.props,r.props.children):r.props.children,r.context.store&&(e=y.default.createElement(A.Provider,{store:r.context.store},e)),M.default.render(e,r.container)},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"componentDidMount",value:function(){this.container=document.createElement("div"),document.body.appendChild(this.container),this.renderChildren()}},{key:"componentDidUpdate",value:function(){this.renderChildren()}},{key:"componentWillUnmount",value:function(){this.container&&(M.default.unmountComponentAtNode(this.container),document.body.removeChild(this.container),delete this.container)}},{key:"render",value:function(){return null}}]),t}(y.default.Component);E.displayName="RootChild",E.propTypes={children:g.default.node},E.contextTypes={store:g.default.object},t.default=E,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(){var e={};return e.top=window.scrollY,e.left=window.scrollX,e.width=window.innerWidth,e.height=window.innerHeight,e.right=e.left+e.width,e.bottom=e.top+e.height,b("viewport: %o",e),e}function i(){y=a()}function o(e,t){for(var n=[e,g[e],v[e],g[v[e]]],r=-1/0,a=void 0,i=0,o=n.length;i<o;i++){var s=n[i],c=t[s];if(c>0)return s;c>r&&(r=c,a=e)}return a}function s(e,t,n,r,a,i){for(var o=t?[e+" "+t,e,e+" "+g[t]]:[e,e+" "+v[e],e+" "+g[v[e]]],s=void 0,u=0,l=a*i,d=0,f=o.length;d<f;d++){var p=o[d],h=c(p,n,r),m=h.left+a,_=h.top+i,M=Math.min(h.top<y.top?_-y.top:y.bottom-h.top,i),b=Math.min(h.left<y.left?m-y.left:y.right-h.left,a),A=b*M;if(A===l)return p;A>u&&(u=A,s=p)}return s}function c(e,t,n){var r=(0,m.default)(t);if(!r)throw new Error("could not get bounding client rect of Tip element");var a=r.width,i=r.height,o=(0,m.default)(n);if(!o)throw new Error("could not get bounding client rect of `target`");var s=o.width,c=o.height,l=u(o,document);if(!l)throw new Error("could not determine page offset of `target`");var d={};switch(e){case"top":d={top:l.top-i,left:l.left+s/2-a/2};break;case"bottom":d={top:l.top+c,left:l.left+s/2-a/2};break;case"right":d={top:l.top+c/2-i/2,left:l.left+s};break;case"left":d={top:l.top+c/2-i/2,left:l.left-a};break;case"top left":d={top:l.top-i,left:l.left+s/2-a+15};break;case"top right":d={top:l.top-i,left:l.left+s/2-15};break;case"bottom left":d={top:l.top+c,left:l.left+s/2-a+15};break;case"bottom right":d={top:l.top+c,left:l.left+s/2-15};break;case"left top":d={top:l.top+c/2-i,left:l.left-a};break;case"left bottom":d={top:l.top+c/2,left:l.left-a};break;case"right top":d={top:l.top+c/2-i,left:l.left+s};break;case"right bottom":d={top:l.top+c/2,left:l.left+s};break;default:throw new Error('invalid position "'+e+'"')}return d}function u(e,t){var n=t.body||t.getElementsByTagName("body")[0],r=t.documentElement||n.parentNode,a=r.clientTop||n.clientTop||0,i=r.clientLeft||n.clientLeft||0,o=window.pageYOffset||r.scrollTop,s=window.pageXOffset||r.scrollLeft;return{top:e.top+o-a,left:e.left+s-i}}Object.defineProperty(t,"__esModule",{value:!0}),t.isElement=t.offset=t.suggested=t.unbindWindowListeners=t.bindWindowListeners=t.constrainLeft=void 0;var l=n(59),d=r(l),f=n(909),p=r(f),h=n(1085),m=r(h),_=n(102),M=r(_),b=(0,M.default)("calypso:popover:util"),g={top:"bottom",bottom:"top",left:"right",right:"left"},v={top:"right",left:"top",bottom:"left",right:"bottom"},y=a(),A=!1,E=function(){if(A)return b("window events already bound");A=!0,b("bind handlers to `resize` and `scroll` events"),window.addEventListener("resize",i,!0),window.addEventListener("scroll",i,!0)},w=function(){if(!A)return b("window events are not bound");A=!1,b("unbind handlers to `resize` and `scroll` events"),window.removeEventListener("resize",i,!0),window.removeEventListener("scroll",i,!0)},k=function(e,t,n){var r=(0,m.default)(n),a=t.clientHeight,i=t.clientWidth,c={top:r.top-a,bottom:y.height-r.bottom-a,left:r.left-i,right:y.width-r.right-i},u=e.split(/\s+/),l=(0,p.default)(u,1),d=l[0],f=(0,p.default)(u,2),h=f[1],_=o(d,c);return h!==_&&h!==g[_]||(h=null),s(_,h,t,n,i,a)||e},T=function(e,t){var n=(0,m.default)(t).width;return e.left=Math.max(0,Math.min(e.left,y.width-n)),e},L=function(e){try{return e instanceof HTMLElement}catch(t){return"object"===(void 0===e?"undefined":(0,d.default)(e))&&1===e.nodeType&&"object"===(0,d.default)(e.style)&&"object"===(0,d.default)(e.ownerDocument)}};t.constrainLeft=T,t.bindWindowListeners=E,t.unbindWindowListeners=w,t.suggested=k,t.offset=c,t.isElement=L},function(e,t,n){e.exports={default:n(1080),__esModule:!0}},function(e,t,n){n(138),n(110),e.exports=n(1081)},function(e,t,n){var r=n(200),a=n(34)("iterator"),i=n(98);e.exports=n(20).isIterable=function(e){var t=Object(e);return void 0!==t[a]||"@@iterator"in t||i.hasOwnProperty(r(t))}},function(e,t,n){e.exports={default:n(1083),__esModule:!0}},function(e,t,n){n(138),n(110),e.exports=n(1084)},function(e,t,n){var r=n(55),a=n(223);e.exports=n(20).getIterator=function(e){var t=a(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){function r(e){var t=null,n=a(e);if(3===e.nodeType){var r=n.createRange();r.selectNodeContents(e),e=r}if("function"==typeof e.getBoundingClientRect&&(t=e.getBoundingClientRect(),e.startContainer&&0===t.left&&0===t.top)){var i=n.createElement("span");i.appendChild(n.createTextNode("​")),e.insertNode(i),t=i.getBoundingClientRect();var o=i.parentNode;o.removeChild(i),o.normalize()}return t}var a=n(1086);e.exports=r},function(e,t){function n(e){return e&&e.nodeType===a}function r(e){return n(e)?e:n(e.ownerDocument)?e.ownerDocument:n(e.document)?e.document:e.parentNode?r(e.parentNode):e.commonAncestorContainer?r(e.commonAncestorContainer):e.startContainer?r(e.startContainer):e.anchorNode?r(e.anchorNode):void 0}e.exports=r;var a=9},function(e,t){},function(e,t){},function(e,t,n){e.exports=n(228)},function(e,t,n){"use strict";function r(e){return(0,a.connect)(function(e,t){return{validValues:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"string"==typeof(0,o.default)(t,["module","module"])&&(r=t.module.module),(0,s.getModuleOptionValidValues)(e,r,n)},getOptionCurrentValue:function(t,n){return(0,s.getModuleOption)(e,t,n)},getSettingCurrentValue:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,c.getSetting)(e,t,n)},getSiteRoles:function(){return(0,u.getSiteRoles)(e)},isUpdating:function(t){return(0,c.isUpdatingSetting)(e,t)},adminEmailAddress:(0,u.getAdminEmailAddress)(e),currentIp:(0,u.getCurrentIp)(e),siteAdminUrl:(0,u.getSiteAdminUrl)(e),isCurrentUserLinked:(0,l.isCurrentUserLinked)(e)}},function(e){return{updateOptions:function(t){return e((0,c.updateSettings)(t))},regeneratePostByEmailAddress:function(t){return e((0,c.updateSettings)(t,"regeneratePbE"))},setUnsavedSettingsFlag:function(){return e((0,c.setUnsavedSettingsFlag)())},clearUnsavedSettingsFlag:function(){return e((0,c.clearUnsavedSettingsFlag)())}}})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.connectModuleOptions=r;var a=n(10),i=n(27),o=function(e){return e&&e.__esModule?e:{default:e}}(i),s=n(23),c=n(103),u=n(28),l=n(21)},function(e,t){},function(e,t,n){function r(e){if(null==e)return 0;if(o(e))return s(e)?c(e):e.length;var t=i(e);return t==u||t==l?e.size:a(e).length}var a=n(292),i=n(115),o=n(54),s=n(490),c=n(1093),u="[object Map]",l="[object Set]";e.exports=r},function(e,t,n){function r(e){return i(e)?o(e):a(e)}var a=n(1094),i=n(913),o=n(1095);e.exports=r},function(e,t,n){var r=n(497),a=r("length");e.exports=a},function(e,t){function n(e){for(var t=d.lastIndex=0;d.test(e);)++t;return t}var r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\\ud83c[\\udffb-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",c="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",i,o].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*",u="[\\ufe0e\\ufe0f]?"+s+c,l="(?:"+["[^\\ud800-\\udfff]"+r+"?",r,i,o,"[\\ud800-\\udfff]"].join("|")+")",d=RegExp(a+"(?="+a+")|"+l+u,"g");e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(14),g=r(b),v=n(47);n(1097);var y=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"getIconClassNames",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,n=t.plan,r=t.className,a=(0,v.getPlanClass)(n);return(0,g.default)("dops-plan-icon",a,r,e)}},{key:"getPersonalIcon",value:function(){return M.default.createElement("svg",{className:this.getIconClassNames("dops-plan-icon__personal"),xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0",y:"0",viewBox:"0 0 124 125"},M.default.createElement("circle",{className:"dops-plan-icon__personal-0",cx:"62",cy:"62.1",r:"62"}),M.default.createElement("path",{className:"dops-plan-icon__personal-1",d:"M64 106.1l4-9.8v-3.5H62v14.6C62.9 107.4 63.6 106.9 64 106.1z"}),M.default.createElement("path",{className:"dops-plan-icon__personal-2",d:"M56.2 92.8v3.5l4 9.8c0.3 0.8 1.1 1.3 1.9 1.3V92.8H56.2z"}),M.default.createElement("path",{className:"dops-plan-icon__personal-2",d:"M62 32.9h17.1V2.5C73.7 0.9 68 0.1 62 0.1V32.9z"}),M.default.createElement("path",{className:"dops-plan-icon__personal-3",d:"M62 32.9V0.1c0 0 0 0 0 0 -5.9 0-11.6 0.8-17 2.4v30.5H62z"}),M.default.createElement("polygon",{className:"dops-plan-icon__personal-4",points:"62 32.9 45 32.9 48.3 48.7 53.3 92.8 62 92.8 "}),M.default.createElement("polygon",{className:"dops-plan-icon__personal-5",points:"62 32.9 79.2 32.9 75.9 48.7 70.9 92.8 62 92.8 "}))}},{key:"getPremiumIcon",value:function(){return M.default.createElement("svg",{className:this.getIconClassNames("dops-plan-icon__premium"),xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0",y:"0",viewBox:"0 0 62 61.5"},M.default.createElement("ellipse",{className:"dops-plan-icon__premium-0",cx:"31",cy:"30.8",rx:"31",ry:"30.8"}),M.default.createElement("path",{className:"dops-plan-icon__premium-1",d:"M27.8 46.3v1.9l2.2 5.4c0.2 0.5 0.5 0.7 1 0.7v-7.9L27.8 46.3z"}),M.default.createElement("path",{className:"dops-plan-icon__premium-2",d:"M32 53.6l2.2-5.4v-1.9H31v3.8 4.1C31.5 54.3 31.9 54 32 53.6z"}),M.default.createElement("path",{className:"dops-plan-icon__premium-3",d:"M21.6 18c0.2 2 4.8 28.3 4.8 28.3l4.6 0.1V18H21.6z"}),M.default.createElement("path",{className:"dops-plan-icon__premium-4",d:"M40.5 18H31v23.4 5l4.5-0.1C35.5 46.3 40.1 20.4 40.5 18z"}),M.default.createElement("path",{className:"dops-plan-icon__premium-5",d:"M31 18V0c-3.9 0-7.7 0.7-11.2 2.1 0.7 6 1.8 15.9 1.8 15.9H31z"}),M.default.createElement("path",{className:"dops-plan-icon__premium-6",d:"M31 18h9.5c0 0 1.1-9.9 1.8-15.9C38.8 0.7 35 0 31 0V18z"}))}},{key:"getBusinessIcon",value:function(){return M.default.createElement("svg",{className:this.getIconClassNames("dops-plan-icon__business"),xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0",y:"0",viewBox:"0 0 124 124"},M.default.createElement("circle",{className:"dops-plan-icon__business-0",cx:"62",cy:"62",r:"62"}),M.default.createElement("path",{className:"dops-plan-icon__business-1",d:"M57.4 73.8c0-2.5 2-4.6 4.6-4.6V36.8h-9.6v12.1c-8 3.7-13.5 11.7-13.5 21.1 0 4.9 1.5 9.4 4.1 13.1l0 0c15.4 22.4 15.4 22.4 17 24.8h0.3V78.1C58.6 77.4 57.4 75.7 57.4 73.8L57.4 73.8z"}),M.default.createElement("path",{className:"dops-plan-icon__business-2",d:"M85.2 69.8c0-9.4-5.6-17.4-13.5-21.1v-12H62v32.5c2.5 0 4.6 2 4.6 4.6 0 1.9-1.2 3.5-2.9 4.2v29.8H64c1.6-2.4 1.6-2.4 17-24.8l0 0C83.6 79.2 85.2 74.7 85.2 69.8L85.2 69.8z"}),M.default.createElement("path",{className:"dops-plan-icon__business-3",d:"M48.6 32h-2.4c-3.2 0-5.8 2.6-5.8 5.8V38c0 3.2 2.6 5.8 5.8 5.8H62v-4.7V32 0c-7.2 0-14.1 1.2-20.6 3.5 1.1 5.5 2.5 11 4.1 16.5L48.6 32z"}),M.default.createElement("path",{className:"dops-plan-icon__business-4",d:"M62 39.1v4.7h15.8c3.2 0 5.8-2.6 5.8-5.8v-0.2c0-3.2-2.6-5.8-5.8-5.8h-2.4l3.1-12c1.6-5.5 3-11 4.1-16.5C76.1 1.2 69.2 0 62 0v32V39.1z"}))}},{key:"getDefaultIcon",value:function(){return M.default.createElement("svg",{className:this.getIconClassNames("dops-plan-icon__free"),xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0",y:"0",viewBox:"0 0 61.8 61.8"},M.default.createElement("circle",{className:"dops-plan-icon__free-0",cx:"30.9",cy:"30.9",r:"30.9"}),M.default.createElement("polygon",{className:"dops-plan-icon__free-1",points:"41.4 32.8 30.9 22.5 20.3 32.8 30.9 51.8 "}),M.default.createElement("path",{className:"dops-plan-icon__free-2",d:"M30.9 41.6L30.9 41.6c-2 0-3.7 1.6-3.7 3.6l3.7 6.5 3.7-6.5C34.5 43.2 32.9 41.6 30.9 41.6L30.9 41.6z"}),M.default.createElement("path",{className:"dops-plan-icon__free-3",d:"M25.6 27.7c0 2.9 2.3 5.2 5.2 5.2h0.1c2.9 0 5.2-2.3 5.2-5.2v-0.1V0.4c-1.7-0.3-3.5-0.5-5.3-0.5s-3.6 0.2-5.3 0.5v27.3H25.6z"}),M.default.createElement("path",{className:"dops-plan-icon__free-4",d:"M25.6 27.6V0.4c-1.8 0.3-3.6 0.8-5.3 1.4v31C23.2 32.8 25.6 30.5 25.6 27.6z"}),M.default.createElement("path",{className:"dops-plan-icon__free-2",d:"M41.4 32.8v-31c-1.7-0.6-3.5-1.1-5.3-1.4v27.2C36.1 30.5 38.5 32.8 41.4 32.8z"}))}},{key:"render",value:function(){switch(this.props.plan){case v.PLAN_PERSONAL:case v.PLAN_JETPACK_PERSONAL:case v.PLAN_JETPACK_PERSONAL_MONTHLY:return this.getPersonalIcon();case v.PLAN_PREMIUM:case v.PLAN_JETPACK_PREMIUM:case v.PLAN_JETPACK_PREMIUM_MONTHLY:return this.getPremiumIcon();case v.PLAN_BUSINESS:case v.PLAN_JETPACK_BUSINESS:case v.PLAN_JETPACK_BUSINESS_MONTHLY:case v.PLAN_VIP:return this.getBusinessIcon();default:return this.getDefaultIcon()}}}]),t}(_.Component);t.default=y,y.propTypes={classNames:m.default.string,plan:m.default.oneOf([v.PLAN_FREE,v.PLAN_PREMIUM,v.PLAN_BUSINESS,v.PLAN_JETPACK_FREE,v.PLAN_JETPACK_BUSINESS,v.PLAN_JETPACK_BUSINESS_MONTHLY,v.PLAN_JETPACK_PREMIUM,v.PLAN_JETPACK_PREMIUM_MONTHLY,v.PLAN_JETPACK_PERSONAL,v.PLAN_JETPACK_PERSONAL_MONTHLY,v.PLAN_PERSONAL,v.PLAN_VIP]).isRequired},e.exports=t.default},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(7),i=r(a),o=n(1),s=r(o),c=n(32),u=r(c),l=n(64),d=r(l),f=n(833),p=r(f),h=n(65),m=r(h),_=n(14),M=r(_),b=n(15),g=r(b);n(1101),t.default=(0,u.default)({displayName:"InfoPopover",propTypes:{id:i.default.string,position:i.default.string,className:i.default.string,rootClassName:i.default.string,gaEventCategory:i.default.string,popoverName:i.default.string,onClick:i.default.func,ignoreContext:i.default.shape({getDOMNode:i.default.function})},getDefaultProps:function(){return{position:"bottom",onClick:d.default}},getInitialState:function(){return{showPopover:!1}},render:function(){var e=(0,M.default)("dops-info-popover","dops-info-popover-button",{is_active:this.state.showPopover},this.props.className);return s.default.createElement("button",{ref:"infoPopover",className:e,onClick:this._onClick},s.default.createElement(m.default,{icon:"info-outline",size:18}),this.props.screenReaderText?s.default.createElement("span",{className:"screen-reader-text"},this.props.screenReaderText):"",s.default.createElement(p.default,{id:this.props.id,isVisible:this.state.showPopover,context:this.refs&&this.refs.infoPopover,ignoreContext:this.props.ignoreContext,position:this.props.position,onClose:this._onClose,className:(0,M.default)("dops-info-popover__tooltip",this.props.className),rootClassName:this.props.rootClassName},this.props.children))},_onClick:function(e){this.props.onClick(),e.preventDefault(),this.setState({showPopover:!this.state.showPopover},this._recordStats)},_onClose:function(){this.setState({showPopover:!1},this._recordStats)},_recordStats:function(){var e=this.props,t=e.gaEventCategory,n=e.popoverName;if(t&&n){var r=this.state.showPopover?" Opened":" Closed";g.default.ga.recordEvent(t,"InfoPopover: "+n+r)}}}),e.exports=t.default},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Subscriptions=void 0;var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(8),y=n(104),A=r(y),E=n(25),w=r(E),k=n(15),T=r(k),L=n(71),S=n(52),C=n(30),O=n(40),z=r(O),N=n(36),D=r(N),P=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={stb_enabled:r.props.getOptionValue("stb_enabled","subscriptions"),stc_enabled:r.props.getOptionValue("stc_enabled","subscriptions")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("subscriptions",e))},r.trackConfigureClick=function(){T.default.tracks.recordJetpackClick("view-followers")},r.handleSubscribeToBlogToggleChange=function(){r.updateOptions("stb_enabled")},r.handleSubscribeToCommentToggleChange=function(){r.updateOptions("stc_enabled")},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this,t=this.props.getModule("subscriptions"),n=this.props.getOptionValue("subscriptions"),r=this.props.isUnavailableInDevMode("subscriptions");return g.default.createElement(z.default,(0,i.default)({},this.props,{hideButton:!0,module:"subscriptions"}),g.default.createElement(D.default,{hasChild:!0,disableInDevMode:!0,module:t,support:{text:(0,v.translate)("Allows readers to subscribe to your posts or comments, and receive notifications of new content by email."),link:"https://jetpack.com/support/subscriptions/"}},g.default.createElement(S.ModuleToggle,{slug:"subscriptions",disabled:r,activated:n,toggling:this.props.isSavingAnyOption("subscriptions"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},t.description)),g.default.createElement(L.FormFieldset,null,g.default.createElement(A.default,{checked:this.state.stb_enabled,disabled:!n||r||this.props.isSavingAnyOption(["subscriptions","stb_enabled"]),onChange:this.handleSubscribeToBlogToggleChange},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)('Show a "follow blog" option in the comment form'))),g.default.createElement(A.default,{checked:this.state.stc_enabled,disabled:!n||r||this.props.isSavingAnyOption(["subscriptions","stc_enabled"]),onChange:this.handleSubscribeToCommentToggleChange},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)('Show a "follow comments" option in the comment form'))))),function(){return r||!n?"":e.props.isLinked?g.default.createElement(w.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackConfigureClick,href:"https://wordpress.com/people/email-followers/"+e.props.siteRawUrl},(0,v.translate)("View your Email Followers")):g.default.createElement(w.default,{compact:!0,className:"jp-settings-card__configure-link",href:e.props.connectUrl+"&from=unlinked-user-connect-masterbar"},(0,v.translate)("Connect your user account to WordPress.com to view your email followers")," ")}())}}]),t}(g.default.Component);t.Subscriptions=(0,C.ModuleSettingsForm)(P)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Security=void 0;var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(10),M=n(27),b=r(M),g=n(23),v=n(103),y=n(21),A=n(74),E=n(210),w=n(211),k=r(w),T=n(912),L=r(T),S=n(1106),C=r(S),O=n(1107),z=r(O),N=n(1119),D=n(1120),P=n(1123),x=t.Security=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.isAkismetFound=function(){if(!r.props.isPluginActive("akismet/akismet.php"))return!1;if(r.props.searchTerm){var e=r.props.isPluginInstalled("akismet/akismet.php");return["akismet","antispam","spam","comments",e.Description,e.PluginURI].join(" ").toLowerCase().indexOf(r.props.searchTerm.toLowerCase())>-1}return!0},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode,rewindStatus:this.props.rewindStatus,siteRawUrl:this.props.siteRawUrl},t=this.props.isModuleFound("protect"),n=this.props.isModuleFound("sso"),r=this.isAkismetFound(),a="active"===(0,b.default)(this.props.rewindStatus,["state"],!1),i=this.props.isModuleFound("vaultpress")||a,o=this.props.isModuleFound("monitor");return(this.props.searchTerm||this.props.active)&&(n||t||r||i||o)?m.default.createElement("div",null,m.default.createElement(k.default,null),i&&m.default.createElement(C.default,e),o&&m.default.createElement(N.Monitor,e),r&&m.default.createElement("div",null,m.default.createElement(z.default,e),m.default.createElement(L.default,null)),t&&m.default.createElement(D.Protect,e),n&&m.default.createElement(P.SSO,e)):null}}]),t}(h.Component);x.displayName="SecuritySettings",t.default=(0,_.connect)(function(e){return{module:function(t){return(0,g.getModule)(e,t)},settings:(0,v.getSettings)(e),isDevMode:(0,y.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,y.isUnavailableInDevMode)(e,t)},isModuleFound:function(t){return(0,A.isModuleFound)(e,t)},isPluginActive:function(t){return(0,E.isPluginActive)(e,t)},isPluginInstalled:function(t){return(0,E.isPluginInstalled)(e,t)}}})(x)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.BackupsScan=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(25),y=r(v),A=n(15),E=r(A),w=n(27),k=r(w),T=n(47),L=n(850),S=r(L),C=n(30),O=n(40),z=r(O),N=n(36),D=r(N),P=n(62),x=n(61),j=n(44),R=r(j),Y=n(23),I=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){return M.default.createElement(z.default,{header:(0,g.translate)("Backups and security scanning",{context:"Settings header"}),hideButton:!0,action:"scan"},M.default.createElement(D.default,{disableInDevMode:!0,module:{module:"backups"},support:{text:(0,g.translate)("Backs up your site to the global WordPress.com servers, allowing you to restore your content in the event of an emergency or error."),link:"https://help.vaultpress.com/get-to-know/"}},(0,g.translate)("Checking site status…")))}}]),t}(_.Component),q=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.getCardText=function(){return r.props.isDevMode?(0,g.translate)("Unavailable in Dev Mode."):M.default.createElement(S.default,{title:(0,g.translate)("Connected"),icon:"checkmark-circle",feature:"rewind",description:(0,g.translate)("Your site is being backed up in real time and regularly scanned for security threats."),className:"is-upgrade-premium jp-banner__no-border",href:"https://wordpress.com/stats/activity/"+r.props.siteRawUrl})},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){return M.default.createElement(z.default,(0,i.default)({feature:"rewind"},this.props,{header:(0,g.translate)("Backups and security scanning",{context:"Settings header"}),action:"rewind",hideButton:!0}),this.getCardText())}}]),t}(_.Component),B=t.BackupsScan=(0,C.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.toggleModule=function(e,t){r.props.updateFormStateOptionValue(e,!t)},r.trackConfigureClick=function(){E.default.tracks.recordJetpackClick("configure-scan")},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"getCardText",value:function(){var e=(0,k.default)(this.props.vaultPressData,["data","features","backups"],!1),t=(0,k.default)(this.props.vaultPressData,["data","features","security"],!1),n=(0,T.getPlanClass)(this.props.sitePlan.product_slug),r="";if(this.props.isDevMode)return(0,g.translate)("Unavailable in Dev Mode.");if(e&&t){var a=this.props.hasThreats;return a?M.default.createElement("div",null,M.default.createElement("strong",null,(0,g.translate)("Uh oh, %(number)s threat found.","Uh oh, %(number)s threats found.",{count:a,args:{number:(0,g.numberFormat)(a)}})),M.default.createElement("br",null),M.default.createElement("br",null),(0,g.translate)("{{a}}View details{{/a}}",{components:{a:M.default.createElement("a",{href:"https://dashboard.vaultpress.com/"})}}),M.default.createElement("br",null),(0,g.translate)("{{a}}Contact Support{{/a}}",{components:{a:M.default.createElement("a",{href:"https://jetpack.com/support"})}})):(0,g.translate)("Your site is backed up and threat-free.")}if(e&&(0,R.default)(["is-free-plan","is-personal-plan"],n))return(0,g.translate)("Your site is backed up.");switch(n){case"is-personal-plan":r=(0,g.translate)("You have paid for backups but they're not yet active."),r+=" "+(0,g.translate)('Click "Set Up" to finish installation.');break;case"is-premium-plan":case"is-business-plan":r=(0,g.translate)("You have paid for backups and security scanning but they’re not yet active."),r+=" "+(0,g.translate)('Click "Set Up" to finish installation.')}return r}},{key:"render",value:function(){var e=(0,k.default)(this.props.vaultPressData,["data","features","security"],!1),t="active"===(0,k.default)(this.props.rewindStatus,["state"],!1),n=!1!==(0,k.default)(this.props.rewindStatus,["state"],!1),r="N/A"!==this.props.vaultPressData&&!1!==(0,k.default)(this.props.vaultPressData,["data"],!1);return!n||this.props.vaultPressActive&&!r?M.default.createElement(I,null):t?M.default.createElement(q,this.props):M.default.createElement(z.default,(0,i.default)({feature:T.FEATURE_SECURITY_SCANNING_JETPACK},this.props,{header:(0,g.translate)("Backups and security scanning",{context:"Settings header"}),action:"scan",hideButton:!0}),M.default.createElement(D.default,{disableInDevMode:!0,module:{module:"backups"},support:{text:(0,g.translate)("Backs up your site to the global WordPress.com servers, allowing you to restore your content in the event of an emergency or error."),link:"https://help.vaultpress.com/get-to-know/"}},this.getCardText()),!this.props.isUnavailableInDevMode("backups")&&e&&M.default.createElement(y.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:"https://dashboard.vaultpress.com/"},(0,g.translate)("Configure your Security Scans")))}}]),t}(_.Component));t.default=(0,b.connect)(function(e){return{sitePlan:(0,x.getSitePlan)(e),vaultPressData:(0,P.getVaultPressData)(e),hasThreats:(0,P.getVaultPressScanThreatCount)(e),vaultPressActive:(0,Y.isModuleActivated)(e,"vaultpress")}})(B)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Antispam=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(508),y=r(v),A=n(516),E=r(A),w=n(1110),k=r(w),T=n(65),L=r(T),S=n(505),C=r(S),O=n(24),z=r(O),N=n(234),D=r(N),P=n(1112),x=r(P),j=n(62),R=n(47),Y=n(15),I=r(Y),q=n(71),B=n(30),W=n(40),U=r(W),H=n(36),F=r(H),X=t.Antispam=(0,B.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.state={apiKey:r.props.getOptionValue("wordpress_api_key"),delayKeyCheck:!1,currentEvent:{}},r.keyChanged=!1,r.checkApiKeyTyped=function(e){0<e.currentTarget.value.length&&r.props.checkAkismetKey(e.currentTarget.value),r.keyChanged=!0,r.setState({delayKeyCheck:!1})},r.updateText=function(e){var t=(0,z.default)({},e);t.currentTarget.value=(0,x.default)(t.currentTarget.value),r.setState({apiKey:t.currentTarget.value,delayKeyCheck:!0,currentEvent:t},r.debouncedCheckApiKeyTyped(t))},r.trackOpenCard=function(){I.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"anti-spam"})},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"componentWillMount",value:function(){this.debouncedCheckApiKeyTyped=(0,C.default)(this.checkApiKeyTyped,500)}},{key:"componentDidUpdate",value:function(){!this.props.isCheckingAkismetKey&&this.props.isAkismetKeyValid&&this.keyChanged&&!(0,D.default)(this.state.currentEvent)&&(this.keyChanged=!1,this.props.onOptionChange(this.state.currentEvent))}},{key:"render",value:function(){var e={name:"wordpress_api_key",value:this.state.apiKey,disabled:this.props.isSavingAnyOption("wordpress_api_key"),onChange:this.updateText},t="",n=(0,g.translate)("Checking your spam protection…"),r=!0;return null===this.props.isAkismetKeyValid?(e.value=(0,g.translate)("Fetching key…"),e.disabled=!0,r=!1):""===this.state.apiKey?(e.value="",n=(0,
42
  g.translate)("Your site needs an Antispam key.")):this.state.delayKeyCheck||this.props.isCheckingAkismetKey?this.props.isCheckingAkismetKey&&(t=M.default.createElement("div",{className:"form-input-validation is-warning"},M.default.createElement("span",null,M.default.createElement(L.default,{size:24,icon:"sync"}),(0,g.translate)("Checking key…"))),r=!1):!1===this.props.isAkismetKeyValid?(t=M.default.createElement(k.default,{isError:!0,text:(0,g.translate)("There's a problem with your Antispam API key. {{a}}Learn more{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://docs.akismet.com/getting-started/api-key/"})}})}),e.isError=!0,n=(0,g.translate)("Your site is not protected from spam.")):(t=M.default.createElement(k.default,{text:(0,g.translate)("Your Antispam key is valid.")}),e.isValid=!0,n=(0,g.translate)("Your site is protected from spam."),r=!1),M.default.createElement(U.default,(0,i.default)({},this.props,{header:(0,g.translate)("Spam filtering",{context:"Settings header"}),saveDisabled:this.props.isSavingAnyOption("wordpress_api_key"),feature:R.FEATURE_SPAM_AKISMET_PLUS}),M.default.createElement(E.default,{onOpen:this.trackOpenCard,header:n},M.default.createElement(F.default,{support:{text:(0,g.translate)("Removes spam from comments and contact forms."),link:"https://akismet.com/jetpack/"}},M.default.createElement(q.FormFieldset,null,M.default.createElement(q.FormLabel,null,M.default.createElement("span",{className:"jp-form-label-wide"},(0,g.translate)("Your API key")),M.default.createElement(y.default,e),t),r&&M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,g.translate)("If you don't already have an API key, then {{a}}get your API key here{{/a}}, and you'll be guided through the process of getting one.",{components:{a:M.default.createElement("a",{href:"https://akismet.com/wordpress/"})}}))))))}}]),t}(_.Component));t.default=(0,b.connect)(function(e){return{isAkismetKeyValid:(0,j.isAkismetKeyValid)(e),isCheckingAkismetKey:(0,j.isCheckingAkismetKey)(e)}},function(e){return{checkAkismetKey:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e((0,j.checkAkismetKey)(t))}}})(X)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=n(24),_=n(14),M=n(25),b=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=m({},this.props,{className:_(this.props.className,"is-compact")});return h.createElement(M,e,this.props.children)}}]),t}(h.Component);b.displayName="CompactCard",t.default=b,e.exports=t.default},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=n(1),_=n(14),M=n(65);n(1111);var b=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=_({"form-input-validation":!0,"is-warning":this.props.isWarning,"is-error":this.props.isError}),t=this.props.isError||this.props.isWarning?"notice-outline":"checkmark";return m.createElement("div",{className:e},m.createElement("span",null,m.createElement(M,{size:24,icon:this.props.icon?this.props.icon:t})," ",this.props.text))}}]),t}(m.Component);b.displayName="FormInputValidation",b.propTypes={isError:h.bool,isWarning:h.bool,text:h.node,icon:h.string},b.defaultProps={isError:!1},t.default=b,e.exports=t.default},function(e,t){},function(e,t,n){function r(e,t,n){if((e=u(e))&&(n||void 0===t))return e.replace(l,"");if(!e||!(t=a(t)))return e;var r=c(e),d=c(t),f=s(r,d),p=o(r,d)+1;return i(r,f,p).join("")}var a=n(489),i=n(1113),o=n(1114),s=n(1115),c=n(1116),u=n(224),l=/^\s+|\s+$/g;e.exports=r},function(e,t,n){function r(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:a(e,t,n)}var a=n(466);e.exports=r},function(e,t,n){function r(e,t){for(var n=e.length;n--&&a(t,e[n],0)>-1;);return n}var a=n(226);e.exports=r},function(e,t,n){function r(e,t){for(var n=-1,r=e.length;++n<r&&a(t,e[n],0)>-1;);return n}var a=n(226);e.exports=r},function(e,t,n){function r(e){return i(e)?o(e):a(e)}var a=n(1117),i=n(913),o=n(1118);e.exports=r},function(e,t){function n(e){return e.split("")}e.exports=n},function(e,t){function n(e){return e.match(d)||[]}var r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\\ud83c[\\udffb-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",c="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",i,o].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*",u="[\\ufe0e\\ufe0f]?"+s+c,l="(?:"+["[^\\ud800-\\udfff]"+r+"?",r,i,o,"[\\ud800-\\udfff]"].join("|")+")",d=RegExp(a+"(?="+a+")|"+l+u,"g");e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Monitor=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(15),v=r(g),y=n(25),A=r(y),E=n(52),w=n(30),k=n(40),T=r(k),L=n(36),S=r(L);t.Monitor=(0,w.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.trackConfigureClick=function(){v.default.tracks.recordJetpackClick("configure-monitor")},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.getOptionValue("monitor"),t=this.props.isUnavailableInDevMode("monitor");return M.default.createElement(T.default,(0,i.default)({},this.props,{hideButton:!0,module:"monitor",header:(0,b.translate)("Downtime monitoring",{context:"Settings header"})}),M.default.createElement(S.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("monitor"),support:{text:(0,b.translate)("Keep tabs on your site and receive alerts the moment downtime is detected."),link:"https://jetpack.com/support/monitor/"}},M.default.createElement(E.ModuleToggle,{slug:"monitor",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("monitor"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Monitor your site's downtime")))),M.default.createElement(A.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:"https://wordpress.com/settings/security/"+this.props.siteRawUrl},(0,b.translate)("Configure your notification settings")))}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Protect=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(41),v=r(g),y=n(1121),A=r(y),E=n(44),w=r(E),k=n(516),T=r(k),L=n(14),S=r(L),C=n(15),O=r(C),z=n(71),N=n(52),D=n(30),P=n(40),x=r(P),j=n(36),R=r(j);t.Protect=(0,D.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.state={whitelist:r.props.getOptionValue("jetpack_protect_global_whitelist")?r.props.getOptionValue("jetpack_protect_global_whitelist").local:""},r.currentIpIsWhitelisted=function(){return!!(0,w.default)(r.state.whitelist,r.props.currentIp)},r.updateText=function(e){r.currentIpIsWhitelisted(),r.setState({whitelist:e.target.value}),r.props.onOptionChange(e)},r.addToWhitelist=function(){var e=r.state.whitelist+(0>=r.state.whitelist.length?"":"\n")+r.props.currentIp;r.props.updateFormStateOptionValue("jetpack_protect_global_whitelist",e),r.setState({whitelist:e}),O.default.tracks.recordJetpackClick({target:"add-to-whitelist",feature:"protect"})},r.trackOpenCard=function(){O.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"protect"})},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.getOptionValue("protect"),t=this.props.isUnavailableInDevMode("protect"),n=M.default.createElement(N.ModuleToggle,{slug:"protect",compact:!0,disabled:t,activated:e,toggling:this.props.isSavingAnyOption("protect"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("protect").description));return M.default.createElement(x.default,(0,i.default)({},this.props,{module:"protect",header:(0,b.translate)("Brute force attack protection",{context:"Settings header"}),saveDisabled:this.props.isSavingAnyOption("jetpack_protect_global_whitelist")}),M.default.createElement(T.default,{onOpen:this.trackOpenCard,header:n,className:(0,S.default)({"jp-foldable-settings-disable":t})},M.default.createElement(R.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("protect"),support:{text:(0,b.translate)("Protects your site from traditional and distributed brute force login attacks."),link:"https://jetpack.com/support/protect/"}},M.default.createElement(z.FormFieldset,null,this.props.currentIp&&M.default.createElement("div",null,M.default.createElement("div",{className:"jp-form-label-wide"},(0,b.translate)("Your current IP: %(ip)s",{args:{ip:this.props.currentIp}})),M.default.createElement(v.default,{disabled:!e||t||this.currentIpIsWhitelisted()||this.props.isSavingAnyOption(["protect","jetpack_protect_global_whitelist"]),onClick:this.addToWhitelist},(0,b.translate)("Add to whitelist"))),M.default.createElement(z.FormLabel,null,M.default.createElement(z.FormLegend,null,(0,b.translate)("Whitelisted IP addresses")),M.default.createElement(A.default,{disabled:!e||t||this.props.isSavingAnyOption(["protect","jetpack_protect_global_whitelist"]),name:"jetpack_protect_global_whitelist",placeholder:"Example: 12.12.12.1-12.12.12.100",onChange:this.updateText,value:this.state.whitelist})),M.default.createElement("span",{className:"jp-form-setting-explanation"},(0,b.translate)("You may whitelist an IP address or series of addresses preventing them from ever being blocked by Jetpack. IPv4 and IPv6 are acceptable. To specify a range, enter the low value and high value separated by a dash. Example: 12.12.12.1-12.12.12.100",{components:{br:M.default.createElement("br",null)}}))))))}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=n(14),b=n(116);n(1122);var g=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){return _.createElement("textarea",(0,i.default)({},b(this.props,"className"),{className:M(this.props.className,"dops-textarea")}),this.props.children)}}]),t}(_.Component);g.displayName="Textarea",t.default=g,e.exports=t.default},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SSO=void 0;var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(8),y=n(104),A=r(y),E=n(71),w=n(52),k=n(30),T=n(40),L=r(T),S=n(36),C=r(S);t.SSO=(0,k.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={jetpack_sso_match_by_email:r.props.getOptionValue("jetpack_sso_match_by_email","sso"),jetpack_sso_require_two_step:r.props.getOptionValue("jetpack_sso_require_two_step","sso")},r.handleTwoStepToggleChange=function(){r.updateOptions("jetpack_sso_require_two_step")},r.handleMatchByEmailToggleChange=function(){r.updateOptions("jetpack_sso_match_by_email")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("sso",e))},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this.props.getOptionValue("sso"),t=this.props.isUnavailableInDevMode("sso");return g.default.createElement(L.default,(0,i.default)({},this.props,{hideButton:!0,module:"sso",header:(0,v.translate)("WordPress.com log in",{context:"Settings header"})}),g.default.createElement(C.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("sso"),support:{text:(0,v.translate)("Allows registered users to log in to your site with their WordPress.com accounts."),link:"https://jetpack.com/support/sso/"}},g.default.createElement(w.ModuleToggle,{slug:"sso",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("sso"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("sso").description)),g.default.createElement(E.FormFieldset,null,g.default.createElement(A.default,{checked:this.state.jetpack_sso_match_by_email,disabled:!e||t||this.props.isSavingAnyOption(["sso","jetpack_sso_match_by_email"]),onChange:this.handleMatchByEmailToggleChange},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Match accounts using email addresses"))),g.default.createElement(A.default,{checked:this.state.jetpack_sso_require_two_step,disabled:!e||t||this.props.isSavingAnyOption(["sso","jetpack_sso_require_two_step"]),onChange:this.handleTwoStepToggleChange},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Require accounts to use WordPress.com Two-Step Authentication"))))))}}]),t}(b.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Traffic=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(23),v=n(103),y=n(21),A=n(74),E=n(211),w=r(E),k=n(1125),T=n(1126),L=n(1127),S=n(1128),C=n(1129),O=n(1130),z=r(O),N=n(1131),D=n(1132),P=r(D),x=n(28),j=t.Traffic=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e={settings:this.props.settings,siteRawUrl:this.props.siteRawUrl,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode,getModuleOverride:this.props.getModuleOverride},t=this.props.isModuleFound("seo-tools"),n=this.props.isModuleFound("wordads"),r=this.props.isModuleFound("stats"),a=this.props.isModuleFound("related-posts"),o=this.props.isModuleFound("verification-tools"),s=this.props.isModuleFound("sitemaps"),c=this.props.isModuleFound("search"),u=this.props.isModuleFound("google-analytics");return(this.props.searchTerm||this.props.active)&&(t||n||r||a||o||s||u||c)?M.default.createElement("div",null,M.default.createElement(w.default,null),r&&M.default.createElement(S.SiteStats,e),c&&M.default.createElement(z.default,e),n&&M.default.createElement(L.Ads,(0,i.default)({},e,{configureUrl:"https://wordpress.com/ads/earnings/"+this.props.siteRawUrl})),a&&M.default.createElement(C.RelatedPosts,(0,i.default)({},e,{configureUrl:this.props.siteAdminUrl+"customize.php?autofocus[section]=jetpack_relatedposts&return="+encodeURIComponent(this.props.siteAdminUrl+"admin.php?page=jetpack#/traffic")+"&url="+encodeURIComponent(this.props.lastPostUrl)})),t&&M.default.createElement(k.SEO,(0,i.default)({},e,{configureUrl:"https://wordpress.com/settings/traffic/"+this.props.siteRawUrl+"#seo"})),u&&M.default.createElement(T.GoogleAnalytics,(0,i.default)({},e,{configureUrl:"https://wordpress.com/settings/traffic/"+this.props.siteRawUrl+"#analytics"})),s&&M.default.createElement(P.default,e),o&&M.default.createElement(N.VerificationServices,e)):null}}]),t}(M.default.Component);j.displayName="TrafficSettings",t.default=(0,b.connect)(function(e){return{module:function(t){return(0,g.getModule)(e,t)},settings:(0,v.getSettings)(e),isDevMode:(0,y.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,y.isUnavailableInDevMode)(e,t)},isModuleFound:function(t){return(0,A.isModuleFound)(e,t)},lastPostUrl:(0,x.getLastPostUrl)(e),getModuleOverride:function(t){return(0,g.getModuleOverride)(e,t)}}})(j)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SEO=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(15),A=r(y),E=n(47),w=n(30),k=n(40),T=r(k),L=n(36),S=r(L),C=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.trackConfigureClick=function(){A.default.tracks.recordJetpackClick("configure-seo")},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){return M.default.createElement(T.default,(0,i.default)({},this.props,{header:(0,b.translate)("Search engine optimization",{context:"Settings header"}),feature:E.FEATURE_SEO_TOOLS_JETPACK,hideButton:!0}),M.default.createElement(S.default,{disableInDevMode:!0,module:{module:"seo-tools"},support:{text:(0,b.translate)("Allows you to optimize your site and its content for better results in search engines."),link:"https://jetpack.com/support/seo-tools/"}},M.default.createElement("span",null,(0,b.translate)("You can tweak these settings if you'd like more advanced control. Read more about what you can do to {{a}}optimize your site's SEO{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://jetpack.com/support/seo-tools/"})}}))),!this.props.isUnavailableInDevMode("seo-tools")&&M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},(0,b.translate)("Configure your SEO settings")))}}]),t}(M.default.Component);t.SEO=(0,w.ModuleSettingsForm)(C)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(15),A=r(y),E=n(47),w=n(30),k=n(40),T=r(k),L=n(36),S=r(L);t.GoogleAnalytics=(0,w.ModuleSettingsForm)(function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"trackConfigureClick",value:function(){A.default.tracks.recordJetpackClick("configure-ga")}},{key:"render",value:function(){return M.default.createElement(T.default,(0,i.default)({},this.props,{header:(0,b.translate)("Google Analytics",{context:"Settings header"}),feature:E.FEATURE_GOOGLE_ANALYTICS_JETPACK,hideButton:!0}),M.default.createElement(S.default,{disableInDevMode:!0,module:{module:"google-analytics"},support:{text:(0,b.translate)("Integrates your WordPress site with Google Analytics, a platform that offers insights into your traffic, visitors, and conversions."),link:"https://jetpack.com/support/google-analytics/"}},M.default.createElement("p",null,(0,b.translate)("Google Analytics is a free service that complements our {{a}}built-in stats{{/a}} with different insights into your traffic. WordPress.com stats and Google Analytics use different methods to identify and track activity on your site, so they will normally show slightly different totals for your visits, views, etc.",{components:{a:M.default.createElement("a",{href:"https://wordpress.com/stats/day/"+this.props.siteRawUrl})}}))),!this.props.isUnavailableInDevMode("google-analytics")&&M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},(0,b.translate)("Configure your Google Analytics settings")))}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Ads=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(104),A=r(y),E=n(15),w=r(E),k=n(47),T=n(71),L=n(30),S=n(52),C=n(40),O=r(C),z=n(36),N=r(z);t.Ads=(0,L.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.updateOptions=function(e){r.props.updateFormStateModuleOption("wordads",e)},r.trackConfigureClick=function(){w.default.tracks.recordJetpackClick("view-earnings")},r.trackConfigureWidgetClick=function(){w.default.tracks.recordJetpackClick("place_ad_widget")},r.handleChange=function(e){return function(){return r.updateOptions(e)}},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.getOptionValue("wordads"),t=this.props.isUnavailableInDevMode("wordads"),n=this.props.getOptionValue("enable_header_ad","wordads"),r=this.props.getOptionValue("wordads_second_belowpost","wordads"),a=this.props.getOptionValue("wordads_display_front_page","wordads"),o=this.props.getOptionValue("wordads_display_post","wordads"),s=this.props.getOptionValue("wordads_display_page","wordads"),c=this.props.getOptionValue("wordads_display_archive","wordads");return M.default.createElement(O.default,(0,i.default)({},this.props,{header:(0,b.translate)("Ads",{context:"Ads header"}),feature:k.FEATURE_WORDADS_JETPACK,hideButton:!0}),M.default.createElement(N.default,{disableInDevMode:!0,hasChild:!0,module:{module:"wordads"},support:{text:(0,b.translate)("Displays high-quality ads on your site that allow you to earn income."),link:"https://jetpack.com/support/ads/"}},M.default.createElement("p",null,(0,b.translate)("Show ads on the first article on your home page or at the end of every page and post. Place additional ads at the top of your site and to any widget area to increase your earnings."),M.default.createElement("br",null),M.default.createElement("small",{className:"jp-form-setting-explanation"},(0,b.translate)("By activating ads, you agree to the Automattic Ads {{link}}Terms of Service{{/link}}.",{components:{link:M.default.createElement("a",{href:"https://wordpress.com/automattic-ads-tos/",target:"_blank",rel:"noopener noreferrer",onClick:this.trackConfigureWidgetClick})}}))),M.default.createElement(S.ModuleToggle,{slug:"wordads",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("wordads"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Enable ads and display an ad below each post"))),M.default.createElement(T.FormFieldset,null,M.default.createElement(T.FormLegend,null,(0,b.translate)("Display ads below posts on")),M.default.createElement(A.default,{checked:a,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_front_page"]),onChange:this.handleChange("wordads_display_front_page")},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Front page"))),M.default.createElement(A.default,{checked:o,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_post"]),onChange:this.handleChange("wordads_display_post")},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Posts"))),M.default.createElement(A.default,{checked:s,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_page"]),onChange:this.handleChange("wordads_display_page")},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Pages"))),M.default.createElement(A.default,{checked:c,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_archive"]),onChange:this.handleChange("wordads_display_archive")},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Archives")))),M.default.createElement(T.FormFieldset,null,M.default.createElement(T.FormLegend,null,(0,b.translate)("Additional ad placements")),M.default.createElement(A.default,{checked:n,disabled:!e||t||this.props.isSavingAnyOption(["wordads","enable_header_ad"]),onChange:this.handleChange("enable_header_ad")},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Top of each page"))),M.default.createElement(A.default,{checked:r,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_second_belowpost"]),onChange:this.handleChange("wordads_second_belowpost")},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Second ad below post"))),M.default.createElement("small",{className:"jp-form-setting-explanation"},e&&(0,b.translate)("You can place additional ads using the Ad widget. {{link}}Try it out!{{/link}}",{components:{link:M.default.createElement("a",{className:"jp-module-settings__external-link",href:"customize.php?autofocus[panel]=widgets"})}})))),!t&&e&&M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},(0,b.translate)("View your earnings")))}}]),t}(M.default.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SiteStats=void 0;var a=n(11),i=r(a),o=n(113),s=r(o),c=n(51),u=r(c),l=n(2),d=r(l),f=n(3),p=r(f),h=n(6),m=r(h),_=n(4),M=r(_),b=n(5),g=r(b),v=n(1),y=r(v),A=n(8),E=n(104),w=r(E),k=n(516),T=r(k),L=n(41),S=r(L),C=n(25),O=r(C),z=n(44),N=r(z),D=n(459),P=r(D),x=n(14),j=r(x),R=n(80),Y=n(15),I=r(Y),q=n(71),B=n(30),W=n(36),U=r(W),H=n(40),F=r(H),X=n(515),V=r(X),K=function(e){function t(e){(0,p.default)(this,t);var n=(0,M.default)(this,(t.__proto__||(0,d.default)(t)).call(this,e));n.updateOptions=function(e,t){var r=n.props.getOptionValue(t,"stats"),a=!1;n.state[t+"_"+e]?(0,N.default)(r,e)&&(r=(0,P.default)(r,function(t){return t!==e})):(0,N.default)(r,e)||(r.push(e),a=!0),n.setState((0,u.default)({},t+"_"+e,!n.state[t+"_"+e]),function(){n.props.updateOptions((0,u.default)({},t,r))}),I.default.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:"stats",setting:t,role:e,toggled:a?"on":"off"})},n.activateStats=function(){n.props.updateOptions({stats:!0})},n.trackOpenCard=function(){I.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"stats"})},n.handleRoleToggleChange=function(e,t){return function(){return n.updateOptions(e,t)}};var r=e.getOptionValue("count_roles","stats"),a=e.getOptionValue("roles","stats");return n.state={count_roles:r,roles:a,count_roles_administrator:(0,N.default)(r,"administrator",!1),count_roles_editor:(0,N.default)(r,"editor",!1),count_roles_author:(0,N.default)(r,"author",!1),count_roles_contributor:(0,N.default)(r,"contributor",!1),count_roles_subscriber:(0,N.default)(r,"subscriber",!1),roles_administrator:!0,roles_editor:(0,N.default)(a,"editor",!1),roles_author:(0,N.default)(a,"author",!1),roles_contributor:(0,N.default)(a,"contributor",!1),roles_subscriber:(0,N.default)(a,"subscriber",!1)},n}return(0,g.default)(t,e),(0,m.default)(t,[{key:"handleStatsOptionToggle",value:function(e){var t=this;return function(){return t.props.updateFormStateModuleOption("stats",e)}}},{key:"render",value:function(){var e=this,t=this.props.getModule("stats"),n=this.props.getOptionValue("stats"),r=this.props.isUnavailableInDevMode("stats"),a=this.props.getSiteRoles();return"inactive"===this.props.getModuleOverride("stats")?y.default.createElement(V.default,{moduleName:t.name}):n?y.default.createElement(F.default,(0,i.default)({},this.props,{header:(0,A.translate)("Site stats",{context:"Settings header"}),hideButton:!0}),y.default.createElement(T.default,{onOpen:this.trackOpenCard,header:(0,A.translate)("Collecting valuable traffic stats and insights"),clickableHeader:!0,className:(0,j.default)("jp-foldable-settings-standalone",{"jp-foldable-settings-disable":r})},y.default.createElement(U.default,{disableInDevMode:!0,module:t,support:{text:(0,A.translate)("Displays information on your site activity, including visitors and popular posts or pages."),link:"https://jetpack.com/support/wordpress-com-stats/"}},y.default.createElement(q.FormFieldset,null,y.default.createElement(w.default,{checked:!!this.props.getOptionValue("admin_bar"),disabled:!n||r,toggling:this.props.isSavingAnyOption(["stats","admin_bar"]),onChange:this.handleStatsOptionToggle("admin_bar")},y.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,A.translate)("Put a chart showing 48 hours of views in the admin bar"))),y.default.createElement(w.default,{checked:!!this.props.getOptionValue("hide_smile"),disabled:!n||r,toggling:this.props.isSavingAnyOption(["stats","hide_smile"]),onChange:this.handleStatsOptionToggle("hide_smile")},y.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,A.translate)("Hide the stats smiley face image")),y.default.createElement("span",{className:"jp-form-setting-explanation"},(0,A.translate)("The image helps collect stats, but should work when hidden.")))),y.default.createElement(q.FormFieldset,null,y.default.createElement(q.FormLegend,null,(0,A.translate)("Count logged in page views from")),(0,s.default)(a).map(function(t){return y.default.createElement(w.default,{checked:e.state["count_roles_"+t],disabled:!n||r||e.props.isSavingAnyOption(["stats","count_roles"]),onChange:e.handleRoleToggleChange(t,"count_roles"),key:"count_roles-"+t},y.default.createElement("span",{className:"jp-form-toggle-explanation"},a[t].name))})),y.default.createElement(q.FormFieldset,null,y.default.createElement(q.FormLegend,null,(0,A.translate)("Allow stats reports to be viewed by")),y.default.createElement(w.default,{checked:!0,disabled:!0},y.default.createElement("span",{className:"jp-form-toggle-explanation"},a.administrator.name)),(0,s.default)(a).map(function(t){return"administrator"!==t&&y.default.createElement(w.default,{checked:e.state["roles_"+t],disabled:!n||r||e.props.isSavingAnyOption(["stats","roles"]),onChange:e.handleRoleToggleChange(t,"roles"),key:"roles-"+t},y.default.createElement("span",{className:"jp-form-toggle-explanation"},a[t].name))}))))):y.default.createElement(O.default,{className:"jp-at-a-glance__stats-card "+(this.props.isDevMode?"is-inactive":"")},y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive"},y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},y.default.createElement("img",{src:R.imagePath+"stats.svg",width:"60",height:"60",alt:(0,A.translate)("Jetpack Stats Icon"),className:"jp-at-a-glance__stats-icon"})),y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isDevMode?(0,A.translate)("Unavailable in Dev Mode"):(0,A.translate)("{{a}}Activate Site Stats{{/a}} to see detailed stats, likes, followers, subscribers, and more! {{a1}}Learn More{{/a1}}",{components:{a:y.default.createElement("a",{href:"javascript:void(0)",onClick:this.activateStats}),a1:y.default.createElement("a",{
43
- href:"https://jetpack.com/support/wordpress-com-stats/",target:"_blank",rel:"noopener noreferrer"})}})),!this.props.isDevMode&&y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},y.default.createElement(S.default,{onClick:this.activateStats,primary:!0},(0,A.translate)("Activate Site Stats")))))}}]),t}(y.default.Component);t.SiteStats=(0,B.ModuleSettingsForm)(K)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.RelatedPosts=void 0;var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(8),y=n(474),A=r(y),E=n(25),w=r(E),k=n(104),T=r(k),L=n(71),S=n(52),C=n(30),O=n(40),z=r(O),N=n(36),D=r(N),P=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={show_headline:r.props.getOptionValue("show_headline","related-posts"),show_thumbnails:r.props.getOptionValue("show_thumbnails","related-posts")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("related-posts",e))},r.handleShowHeadlineToggleChange=function(){r.updateOptions("show_headline")},r.handleShowThumbnailsToggleChange=function(){r.updateOptions("show_thumbnails")},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this,t=this.props.getOptionValue("related-posts"),n=this.props.isUnavailableInDevMode("related-posts");return g.default.createElement(z.default,(0,i.default)({},this.props,{hideButton:!0,module:"related-posts"}),g.default.createElement(D.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("related-posts"),support:{text:(0,v.translate)("Automatically displays similar content at the end of each post."),link:"https://jetpack.com/support/related-posts/"}},g.default.createElement(S.ModuleToggle,{slug:"related-posts",disabled:n,activated:t,toggling:this.props.isSavingAnyOption("related-posts"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Show related content after posts"))),g.default.createElement(L.FormFieldset,null,g.default.createElement(T.default,{checked:this.state.show_headline,disabled:!t||n||this.props.isSavingAnyOption(["related-posts","show_headline"]),onChange:this.handleShowHeadlineToggleChange},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)('Show a "Related" header to more clearly separate the related section from posts'))),g.default.createElement(T.default,{checked:this.state.show_thumbnails,disabled:!t||n||this.props.isSavingAnyOption(["related-posts","show_thumbnails"]),onChange:this.handleShowThumbnailsToggleChange},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Use a large and visually striking layout"))),(0,v.translate)("{{span}}You can now also configure related posts in the Customizer. {{ExternalLink}}Try it out!{{/ExternalLink}}{{/span}}",{components:{span:g.default.createElement("span",{className:"jp-form-setting-explanation"}),ExternalLink:g.default.createElement(A.default,{className:"jp-module-settings__external-link",href:this.props.configureUrl})}}),g.default.createElement(L.FormLabel,{className:"jp-form-label-wide"},(0,v.translate)("Preview",{context:"A header for a preview area in the configuration screen."})),g.default.createElement(w.default,{className:"jp-related-posts-preview"},this.state.show_headline&&g.default.createElement("div",{className:"jp-related-posts-preview__title"},(0,v.translate)("Related")),[{url:"1-wpios-ipad-3-1-viewsite.png",text:(0,v.translate)("Big iPhone/iPad Update Now Available"),context:(0,v.translate)('In "Mobile"',{comment:"It refers to the category where a post was found. Used in an example preview."})},{url:"wordpress-com-news-wordpress-for-android-ui-update2.jpg",text:(0,v.translate)("The WordPress for Android App Gets a Big Facelift"),context:(0,v.translate)('In "Mobile"',{comment:"It refers to the category where a post was found. Used in an example preview."})},{url:"videopresswedding.jpg",text:(0,v.translate)("Upgrade Focus: VideoPress For Weddings"),context:(0,v.translate)('In "Upgrade"',{comment:"It refers to the category where a post was found. Used in an example preview."})}].map(function(t,n){return g.default.createElement("div",{key:"preview_"+n,className:"jp-related-posts-preview__item"},e.state.show_thumbnails&&g.default.createElement("img",{src:"https://jetpackme.files.wordpress.com/2014/08/"+t.url+"?w=350&h=200&crop=1",alt:t.text}),g.default.createElement("h4",{className:"jp-related-posts-preview__post-title"},g.default.createElement("a",{href:"#/traffic"},t.text)),g.default.createElement("p",{className:"jp-related-posts-preview__post-context"},t.context))})))))}}]),t}(g.default.Component);t.RelatedPosts=(0,C.ModuleSettingsForm)(P)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(25),y=r(v),A=n(47),E=n(30),w=n(52),k=n(40),T=r(k),L=n(36),S=r(L),C=n(28),O=n(61),z=n(71),N=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){return M.default.createElement(T.default,(0,i.default)({},this.props,{module:"search",feature:A.FEATURE_SEARCH_JETPACK,hideButton:!0}),M.default.createElement(S.default,{hasChild:!0,module:{module:"search"},support:{text:(0,g.translate)("Replaces the default WordPress search with a faster, filterable search experience."),link:"https://jetpack.com/support/search"}},M.default.createElement(w.ModuleToggle,{slug:"search",compact:!0,activated:this.props.getOptionValue("search"),toggling:this.props.isSavingAnyOption("search"),toggleModule:this.props.toggleModuleNow},(0,g.translate)("Replace WordPress built-in search with an improved search experience")),this.props.getOptionValue("search")&&M.default.createElement(z.FormFieldset,null,M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,g.translate)("Add the Jetpack search widget to your sidebar to configure advanced search filters.")))),this.props.getOptionValue("search")&&M.default.createElement(y.default,{compact:!0,className:"jp-settings-card__configure-link",href:"customize.php?autofocus[panel]=widgets"},(0,g.translate)("Add Jetpack Search Widget")))}}]),t}(M.default.Component);t.default=(0,b.connect)(function(e){return{siteAdminUrl:(0,C.getSiteAdminUrl)(e),sitePlan:(0,O.getSitePlan)(e),fetchingSiteData:(0,O.isFetchingSiteData)(e)}})((0,E.ModuleSettingsForm)(N)),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.VerificationServices=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(508),v=r(g),y=n(474),A=r(y),E=n(71),w=n(30),k=n(40),T=r(k),L=n(36),S=r(L),C=n(473),O=r(C),z=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.activateVerificationTools=function(){return r.props.updateOptions({"verification-tools":!0})},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this,t=this.props.getModule("verification-tools");return"inactive"===this.props.getModuleOverride("google-analytics")?M.default.createElement(O.default,{title:t.name,icon:"cog",description:(0,b.translate)("%(moduleName)s has been disabled by a site administrator.",{args:{moduleName:t.name}})}):this.props.getOptionValue("verification-tools")?M.default.createElement(T.default,(0,i.default)({},this.props,{module:"verification-tools",saveDisabled:this.props.isSavingAnyOption(["google","bing","pinterest","yandex"])}),M.default.createElement(S.default,{module:t,support:{text:(0,b.translate)("Provides the necessary hidden tags needed to verify your WordPress site with various services."),link:"https://jetpack.com/support/site-verification-tools"}},M.default.createElement("p",null,(0,b.translate)("Note that {{b}}verifying your site with these services is not necessary{{/b}} in order for your site to be indexed by search engines. To use these advanced search engine tools and verify your site with a service, paste the HTML Tag code below. Read the {{support}}full instructions{{/support}} if you are having trouble. Supported verification services: {{google}}Google Search Console{{/google}}, {{bing}}Bing Webmaster Center{{/bing}}, {{pinterest}}Pinterest Site Verification{{/pinterest}}, and {{yandex}}Yandex.Webmaster{{/yandex}}.",{components:{b:M.default.createElement("strong",null),support:M.default.createElement("a",{href:"https://jetpack.com/support/site-verification-tools/"}),google:M.default.createElement(A.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://www.google.com/webmasters/tools/"}),bing:M.default.createElement(A.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://www.bing.com/webmaster/"}),pinterest:M.default.createElement(A.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://pinterest.com/website/verify/"}),yandex:M.default.createElement(A.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://webmaster.yandex.com/sites/"})}})),M.default.createElement(E.FormFieldset,null,[{id:"google",label:(0,b.translate)("Google"),placeholder:'<meta name="google-site-verification" content="1234" />'},{id:"bing",label:(0,b.translate)("Bing"),placeholder:'<meta name="msvalidate.01" content="1234" />'},{id:"pinterest",label:(0,b.translate)("Pinterest"),placeholder:'<meta name="p:domain_verify" content="1234" />'},{id:"yandex",label:(0,b.translate)("Yandex"),placeholder:'<meta name="yandex-verification" content="1234" />'}].map(function(t){return M.default.createElement(E.FormLabel,{className:"jp-form-input-with-prefix",key:"verification_service_"+t.id},M.default.createElement("span",null,t.label),M.default.createElement(v.default,{name:t.id,value:e.props.getOptionValue(t.id),placeholder:t.placeholder,className:"code",disabled:e.props.isUpdating(t.id),onChange:e.props.onOptionChange}))})))):M.default.createElement(O.default,{callToAction:(0,b.translate)("Activate"),title:t.name,icon:"cog",description:t.long_description,onClick:this.activateVerificationTools})}}]),t}(M.default.Component);t.VerificationServices=(0,w.ModuleSettingsForm)(z)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Sitemaps=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(474),y=r(v),A=n(27),E=r(A),w=n(15),k=r(w),T=n(71),L=n(30),S=n(52),C=n(40),O=r(C),z=n(36),N=r(z),D=n(28),P=t.Sitemaps=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.trackSitemapUrl=function(){k.default.tracks.recordJetpackClick("sitemap-url-link")},r.trackSitemapNewsUrl=function(){k.default.tracks.recordJetpackClick("sitemap-news-url-link")},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.getModule("sitemaps"),t=(0,E.default)(e,["extra","sitemap_url"],""),n=(0,E.default)(e,["extra","news_sitemap_url"],"");return M.default.createElement(O.default,(0,i.default)({},this.props,{module:"sitemaps",hideButton:!0}),M.default.createElement(N.default,{hasChild:!0,module:{module:"sitemaps"},support:{text:(0,g.translate)("Automatically generates the files required for search engines to index your site."),link:"https://jetpack.com/support/sitemaps/"}},M.default.createElement(S.ModuleToggle,{slug:"sitemaps",compact:!0,activated:this.props.getOptionValue("sitemaps"),toggling:this.props.isSavingAnyOption("sitemaps"),toggleModule:this.props.toggleModuleNow},(0,g.translate)("Generate XML sitemaps")),this.props.isSiteVisibleToSearchEngines?this.props.getOptionValue("sitemaps")&&M.default.createElement(T.FormFieldset,null,M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,g.translate)("Your sitemap is automatically sent to all major search engines for indexing.")),M.default.createElement("p",null,M.default.createElement(y.default,{onClick:this.trackSitemapUrl,icon:!0,target:"_blank",rel:"noopener noreferrer",href:t},t),M.default.createElement("br",null),M.default.createElement(y.default,{onClick:this.trackSitemapNewsUrl,icon:!0,target:"_blank",rel:"noopener noreferrer",href:n},n))):M.default.createElement(T.FormFieldset,null,M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,g.translate)('Your site is not currently accessible to search engines. You might have "Search Engine Visibility" disabled in your {{a}}Reading Settings{{/a}}.',{components:{a:M.default.createElement("a",{href:this.props.siteAdminUrl+"options-reading.php"})}})))))}}]),t}(M.default.Component);t.default=(0,b.connect)(function(e){return{isSiteVisibleToSearchEngines:(0,D.isSiteVisibleToSearchEngines)(e),siteAdminUrl:(0,D.getSiteAdminUrl)(e)}})((0,L.ModuleSettingsForm)(P))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Writing=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(25),y=r(v),A=n(23),E=n(103),w=n(28),k=n(21),T=n(74),L=n(211),S=r(L),C=n(1134),O=r(C),z=n(1137),N=r(z),D=n(1138),P=r(D),x=n(1139),j=r(x),R=n(1140),Y=r(R),I=n(1152),q=n(1153),B=r(q),W=t.Writing=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode,isLinked:this.props.isLinked,getModuleOverride:this.props.getModuleOverride},t=["masterbar","markdown","after-the-deadline","custom-content-types","photon","carousel","post-by-email","infinite-scroll","minileven","videopress","lazy-images"].some(this.props.isModuleFound);if(!this.props.searchTerm&&!this.props.active)return null;if(!t)return null;var n=this.props.userCanManageModules||this.props.userCanEditPosts&&this.props.isModuleActivated("after-the-deadline"),r=this.props.userCanManageModules||this.props.userCanEditPosts&&this.props.isModuleActivated("post-by-email");return M.default.createElement("div",null,M.default.createElement(S.default,null),this.props.isModuleFound("masterbar")&&!this.props.masterbarIsAlwaysActive&&M.default.createElement(I.Masterbar,(0,i.default)({connectUrl:this.props.connectUrl},e)),n&&M.default.createElement(O.default,(0,i.default)({},e,{userCanManageModules:this.props.userCanManageModules})),M.default.createElement(N.default,e),M.default.createElement(B.default,e),this.props.isModuleFound("custom-content-types")&&M.default.createElement(P.default,e),M.default.createElement(j.default,e),this.props.isModuleFound("post-by-email")&&r&&M.default.createElement(Y.default,(0,i.default)({},e,{connectUrl:this.props.connectUrl,isLinked:this.props.isLinked,userCanManageModules:this.props.userCanManageModules})),!n&&!r&&M.default.createElement(y.default,null,(0,g.translate)("Writing tools available to you will be shown here when an administrator enables them.")))}}]),t}(M.default.Component);W.displayName="WritingSettings",t.default=(0,b.connect)(function(e){return{module:function(t){return(0,A.getModule)(e,t)},settings:(0,E.getSettings)(e),masterbarIsAlwaysActive:(0,w.isAtomicSite)(e),isDevMode:(0,k.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,k.isUnavailableInDevMode)(e,t)},userCanEditPosts:(0,w.userCanEditPosts)(e),isModuleActivated:function(t){return(0,A.isModuleActivated)(e,t)},isLinked:(0,k.isCurrentUserLinked)(e),userCanManageModules:(0,w.userCanManageModules)(e),isModuleFound:function(t){return(0,T.isModuleFound)(e,t)},connectUrl:(0,k.getConnectUrl)(e),getModuleOverride:function(t){return(0,A.getModuleOverride)(e,t)}}})(W)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Composing=void 0;var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(10),y=n(8),A=n(104),E=r(A),w=n(516),k=r(w),T=n(14),L=r(T),S=n(15),C=r(S),O=n(71),z=n(74),N=n(52),D=n(30),P=n(23),x=n(1135),j=r(x),R=n(40),Y=r(R),I=n(36),q=r(I),B=t.Composing=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={onpublish:r.props.getOptionValue("onpublish","after-the-deadline"),onupdate:r.props.getOptionValue("onupdate","after-the-deadline"),guess_lang:r.props.getOptionValue("guess_lang","after-the-deadline"),"Bias Language":r.props.getOptionValue("Bias Language","after-the-deadline"),Cliches:r.props.getOptionValue("Cliches","after-the-deadline"),"Complex Expression":r.props.getOptionValue("Complex Expression","after-the-deadline"),"Diacritical Marks":r.props.getOptionValue("Diacritical Marks","after-the-deadline"),"Double Negative":r.props.getOptionValue("Double Negative","after-the-deadline"),"Hidden Verbs":r.props.getOptionValue("Hidden Verbs","after-the-deadline"),"Jargon Language":r.props.getOptionValue("Jargon Language","after-the-deadline"),"Passive voice":r.props.getOptionValue("Passive voice","after-the-deadline"),"Phrases to Avoid":r.props.getOptionValue("Phrases to Avoid","after-the-deadline"),"Redundant Expression":r.props.getOptionValue("Redundant Expression","after-the-deadline")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("after-the-deadline",e))},r.handleToggleChange=function(e){return function(){return r.updateOptions(e)}},r.getToggle=function(e,t){return g.default.createElement(E.default,{checked:r.state[e],disabled:!r.props.getOptionValue("after-the-deadline")||r.props.isUnavailableInDevMode("after-the-deadline")||r.props.isSavingAnyOption(["after-the-deadline",e]),onChange:r.handleToggleChange(e)},g.default.createElement("span",{className:"jp-form-toggle-explanation"},t))},r.getAtdSettings=function(){var e=r.props.getOptionValue("ignored_phrases");return g.default.createElement(q.default,{hasChild:!0,disableInDevMode:!0,module:r.props.getModule("after-the-deadline"),support:{text:(0,y.translate)("Checks your content for correct grammar and spelling, misused words, and style while you write."),link:"https://jetpack.com/support/spelling-and-grammar/"}},g.default.createElement(O.FormFieldset,null,g.default.createElement(O.FormLegend,null," ",(0,y.translate)("Proofreading")," "),g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,y.translate)("Automatically proofread content when: ")),r.getToggle("onpublish",(0,y.translate)("A post or page is first published")),r.getToggle("onupdate",(0,y.translate)("A post or page is updated"))),g.default.createElement(O.FormFieldset,null,g.default.createElement(O.FormLegend,null," ",(0,y.translate)("Automatic Language Detection")),g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,y.translate)("The proofreader supports English, French, German, Portuguese and Spanish.")),r.getToggle("guess_lang",(0,y.translate)("Use automatically detected language to proofread posts and pages"))),g.default.createElement(O.FormFieldset,null,g.default.createElement(O.FormLegend,null," ",(0,y.translate)("English Options")," "),g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,y.translate)("Enable proofreading for the following grammar and style rules: ")),r.getToggle("Bias Language",(0,y.translate)("Bias Language")),r.getToggle("Cliches",(0,y.translate)("Clichés")),r.getToggle("Complex Expression",(0,y.translate)("Complex Phrases")),r.getToggle("Diacritical Marks",(0,y.translate)("Diacritical Marks")),r.getToggle("Double Negative",(0,y.translate)("Double Negatives")),r.getToggle("Hidden Verbs",(0,y.translate)("Hidden Verbs")),r.getToggle("Jargon Language",(0,y.translate)("Jargon")),r.getToggle("Passive voice",(0,y.translate)("Passive Voice")),r.getToggle("Phrases to Avoid",(0,y.translate)("Phrases to Avoid")),r.getToggle("Redundant Expression",(0,y.translate)("Redundant Phrases"))),g.default.createElement(O.FormFieldset,null,g.default.createElement(O.FormLegend,null,(0,y.translate)("Ignored Phrases")),g.default.createElement(j.default,{name:"ignored_phrases",disabled:!r.props.getOptionValue("after-the-deadline"),placeholder:(0,y.translate)("Add a phrase"),value:void 0!==e&&""!==e?e.split(","):[],onChange:r.props.onOptionChange}),g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,y.translate)("Confirm each new phrase you add by pressing enter."))))},r.updateFormStateByMarkdown=function(e){return r.props.getSettingCurrentValue("wpcom_publish_comments_with_markdown",e)?r.props.updateFormStateModuleOption(e,"wpcom_publish_posts_with_markdown"):r.props.updateFormStateModuleOption(e,"wpcom_publish_posts_with_markdown",!0)},r.trackOpenCard=function(){C.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"atd"})},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this.props.isModuleFound("after-the-deadline"),t=this.props.isModuleFound("markdown");if(!t&&!e)return null;var n=this.props.module("markdown"),r=this.props.module("after-the-deadline"),a=this.props.isUnavailableInDevMode("after-the-deadline"),o=g.default.createElement(q.default,{module:n,support:{text:(0,y.translate)("Allows you to compose content with links, lists, and other styles using the Markdown syntax."),link:"https://jetpack.com/support/markdown/"}},g.default.createElement(O.FormFieldset,null,g.default.createElement(N.ModuleToggle,{slug:"markdown",activated:!!this.props.getOptionValue("wpcom_publish_posts_with_markdown","markdown"),toggling:this.props.isSavingAnyOption(["markdown","wpcom_publish_posts_with_markdown"]),disabled:this.props.isSavingAnyOption(["markdown","wpcom_publish_posts_with_markdown"]),toggleModule:this.updateFormStateByMarkdown},g.default.createElement("span",{className:"jp-form-toggle-explanation"},n.description)))),s=g.default.createElement(k.default,{onOpen:this.trackOpenCard,className:(0,L.default)("jp-foldable-card__main-settings",{"jp-foldable-settings-disable":a}),header:this.props.userCanManageModules?g.default.createElement(N.ModuleToggle,{slug:"after-the-deadline",compact:!0,disabled:a,activated:this.props.getOptionValue("after-the-deadline"),toggling:this.props.isSavingAnyOption("after-the-deadline"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},r.description)):g.default.createElement("span",{className:"jp-form-toggle-explanation"},r.description)},this.getAtdSettings());return g.default.createElement(Y.default,(0,i.default)({},this.props,{header:(0,y.translate)("Composing",{context:"Settings header"}),hideButton:!e,module:"composing",saveDisabled:this.props.isSavingAnyOption("ignored_phrases")}),t&&o,e&&s)}}]),t}(g.default.Component);t.default=(0,v.connect)(function(e){return{module:function(t){return(0,P.getModule)(e,t)},isModuleFound:function(t){return(0,z.isModuleFound)(e,t)}}})((0,D.ModuleSettingsForm)(B))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(1136),M=r(_),b=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.state={tags:r.props.value||[]},r.handleChange=function(e){r.setState({tags:e}),r.props.onChange&&r.props.onChange({target:{name:r.props.name,value:e.join(",")}})},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.default.createElement(M.default,{disabled:this.props.disabled,inputProps:{placeholder:this.props.placeholder},onChange:this.handleChange,value:this.state.tags})}}]),t}(m.default.Component);t.default=b,e.exports=t.default},function(e,t,n){var r,a,i;!function(o,s){a=[e,t,n(1),n(7)],r=s,void 0!==(i="function"==typeof r?r.apply(t,a):r)&&(e.exports=i)}(0,function(e,t,n,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function l(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function d(e){return window.clipboardData?window.clipboardData.getData("Text"):e.clipboardData?e.clipboardData.getData("text/plain"):""}function f(e){var t=e.tag,n=e.key,r=e.disabled,a=e.onRemove,i=e.classNameRemove,o=e.getTagDisplayValue,s=u(e,["tag","key","disabled","onRemove","classNameRemove","getTagDisplayValue"]);return _.default.createElement("span",b({key:n},s),o(t),!r&&_.default.createElement("a",{className:i,onClick:function(e){return a(n)}}))}function p(e){var t=(e.addTag,u(e,["addTag"])),n=t.onChange,r=t.value,a=u(t,["onChange","value"]);return _.default.createElement("input",b({type:"text",onChange:n,value:r},a))}function h(e,t){return _.default.createElement("span",null,e,t)}function m(e){return e.split(" ").map(function(e){return e.trim()})}Object.defineProperty(t,"__esModule",{value:!0});var _=a(n),M=(a(r),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),b=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},g={className:"react-tagsinput-input",placeholder:"Add a tag"},v=function(e){function t(){o(this,t);var e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.state={tag:"",isFocused:!1},e.focus=e.focus.bind(e),e.blur=e.blur.bind(e),e}return c(t,e),M(t,[{key:"_getTagDisplayValue",value:function(e){var t=this.props.tagDisplayProp;return t?e[t]:e}},{key:"_makeTag",value:function(e){var t=this.props.tagDisplayProp;return t?i({},t,e):e}},{key:"_removeTag",value:function(e){var t=this.props.value.concat([]);if(e>-1&&e<t.length){var n=t.splice(e,1);this.props.onChange(t,n,[e])}}},{key:"_clearInput",value:function(){this.hasControlledInput()?this.props.onChangeInput(""):this.setState({tag:""})}},{key:"_tag",value:function(){return this.hasControlledInput()?this.props.inputValue:this.state.tag}},{key:"_addTags",value:function(e){var t=this,n=this.props,r=n.validationRegex,a=n.onChange,i=n.onValidationReject,o=n.onlyUnique,s=n.maxTags,c=n.value;o&&(e=l(e),e=e.filter(function(e){return c.every(function(n){return t._getTagDisplayValue(n)!==t._getTagDisplayValue(e)})}));var u=e.filter(function(e){return!r.test(t._getTagDisplayValue(e))});if(e=e.filter(function(e){return r.test(t._getTagDisplayValue(e))}),e=e.filter(function(e){var n=t._getTagDisplayValue(e);return"function"==typeof n.trim?n.trim().length>0:n}),s>=0){var d=Math.max(s-c.length,0);e=e.slice(0,d)}if(i&&u.length>0&&i(u),e.length>0){for(var f=c.concat(e),p=[],h=0;h<e.length;h++)p.push(c.length+h);return a(f,e,p),this._clearInput(),!0}return!(u.length>0)&&(this._clearInput(),!1)}},{key:"_shouldPreventDefaultEventOnAdd",value:function(e,t,n){return!!e||13===n&&(this.props.preventSubmit||!this.props.preventSubmit&&!t)}},{key:"focus",value:function(){this.input&&"function"==typeof this.input.focus&&this.input.focus(),this.handleOnFocus()}},{key:"blur",value:function(){this.input&&"function"==typeof this.input.blur&&this.input.blur(),this.handleOnBlur()}},{key:"accept",value:function(){var e=this._tag();return""!==e&&(e=this._makeTag(e),this._addTags([e]))}},{key:"addTag",value:function(e){return this._addTags([e])}},{key:"clearInput",value:function(){this._clearInput()}},{key:"handlePaste",value:function(e){var t=this,n=this.props,r=n.addOnPaste,a=n.pasteSplit;if(r){e.preventDefault();var i=d(e),o=a(i).map(function(e){return t._makeTag(e)});this._addTags(o)}}},{key:"handleKeyDown",value:function(e){if(!e.defaultPrevented){var t=this.props,n=t.value,r=t.removeKeys,a=t.addKeys,i=this._tag(),o=""===i,s=e.keyCode,c=e.key,u=-1!==a.indexOf(s)||-1!==a.indexOf(c),l=-1!==r.indexOf(s)||-1!==r.indexOf(c);if(u){var d=this.accept();this._shouldPreventDefaultEventOnAdd(d,o,s)&&e.preventDefault()}l&&n.length>0&&o&&(e.preventDefault(),this._removeTag(n.length-1))}}},{key:"handleClick",value:function(e){e.target===this.div&&this.focus()}},{key:"handleChange",value:function(e){var t=this.props.onChangeInput,n=this.props.inputProps.onChange,r=e.target.value;n&&n(e),this.hasControlledInput()?t(r):this.setState({tag:r})}},{key:"handleOnFocus",value:function(e){var t=this.props.inputProps.onFocus;t&&t(e),this.setState({isFocused:!0})}},{key:"handleOnBlur",value:function(e){var t=this.props.inputProps.onBlur;if(this.setState({isFocused:!1}),null!=e&&(t&&t(e),this.props.addOnBlur)){var n=this._makeTag(e.target.value);this._addTags([n])}}},{key:"handleRemove",value:function(e){this._removeTag(e)}},{key:"inputProps",value:function(){var e=this.props.inputProps,t=(e.onChange,e.onFocus,e.onBlur,u(e,["onChange","onFocus","onBlur"])),n=b({},g,t);return this.props.disabled&&(n.disabled=!0),n}},{key:"inputValue",value:function(e){return e.currentValue||e.inputValue||""}},{key:"hasControlledInput",value:function(){var e=this.props,t=e.inputValue;return"function"==typeof e.onChangeInput&&"string"==typeof t}},{key:"componentDidMount",value:function(){this.hasControlledInput()||this.setState({tag:this.inputValue(this.props)})}},{key:"componentWillReceiveProps",value:function(e){this.hasControlledInput()||this.inputValue(e)&&this.setState({tag:this.inputValue(e)})}},{key:"render",value:function(){var e=this,t=this.props,n=t.value,r=(t.onChange,t.tagProps),a=t.renderLayout,i=t.renderTag,o=t.renderInput,s=(t.addKeys,t.removeKeys,t.className),c=t.focusedClassName,l=(t.addOnBlur,t.addOnPaste,t.inputProps,t.pasteSplit,t.onlyUnique,t.maxTags,t.validationRegex,t.disabled);t.tagDisplayProp,t.inputValue,t.onChangeInput,
44
  u(t,["value","onChange","tagProps","renderLayout","renderTag","renderInput","addKeys","removeKeys","className","focusedClassName","addOnBlur","addOnPaste","inputProps","pasteSplit","onlyUnique","maxTags","validationRegex","disabled","tagDisplayProp","inputValue","onChangeInput"]);this.state.isFocused&&(s+=" "+c);var d=n.map(function(t,n){return i(b({key:n,tag:t,onRemove:e.handleRemove.bind(e),disabled:l,getTagDisplayValue:e._getTagDisplayValue.bind(e)},r))}),f=o(b({ref:function(t){e.input=t},value:this._tag(),onPaste:this.handlePaste.bind(this),onKeyDown:this.handleKeyDown.bind(this),onChange:this.handleChange.bind(this),onFocus:this.handleOnFocus.bind(this),onBlur:this.handleOnBlur.bind(this),addTag:this.addTag.bind(this)},this.inputProps()));return _.default.createElement("div",{ref:function(t){e.div=t},onClick:this.handleClick.bind(this),className:s},a(d,f))}}]),t}(_.default.Component);v.defaultProps={className:"react-tagsinput",focusedClassName:"react-tagsinput--focused",addKeys:[9,13],addOnBlur:!1,addOnPaste:!1,inputProps:{},removeKeys:[8],renderInput:p,renderTag:f,renderLayout:h,pasteSplit:m,tagProps:{className:"react-tagsinput-tag",classNameRemove:"react-tagsinput-remove"},onlyUnique:!1,maxTags:-1,validationRegex:/.*/,disabled:!1,tagDisplayProp:null,preventSubmit:!0},t.default=v,e.exports=t.default})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(10),y=n(8),A=n(104),E=r(A),w=n(44),k=r(w),T=n(47),L=n(71),S=n(52),C=n(30),O=n(40),z=r(O),N=n(36),D=r(N),P=n(23),x=n(74),j=n(61),R=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={carousel_display_exif:r.props.getOptionValue("carousel_display_exif","carousel")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("carousel",e))},r.handleCarouselDisplayExifChange=function(){r.updateOptions("carousel_display_exif")},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this.props.isModuleFound("carousel"),t=this.props.isModuleFound("videopress");if(!e&&!t)return null;var n=this.props.module("carousel"),r=this.props.getOptionValue("carousel"),a=this.props.module("videopress"),o=(0,T.getPlanClass)(this.props.sitePlan.product_slug),s=g.default.createElement(D.default,{hasChild:!0,module:{module:"carousel"},support:{text:(0,y.translate)("Replaces the standard WordPress galleries with a full-screen photo browsing experience, including comments and EXIF metadata."),link:"https://jetpack.com/support/carousel"}},g.default.createElement(S.ModuleToggle,{slug:"carousel",activated:r,toggling:this.props.isSavingAnyOption("carousel"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},n.description)),g.default.createElement(L.FormFieldset,null,g.default.createElement(E.default,{checked:this.state.carousel_display_exif,disabled:!r||this.props.isSavingAnyOption(["carousel","carousel_display_exif"]),onChange:this.handleCarouselDisplayExifChange},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,y.translate)("Show photo metadata (Exif) in carousel, when available"))),g.default.createElement(L.FormLabel,null,g.default.createElement(L.FormLegend,{className:"jp-form-label-wide"},(0,y.translate)("Color scheme")),g.default.createElement(L.FormSelect,(0,i.default)({name:"carousel_background_color",value:this.props.getOptionValue("carousel_background_color"),disabled:!r||this.props.isSavingAnyOption(["carousel","carousel_background_color"])},this.props,{validValues:this.props.validValues("carousel_background_color","carousel")}))))),c=(0,k.default)(["is-premium-plan","is-business-plan"],o)&&g.default.createElement(D.default,{hasChild:!0,disableInDevMode:!0,module:a,support:{text:(0,y.translate)("Hosts your video files on the global WordPress.com servers."),link:"https://jetpack.com/support/videopress/"}},g.default.createElement(S.ModuleToggle,{slug:"videopress",disabled:this.props.isUnavailableInDevMode("videopress"),activated:this.props.getOptionValue("videopress"),toggling:this.props.isSavingAnyOption("videopress"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},a.description))),u="inactive"===this.props.getModuleOverride("videopress");return g.default.createElement(z.default,(0,i.default)({},this.props,{header:(0,y.translate)("Media"),hideButton:!e,feature:!u&&T.FEATURE_VIDEO_HOSTING_JETPACK,saveDisabled:this.props.isSavingAnyOption("carousel_background_color")}),e&&s,t&&c)}}]),t}(g.default.Component);t.default=(0,v.connect)(function(e){return{module:function(t){return(0,P.getModule)(e,t)},isModuleFound:function(t){return(0,x.isModuleFound)(e,t)},sitePlan:(0,j.getSitePlan)(e),getModuleOverride:function(t){return(0,P.getModuleOverride)(e,t)}}})((0,C.ModuleSettingsForm)(R)),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.CustomContentTypes=void 0;var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(10),y=n(8),A=n(104),E=r(A),w=n(71),k=n(30),T=n(23),L=n(74),S=n(40),C=r(S),O=n(36),z=r(O),N=t.CustomContentTypes=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={testimonial:r.props.getOptionValue("jetpack_testimonial","custom-content-types"),portfolio:r.props.getOptionValue("jetpack_portfolio","custom-content-types")},r.updateCPTs=function(e){var t="testimonial"===e?!(!r.state.testimonial||r.state.portfolio):!(!r.state.portfolio||r.state.testimonial);r.props.updateFormStateModuleOption("custom-content-types","jetpack_"+e,t),r.setState((0,s.default)({},e,!r.state[e]))},r.linkIfActiveCPT=function(e){return r.props.getSettingCurrentValue("jetpack_"+e,"custom-content-types")?g.default.createElement("a",{href:r.props.siteAdminUrl+"edit.php?post_type=jetpack-"+e}):g.default.createElement("span",null)},r.handleTestimonialToggleChange=function(){r.updateCPTs("testimonial")},r.handlePortfolioToggleChange=function(){r.updateCPTs("portfolio")},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){if(!this.props.isModuleFound("custom-content-types"))return null;var e=this.props.module("custom-content-types"),t="inactive"===this.props.getModuleOverride("custom-content-types"),n=t&&(0,y.translate)("This feature has been disabled by a site administrator.");return g.default.createElement(C.default,(0,i.default)({},this.props,{module:"custom-content-types",hideButton:!0}),g.default.createElement(z.default,{hasChild:!0,module:e,support:{text:(0,y.translate)("Adds the Testimonial custom post type, allowing you to collect, organize, and display testimonials on your site."),link:"https://jetpack.com/support/custom-content-types/"}},g.default.createElement(E.default,{checked:this.state.testimonial,disabled:this.props.isSavingAnyOption("jetpack_testimonial")||t,onChange:this.handleTestimonialToggleChange,disabledReason:n},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,y.translate)("Testimonials"))),g.default.createElement(w.FormFieldset,null,g.default.createElement("p",{className:"jp-form-setting-explanation"},(0,y.translate)("Add, organize, and display {{testimonialLink}}testimonials{{/testimonialLink}}. If your theme doesn’t support testimonials yet, you can display them using the shortcode\t( [testimonials] ).",{components:{testimonialLink:this.linkIfActiveCPT("testimonial")}})))),g.default.createElement(z.default,{hasChild:!0,module:e,support:{text:(0,y.translate)("Adds the Portfolio custom post type, allowing you to manage and showcase projects on your site."),link:"https://jetpack.com/support/custom-content-types/"}},g.default.createElement(E.default,{checked:this.state.portfolio,disabled:this.props.isSavingAnyOption("jetpack_portfolio")||t,onChange:this.handlePortfolioToggleChange,disabledReason:n},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,y.translate)("Portfolios"))),g.default.createElement(w.FormFieldset,null,g.default.createElement("p",{className:"jp-form-setting-explanation"},(0,y.translate)("Add, organize, and display {{portfolioLink}}portfolios{{/portfolioLink}}. If your theme doesn’t support portfolios yet, you can display them using the shortcode ( [portfolio] ).",{components:{portfolioLink:this.linkIfActiveCPT("portfolio")}})))))}}]),t}(g.default.Component);t.default=(0,v.connect)(function(e){return{module:function(t){return(0,T.getModule)(e,t)},isModuleFound:function(t){return(0,L.isModuleFound)(e,t)},getModuleOverride:function(t){return(0,T.getModuleOverride)(e,t)}}})((0,k.ModuleSettingsForm)(N))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(10),y=n(8),A=n(104),E=r(A),w=n(15),k=r(w),T=n(71),L=n(52),S=n(23),C=n(28),O=n(74),z=n(30),N=n(40),D=r(N),P=n(36),x=r(P),j=n(515),R=r(j),Y=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.getInfiniteMode=function(){return r.props.getOptionValue("infinite-scroll")?r.props.getOptionValue("infinite_scroll","infinite-scroll")?"infinite_scroll":"infinite_button":"infinite_default"},r.updateInfiniteMode=function(e){r.setState({infinite_mode:e},r.prepareOptionsToUpdate)},r.prepareOptionsToUpdate=function(){"infinite_default"===r.state.infinite_mode?r.props.updateFormStateOptionValue("infinite-scroll",!1):"infinite_scroll"!==r.state.infinite_mode&&"infinite_button"!==r.state.infinite_mode||r.props.updateFormStateOptionValue({"infinite-scroll":!0,infinite_scroll:"infinite_scroll"===r.state.infinite_mode})},r.updateOptions=function(e,t){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption(t,e))},r.trackLearnMoreIS=function(){k.default.tracks.recordJetpackClick({target:"learn-more",feature:"infinite-scroll",extra:"not-supported-link"})},r.state={infinite_mode:r.getInfiniteMode(),wp_mobile_excerpt:r.props.getOptionValue("wp_mobile_excerpt","minileven"),wp_mobile_featured_images:r.props.getOptionValue("wp_mobile_featured_images","minileven"),wp_mobile_app_promos:r.props.getOptionValue("wp_mobile_app_promos","minileven")},r.handleInfiniteScrollModeChange=function(e){return function(){return r.updateInfiniteMode(e)}},r.handleMinilevenOptionChange=function(e,t){return function(){return r.updateOptions(e,t)}},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this,t=this.props.isModuleFound("infinite-scroll"),n=this.props.isModuleFound("minileven");if(!t&&!n)return null;var r=this.props.getModule("infinite-scroll"),a=this.props.getModule("minileven"),o=this.props.getOptionValue(a.module),s="inactive"===this.props.getModuleOverride("infinite-scroll");return g.default.createElement(D.default,(0,i.default)({},this.props,{header:(0,y.translate)("Theme enhancements"),hideButton:!t||!this.props.isInfiniteScrollSupported}),s&&g.default.createElement(R.default,{moduleName:r.name,compact:!0}),t&&!s&&g.default.createElement(x.default,{hasChild:!0,module:{module:r.module},key:"theme_enhancement_"+r.module,support:{text:(0,y.translate)("Loads the next posts automatically when the reader approaches the bottom of the page."),link:"https://jetpack.com/support/infinite-scroll"}},g.default.createElement(T.FormLegend,{className:"jp-form-label-wide"},r.name),this.props.isInfiniteScrollSupported?[{key:"infinite_default",label:(0,y.translate)("Load more posts using the default theme behavior")},{key:"infinite_button",label:(0,y.translate)("Load more posts in page with a button")},{key:"infinite_scroll",label:(0,y.translate)("Load more posts as the reader scrolls down")}].map(function(t){return g.default.createElement(T.FormLabel,{key:r.module+"_"+t.key},g.default.createElement("input",{type:"radio",name:"infinite_mode",value:t.key,checked:t.key===e.state.infinite_mode,disabled:e.props.isSavingAnyOption([r.module,t.key]),onChange:e.handleInfiniteScrollModeChange(t.key)}),g.default.createElement("span",{className:"jp-form-toggle-explanation"},t.label))}):g.default.createElement("span",null,(0,y.translate)("Theme support required.")+" ",g.default.createElement("a",{onClick:this.trackLearnMoreIS,href:r.learn_more_button+"#theme",title:(0,y.translate)("Learn more about adding support for Infinite Scroll to your theme.")},(0,y.translate)("Learn more")))),n&&g.default.createElement(x.default,{hasChild:!0,module:{module:a.module},key:"theme_enhancement_"+a.module,support:{text:(0,y.translate)("Enables a lightweight, mobile-friendly theme that will be displayed to visitors on mobile devices."),link:"https://jetpack.com/support/mobile-theme"}},g.default.createElement(L.ModuleToggle,{slug:a.module,activated:o,toggling:this.props.isSavingAnyOption(a.module),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},a.description)),g.default.createElement(T.FormFieldset,null,[{key:"wp_mobile_excerpt",label:(0,y.translate)("Use excerpts instead of full posts on front page and archive pages")},{key:"wp_mobile_featured_images",label:(0,y.translate)("Show featured images")},{key:"wp_mobile_app_promos",label:(0,y.translate)("Show an ad for the WordPress mobile apps in the footer of the mobile theme")}].map(function(t){return g.default.createElement(E.default,{checked:e.state[t.key],disabled:!o||e.props.isSavingAnyOption([a.module,t.key]),onChange:e.handleMinilevenOptionChange(t.key,a.module),key:a.module+"_"+t.key},g.default.createElement("span",{className:"jp-form-toggle-explanation"},t.label))}))))}}]),t}(g.default.Component);t.default=(0,v.connect)(function(e){return{module:function(t){return(0,S.getModule)(e,t)},isInfiniteScrollSupported:(0,C.currentThemeSupports)(e,"infinite-scroll"),isModuleFound:function(t){return(0,O.isModuleFound)(e,t)}}})((0,z.ModuleSettingsForm)(Y)),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(41),y=r(v),A=n(1141),E=r(A),w=n(25),k=r(w),T=n(15),L=r(T),S=n(71),C=n(52),O=n(23),z=n(74),N=n(30),D=n(40),P=r(D),x=n(36),j=r(x),R=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.regeneratePostByEmailAddress=function(e){L.default.tracks.recordJetpackClick("pbe-regenerage-email"),e.preventDefault(),r.props.regeneratePostByEmailAddress()},r.address=function(){var e=r.props.getOptionValue("post_by_email_address");return!1===e||"1"===e||null===e?"":e},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){if(!this.props.isModuleFound("post-by-email"))return null;var e=this.props.getModule("post-by-email"),t=this.props.getOptionValue("post-by-email"),n=this.props.isUnavailableInDevMode("post-by-email")||!this.props.isLinked,r=this.address();return M.default.createElement(P.default,(0,i.default)({},this.props,{module:"post-by-email",hideButton:!0}),M.default.createElement(j.default,{hasChild:!0,disableInDevMode:!0,module:e,support:{text:(0,g.translate)("Allows you to publish new posts by sending an email to a special address."),link:"https://jetpack.com/support/post-by-email/"}},this.props.userCanManageModules?M.default.createElement(C.ModuleToggle,{slug:"post-by-email",compact:!0,disabled:n,activated:t,toggling:this.props.isSavingAnyOption("post-by-email"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description)):M.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description),M.default.createElement(S.FormFieldset,null,M.default.createElement(S.FormLabel,null,M.default.createElement(S.FormLegend,null,(0,g.translate)("Email Address")),M.default.createElement(E.default,{value:r,disabled:!t||n,copy:(0,g.translate)("Copy",{context:"verb"}),copied:(0,g.translate)("Copied!"),prompt:(0,g.translate)("Highlight and copy the following text to your clipboard:")})),M.default.createElement(y.default,{disabled:!t||n,onClick:this.regeneratePostByEmailAddress},r?(0,g.translate)("Regenerate address"):(0,g.translate)("Create address")))),!this.props.isUnavailableInDevMode("post-by-email")&&!this.props.isLinked&&M.default.createElement(k.default,{compact:!0,className:"jp-settings-card__configure-link",href:this.props.connectUrl+"&from=unlinked-user-pbe"},(0,g.translate)("Connect your user account to WordPress.com to use this feature")))}}]),t}(M.default.Component);t.default=(0,b.connect)(function(e){return{module:function(t){return(0,O.getModule)(e,t)},isModuleFound:function(t){return(0,z.isModuleFound)(e,t)}}})((0,N.ModuleSettingsForm)(R)),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(7),M=r(_),b=n(1),g=r(b),v=n(14),y=r(v),A=n(116),E=r(A),w=n(1142),k=r(w),T=n(508),L=r(T);n(1151);var S=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.state={isCopied:!1,disabled:!1},r.showConfirmation=function(){r.setState({isCopied:!0}),r.confirmationTimeout=setTimeout(function(){r.setState({isCopied:!1})},4e3)},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"componentWillUnmount",value:function(){clearTimeout(this.confirmationTimeout),delete this.confirmationTimeout}},{key:"render",value:function(){var e=(0,E.default)(this.props,"className","copied","copy","isError","isValid","prompt","selectOnFocus");return g.default.createElement("span",{className:(0,y.default)("dops-clipboard-button-input",this.props.className)},g.default.createElement(L.default,(0,i.default)({},e,{type:"text",selectOnFocus:!0,readOnly:!0})),g.default.createElement(k.default,{text:this.props.value,onCopy:this.showConfirmation,disabled:this.props.disabled,prompt:this.props.prompt,compact:!0},this.state.isCopied?this.props.copied:this.props.copy))}}]),t}(g.default.Component);S.displayName="ClipboardButtonInput",S.propTypes={value:M.default.string,disabled:M.default.bool,className:M.default.string,copied:M.default.string,copy:M.default.string,prompt:M.default.string},S.defaultProps={value:""},t.default=S,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(113),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(41),g=r(b),v=n(7),y=n(149),A=n(1),E=n(1143),w=n(116),k=n(64),T=n(14),L=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.displayPrompt=function(){window.prompt(r.props.prompt,r.props.text)},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"componentDidMount",value:function(){var e=this,t=y.findDOMNode(this.refs.button);this.clipboard=new E(t,{text:function(){return e.props.text}}),this.clipboard.on("success",this.props.onCopy),this.clipboard.on("error",this.displayPrompt)}},{key:"componentWillUnmount",value:function(){this.clipboard.destroy(),delete this.clipboard}},{key:"render",value:function(){var e=T("dops-clipboard-button",this.props.className);return A.createElement(g.default,(0,i.default)({ref:"button"},w(this.props,(0,s.default)(this.constructor.propTypes)),{className:e}))}}]),t}(A.Component);L.displayName="ClipboardButton",L.propTypes={className:v.string,text:v.string,prompt:v.string,onCopy:v.func},L.defaultProps={onCopy:k},t.default=L,e.exports=t.default},function(e,t,n){var r,a,i;!function(o,s){a=[e,n(1144),n(1146),n(1147)],r=s,void 0!==(i="function"==typeof r?r.apply(t,a):r)&&(e.exports=i)}(0,function(e,t,n,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function c(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}var u=a(t),l=a(n),d=a(r),f="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},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e){function t(e,n){i(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.resolveOptions(n),r.listenClick(e),r}return s(t,e),p(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===f(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,d.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new u.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return c("action",e)}},{key:"defaultTarget",value:function(e){var t=c("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return c("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}]),t}(l.default);e.exports=h})},function(e,t,n){var r,a,i;!function(o,s){a=[e,n(1145)],r=s,void 0!==(i="function"==typeof r?r.apply(t,a):r)&&(e.exports=i)}(0,function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(e){return e&&e.__esModule?e:{default:e}}(t),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){n(this,e),this.resolveOptions(t),this.initSelection()}return i(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,r.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,r.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":a(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=o})},function(e,t){function n(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),a=document.createRange();a.selectNodeContents(e),r.removeAllRanges(),r.addRange(a),t=r.toString()}return t}e.exports=n},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function r(){a.off(e,r),t.apply(n,arguments)}var a=this;return r._=t,this.on(e,r,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,a=n.length;for(r;r<a;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],a=[];if(r&&t)for(var i=0,o=r.length;i<o;i++)r[i].fn!==t&&r[i].fn._!==t&&a.push(r[i]);return a.length?n[e]=a:delete n[e],this}},e.exports=n},function(e,t,n){function r(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!s.string(t))throw new TypeError("Second argument must be a String");if(!s.fn(n))throw new TypeError("Third argument must be a Function");if(s.node(e))return a(e,t,n);if(s.nodeList(e))return i(e,t,n);if(s.string(e))return o(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function i(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}function o(e,t,n){return c(document.body,e,t,n)}var s=n(1148),c=n(1149);e.exports=r},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){function r(e,t,n,r,a){var o=i.apply(this,arguments);return e.addEventListener(n,o,a),{destroy:function(){e.removeEventListener(n,o,a)}}}function a(e,t,n,a,i){return"function"==typeof e.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return r(e,t,n,a,i)}))}function i(e,t,n,r){return function(n){n.delegateTarget=o(n.target,t),n.delegateTarget&&r.call(e,n)}}var o=n(1150);e.exports=a},function(e,t){function n(e,t){for(;e&&e.nodeType!==r;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}var r=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var a=Element.prototype;a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}e.exports=n},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Masterbar=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(30),A=n(40),E=r(A),w=n(36),k=r(w),T=n(52);t.Masterbar=(0,y.ModuleSettingsForm)(function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.getOptionValue("masterbar"),t=this.props.isUnavailableInDevMode("masterbar"),n=this.props.isLinked;return M.default.createElement(E.default,(0,i.default)({},this.props,{header:(0,b.translate)("WordPress.com toolbar",{context:"Settings header"}),module:"masterbar",hideButton:!0}),M.default.createElement(k.default,{disableInDevMode:!0,module:{module:"masterbar"},support:{text:(0,b.translate)("Adds a toolbar with links to all your sites, notifications, your WordPress.com profile, and the Reader."),
45
  link:"https://jetpack.com/support/masterbar/"}},M.default.createElement(T.ModuleToggle,{slug:"masterbar",disabled:t||!n,activated:e,toggling:this.props.isSavingAnyOption("masterbar"),toggleModule:this.props.toggleModuleNow},(0,b.translate)("Enable the WordPress.com toolbar"),M.default.createElement("span",{className:"jp-form-setting-explanation"},(0,b.translate)("The WordPress.com toolbar replaces the default admin bar and offers quick links to the Reader, all your sites, your WordPress.com profile, and notifications. Centralize your WordPress experience with a single global toolbar.")))),!this.props.isUnavailableInDevMode("masterbar")&&!this.props.isLinked&&M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",href:this.props.connectUrl+"&from=unlinked-user-masterbar"},(0,b.translate)("Connect your user account to WordPress.com to use this feature")))}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(10),y=n(8),A=n(851),E=r(A),w=n(71),k=n(30),T=n(23),L=n(74),S=n(40),C=r(S),O=n(36),z=r(O),N=n(52),D=(0,k.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.toggleModule=function(e,t){"photon"===e?!1==!t?r.props.updateOptions({photon:!1,"tiled-gallery":!1,tiled_galleries:!1}):r.props.updateOptions({photon:!0,"tiled-gallery":!0,tiled_galleries:!0}):r.props.updateOptions((0,s.default)({},e,!t))},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this.props.isModuleFound("photon"),t=this.props.isModuleFound("lazy-images");if(!e&&!t)return null;var n=this.props.module("photon"),r=this.props.module("lazy-images");return g.default.createElement(C.default,(0,i.default)({},this.props,{header:(0,y.translate)("Speed up your site"),hideButton:!0}),e&&g.default.createElement(z.default,{hasChild:!0,disableInDevMode:!0,module:n,support:{text:(0,y.translate)("Hosts your image files on the global WordPress.com servers."),link:"https://jetpack.com/support/photon/"}},g.default.createElement(N.ModuleToggle,{slug:"photon",disabled:this.props.isUnavailableInDevMode("photon"),activated:this.props.getOptionValue("photon"),toggling:this.props.isSavingAnyOption("photon"),toggleModule:this.toggleModule},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,E.default)(n.description))),g.default.createElement(w.FormFieldset,null,g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,E.default)(n.long_description)))),t&&g.default.createElement(z.default,{hasChild:!0,module:r,support:{text:(0,y.translate)("Delays the loading of images until they are visible in the visitor's browser."),link:"https://jetpack.com/support/lazy-images/"}},g.default.createElement(N.ModuleToggle,{slug:"lazy-images",disabled:this.props.isUnavailableInDevMode("lazy-images"),activated:this.props.getOptionValue("lazy-images"),toggling:this.props.isSavingAnyOption("lazy-images"),toggleModule:this.toggleModule},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,E.default)(r.description))),g.default.createElement(w.FormFieldset,null,g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,E.default)(r.long_description)))))}}]),t}(b.Component));t.default=(0,v.connect)(function(e){return{module:function(t){return(0,T.getModule)(e,t)},isModuleFound:function(t){return(0,L.isModuleFound)(e,t)}}})(D),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(10),M=n(23),b=n(103),g=n(21),v=n(74),y=n(28),A=n(211),E=r(A),w=n(1155),k=n(1156),T=n(1157),L=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode,isLinked:this.props.isLinked,connectUrl:this.props.connectUrl,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,userCanManageModules:this.props.userCanManageModules},t=this.props.isModuleFound("publicize"),n=this.props.isModuleFound("sharedaddy"),r=this.props.isModuleFound("likes");return(this.props.searchTerm||this.props.active)&&(t||n||r)?m.default.createElement("div",null,m.default.createElement(E.default,null),t&&m.default.createElement(w.Publicize,e),n&&m.default.createElement(k.ShareButtons,e),r&&m.default.createElement(T.Likes,e)):null}}]),t}(h.Component);t.default=(0,_.connect)(function(e){return{module:function(t){return(0,M.getModule)(e,t)},settings:(0,b.getSettings)(e),isDevMode:(0,g.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,g.isUnavailableInDevMode)(e,t)},isModuleFound:function(t){return(0,v.isModuleFound)(e,t)},isLinked:(0,g.isCurrentUserLinked)(e),connectUrl:(0,g.getConnectUrl)(e),siteRawUrl:(0,y.getSiteRawUrl)(e),siteAdminUrl:(0,y.getSiteAdminUrl)(e),userCanManageModules:(0,y.userCanManageModules)(e)}})(L),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Publicize=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(15),A=r(y),E=n(30),w=n(40),k=r(w),T=n(36),L=r(T),S=n(52);t.Publicize=(0,E.ModuleSettingsForm)(function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"trackClickConfigure",value:function(){A.default.tracks.recordJetpackClick({target:"configure-publicize",page:"sharing"})}},{key:"render",value:function(){var e=this,t=this.props.isUnavailableInDevMode("publicize"),n=this.props.isLinked,r=this.props.connectUrl,a=this.props.siteRawUrl,o=this.props.getOptionValue("publicize"),s=this.props.userCanManageModules;return s||o?M.default.createElement(k.default,(0,i.default)({},this.props,{header:(0,b.translate)("Publicize connections",{context:"Settings header"}),module:"publicize",hideButton:!0}),s&&M.default.createElement(L.default,{disableInDevMode:!0,module:{module:"publicize"},support:{text:(0,b.translate)("Allows you to automatically share your newest content on social media sites, including Facebook and Twitter."),link:"https://jetpack.com/support/publicize/"}},M.default.createElement(S.ModuleToggle,{slug:"publicize",disabled:t,activated:o,toggling:this.props.isSavingAnyOption("publicize"),toggleModule:this.props.toggleModuleNow},(0,b.translate)("Automatically share your posts to social networks"))),o&&function(){if(!t)return n?M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackClickConfigure,href:"https://wordpress.com/sharing/"+a},(0,b.translate)("Connect your social media accounts")):M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",href:r+"&from=unlinked-user-connect-publicize"},(0,b.translate)("Connect your user account to WordPress.com to use this feature"))}()):null}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ShareButtons=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(15),A=r(y),E=n(30),w=n(40),k=r(w),T=n(36),L=r(T),S=n(52);t.ShareButtons=(0,E.ModuleSettingsForm)(function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"trackClickConfigure",value:function(){A.default.tracks.recordJetpackClick({target:"configure-sharing",page:"sharing"})}},{key:"render",value:function(){var e=this,t=this.props.isLinked,n=this.props.connectUrl,r=this.props.siteRawUrl,a=this.props.siteAdminUrl,o=this.props.isDevMode,s=this.props.getOptionValue("sharedaddy");return M.default.createElement(k.default,(0,i.default)({},this.props,{header:(0,b.translate)("Sharing buttons",{context:"Settings header"}),module:"sharing",hideButton:!0}),M.default.createElement(L.default,{disableInDevMode:!0,module:{module:"sharing"},support:{text:(0,b.translate)("Adds sharing buttons to your content so that visitors can share it on social media sites."),link:"https://jetpack.com/support/sharing/"}},M.default.createElement(S.ModuleToggle,{slug:"sharedaddy",activated:s,toggling:this.props.isSavingAnyOption("sharedaddy"),toggleModule:this.props.toggleModuleNow},(0,b.translate)("Add sharing buttons to your posts"))),s&&function(){return o?M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",href:a+"options-general.php?page=sharing"},(0,b.translate)("Configure your sharing buttons")):t?M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackClickConfigure,href:"https://wordpress.com/sharing/buttons/"+r},(0,b.translate)("Configure your sharing buttons")):M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",href:n+"&from=unlinked-user-connect-sharing"},(0,b.translate)("Connect your user account to WordPress.com to use this feature"))}())}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Likes=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(30),v=n(40),y=r(v),A=n(36),E=r(A),w=n(52);t.Likes=(0,g.ModuleSettingsForm)(function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.isUnavailableInDevMode("likes"),t=this.props.getOptionValue("likes");return M.default.createElement(y.default,(0,i.default)({},this.props,{header:(0,b.translate)("Like buttons",{context:"Settings header"}),module:"likes",hideButton:!0}),M.default.createElement(E.default,{disableInDevMode:!0,module:{module:"likes"},support:{text:(0,b.translate)("Adds like buttons to your content so that visitors can show their appreciation or enjoyment."),link:"https://jetpack.com/support/likes/"}},M.default.createElement(w.ModuleToggle,{slug:"likes",disabled:e,activated:t,toggling:this.props.isSavingAnyOption("likes"),toggleModule:this.props.toggleModuleNow},(0,b.translate)("Allow readers to show their appreciation of your posts by adding a like button to your content"))))}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SearchableModules=void 0;var a=n(51),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(7),M=r(_),b=n(1),g=r(b),v=n(10),y=n(228),A=r(y),E=n(44),w=r(E),k=n(8),T=n(850),L=r(T),S=n(30),C=n(23),O=n(74),z=n(40),N=r(z),D=n(36),P=r(D),x=n(28),j=n(21),R=t.SearchableModules=(0,S.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var o=arguments.length,c=Array(o),l=0;l<o;l++)c[l]=arguments[l];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(c))),r.handleBannerClick=function(e){return function(){return r.props.updateOptions((0,i.default)({},e,!0))}},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this;if(!this.props.canManageModules)return null;if(this.props.searchTerm.length<3)return null;var t=["contact-form","custom-css","enhanced-distribution","json-api","latex","notes","shortcodes","shortlinks","widget-visibility","widgets"],n=this.props.modules,r=[];return(0,A.default)(n,function(n,a){if(e.props.isModuleFound(a)&&(0,w.default)(t,a)){if(e.props.isDevMode&&e.props.isUnavailableInDevMode(n.module))return r.push(g.default.createElement(Y,{key:a,moduleData:n,devMode:!0}));e.props.getOptionValue(n.module)?r.push(g.default.createElement(Y,{key:a,moduleData:n})):r.push(g.default.createElement(L.default,{className:"jp-searchable-banner",key:a,callToAction:(0,k.translate)("Activate"),description:n.description,href:"javascript:void( 0 )",icon:"cog",onClick:e.handleBannerClick(n.module),title:n.name}))}}),g.default.createElement("div",null,r)}}]),t}(b.Component));R.propTypes={searchTerm:M.default.string},R.defaultProps={searchTerm:""};var Y=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.moduleData,t=this.props.devMode;return g.default.createElement(N.default,{header:e.name,action:e.module,hideButton:!0},g.default.createElement(P.default,{disableInDevMode:t,module:{module:e.module},support:{link:e.learn_more_button}},e.description))}}]),t}(b.Component);t.default=(0,v.connect)(function(e){return{modules:(0,C.getModules)(e),isModuleFound:function(t){return(0,O.isModuleFound)(e,t)},canManageModules:(0,x.userCanManageModules)(e),isUnavailableInDevMode:function(t){return(0,j.isUnavailableInDevMode)(e,t)},isDevMode:(0,j.isDevMode)(e)}})(R)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(7),g=r(b),v=n(8),y=n(10),A=n(30),E=n(104),w=r(E),k=n(40),T=r(k),L=n(36),S=r(L),C=n(474),O=r(C),z=n(498),N=n(1160),D=n(103),P=n(15),x=r(P),j=function(){return x.default.tracks.recordJetpackClick({target:"privacy-policy",feature:"privacy"})},R=function(){return x.default.tracks.recordJetpackClick({target:"cookie-policy",feature:"privacy"})},Y=function(){return x.default.tracks.recordJetpackClick({target:"privacy-center",feature:"privacy"})},I=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.isPrivacyFound=function(){return!r.props.searchTerm||[(0,v.translate)("privacy",{context:"Search term."}),(0,v.translate)("tracks",{context:"Search term."}),(0,v.translate)("data",{context:"Search term."}),(0,v.translate)("gdpr",{context:"Search term."}),(0,v.translate)("tos",{context:"Search term."}),(0,v.translate)("terms of service",{context:"Search term."})].join(" ").toLowerCase().indexOf(r.props.searchTerm.toLowerCase())>-1},r.togglePrivacy=function(){var e=r.props.trackingSettings.tracks_opt_out;r.props.setTrackingSettings(!e)},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"componentWillMount",value:function(){this.props.fetchTrackingSettings()}},{key:"render",value:function(){var e=this.props,t=e.searchTerm,n=e.active;return t||n?this.isPrivacyFound()&&M.default.createElement("div",null,M.default.createElement(T.default,(0,i.default)({},this.props,{header:(0,v.translate)("Privacy Settings",{context:"Settings header"}),hideButton:!0}),M.default.createElement(S.default,{hasChild:!0},M.default.createElement("p",null,(0,v.translate)("We are committed to your privacy and security. ")),M.default.createElement("p",null,M.default.createElement(w.default,{compact:!0,checked:!this.props.trackingSettings.tracks_opt_out,disabled:this.props.isFetchingTrackingSettings||this.props.isUpdatingTrackingSettings,onChange:this.togglePrivacy,id:"privacy-settings"},(0,v.translate)("Share information with our analytics tool about your use of services while logged in to your WordPress.com account. {{cookiePolicyLink}}Learn more{{/cookiePolicyLink}}.",{components:{cookiePolicyLink:M.default.createElement(O.default,{href:"https://automattic.com/cookies/",onClick:R,target:"_blank",rel:"noopener noreferrer"})}}))),M.default.createElement("p",null,(0,v.translate)("This information helps us improve our products, make marketing to you more relevant, personalize your WordPress.com experience, and more as detailed in our {{pp}}privacy policy{{/pp}}.",{components:{pp:M.default.createElement(O.default,{href:"https://automattic.com/privacy/",onClick:j,target:"_blank",rel:"noopener noreferrer"})}})),M.default.createElement("p",null,(0,v.translate)("We use other tracking tools, including some from third parties. {{cookiePolicyLink}}Read about these{{/cookiePolicyLink}} and how to control them.",{components:{cookiePolicyLink:M.default.createElement(O.default,{href:"https://automattic.com/cookies/",onClick:R,target:"_blank",rel:"noopener noreferrer"})}})),M.default.createElement("p",null,(0,v.translate)("For more information on how specific Jetpack features use data and track activity, please refer to our {{privacyCenterLink}}Privacy Center{{/privacyCenterLink}}.",{components:{privacyCenterLink:M.default.createElement(O.default,{href:"https://jetpack.com/support/privacy",onClick:Y,target:"_blank",rel:"noopener noreferrer"})}}))))):null}}]),t}(M.default.Component);I.displayName="PrivacySettings",I.propTypes={searchTerm:g.default.string,active:g.default.bool,toggleTracking:g.default.func,getOptionValue:g.default.func,isSavingAnyOption:g.default.func},I.defaultProps={searchTerm:"",active:!1},t.default=(0,y.connect)(function(e){return{settings:(0,D.getSettings)(e),trackingSettings:(0,z.getTrackingSettings)(e),isUpdatingTrackingSettings:(0,z.isUpdatingTrackingSettings)(e),isFetchingTrackingSettings:(0,z.isFetchingTrackingSettingsList)(e)}},function(e){return{setTrackingSettings:function(t){x.default.tracks.setOptOut(t),e((0,N.updateTrackingSettings)({tracks_opt_out:t}))},fetchTrackingSettings:function(){return e((0,N.fetchTrackingSettings)())}}})((0,A.ModuleSettingsForm)(I)),e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateTrackingSettings=t.fetchTrackingSettings=void 0;var r=n(114),a=n(8),i=n(16),o=n(56),s=function(e){return e&&e.__esModule?e:{default:e}}(o);t.fetchTrackingSettings=function(){return function(e){return e({type:i.USER_TRACKING_SETTINGS_FETCH}),s.default.fetchUserTrackingSettings().then(function(t){return e({type:i.USER_TRACKING_SETTINGS_FETCH_SUCCESS,settings:t}),t}).catch(function(t){e({type:i.USER_TRACKING_SETTINGS_FETCH_FAIL,error:t})})}},t.updateTrackingSettings=function(e){return function(t){var n={progress:(0,a.translate)("Updating privacy settings…"),success:(0,a.translate)("Updated privacy settings."),error:function(e){return(0,a.translate)("Error updating privacy settings. %(error)s",{args:{error:e.message||e.code||e.name||e}})}},o=function(){return e};return t((0,r.removeNotice)("tracking-settings-update")),t((0,r.removeNotice)("tracking-settings-update-success")),t((0,r.createNotice)("is-info",n.progress,{id:"tracking-settings-update"})),t({type:i.USER_TRACKING_SETTINGS_UPDATE,updatedSettings:e}),s.default.updateUserTrackingSettings(e).then(function(e){t({type:i.USER_TRACKING_SETTINGS_UPDATE_SUCCESS,updatedSettings:o(),success:e}),t((0,r.removeNotice)("tracking-settings-update")),t((0,r.removeNotice)("tracking-settings-update-success")),t((0,r.createNotice)("is-success",n.success,{id:"tracking-settings-update-success",duration:2e3}))}).catch(function(a){t({type:i.USER_TRACKING_SETTINGS_UPDATE_FAIL,updatedSettings:e,success:!1,error:a}),t((0,r.removeNotice)("tracking-settings-update")),t((0,r.removeNotice)("tracking-settings-update-success")),t((0,r.createNotice)("is-error",n.error(a),{id:"tracking-settings-update"}))})}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(10),M=n(25),b=r(M),g=n(8),v=n(915),y=r(v),A=n(21),E=n(80),w=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.default.createElement("div",{className:"jp-jetpack-connect__container"},m.default.createElement("h1",{className:"jp-jetpack-connect__container-title",title:"Welcome to Jetpack"},(0,g.translate)("Welcome to Jetpack")),m.default.createElement(b.default,{className:"jp-jetpack-connect__cta"},m.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,g.translate)("Hassle-free design, marketing, and security for your WordPress site. Connect Jetpack to a WordPress.com account to start building your own success story.")),m.default.createElement(y.default,{from:"landing-page-top"})),m.default.createElement(b.default,{className:"jp-jetpack-connect__feature jp-jetpack-connect__design"},m.default.createElement("header",{className:"jp-jetpack-connect__header"},m.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:(0,g.translate)("WordPress themes and customization tools for designing your site.")},(0,g.translate)("Design the perfect website")),m.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,g.translate)("Bring your ideas to life with elegant and professional designs and code-free customization tools."))),m.default.createElement("div",{className:"jp-jetpack-connect__interior-container"},m.default.createElement("img",{src:E.imagePath+"feature-photon-med.jpg",srcSet:E.imagePath+"feature-photon-sm.jpg 600w, "+E.imagePath+"feature-photon-med.jpg 770w, "+E.imagePath+"feature-photon-lrg.jpg 1200w",className:"jp-jetpack-connect__feature-image",alt:(0,g.translate)("Jetpack's photon serves up lightning fast, optimized images")}),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list"},m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's WordPress themes"),className:"dops-section-header__label"},(0,g.translate)("Professional themes")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Find the perfect design for your site from hundreds of available themes.")))),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's customization tools"),className:"dops-section-header__label"},(0,g.translate)("Code-free customization")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Customize your site with endless widget options, image galleries, and embedded media.")))),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's performance features"),className:"dops-section-header__label"},(0,g.translate)("Speed up your site")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Deliver blazing fast images and video and improve site load times."))))))),m.default.createElement(b.default,{className:"jp-jetpack-connect__feature jp-jetpack-connect__traffic"},m.default.createElement("header",{className:"jp-jetpack-connect__header"},m.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:(0,g.translate)("Drive more traffic to your site with Jetpack")},(0,g.translate)("Increase traffic and revenue")),m.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,g.translate)("Reach more people and earn money with automated marketing tools.")),m.default.createElement("div",{className:"jp-jetpack-connect__header-img-container"},m.default.createElement("img",{src:E.imagePath+"long-clouds.svg",width:"1160",height:"63",alt:(0,g.translate)("Decoration: Jetpack clouds",{context:"Image alternate text."}),className:"jp-jetpack-connect__header-img"})," ",m.default.createElement("img",{src:E.imagePath+"stat-bars.svg",width:"400",alt:(0,g.translate)("Decoration: Jetpack bar graph",{context:"Image alternate text."}),className:"jp-jetpack-connect__header-img"}))),m.default.createElement("div",{className:"jp-jetpack-connect__interior-container"},m.default.createElement("div",{className:"jp-jetpack-connect__feature-list"},m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's site stats feature"),className:"dops-section-header__label"},(0,g.translate)("Track your growth")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Keep an eye on your success with simple, concise, and mobile-friendly stats.")))),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's publicize features"),className:"dops-section-header__label"},(0,g.translate)("Automated marketing")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Schedule social media posts in advance, show related content, and give better search results.")))),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's ads and PayPal features"),className:"dops-section-header__label"},(0,g.translate)("Generate revenue")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Monetize your site with high-quality ads and take PayPal payments."))))))),m.default.createElement(b.default,{className:"jp-jetpack-connect__feature jp-jetpack-connect__security"},m.default.createElement("header",{className:"jp-jetpack-connect__header"},m.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:(0,g.translate)("Keep your site safe, 24/7")},(0,g.translate)("Keep your site safe, 24/7")),m.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,g.translate)("Automatic defense against hacks, malware, spam, data loss, and downtime."))),m.default.createElement("div",{className:"jp-jetpack-connect__interior-container"},m.default.createElement("div",{className:"jp-jetpack-connect__feature-list"},m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's monitor feature"),className:"dops-section-header__label"},(0,g.translate)("Monitor",{context:"Header. Noun: Monitor is a module of Jetpack."})),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Be alerted about any unexpected downtime the moment it happens.")))),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's Protect features"),className:"dops-section-header__label"},(0,g.translate)("Protect",{context:"Header. Noun: Protect is a module of Jetpack."})),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Guard your site against brute force login attacks, spam, and harmfulmalware injections.")))),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:"Jetpack's backup feature",className:"dops-section-header__label"},(0,g.translate)("Backup and restore")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Automatic, real-time backups mean your entire site is always ready to be restored."))))))),m.default.createElement(b.default,{className:"jp-jetpack-connect__cta"},m.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,g.translate)("Join the millions of users who rely on Jetpack to enhance and secure their sites. We're passionate about WordPress and here to make your life easier.")),m.default.createElement(y.default,{from:"landing-page-bottom"})))}}]),t}(m.default.Component);w.displayName="JetpackConnect",t.default=(0,_.connect)(function(e){return{connectUrl:(0,A.getConnectUrl)(e)}})(w),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.JetpackDisconnectDialog=void 0;var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(41),y=r(v),A=n(25),E=r(A),w=n(65),k=r(w),T=n(1163),L=r(T),S=n(47),C=n(64),O=r(C),z=n(15),N=r(z),D=n(61),P=n(21),x=n(28),j=t.JetpackDisconnectDialog=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.getPlanFeatures=function(){switch((0,S.getPlanClass)(r.props.sitePlan.product_slug)){case"is-personal-plan":return[{text:(0,g.translate)("Daily, automated backups (unlimited storage)"),icon:"history"},{text:(0,g.translate)("Priority support"),icon:"chat"},{text:(0,g.translate)("Spam filtering"),icon:"spam"}];case"is-premium-plan":return[{text:(0,g.translate)("Daily, automated backups (unlimited storage)"),icon:"history"},{text:(0,g.translate)("Daily, automated malware scanning"),icon:"spam"},{text:(0,g.translate)("Priority support"),icon:"chat"},{text:(0,g.translate)("13Gb of high-speed video hosting"),icon:"video"}];case"is-business-plan":return[{text:(0,g.translate)("Daily, automated backups (unlimited storage)"),icon:"history"},{text:(0,g.translate)("Daily, automated malware scanning with automated resolution"),icon:"spam"},{text:(0,g.translate)("Priority support"),icon:"chat"},{text:(0,g.translate)("Unlimited high-speed video hosting"),icon:"video"},{text:(0,g.translate)("SEO preview tools"),icon:"globe"}];default:return[{text:(0,g.translate)("Site stats, related content, and sharing tools"),icon:"stats-alt"},{text:(0,g.translate)("Brute force attack protection and downtime monitoring"),icon:"lock"},{text:(0,g.translate)("Unlimited, high-speed image hosting"),icon:"image"}]}},r.closeModal=function(){N.default.tracks.recordJetpackClick({target:"manage_site_connection",button:"stay-connected"}),r.props.toggleModal()},r.disconnectSiteTrack=function(){N.default.tracks.recordJetpackClick({target:"manage_site_connection",button:"disconnect-site"}),r.props.disconnectSite()},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return this.props.show&&M.default.createElement(L.default,{className:"jp-connection-settings__modal",onRequestClose:this.props.toggleModal},M.default.createElement(E.default,{className:"jp-connection-settings__modal-body"},M.default.createElement("h2",null,(0,g.translate)("Disconnect Jetpack")),M.default.createElement("h4",null,(0,g.translate)("By disconnecting %(siteName)s from WordPress.com you will no longer have access to the following:",{args:{siteName:this.props.siteRawUrl.replace(/::/g,"/")}})),M.default.createElement("ul",null,this.getPlanFeatures().map(function(e){return M.default.createElement("li",{key:"feature_"+e.icon},M.default.createElement(k.default,{icon:e.icon,
46
  size:18}),e.text)})),M.default.createElement("div",{className:"jp-connection-settings__modal-actions"},M.default.createElement(y.default,{className:"jp-connection-settings__modal-cancel",onClick:this.closeModal},(0,g.translate)("Stay connected",{context:"A caption for a button to cancel disconnection."})),M.default.createElement(y.default,{onClick:this.disconnectSiteTrack,scary:!0,primary:!0},(0,g.translate)("Disconnect",{context:"A caption for a button to disconnect."}))),M.default.createElement("p",{className:"jp-connection-settings__modal-more"},M.default.createElement("a",{href:"https://jetpack.com/features/"},(0,g.translate)("Read more about Jetpack benefits")))))}}]),t}(M.default.Component);j.propTypes={show:m.default.bool,toggleModal:m.default.func,disconnectSite:m.default.func},j.defaultProps={show:!1,toggleModal:O.default,disconnectSite:O.default},t.default=(0,b.connect)(function(e){return{siteRawUrl:(0,x.getSiteRawUrl)(e),isDisconnecting:(0,P.isDisconnectingSite)(e),sitePlan:(0,D.getSitePlan)(e)}},function(e){return{disconnectSite:function(){return e((0,P.disconnectSite)())}}})(j)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(){L=!0}function i(){L=!1}var o=n(11),s=r(o),c=n(463),u=r(c),l=n(2),d=r(l),f=n(3),p=r(f),h=n(6),m=r(h),_=n(4),M=r(_),b=n(5),g=r(b),v=n(7),y=n(1),A=n(149),E=n(14),w=n(24),k=n(116),T=n(1164),L=!1;n(1166);var S=function(e){function t(){var e,n,r,a;(0,p.default)(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=(0,M.default)(this,(e=t.__proto__||(0,d.default)(t)).call.apply(e,[this].concat(o))),r.state={overlayMouseDown:!1},r.handleEscapeKey=function(e){27===e.keyCode&&r.maybeClose()},r.maybeClose=function(){r.props.onRequestClose&&!L&&r.props.onRequestClose()},r.handleMouseDownOverlay=function(e){e.preventDefault(),e.stopPropagation(),r.setState({overlayMouseDown:!0})},r.handleClickOverlay=function(e){e.preventDefault(),e.stopPropagation(),r.state.overlayMouseDown&&r.props.onRequestClose&&!L&&(r.setState({overlayMouseDown:!1}),r.props.onRequestClose())},r.handleMouseEventModal=function(e){e.stopPropagation()},a=n,(0,M.default)(r,a)}return(0,g.default)(t,e),(0,m.default)(t,[{key:"componentDidMount",value:function(){jQuery("body").addClass("dops-modal-showing").on("touchmove.dopsmodal",!1),jQuery(document).keyup(this.handleEscapeKey);try{T.activate(A.findDOMNode(this),{initialFocus:this.props.initialFocus})}catch(e){}}},{key:"componentWillUnmount",value:function(){jQuery("body").removeClass("dops-modal-showing").off("touchmove.dopsmodal",!1),jQuery(document).unbind("keyup",this.handleEscapeKey);try{T.deactivate()}catch(e){}}},{key:"render",value:function(){var e=void 0,t=this.props,n=t.style,r=t.className,a=t.width,i=t.title,o=(0,u.default)(t,["style","className","width","title"]),c=k(o,"onRequestClose"),l=c.forwardedProps;switch(a){case"wide":e={maxWidth:"inherit",width:"inherit"};break;case"medium":e={maxWidth:1050,width:"inherit"};break;default:e={}}var d=w({},n,e);return y.createElement("div",{className:"dops-modal-wrapper",onClick:this.handleClickOverlay,onMouseDown:this.handleMouseDownOverlay},y.createElement("div",(0,s.default)({className:E("dops-modal",r),style:d,onClick:this.handleMouseEventModal,onMouseDown:this.handleMouseEventModal,onMouseUp:this.handleMouseEventModal,role:"dialog","aria-label":i},l),this.props.children))}}]),t}(y.Component);S.propTypes={style:v.object,width:v.oneOf(["wide","medium","narrow"]),className:v.string,title:v.string,initialFocus:v.string,onRequestClose:v.func},S.defaultProps={style:{}},S.preventClose=a,S.allowClose=i,e.exports=S},function(e,t,n){function r(e,t){function n(e){if(!k){var t={onActivate:e&&void 0!==e.onActivate?e.onActivate:C.onActivate};return k=!0,T=!1,w=document.activeElement,t.onActivate&&t.onActivate(),l(),O}}function r(e){if(k){var t={returnFocus:e&&void 0!==e.returnFocus?e.returnFocus:C.returnFocusOnDeactivate,onDeactivate:e&&void 0!==e.onDeactivate?e.onDeactivate:C.onDeactivate};return d(),t.onDeactivate&&t.onDeactivate(),t.returnFocus&&setTimeout(function(){i(w)},0),k=!1,T=!1,this}}function c(){!T&&k&&(T=!0,d())}function u(){T&&k&&(T=!1,l())}function l(){if(k)return s&&s.pause(),s=O,g(),i(p()),document.addEventListener("focus",_,!0),document.addEventListener("click",m,!0),document.addEventListener("mousedown",h,!0),document.addEventListener("touchstart",h,!0),document.addEventListener("keydown",M,!0),O}function d(){if(k&&s===O)return document.removeEventListener("focus",_,!0),document.removeEventListener("click",m,!0),document.removeEventListener("mousedown",h,!0),document.removeEventListener("touchstart",h,!0),document.removeEventListener("keydown",M,!0),s=null,O}function f(e){var t=C[e],n=t;if(!t)return null;if("string"==typeof t&&!(n=document.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(n=t()))throw new Error("`"+e+"` did not return a node");return n}function p(){var e;if(!(e=null!==f("initialFocus")?f("initialFocus"):S.contains(document.activeElement)?document.activeElement:y[0]||f("fallbackFocus")))throw new Error("You can't have a focus-trap without at least one focusable element");return e}function h(e){C.clickOutsideDeactivates&&!S.contains(e.target)&&r({returnFocus:!1})}function m(e){C.clickOutsideDeactivates||S.contains(e.target)||(e.preventDefault(),e.stopImmediatePropagation())}function _(e){S.contains(e.target)||(e.preventDefault(),e.stopImmediatePropagation(),"function"==typeof e.target.blur&&e.target.blur(),L&&v(L))}function M(e){"Tab"!==e.key&&9!==e.keyCode||b(e),!1!==C.escapeDeactivates&&a(e)&&r()}function b(e){if(g(),e.target.hasAttribute("tabindex")&&Number(e.target.getAttribute("tabindex"))<0)return L=e;e.preventDefault();var t=y.indexOf(e.target);return e.shiftKey?i(e.target===A||-1===y.indexOf(e.target)?E:y[t-1]):e.target===E?i(A):void i(y[t+1])}function g(){y=o(S),A=y[0],E=y[y.length-1]}function v(e){if(e.shiftKey)return i(E);i(A)}var y=[],A=null,E=null,w=null,k=!1,T=!1,L=null,S="string"==typeof e?document.querySelector(e):e,C=t||{};C.returnFocusOnDeactivate=!t||void 0===t.returnFocusOnDeactivate||t.returnFocusOnDeactivate,C.escapeDeactivates=!t||void 0===t.escapeDeactivates||t.escapeDeactivates;var O={activate:n,deactivate:r,pause:c,unpause:u};return O}function a(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}function i(e){e&&e.focus&&e!==document.activeElement&&(e.focus(),"input"===e.tagName.toLowerCase()&&e.select())}var o=n(1165),s=null;e.exports=r},function(e,t){function n(e){function t(r,a){if(r===e.documentElement)return!1;for(var i=0,o=n.length;i<o;i++)if(n[i][0]===r)return n[i][1];a=a||e.defaultView.getComputedStyle(r);var s=!1;return"none"===a.display?s=!0:r.parentNode&&(s=t(r.parentNode)),n.push([r,s]),s}var n=[];return function(n){if(n===e.documentElement)return!1;var r=e.defaultView.getComputedStyle(n);return!!t(n,r)||"hidden"===r.visibility}}e.exports=function(e,t){t=t||{};var r=e.ownerDocument||e,a=[],i=[],o=n(r),s=["input","select","a[href]","textarea","button","[tabindex]"],c=e.querySelectorAll(s.join(","));if(t.includeContainer){var u=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;s.some(function(t){return u.call(e,t)})&&(c=Array.prototype.slice.apply(c),c.unshift(e))}for(var l,d,f=0,p=c.length;f<p;f++)l=c[f],(d=parseInt(l.getAttribute("tabindex"),10)||l.tabIndex)<0||"INPUT"===l.tagName&&"hidden"===l.type||l.disabled||o(l,r)||(0===d?a.push(l):i.push({index:f,tabIndex:d,node:l}));var h=i.sort(function(e,t){return e.tabIndex===t.tabIndex?e.index-t.index:e.tabIndex-t.tabIndex}).map(function(e){return e.node});return Array.prototype.push.apply(h,a),h}},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return{__html:e.jumpstart_desc}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=r(i),s=n(3),c=r(s),u=n(6),l=r(u),d=n(4),f=r(d),p=n(5),h=r(p),m=n(1),_=r(m),M=n(18),b=n(10),g=n(41),v=r(g),y=n(8),A=n(916),E=n(23),w=n(80),k=n(475),T=r(k),L=function(e){function t(){var e,n,r,a;(0,c.default)(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return n=r=(0,f.default)(this,(e=t.__proto__||(0,o.default)(t)).call.apply(e,[this].concat(s))),r.activateButton=function(){return _.default.createElement(v.default,{primary:!0,onClick:r.props.jumpStartActivate,disabled:r.props.isJumpstarting},r.props.isJumpstarting?(0,y.translate)("Activating recommended features…"):(0,y.translate)("Activate recommended features"))},a=n,(0,f.default)(r,a)}return(0,h.default)(t,e),(0,l.default)(t,[{key:"renderInnerContent",value:function(){var e=this.props.jumpstartFeatures.map(function(e){return _.default.createElement("div",{className:"jp-jumpstart__feature-list-column",key:"module-card_"+e.name},_.default.createElement("div",{className:"jp-jumpstart__feature-content"},_.default.createElement("h4",{className:"jp-jumpstart__feature-content-title",title:e.name},e.name),_.default.createElement("p",{dangerouslySetInnerHTML:a(e)})))});return _.default.createElement("div",{className:"jp-jumpstart"},_.default.createElement("p",null,(0,y.translate)("We're now collecting stats, securing your site, and speeding up your images. Pretty soon you'll be able to see everything going on with your site right through Jetpack! Welcome aboard.")),_.default.createElement("p",null,this.activateButton()),_.default.createElement("div",null,_.default.createElement("h2",{className:"jp-jumpstart__feature-heading"},(0,y.translate)("Jetpack's recommended features include:")),_.default.createElement("div",{className:"jp-jumpstart__feature-list"},e),this.activateButton(),_.default.createElement("p",{className:"jp-jumpstart__note"},(0,y.translate)("Features can be activated or deactivated at any time."))))}},{key:"render",value:function(){return _.default.createElement(T.default,{svg:_.default.createElement("img",{src:w.imagePath+"man-and-laptop.svg",width:"199",height:"153",alt:(0,y.translate)("Person with laptop")}),title:(0,y.translate)("Your Jetpack site is ready to go!"),content:this.renderInnerContent(),dismiss:this.props.jumpStartSkip})}}]),t}(_.default.Component);L.displayName="JumpStart",t.default=(0,b.connect)(function(e){return{isJumpstarting:(0,A.isJumpstarting)(e),jumpstartFeatures:(0,E.getModulesByFeature)(e,"Jumpstart")}},function(e){return(0,M.bindActionCreators)({jumpStartActivate:A.jumpStartActivate,jumpStartSkip:A.jumpStartSkip},e)})(L),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.jumpStartSkip=t.jumpStartActivate=void 0;var a=n(114),i=n(8),o=n(646),s=n(15),c=r(s),u=n(16),l=n(56),d=r(l),f=n(23),p=n(103),h=(t.jumpStartActivate=function(){return function(e){return e({type:u.JUMPSTART_ACTIVATE}),e((0,a.removeNotice)("jumpstart-activate")),e((0,a.createNotice)("is-info",(0,i.translate)("Activating recommended features…"),{id:"jumpstart-activate"})),d.default.jumpStart("activate").then(function(){e({type:u.JUMPSTART_ACTIVATE_SUCCESS,jumpStart:!0}),c.default.tracks.recordEvent("jetpack_wpa_jumpstart_submit",{}),e((0,a.removeNotice)("jumpstart-activate")),e((0,a.createNotice)("is-success",(0,i.translate)("Recommended features active."),{id:"jumpstart-activate",duration:2e3})),e((0,f.fetchModules)()),e((0,p.fetchSettings)())}).catch(function(t){e({type:u.JUMPSTART_ACTIVATE_FAIL,error:t}),e((0,a.removeNotice)("jumpstart-activate")),e((0,a.createNotice)("is-error",(0,i.translate)("Recommended features failed to activate. %(error)s",{args:{error:t}}),{id:"jumpstart-activate"}))})}},(0,o.createHistory)());t.jumpStartSkip=function(){return function(e){return e({type:u.JUMPSTART_SKIP}),c.default.tracks.recordEvent("jetpack_wpa_jumpstart_skip",{}),h.push(window.location.pathname+"?page=jetpack#/dashboard"),d.default.jumpStart("deactivate").then(function(){e({type:u.JUMPSTART_SKIP_SUCCESS,jumpStart:!1})}).catch(function(t){e({type:u.JUMPSTART_SKIP_FAIL,error:t})})}}},function(e,t,n){function r(e,t,n){t=(n?i(e,t,n):void 0===t)?1:c(o(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var u=0,l=0,d=Array(s(r/t));u<r;)d[l++]=a(e,u,u+=t);return d}var a=n(466),i=n(219),o=n(227),s=Math.ceil,c=Math.max;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(7),M=r(_),b=n(10),g=n(128),v=r(g),y=n(8),A=n(14),E=r(A),w=n(61),k=n(21),T=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this.props,t=e.siteRawUrl,n=e.inDevMode,r=m.default.createElement("a",{href:"https://wordpress.com/stats/activity/"+t}),a=(0,y.translate)("{{a}}View your site's activity{{/a}} in a single feed.",{components:{a:r}});return m.default.createElement("div",{className:"jp-dash-item__interior"},m.default.createElement(v.default,{label:(0,y.translate)("Activity"),isModule:!1,className:(0,E.default)({"jp-dash-item__is-inactive":n}),pro:!1},m.default.createElement("p",{className:"jp-dash-item__description"},n?(0,y.translate)("Unavailable in Dev Mode."):a)))}}]),t}(h.Component);T.propTypes={inDevMode:M.default.bool.isRequired,siteRawUrl:M.default.string.isRequired,sitePlan:M.default.object.isRequired},T.defaultProps={inDevMode:!1,siteRawUrl:"",sitePlan:""},t.default=(0,b.connect)(function(e){return{sitePlan:(0,w.getSitePlan)(e),inDevMode:(0,k.isDevMode)(e)}})(T),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.DashStats=void 0;var a=n(59),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(7),M=r(_),b=n(1),g=r(b),v=n(228),y=r(v),A=n(27),E=r(A),w=n(234),k=r(w),T=n(25),L=r(T),S=n(1173),C=r(S),O=n(10),z=n(918),N=r(z),D=n(41),P=r(D),x=n(867),j=r(x),R=n(8),Y=n(15),I=r(Y),q=n(80),B=n(21),W=n(28),U=n(1182),H=r(U),F=n(1183),X=r(F),V=n(62),K=n(23),J=n(103),G=n(515),Q=r(G),Z=t.DashStats=function(e){function t(e){(0,u.default)(this,t);var n=(0,p.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e));return n.state={emptyStatsDismissed:e.isEmptyStatsCardDismissed},n}return(0,m.default)(t,e),(0,d.default)(t,[{key:"barClick",value:function(e){e.data.link&&(I.default.tracks.recordJetpackClick("stats_bar"),window.open(e.data.link,"_blank"))}},{key:"statsChart",value:function(e){var t=this.props,n=[],r=0;return"object"!==(0,i.default)(t.statsData[e])?{chartData:n,totalViews:!1}:((0,y.default)(t.statsData[e].data,function(a){var i=a[1],o=a[0],s="",c="";r+=i,"day"===e?(s=(0,R.moment)(o).format("MMM D"),c=(0,R.moment)(o).format("MMMM Do")):"week"===e?(o=o.replace(/W/g,"-"),s=(0,R.moment)(o).format("MMM D"),c=(0,R.translate)("Week of %(date)s",{args:{date:(0,R.moment)(o).format("MMMM Do")}})):(s=(0,R.moment)(o).format("MMM"),c=(0,R.moment)(o).format("MMMM, YYYY")),n.push({label:s,value:i,nestedValue:null,className:"statsChartbar",data:{link:"https://wordpress.com/stats/"+e+"/"+t.siteRawUrl+"?startDate="+o},tooltipData:[{label:c,value:(0,R.translate)("Views: %(numberOfViews)s",{args:{numberOfViews:(0,R.numberFormat)(i)}}),className:"tooltip class"},{label:(0,R.translate)("Click to view detailed stats.")}]})}),{chartData:n,totalViews:r})}},{key:"statsErrors",value:function(){return(0,E.default)(this.props.statsData,["general","errors"],!1)}},{key:"renderStatsChart",value:function(e){return g.default.createElement("div",null,g.default.createElement("div",{className:"jp-at-a-glance__stats-chart"},g.default.createElement(C.default,{data:e,barClick:this.barClick}),0===e.length&&g.default.createElement(j.default,null)),g.default.createElement("div",{id:"stats-bottom",className:"jp-at-a-glance__stats-bottom"},g.default.createElement(X.default,{statsData:this.props.statsData,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,isLinked:this.props.isLinked,connectUrl:this.props.connectUrl})))}},{key:"renderEmptyStatsCard",value:function(){var e=this,t=function(){e.setState({emptyStatsDismissed:!0}),e.props.updateOptions({dismiss_empty_stats_card:!0})};return g.default.createElement(L.default,{className:"jp-at-a-glance__stats-empty"},g.default.createElement("img",{src:q.imagePath+"stats-people.svg",width:"272",height:"144",alt:(0,R.translate)("Jetpack Stats People"),className:"jp-at-a-glance__stats-icon"}),g.default.createElement("p",null,(0,R.translate)("Hello there! Your stats have been activated."),g.default.createElement("br",null),(0,R.translate)("Just give us a little time to collect data so we can display it for you here.")),g.default.createElement(P.default,{onClick:t,primary:!0},(0,R.translate)("Okay, got it!")))}},{key:"renderStatsArea",value:function(){var e=this,t=function(){return e.props.updateOptions({stats:!0})};if(this.props.getOptionValue("stats")){if(this.statsErrors())return g.default.createElement("div",{className:"jp-at-a-glance__stats-inactive"},g.default.createElement("span",null,(0,R.translate)("Something happened while loading stats. Please try again later or {{a}}view your stats now on WordPress.com{{/a}}",{components:{a:g.default.createElement("a",{href:"https://wordpress.com/stats/insights/"+this.props.siteRawUrl})}})));var n=this.statsChart(this.props.activeTab),r=n.chartData,a=n.totalViews,i=r.length&&a<=0&&!this.props.isEmptyStatsCardDismissed&&!this.state.emptyStatsDismissed;return g.default.createElement("div",{className:"jp-at-a-glance__stats-container"},i?this.renderEmptyStatsCard():this.renderStatsChart(r))}return g.default.createElement("div",{className:"jp-at-a-glance__stats-inactive"},g.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},g.default.createElement("img",{src:q.imagePath+"stats.svg",width:"60",height:"60",alt:(0,R.translate)("Jetpack Stats Icon"),className:"jp-at-a-glance__stats-icon"})),g.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isDevMode?(0,R.translate)("Unavailable in Dev Mode"):(0,R.translate)("{{a}}Activate Site Stats{{/a}} to see detailed stats, likes, followers, subscribers, and more! {{a1}}Learn More{{/a1}}",{components:{a:g.default.createElement("a",{href:"javascript:void(0)",onClick:t}),a1:g.default.createElement("a",{href:"https://jetpack.com/support/wordpress-com-stats/",target:"_blank",rel:"noopener noreferrer"})}})),!this.props.isDevMode&&g.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},g.default.createElement(P.default,{onClick:t,primary:!0},(0,R.translate)("Activate Site Stats"))))}},{key:"maybeShowStatsTabs",value:function(){var e=this;if(!1===this.statsChart(this.props.activeTab).totalViews&&!this.props.isEmptyStatsCardDismissed&&!this.state.emptyStatsDismissed)return!1;var t=function(){I.default.tracks.recordJetpackClick({target:"stats_switch_view",view:"day"}),e.props.switchView("day"),e.props.fetchStatsData("day")},n=function(){I.default.tracks.recordJetpackClick({target:"stats_switch_view",view:"week"}),e.props.switchView("week"),e.props.fetchStatsData("week")},r=function(){I.default.tracks.recordJetpackClick({target:"stats_switch_view",view:"month"}),e.props.switchView("month"),e.props.fetchStatsData("month")};return this.props.getOptionValue("stats")&&!this.statsErrors()?g.default.createElement("ul",{className:"jp-at-a-glance__stats-views"},g.default.createElement("li",{tabIndex:"0",className:"jp-at-a-glance__stats-view"},g.default.createElement("a",{href:"javascript:void(0)",onClick:t,className:this.getClass("day")},(0,R.translate)("Days"))),g.default.createElement("li",{tabIndex:"0",className:"jp-at-a-glance__stats-view"},g.default.createElement("a",{href:"javascript:void(0)",onClick:n,className:this.getClass("week")},(0,R.translate)("Weeks"))),g.default.createElement("li",{tabIndex:"0",className:"jp-at-a-glance__stats-view"},g.default.createElement("a",{href:"javascript:void(0)",onClick:r,className:this.getClass("month")},(0,R.translate)("Months")))):void 0}},{key:"getClass",value:function(e){return this.props.activeTab===e?"jp-at-a-glance__stats-view-link is-current":"jp-at-a-glance__stats-view-link"}},{key:"render",value:function(){return"inactive"===this.props.getModuleOverride("stats")?g.default.createElement("div",null,g.default.createElement(Q.default,{moduleName:(0,R.translate)("Site Stats")})):this.props.isModuleAvailable&&g.default.createElement("div",null,g.default.createElement(H.default,{range:this.props.activeTab}),g.default.createElement(N.default,{label:(0,R.translate)("Site Stats")},this.maybeShowStatsTabs()),g.default.createElement(L.default,{className:"jp-at-a-glance__stats-card "+(this.props.isDevMode?"is-inactive":"")},this.renderStatsArea()))}}]),t}(b.Component);Z.propTypes={isDevMode:M.default.bool.isRequired,siteRawUrl:M.default.string.isRequired,siteAdminUrl:M.default.string.isRequired,statsData:M.default.any.isRequired,isModuleAvailable:M.default.bool.isRequired},t.default=(0,O.connect)(function(e){return{isModuleAvailable:(0,K.isModuleAvailable)(e,"stats"),activeTab:(0,V.getActiveStatsTab)(e),isDevMode:(0,B.isDevMode)(e),isLinked:(0,B.isCurrentUserLinked)(e),connectUrl:(0,B.getConnectUrl)(e),statsData:(0,k.default)((0,V.getStatsData)(e))?(0,W.getInitialStateStatsData)(e):(0,V.getStatsData)(e),isEmptyStatsCardDismissed:(0,J.emptyStatsCardDismissed)(e),getModuleOverride:function(t){return(0,K.getModuleOverride)(e,t)}}},function(e){return{switchView:function(t){return e((0,V.statsSwitchTab)(t))},fetchStatsData:function(t){return e((0,V.fetchStatsData)(t))}}})(Z)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=n(7),_=n(64),M=n(919),b=n(1174),g=n(1180);n(1181);var v=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.state={maxBars:100,width:650},r.resize=function(){var e=r.refs.chart,t=e.clientWidth-82,n=void 0;g.hasTouch()?(t=t<=0?350:t,n=Math.floor(t/r.props.minTouchBarWidth)):n=Math.floor(t/r.props.minBarWidth),r.setState({maxBars:n,width:t})},r.getYAxisMax=function(e){var t=Math.max.apply(null,e),n=Math.pow(10,t.toString().length-1),r=Math.ceil((t+1)/n)*n;return r<10&&(r=10),r},r.getData=function(){var e=r.props.data;return e=e.slice(0-r.state.maxBars)},r.getValues=function(){var e=r.getData();return e=e.map(function(e){return e.value},r)},r.isEmptyChart=function(e){return e=e.filter(function(e){return e>0},r),0===e.length},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){this.resize=M(this.resize,400),window.addEventListener("resize",this.resize),this.resize()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.resize)}},{key:"componentWillReceiveProps",value:function(e){this.props.loading&&!e.loading&&this.resize()}},{key:"render",value:function(){var e=this.getValues(),t=this.getYAxisMax(e),n=this.getData(),r=void 0;return e.length&&this.isEmptyChart(e)&&(r=h.createElement("div",{className:"dops-chart__empty"},h.createElement("span",{className:"dops-chart__empty_notice"},"No activity this period"))),h.createElement("div",{ref:"chart",className:"dops-chart"},h.createElement("div",{className:"dops-chart__y-axis-markers"},h.createElement("div",{className:"dops-chart__y-axis-marker is-hundred"}),h.createElement("div",{className:"dops-chart__y-axis-marker is-fifty"}),h.createElement("div",{className:"dops-chart__y-axis-marker is-zero"})),h.createElement("div",{className:"dops-chart__y-axis"},h.createElement("div",{className:"dops-chart__y-axis-width-fix"},new Number(1e5).toLocaleString()),h.createElement("div",{className:"dops-chart__y-axis-label is-hundred"},t.toLocaleString()),h.createElement("div",{className:"dops-chart__y-axis-label is-fifty"},(t/2).toLocaleString()),h.createElement("div",{className:"dops-chart__y-axis-label is-zero"},0)),h.createElement(b,{barClick:this.props.barClick,data:n,yAxisMax:t,chartWidth:this.state.width,isTouch:g.hasTouch()}),r)}}]),t}(h.Component);v.displayName="ModuleChart",v.propTypes={loading:m.bool,data:m.array,minTouchBarWidth:m.number,minBarWidth:m.number,barClick:m.func},v.defaultProps={minTouchBarWidth:42,minBarWidth:15,barClick:_},t.default=v,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=n(1),_=n(1175),M=n(1178),b=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.buildBars=function(e){var t=r.props.data.length,n=r.props.chartWidth,a=n/t,i="bottom right";return r.props.data.map(function(r,o){var s=a*(o+1);return s+230>n&&s+a-230>0&&(i="bottom left"),m.createElement(_,{index:o,key:o,isTouch:this.props.isTouch,tooltipPosition:i,className:r.className,clickHandler:this.props.barClick,data:r,max:e,count:t})},r)},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.createElement("div",null,m.createElement("div",{className:"dops-chart__bars"},this.buildBars(this.props.yAxisMax)),m.createElement(M,{data:this.props.data,labelWidth:42}))}}]),t}(m.Component);b.displayName="ModuleChartBarContainer",b.propTypes={isTouch:h.bool,data:h.array,yAxisMax:h.number,width:h.number,barClick:h.func},t.default=b,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=n(1),_=n(14),M=n(1176),b=n(65),g=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.state={showPopover:!1},r.buildSections=function(){var e=r.props.data.value,t=r.props.max,n=t?Math.ceil(e/t*1e4)/100:0,a=100-n,i=Math.max(1,Math.floor(a)),o=[],s=r.props.data.nestedValue,c={"dops-chart__bar-section":!0,"is-spacer":!0,"is-ghost":100===a&&!r.props.active},u=void 0,l=void 0,d=void 0,f={height:i+"%"};o.push(m.createElement("div",{key:"spacer",className:_(c),style:f}));var p={top:i+"%"};return s&&(l=e?Math.ceil(s/e*1e4)/100:0,d={height:l+"%"},u=m.createElement("div",{key:"nestedValue",className:"dops-chart__bar-section-inner",style:d})),o.push(m.createElement("div",{ref:"valueBar",key:"value",className:"dops-chart__bar-section is-bar",style:p},u)),o.push(m.createElement("div",{key:"label",className:"dops-chart__bar-label"},r.props.label)),o},r.clickHandler=function(){"function"==typeof r.props.clickHandler&&r.props.clickHandler(r.props.data)},r.mouseEnter=function(){r.setState({showPopover:!0})},r.mouseLeave=function(){r.setState({showPopover:!1})},r.renderTooltip=function(){if(!r.props.data.tooltipData||!r.props.data.tooltipData.length||r.props.isTouch)return null;var e=r.props.data.tooltipData,t=e.map(function(e,t){var n=["module-content-list-item"],r=void 0;return e.icon&&(r=m.createElement(b,{icon:e.icon,size:18})),n.push(e.className),m.createElement("li",{key:t,className:n.join(" ")},m.createElement("span",{className:"dops-wrapper"},m.createElement("span",{className:"value"},e.value),m.createElement("span",{className:"label"},r,e.label)))});return m.createElement(M,{className:"dops-chart__tooltip",id:"popover__chart-bar",showDelay:200,context:r.refs&&r.refs.valueBar,isVisible:r.state.showPopover,position:r.props.tooltipPosition},m.createElement("ul",null,t))},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this.props.count||1,t={"dops-chart__bar":!0};this.props.className&&(t[this.props.className]=!0);var n={width:1/e*100+"%"};return m.createElement("div",{onClick:this.clickHandler,onMouseEnter:this.mouseEnter,onMouseLeave:this.mouseLeave,className:_(t),style:n},this.buildSections(),m.createElement("div",{className:"dops-chart__bar-marker is-hundred"}),m.createElement("div",{className:"dops-chart__bar-marker is-fifty"}),m.createElement("div",{className:"dops-chart__bar-marker is-zero"}),this.renderTooltip())}}]),t}(m.Component);g.displayName="ModuleChartBar",g.propTypes={isTouch:h.bool,tooltipPosition:h.string,className:h.string,clickHandler:h.func,data:h.object.isRequired,max:h.number,count:h.number},t.default=g,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(14),g=r(b),v=n(833),y=r(v),A=n(808),E=r(A);n(1177);var w=function(){},k=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){if(!this.props.showOnMobile&&E.default.isMobile())return null;var e=(0,g.default)("dops-popover","dops-tooltip","is-"+this.props.position,this.props.className);return M.default.createElement(y.default,{autoPosition:this.props.autoPosition,className:e,rootClassName:this.props.rootClassName,context:this.props.context,id:this.props.id,isVisible:this.props.isVisible,onClose:w,position:this.props.position,showDelay:this.props.showDelay},this.props.children)}}]),t}(_.Component);k.propTypes={autoPosition:m.default.bool,className:m.default.string,id:m.default.string,isVisible:m.default.bool,position:m.default.string,rootClassName:m.default.string,status:m.default.string,showDelay:m.default.number,showOnMobile:m.default.bool},k.defaultProps={showDelay:100,position:"top",showOnMobile:!1},t.default=k,e.exports=t.default},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=n(7),_=n(919),M=n(1179),b=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.state={divisor:1,spacing:r.props.labelWidth},r.resize=function(e){var t=r.props,n=r.refs.axis;!e||e instanceof Event||(t=e),n.style.overflow="hidden";var a=n.clientWidth;n.style.overflow="visible";var i=t.data.length||1,o=a/i,s=t.labelWidth,c=Math.ceil(s/o);r.setState({divisor:c,spacing:o})},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){this.resizeThrottled=_(this.resize,400),window.addEventListener("resize",this.resizeThrottled),this.resize()}},{key:"componentWillUnmount",value:function(){this.resizeThrottled.cancel&&this.resizeThrottled.cancel(),window.removeEventListener("resize",this.resizeThrottled)}},{key:"componentWillReceiveProps",value:function(e){this.resize(e)}},{key:"render",value:function(){var e=this.props.data,t=e.map(function(t,n){var r=n*this.state.spacing+(this.state.spacing-this.props.labelWidth)/2,a=e.length-n-1,i=void 0;return a%this.state.divisor==0&&(i=h.createElement(M,{key:n,label:t.label,width:this.props.labelWidth,x:r})),i},this);return h.createElement("div",{ref:"axis",className:"dops-chart__x-axis"},t)}}]),t}(h.Component);b.displayName="ModuleChartXAxis",b.propTypes={labelWidth:m.number.isRequired,
40
  this.priv=this.priv.umod(this.ec.curve.n)},r.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?s(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||s(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},r.prototype.derive=function(e){return e.mul(this.priv).getX()},r.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},r.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},r.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,n){"use strict";function r(e,t){if(e instanceof r)return e;this._importDER(e,t)||(d(e.r&&e.s,"Signature without r or s"),this.r=new c(e.r,16),this.s=new c(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function a(){this.place=0}function i(e,t){var n=e[t.place++];if(!(128&n))return n;for(var r=15&n,a=0,i=0,o=t.place;i<r;i++,o++)a<<=8,a|=e[o];return t.place=o,a}function o(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function s(e,t){if(t<128)return void e.push(t);var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}var c=n(57),u=n(84),l=u.utils,d=l.assert;e.exports=r,r.prototype._importDER=function(e,t){e=l.toArray(e,t);var n=new a;if(48!==e[n.place++])return!1;if(i(e,n)+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var r=i(e,n),o=e.slice(n.place,r+n.place);if(n.place+=r,2!==e[n.place++])return!1;var s=i(e,n);if(e.length!==s+n.place)return!1;var u=e.slice(n.place,s+n.place);return 0===o[0]&&128&o[1]&&(o=o.slice(1)),0===u[0]&&128&u[1]&&(u=u.slice(1)),this.r=new c(o),this.s=new c(u),this.recoveryParam=null,!0},r.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=o(t),n=o(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];s(r,t.length),r=r.concat(t),r.push(2),s(r,n.length);var a=r.concat(n),i=[48];return s(i,a.length),i=i.concat(a),l.encode(i,e)}},function(e,t,n){"use strict";function r(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof r))return new r(e);var e=i.curves[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=a.sha512}var a=n(846),i=n(84),o=i.utils,s=o.assert,c=o.parseBytes,u=n(1055),l=n(1056);e.exports=r,r.prototype.sign=function(e,t){e=c(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),a=this.g.mul(r),i=this.encodePoint(a),o=this.hashInt(i,n.pubBytes(),e).mul(n.priv()),s=r.add(o).umod(this.curve.n);return this.makeSignature({R:a,S:s,Rencoded:i})},r.prototype.verify=function(e,t,n){e=c(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),a=this.hashInt(t.Rencoded(),r.pubBytes(),e),i=this.g.mul(t.S());return t.R().add(r.pub().mul(a)).eq(i)},r.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},r.prototype.keyFromPublic=function(e){return u.fromPublic(this,e)},r.prototype.keyFromSecret=function(e){return u.fromSecret(this,e)},r.prototype.makeSignature=function(e){return e instanceof l?e:new l(this,e)},r.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},r.prototype.decodePoint=function(e){e=o.parseBytes(e);var t=e.length-1,n=e.slice(0,t).concat(-129&e[t]),r=0!=(128&e[t]),a=o.intFromLE(n);return this.curve.pointFromY(a,r)},r.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},r.prototype.decodeInt=function(e){return o.intFromLE(e)},r.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,n){"use strict";function r(e,t){this.eddsa=e,this._secret=s(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=s(t.pub)}var a=n(84),i=a.utils,o=i.assert,s=i.parseBytes,c=i.cachedProperty;r.fromPublic=function(e,t){return t instanceof r?t:new r(e,{pub:t})},r.fromSecret=function(e,t){return t instanceof r?t:new r(e,{secret:t})},r.prototype.secret=function(){return this._secret},c(r,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),c(r,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),c(r,"privBytes",function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r}),c(r,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),c(r,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),c(r,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),r.prototype.sign=function(e){return o(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},r.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},r.prototype.getSecret=function(e){return o(this._secret,"KeyPair is public only"),i.encode(this.secret(),e)},r.prototype.getPublic=function(e){return i.encode(this.pubBytes(),e)},e.exports=r},function(e,t,n){"use strict";function r(e,t){this.eddsa=e,"object"!=typeof t&&(t=u(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),s(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof a&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}var a=n(57),i=n(84),o=i.utils,s=o.assert,c=o.cachedProperty,u=o.parseBytes;c(r,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),c(r,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),c(r,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),c(r,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),r.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},r.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},e.exports=r},function(e,t,n){"use strict";var r=n(471);t.certificate=n(1068);var a=r.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});t.RSAPrivateKey=a;var i=r.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});t.RSAPublicKey=i;var o=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});t.PublicKey=o;var s=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),c=r.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});t.PrivateKey=c;var u=r.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});t.EncryptedPrivateKey=u;var l=r.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});t.DSAPrivateKey=l,t.DSAparam=r.define("DSAparam",function(){this.int()});var d=r.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(f),this.key("publicKey").optional().explicit(1).bitstr())});t.ECPrivateKey=d;var f=r.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});t.signature=r.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},function(e,t,n){function r(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}var a=n(471),i=n(19);t.define=function(e,t){return new r(e,t)},r.prototype._createNamed=function(e){var t;try{t=n(1059).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},r.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(a.decoders[e])),this.decoders[e]},r.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},r.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(a.encoders[e])),this.encoders[e]},r.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},function(module,exports,__webpack_require__){function Context(){}var indexOf=__webpack_require__(1060),Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in e)t.push(n);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,n){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch(e){return function(e,t,n){e[t]=n}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var n=t.contentWindow,r=n.eval,a=n.execScript;!r&&a&&(a.call(n,"null"),r=n.eval),forEach(Object_keys(e),function(t){n[t]=e[t]}),forEach(globals,function(t){e[t]&&(n[t]=e[t])});var i=Object_keys(n),o=r.call(n,this.code);return forEach(Object_keys(n),function(t){(t in e||-1===indexOf(i,t))&&(e[t]=n[t])}),forEach(globals,function(t){t in e||defineProp(e,t,n[t])}),document.body.removeChild(t),o},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),n=this.runInContext(t);return forEach(Object_keys(t),function(n){e[n]=t[n]}),n},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var n=Script(t);return n[e].apply(n,[].slice.call(arguments,1))}}),exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(n){t[n]=e[n]}),t}},function(e,t){var n=[].indexOf;e.exports=function(e,t){if(n)return e.indexOf(t);for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}},function(e,t,n){function r(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}var i=n(19);t.Reporter=r,r.prototype.isError=function(e){return e instanceof a},r.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},r.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},r.prototype.enterKey=function(e){return this._reporterState.path.push(e)},r.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},r.prototype.leaveKey=function(e,t,n){var r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},r.prototype.leaveObject=function(e){var t=this._reporterState,n=t.obj;return t.obj=e,n},r.prototype.error=function(e){var t,n=this._reporterState,r=e instanceof a;if(t=r?e:new a(n.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},r.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},i(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,n){function r(e,t){var n={};this._baseState=n,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}var a=n(472).Reporter,i=n(472).EncoderBuffer,o=n(472).DecoderBuffer,s=n(105),c=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(c),l=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];e.exports=r;var d=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];r.prototype.clone=function(){var e=this._baseState,t={};d.forEach(function(n){t[n]=e[n]});var n=new this.constructor(t.parent);return n._baseState=t,n},r.prototype._wrap=function(){var e=this._baseState;u.forEach(function(t){this[t]=function(){var n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}},this)},r.prototype._init=function(e){var t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),s.equal(t.children.length,1,"Root node can have only one child")},r.prototype._useArgs=function(e){var t=this._baseState,n=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==n.length&&(s(null===t.children),t.children=n,n.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(n){n==(0|n)&&(n|=0);var r=e[n];t[r]=n}),t}))},l.forEach(function(e){r.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),c.forEach(function(e){r.prototype[e]=function(){var t=this._baseState,n=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(n),this}}),r.prototype.use=function(e){s(e);var t=this._baseState;return s(null===t.use),t.use=e,this},r.prototype.optional=function(){return this._baseState.optional=!0,this},r.prototype.def=function(e){var t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},r.prototype.explicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},r.prototype.implicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},r.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},r.prototype.key=function(e){var t=this._baseState;return s(null===t.key),t.key=e,this},r.prototype.any=function(){return this._baseState.any=!0,this},r.prototype.choice=function(e){var t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},r.prototype.contains=function(e){var t=this._baseState;return s(null===t.use),t.contains=e,this},r.prototype._decode=function(e,t){var n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var r=n.default,a=!0,i=null;if(null!==n.key&&(i=e.enterKey(n.key)),n.optional){var s=null;if(null!==n.explicit?s=n.explicit:null!==n.implicit?s=n.implicit:null!==n.tag&&(s=n.tag),null!==s||n.any){if(a=this._peekTag(e,s,n.any),e.isError(a))return a}else{var c=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(c)}}var u;if(n.obj&&a&&(u=e.enterObject()),a){if(null!==n.explicit){var l=this._decodeTag(e,n.explicit);if(e.isError(l))return l;e=l}var d=e.offset;if(null===n.use&&null===n.choice){if(n.any)var c=e.save();var f=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(f))return f;n.any?r=e.raw(c):e=f}if(t&&t.track&&null!==n.tag&&t.track(e.path(),d,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),r=n.any?r:null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),e.isError(r))return r;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(n){n._decode(e,t)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var p=new o(r);r=this._getUse(n.contains,e._reporterState.obj)._decode(p,t)}}return n.obj&&a&&(r=e.leaveObject(u)),null===n.key||null===r&&!0!==a?null!==i&&e.exitKey(i):e.leaveKey(i,n.key,r),r},r.prototype._decodeGeneric=function(e,t,n){var r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},r.prototype._getUse=function(e,t){var n=this._baseState;return n.useDecoder=this._use(e,t),s(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},r.prototype._decodeChoice=function(e,t){var n=this._baseState,r=null,a=!1;return Object.keys(n.choice).some(function(i){var o=e.save(),s=n.choice[i];try{var c=s._decode(e,t);if(e.isError(c))return!1;r={type:i,value:c},a=!0}catch(t){return e.restore(o),!1}return!0},this),a?r:e.error("Choice not matched")},r.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},r.prototype._encode=function(e,t,n){var r=this._baseState;if(null===r.default||r.default!==e){var a=this._encodeValue(e,t,n);if(void 0!==a&&!this._skipDefault(a,t,n))return a}},r.prototype._encodeValue=function(e,t,n){var r=this._baseState;if(null===r.parent)return r.children[0]._encode(e,t||new a);var i=null;if(this.reporter=t,r.optional&&void 0===e){if(null===r.default)return;e=r.default}var o=null,s=!1;if(r.any)i=this._createEncoderBuffer(e);else if(r.choice)i=this._encodeChoice(e,t);else if(r.contains)o=this._getUse(r.contains,n)._encode(e,t),s=!0;else if(r.children)o=r.children.map(function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");var r=t.enterKey(n._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var a=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),a},this).filter(function(e){return e}),o=this._createEncoderBuffer(o);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return t.error("Too many args for : "+r.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,o=this._createEncoderBuffer(e.map(function(n){var r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)},c))}else null!==r.use?i=this._getUse(r.use,n)._encode(e,t):(o=this._encodePrimitive(r.tag,e),s=!0);var i;if(!r.any&&null===r.choice){var u=null!==r.implicit?r.implicit:r.tag,l=null===r.implicit?"universal":"context";null===u?null===r.use&&t.error("Tag could be omitted only for .use()"):null===r.use&&(i=this._encodeComposite(u,s,l,o))}return null!==r.explicit&&(i=this._encodeComposite(r.explicit,!1,"context",i)),i},r.prototype._encodeChoice=function(e,t){var n=this._baseState,r=n.choice[e.type];return r||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},r.prototype._encodePrimitive=function(e,t){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},r.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},r.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},function(e,t,n){var r=n(902);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=r._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=r._reverse(t.tag)},function(e,t,n){var r=t;r.der=n(903),r.pem=n(1065)},function(e,t,n){function r(e){o.call(this,e),this.enc="pem"}var a=n(19),i=n(39).Buffer,o=n(903);a(r,o),e.exports=r,r.prototype.decode=function(e,t){for(var n=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,c=-1,u=0;u<n.length;u++){var l=n[u].match(a);if(null!==l&&l[2]===r){if(-1!==s){if("END"!==l[1])break;c=u;break}if("BEGIN"!==l[1])break;s=u}}if(-1===s||-1===c)throw new Error("PEM section not found for: "+r);var d=n.slice(s+1,c).join("");d.replace(/[^a-z0-9\+\/=]+/gi,"");var f=new i(d,"base64");return o.prototype.decode.call(this,f,t)}},function(e,t,n){var r=t;r.der=n(904),r.pem=n(1067)},function(e,t,n){function r(e){i.call(this,e),this.enc="pem"}var a=n(19),i=n(904);a(r,i),e.exports=r,r.prototype.encode=function(e,t){for(var n=i.prototype.encode.call(this,e),r=n.toString("base64"),a=["-----BEGIN "+t.label+"-----"],o=0;o<r.length;o+=64)a.push(r.slice(o,o+64));return a.push("-----END "+t.label+"-----"),a.join("\n")}},function(e,t,n){"use strict";var r=n(471),a=r.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),i=r.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),o=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional())}),s=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}),c=r.define("RelativeDistinguishedName",function(){this.setof(i)}),u=r.define("RDNSequence",function(){this.seqof(c)}),l=r.define("Name",function(){this.choice({rdnSequence:this.use(u)})}),d=r.define("Validity",function(){this.seq().obj(this.key("notBefore").use(a),this.key("notAfter").use(a))}),f=r.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),p=r.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(l),this.key("validity").use(d),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(f).optional())}),h=r.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(p),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())});e.exports=h},function(e,t){e.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},function(e,t,n){(function(t){var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,a=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----/m,i=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,o=n(511),s=n(843);e.exports=function(e,n){var c,u=e.toString(),l=u.match(r);if(l){var d="aes"+l[1],f=new t(l[2],"hex"),p=new t(l[3].replace(/[\r\n]/g,""),"base64"),h=o(n,f.slice(0,8),parseInt(l[1],10)).key,m=[],_=s.createDecipheriv(d,h,f);m.push(_.update(p)),m.push(_.final()),c=t.concat(m)}else{var M=u.match(i);c=new t(M[2].replace(/[\r\n]/g,""),"base64")}return{tag:u.match(a)[1],data:c}}}).call(t,n(39).Buffer)},function(e,t,n){(function(t){function r(e,n,r,o,c){var l=u(r);if("ec"===l.type){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");return a(e,n,l)}if("dsa"===l.type){if("dsa"!==o)throw new Error("wrong public key type");return i(e,n,l)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");n=t.concat([c,n]);for(var d=l.modulus.byteLength(),f=[1],p=0;n.length+f.length+2<d;)f.push(255),p++;f.push(0);for(var h=-1;++h<n.length;)f.push(n[h]);f=new t(f);var m=s.mont(l.modulus);e=new s(e).toRed(m),e=e.redPow(new s(l.publicExponent)),e=new t(e.fromRed().toArray());var _=p<8?1:0;for(d=Math.min(e.length,f.length),e.length!==f.length&&(_=1),h=-1;++h<d;)_|=e[h]^f[h];return 0===_}function a(e,t,n){var r=l[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var a=new c(r),i=n.data.subjectPrivateKey.data;return a.verify(t,e,i)}function i(e,t,n){var r=n.data.p,a=n.data.q,i=n.data.g,c=n.data.pub_key,l=u.signature.decode(e,"der"),d=l.s,f=l.r;o(d,a),o(f,a);var p=s.mont(r),h=d.invm(a);return 0===i.toRed(p).redPow(new s(t).mul(h).mod(a)).fromRed().mul(c.toRed(p).redPow(f.mul(h).mod(a)).fromRed()).mod(r).mod(a).cmp(f)}function o(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}var s=n(57),c=n(84).ec,u=n(513),l=n(905);e.exports=r}).call(t,n(39).Buffer)},function(e,t,n){(function(t){function r(e){this.curveType=s[e],this.curveType||(this.curveType={name:e}),this.curve=new i.ec(this.curveType.name),this.keys=void 0}function a(e,n,r){Array.isArray(e)||(e=e.toArray());var a=new t(e);if(r&&a.length<r){var i=new t(r-a.length);i.fill(0),a=t.concat([i,a])}return n?a.toString(n):a}var i=n(84),o=n(57);e.exports=function(e){return new r(e)};var s={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};s.p224=s.secp224r1,s.p256=s.secp256r1=s.prime256v1,s.p192=s.secp192r1=s.prime192v1,s.p384=s.secp384r1,s.p521=s.secp521r1,r.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},r.prototype.computeSecret=function(e,n,r){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),a(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},r.prototype.getPublicKey=function(e,t){var n=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(n[n.length-1]%2?n[0]=7:n[0]=6),a(n,e)},r.prototype.getPrivateKey=function(e){return a(this.keys.getPrivate(),e)},r.prototype.setPublicKey=function(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this.keys._importPublic(e),this},r.prototype.setPrivateKey=function(e,n){n=n||"utf8",t.isBuffer(e)||(e=new t(e,n));var r=new o(e);return r=r.toString(16),this.keys._importPrivate(r),this}}).call(t,n(39).Buffer)},function(e,t,n){t.publicEncrypt=n(1074),t.privateDecrypt=n(1075),t.privateEncrypt=function(e,n){return t.publicEncrypt(e,n,!0)},t.publicDecrypt=function(e,n){return t.privateDecrypt(e,n,!0)}},function(e,t,n){(function(t){function r(e,n){var r=e.modulus.byteLength(),a=n.length,i=c("sha1").update(new t("")).digest(),o=i.length,f=2*o;if(a>r-f-2)throw new Error("message too long");var p=new t(r-a-f-2);p.fill(0);var h=r-o-1,m=s(o),_=l(t.concat([i,p,new t([1]),n],h),u(m,h)),M=l(m,u(_,o));return new d(t.concat([new t([0]),M,_],r))}function a(e,n,r){var a=n.length,o=e.modulus.byteLength();if(a>o-11)throw new Error("message too long");var s;return r?(s=new t(o-a-3),s.fill(255)):s=i(o-a-3),new d(t.concat([new t([0,r?1:2]),s,new t([0]),n],o))}function i(e,n){for(var r,a=new t(e),i=0,o=s(2*e),c=0;i<e;)c===o.length&&(o=s(2*e),c=0),(r=o[c++])&&(a[i++]=r);return a}var o=n(513),s=n(235),c=n(467),u=n(906),l=n(907),d=n(57),f=n(908),p=n(845);e.exports=function(e,t,n){var i;i=e.padding?e.padding:n?1:4;var s,c=o(e);if(4===i)s=r(c,t);else if(1===i)s=a(c,t,n);else{if(3!==i)throw new Error("unknown padding");if(s=new d(t),s.cmp(c.modulus)>=0)throw new Error("data too long for modulus")}return n?p(s,c):f(s,c)}}).call(t,n(39).Buffer)},function(e,t,n){(function(t){function r(e,n){var r=(e.modulus,e.modulus.byteLength()),a=(n.length,d("sha1").update(new t("")).digest()),o=a.length;if(0!==n[0])throw new Error("decryption error");var u=n.slice(1,o+1),l=n.slice(o+1),f=c(u,s(l,o)),p=c(l,s(f,r-o-1));if(i(a,p.slice(0,o)))throw new Error("decryption error");for(var h=o;0===p[h];)h++;if(1!==p[h++])throw new Error("decryption error");return p.slice(h)}function a(e,t,n){for(var r=t.slice(0,2),a=2,i=0;0!==t[a++];)if(a>=t.length){i++;break}var o=t.slice(2,a-1);t.slice(a-1,a);if(("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&i++,o.length<8&&i++,i)throw new Error("decryption error");return t.slice(a)}function i(e,n){e=new t(e),n=new t(n);var r=0,a=e.length;e.length!==n.length&&(r++,a=Math.min(e.length,n.length));for(var i=-1;++i<a;)r+=e[i]^n[i];return r}var o=n(513),s=n(906),c=n(907),u=n(57),l=n(845),d=n(467),f=n(908);e.exports=function(e,n,i){var s;s=e.padding?e.padding:i?1:4;var c=o(e),d=c.modulus.byteLength();if(n.length>d||new u(n).cmp(c.modulus)>=0)throw new Error("decryption error");var p;p=i?f(new u(n),c):l(n,c);var h=new t(d-p.length);if(h.fill(0),p=t.concat([h,p],d),4===s)return r(c,p);if(1===s)return a(c,p,i);if(3===s)return p;throw new Error("unknown padding")}}).call(t,n(39).Buffer)},function(e,t,n){"use strict";(function(e,r){function a(){
41
  throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}function i(e,t){if("number"!=typeof e||e!==e)throw new TypeError("offset must be a number");if(e>m||e<0)throw new TypeError("offset must be a uint32");if(e>p||e>t)throw new RangeError("offset out of range")}function o(e,t,n){if("number"!=typeof e||e!==e)throw new TypeError("size must be a number");if(e>m||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>p)throw new RangeError("buffer too small")}function s(t,n,r,a){if(!(f.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof n)a=n,n=0,r=t.length;else if("function"==typeof r)a=r,r=t.length-n;else if("function"!=typeof a)throw new TypeError('"cb" argument must be a function');return i(n,t.length),o(r,n,t.length),c(t,n,r,a)}function c(e,t,n,a){if(r.browser){var i=e.buffer,o=new Uint8Array(i,t,n);return h.getRandomValues(o),a?void r.nextTick(function(){a(null,e)}):e}return a?void d(n,function(n,r){if(n)return a(n);r.copy(e,t),a(null,e)}):(d(n).copy(e,t),e)}function u(t,n,r){if(void 0===n&&(n=0),!(f.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return i(n,t.length),void 0===r&&(r=t.length-n),o(r,n,t.length),c(t,n,r)}var l=n(35),d=n(235),f=l.Buffer,p=l.kMaxLength,h=e.crypto||e.msCrypto,m=Math.pow(2,32)-1;h&&h.getRandomValues||!r.browser?(t.randomFill=s,t.randomFillSync=u):(t.randomFill=a,t.randomFillSync=a)}).call(t,n(45),n(63))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(113),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(149),M=r(_),b=n(7),g=r(b),v=n(1),y=r(v),A=n(10),E=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var o=arguments.length,c=Array(o),l=0;l<o;l++)c[l]=arguments[l];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(c))),r.renderChildren=function(){var e=void 0;e=r.props&&((0,i.default)(r.props).length>1||!r.props.children)?y.default.createElement("div",r.props,r.props.children):r.props.children,r.context.store&&(e=y.default.createElement(A.Provider,{store:r.context.store},e)),M.default.render(e,r.container)},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"componentDidMount",value:function(){this.container=document.createElement("div"),document.body.appendChild(this.container),this.renderChildren()}},{key:"componentDidUpdate",value:function(){this.renderChildren()}},{key:"componentWillUnmount",value:function(){this.container&&(M.default.unmountComponentAtNode(this.container),document.body.removeChild(this.container),delete this.container)}},{key:"render",value:function(){return null}}]),t}(y.default.Component);E.displayName="RootChild",E.propTypes={children:g.default.node},E.contextTypes={store:g.default.object},t.default=E,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(){var e={};return e.top=window.scrollY,e.left=window.scrollX,e.width=window.innerWidth,e.height=window.innerHeight,e.right=e.left+e.width,e.bottom=e.top+e.height,b("viewport: %o",e),e}function i(){y=a()}function o(e,t){for(var n=[e,g[e],v[e],g[v[e]]],r=-1/0,a=void 0,i=0,o=n.length;i<o;i++){var s=n[i],c=t[s];if(c>0)return s;c>r&&(r=c,a=e)}return a}function s(e,t,n,r,a,i){for(var o=t?[e+" "+t,e,e+" "+g[t]]:[e,e+" "+v[e],e+" "+g[v[e]]],s=void 0,u=0,l=a*i,d=0,f=o.length;d<f;d++){var p=o[d],h=c(p,n,r),m=h.left+a,_=h.top+i,M=Math.min(h.top<y.top?_-y.top:y.bottom-h.top,i),b=Math.min(h.left<y.left?m-y.left:y.right-h.left,a),A=b*M;if(A===l)return p;A>u&&(u=A,s=p)}return s}function c(e,t,n){var r=(0,m.default)(t);if(!r)throw new Error("could not get bounding client rect of Tip element");var a=r.width,i=r.height,o=(0,m.default)(n);if(!o)throw new Error("could not get bounding client rect of `target`");var s=o.width,c=o.height,l=u(o,document);if(!l)throw new Error("could not determine page offset of `target`");var d={};switch(e){case"top":d={top:l.top-i,left:l.left+s/2-a/2};break;case"bottom":d={top:l.top+c,left:l.left+s/2-a/2};break;case"right":d={top:l.top+c/2-i/2,left:l.left+s};break;case"left":d={top:l.top+c/2-i/2,left:l.left-a};break;case"top left":d={top:l.top-i,left:l.left+s/2-a+15};break;case"top right":d={top:l.top-i,left:l.left+s/2-15};break;case"bottom left":d={top:l.top+c,left:l.left+s/2-a+15};break;case"bottom right":d={top:l.top+c,left:l.left+s/2-15};break;case"left top":d={top:l.top+c/2-i,left:l.left-a};break;case"left bottom":d={top:l.top+c/2,left:l.left-a};break;case"right top":d={top:l.top+c/2-i,left:l.left+s};break;case"right bottom":d={top:l.top+c/2,left:l.left+s};break;default:throw new Error('invalid position "'+e+'"')}return d}function u(e,t){var n=t.body||t.getElementsByTagName("body")[0],r=t.documentElement||n.parentNode,a=r.clientTop||n.clientTop||0,i=r.clientLeft||n.clientLeft||0,o=window.pageYOffset||r.scrollTop,s=window.pageXOffset||r.scrollLeft;return{top:e.top+o-a,left:e.left+s-i}}Object.defineProperty(t,"__esModule",{value:!0}),t.isElement=t.offset=t.suggested=t.unbindWindowListeners=t.bindWindowListeners=t.constrainLeft=void 0;var l=n(59),d=r(l),f=n(909),p=r(f),h=n(1085),m=r(h),_=n(102),M=r(_),b=(0,M.default)("calypso:popover:util"),g={top:"bottom",bottom:"top",left:"right",right:"left"},v={top:"right",left:"top",bottom:"left",right:"bottom"},y=a(),A=!1,E=function(){if(A)return b("window events already bound");A=!0,b("bind handlers to `resize` and `scroll` events"),window.addEventListener("resize",i,!0),window.addEventListener("scroll",i,!0)},w=function(){if(!A)return b("window events are not bound");A=!1,b("unbind handlers to `resize` and `scroll` events"),window.removeEventListener("resize",i,!0),window.removeEventListener("scroll",i,!0)},k=function(e,t,n){var r=(0,m.default)(n),a=t.clientHeight,i=t.clientWidth,c={top:r.top-a,bottom:y.height-r.bottom-a,left:r.left-i,right:y.width-r.right-i},u=e.split(/\s+/),l=(0,p.default)(u,1),d=l[0],f=(0,p.default)(u,2),h=f[1],_=o(d,c);return h!==_&&h!==g[_]||(h=null),s(_,h,t,n,i,a)||e},T=function(e,t){var n=(0,m.default)(t).width;return e.left=Math.max(0,Math.min(e.left,y.width-n)),e},L=function(e){try{return e instanceof HTMLElement}catch(t){return"object"===(void 0===e?"undefined":(0,d.default)(e))&&1===e.nodeType&&"object"===(0,d.default)(e.style)&&"object"===(0,d.default)(e.ownerDocument)}};t.constrainLeft=T,t.bindWindowListeners=E,t.unbindWindowListeners=w,t.suggested=k,t.offset=c,t.isElement=L},function(e,t,n){e.exports={default:n(1080),__esModule:!0}},function(e,t,n){n(138),n(110),e.exports=n(1081)},function(e,t,n){var r=n(200),a=n(34)("iterator"),i=n(98);e.exports=n(20).isIterable=function(e){var t=Object(e);return void 0!==t[a]||"@@iterator"in t||i.hasOwnProperty(r(t))}},function(e,t,n){e.exports={default:n(1083),__esModule:!0}},function(e,t,n){n(138),n(110),e.exports=n(1084)},function(e,t,n){var r=n(55),a=n(223);e.exports=n(20).getIterator=function(e){var t=a(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){function r(e){var t=null,n=a(e);if(3===e.nodeType){var r=n.createRange();r.selectNodeContents(e),e=r}if("function"==typeof e.getBoundingClientRect&&(t=e.getBoundingClientRect(),e.startContainer&&0===t.left&&0===t.top)){var i=n.createElement("span");i.appendChild(n.createTextNode("​")),e.insertNode(i),t=i.getBoundingClientRect();var o=i.parentNode;o.removeChild(i),o.normalize()}return t}var a=n(1086);e.exports=r},function(e,t){function n(e){return e&&e.nodeType===a}function r(e){return n(e)?e:n(e.ownerDocument)?e.ownerDocument:n(e.document)?e.document:e.parentNode?r(e.parentNode):e.commonAncestorContainer?r(e.commonAncestorContainer):e.startContainer?r(e.startContainer):e.anchorNode?r(e.anchorNode):void 0}e.exports=r;var a=9},function(e,t){},function(e,t){},function(e,t,n){e.exports=n(228)},function(e,t,n){"use strict";function r(e){return(0,a.connect)(function(e,t){return{validValues:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"string"==typeof(0,o.default)(t,["module","module"])&&(r=t.module.module),(0,s.getModuleOptionValidValues)(e,r,n)},getOptionCurrentValue:function(t,n){return(0,s.getModuleOption)(e,t,n)},getSettingCurrentValue:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,c.getSetting)(e,t,n)},getSiteRoles:function(){return(0,u.getSiteRoles)(e)},isUpdating:function(t){return(0,c.isUpdatingSetting)(e,t)},adminEmailAddress:(0,u.getAdminEmailAddress)(e),currentIp:(0,u.getCurrentIp)(e),siteAdminUrl:(0,u.getSiteAdminUrl)(e),isCurrentUserLinked:(0,l.isCurrentUserLinked)(e)}},function(e){return{updateOptions:function(t){return e((0,c.updateSettings)(t))},regeneratePostByEmailAddress:function(t){return e((0,c.updateSettings)(t,"regeneratePbE"))},setUnsavedSettingsFlag:function(){return e((0,c.setUnsavedSettingsFlag)())},clearUnsavedSettingsFlag:function(){return e((0,c.clearUnsavedSettingsFlag)())}}})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.connectModuleOptions=r;var a=n(10),i=n(27),o=function(e){return e&&e.__esModule?e:{default:e}}(i),s=n(23),c=n(103),u=n(28),l=n(21)},function(e,t){},function(e,t,n){function r(e){if(null==e)return 0;if(o(e))return s(e)?c(e):e.length;var t=i(e);return t==u||t==l?e.size:a(e).length}var a=n(292),i=n(115),o=n(54),s=n(490),c=n(1093),u="[object Map]",l="[object Set]";e.exports=r},function(e,t,n){function r(e){return i(e)?o(e):a(e)}var a=n(1094),i=n(913),o=n(1095);e.exports=r},function(e,t,n){var r=n(497),a=r("length");e.exports=a},function(e,t){function n(e){for(var t=d.lastIndex=0;d.test(e);)++t;return t}var r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\\ud83c[\\udffb-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",c="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",i,o].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*",u="[\\ufe0e\\ufe0f]?"+s+c,l="(?:"+["[^\\ud800-\\udfff]"+r+"?",r,i,o,"[\\ud800-\\udfff]"].join("|")+")",d=RegExp(a+"(?="+a+")|"+l+u,"g");e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(14),g=r(b),v=n(47);n(1097);var y=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"getIconClassNames",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,n=t.plan,r=t.className,a=(0,v.getPlanClass)(n);return(0,g.default)("dops-plan-icon",a,r,e)}},{key:"getPersonalIcon",value:function(){return M.default.createElement("svg",{className:this.getIconClassNames("dops-plan-icon__personal"),xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0",y:"0",viewBox:"0 0 124 125"},M.default.createElement("circle",{className:"dops-plan-icon__personal-0",cx:"62",cy:"62.1",r:"62"}),M.default.createElement("path",{className:"dops-plan-icon__personal-1",d:"M64 106.1l4-9.8v-3.5H62v14.6C62.9 107.4 63.6 106.9 64 106.1z"}),M.default.createElement("path",{className:"dops-plan-icon__personal-2",d:"M56.2 92.8v3.5l4 9.8c0.3 0.8 1.1 1.3 1.9 1.3V92.8H56.2z"}),M.default.createElement("path",{className:"dops-plan-icon__personal-2",d:"M62 32.9h17.1V2.5C73.7 0.9 68 0.1 62 0.1V32.9z"}),M.default.createElement("path",{className:"dops-plan-icon__personal-3",d:"M62 32.9V0.1c0 0 0 0 0 0 -5.9 0-11.6 0.8-17 2.4v30.5H62z"}),M.default.createElement("polygon",{className:"dops-plan-icon__personal-4",points:"62 32.9 45 32.9 48.3 48.7 53.3 92.8 62 92.8 "}),M.default.createElement("polygon",{className:"dops-plan-icon__personal-5",points:"62 32.9 79.2 32.9 75.9 48.7 70.9 92.8 62 92.8 "}))}},{key:"getPremiumIcon",value:function(){return M.default.createElement("svg",{className:this.getIconClassNames("dops-plan-icon__premium"),xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0",y:"0",viewBox:"0 0 62 61.5"},M.default.createElement("ellipse",{className:"dops-plan-icon__premium-0",cx:"31",cy:"30.8",rx:"31",ry:"30.8"}),M.default.createElement("path",{className:"dops-plan-icon__premium-1",d:"M27.8 46.3v1.9l2.2 5.4c0.2 0.5 0.5 0.7 1 0.7v-7.9L27.8 46.3z"}),M.default.createElement("path",{className:"dops-plan-icon__premium-2",d:"M32 53.6l2.2-5.4v-1.9H31v3.8 4.1C31.5 54.3 31.9 54 32 53.6z"}),M.default.createElement("path",{className:"dops-plan-icon__premium-3",d:"M21.6 18c0.2 2 4.8 28.3 4.8 28.3l4.6 0.1V18H21.6z"}),M.default.createElement("path",{className:"dops-plan-icon__premium-4",d:"M40.5 18H31v23.4 5l4.5-0.1C35.5 46.3 40.1 20.4 40.5 18z"}),M.default.createElement("path",{className:"dops-plan-icon__premium-5",d:"M31 18V0c-3.9 0-7.7 0.7-11.2 2.1 0.7 6 1.8 15.9 1.8 15.9H31z"}),M.default.createElement("path",{className:"dops-plan-icon__premium-6",d:"M31 18h9.5c0 0 1.1-9.9 1.8-15.9C38.8 0.7 35 0 31 0V18z"}))}},{key:"getBusinessIcon",value:function(){return M.default.createElement("svg",{className:this.getIconClassNames("dops-plan-icon__business"),xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0",y:"0",viewBox:"0 0 124 124"},M.default.createElement("circle",{className:"dops-plan-icon__business-0",cx:"62",cy:"62",r:"62"}),M.default.createElement("path",{className:"dops-plan-icon__business-1",d:"M57.4 73.8c0-2.5 2-4.6 4.6-4.6V36.8h-9.6v12.1c-8 3.7-13.5 11.7-13.5 21.1 0 4.9 1.5 9.4 4.1 13.1l0 0c15.4 22.4 15.4 22.4 17 24.8h0.3V78.1C58.6 77.4 57.4 75.7 57.4 73.8L57.4 73.8z"}),M.default.createElement("path",{className:"dops-plan-icon__business-2",d:"M85.2 69.8c0-9.4-5.6-17.4-13.5-21.1v-12H62v32.5c2.5 0 4.6 2 4.6 4.6 0 1.9-1.2 3.5-2.9 4.2v29.8H64c1.6-2.4 1.6-2.4 17-24.8l0 0C83.6 79.2 85.2 74.7 85.2 69.8L85.2 69.8z"}),M.default.createElement("path",{className:"dops-plan-icon__business-3",d:"M48.6 32h-2.4c-3.2 0-5.8 2.6-5.8 5.8V38c0 3.2 2.6 5.8 5.8 5.8H62v-4.7V32 0c-7.2 0-14.1 1.2-20.6 3.5 1.1 5.5 2.5 11 4.1 16.5L48.6 32z"}),M.default.createElement("path",{className:"dops-plan-icon__business-4",d:"M62 39.1v4.7h15.8c3.2 0 5.8-2.6 5.8-5.8v-0.2c0-3.2-2.6-5.8-5.8-5.8h-2.4l3.1-12c1.6-5.5 3-11 4.1-16.5C76.1 1.2 69.2 0 62 0v32V39.1z"}))}},{key:"getDefaultIcon",value:function(){return M.default.createElement("svg",{className:this.getIconClassNames("dops-plan-icon__free"),xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0",y:"0",viewBox:"0 0 61.8 61.8"},M.default.createElement("circle",{className:"dops-plan-icon__free-0",cx:"30.9",cy:"30.9",r:"30.9"}),M.default.createElement("polygon",{className:"dops-plan-icon__free-1",points:"41.4 32.8 30.9 22.5 20.3 32.8 30.9 51.8 "}),M.default.createElement("path",{className:"dops-plan-icon__free-2",d:"M30.9 41.6L30.9 41.6c-2 0-3.7 1.6-3.7 3.6l3.7 6.5 3.7-6.5C34.5 43.2 32.9 41.6 30.9 41.6L30.9 41.6z"}),M.default.createElement("path",{className:"dops-plan-icon__free-3",d:"M25.6 27.7c0 2.9 2.3 5.2 5.2 5.2h0.1c2.9 0 5.2-2.3 5.2-5.2v-0.1V0.4c-1.7-0.3-3.5-0.5-5.3-0.5s-3.6 0.2-5.3 0.5v27.3H25.6z"}),M.default.createElement("path",{className:"dops-plan-icon__free-4",d:"M25.6 27.6V0.4c-1.8 0.3-3.6 0.8-5.3 1.4v31C23.2 32.8 25.6 30.5 25.6 27.6z"}),M.default.createElement("path",{className:"dops-plan-icon__free-2",d:"M41.4 32.8v-31c-1.7-0.6-3.5-1.1-5.3-1.4v27.2C36.1 30.5 38.5 32.8 41.4 32.8z"}))}},{key:"render",value:function(){switch(this.props.plan){case v.PLAN_PERSONAL:case v.PLAN_JETPACK_PERSONAL:case v.PLAN_JETPACK_PERSONAL_MONTHLY:return this.getPersonalIcon();case v.PLAN_PREMIUM:case v.PLAN_JETPACK_PREMIUM:case v.PLAN_JETPACK_PREMIUM_MONTHLY:return this.getPremiumIcon();case v.PLAN_BUSINESS:case v.PLAN_JETPACK_BUSINESS:case v.PLAN_JETPACK_BUSINESS_MONTHLY:case v.PLAN_VIP:return this.getBusinessIcon();default:return this.getDefaultIcon()}}}]),t}(_.Component);t.default=y,y.propTypes={classNames:m.default.string,plan:m.default.oneOf([v.PLAN_FREE,v.PLAN_PREMIUM,v.PLAN_BUSINESS,v.PLAN_JETPACK_FREE,v.PLAN_JETPACK_BUSINESS,v.PLAN_JETPACK_BUSINESS_MONTHLY,v.PLAN_JETPACK_PREMIUM,v.PLAN_JETPACK_PREMIUM_MONTHLY,v.PLAN_JETPACK_PERSONAL,v.PLAN_JETPACK_PERSONAL_MONTHLY,v.PLAN_PERSONAL,v.PLAN_VIP]).isRequired},e.exports=t.default},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(7),i=r(a),o=n(1),s=r(o),c=n(32),u=r(c),l=n(64),d=r(l),f=n(833),p=r(f),h=n(65),m=r(h),_=n(14),M=r(_),b=n(15),g=r(b);n(1101),t.default=(0,u.default)({displayName:"InfoPopover",propTypes:{id:i.default.string,position:i.default.string,className:i.default.string,rootClassName:i.default.string,gaEventCategory:i.default.string,popoverName:i.default.string,onClick:i.default.func,ignoreContext:i.default.shape({getDOMNode:i.default.function})},getDefaultProps:function(){return{position:"bottom",onClick:d.default}},getInitialState:function(){return{showPopover:!1}},render:function(){var e=(0,M.default)("dops-info-popover","dops-info-popover-button",{is_active:this.state.showPopover},this.props.className);return s.default.createElement("button",{ref:"infoPopover",className:e,onClick:this._onClick},s.default.createElement(m.default,{icon:"info-outline",size:18}),this.props.screenReaderText?s.default.createElement("span",{className:"screen-reader-text"},this.props.screenReaderText):"",s.default.createElement(p.default,{id:this.props.id,isVisible:this.state.showPopover,context:this.refs&&this.refs.infoPopover,ignoreContext:this.props.ignoreContext,position:this.props.position,onClose:this._onClose,className:(0,M.default)("dops-info-popover__tooltip",this.props.className),rootClassName:this.props.rootClassName},this.props.children))},_onClick:function(e){this.props.onClick(),e.preventDefault(),this.setState({showPopover:!this.state.showPopover},this._recordStats)},_onClose:function(){this.setState({showPopover:!1},this._recordStats)},_recordStats:function(){var e=this.props,t=e.gaEventCategory,n=e.popoverName;if(t&&n){var r=this.state.showPopover?" Opened":" Closed";g.default.ga.recordEvent(t,"InfoPopover: "+n+r)}}}),e.exports=t.default},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Subscriptions=void 0;var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(8),y=n(104),A=r(y),E=n(25),w=r(E),k=n(15),T=r(k),L=n(71),S=n(52),C=n(30),O=n(40),z=r(O),N=n(36),D=r(N),P=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={stb_enabled:r.props.getOptionValue("stb_enabled","subscriptions"),stc_enabled:r.props.getOptionValue("stc_enabled","subscriptions")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("subscriptions",e))},r.trackConfigureClick=function(){T.default.tracks.recordJetpackClick("view-followers")},r.handleSubscribeToBlogToggleChange=function(){r.updateOptions("stb_enabled")},r.handleSubscribeToCommentToggleChange=function(){r.updateOptions("stc_enabled")},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this,t=this.props.getModule("subscriptions"),n=this.props.getOptionValue("subscriptions"),r=this.props.isUnavailableInDevMode("subscriptions");return g.default.createElement(z.default,(0,i.default)({},this.props,{hideButton:!0,module:"subscriptions"}),g.default.createElement(D.default,{hasChild:!0,disableInDevMode:!0,module:t,support:{text:(0,v.translate)("Allows readers to subscribe to your posts or comments, and receive notifications of new content by email."),link:"https://jetpack.com/support/subscriptions/"}},g.default.createElement(S.ModuleToggle,{slug:"subscriptions",disabled:r,activated:n,toggling:this.props.isSavingAnyOption("subscriptions"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},t.description)),g.default.createElement(L.FormFieldset,null,g.default.createElement(A.default,{checked:this.state.stb_enabled,disabled:!n||r||this.props.isSavingAnyOption(["subscriptions","stb_enabled"]),onChange:this.handleSubscribeToBlogToggleChange},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)('Show a "follow blog" option in the comment form'))),g.default.createElement(A.default,{checked:this.state.stc_enabled,disabled:!n||r||this.props.isSavingAnyOption(["subscriptions","stc_enabled"]),onChange:this.handleSubscribeToCommentToggleChange},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)('Show a "follow comments" option in the comment form'))))),function(){return r||!n?"":e.props.isLinked?g.default.createElement(w.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackConfigureClick,href:"https://wordpress.com/people/email-followers/"+e.props.siteRawUrl},(0,v.translate)("View your Email Followers")):g.default.createElement(w.default,{compact:!0,className:"jp-settings-card__configure-link",href:e.props.connectUrl+"&from=unlinked-user-connect-masterbar"},(0,v.translate)("Connect your user account to WordPress.com to view your email followers")," ")}())}}]),t}(g.default.Component);t.Subscriptions=(0,C.ModuleSettingsForm)(P)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Security=void 0;var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(10),M=n(27),b=r(M),g=n(23),v=n(103),y=n(21),A=n(74),E=n(210),w=n(211),k=r(w),T=n(912),L=r(T),S=n(1106),C=r(S),O=n(1107),z=r(O),N=n(1119),D=n(1120),P=n(1123),x=t.Security=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.isAkismetFound=function(){if(!r.props.isPluginActive("akismet/akismet.php"))return!1;if(r.props.searchTerm){var e=r.props.isPluginInstalled("akismet/akismet.php");return["akismet","antispam","spam","comments",e.Description,e.PluginURI].join(" ").toLowerCase().indexOf(r.props.searchTerm.toLowerCase())>-1}return!0},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode,rewindStatus:this.props.rewindStatus,siteRawUrl:this.props.siteRawUrl},t=this.props.isModuleFound("protect"),n=this.props.isModuleFound("sso"),r=this.isAkismetFound(),a="active"===(0,b.default)(this.props.rewindStatus,["state"],!1),i=this.props.isModuleFound("vaultpress")||a,o=this.props.isModuleFound("monitor");return(this.props.searchTerm||this.props.active)&&(n||t||r||i||o)?m.default.createElement("div",null,m.default.createElement(k.default,null),i&&m.default.createElement(C.default,e),o&&m.default.createElement(N.Monitor,e),r&&m.default.createElement("div",null,m.default.createElement(z.default,e),m.default.createElement(L.default,null)),t&&m.default.createElement(D.Protect,e),n&&m.default.createElement(P.SSO,e)):null}}]),t}(h.Component);x.displayName="SecuritySettings",t.default=(0,_.connect)(function(e){return{module:function(t){return(0,g.getModule)(e,t)},settings:(0,v.getSettings)(e),isDevMode:(0,y.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,y.isUnavailableInDevMode)(e,t)},isModuleFound:function(t){return(0,A.isModuleFound)(e,t)},isPluginActive:function(t){return(0,E.isPluginActive)(e,t)},isPluginInstalled:function(t){return(0,E.isPluginInstalled)(e,t)}}})(x)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.BackupsScan=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(25),y=r(v),A=n(15),E=r(A),w=n(27),k=r(w),T=n(47),L=n(850),S=r(L),C=n(30),O=n(40),z=r(O),N=n(36),D=r(N),P=n(62),x=n(61),j=n(44),R=r(j),Y=n(23),I=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){return M.default.createElement(z.default,{header:(0,g.translate)("Backups and security scanning",{context:"Settings header"}),hideButton:!0,action:"scan"},M.default.createElement(D.default,{disableInDevMode:!0,module:{module:"backups"},support:{text:(0,g.translate)("Backs up your site to the global WordPress.com servers, allowing you to restore your content in the event of an emergency or error."),link:"https://help.vaultpress.com/get-to-know/"}},(0,g.translate)("Checking site status…")))}}]),t}(_.Component),q=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.getCardText=function(){return r.props.isDevMode?(0,g.translate)("Unavailable in Dev Mode."):M.default.createElement(S.default,{title:(0,g.translate)("Connected"),icon:"checkmark-circle",feature:"rewind",description:(0,g.translate)("Your site is being backed up in real time and regularly scanned for security threats."),className:"is-upgrade-premium jp-banner__no-border",href:"https://wordpress.com/stats/activity/"+r.props.siteRawUrl})},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){return M.default.createElement(z.default,(0,i.default)({feature:"rewind"},this.props,{header:(0,g.translate)("Backups and security scanning",{context:"Settings header"}),action:"rewind",hideButton:!0}),this.getCardText())}}]),t}(_.Component),B=t.BackupsScan=(0,C.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.toggleModule=function(e,t){r.props.updateFormStateOptionValue(e,!t)},r.trackConfigureClick=function(){E.default.tracks.recordJetpackClick("configure-scan")},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"getCardText",value:function(){var e=(0,k.default)(this.props.vaultPressData,["data","features","backups"],!1),t=(0,k.default)(this.props.vaultPressData,["data","features","security"],!1),n=(0,T.getPlanClass)(this.props.sitePlan.product_slug),r="";if(this.props.isDevMode)return(0,g.translate)("Unavailable in Dev Mode.");if(e&&t){var a=this.props.hasThreats;return a?M.default.createElement("div",null,M.default.createElement("strong",null,(0,g.translate)("Uh oh, %(number)s threat found.","Uh oh, %(number)s threats found.",{count:a,args:{number:(0,g.numberFormat)(a)}})),M.default.createElement("br",null),M.default.createElement("br",null),(0,g.translate)("{{a}}View details{{/a}}",{components:{a:M.default.createElement("a",{href:"https://dashboard.vaultpress.com/"})}}),M.default.createElement("br",null),(0,g.translate)("{{a}}Contact Support{{/a}}",{components:{a:M.default.createElement("a",{href:"https://jetpack.com/support"})}})):(0,g.translate)("Your site is backed up and threat-free.")}if(e&&(0,R.default)(["is-free-plan","is-personal-plan"],n))return(0,g.translate)("Your site is backed up.");switch(n){case"is-personal-plan":r=(0,g.translate)("You have paid for backups but they're not yet active."),r+=" "+(0,g.translate)('Click "Set Up" to finish installation.');break;case"is-premium-plan":case"is-business-plan":r=(0,g.translate)("You have paid for backups and security scanning but they’re not yet active."),r+=" "+(0,g.translate)('Click "Set Up" to finish installation.')}return r}},{key:"render",value:function(){var e=(0,k.default)(this.props.vaultPressData,["data","features","security"],!1),t="active"===(0,k.default)(this.props.rewindStatus,["state"],!1),n=!1!==(0,k.default)(this.props.rewindStatus,["state"],!1),r="N/A"!==this.props.vaultPressData&&!1!==(0,k.default)(this.props.vaultPressData,["data"],!1);return!n||this.props.vaultPressActive&&!r?M.default.createElement(I,null):t?M.default.createElement(q,this.props):M.default.createElement(z.default,(0,i.default)({feature:T.FEATURE_SECURITY_SCANNING_JETPACK},this.props,{header:(0,g.translate)("Backups and security scanning",{context:"Settings header"}),action:"scan",hideButton:!0}),M.default.createElement(D.default,{disableInDevMode:!0,module:{module:"backups"},support:{text:(0,g.translate)("Backs up your site to the global WordPress.com servers, allowing you to restore your content in the event of an emergency or error."),link:"https://help.vaultpress.com/get-to-know/"}},this.getCardText()),!this.props.isUnavailableInDevMode("backups")&&e&&M.default.createElement(y.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:"https://dashboard.vaultpress.com/"},(0,g.translate)("Configure your Security Scans")))}}]),t}(_.Component));t.default=(0,b.connect)(function(e){return{sitePlan:(0,x.getSitePlan)(e),vaultPressData:(0,P.getVaultPressData)(e),hasThreats:(0,P.getVaultPressScanThreatCount)(e),vaultPressActive:(0,Y.isModuleActivated)(e,"vaultpress")}})(B)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Antispam=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(508),y=r(v),A=n(516),E=r(A),w=n(1110),k=r(w),T=n(65),L=r(T),S=n(505),C=r(S),O=n(24),z=r(O),N=n(234),D=r(N),P=n(1112),x=r(P),j=n(62),R=n(47),Y=n(15),I=r(Y),q=n(71),B=n(30),W=n(40),U=r(W),H=n(36),F=r(H),X=t.Antispam=(0,B.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.state={apiKey:r.props.getOptionValue("wordpress_api_key"),delayKeyCheck:!1,currentEvent:{}},r.keyChanged=!1,r.checkApiKeyTyped=function(e){0<e.currentTarget.value.length&&r.props.checkAkismetKey(e.currentTarget.value),r.keyChanged=!0,r.setState({delayKeyCheck:!1})},r.updateText=function(e){var t=(0,z.default)({},e);t.currentTarget.value=(0,x.default)(t.currentTarget.value),r.setState({apiKey:t.currentTarget.value,delayKeyCheck:!0,currentEvent:t},r.debouncedCheckApiKeyTyped(t))},r.trackOpenCard=function(){I.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"anti-spam"})},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"componentWillMount",value:function(){this.debouncedCheckApiKeyTyped=(0,C.default)(this.checkApiKeyTyped,500)}},{key:"componentDidUpdate",value:function(){!this.props.isCheckingAkismetKey&&this.props.isAkismetKeyValid&&this.keyChanged&&!(0,D.default)(this.state.currentEvent)&&(this.keyChanged=!1,this.props.onOptionChange(this.state.currentEvent))}},{key:"render",value:function(){var e={name:"wordpress_api_key",value:this.state.apiKey,disabled:this.props.isSavingAnyOption("wordpress_api_key"),onChange:this.updateText},t="",n=(0,g.translate)("Checking your spam protection…"),r=!0;return null===this.props.isAkismetKeyValid?(e.value=(0,g.translate)("Fetching key…"),e.disabled=!0,r=!1):""===this.state.apiKey?(e.value="",n=(0,
42
  g.translate)("Your site needs an Antispam key.")):this.state.delayKeyCheck||this.props.isCheckingAkismetKey?this.props.isCheckingAkismetKey&&(t=M.default.createElement("div",{className:"form-input-validation is-warning"},M.default.createElement("span",null,M.default.createElement(L.default,{size:24,icon:"sync"}),(0,g.translate)("Checking key…"))),r=!1):!1===this.props.isAkismetKeyValid?(t=M.default.createElement(k.default,{isError:!0,text:(0,g.translate)("There's a problem with your Antispam API key. {{a}}Learn more{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://docs.akismet.com/getting-started/api-key/"})}})}),e.isError=!0,n=(0,g.translate)("Your site is not protected from spam.")):(t=M.default.createElement(k.default,{text:(0,g.translate)("Your Antispam key is valid.")}),e.isValid=!0,n=(0,g.translate)("Your site is protected from spam."),r=!1),M.default.createElement(U.default,(0,i.default)({},this.props,{header:(0,g.translate)("Spam filtering",{context:"Settings header"}),saveDisabled:this.props.isSavingAnyOption("wordpress_api_key"),feature:R.FEATURE_SPAM_AKISMET_PLUS}),M.default.createElement(E.default,{onOpen:this.trackOpenCard,header:n},M.default.createElement(F.default,{support:{text:(0,g.translate)("Removes spam from comments and contact forms."),link:"https://akismet.com/jetpack/"}},M.default.createElement(q.FormFieldset,null,M.default.createElement(q.FormLabel,null,M.default.createElement("span",{className:"jp-form-label-wide"},(0,g.translate)("Your API key")),M.default.createElement(y.default,e),t),r&&M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,g.translate)("If you don't already have an API key, then {{a}}get your API key here{{/a}}, and you'll be guided through the process of getting one.",{components:{a:M.default.createElement("a",{href:"https://akismet.com/wordpress/"})}}))))))}}]),t}(_.Component));t.default=(0,b.connect)(function(e){return{isAkismetKeyValid:(0,j.isAkismetKeyValid)(e),isCheckingAkismetKey:(0,j.isCheckingAkismetKey)(e)}},function(e){return{checkAkismetKey:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e((0,j.checkAkismetKey)(t))}}})(X)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=n(24),_=n(14),M=n(25),b=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=m({},this.props,{className:_(this.props.className,"is-compact")});return h.createElement(M,e,this.props.children)}}]),t}(h.Component);b.displayName="CompactCard",t.default=b,e.exports=t.default},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=n(1),_=n(14),M=n(65);n(1111);var b=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=_({"form-input-validation":!0,"is-warning":this.props.isWarning,"is-error":this.props.isError}),t=this.props.isError||this.props.isWarning?"notice-outline":"checkmark";return m.createElement("div",{className:e},m.createElement("span",null,m.createElement(M,{size:24,icon:this.props.icon?this.props.icon:t})," ",this.props.text))}}]),t}(m.Component);b.displayName="FormInputValidation",b.propTypes={isError:h.bool,isWarning:h.bool,text:h.node,icon:h.string},b.defaultProps={isError:!1},t.default=b,e.exports=t.default},function(e,t){},function(e,t,n){function r(e,t,n){if((e=u(e))&&(n||void 0===t))return e.replace(l,"");if(!e||!(t=a(t)))return e;var r=c(e),d=c(t),f=s(r,d),p=o(r,d)+1;return i(r,f,p).join("")}var a=n(489),i=n(1113),o=n(1114),s=n(1115),c=n(1116),u=n(224),l=/^\s+|\s+$/g;e.exports=r},function(e,t,n){function r(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:a(e,t,n)}var a=n(466);e.exports=r},function(e,t,n){function r(e,t){for(var n=e.length;n--&&a(t,e[n],0)>-1;);return n}var a=n(226);e.exports=r},function(e,t,n){function r(e,t){for(var n=-1,r=e.length;++n<r&&a(t,e[n],0)>-1;);return n}var a=n(226);e.exports=r},function(e,t,n){function r(e){return i(e)?o(e):a(e)}var a=n(1117),i=n(913),o=n(1118);e.exports=r},function(e,t){function n(e){return e.split("")}e.exports=n},function(e,t){function n(e){return e.match(d)||[]}var r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\\ud83c[\\udffb-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",c="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",i,o].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*",u="[\\ufe0e\\ufe0f]?"+s+c,l="(?:"+["[^\\ud800-\\udfff]"+r+"?",r,i,o,"[\\ud800-\\udfff]"].join("|")+")",d=RegExp(a+"(?="+a+")|"+l+u,"g");e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Monitor=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(15),v=r(g),y=n(25),A=r(y),E=n(52),w=n(30),k=n(40),T=r(k),L=n(36),S=r(L);t.Monitor=(0,w.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.trackConfigureClick=function(){v.default.tracks.recordJetpackClick("configure-monitor")},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.getOptionValue("monitor"),t=this.props.isUnavailableInDevMode("monitor");return M.default.createElement(T.default,(0,i.default)({},this.props,{hideButton:!0,module:"monitor",header:(0,b.translate)("Downtime monitoring",{context:"Settings header"})}),M.default.createElement(S.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("monitor"),support:{text:(0,b.translate)("Keep tabs on your site and receive alerts the moment downtime is detected."),link:"https://jetpack.com/support/monitor/"}},M.default.createElement(E.ModuleToggle,{slug:"monitor",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("monitor"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Monitor your site's downtime")))),M.default.createElement(A.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:"https://wordpress.com/settings/security/"+this.props.siteRawUrl},(0,b.translate)("Configure your notification settings")))}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Protect=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(41),v=r(g),y=n(1121),A=r(y),E=n(44),w=r(E),k=n(516),T=r(k),L=n(14),S=r(L),C=n(15),O=r(C),z=n(71),N=n(52),D=n(30),P=n(40),x=r(P),j=n(36),R=r(j);t.Protect=(0,D.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.state={whitelist:r.props.getOptionValue("jetpack_protect_global_whitelist")?r.props.getOptionValue("jetpack_protect_global_whitelist").local:""},r.currentIpIsWhitelisted=function(){return!!(0,w.default)(r.state.whitelist,r.props.currentIp)},r.updateText=function(e){r.currentIpIsWhitelisted(),r.setState({whitelist:e.target.value}),r.props.onOptionChange(e)},r.addToWhitelist=function(){var e=r.state.whitelist+(0>=r.state.whitelist.length?"":"\n")+r.props.currentIp;r.props.updateFormStateOptionValue("jetpack_protect_global_whitelist",e),r.setState({whitelist:e}),O.default.tracks.recordJetpackClick({target:"add-to-whitelist",feature:"protect"})},r.trackOpenCard=function(){O.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"protect"})},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.getOptionValue("protect"),t=this.props.isUnavailableInDevMode("protect"),n=M.default.createElement(N.ModuleToggle,{slug:"protect",compact:!0,disabled:t,activated:e,toggling:this.props.isSavingAnyOption("protect"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("protect").description));return M.default.createElement(x.default,(0,i.default)({},this.props,{module:"protect",header:(0,b.translate)("Brute force attack protection",{context:"Settings header"}),saveDisabled:this.props.isSavingAnyOption("jetpack_protect_global_whitelist")}),M.default.createElement(T.default,{onOpen:this.trackOpenCard,header:n,className:(0,S.default)({"jp-foldable-settings-disable":t})},M.default.createElement(R.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("protect"),support:{text:(0,b.translate)("Protects your site from traditional and distributed brute force login attacks."),link:"https://jetpack.com/support/protect/"}},M.default.createElement(z.FormFieldset,null,this.props.currentIp&&M.default.createElement("div",null,M.default.createElement("div",{className:"jp-form-label-wide"},(0,b.translate)("Your current IP: %(ip)s",{args:{ip:this.props.currentIp}})),M.default.createElement(v.default,{disabled:!e||t||this.currentIpIsWhitelisted()||this.props.isSavingAnyOption(["protect","jetpack_protect_global_whitelist"]),onClick:this.addToWhitelist},(0,b.translate)("Add to whitelist"))),M.default.createElement(z.FormLabel,null,M.default.createElement(z.FormLegend,null,(0,b.translate)("Whitelisted IP addresses")),M.default.createElement(A.default,{disabled:!e||t||this.props.isSavingAnyOption(["protect","jetpack_protect_global_whitelist"]),name:"jetpack_protect_global_whitelist",placeholder:"Example: 12.12.12.1-12.12.12.100",onChange:this.updateText,value:this.state.whitelist})),M.default.createElement("span",{className:"jp-form-setting-explanation"},(0,b.translate)("You may whitelist an IP address or series of addresses preventing them from ever being blocked by Jetpack. IPv4 and IPv6 are acceptable. To specify a range, enter the low value and high value separated by a dash. Example: 12.12.12.1-12.12.12.100",{components:{br:M.default.createElement("br",null)}}))))))}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=n(14),b=n(116);n(1122);var g=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){return _.createElement("textarea",(0,i.default)({},b(this.props,"className"),{className:M(this.props.className,"dops-textarea")}),this.props.children)}}]),t}(_.Component);g.displayName="Textarea",t.default=g,e.exports=t.default},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SSO=void 0;var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(8),y=n(104),A=r(y),E=n(71),w=n(52),k=n(30),T=n(40),L=r(T),S=n(36),C=r(S);t.SSO=(0,k.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={jetpack_sso_match_by_email:r.props.getOptionValue("jetpack_sso_match_by_email","sso"),jetpack_sso_require_two_step:r.props.getOptionValue("jetpack_sso_require_two_step","sso")},r.handleTwoStepToggleChange=function(){r.updateOptions("jetpack_sso_require_two_step")},r.handleMatchByEmailToggleChange=function(){r.updateOptions("jetpack_sso_match_by_email")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("sso",e))},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this.props.getOptionValue("sso"),t=this.props.isUnavailableInDevMode("sso");return g.default.createElement(L.default,(0,i.default)({},this.props,{hideButton:!0,module:"sso",header:(0,v.translate)("WordPress.com log in",{context:"Settings header"})}),g.default.createElement(C.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("sso"),support:{text:(0,v.translate)("Allows registered users to log in to your site with their WordPress.com accounts."),link:"https://jetpack.com/support/sso/"}},g.default.createElement(w.ModuleToggle,{slug:"sso",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("sso"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("sso").description)),g.default.createElement(E.FormFieldset,null,g.default.createElement(A.default,{checked:this.state.jetpack_sso_match_by_email,disabled:!e||t||this.props.isSavingAnyOption(["sso","jetpack_sso_match_by_email"]),onChange:this.handleMatchByEmailToggleChange},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Match accounts using email addresses"))),g.default.createElement(A.default,{checked:this.state.jetpack_sso_require_two_step,disabled:!e||t||this.props.isSavingAnyOption(["sso","jetpack_sso_require_two_step"]),onChange:this.handleTwoStepToggleChange},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Require accounts to use WordPress.com Two-Step Authentication"))))))}}]),t}(b.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Traffic=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(23),v=n(103),y=n(21),A=n(74),E=n(211),w=r(E),k=n(1125),T=n(1126),L=n(1127),S=n(1128),C=n(1129),O=n(1130),z=r(O),N=n(1131),D=n(1132),P=r(D),x=n(28),j=t.Traffic=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e={settings:this.props.settings,siteRawUrl:this.props.siteRawUrl,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode,getModuleOverride:this.props.getModuleOverride},t=this.props.isModuleFound("seo-tools"),n=this.props.isModuleFound("wordads"),r=this.props.isModuleFound("stats"),a=this.props.isModuleFound("related-posts"),o=this.props.isModuleFound("verification-tools"),s=this.props.isModuleFound("sitemaps"),c=this.props.isModuleFound("search"),u=this.props.isModuleFound("google-analytics");return(this.props.searchTerm||this.props.active)&&(t||n||r||a||o||s||u||c)?M.default.createElement("div",null,M.default.createElement(w.default,null),r&&M.default.createElement(S.SiteStats,e),c&&M.default.createElement(z.default,e),n&&M.default.createElement(L.Ads,(0,i.default)({},e,{configureUrl:"https://wordpress.com/ads/earnings/"+this.props.siteRawUrl})),a&&M.default.createElement(C.RelatedPosts,(0,i.default)({},e,{configureUrl:this.props.siteAdminUrl+"customize.php?autofocus[section]=jetpack_relatedposts&return="+encodeURIComponent(this.props.siteAdminUrl+"admin.php?page=jetpack#/traffic")+"&url="+encodeURIComponent(this.props.lastPostUrl)})),t&&M.default.createElement(k.SEO,(0,i.default)({},e,{configureUrl:"https://wordpress.com/settings/traffic/"+this.props.siteRawUrl+"#seo"})),u&&M.default.createElement(T.GoogleAnalytics,(0,i.default)({},e,{configureUrl:"https://wordpress.com/settings/traffic/"+this.props.siteRawUrl+"#analytics"})),s&&M.default.createElement(P.default,e),o&&M.default.createElement(N.VerificationServices,e)):null}}]),t}(M.default.Component);j.displayName="TrafficSettings",t.default=(0,b.connect)(function(e){return{module:function(t){return(0,g.getModule)(e,t)},settings:(0,v.getSettings)(e),isDevMode:(0,y.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,y.isUnavailableInDevMode)(e,t)},isModuleFound:function(t){return(0,A.isModuleFound)(e,t)},lastPostUrl:(0,x.getLastPostUrl)(e),getModuleOverride:function(t){return(0,g.getModuleOverride)(e,t)}}})(j)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SEO=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(15),A=r(y),E=n(47),w=n(30),k=n(40),T=r(k),L=n(36),S=r(L),C=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.trackConfigureClick=function(){A.default.tracks.recordJetpackClick("configure-seo")},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){return M.default.createElement(T.default,(0,i.default)({},this.props,{header:(0,b.translate)("Search engine optimization",{context:"Settings header"}),feature:E.FEATURE_SEO_TOOLS_JETPACK,hideButton:!0}),M.default.createElement(S.default,{disableInDevMode:!0,module:{module:"seo-tools"},support:{text:(0,b.translate)("Allows you to optimize your site and its content for better results in search engines."),link:"https://jetpack.com/support/seo-tools/"}},M.default.createElement("span",null,(0,b.translate)("You can tweak these settings if you'd like more advanced control. Read more about what you can do to {{a}}optimize your site's SEO{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://jetpack.com/support/seo-tools/"})}}))),!this.props.isUnavailableInDevMode("seo-tools")&&M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},(0,b.translate)("Configure your SEO settings")))}}]),t}(M.default.Component);t.SEO=(0,w.ModuleSettingsForm)(C)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(15),A=r(y),E=n(47),w=n(30),k=n(40),T=r(k),L=n(36),S=r(L);t.GoogleAnalytics=(0,w.ModuleSettingsForm)(function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"trackConfigureClick",value:function(){A.default.tracks.recordJetpackClick("configure-ga")}},{key:"render",value:function(){return M.default.createElement(T.default,(0,i.default)({},this.props,{header:(0,b.translate)("Google Analytics",{context:"Settings header"}),feature:E.FEATURE_GOOGLE_ANALYTICS_JETPACK,hideButton:!0}),M.default.createElement(S.default,{disableInDevMode:!0,module:{module:"google-analytics"},support:{text:(0,b.translate)("Integrates your WordPress site with Google Analytics, a platform that offers insights into your traffic, visitors, and conversions."),link:"https://jetpack.com/support/google-analytics/"}},M.default.createElement("p",null,(0,b.translate)("Google Analytics is a free service that complements our {{a}}built-in stats{{/a}} with different insights into your traffic. WordPress.com stats and Google Analytics use different methods to identify and track activity on your site, so they will normally show slightly different totals for your visits, views, etc.",{components:{a:M.default.createElement("a",{href:"https://wordpress.com/stats/day/"+this.props.siteRawUrl})}}))),!this.props.isUnavailableInDevMode("google-analytics")&&M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},(0,b.translate)("Configure your Google Analytics settings")))}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Ads=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(104),A=r(y),E=n(15),w=r(E),k=n(47),T=n(71),L=n(30),S=n(52),C=n(40),O=r(C),z=n(36),N=r(z);t.Ads=(0,L.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.updateOptions=function(e){r.props.updateFormStateModuleOption("wordads",e)},r.trackConfigureClick=function(){w.default.tracks.recordJetpackClick("view-earnings")},r.trackConfigureWidgetClick=function(){w.default.tracks.recordJetpackClick("place_ad_widget")},r.handleChange=function(e){return function(){return r.updateOptions(e)}},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.getOptionValue("wordads"),t=this.props.isUnavailableInDevMode("wordads"),n=this.props.getOptionValue("enable_header_ad","wordads"),r=this.props.getOptionValue("wordads_second_belowpost","wordads"),a=this.props.getOptionValue("wordads_display_front_page","wordads"),o=this.props.getOptionValue("wordads_display_post","wordads"),s=this.props.getOptionValue("wordads_display_page","wordads"),c=this.props.getOptionValue("wordads_display_archive","wordads");return M.default.createElement(O.default,(0,i.default)({},this.props,{header:(0,b.translate)("Ads",{context:"Ads header"}),feature:k.FEATURE_WORDADS_JETPACK,hideButton:!0}),M.default.createElement(N.default,{disableInDevMode:!0,hasChild:!0,module:{module:"wordads"},support:{text:(0,b.translate)("Displays high-quality ads on your site that allow you to earn income."),link:"https://jetpack.com/support/ads/"}},M.default.createElement("p",null,(0,b.translate)("Show ads on the first article on your home page or at the end of every page and post. Place additional ads at the top of your site and to any widget area to increase your earnings."),M.default.createElement("br",null),M.default.createElement("small",{className:"jp-form-setting-explanation"},(0,b.translate)("By activating ads, you agree to the Automattic Ads {{link}}Terms of Service{{/link}}.",{components:{link:M.default.createElement("a",{href:"https://wordpress.com/automattic-ads-tos/",target:"_blank",rel:"noopener noreferrer",onClick:this.trackConfigureWidgetClick})}}))),M.default.createElement(S.ModuleToggle,{slug:"wordads",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("wordads"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Enable ads and display an ad below each post"))),M.default.createElement(T.FormFieldset,null,M.default.createElement(T.FormLegend,null,(0,b.translate)("Display ads below posts on")),M.default.createElement(A.default,{checked:a,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_front_page"]),onChange:this.handleChange("wordads_display_front_page")},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Front page"))),M.default.createElement(A.default,{checked:o,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_post"]),onChange:this.handleChange("wordads_display_post")},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Posts"))),M.default.createElement(A.default,{checked:s,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_page"]),onChange:this.handleChange("wordads_display_page")},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Pages"))),M.default.createElement(A.default,{checked:c,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_archive"]),onChange:this.handleChange("wordads_display_archive")},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Archives")))),M.default.createElement(T.FormFieldset,null,M.default.createElement(T.FormLegend,null,(0,b.translate)("Additional ad placements")),M.default.createElement(A.default,{checked:n,disabled:!e||t||this.props.isSavingAnyOption(["wordads","enable_header_ad"]),onChange:this.handleChange("enable_header_ad")},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Top of each page"))),M.default.createElement(A.default,{checked:r,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_second_belowpost"]),onChange:this.handleChange("wordads_second_belowpost")},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Second ad below post"))),M.default.createElement("small",{className:"jp-form-setting-explanation"},e&&(0,b.translate)("You can place additional ads using the Ad widget. {{link}}Try it out!{{/link}}",{components:{link:M.default.createElement("a",{className:"jp-module-settings__external-link",href:"customize.php?autofocus[panel]=widgets"})}})))),!t&&e&&M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},(0,b.translate)("View your earnings")))}}]),t}(M.default.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SiteStats=void 0;var a=n(11),i=r(a),o=n(113),s=r(o),c=n(51),u=r(c),l=n(2),d=r(l),f=n(3),p=r(f),h=n(6),m=r(h),_=n(4),M=r(_),b=n(5),g=r(b),v=n(1),y=r(v),A=n(8),E=n(104),w=r(E),k=n(516),T=r(k),L=n(41),S=r(L),C=n(25),O=r(C),z=n(44),N=r(z),D=n(459),P=r(D),x=n(14),j=r(x),R=n(80),Y=n(15),I=r(Y),q=n(71),B=n(30),W=n(36),U=r(W),H=n(40),F=r(H),X=n(515),V=r(X),K=function(e){function t(e){(0,p.default)(this,t);var n=(0,M.default)(this,(t.__proto__||(0,d.default)(t)).call(this,e));n.updateOptions=function(e,t){var r=n.props.getOptionValue(t,"stats"),a=!1;n.state[t+"_"+e]?(0,N.default)(r,e)&&(r=(0,P.default)(r,function(t){return t!==e})):(0,N.default)(r,e)||(r.push(e),a=!0),n.setState((0,u.default)({},t+"_"+e,!n.state[t+"_"+e]),function(){n.props.updateOptions((0,u.default)({},t,r))}),I.default.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:"stats",setting:t,role:e,toggled:a?"on":"off"})},n.activateStats=function(){n.props.updateOptions({stats:!0})},n.trackOpenCard=function(){I.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"stats"})},n.handleRoleToggleChange=function(e,t){return function(){return n.updateOptions(e,t)}};var r=e.getOptionValue("count_roles","stats"),a=e.getOptionValue("roles","stats");return n.state={count_roles:r,roles:a,count_roles_administrator:(0,N.default)(r,"administrator",!1),count_roles_editor:(0,N.default)(r,"editor",!1),count_roles_author:(0,N.default)(r,"author",!1),count_roles_contributor:(0,N.default)(r,"contributor",!1),count_roles_subscriber:(0,N.default)(r,"subscriber",!1),roles_administrator:!0,roles_editor:(0,N.default)(a,"editor",!1),roles_author:(0,N.default)(a,"author",!1),roles_contributor:(0,N.default)(a,"contributor",!1),roles_subscriber:(0,N.default)(a,"subscriber",!1)},n}return(0,g.default)(t,e),(0,m.default)(t,[{key:"handleStatsOptionToggle",value:function(e){var t=this;return function(){return t.props.updateFormStateModuleOption("stats",e)}}},{key:"render",value:function(){var e=this,t=this.props.getModule("stats"),n=this.props.getOptionValue("stats"),r=this.props.isUnavailableInDevMode("stats"),a=this.props.getSiteRoles();return"inactive"===this.props.getModuleOverride("stats")?y.default.createElement(V.default,{moduleName:t.name}):n?y.default.createElement(F.default,(0,i.default)({},this.props,{header:(0,A.translate)("Site stats",{context:"Settings header"}),hideButton:!0}),y.default.createElement(T.default,{onOpen:this.trackOpenCard,header:(0,A.translate)("Collecting valuable traffic stats and insights"),clickableHeader:!0,className:(0,j.default)("jp-foldable-settings-standalone",{"jp-foldable-settings-disable":r})},y.default.createElement(U.default,{disableInDevMode:!0,module:t,support:{text:(0,A.translate)("Displays information on your site activity, including visitors and popular posts or pages."),link:"https://jetpack.com/support/wordpress-com-stats/"}},y.default.createElement(q.FormFieldset,null,y.default.createElement(w.default,{checked:!!this.props.getOptionValue("admin_bar"),disabled:!n||r,toggling:this.props.isSavingAnyOption(["stats","admin_bar"]),onChange:this.handleStatsOptionToggle("admin_bar")},y.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,A.translate)("Put a chart showing 48 hours of views in the admin bar"))),y.default.createElement(w.default,{checked:!!this.props.getOptionValue("hide_smile"),disabled:!n||r,toggling:this.props.isSavingAnyOption(["stats","hide_smile"]),onChange:this.handleStatsOptionToggle("hide_smile")},y.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,A.translate)("Hide the stats smiley face image")),y.default.createElement("span",{className:"jp-form-setting-explanation"},(0,A.translate)("The image helps collect stats, but should work when hidden.")))),y.default.createElement(q.FormFieldset,null,y.default.createElement(q.FormLegend,null,(0,A.translate)("Count logged in page views from")),(0,s.default)(a).map(function(t){return y.default.createElement(w.default,{checked:e.state["count_roles_"+t],disabled:!n||r||e.props.isSavingAnyOption(["stats","count_roles"]),onChange:e.handleRoleToggleChange(t,"count_roles"),key:"count_roles-"+t},y.default.createElement("span",{className:"jp-form-toggle-explanation"},a[t].name))})),y.default.createElement(q.FormFieldset,null,y.default.createElement(q.FormLegend,null,(0,A.translate)("Allow stats reports to be viewed by")),y.default.createElement(w.default,{checked:!0,disabled:!0},y.default.createElement("span",{className:"jp-form-toggle-explanation"},a.administrator.name)),(0,s.default)(a).map(function(t){return"administrator"!==t&&y.default.createElement(w.default,{checked:e.state["roles_"+t],disabled:!n||r||e.props.isSavingAnyOption(["stats","roles"]),onChange:e.handleRoleToggleChange(t,"roles"),key:"roles-"+t},y.default.createElement("span",{className:"jp-form-toggle-explanation"},a[t].name))}))))):y.default.createElement(O.default,{className:"jp-at-a-glance__stats-card "+(this.props.isDevMode?"is-inactive":"")},y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive"},y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},y.default.createElement("img",{src:R.imagePath+"stats.svg",width:"60",height:"60",alt:(0,A.translate)("Jetpack Stats Icon"),className:"jp-at-a-glance__stats-icon"})),y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isDevMode?(0,A.translate)("Unavailable in Dev Mode"):(0,A.translate)("{{a}}Activate Site Stats{{/a}} to see detailed stats, likes, followers, subscribers, and more! {{a1}}Learn More{{/a1}}",{components:{a:y.default.createElement("a",{href:"javascript:void(0)",onClick:this.activateStats}),a1:y.default.createElement("a",{
43
+ href:"https://jetpack.com/support/wordpress-com-stats/",target:"_blank",rel:"noopener noreferrer"})}})),!this.props.isDevMode&&y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},y.default.createElement(S.default,{onClick:this.activateStats,primary:!0},(0,A.translate)("Activate Site Stats")))))}}]),t}(y.default.Component);t.SiteStats=(0,B.ModuleSettingsForm)(K)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.RelatedPosts=void 0;var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(8),y=n(474),A=r(y),E=n(25),w=r(E),k=n(104),T=r(k),L=n(71),S=n(52),C=n(30),O=n(40),z=r(O),N=n(36),D=r(N),P=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={show_headline:r.props.getOptionValue("show_headline","related-posts"),show_thumbnails:r.props.getOptionValue("show_thumbnails","related-posts")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("related-posts",e))},r.handleShowHeadlineToggleChange=function(){r.updateOptions("show_headline")},r.handleShowThumbnailsToggleChange=function(){r.updateOptions("show_thumbnails")},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this,t=this.props.getOptionValue("related-posts"),n=this.props.isUnavailableInDevMode("related-posts");return g.default.createElement(z.default,(0,i.default)({},this.props,{hideButton:!0,module:"related-posts"}),g.default.createElement(D.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("related-posts"),support:{text:(0,v.translate)("Automatically displays similar content at the end of each post."),link:"https://jetpack.com/support/related-posts/"}},g.default.createElement(S.ModuleToggle,{slug:"related-posts",disabled:n,activated:t,toggling:this.props.isSavingAnyOption("related-posts"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Show related content after posts"))),g.default.createElement(L.FormFieldset,null,g.default.createElement(T.default,{checked:this.state.show_headline,disabled:!t||n||this.props.isSavingAnyOption(["related-posts","show_headline"]),onChange:this.handleShowHeadlineToggleChange},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)('Show a "Related" header to more clearly separate the related section from posts'))),g.default.createElement(T.default,{checked:this.state.show_thumbnails,disabled:!t||n||this.props.isSavingAnyOption(["related-posts","show_thumbnails"]),onChange:this.handleShowThumbnailsToggleChange},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Show a thumbnail image where available"))),(0,v.translate)("{{span}}You can now also configure related posts in the Customizer. {{ExternalLink}}Try it out!{{/ExternalLink}}{{/span}}",{components:{span:g.default.createElement("span",{className:"jp-form-setting-explanation"}),ExternalLink:g.default.createElement(A.default,{className:"jp-module-settings__external-link",href:this.props.configureUrl})}}),g.default.createElement(L.FormLabel,{className:"jp-form-label-wide"},(0,v.translate)("Preview",{context:"A header for a preview area in the configuration screen."})),g.default.createElement(w.default,{className:"jp-related-posts-preview"},this.state.show_headline&&g.default.createElement("div",{className:"jp-related-posts-preview__title"},(0,v.translate)("Related")),[{url:"1-wpios-ipad-3-1-viewsite.png",text:(0,v.translate)("Big iPhone/iPad Update Now Available"),context:(0,v.translate)('In "Mobile"',{comment:"It refers to the category where a post was found. Used in an example preview."})},{url:"wordpress-com-news-wordpress-for-android-ui-update2.jpg",text:(0,v.translate)("The WordPress for Android App Gets a Big Facelift"),context:(0,v.translate)('In "Mobile"',{comment:"It refers to the category where a post was found. Used in an example preview."})},{url:"videopresswedding.jpg",text:(0,v.translate)("Upgrade Focus: VideoPress For Weddings"),context:(0,v.translate)('In "Upgrade"',{comment:"It refers to the category where a post was found. Used in an example preview."})}].map(function(t,n){return g.default.createElement("div",{key:"preview_"+n,className:"jp-related-posts-preview__item"},e.state.show_thumbnails&&g.default.createElement("img",{src:"https://jetpackme.files.wordpress.com/2014/08/"+t.url+"?w=350&h=200&crop=1",alt:t.text}),g.default.createElement("h4",{className:"jp-related-posts-preview__post-title"},g.default.createElement("a",{href:"#/traffic"},t.text)),g.default.createElement("p",{className:"jp-related-posts-preview__post-context"},t.context))})))))}}]),t}(g.default.Component);t.RelatedPosts=(0,C.ModuleSettingsForm)(P)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(25),y=r(v),A=n(47),E=n(30),w=n(52),k=n(40),T=r(k),L=n(36),S=r(L),C=n(28),O=n(61),z=n(71),N=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){return M.default.createElement(T.default,(0,i.default)({},this.props,{module:"search",feature:A.FEATURE_SEARCH_JETPACK,hideButton:!0}),M.default.createElement(S.default,{hasChild:!0,module:{module:"search"},support:{text:(0,g.translate)("Replaces the default WordPress search with a faster, filterable search experience."),link:"https://jetpack.com/support/search"}},M.default.createElement(w.ModuleToggle,{slug:"search",compact:!0,activated:this.props.getOptionValue("search"),toggling:this.props.isSavingAnyOption("search"),toggleModule:this.props.toggleModuleNow},(0,g.translate)("Replace WordPress built-in search with an improved search experience")),this.props.getOptionValue("search")&&M.default.createElement(z.FormFieldset,null,M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,g.translate)("Add the Jetpack search widget to your sidebar to configure advanced search filters.")))),this.props.getOptionValue("search")&&M.default.createElement(y.default,{compact:!0,className:"jp-settings-card__configure-link",href:"customize.php?autofocus[panel]=widgets"},(0,g.translate)("Add Jetpack Search Widget")))}}]),t}(M.default.Component);t.default=(0,b.connect)(function(e){return{siteAdminUrl:(0,C.getSiteAdminUrl)(e),sitePlan:(0,O.getSitePlan)(e),fetchingSiteData:(0,O.isFetchingSiteData)(e)}})((0,E.ModuleSettingsForm)(N)),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.VerificationServices=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(508),v=r(g),y=n(474),A=r(y),E=n(71),w=n(30),k=n(40),T=r(k),L=n(36),S=r(L),C=n(473),O=r(C),z=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.activateVerificationTools=function(){return r.props.updateOptions({"verification-tools":!0})},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this,t=this.props.getModule("verification-tools");return"inactive"===this.props.getModuleOverride("google-analytics")?M.default.createElement(O.default,{title:t.name,icon:"cog",description:(0,b.translate)("%(moduleName)s has been disabled by a site administrator.",{args:{moduleName:t.name}})}):this.props.getOptionValue("verification-tools")?M.default.createElement(T.default,(0,i.default)({},this.props,{module:"verification-tools",saveDisabled:this.props.isSavingAnyOption(["google","bing","pinterest","yandex"])}),M.default.createElement(S.default,{module:t,support:{text:(0,b.translate)("Provides the necessary hidden tags needed to verify your WordPress site with various services."),link:"https://jetpack.com/support/site-verification-tools"}},M.default.createElement("p",null,(0,b.translate)("Note that {{b}}verifying your site with these services is not necessary{{/b}} in order for your site to be indexed by search engines. To use these advanced search engine tools and verify your site with a service, paste the HTML Tag code below. Read the {{support}}full instructions{{/support}} if you are having trouble. Supported verification services: {{google}}Google Search Console{{/google}}, {{bing}}Bing Webmaster Center{{/bing}}, {{pinterest}}Pinterest Site Verification{{/pinterest}}, and {{yandex}}Yandex.Webmaster{{/yandex}}.",{components:{b:M.default.createElement("strong",null),support:M.default.createElement("a",{href:"https://jetpack.com/support/site-verification-tools/"}),google:M.default.createElement(A.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://www.google.com/webmasters/tools/"}),bing:M.default.createElement(A.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://www.bing.com/webmaster/"}),pinterest:M.default.createElement(A.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://pinterest.com/website/verify/"}),yandex:M.default.createElement(A.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://webmaster.yandex.com/sites/"})}})),M.default.createElement(E.FormFieldset,null,[{id:"google",label:(0,b.translate)("Google"),placeholder:'<meta name="google-site-verification" content="1234" />'},{id:"bing",label:(0,b.translate)("Bing"),placeholder:'<meta name="msvalidate.01" content="1234" />'},{id:"pinterest",label:(0,b.translate)("Pinterest"),placeholder:'<meta name="p:domain_verify" content="1234" />'},{id:"yandex",label:(0,b.translate)("Yandex"),placeholder:'<meta name="yandex-verification" content="1234" />'}].map(function(t){return M.default.createElement(E.FormLabel,{className:"jp-form-input-with-prefix",key:"verification_service_"+t.id},M.default.createElement("span",null,t.label),M.default.createElement(v.default,{name:t.id,value:e.props.getOptionValue(t.id),placeholder:t.placeholder,className:"code",disabled:e.props.isUpdating(t.id),onChange:e.props.onOptionChange}))})))):M.default.createElement(O.default,{callToAction:(0,b.translate)("Activate"),title:t.name,icon:"cog",description:t.long_description,onClick:this.activateVerificationTools})}}]),t}(M.default.Component);t.VerificationServices=(0,w.ModuleSettingsForm)(z)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Sitemaps=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(474),y=r(v),A=n(27),E=r(A),w=n(15),k=r(w),T=n(71),L=n(30),S=n(52),C=n(40),O=r(C),z=n(36),N=r(z),D=n(28),P=t.Sitemaps=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.trackSitemapUrl=function(){k.default.tracks.recordJetpackClick("sitemap-url-link")},r.trackSitemapNewsUrl=function(){k.default.tracks.recordJetpackClick("sitemap-news-url-link")},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.getModule("sitemaps"),t=(0,E.default)(e,["extra","sitemap_url"],""),n=(0,E.default)(e,["extra","news_sitemap_url"],"");return M.default.createElement(O.default,(0,i.default)({},this.props,{module:"sitemaps",hideButton:!0}),M.default.createElement(N.default,{hasChild:!0,module:{module:"sitemaps"},support:{text:(0,g.translate)("Automatically generates the files required for search engines to index your site."),link:"https://jetpack.com/support/sitemaps/"}},M.default.createElement(S.ModuleToggle,{slug:"sitemaps",compact:!0,activated:this.props.getOptionValue("sitemaps"),toggling:this.props.isSavingAnyOption("sitemaps"),toggleModule:this.props.toggleModuleNow},(0,g.translate)("Generate XML sitemaps")),this.props.isSiteVisibleToSearchEngines?this.props.getOptionValue("sitemaps")&&M.default.createElement(T.FormFieldset,null,M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,g.translate)("Your sitemap is automatically sent to all major search engines for indexing.")),M.default.createElement("p",null,M.default.createElement(y.default,{onClick:this.trackSitemapUrl,icon:!0,target:"_blank",rel:"noopener noreferrer",href:t},t),M.default.createElement("br",null),M.default.createElement(y.default,{onClick:this.trackSitemapNewsUrl,icon:!0,target:"_blank",rel:"noopener noreferrer",href:n},n))):M.default.createElement(T.FormFieldset,null,M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,g.translate)('Your site is not currently accessible to search engines. You might have "Search Engine Visibility" disabled in your {{a}}Reading Settings{{/a}}.',{components:{a:M.default.createElement("a",{href:this.props.siteAdminUrl+"options-reading.php"})}})))))}}]),t}(M.default.Component);t.default=(0,b.connect)(function(e){return{isSiteVisibleToSearchEngines:(0,D.isSiteVisibleToSearchEngines)(e),siteAdminUrl:(0,D.getSiteAdminUrl)(e)}})((0,L.ModuleSettingsForm)(P))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Writing=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(25),y=r(v),A=n(23),E=n(103),w=n(28),k=n(21),T=n(74),L=n(211),S=r(L),C=n(1134),O=r(C),z=n(1137),N=r(z),D=n(1138),P=r(D),x=n(1139),j=r(x),R=n(1140),Y=r(R),I=n(1152),q=n(1153),B=r(q),W=t.Writing=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode,isLinked:this.props.isLinked,getModuleOverride:this.props.getModuleOverride},t=["masterbar","markdown","after-the-deadline","custom-content-types","photon","carousel","post-by-email","infinite-scroll","minileven","videopress","lazy-images"].some(this.props.isModuleFound);if(!this.props.searchTerm&&!this.props.active)return null;if(!t)return null;var n=this.props.userCanManageModules||this.props.userCanEditPosts&&this.props.isModuleActivated("after-the-deadline"),r=this.props.userCanManageModules||this.props.userCanEditPosts&&this.props.isModuleActivated("post-by-email");return M.default.createElement("div",null,M.default.createElement(S.default,null),this.props.isModuleFound("masterbar")&&!this.props.masterbarIsAlwaysActive&&M.default.createElement(I.Masterbar,(0,i.default)({connectUrl:this.props.connectUrl},e)),n&&M.default.createElement(O.default,(0,i.default)({},e,{userCanManageModules:this.props.userCanManageModules})),M.default.createElement(N.default,e),M.default.createElement(B.default,e),this.props.isModuleFound("custom-content-types")&&M.default.createElement(P.default,e),M.default.createElement(j.default,e),this.props.isModuleFound("post-by-email")&&r&&M.default.createElement(Y.default,(0,i.default)({},e,{connectUrl:this.props.connectUrl,isLinked:this.props.isLinked,userCanManageModules:this.props.userCanManageModules})),!n&&!r&&M.default.createElement(y.default,null,(0,g.translate)("Writing tools available to you will be shown here when an administrator enables them.")))}}]),t}(M.default.Component);W.displayName="WritingSettings",t.default=(0,b.connect)(function(e){return{module:function(t){return(0,A.getModule)(e,t)},settings:(0,E.getSettings)(e),masterbarIsAlwaysActive:(0,w.isAtomicSite)(e),isDevMode:(0,k.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,k.isUnavailableInDevMode)(e,t)},userCanEditPosts:(0,w.userCanEditPosts)(e),isModuleActivated:function(t){return(0,A.isModuleActivated)(e,t)},isLinked:(0,k.isCurrentUserLinked)(e),userCanManageModules:(0,w.userCanManageModules)(e),isModuleFound:function(t){return(0,T.isModuleFound)(e,t)},connectUrl:(0,k.getConnectUrl)(e),getModuleOverride:function(t){return(0,A.getModuleOverride)(e,t)}}})(W)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Composing=void 0;var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(10),y=n(8),A=n(104),E=r(A),w=n(516),k=r(w),T=n(14),L=r(T),S=n(15),C=r(S),O=n(71),z=n(74),N=n(52),D=n(30),P=n(23),x=n(1135),j=r(x),R=n(40),Y=r(R),I=n(36),q=r(I),B=t.Composing=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={onpublish:r.props.getOptionValue("onpublish","after-the-deadline"),onupdate:r.props.getOptionValue("onupdate","after-the-deadline"),guess_lang:r.props.getOptionValue("guess_lang","after-the-deadline"),"Bias Language":r.props.getOptionValue("Bias Language","after-the-deadline"),Cliches:r.props.getOptionValue("Cliches","after-the-deadline"),"Complex Expression":r.props.getOptionValue("Complex Expression","after-the-deadline"),"Diacritical Marks":r.props.getOptionValue("Diacritical Marks","after-the-deadline"),"Double Negative":r.props.getOptionValue("Double Negative","after-the-deadline"),"Hidden Verbs":r.props.getOptionValue("Hidden Verbs","after-the-deadline"),"Jargon Language":r.props.getOptionValue("Jargon Language","after-the-deadline"),"Passive voice":r.props.getOptionValue("Passive voice","after-the-deadline"),"Phrases to Avoid":r.props.getOptionValue("Phrases to Avoid","after-the-deadline"),"Redundant Expression":r.props.getOptionValue("Redundant Expression","after-the-deadline")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("after-the-deadline",e))},r.handleToggleChange=function(e){return function(){return r.updateOptions(e)}},r.getToggle=function(e,t){return g.default.createElement(E.default,{checked:r.state[e],disabled:!r.props.getOptionValue("after-the-deadline")||r.props.isUnavailableInDevMode("after-the-deadline")||r.props.isSavingAnyOption(["after-the-deadline",e]),onChange:r.handleToggleChange(e)},g.default.createElement("span",{className:"jp-form-toggle-explanation"},t))},r.getAtdSettings=function(){var e=r.props.getOptionValue("ignored_phrases");return g.default.createElement(q.default,{hasChild:!0,disableInDevMode:!0,module:r.props.getModule("after-the-deadline"),support:{text:(0,y.translate)("Checks your content for correct grammar and spelling, misused words, and style while you write."),link:"https://jetpack.com/support/spelling-and-grammar/"}},g.default.createElement(O.FormFieldset,null,g.default.createElement(O.FormLegend,null," ",(0,y.translate)("Proofreading")," "),g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,y.translate)("Automatically proofread content when: ")),r.getToggle("onpublish",(0,y.translate)("A post or page is first published")),r.getToggle("onupdate",(0,y.translate)("A post or page is updated"))),g.default.createElement(O.FormFieldset,null,g.default.createElement(O.FormLegend,null," ",(0,y.translate)("Automatic Language Detection")),g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,y.translate)("The proofreader supports English, French, German, Portuguese and Spanish.")),r.getToggle("guess_lang",(0,y.translate)("Use automatically detected language to proofread posts and pages"))),g.default.createElement(O.FormFieldset,null,g.default.createElement(O.FormLegend,null," ",(0,y.translate)("English Options")," "),g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,y.translate)("Enable proofreading for the following grammar and style rules: ")),r.getToggle("Bias Language",(0,y.translate)("Bias Language")),r.getToggle("Cliches",(0,y.translate)("Clichés")),r.getToggle("Complex Expression",(0,y.translate)("Complex Phrases")),r.getToggle("Diacritical Marks",(0,y.translate)("Diacritical Marks")),r.getToggle("Double Negative",(0,y.translate)("Double Negatives")),r.getToggle("Hidden Verbs",(0,y.translate)("Hidden Verbs")),r.getToggle("Jargon Language",(0,y.translate)("Jargon")),r.getToggle("Passive voice",(0,y.translate)("Passive Voice")),r.getToggle("Phrases to Avoid",(0,y.translate)("Phrases to Avoid")),r.getToggle("Redundant Expression",(0,y.translate)("Redundant Phrases"))),g.default.createElement(O.FormFieldset,null,g.default.createElement(O.FormLegend,null,(0,y.translate)("Ignored Phrases")),g.default.createElement(j.default,{name:"ignored_phrases",disabled:!r.props.getOptionValue("after-the-deadline"),placeholder:(0,y.translate)("Add a phrase"),value:void 0!==e&&""!==e?e.split(","):[],onChange:r.props.onOptionChange}),g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,y.translate)("Confirm each new phrase you add by pressing enter."))))},r.updateFormStateByMarkdown=function(e){return r.props.getSettingCurrentValue("wpcom_publish_comments_with_markdown",e)?r.props.updateFormStateModuleOption(e,"wpcom_publish_posts_with_markdown"):r.props.updateFormStateModuleOption(e,"wpcom_publish_posts_with_markdown",!0)},r.trackOpenCard=function(){C.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"atd"})},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this.props.isModuleFound("after-the-deadline"),t=this.props.isModuleFound("markdown");if(!t&&!e)return null;var n=this.props.module("markdown"),r=this.props.module("after-the-deadline"),a=this.props.isUnavailableInDevMode("after-the-deadline"),o=g.default.createElement(q.default,{module:n,support:{text:(0,y.translate)("Allows you to compose content with links, lists, and other styles using the Markdown syntax."),link:"https://jetpack.com/support/markdown/"}},g.default.createElement(O.FormFieldset,null,g.default.createElement(N.ModuleToggle,{slug:"markdown",activated:!!this.props.getOptionValue("wpcom_publish_posts_with_markdown","markdown"),toggling:this.props.isSavingAnyOption(["markdown","wpcom_publish_posts_with_markdown"]),disabled:this.props.isSavingAnyOption(["markdown","wpcom_publish_posts_with_markdown"]),toggleModule:this.updateFormStateByMarkdown},g.default.createElement("span",{className:"jp-form-toggle-explanation"},n.description)))),s=g.default.createElement(k.default,{onOpen:this.trackOpenCard,className:(0,L.default)("jp-foldable-card__main-settings",{"jp-foldable-settings-disable":a}),header:this.props.userCanManageModules?g.default.createElement(N.ModuleToggle,{slug:"after-the-deadline",compact:!0,disabled:a,activated:this.props.getOptionValue("after-the-deadline"),toggling:this.props.isSavingAnyOption("after-the-deadline"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},r.description)):g.default.createElement("span",{className:"jp-form-toggle-explanation"},r.description)},this.getAtdSettings());return g.default.createElement(Y.default,(0,i.default)({},this.props,{header:(0,y.translate)("Composing",{context:"Settings header"}),hideButton:!e,module:"composing",saveDisabled:this.props.isSavingAnyOption("ignored_phrases")}),t&&o,e&&s)}}]),t}(g.default.Component);t.default=(0,v.connect)(function(e){return{module:function(t){return(0,P.getModule)(e,t)},isModuleFound:function(t){return(0,z.isModuleFound)(e,t)}}})((0,D.ModuleSettingsForm)(B))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(1136),M=r(_),b=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.state={tags:r.props.value||[]},r.handleChange=function(e){r.setState({tags:e}),r.props.onChange&&r.props.onChange({target:{name:r.props.name,value:e.join(",")}})},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.default.createElement(M.default,{disabled:this.props.disabled,inputProps:{placeholder:this.props.placeholder},onChange:this.handleChange,value:this.state.tags})}}]),t}(m.default.Component);t.default=b,e.exports=t.default},function(e,t,n){var r,a,i;!function(o,s){a=[e,t,n(1),n(7)],r=s,void 0!==(i="function"==typeof r?r.apply(t,a):r)&&(e.exports=i)}(0,function(e,t,n,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function l(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function d(e){return window.clipboardData?window.clipboardData.getData("Text"):e.clipboardData?e.clipboardData.getData("text/plain"):""}function f(e){var t=e.tag,n=e.key,r=e.disabled,a=e.onRemove,i=e.classNameRemove,o=e.getTagDisplayValue,s=u(e,["tag","key","disabled","onRemove","classNameRemove","getTagDisplayValue"]);return _.default.createElement("span",b({key:n},s),o(t),!r&&_.default.createElement("a",{className:i,onClick:function(e){return a(n)}}))}function p(e){var t=(e.addTag,u(e,["addTag"])),n=t.onChange,r=t.value,a=u(t,["onChange","value"]);return _.default.createElement("input",b({type:"text",onChange:n,value:r},a))}function h(e,t){return _.default.createElement("span",null,e,t)}function m(e){return e.split(" ").map(function(e){return e.trim()})}Object.defineProperty(t,"__esModule",{value:!0});var _=a(n),M=(a(r),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),b=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},g={className:"react-tagsinput-input",placeholder:"Add a tag"},v=function(e){function t(){o(this,t);var e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.state={tag:"",isFocused:!1},e.focus=e.focus.bind(e),e.blur=e.blur.bind(e),e}return c(t,e),M(t,[{key:"_getTagDisplayValue",value:function(e){var t=this.props.tagDisplayProp;return t?e[t]:e}},{key:"_makeTag",value:function(e){var t=this.props.tagDisplayProp;return t?i({},t,e):e}},{key:"_removeTag",value:function(e){var t=this.props.value.concat([]);if(e>-1&&e<t.length){var n=t.splice(e,1);this.props.onChange(t,n,[e])}}},{key:"_clearInput",value:function(){this.hasControlledInput()?this.props.onChangeInput(""):this.setState({tag:""})}},{key:"_tag",value:function(){return this.hasControlledInput()?this.props.inputValue:this.state.tag}},{key:"_addTags",value:function(e){var t=this,n=this.props,r=n.validationRegex,a=n.onChange,i=n.onValidationReject,o=n.onlyUnique,s=n.maxTags,c=n.value;o&&(e=l(e),e=e.filter(function(e){return c.every(function(n){return t._getTagDisplayValue(n)!==t._getTagDisplayValue(e)})}));var u=e.filter(function(e){return!r.test(t._getTagDisplayValue(e))});if(e=e.filter(function(e){return r.test(t._getTagDisplayValue(e))}),e=e.filter(function(e){var n=t._getTagDisplayValue(e);return"function"==typeof n.trim?n.trim().length>0:n}),s>=0){var d=Math.max(s-c.length,0);e=e.slice(0,d)}if(i&&u.length>0&&i(u),e.length>0){for(var f=c.concat(e),p=[],h=0;h<e.length;h++)p.push(c.length+h);return a(f,e,p),this._clearInput(),!0}return!(u.length>0)&&(this._clearInput(),!1)}},{key:"_shouldPreventDefaultEventOnAdd",value:function(e,t,n){return!!e||13===n&&(this.props.preventSubmit||!this.props.preventSubmit&&!t)}},{key:"focus",value:function(){this.input&&"function"==typeof this.input.focus&&this.input.focus(),this.handleOnFocus()}},{key:"blur",value:function(){this.input&&"function"==typeof this.input.blur&&this.input.blur(),this.handleOnBlur()}},{key:"accept",value:function(){var e=this._tag();return""!==e&&(e=this._makeTag(e),this._addTags([e]))}},{key:"addTag",value:function(e){return this._addTags([e])}},{key:"clearInput",value:function(){this._clearInput()}},{key:"handlePaste",value:function(e){var t=this,n=this.props,r=n.addOnPaste,a=n.pasteSplit;if(r){e.preventDefault();var i=d(e),o=a(i).map(function(e){return t._makeTag(e)});this._addTags(o)}}},{key:"handleKeyDown",value:function(e){if(!e.defaultPrevented){var t=this.props,n=t.value,r=t.removeKeys,a=t.addKeys,i=this._tag(),o=""===i,s=e.keyCode,c=e.key,u=-1!==a.indexOf(s)||-1!==a.indexOf(c),l=-1!==r.indexOf(s)||-1!==r.indexOf(c);if(u){var d=this.accept();this._shouldPreventDefaultEventOnAdd(d,o,s)&&e.preventDefault()}l&&n.length>0&&o&&(e.preventDefault(),this._removeTag(n.length-1))}}},{key:"handleClick",value:function(e){e.target===this.div&&this.focus()}},{key:"handleChange",value:function(e){var t=this.props.onChangeInput,n=this.props.inputProps.onChange,r=e.target.value;n&&n(e),this.hasControlledInput()?t(r):this.setState({tag:r})}},{key:"handleOnFocus",value:function(e){var t=this.props.inputProps.onFocus;t&&t(e),this.setState({isFocused:!0})}},{key:"handleOnBlur",value:function(e){var t=this.props.inputProps.onBlur;if(this.setState({isFocused:!1}),null!=e&&(t&&t(e),this.props.addOnBlur)){var n=this._makeTag(e.target.value);this._addTags([n])}}},{key:"handleRemove",value:function(e){this._removeTag(e)}},{key:"inputProps",value:function(){var e=this.props.inputProps,t=(e.onChange,e.onFocus,e.onBlur,u(e,["onChange","onFocus","onBlur"])),n=b({},g,t);return this.props.disabled&&(n.disabled=!0),n}},{key:"inputValue",value:function(e){return e.currentValue||e.inputValue||""}},{key:"hasControlledInput",value:function(){var e=this.props,t=e.inputValue;return"function"==typeof e.onChangeInput&&"string"==typeof t}},{key:"componentDidMount",value:function(){this.hasControlledInput()||this.setState({tag:this.inputValue(this.props)})}},{key:"componentWillReceiveProps",value:function(e){this.hasControlledInput()||this.inputValue(e)&&this.setState({tag:this.inputValue(e)})}},{key:"render",value:function(){var e=this,t=this.props,n=t.value,r=(t.onChange,t.tagProps),a=t.renderLayout,i=t.renderTag,o=t.renderInput,s=(t.addKeys,t.removeKeys,t.className),c=t.focusedClassName,l=(t.addOnBlur,t.addOnPaste,t.inputProps,t.pasteSplit,t.onlyUnique,t.maxTags,t.validationRegex,t.disabled);t.tagDisplayProp,t.inputValue,t.onChangeInput,
44
  u(t,["value","onChange","tagProps","renderLayout","renderTag","renderInput","addKeys","removeKeys","className","focusedClassName","addOnBlur","addOnPaste","inputProps","pasteSplit","onlyUnique","maxTags","validationRegex","disabled","tagDisplayProp","inputValue","onChangeInput"]);this.state.isFocused&&(s+=" "+c);var d=n.map(function(t,n){return i(b({key:n,tag:t,onRemove:e.handleRemove.bind(e),disabled:l,getTagDisplayValue:e._getTagDisplayValue.bind(e)},r))}),f=o(b({ref:function(t){e.input=t},value:this._tag(),onPaste:this.handlePaste.bind(this),onKeyDown:this.handleKeyDown.bind(this),onChange:this.handleChange.bind(this),onFocus:this.handleOnFocus.bind(this),onBlur:this.handleOnBlur.bind(this),addTag:this.addTag.bind(this)},this.inputProps()));return _.default.createElement("div",{ref:function(t){e.div=t},onClick:this.handleClick.bind(this),className:s},a(d,f))}}]),t}(_.default.Component);v.defaultProps={className:"react-tagsinput",focusedClassName:"react-tagsinput--focused",addKeys:[9,13],addOnBlur:!1,addOnPaste:!1,inputProps:{},removeKeys:[8],renderInput:p,renderTag:f,renderLayout:h,pasteSplit:m,tagProps:{className:"react-tagsinput-tag",classNameRemove:"react-tagsinput-remove"},onlyUnique:!1,maxTags:-1,validationRegex:/.*/,disabled:!1,tagDisplayProp:null,preventSubmit:!0},t.default=v,e.exports=t.default})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(10),y=n(8),A=n(104),E=r(A),w=n(44),k=r(w),T=n(47),L=n(71),S=n(52),C=n(30),O=n(40),z=r(O),N=n(36),D=r(N),P=n(23),x=n(74),j=n(61),R=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={carousel_display_exif:r.props.getOptionValue("carousel_display_exif","carousel")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("carousel",e))},r.handleCarouselDisplayExifChange=function(){r.updateOptions("carousel_display_exif")},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this.props.isModuleFound("carousel"),t=this.props.isModuleFound("videopress");if(!e&&!t)return null;var n=this.props.module("carousel"),r=this.props.getOptionValue("carousel"),a=this.props.module("videopress"),o=(0,T.getPlanClass)(this.props.sitePlan.product_slug),s=g.default.createElement(D.default,{hasChild:!0,module:{module:"carousel"},support:{text:(0,y.translate)("Replaces the standard WordPress galleries with a full-screen photo browsing experience, including comments and EXIF metadata."),link:"https://jetpack.com/support/carousel"}},g.default.createElement(S.ModuleToggle,{slug:"carousel",activated:r,toggling:this.props.isSavingAnyOption("carousel"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},n.description)),g.default.createElement(L.FormFieldset,null,g.default.createElement(E.default,{checked:this.state.carousel_display_exif,disabled:!r||this.props.isSavingAnyOption(["carousel","carousel_display_exif"]),onChange:this.handleCarouselDisplayExifChange},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,y.translate)("Show photo metadata (Exif) in carousel, when available"))),g.default.createElement(L.FormLabel,null,g.default.createElement(L.FormLegend,{className:"jp-form-label-wide"},(0,y.translate)("Color scheme")),g.default.createElement(L.FormSelect,(0,i.default)({name:"carousel_background_color",value:this.props.getOptionValue("carousel_background_color"),disabled:!r||this.props.isSavingAnyOption(["carousel","carousel_background_color"])},this.props,{validValues:this.props.validValues("carousel_background_color","carousel")}))))),c=(0,k.default)(["is-premium-plan","is-business-plan"],o)&&g.default.createElement(D.default,{hasChild:!0,disableInDevMode:!0,module:a,support:{text:(0,y.translate)("Hosts your video files on the global WordPress.com servers."),link:"https://jetpack.com/support/videopress/"}},g.default.createElement(S.ModuleToggle,{slug:"videopress",disabled:this.props.isUnavailableInDevMode("videopress"),activated:this.props.getOptionValue("videopress"),toggling:this.props.isSavingAnyOption("videopress"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},a.description))),u="inactive"===this.props.getModuleOverride("videopress");return g.default.createElement(z.default,(0,i.default)({},this.props,{header:(0,y.translate)("Media"),hideButton:!e,feature:!u&&T.FEATURE_VIDEO_HOSTING_JETPACK,saveDisabled:this.props.isSavingAnyOption("carousel_background_color")}),e&&s,t&&c)}}]),t}(g.default.Component);t.default=(0,v.connect)(function(e){return{module:function(t){return(0,P.getModule)(e,t)},isModuleFound:function(t){return(0,x.isModuleFound)(e,t)},sitePlan:(0,j.getSitePlan)(e),getModuleOverride:function(t){return(0,P.getModuleOverride)(e,t)}}})((0,C.ModuleSettingsForm)(R)),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.CustomContentTypes=void 0;var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(10),y=n(8),A=n(104),E=r(A),w=n(71),k=n(30),T=n(23),L=n(74),S=n(40),C=r(S),O=n(36),z=r(O),N=t.CustomContentTypes=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={testimonial:r.props.getOptionValue("jetpack_testimonial","custom-content-types"),portfolio:r.props.getOptionValue("jetpack_portfolio","custom-content-types")},r.updateCPTs=function(e){var t="testimonial"===e?!(!r.state.testimonial||r.state.portfolio):!(!r.state.portfolio||r.state.testimonial);r.props.updateFormStateModuleOption("custom-content-types","jetpack_"+e,t),r.setState((0,s.default)({},e,!r.state[e]))},r.linkIfActiveCPT=function(e){return r.props.getSettingCurrentValue("jetpack_"+e,"custom-content-types")?g.default.createElement("a",{href:r.props.siteAdminUrl+"edit.php?post_type=jetpack-"+e}):g.default.createElement("span",null)},r.handleTestimonialToggleChange=function(){r.updateCPTs("testimonial")},r.handlePortfolioToggleChange=function(){r.updateCPTs("portfolio")},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){if(!this.props.isModuleFound("custom-content-types"))return null;var e=this.props.module("custom-content-types"),t="inactive"===this.props.getModuleOverride("custom-content-types"),n=t&&(0,y.translate)("This feature has been disabled by a site administrator.");return g.default.createElement(C.default,(0,i.default)({},this.props,{module:"custom-content-types",hideButton:!0}),g.default.createElement(z.default,{hasChild:!0,module:e,support:{text:(0,y.translate)("Adds the Testimonial custom post type, allowing you to collect, organize, and display testimonials on your site."),link:"https://jetpack.com/support/custom-content-types/"}},g.default.createElement(E.default,{checked:this.state.testimonial,disabled:this.props.isSavingAnyOption("jetpack_testimonial")||t,onChange:this.handleTestimonialToggleChange,disabledReason:n},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,y.translate)("Testimonials"))),g.default.createElement(w.FormFieldset,null,g.default.createElement("p",{className:"jp-form-setting-explanation"},(0,y.translate)("Add, organize, and display {{testimonialLink}}testimonials{{/testimonialLink}}. If your theme doesn’t support testimonials yet, you can display them using the shortcode\t( [testimonials] ).",{components:{testimonialLink:this.linkIfActiveCPT("testimonial")}})))),g.default.createElement(z.default,{hasChild:!0,module:e,support:{text:(0,y.translate)("Adds the Portfolio custom post type, allowing you to manage and showcase projects on your site."),link:"https://jetpack.com/support/custom-content-types/"}},g.default.createElement(E.default,{checked:this.state.portfolio,disabled:this.props.isSavingAnyOption("jetpack_portfolio")||t,onChange:this.handlePortfolioToggleChange,disabledReason:n},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,y.translate)("Portfolios"))),g.default.createElement(w.FormFieldset,null,g.default.createElement("p",{className:"jp-form-setting-explanation"},(0,y.translate)("Add, organize, and display {{portfolioLink}}portfolios{{/portfolioLink}}. If your theme doesn’t support portfolios yet, you can display them using the shortcode ( [portfolio] ).",{components:{portfolioLink:this.linkIfActiveCPT("portfolio")}})))))}}]),t}(g.default.Component);t.default=(0,v.connect)(function(e){return{module:function(t){return(0,T.getModule)(e,t)},isModuleFound:function(t){return(0,L.isModuleFound)(e,t)},getModuleOverride:function(t){return(0,T.getModuleOverride)(e,t)}}})((0,k.ModuleSettingsForm)(N))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(10),y=n(8),A=n(104),E=r(A),w=n(15),k=r(w),T=n(71),L=n(52),S=n(23),C=n(28),O=n(74),z=n(30),N=n(40),D=r(N),P=n(36),x=r(P),j=n(515),R=r(j),Y=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.getInfiniteMode=function(){return r.props.getOptionValue("infinite-scroll")?r.props.getOptionValue("infinite_scroll","infinite-scroll")?"infinite_scroll":"infinite_button":"infinite_default"},r.updateInfiniteMode=function(e){r.setState({infinite_mode:e},r.prepareOptionsToUpdate)},r.prepareOptionsToUpdate=function(){"infinite_default"===r.state.infinite_mode?r.props.updateFormStateOptionValue("infinite-scroll",!1):"infinite_scroll"!==r.state.infinite_mode&&"infinite_button"!==r.state.infinite_mode||r.props.updateFormStateOptionValue({"infinite-scroll":!0,infinite_scroll:"infinite_scroll"===r.state.infinite_mode})},r.updateOptions=function(e,t){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption(t,e))},r.trackLearnMoreIS=function(){k.default.tracks.recordJetpackClick({target:"learn-more",feature:"infinite-scroll",extra:"not-supported-link"})},r.state={infinite_mode:r.getInfiniteMode(),wp_mobile_excerpt:r.props.getOptionValue("wp_mobile_excerpt","minileven"),wp_mobile_featured_images:r.props.getOptionValue("wp_mobile_featured_images","minileven"),wp_mobile_app_promos:r.props.getOptionValue("wp_mobile_app_promos","minileven")},r.handleInfiniteScrollModeChange=function(e){return function(){return r.updateInfiniteMode(e)}},r.handleMinilevenOptionChange=function(e,t){return function(){return r.updateOptions(e,t)}},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this,t=this.props.isModuleFound("infinite-scroll"),n=this.props.isModuleFound("minileven");if(!t&&!n)return null;var r=this.props.getModule("infinite-scroll"),a=this.props.getModule("minileven"),o=this.props.getOptionValue(a.module),s="inactive"===this.props.getModuleOverride("infinite-scroll");return g.default.createElement(D.default,(0,i.default)({},this.props,{header:(0,y.translate)("Theme enhancements"),hideButton:!t||!this.props.isInfiniteScrollSupported}),s&&g.default.createElement(R.default,{moduleName:r.name,compact:!0}),t&&!s&&g.default.createElement(x.default,{hasChild:!0,module:{module:r.module},key:"theme_enhancement_"+r.module,support:{text:(0,y.translate)("Loads the next posts automatically when the reader approaches the bottom of the page."),link:"https://jetpack.com/support/infinite-scroll"}},g.default.createElement(T.FormLegend,{className:"jp-form-label-wide"},r.name),this.props.isInfiniteScrollSupported?[{key:"infinite_default",label:(0,y.translate)("Load more posts using the default theme behavior")},{key:"infinite_button",label:(0,y.translate)("Load more posts in page with a button")},{key:"infinite_scroll",label:(0,y.translate)("Load more posts as the reader scrolls down")}].map(function(t){return g.default.createElement(T.FormLabel,{key:r.module+"_"+t.key},g.default.createElement("input",{type:"radio",name:"infinite_mode",value:t.key,checked:t.key===e.state.infinite_mode,disabled:e.props.isSavingAnyOption([r.module,t.key]),onChange:e.handleInfiniteScrollModeChange(t.key)}),g.default.createElement("span",{className:"jp-form-toggle-explanation"},t.label))}):g.default.createElement("span",null,(0,y.translate)("Theme support required.")+" ",g.default.createElement("a",{onClick:this.trackLearnMoreIS,href:r.learn_more_button+"#theme",title:(0,y.translate)("Learn more about adding support for Infinite Scroll to your theme.")},(0,y.translate)("Learn more")))),n&&g.default.createElement(x.default,{hasChild:!0,module:{module:a.module},key:"theme_enhancement_"+a.module,support:{text:(0,y.translate)("Enables a lightweight, mobile-friendly theme that will be displayed to visitors on mobile devices."),link:"https://jetpack.com/support/mobile-theme"}},g.default.createElement(L.ModuleToggle,{slug:a.module,activated:o,toggling:this.props.isSavingAnyOption(a.module),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},a.description)),g.default.createElement(T.FormFieldset,null,[{key:"wp_mobile_excerpt",label:(0,y.translate)("Use excerpts instead of full posts on front page and archive pages")},{key:"wp_mobile_featured_images",label:(0,y.translate)("Show featured images")},{key:"wp_mobile_app_promos",label:(0,y.translate)("Show an ad for the WordPress mobile apps in the footer of the mobile theme")}].map(function(t){return g.default.createElement(E.default,{checked:e.state[t.key],disabled:!o||e.props.isSavingAnyOption([a.module,t.key]),onChange:e.handleMinilevenOptionChange(t.key,a.module),key:a.module+"_"+t.key},g.default.createElement("span",{className:"jp-form-toggle-explanation"},t.label))}))))}}]),t}(g.default.Component);t.default=(0,v.connect)(function(e){return{module:function(t){return(0,S.getModule)(e,t)},isInfiniteScrollSupported:(0,C.currentThemeSupports)(e,"infinite-scroll"),isModuleFound:function(t){return(0,O.isModuleFound)(e,t)}}})((0,z.ModuleSettingsForm)(Y)),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(41),y=r(v),A=n(1141),E=r(A),w=n(25),k=r(w),T=n(15),L=r(T),S=n(71),C=n(52),O=n(23),z=n(74),N=n(30),D=n(40),P=r(D),x=n(36),j=r(x),R=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.regeneratePostByEmailAddress=function(e){L.default.tracks.recordJetpackClick("pbe-regenerage-email"),e.preventDefault(),r.props.regeneratePostByEmailAddress()},r.address=function(){var e=r.props.getOptionValue("post_by_email_address");return!1===e||"1"===e||null===e?"":e},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){if(!this.props.isModuleFound("post-by-email"))return null;var e=this.props.getModule("post-by-email"),t=this.props.getOptionValue("post-by-email"),n=this.props.isUnavailableInDevMode("post-by-email")||!this.props.isLinked,r=this.address();return M.default.createElement(P.default,(0,i.default)({},this.props,{module:"post-by-email",hideButton:!0}),M.default.createElement(j.default,{hasChild:!0,disableInDevMode:!0,module:e,support:{text:(0,g.translate)("Allows you to publish new posts by sending an email to a special address."),link:"https://jetpack.com/support/post-by-email/"}},this.props.userCanManageModules?M.default.createElement(C.ModuleToggle,{slug:"post-by-email",compact:!0,disabled:n,activated:t,toggling:this.props.isSavingAnyOption("post-by-email"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description)):M.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description),M.default.createElement(S.FormFieldset,null,M.default.createElement(S.FormLabel,null,M.default.createElement(S.FormLegend,null,(0,g.translate)("Email Address")),M.default.createElement(E.default,{value:r,disabled:!t||n,copy:(0,g.translate)("Copy",{context:"verb"}),copied:(0,g.translate)("Copied!"),prompt:(0,g.translate)("Highlight and copy the following text to your clipboard:")})),M.default.createElement(y.default,{disabled:!t||n,onClick:this.regeneratePostByEmailAddress},r?(0,g.translate)("Regenerate address"):(0,g.translate)("Create address")))),!this.props.isUnavailableInDevMode("post-by-email")&&!this.props.isLinked&&M.default.createElement(k.default,{compact:!0,className:"jp-settings-card__configure-link",href:this.props.connectUrl+"&from=unlinked-user-pbe"},(0,g.translate)("Connect your user account to WordPress.com to use this feature")))}}]),t}(M.default.Component);t.default=(0,b.connect)(function(e){return{module:function(t){return(0,O.getModule)(e,t)},isModuleFound:function(t){return(0,z.isModuleFound)(e,t)}}})((0,N.ModuleSettingsForm)(R)),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(7),M=r(_),b=n(1),g=r(b),v=n(14),y=r(v),A=n(116),E=r(A),w=n(1142),k=r(w),T=n(508),L=r(T);n(1151);var S=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.state={isCopied:!1,disabled:!1},r.showConfirmation=function(){r.setState({isCopied:!0}),r.confirmationTimeout=setTimeout(function(){r.setState({isCopied:!1})},4e3)},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"componentWillUnmount",value:function(){clearTimeout(this.confirmationTimeout),delete this.confirmationTimeout}},{key:"render",value:function(){var e=(0,E.default)(this.props,"className","copied","copy","isError","isValid","prompt","selectOnFocus");return g.default.createElement("span",{className:(0,y.default)("dops-clipboard-button-input",this.props.className)},g.default.createElement(L.default,(0,i.default)({},e,{type:"text",selectOnFocus:!0,readOnly:!0})),g.default.createElement(k.default,{text:this.props.value,onCopy:this.showConfirmation,disabled:this.props.disabled,prompt:this.props.prompt,compact:!0},this.state.isCopied?this.props.copied:this.props.copy))}}]),t}(g.default.Component);S.displayName="ClipboardButtonInput",S.propTypes={value:M.default.string,disabled:M.default.bool,className:M.default.string,copied:M.default.string,copy:M.default.string,prompt:M.default.string},S.defaultProps={value:""},t.default=S,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(113),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(41),g=r(b),v=n(7),y=n(149),A=n(1),E=n(1143),w=n(116),k=n(64),T=n(14),L=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.displayPrompt=function(){window.prompt(r.props.prompt,r.props.text)},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"componentDidMount",value:function(){var e=this,t=y.findDOMNode(this.refs.button);this.clipboard=new E(t,{text:function(){return e.props.text}}),this.clipboard.on("success",this.props.onCopy),this.clipboard.on("error",this.displayPrompt)}},{key:"componentWillUnmount",value:function(){this.clipboard.destroy(),delete this.clipboard}},{key:"render",value:function(){var e=T("dops-clipboard-button",this.props.className);return A.createElement(g.default,(0,i.default)({ref:"button"},w(this.props,(0,s.default)(this.constructor.propTypes)),{className:e}))}}]),t}(A.Component);L.displayName="ClipboardButton",L.propTypes={className:v.string,text:v.string,prompt:v.string,onCopy:v.func},L.defaultProps={onCopy:k},t.default=L,e.exports=t.default},function(e,t,n){var r,a,i;!function(o,s){a=[e,n(1144),n(1146),n(1147)],r=s,void 0!==(i="function"==typeof r?r.apply(t,a):r)&&(e.exports=i)}(0,function(e,t,n,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function c(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}var u=a(t),l=a(n),d=a(r),f="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},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e){function t(e,n){i(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.resolveOptions(n),r.listenClick(e),r}return s(t,e),p(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===f(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,d.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new u.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return c("action",e)}},{key:"defaultTarget",value:function(e){var t=c("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return c("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}]),t}(l.default);e.exports=h})},function(e,t,n){var r,a,i;!function(o,s){a=[e,n(1145)],r=s,void 0!==(i="function"==typeof r?r.apply(t,a):r)&&(e.exports=i)}(0,function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(e){return e&&e.__esModule?e:{default:e}}(t),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){n(this,e),this.resolveOptions(t),this.initSelection()}return i(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,r.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,r.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":a(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=o})},function(e,t){function n(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),a=document.createRange();a.selectNodeContents(e),r.removeAllRanges(),r.addRange(a),t=r.toString()}return t}e.exports=n},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function r(){a.off(e,r),t.apply(n,arguments)}var a=this;return r._=t,this.on(e,r,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,a=n.length;for(r;r<a;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],a=[];if(r&&t)for(var i=0,o=r.length;i<o;i++)r[i].fn!==t&&r[i].fn._!==t&&a.push(r[i]);return a.length?n[e]=a:delete n[e],this}},e.exports=n},function(e,t,n){function r(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!s.string(t))throw new TypeError("Second argument must be a String");if(!s.fn(n))throw new TypeError("Third argument must be a Function");if(s.node(e))return a(e,t,n);if(s.nodeList(e))return i(e,t,n);if(s.string(e))return o(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function i(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}function o(e,t,n){return c(document.body,e,t,n)}var s=n(1148),c=n(1149);e.exports=r},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){function r(e,t,n,r,a){var o=i.apply(this,arguments);return e.addEventListener(n,o,a),{destroy:function(){e.removeEventListener(n,o,a)}}}function a(e,t,n,a,i){return"function"==typeof e.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return r(e,t,n,a,i)}))}function i(e,t,n,r){return function(n){n.delegateTarget=o(n.target,t),n.delegateTarget&&r.call(e,n)}}var o=n(1150);e.exports=a},function(e,t){function n(e,t){for(;e&&e.nodeType!==r;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}var r=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var a=Element.prototype;a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}e.exports=n},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Masterbar=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(30),A=n(40),E=r(A),w=n(36),k=r(w),T=n(52);t.Masterbar=(0,y.ModuleSettingsForm)(function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.getOptionValue("masterbar"),t=this.props.isUnavailableInDevMode("masterbar"),n=this.props.isLinked;return M.default.createElement(E.default,(0,i.default)({},this.props,{header:(0,b.translate)("WordPress.com toolbar",{context:"Settings header"}),module:"masterbar",hideButton:!0}),M.default.createElement(k.default,{disableInDevMode:!0,module:{module:"masterbar"},support:{text:(0,b.translate)("Adds a toolbar with links to all your sites, notifications, your WordPress.com profile, and the Reader."),
45
  link:"https://jetpack.com/support/masterbar/"}},M.default.createElement(T.ModuleToggle,{slug:"masterbar",disabled:t||!n,activated:e,toggling:this.props.isSavingAnyOption("masterbar"),toggleModule:this.props.toggleModuleNow},(0,b.translate)("Enable the WordPress.com toolbar"),M.default.createElement("span",{className:"jp-form-setting-explanation"},(0,b.translate)("The WordPress.com toolbar replaces the default admin bar and offers quick links to the Reader, all your sites, your WordPress.com profile, and notifications. Centralize your WordPress experience with a single global toolbar.")))),!this.props.isUnavailableInDevMode("masterbar")&&!this.props.isLinked&&M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",href:this.props.connectUrl+"&from=unlinked-user-masterbar"},(0,b.translate)("Connect your user account to WordPress.com to use this feature")))}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(10),y=n(8),A=n(851),E=r(A),w=n(71),k=n(30),T=n(23),L=n(74),S=n(40),C=r(S),O=n(36),z=r(O),N=n(52),D=(0,k.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.toggleModule=function(e,t){"photon"===e?!1==!t?r.props.updateOptions({photon:!1,"tiled-gallery":!1,tiled_galleries:!1}):r.props.updateOptions({photon:!0,"tiled-gallery":!0,tiled_galleries:!0}):r.props.updateOptions((0,s.default)({},e,!t))},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this.props.isModuleFound("photon"),t=this.props.isModuleFound("lazy-images");if(!e&&!t)return null;var n=this.props.module("photon"),r=this.props.module("lazy-images");return g.default.createElement(C.default,(0,i.default)({},this.props,{header:(0,y.translate)("Speed up your site"),hideButton:!0}),e&&g.default.createElement(z.default,{hasChild:!0,disableInDevMode:!0,module:n,support:{text:(0,y.translate)("Hosts your image files on the global WordPress.com servers."),link:"https://jetpack.com/support/photon/"}},g.default.createElement(N.ModuleToggle,{slug:"photon",disabled:this.props.isUnavailableInDevMode("photon"),activated:this.props.getOptionValue("photon"),toggling:this.props.isSavingAnyOption("photon"),toggleModule:this.toggleModule},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,E.default)(n.description))),g.default.createElement(w.FormFieldset,null,g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,E.default)(n.long_description)))),t&&g.default.createElement(z.default,{hasChild:!0,module:r,support:{text:(0,y.translate)("Delays the loading of images until they are visible in the visitor's browser."),link:"https://jetpack.com/support/lazy-images/"}},g.default.createElement(N.ModuleToggle,{slug:"lazy-images",disabled:this.props.isUnavailableInDevMode("lazy-images"),activated:this.props.getOptionValue("lazy-images"),toggling:this.props.isSavingAnyOption("lazy-images"),toggleModule:this.toggleModule},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,E.default)(r.description))),g.default.createElement(w.FormFieldset,null,g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,E.default)(r.long_description)))))}}]),t}(b.Component));t.default=(0,v.connect)(function(e){return{module:function(t){return(0,T.getModule)(e,t)},isModuleFound:function(t){return(0,L.isModuleFound)(e,t)}}})(D),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(10),M=n(23),b=n(103),g=n(21),v=n(74),y=n(28),A=n(211),E=r(A),w=n(1155),k=n(1156),T=n(1157),L=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode,isLinked:this.props.isLinked,connectUrl:this.props.connectUrl,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,userCanManageModules:this.props.userCanManageModules},t=this.props.isModuleFound("publicize"),n=this.props.isModuleFound("sharedaddy"),r=this.props.isModuleFound("likes");return(this.props.searchTerm||this.props.active)&&(t||n||r)?m.default.createElement("div",null,m.default.createElement(E.default,null),t&&m.default.createElement(w.Publicize,e),n&&m.default.createElement(k.ShareButtons,e),r&&m.default.createElement(T.Likes,e)):null}}]),t}(h.Component);t.default=(0,_.connect)(function(e){return{module:function(t){return(0,M.getModule)(e,t)},settings:(0,b.getSettings)(e),isDevMode:(0,g.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,g.isUnavailableInDevMode)(e,t)},isModuleFound:function(t){return(0,v.isModuleFound)(e,t)},isLinked:(0,g.isCurrentUserLinked)(e),connectUrl:(0,g.getConnectUrl)(e),siteRawUrl:(0,y.getSiteRawUrl)(e),siteAdminUrl:(0,y.getSiteAdminUrl)(e),userCanManageModules:(0,y.userCanManageModules)(e)}})(L),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Publicize=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(15),A=r(y),E=n(30),w=n(40),k=r(w),T=n(36),L=r(T),S=n(52);t.Publicize=(0,E.ModuleSettingsForm)(function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"trackClickConfigure",value:function(){A.default.tracks.recordJetpackClick({target:"configure-publicize",page:"sharing"})}},{key:"render",value:function(){var e=this,t=this.props.isUnavailableInDevMode("publicize"),n=this.props.isLinked,r=this.props.connectUrl,a=this.props.siteRawUrl,o=this.props.getOptionValue("publicize"),s=this.props.userCanManageModules;return s||o?M.default.createElement(k.default,(0,i.default)({},this.props,{header:(0,b.translate)("Publicize connections",{context:"Settings header"}),module:"publicize",hideButton:!0}),s&&M.default.createElement(L.default,{disableInDevMode:!0,module:{module:"publicize"},support:{text:(0,b.translate)("Allows you to automatically share your newest content on social media sites, including Facebook and Twitter."),link:"https://jetpack.com/support/publicize/"}},M.default.createElement(S.ModuleToggle,{slug:"publicize",disabled:t,activated:o,toggling:this.props.isSavingAnyOption("publicize"),toggleModule:this.props.toggleModuleNow},(0,b.translate)("Automatically share your posts to social networks"))),o&&function(){if(!t)return n?M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackClickConfigure,href:"https://wordpress.com/sharing/"+a},(0,b.translate)("Connect your social media accounts")):M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",href:r+"&from=unlinked-user-connect-publicize"},(0,b.translate)("Connect your user account to WordPress.com to use this feature"))}()):null}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ShareButtons=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(15),A=r(y),E=n(30),w=n(40),k=r(w),T=n(36),L=r(T),S=n(52);t.ShareButtons=(0,E.ModuleSettingsForm)(function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"trackClickConfigure",value:function(){A.default.tracks.recordJetpackClick({target:"configure-sharing",page:"sharing"})}},{key:"render",value:function(){var e=this,t=this.props.isLinked,n=this.props.connectUrl,r=this.props.siteRawUrl,a=this.props.siteAdminUrl,o=this.props.isDevMode,s=this.props.getOptionValue("sharedaddy");return M.default.createElement(k.default,(0,i.default)({},this.props,{header:(0,b.translate)("Sharing buttons",{context:"Settings header"}),module:"sharing",hideButton:!0}),M.default.createElement(L.default,{disableInDevMode:!0,module:{module:"sharing"},support:{text:(0,b.translate)("Adds sharing buttons to your content so that visitors can share it on social media sites."),link:"https://jetpack.com/support/sharing/"}},M.default.createElement(S.ModuleToggle,{slug:"sharedaddy",activated:s,toggling:this.props.isSavingAnyOption("sharedaddy"),toggleModule:this.props.toggleModuleNow},(0,b.translate)("Add sharing buttons to your posts"))),s&&function(){return o?M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",href:a+"options-general.php?page=sharing"},(0,b.translate)("Configure your sharing buttons")):t?M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackClickConfigure,href:"https://wordpress.com/sharing/buttons/"+r},(0,b.translate)("Configure your sharing buttons")):M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",href:n+"&from=unlinked-user-connect-sharing"},(0,b.translate)("Connect your user account to WordPress.com to use this feature"))}())}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Likes=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(30),v=n(40),y=r(v),A=n(36),E=r(A),w=n(52);t.Likes=(0,g.ModuleSettingsForm)(function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.isUnavailableInDevMode("likes"),t=this.props.getOptionValue("likes");return M.default.createElement(y.default,(0,i.default)({},this.props,{header:(0,b.translate)("Like buttons",{context:"Settings header"}),module:"likes",hideButton:!0}),M.default.createElement(E.default,{disableInDevMode:!0,module:{module:"likes"},support:{text:(0,b.translate)("Adds like buttons to your content so that visitors can show their appreciation or enjoyment."),link:"https://jetpack.com/support/likes/"}},M.default.createElement(w.ModuleToggle,{slug:"likes",disabled:e,activated:t,toggling:this.props.isSavingAnyOption("likes"),toggleModule:this.props.toggleModuleNow},(0,b.translate)("Allow readers to show their appreciation of your posts by adding a like button to your content"))))}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SearchableModules=void 0;var a=n(51),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(7),M=r(_),b=n(1),g=r(b),v=n(10),y=n(228),A=r(y),E=n(44),w=r(E),k=n(8),T=n(850),L=r(T),S=n(30),C=n(23),O=n(74),z=n(40),N=r(z),D=n(36),P=r(D),x=n(28),j=n(21),R=t.SearchableModules=(0,S.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var o=arguments.length,c=Array(o),l=0;l<o;l++)c[l]=arguments[l];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(c))),r.handleBannerClick=function(e){return function(){return r.props.updateOptions((0,i.default)({},e,!0))}},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this;if(!this.props.canManageModules)return null;if(this.props.searchTerm.length<3)return null;var t=["contact-form","custom-css","enhanced-distribution","json-api","latex","notes","shortcodes","shortlinks","widget-visibility","widgets"],n=this.props.modules,r=[];return(0,A.default)(n,function(n,a){if(e.props.isModuleFound(a)&&(0,w.default)(t,a)){if(e.props.isDevMode&&e.props.isUnavailableInDevMode(n.module))return r.push(g.default.createElement(Y,{key:a,moduleData:n,devMode:!0}));e.props.getOptionValue(n.module)?r.push(g.default.createElement(Y,{key:a,moduleData:n})):r.push(g.default.createElement(L.default,{className:"jp-searchable-banner",key:a,callToAction:(0,k.translate)("Activate"),description:n.description,href:"javascript:void( 0 )",icon:"cog",onClick:e.handleBannerClick(n.module),title:n.name}))}}),g.default.createElement("div",null,r)}}]),t}(b.Component));R.propTypes={searchTerm:M.default.string},R.defaultProps={searchTerm:""};var Y=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.moduleData,t=this.props.devMode;return g.default.createElement(N.default,{header:e.name,action:e.module,hideButton:!0},g.default.createElement(P.default,{disableInDevMode:t,module:{module:e.module},support:{link:e.learn_more_button}},e.description))}}]),t}(b.Component);t.default=(0,v.connect)(function(e){return{modules:(0,C.getModules)(e),isModuleFound:function(t){return(0,O.isModuleFound)(e,t)},canManageModules:(0,x.userCanManageModules)(e),isUnavailableInDevMode:function(t){return(0,j.isUnavailableInDevMode)(e,t)},isDevMode:(0,j.isDevMode)(e)}})(R)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(7),g=r(b),v=n(8),y=n(10),A=n(30),E=n(104),w=r(E),k=n(40),T=r(k),L=n(36),S=r(L),C=n(474),O=r(C),z=n(498),N=n(1160),D=n(103),P=n(15),x=r(P),j=function(){return x.default.tracks.recordJetpackClick({target:"privacy-policy",feature:"privacy"})},R=function(){return x.default.tracks.recordJetpackClick({target:"cookie-policy",feature:"privacy"})},Y=function(){return x.default.tracks.recordJetpackClick({target:"privacy-center",feature:"privacy"})},I=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.isPrivacyFound=function(){return!r.props.searchTerm||[(0,v.translate)("privacy",{context:"Search term."}),(0,v.translate)("tracks",{context:"Search term."}),(0,v.translate)("data",{context:"Search term."}),(0,v.translate)("gdpr",{context:"Search term."}),(0,v.translate)("tos",{context:"Search term."}),(0,v.translate)("terms of service",{context:"Search term."})].join(" ").toLowerCase().indexOf(r.props.searchTerm.toLowerCase())>-1},r.togglePrivacy=function(){var e=r.props.trackingSettings.tracks_opt_out;r.props.setTrackingSettings(!e)},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"componentWillMount",value:function(){this.props.fetchTrackingSettings()}},{key:"render",value:function(){var e=this.props,t=e.searchTerm,n=e.active;return t||n?this.isPrivacyFound()&&M.default.createElement("div",null,M.default.createElement(T.default,(0,i.default)({},this.props,{header:(0,v.translate)("Privacy Settings",{context:"Settings header"}),hideButton:!0}),M.default.createElement(S.default,{hasChild:!0},M.default.createElement("p",null,(0,v.translate)("We are committed to your privacy and security. ")),M.default.createElement("p",null,M.default.createElement(w.default,{compact:!0,checked:!this.props.trackingSettings.tracks_opt_out,disabled:this.props.isFetchingTrackingSettings||this.props.isUpdatingTrackingSettings,onChange:this.togglePrivacy,id:"privacy-settings"},(0,v.translate)("Share information with our analytics tool about your use of services while logged in to your WordPress.com account. {{cookiePolicyLink}}Learn more{{/cookiePolicyLink}}.",{components:{cookiePolicyLink:M.default.createElement(O.default,{href:"https://automattic.com/cookies/",onClick:R,target:"_blank",rel:"noopener noreferrer"})}}))),M.default.createElement("p",null,(0,v.translate)("This information helps us improve our products, make marketing to you more relevant, personalize your WordPress.com experience, and more as detailed in our {{pp}}privacy policy{{/pp}}.",{components:{pp:M.default.createElement(O.default,{href:"https://automattic.com/privacy/",onClick:j,target:"_blank",rel:"noopener noreferrer"})}})),M.default.createElement("p",null,(0,v.translate)("We use other tracking tools, including some from third parties. {{cookiePolicyLink}}Read about these{{/cookiePolicyLink}} and how to control them.",{components:{cookiePolicyLink:M.default.createElement(O.default,{href:"https://automattic.com/cookies/",onClick:R,target:"_blank",rel:"noopener noreferrer"})}})),M.default.createElement("p",null,(0,v.translate)("For more information on how specific Jetpack features use data and track activity, please refer to our {{privacyCenterLink}}Privacy Center{{/privacyCenterLink}}.",{components:{privacyCenterLink:M.default.createElement(O.default,{href:"https://jetpack.com/support/privacy",onClick:Y,target:"_blank",rel:"noopener noreferrer"})}}))))):null}}]),t}(M.default.Component);I.displayName="PrivacySettings",I.propTypes={searchTerm:g.default.string,active:g.default.bool,toggleTracking:g.default.func,getOptionValue:g.default.func,isSavingAnyOption:g.default.func},I.defaultProps={searchTerm:"",active:!1},t.default=(0,y.connect)(function(e){return{settings:(0,D.getSettings)(e),trackingSettings:(0,z.getTrackingSettings)(e),isUpdatingTrackingSettings:(0,z.isUpdatingTrackingSettings)(e),isFetchingTrackingSettings:(0,z.isFetchingTrackingSettingsList)(e)}},function(e){return{setTrackingSettings:function(t){x.default.tracks.setOptOut(t),e((0,N.updateTrackingSettings)({tracks_opt_out:t}))},fetchTrackingSettings:function(){return e((0,N.fetchTrackingSettings)())}}})((0,A.ModuleSettingsForm)(I)),e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateTrackingSettings=t.fetchTrackingSettings=void 0;var r=n(114),a=n(8),i=n(16),o=n(56),s=function(e){return e&&e.__esModule?e:{default:e}}(o);t.fetchTrackingSettings=function(){return function(e){return e({type:i.USER_TRACKING_SETTINGS_FETCH}),s.default.fetchUserTrackingSettings().then(function(t){return e({type:i.USER_TRACKING_SETTINGS_FETCH_SUCCESS,settings:t}),t}).catch(function(t){e({type:i.USER_TRACKING_SETTINGS_FETCH_FAIL,error:t})})}},t.updateTrackingSettings=function(e){return function(t){var n={progress:(0,a.translate)("Updating privacy settings…"),success:(0,a.translate)("Updated privacy settings."),error:function(e){return(0,a.translate)("Error updating privacy settings. %(error)s",{args:{error:e.message||e.code||e.name||e}})}},o=function(){return e};return t((0,r.removeNotice)("tracking-settings-update")),t((0,r.removeNotice)("tracking-settings-update-success")),t((0,r.createNotice)("is-info",n.progress,{id:"tracking-settings-update"})),t({type:i.USER_TRACKING_SETTINGS_UPDATE,updatedSettings:e}),s.default.updateUserTrackingSettings(e).then(function(e){t({type:i.USER_TRACKING_SETTINGS_UPDATE_SUCCESS,updatedSettings:o(),success:e}),t((0,r.removeNotice)("tracking-settings-update")),t((0,r.removeNotice)("tracking-settings-update-success")),t((0,r.createNotice)("is-success",n.success,{id:"tracking-settings-update-success",duration:2e3}))}).catch(function(a){t({type:i.USER_TRACKING_SETTINGS_UPDATE_FAIL,updatedSettings:e,success:!1,error:a}),t((0,r.removeNotice)("tracking-settings-update")),t((0,r.removeNotice)("tracking-settings-update-success")),t((0,r.createNotice)("is-error",n.error(a),{id:"tracking-settings-update"}))})}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(10),M=n(25),b=r(M),g=n(8),v=n(915),y=r(v),A=n(21),E=n(80),w=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.default.createElement("div",{className:"jp-jetpack-connect__container"},m.default.createElement("h1",{className:"jp-jetpack-connect__container-title",title:"Welcome to Jetpack"},(0,g.translate)("Welcome to Jetpack")),m.default.createElement(b.default,{className:"jp-jetpack-connect__cta"},m.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,g.translate)("Hassle-free design, marketing, and security for your WordPress site. Connect Jetpack to a WordPress.com account to start building your own success story.")),m.default.createElement(y.default,{from:"landing-page-top"})),m.default.createElement(b.default,{className:"jp-jetpack-connect__feature jp-jetpack-connect__design"},m.default.createElement("header",{className:"jp-jetpack-connect__header"},m.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:(0,g.translate)("WordPress themes and customization tools for designing your site.")},(0,g.translate)("Design the perfect website")),m.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,g.translate)("Bring your ideas to life with elegant and professional designs and code-free customization tools."))),m.default.createElement("div",{className:"jp-jetpack-connect__interior-container"},m.default.createElement("img",{src:E.imagePath+"feature-photon-med.jpg",srcSet:E.imagePath+"feature-photon-sm.jpg 600w, "+E.imagePath+"feature-photon-med.jpg 770w, "+E.imagePath+"feature-photon-lrg.jpg 1200w",className:"jp-jetpack-connect__feature-image",alt:(0,g.translate)("Jetpack's photon serves up lightning fast, optimized images")}),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list"},m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's WordPress themes"),className:"dops-section-header__label"},(0,g.translate)("Professional themes")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Find the perfect design for your site from hundreds of available themes.")))),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's customization tools"),className:"dops-section-header__label"},(0,g.translate)("Code-free customization")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Customize your site with endless widget options, image galleries, and embedded media.")))),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's performance features"),className:"dops-section-header__label"},(0,g.translate)("Speed up your site")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Deliver blazing fast images and video and improve site load times."))))))),m.default.createElement(b.default,{className:"jp-jetpack-connect__feature jp-jetpack-connect__traffic"},m.default.createElement("header",{className:"jp-jetpack-connect__header"},m.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:(0,g.translate)("Drive more traffic to your site with Jetpack")},(0,g.translate)("Increase traffic and revenue")),m.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,g.translate)("Reach more people and earn money with automated marketing tools.")),m.default.createElement("div",{className:"jp-jetpack-connect__header-img-container"},m.default.createElement("img",{src:E.imagePath+"long-clouds.svg",width:"1160",height:"63",alt:(0,g.translate)("Decoration: Jetpack clouds",{context:"Image alternate text."}),className:"jp-jetpack-connect__header-img"})," ",m.default.createElement("img",{src:E.imagePath+"stat-bars.svg",width:"400",alt:(0,g.translate)("Decoration: Jetpack bar graph",{context:"Image alternate text."}),className:"jp-jetpack-connect__header-img"}))),m.default.createElement("div",{className:"jp-jetpack-connect__interior-container"},m.default.createElement("div",{className:"jp-jetpack-connect__feature-list"},m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's site stats feature"),className:"dops-section-header__label"},(0,g.translate)("Track your growth")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Keep an eye on your success with simple, concise, and mobile-friendly stats.")))),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's publicize features"),className:"dops-section-header__label"},(0,g.translate)("Automated marketing")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Schedule social media posts in advance, show related content, and give better search results.")))),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's ads and PayPal features"),className:"dops-section-header__label"},(0,g.translate)("Generate revenue")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Monetize your site with high-quality ads and take PayPal payments."))))))),m.default.createElement(b.default,{className:"jp-jetpack-connect__feature jp-jetpack-connect__security"},m.default.createElement("header",{className:"jp-jetpack-connect__header"},m.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:(0,g.translate)("Keep your site safe, 24/7")},(0,g.translate)("Keep your site safe, 24/7")),m.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,g.translate)("Automatic defense against hacks, malware, spam, data loss, and downtime."))),m.default.createElement("div",{className:"jp-jetpack-connect__interior-container"},m.default.createElement("div",{className:"jp-jetpack-connect__feature-list"},m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's monitor feature"),className:"dops-section-header__label"},(0,g.translate)("Monitor",{context:"Header. Noun: Monitor is a module of Jetpack."})),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Be alerted about any unexpected downtime the moment it happens.")))),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's Protect features"),className:"dops-section-header__label"},(0,g.translate)("Protect",{context:"Header. Noun: Protect is a module of Jetpack."})),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Guard your site against brute force login attacks, spam, and harmfulmalware injections.")))),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:"Jetpack's backup feature",className:"dops-section-header__label"},(0,g.translate)("Backup and restore")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Automatic, real-time backups mean your entire site is always ready to be restored."))))))),m.default.createElement(b.default,{className:"jp-jetpack-connect__cta"},m.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,g.translate)("Join the millions of users who rely on Jetpack to enhance and secure their sites. We're passionate about WordPress and here to make your life easier.")),m.default.createElement(y.default,{from:"landing-page-bottom"})))}}]),t}(m.default.Component);w.displayName="JetpackConnect",t.default=(0,_.connect)(function(e){return{connectUrl:(0,A.getConnectUrl)(e)}})(w),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.JetpackDisconnectDialog=void 0;var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(41),y=r(v),A=n(25),E=r(A),w=n(65),k=r(w),T=n(1163),L=r(T),S=n(47),C=n(64),O=r(C),z=n(15),N=r(z),D=n(61),P=n(21),x=n(28),j=t.JetpackDisconnectDialog=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.getPlanFeatures=function(){switch((0,S.getPlanClass)(r.props.sitePlan.product_slug)){case"is-personal-plan":return[{text:(0,g.translate)("Daily, automated backups (unlimited storage)"),icon:"history"},{text:(0,g.translate)("Priority support"),icon:"chat"},{text:(0,g.translate)("Spam filtering"),icon:"spam"}];case"is-premium-plan":return[{text:(0,g.translate)("Daily, automated backups (unlimited storage)"),icon:"history"},{text:(0,g.translate)("Daily, automated malware scanning"),icon:"spam"},{text:(0,g.translate)("Priority support"),icon:"chat"},{text:(0,g.translate)("13Gb of high-speed video hosting"),icon:"video"}];case"is-business-plan":return[{text:(0,g.translate)("Daily, automated backups (unlimited storage)"),icon:"history"},{text:(0,g.translate)("Daily, automated malware scanning with automated resolution"),icon:"spam"},{text:(0,g.translate)("Priority support"),icon:"chat"},{text:(0,g.translate)("Unlimited high-speed video hosting"),icon:"video"},{text:(0,g.translate)("SEO preview tools"),icon:"globe"}];default:return[{text:(0,g.translate)("Site stats, related content, and sharing tools"),icon:"stats-alt"},{text:(0,g.translate)("Brute force attack protection and downtime monitoring"),icon:"lock"},{text:(0,g.translate)("Unlimited, high-speed image hosting"),icon:"image"}]}},r.closeModal=function(){N.default.tracks.recordJetpackClick({target:"manage_site_connection",button:"stay-connected"}),r.props.toggleModal()},r.disconnectSiteTrack=function(){N.default.tracks.recordJetpackClick({target:"manage_site_connection",button:"disconnect-site"}),r.props.disconnectSite()},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return this.props.show&&M.default.createElement(L.default,{className:"jp-connection-settings__modal",onRequestClose:this.props.toggleModal},M.default.createElement(E.default,{className:"jp-connection-settings__modal-body"},M.default.createElement("h2",null,(0,g.translate)("Disconnect Jetpack")),M.default.createElement("h4",null,(0,g.translate)("By disconnecting %(siteName)s from WordPress.com you will no longer have access to the following:",{args:{siteName:this.props.siteRawUrl.replace(/::/g,"/")}})),M.default.createElement("ul",null,this.getPlanFeatures().map(function(e){return M.default.createElement("li",{key:"feature_"+e.icon},M.default.createElement(k.default,{icon:e.icon,
46
  size:18}),e.text)})),M.default.createElement("div",{className:"jp-connection-settings__modal-actions"},M.default.createElement(y.default,{className:"jp-connection-settings__modal-cancel",onClick:this.closeModal},(0,g.translate)("Stay connected",{context:"A caption for a button to cancel disconnection."})),M.default.createElement(y.default,{onClick:this.disconnectSiteTrack,scary:!0,primary:!0},(0,g.translate)("Disconnect",{context:"A caption for a button to disconnect."}))),M.default.createElement("p",{className:"jp-connection-settings__modal-more"},M.default.createElement("a",{href:"https://jetpack.com/features/"},(0,g.translate)("Read more about Jetpack benefits")))))}}]),t}(M.default.Component);j.propTypes={show:m.default.bool,toggleModal:m.default.func,disconnectSite:m.default.func},j.defaultProps={show:!1,toggleModal:O.default,disconnectSite:O.default},t.default=(0,b.connect)(function(e){return{siteRawUrl:(0,x.getSiteRawUrl)(e),isDisconnecting:(0,P.isDisconnectingSite)(e),sitePlan:(0,D.getSitePlan)(e)}},function(e){return{disconnectSite:function(){return e((0,P.disconnectSite)())}}})(j)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(){L=!0}function i(){L=!1}var o=n(11),s=r(o),c=n(463),u=r(c),l=n(2),d=r(l),f=n(3),p=r(f),h=n(6),m=r(h),_=n(4),M=r(_),b=n(5),g=r(b),v=n(7),y=n(1),A=n(149),E=n(14),w=n(24),k=n(116),T=n(1164),L=!1;n(1166);var S=function(e){function t(){var e,n,r,a;(0,p.default)(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=(0,M.default)(this,(e=t.__proto__||(0,d.default)(t)).call.apply(e,[this].concat(o))),r.state={overlayMouseDown:!1},r.handleEscapeKey=function(e){27===e.keyCode&&r.maybeClose()},r.maybeClose=function(){r.props.onRequestClose&&!L&&r.props.onRequestClose()},r.handleMouseDownOverlay=function(e){e.preventDefault(),e.stopPropagation(),r.setState({overlayMouseDown:!0})},r.handleClickOverlay=function(e){e.preventDefault(),e.stopPropagation(),r.state.overlayMouseDown&&r.props.onRequestClose&&!L&&(r.setState({overlayMouseDown:!1}),r.props.onRequestClose())},r.handleMouseEventModal=function(e){e.stopPropagation()},a=n,(0,M.default)(r,a)}return(0,g.default)(t,e),(0,m.default)(t,[{key:"componentDidMount",value:function(){jQuery("body").addClass("dops-modal-showing").on("touchmove.dopsmodal",!1),jQuery(document).keyup(this.handleEscapeKey);try{T.activate(A.findDOMNode(this),{initialFocus:this.props.initialFocus})}catch(e){}}},{key:"componentWillUnmount",value:function(){jQuery("body").removeClass("dops-modal-showing").off("touchmove.dopsmodal",!1),jQuery(document).unbind("keyup",this.handleEscapeKey);try{T.deactivate()}catch(e){}}},{key:"render",value:function(){var e=void 0,t=this.props,n=t.style,r=t.className,a=t.width,i=t.title,o=(0,u.default)(t,["style","className","width","title"]),c=k(o,"onRequestClose"),l=c.forwardedProps;switch(a){case"wide":e={maxWidth:"inherit",width:"inherit"};break;case"medium":e={maxWidth:1050,width:"inherit"};break;default:e={}}var d=w({},n,e);return y.createElement("div",{className:"dops-modal-wrapper",onClick:this.handleClickOverlay,onMouseDown:this.handleMouseDownOverlay},y.createElement("div",(0,s.default)({className:E("dops-modal",r),style:d,onClick:this.handleMouseEventModal,onMouseDown:this.handleMouseEventModal,onMouseUp:this.handleMouseEventModal,role:"dialog","aria-label":i},l),this.props.children))}}]),t}(y.Component);S.propTypes={style:v.object,width:v.oneOf(["wide","medium","narrow"]),className:v.string,title:v.string,initialFocus:v.string,onRequestClose:v.func},S.defaultProps={style:{}},S.preventClose=a,S.allowClose=i,e.exports=S},function(e,t,n){function r(e,t){function n(e){if(!k){var t={onActivate:e&&void 0!==e.onActivate?e.onActivate:C.onActivate};return k=!0,T=!1,w=document.activeElement,t.onActivate&&t.onActivate(),l(),O}}function r(e){if(k){var t={returnFocus:e&&void 0!==e.returnFocus?e.returnFocus:C.returnFocusOnDeactivate,onDeactivate:e&&void 0!==e.onDeactivate?e.onDeactivate:C.onDeactivate};return d(),t.onDeactivate&&t.onDeactivate(),t.returnFocus&&setTimeout(function(){i(w)},0),k=!1,T=!1,this}}function c(){!T&&k&&(T=!0,d())}function u(){T&&k&&(T=!1,l())}function l(){if(k)return s&&s.pause(),s=O,g(),i(p()),document.addEventListener("focus",_,!0),document.addEventListener("click",m,!0),document.addEventListener("mousedown",h,!0),document.addEventListener("touchstart",h,!0),document.addEventListener("keydown",M,!0),O}function d(){if(k&&s===O)return document.removeEventListener("focus",_,!0),document.removeEventListener("click",m,!0),document.removeEventListener("mousedown",h,!0),document.removeEventListener("touchstart",h,!0),document.removeEventListener("keydown",M,!0),s=null,O}function f(e){var t=C[e],n=t;if(!t)return null;if("string"==typeof t&&!(n=document.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(n=t()))throw new Error("`"+e+"` did not return a node");return n}function p(){var e;if(!(e=null!==f("initialFocus")?f("initialFocus"):S.contains(document.activeElement)?document.activeElement:y[0]||f("fallbackFocus")))throw new Error("You can't have a focus-trap without at least one focusable element");return e}function h(e){C.clickOutsideDeactivates&&!S.contains(e.target)&&r({returnFocus:!1})}function m(e){C.clickOutsideDeactivates||S.contains(e.target)||(e.preventDefault(),e.stopImmediatePropagation())}function _(e){S.contains(e.target)||(e.preventDefault(),e.stopImmediatePropagation(),"function"==typeof e.target.blur&&e.target.blur(),L&&v(L))}function M(e){"Tab"!==e.key&&9!==e.keyCode||b(e),!1!==C.escapeDeactivates&&a(e)&&r()}function b(e){if(g(),e.target.hasAttribute("tabindex")&&Number(e.target.getAttribute("tabindex"))<0)return L=e;e.preventDefault();var t=y.indexOf(e.target);return e.shiftKey?i(e.target===A||-1===y.indexOf(e.target)?E:y[t-1]):e.target===E?i(A):void i(y[t+1])}function g(){y=o(S),A=y[0],E=y[y.length-1]}function v(e){if(e.shiftKey)return i(E);i(A)}var y=[],A=null,E=null,w=null,k=!1,T=!1,L=null,S="string"==typeof e?document.querySelector(e):e,C=t||{};C.returnFocusOnDeactivate=!t||void 0===t.returnFocusOnDeactivate||t.returnFocusOnDeactivate,C.escapeDeactivates=!t||void 0===t.escapeDeactivates||t.escapeDeactivates;var O={activate:n,deactivate:r,pause:c,unpause:u};return O}function a(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}function i(e){e&&e.focus&&e!==document.activeElement&&(e.focus(),"input"===e.tagName.toLowerCase()&&e.select())}var o=n(1165),s=null;e.exports=r},function(e,t){function n(e){function t(r,a){if(r===e.documentElement)return!1;for(var i=0,o=n.length;i<o;i++)if(n[i][0]===r)return n[i][1];a=a||e.defaultView.getComputedStyle(r);var s=!1;return"none"===a.display?s=!0:r.parentNode&&(s=t(r.parentNode)),n.push([r,s]),s}var n=[];return function(n){if(n===e.documentElement)return!1;var r=e.defaultView.getComputedStyle(n);return!!t(n,r)||"hidden"===r.visibility}}e.exports=function(e,t){t=t||{};var r=e.ownerDocument||e,a=[],i=[],o=n(r),s=["input","select","a[href]","textarea","button","[tabindex]"],c=e.querySelectorAll(s.join(","));if(t.includeContainer){var u=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;s.some(function(t){return u.call(e,t)})&&(c=Array.prototype.slice.apply(c),c.unshift(e))}for(var l,d,f=0,p=c.length;f<p;f++)l=c[f],(d=parseInt(l.getAttribute("tabindex"),10)||l.tabIndex)<0||"INPUT"===l.tagName&&"hidden"===l.type||l.disabled||o(l,r)||(0===d?a.push(l):i.push({index:f,tabIndex:d,node:l}));var h=i.sort(function(e,t){return e.tabIndex===t.tabIndex?e.index-t.index:e.tabIndex-t.tabIndex}).map(function(e){return e.node});return Array.prototype.push.apply(h,a),h}},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return{__html:e.jumpstart_desc}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=r(i),s=n(3),c=r(s),u=n(6),l=r(u),d=n(4),f=r(d),p=n(5),h=r(p),m=n(1),_=r(m),M=n(18),b=n(10),g=n(41),v=r(g),y=n(8),A=n(916),E=n(23),w=n(80),k=n(475),T=r(k),L=function(e){function t(){var e,n,r,a;(0,c.default)(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return n=r=(0,f.default)(this,(e=t.__proto__||(0,o.default)(t)).call.apply(e,[this].concat(s))),r.activateButton=function(){return _.default.createElement(v.default,{primary:!0,onClick:r.props.jumpStartActivate,disabled:r.props.isJumpstarting},r.props.isJumpstarting?(0,y.translate)("Activating recommended features…"):(0,y.translate)("Activate recommended features"))},a=n,(0,f.default)(r,a)}return(0,h.default)(t,e),(0,l.default)(t,[{key:"renderInnerContent",value:function(){var e=this.props.jumpstartFeatures.map(function(e){return _.default.createElement("div",{className:"jp-jumpstart__feature-list-column",key:"module-card_"+e.name},_.default.createElement("div",{className:"jp-jumpstart__feature-content"},_.default.createElement("h4",{className:"jp-jumpstart__feature-content-title",title:e.name},e.name),_.default.createElement("p",{dangerouslySetInnerHTML:a(e)})))});return _.default.createElement("div",{className:"jp-jumpstart"},_.default.createElement("p",null,(0,y.translate)("We're now collecting stats, securing your site, and speeding up your images. Pretty soon you'll be able to see everything going on with your site right through Jetpack! Welcome aboard.")),_.default.createElement("p",null,this.activateButton()),_.default.createElement("div",null,_.default.createElement("h2",{className:"jp-jumpstart__feature-heading"},(0,y.translate)("Jetpack's recommended features include:")),_.default.createElement("div",{className:"jp-jumpstart__feature-list"},e),this.activateButton(),_.default.createElement("p",{className:"jp-jumpstart__note"},(0,y.translate)("Features can be activated or deactivated at any time."))))}},{key:"render",value:function(){return _.default.createElement(T.default,{svg:_.default.createElement("img",{src:w.imagePath+"man-and-laptop.svg",width:"199",height:"153",alt:(0,y.translate)("Person with laptop")}),title:(0,y.translate)("Your Jetpack site is ready to go!"),content:this.renderInnerContent(),dismiss:this.props.jumpStartSkip})}}]),t}(_.default.Component);L.displayName="JumpStart",t.default=(0,b.connect)(function(e){return{isJumpstarting:(0,A.isJumpstarting)(e),jumpstartFeatures:(0,E.getModulesByFeature)(e,"Jumpstart")}},function(e){return(0,M.bindActionCreators)({jumpStartActivate:A.jumpStartActivate,jumpStartSkip:A.jumpStartSkip},e)})(L),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.jumpStartSkip=t.jumpStartActivate=void 0;var a=n(114),i=n(8),o=n(646),s=n(15),c=r(s),u=n(16),l=n(56),d=r(l),f=n(23),p=n(103),h=(t.jumpStartActivate=function(){return function(e){return e({type:u.JUMPSTART_ACTIVATE}),e((0,a.removeNotice)("jumpstart-activate")),e((0,a.createNotice)("is-info",(0,i.translate)("Activating recommended features…"),{id:"jumpstart-activate"})),d.default.jumpStart("activate").then(function(){e({type:u.JUMPSTART_ACTIVATE_SUCCESS,jumpStart:!0}),c.default.tracks.recordEvent("jetpack_wpa_jumpstart_submit",{}),e((0,a.removeNotice)("jumpstart-activate")),e((0,a.createNotice)("is-success",(0,i.translate)("Recommended features active."),{id:"jumpstart-activate",duration:2e3})),e((0,f.fetchModules)()),e((0,p.fetchSettings)())}).catch(function(t){e({type:u.JUMPSTART_ACTIVATE_FAIL,error:t}),e((0,a.removeNotice)("jumpstart-activate")),e((0,a.createNotice)("is-error",(0,i.translate)("Recommended features failed to activate. %(error)s",{args:{error:t}}),{id:"jumpstart-activate"}))})}},(0,o.createHistory)());t.jumpStartSkip=function(){return function(e){return e({type:u.JUMPSTART_SKIP}),c.default.tracks.recordEvent("jetpack_wpa_jumpstart_skip",{}),h.push(window.location.pathname+"?page=jetpack#/dashboard"),d.default.jumpStart("deactivate").then(function(){e({type:u.JUMPSTART_SKIP_SUCCESS,jumpStart:!1})}).catch(function(t){e({type:u.JUMPSTART_SKIP_FAIL,error:t})})}}},function(e,t,n){function r(e,t,n){t=(n?i(e,t,n):void 0===t)?1:c(o(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var u=0,l=0,d=Array(s(r/t));u<r;)d[l++]=a(e,u,u+=t);return d}var a=n(466),i=n(219),o=n(227),s=Math.ceil,c=Math.max;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(7),M=r(_),b=n(10),g=n(128),v=r(g),y=n(8),A=n(14),E=r(A),w=n(61),k=n(21),T=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this.props,t=e.siteRawUrl,n=e.inDevMode,r=m.default.createElement("a",{href:"https://wordpress.com/stats/activity/"+t}),a=(0,y.translate)("{{a}}View your site's activity{{/a}} in a single feed.",{components:{a:r}});return m.default.createElement("div",{className:"jp-dash-item__interior"},m.default.createElement(v.default,{label:(0,y.translate)("Activity"),isModule:!1,className:(0,E.default)({"jp-dash-item__is-inactive":n}),pro:!1},m.default.createElement("p",{className:"jp-dash-item__description"},n?(0,y.translate)("Unavailable in Dev Mode."):a)))}}]),t}(h.Component);T.propTypes={inDevMode:M.default.bool.isRequired,siteRawUrl:M.default.string.isRequired,sitePlan:M.default.object.isRequired},T.defaultProps={inDevMode:!1,siteRawUrl:"",sitePlan:""},t.default=(0,b.connect)(function(e){return{sitePlan:(0,w.getSitePlan)(e),inDevMode:(0,k.isDevMode)(e)}})(T),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.DashStats=void 0;var a=n(59),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(7),M=r(_),b=n(1),g=r(b),v=n(228),y=r(v),A=n(27),E=r(A),w=n(234),k=r(w),T=n(25),L=r(T),S=n(1173),C=r(S),O=n(10),z=n(918),N=r(z),D=n(41),P=r(D),x=n(867),j=r(x),R=n(8),Y=n(15),I=r(Y),q=n(80),B=n(21),W=n(28),U=n(1182),H=r(U),F=n(1183),X=r(F),V=n(62),K=n(23),J=n(103),G=n(515),Q=r(G),Z=t.DashStats=function(e){function t(e){(0,u.default)(this,t);var n=(0,p.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e));return n.state={emptyStatsDismissed:e.isEmptyStatsCardDismissed},n}return(0,m.default)(t,e),(0,d.default)(t,[{key:"barClick",value:function(e){e.data.link&&(I.default.tracks.recordJetpackClick("stats_bar"),window.open(e.data.link,"_blank"))}},{key:"statsChart",value:function(e){var t=this.props,n=[],r=0;return"object"!==(0,i.default)(t.statsData[e])?{chartData:n,totalViews:!1}:((0,y.default)(t.statsData[e].data,function(a){var i=a[1],o=a[0],s="",c="";r+=i,"day"===e?(s=(0,R.moment)(o).format("MMM D"),c=(0,R.moment)(o).format("MMMM Do")):"week"===e?(o=o.replace(/W/g,"-"),s=(0,R.moment)(o).format("MMM D"),c=(0,R.translate)("Week of %(date)s",{args:{date:(0,R.moment)(o).format("MMMM Do")}})):(s=(0,R.moment)(o).format("MMM"),c=(0,R.moment)(o).format("MMMM, YYYY")),n.push({label:s,value:i,nestedValue:null,className:"statsChartbar",data:{link:"https://wordpress.com/stats/"+e+"/"+t.siteRawUrl+"?startDate="+o},tooltipData:[{label:c,value:(0,R.translate)("Views: %(numberOfViews)s",{args:{numberOfViews:(0,R.numberFormat)(i)}}),className:"tooltip class"},{label:(0,R.translate)("Click to view detailed stats.")}]})}),{chartData:n,totalViews:r})}},{key:"statsErrors",value:function(){return(0,E.default)(this.props.statsData,["general","errors"],!1)}},{key:"renderStatsChart",value:function(e){return g.default.createElement("div",null,g.default.createElement("div",{className:"jp-at-a-glance__stats-chart"},g.default.createElement(C.default,{data:e,barClick:this.barClick}),0===e.length&&g.default.createElement(j.default,null)),g.default.createElement("div",{id:"stats-bottom",className:"jp-at-a-glance__stats-bottom"},g.default.createElement(X.default,{statsData:this.props.statsData,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,isLinked:this.props.isLinked,connectUrl:this.props.connectUrl})))}},{key:"renderEmptyStatsCard",value:function(){var e=this,t=function(){e.setState({emptyStatsDismissed:!0}),e.props.updateOptions({dismiss_empty_stats_card:!0})};return g.default.createElement(L.default,{className:"jp-at-a-glance__stats-empty"},g.default.createElement("img",{src:q.imagePath+"stats-people.svg",width:"272",height:"144",alt:(0,R.translate)("Jetpack Stats People"),className:"jp-at-a-glance__stats-icon"}),g.default.createElement("p",null,(0,R.translate)("Hello there! Your stats have been activated."),g.default.createElement("br",null),(0,R.translate)("Just give us a little time to collect data so we can display it for you here.")),g.default.createElement(P.default,{onClick:t,primary:!0},(0,R.translate)("Okay, got it!")))}},{key:"renderStatsArea",value:function(){var e=this,t=function(){return e.props.updateOptions({stats:!0})};if(this.props.getOptionValue("stats")){if(this.statsErrors())return g.default.createElement("div",{className:"jp-at-a-glance__stats-inactive"},g.default.createElement("span",null,(0,R.translate)("Something happened while loading stats. Please try again later or {{a}}view your stats now on WordPress.com{{/a}}",{components:{a:g.default.createElement("a",{href:"https://wordpress.com/stats/insights/"+this.props.siteRawUrl})}})));var n=this.statsChart(this.props.activeTab),r=n.chartData,a=n.totalViews,i=r.length&&a<=0&&!this.props.isEmptyStatsCardDismissed&&!this.state.emptyStatsDismissed;return g.default.createElement("div",{className:"jp-at-a-glance__stats-container"},i?this.renderEmptyStatsCard():this.renderStatsChart(r))}return g.default.createElement("div",{className:"jp-at-a-glance__stats-inactive"},g.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},g.default.createElement("img",{src:q.imagePath+"stats.svg",width:"60",height:"60",alt:(0,R.translate)("Jetpack Stats Icon"),className:"jp-at-a-glance__stats-icon"})),g.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isDevMode?(0,R.translate)("Unavailable in Dev Mode"):(0,R.translate)("{{a}}Activate Site Stats{{/a}} to see detailed stats, likes, followers, subscribers, and more! {{a1}}Learn More{{/a1}}",{components:{a:g.default.createElement("a",{href:"javascript:void(0)",onClick:t}),a1:g.default.createElement("a",{href:"https://jetpack.com/support/wordpress-com-stats/",target:"_blank",rel:"noopener noreferrer"})}})),!this.props.isDevMode&&g.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},g.default.createElement(P.default,{onClick:t,primary:!0},(0,R.translate)("Activate Site Stats"))))}},{key:"maybeShowStatsTabs",value:function(){var e=this;if(!1===this.statsChart(this.props.activeTab).totalViews&&!this.props.isEmptyStatsCardDismissed&&!this.state.emptyStatsDismissed)return!1;var t=function(){I.default.tracks.recordJetpackClick({target:"stats_switch_view",view:"day"}),e.props.switchView("day"),e.props.fetchStatsData("day")},n=function(){I.default.tracks.recordJetpackClick({target:"stats_switch_view",view:"week"}),e.props.switchView("week"),e.props.fetchStatsData("week")},r=function(){I.default.tracks.recordJetpackClick({target:"stats_switch_view",view:"month"}),e.props.switchView("month"),e.props.fetchStatsData("month")};return this.props.getOptionValue("stats")&&!this.statsErrors()?g.default.createElement("ul",{className:"jp-at-a-glance__stats-views"},g.default.createElement("li",{tabIndex:"0",className:"jp-at-a-glance__stats-view"},g.default.createElement("a",{href:"javascript:void(0)",onClick:t,className:this.getClass("day")},(0,R.translate)("Days"))),g.default.createElement("li",{tabIndex:"0",className:"jp-at-a-glance__stats-view"},g.default.createElement("a",{href:"javascript:void(0)",onClick:n,className:this.getClass("week")},(0,R.translate)("Weeks"))),g.default.createElement("li",{tabIndex:"0",className:"jp-at-a-glance__stats-view"},g.default.createElement("a",{href:"javascript:void(0)",onClick:r,className:this.getClass("month")},(0,R.translate)("Months")))):void 0}},{key:"getClass",value:function(e){return this.props.activeTab===e?"jp-at-a-glance__stats-view-link is-current":"jp-at-a-glance__stats-view-link"}},{key:"render",value:function(){return"inactive"===this.props.getModuleOverride("stats")?g.default.createElement("div",null,g.default.createElement(Q.default,{moduleName:(0,R.translate)("Site Stats")})):this.props.isModuleAvailable&&g.default.createElement("div",null,g.default.createElement(H.default,{range:this.props.activeTab}),g.default.createElement(N.default,{label:(0,R.translate)("Site Stats")},this.maybeShowStatsTabs()),g.default.createElement(L.default,{className:"jp-at-a-glance__stats-card "+(this.props.isDevMode?"is-inactive":"")},this.renderStatsArea()))}}]),t}(b.Component);Z.propTypes={isDevMode:M.default.bool.isRequired,siteRawUrl:M.default.string.isRequired,siteAdminUrl:M.default.string.isRequired,statsData:M.default.any.isRequired,isModuleAvailable:M.default.bool.isRequired},t.default=(0,O.connect)(function(e){return{isModuleAvailable:(0,K.isModuleAvailable)(e,"stats"),activeTab:(0,V.getActiveStatsTab)(e),isDevMode:(0,B.isDevMode)(e),isLinked:(0,B.isCurrentUserLinked)(e),connectUrl:(0,B.getConnectUrl)(e),statsData:(0,k.default)((0,V.getStatsData)(e))?(0,W.getInitialStateStatsData)(e):(0,V.getStatsData)(e),isEmptyStatsCardDismissed:(0,J.emptyStatsCardDismissed)(e),getModuleOverride:function(t){return(0,K.getModuleOverride)(e,t)}}},function(e){return{switchView:function(t){return e((0,V.statsSwitchTab)(t))},fetchStatsData:function(t){return e((0,V.fetchStatsData)(t))}}})(Z)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=n(7),_=n(64),M=n(919),b=n(1174),g=n(1180);n(1181);var v=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.state={maxBars:100,width:650},r.resize=function(){var e=r.refs.chart,t=e.clientWidth-82,n=void 0;g.hasTouch()?(t=t<=0?350:t,n=Math.floor(t/r.props.minTouchBarWidth)):n=Math.floor(t/r.props.minBarWidth),r.setState({maxBars:n,width:t})},r.getYAxisMax=function(e){var t=Math.max.apply(null,e),n=Math.pow(10,t.toString().length-1),r=Math.ceil((t+1)/n)*n;return r<10&&(r=10),r},r.getData=function(){var e=r.props.data;return e=e.slice(0-r.state.maxBars)},r.getValues=function(){var e=r.getData();return e=e.map(function(e){return e.value},r)},r.isEmptyChart=function(e){return e=e.filter(function(e){return e>0},r),0===e.length},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){this.resize=M(this.resize,400),window.addEventListener("resize",this.resize),this.resize()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.resize)}},{key:"componentWillReceiveProps",value:function(e){this.props.loading&&!e.loading&&this.resize()}},{key:"render",value:function(){var e=this.getValues(),t=this.getYAxisMax(e),n=this.getData(),r=void 0;return e.length&&this.isEmptyChart(e)&&(r=h.createElement("div",{className:"dops-chart__empty"},h.createElement("span",{className:"dops-chart__empty_notice"},"No activity this period"))),h.createElement("div",{ref:"chart",className:"dops-chart"},h.createElement("div",{className:"dops-chart__y-axis-markers"},h.createElement("div",{className:"dops-chart__y-axis-marker is-hundred"}),h.createElement("div",{className:"dops-chart__y-axis-marker is-fifty"}),h.createElement("div",{className:"dops-chart__y-axis-marker is-zero"})),h.createElement("div",{className:"dops-chart__y-axis"},h.createElement("div",{className:"dops-chart__y-axis-width-fix"},new Number(1e5).toLocaleString()),h.createElement("div",{className:"dops-chart__y-axis-label is-hundred"},t.toLocaleString()),h.createElement("div",{className:"dops-chart__y-axis-label is-fifty"},(t/2).toLocaleString()),h.createElement("div",{className:"dops-chart__y-axis-label is-zero"},0)),h.createElement(b,{barClick:this.props.barClick,data:n,yAxisMax:t,chartWidth:this.state.width,isTouch:g.hasTouch()}),r)}}]),t}(h.Component);v.displayName="ModuleChart",v.propTypes={loading:m.bool,data:m.array,minTouchBarWidth:m.number,minBarWidth:m.number,barClick:m.func},v.defaultProps={minTouchBarWidth:42,minBarWidth:15,barClick:_},t.default=v,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=n(1),_=n(1175),M=n(1178),b=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.buildBars=function(e){var t=r.props.data.length,n=r.props.chartWidth,a=n/t,i="bottom right";return r.props.data.map(function(r,o){var s=a*(o+1);return s+230>n&&s+a-230>0&&(i="bottom left"),m.createElement(_,{index:o,key:o,isTouch:this.props.isTouch,tooltipPosition:i,className:r.className,clickHandler:this.props.barClick,data:r,max:e,count:t})},r)},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.createElement("div",null,m.createElement("div",{className:"dops-chart__bars"},this.buildBars(this.props.yAxisMax)),m.createElement(M,{data:this.props.data,labelWidth:42}))}}]),t}(m.Component);b.displayName="ModuleChartBarContainer",b.propTypes={isTouch:h.bool,data:h.array,yAxisMax:h.number,width:h.number,barClick:h.func},t.default=b,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=n(1),_=n(14),M=n(1176),b=n(65),g=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.state={showPopover:!1},r.buildSections=function(){var e=r.props.data.value,t=r.props.max,n=t?Math.ceil(e/t*1e4)/100:0,a=100-n,i=Math.max(1,Math.floor(a)),o=[],s=r.props.data.nestedValue,c={"dops-chart__bar-section":!0,"is-spacer":!0,"is-ghost":100===a&&!r.props.active},u=void 0,l=void 0,d=void 0,f={height:i+"%"};o.push(m.createElement("div",{key:"spacer",className:_(c),style:f}));var p={top:i+"%"};return s&&(l=e?Math.ceil(s/e*1e4)/100:0,d={height:l+"%"},u=m.createElement("div",{key:"nestedValue",className:"dops-chart__bar-section-inner",style:d})),o.push(m.createElement("div",{ref:"valueBar",key:"value",className:"dops-chart__bar-section is-bar",style:p},u)),o.push(m.createElement("div",{key:"label",className:"dops-chart__bar-label"},r.props.label)),o},r.clickHandler=function(){"function"==typeof r.props.clickHandler&&r.props.clickHandler(r.props.data)},r.mouseEnter=function(){r.setState({showPopover:!0})},r.mouseLeave=function(){r.setState({showPopover:!1})},r.renderTooltip=function(){if(!r.props.data.tooltipData||!r.props.data.tooltipData.length||r.props.isTouch)return null;var e=r.props.data.tooltipData,t=e.map(function(e,t){var n=["module-content-list-item"],r=void 0;return e.icon&&(r=m.createElement(b,{icon:e.icon,size:18})),n.push(e.className),m.createElement("li",{key:t,className:n.join(" ")},m.createElement("span",{className:"dops-wrapper"},m.createElement("span",{className:"value"},e.value),m.createElement("span",{className:"label"},r,e.label)))});return m.createElement(M,{className:"dops-chart__tooltip",id:"popover__chart-bar",showDelay:200,context:r.refs&&r.refs.valueBar,isVisible:r.state.showPopover,position:r.props.tooltipPosition},m.createElement("ul",null,t))},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this.props.count||1,t={"dops-chart__bar":!0};this.props.className&&(t[this.props.className]=!0);var n={width:1/e*100+"%"};return m.createElement("div",{onClick:this.clickHandler,onMouseEnter:this.mouseEnter,onMouseLeave:this.mouseLeave,className:_(t),style:n},this.buildSections(),m.createElement("div",{className:"dops-chart__bar-marker is-hundred"}),m.createElement("div",{className:"dops-chart__bar-marker is-fifty"}),m.createElement("div",{className:"dops-chart__bar-marker is-zero"}),this.renderTooltip())}}]),t}(m.Component);g.displayName="ModuleChartBar",g.propTypes={isTouch:h.bool,tooltipPosition:h.string,className:h.string,clickHandler:h.func,data:h.object.isRequired,max:h.number,count:h.number},t.default=g,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(14),g=r(b),v=n(833),y=r(v),A=n(808),E=r(A);n(1177);var w=function(){},k=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){if(!this.props.showOnMobile&&E.default.isMobile())return null;var e=(0,g.default)("dops-popover","dops-tooltip","is-"+this.props.position,this.props.className);return M.default.createElement(y.default,{autoPosition:this.props.autoPosition,className:e,rootClassName:this.props.rootClassName,context:this.props.context,id:this.props.id,isVisible:this.props.isVisible,onClose:w,position:this.props.position,showDelay:this.props.showDelay},this.props.children)}}]),t}(_.Component);k.propTypes={autoPosition:m.default.bool,className:m.default.string,id:m.default.string,isVisible:m.default.bool,position:m.default.string,rootClassName:m.default.string,status:m.default.string,showDelay:m.default.number,showOnMobile:m.default.bool},k.defaultProps={showDelay:100,position:"top",showOnMobile:!1},t.default=k,e.exports=t.default},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=n(7),_=n(919),M=n(1179),b=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.state={divisor:1,spacing:r.props.labelWidth},r.resize=function(e){var t=r.props,n=r.refs.axis;!e||e instanceof Event||(t=e),n.style.overflow="hidden";var a=n.clientWidth;n.style.overflow="visible";var i=t.data.length||1,o=a/i,s=t.labelWidth,c=Math.ceil(s/o);r.setState({divisor:c,spacing:o})},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){this.resizeThrottled=_(this.resize,400),window.addEventListener("resize",this.resizeThrottled),this.resize()}},{key:"componentWillUnmount",value:function(){this.resizeThrottled.cancel&&this.resizeThrottled.cancel(),window.removeEventListener("resize",this.resizeThrottled)}},{key:"componentWillReceiveProps",value:function(e){this.resize(e)}},{key:"render",value:function(){var e=this.props.data,t=e.map(function(t,n){var r=n*this.state.spacing+(this.state.spacing-this.props.labelWidth)/2,a=e.length-n-1,i=void 0;return a%this.state.divisor==0&&(i=h.createElement(M,{key:n,label:t.label,width:this.props.labelWidth,x:r})),i},this);return h.createElement("div",{ref:"axis",className:"dops-chart__x-axis"},t)}}]),t}(h.Component);b.displayName="ModuleChartXAxis",b.propTypes={labelWidth:m.number.isRequired,
_inc/build/contact-form/js/editor-view.min.js CHANGED
@@ -1,3 +1,3 @@
1
  /* Do not modify this file directly. It is compiled from other files. */
2
  /* global grunionEditorView, tinyMCE, QTags, wp */
3
- !function(t,e,n){if(e.mce=e.mce||{},void 0!==e.mce.views){e.mce.grunion_wp_view_renderer={shortcode_string:"contact-form",template:e.template("grunion-contact-form"),field_templates:{email:e.template("grunion-field-email"),telephone:e.template("grunion-field-telephone"),textarea:e.template("grunion-field-textarea"),radio:e.template("grunion-field-radio"),checkbox:e.template("grunion-field-checkbox"),"checkbox-multiple":e.template("grunion-field-checkbox-multiple"),select:e.template("grunion-field-select"),date:e.template("grunion-field-date"),text:e.template("grunion-field-text"),name:e.template("grunion-field-text"),url:e.template("grunion-field-url")},edit_template:e.template("grunion-field-edit"),editor_inline:e.template("grunion-editor-inline"),editor_option:e.template("grunion-field-edit-option"),getContent:function(){var t,i,o=this.shortcode.content,r=0,c="";for(o||(o=n.default_form);t=e.shortcode.next("contact-field",o,r);)r=t.index+t.content.length,i=t.shortcode.attrs.named,i.type&&this.field_templates[i.type]||(i.type="text"),i.required&&(i.required=n.labels.required_field_text),i.options&&"string"==typeof i.options&&(i.options=i.options.split(",")),c+=this.field_templates[i.type](i);var s={body:c,submit_button_text:n.labels.submit_button_text};return this.template(s)},edit:function(i,o){var r,c,s=e.shortcode.next(this.shortcode_string,i),l=s.shortcode,a=t(tinyMCE.activeEditor.getDoc()),d=a.find(".wpview.wpview-wrap").filter(function(){return t(this).attr("data-mce-selected")}),f=t('<iframe scrolling="no" class="inline-edit-contact-form" />'),u=0,h="";for(l.content||(l.content=n.default_form);c=e.shortcode.next("contact-field",l.content,u);)u=c.index+c.content.length,r=c.shortcode.attrs.named,r.options&&"string"==typeof r.options&&(r.options=r.options.split(",")),h+=this.edit_template(r);f.on("checkheight",function(){var t=this.contentDocument?this.contentDocument:this.contentWindow.document;this.style.height="10px",this.style.height=5+t.body.scrollHeight+"px",tinyMCE.activeEditor.execCommand("wpAutoResize")}),f.on("load",function(){var i=1===window.isRtl?n.inline_editing_style_rtl:n.inline_editing_style,r=t('<link rel="stylesheet" href="'+i+'" />'),c=t('<link rel="stylesheet" href="'+n.dashicons_css_url+'" />');r.on("load",function(){f.contents().find("body").css("visibility","visible"),f.trigger("checkheight")}),f.contents().find("head").append(r).append(c),f.contents().find("body").html(e.mce.grunion_wp_view_renderer.editor_inline({to:l.attrs.named.to,subject:l.attrs.named.subject,fields:h})).css("visibility","hidden"),f.contents().find("input:first").focus(),setTimeout(function(){f.trigger("checkheight")},250);var s=f.contents().find(".grunion-fields"),a=f.contents().find(".grunion-controls");s.sortable(),s.on("change select","select[name=type]",function(){t(this).closest(".grunion-field-edit")[0].className="card is-compact grunion-field-edit grunion-field-"+t(this).val(),f.trigger("checkheight")}),s.on("click",".delete-option",function(e){e.preventDefault(),t(this).closest("li").remove(),f.trigger("checkheight")}),s.on("click",".add-option",function(n){var i=t(e.mce.grunion_wp_view_renderer.editor_option());n.preventDefault(),t(this).closest("li").before(i),f.trigger("checkheight"),i.find("input:first").focus()}),s.on("click",".delete-field",function(e){e.preventDefault(),t(this).closest(".card").remove(),f.trigger("checkheight")}),a.find("input[name=submit]").on("click",function(){var n=l;n.type="closed",n.attrs={},n.content="",s.children().each(function(){var i={tag:"contact-field",type:"single",attrs:{label:t(this).find("input[name=label]").val(),type:t(this).find("select[name=type]").val()}},o=[];t(this).find("input[name=required]:checked").length&&(i.attrs.required="1"),t(this).find("input[name=option]").each(function(){t(this).val()&&o.push(t(this).val())}),o.length&&(i.attrs.options=o.join(",")),n.content+=e.shortcode.string(i)}),f.contents().find("input[name=to]").val()&&(n.attrs.to=f.contents().find("input[name=to]").val()),f.contents().find("input[name=subject]").val()&&(n.attrs.subject=f.contents().find("input[name=subject]").val()),o(e.shortcode.string(n))}),a.find("input[name=cancel]").on("click",function(){o(e.shortcode.string(l))}),a.find("input[name=add-field]").on("click",function(){var n=t(e.mce.grunion_wp_view_renderer.edit_template({}));s.append(n),s.sortable("refresh"),f.trigger("checkheight"),n.find("input:first").focus()})}),d.html(f)}},e.mce.views.register("contact-form",e.mce.grunion_wp_view_renderer),QTags.addButton("grunion_shortcode",n.labels.quicktags_label,function(){QTags.insertContent("[contact-form]"+n.default_form+"[/contact-form]")});var i=t("#wp-content-wrap");t("#insert-jetpack-contact-form").on("click",function(t){t.preventDefault(),i.hasClass("tmce-active")?tinyMCE.execCommand("grunion_add_form"):i.hasClass("html-active")?QTags.insertContent("[contact-form]"+n.default_form+"[/contact-form]"):window.console.error("Neither TinyMCE nor QuickTags is active. Unable to insert form.")})}}(jQuery,wp,grunionEditorView);
1
  /* Do not modify this file directly. It is compiled from other files. */
2
  /* global grunionEditorView, tinyMCE, QTags, wp */
3
+ !function(t,e,n){if(e.mce=e.mce||{},void 0!==e.mce.views){e.mce.grunion_wp_view_renderer={shortcode_string:"contact-form",template:e.template("grunion-contact-form"),field_templates:{email:e.template("grunion-field-email"),telephone:e.template("grunion-field-telephone"),textarea:e.template("grunion-field-textarea"),radio:e.template("grunion-field-radio"),checkbox:e.template("grunion-field-checkbox"),"checkbox-multiple":e.template("grunion-field-checkbox-multiple"),select:e.template("grunion-field-select"),date:e.template("grunion-field-date"),text:e.template("grunion-field-text"),name:e.template("grunion-field-text"),url:e.template("grunion-field-url")},edit_template:e.template("grunion-field-edit"),editor_inline:e.template("grunion-editor-inline"),editor_option:e.template("grunion-field-edit-option"),getContent:function(){var t,i,o=this.shortcode.content,r=0,c="";for(o||(o=n.default_form);t=e.shortcode.next("contact-field",o,r);)r=t.index+t.content.length,i=t.shortcode.attrs.named,i.type&&this.field_templates[i.type]||(i.type="text"),i.required&&(i.required=n.labels.required_field_text),i.options&&"string"==typeof i.options&&(i.options=i.options.split(",")),c+=this.field_templates[i.type](i);var s={body:c,submit_button_text:n.labels.submit_button_text};return this.template(s)},edit:function(i,o){var r,c,s=e.shortcode.next(this.shortcode_string,i),l=s.shortcode,a=t(tinyMCE.activeEditor.getDoc()),d=a.find(".wpview.wpview-wrap").filter(function(){return t(this).attr("data-mce-selected")}),f=t('<iframe scrolling="no" class="inline-edit-contact-form" />'),u=0,h="";for(l.content||(l.content=n.default_form);c=e.shortcode.next("contact-field",l.content,u);)u=c.index+c.content.length,r=c.shortcode.attrs.named,r.options&&"string"==typeof r.options&&(r.options=r.options.split(",")),h+=this.edit_template(r);f.on("checkheight",function(){var t=this.contentDocument?this.contentDocument:this.contentWindow.document;this.style.height="10px",this.style.height=5+t.body.scrollHeight+"px",tinyMCE.activeEditor.execCommand("wpAutoResize")}),f.on("load",function(){var i=1===window.isRtl?n.inline_editing_style_rtl:n.inline_editing_style,r=t('<link rel="stylesheet" href="'+i+'" />'),c=t('<link rel="stylesheet" href="'+n.dashicons_css_url+'" />');r.on("load",function(){f.contents().find("body").css("visibility","visible"),f.trigger("checkheight")}),f.contents().find("head").append(r).append(c),f.contents().find("body").html(e.mce.grunion_wp_view_renderer.editor_inline({to:l.attrs.named.to,subject:l.attrs.named.subject,fields:h})).css("visibility","hidden"),f.contents().find("input:first").focus(),setTimeout(function(){f.trigger("checkheight")},250),setTimeout(function(){f.trigger("checkheight")},500);var s=f.contents().find(".grunion-fields"),a=f.contents().find(".grunion-controls");s.sortable(),s.on("change select","select[name=type]",function(){t(this).closest(".grunion-field-edit")[0].className="card is-compact grunion-field-edit grunion-field-"+t(this).val(),f.trigger("checkheight")}),s.on("click",".delete-option",function(e){e.preventDefault(),t(this).closest("li").remove(),f.trigger("checkheight")}),s.on("click",".add-option",function(n){var i=t(e.mce.grunion_wp_view_renderer.editor_option());n.preventDefault(),t(this).closest("li").before(i),f.trigger("checkheight"),i.find("input:first").focus()}),s.on("click",".delete-field",function(e){e.preventDefault(),t(this).closest(".card").remove(),f.trigger("checkheight")}),a.find("input[name=submit]").on("click",function(){var n=l;n.type="closed",n.attrs={},n.content="",s.children().each(function(){var i={tag:"contact-field",type:"single",attrs:{label:t(this).find("input[name=label]").val(),type:t(this).find("select[name=type]").val()}},o=[];t(this).find("input[name=required]:checked").length&&(i.attrs.required="1"),t(this).find("input[name=option]").each(function(){t(this).val()&&o.push(t(this).val())}),o.length&&(i.attrs.options=o.join(",")),n.content+=e.shortcode.string(i)}),f.contents().find("input[name=to]").val()&&(n.attrs.to=f.contents().find("input[name=to]").val()),f.contents().find("input[name=subject]").val()&&(n.attrs.subject=f.contents().find("input[name=subject]").val()),o(e.shortcode.string(n))}),a.find("input[name=cancel]").on("click",function(){o(e.shortcode.string(l))}),a.find("input[name=add-field]").on("click",function(){var n=t(e.mce.grunion_wp_view_renderer.edit_template({}));s.append(n),s.sortable("refresh"),f.trigger("checkheight"),n.find("input:first").focus()})}),d.html(f)}},e.mce.views.register("contact-form",e.mce.grunion_wp_view_renderer),QTags.addButton("grunion_shortcode",n.labels.quicktags_label,function(){QTags.insertContent("[contact-form]"+n.default_form+"[/contact-form]")});var i=t("#wp-content-wrap");t("#insert-jetpack-contact-form").on("click",function(t){t.preventDefault(),i.hasClass("tmce-active")?tinyMCE.execCommand("grunion_add_form"):i.hasClass("html-active")?QTags.insertContent("[contact-form]"+n.default_form+"[/contact-form]"):window.console.error("Neither TinyMCE nor QuickTags is active. Unable to insert form.")})}}(jQuery,wp,grunionEditorView);
_inc/build/shortcodes/js/blocks/vr-block.min.js ADDED
@@ -0,0 +1,2 @@
 
 
1
+ /* Do not modify this file directly. It is compiled from other files. */
2
+ "use strict";!function(e,t,l){var n=e.registerBlockType,a=e.UrlInput,r=t.Placeholder,i=t.SelectControl,c=l.__;n("jetpack/vr",{title:c("VR Image","jetpack"),icon:"embed-photo",category:"embed",support:{html:!1},attributes:{url:{type:"string"},view:{type:"string"}},edit:function(e){var t=e.attributes,l=function(t){return e.setAttributes({url:t})},n=function(t){return e.setAttributes({view:t})};return function(){return t.url&&t.view?wp.element.createElement("div",{className:e.className},wp.element.createElement("iframe",{title:c("VR Image","jetpack"),allowFullScreen:"true",frameBorder:"0",width:"100%",height:"300",src:"https://vr.me.sh/view/?view="+encodeURIComponent(t.view)+"&url="+encodeURIComponent(t.url)})):wp.element.createElement("div",null,wp.element.createElement(r,{key:"placeholder",instructions:c("Enter URL to VR image","jetpack"),icon:"format-image",label:c("VR Image","jetpack"),className:e.className},wp.element.createElement(a,{value:t.url,onChange:l}),wp.element.createElement("div",{style:{marginTop:"10px"}},wp.element.createElement(i,{label:c("View Type","jetpack"),value:t.view,onChange:n,options:[{label:"",value:""},{label:c("360","jetpack"),value:"360"},{label:c("Cinema","jetpack"),value:"cinema"}]}))))}()},save:function(e){return wp.element.createElement("div",{className:e.className},wp.element.createElement("iframe",{title:c("VR Image","jetpack"),allowFullScreen:"true",frameBorder:"0",width:"100%",height:"300",src:"https://vr.me.sh/view/?view="+encodeURIComponent(e.attributes.view)+"&url="+encodeURIComponent(e.attributes.url)}))}})}(wp.blocks,wp.components,wp.i18n);
_inc/build/style.min.css CHANGED
@@ -1,2 +1,2 @@
1
  /* Do not modify this file directly. It is compiled SASS code. */
2
- @media (max-width: 660px){.jp-hidden-on-mobile{display:none}}.jetpack-pagestyles #wpcontent{padding-left:0}.wp-admin.toplevel_page_jetpack{background-color:#f3f6f8;line-height:1.4;height:auto}.jetpack-pagestyles a{text-decoration:none}.dops-notice__text a{text-decoration:underline}.jetpack-pagestyles #dolly{float:none;position:relative;right:0;left:0;top:0;padding:.625rem;text-align:right;background:#fff;font-size:.75rem;font-style:italic;color:#87a6bc;border-bottom:1px #e9eff3 solid}@media (max-width: 660px){.jetpack-pagestyles #dolly{display:none}}.toplevel_page_jetpack ul#adminmenu a.wp-has-current-submenu:after{border-right-color:#f3f6f8}.jp-lower{margin:0 auto;text-align:left;max-width:45rem;padding:1.5rem}#contextual-help-link-wrap{display:none}.is-placeholder{animation:pulse-light 0.8s ease-in-out infinite;background:#c8d7e1}@keyframes pulse-light{50%{background-color:#e9eff3}}.jp-dash-item .jp-dash-item__content a{font-style:italic}.jp-dash-item .dops-section-header__card-badge .dops-button{background:none;border-bottom-width:1px}.jp-dash-item .dops-section-header__card-badge .dops-button:hover{background:#fff}.jp-dash-item .dops-section-header__actions .form-toggle__label{position:relative;top:6px;right:0}.jp-dash-item .dops-section-header__actions .form-toggle__label-content{margin:0}.jp-dash-item__card{margin:0}.jp-dash-item__count{margin-top:0;margin-bottom:0;margin-right:8px;color:#00aadc;font-weight:500;font-size:2rem;display:inline;border:1px solid #CBD7E1;border-radius:4px;padding:0px 4px;float:left;min-width:36px;text-align:center}@media (max-width: 660px){.jp-dash-item__count{font-size:1.4375rem}}.jp-dash-item__description{margin:0;width:90%;font-size:.875rem}.jp-dash-item .dops-section-header{width:100%}.jp-dash-item .dops-section-header .dops-button{font-style:normal}.jp-dash-item .dops-section-header.is-working .dops-section-header__actions,.jp-dash-item .dops-section-header.is-premium-inactive .dops-section-header__actions{color:#537994}.jp-dash-item .dops-section-header__actions .dops-notice{margin-top:.125rem}.jp-dash-item__active-label{display:inline-block;padding:.375rem 0;color:#668eaa;color:#87a6bc;font-size:.75rem;font-weight:400;text-transform:uppercase}.jp-dash-item__is-inactive .dops-card{background-color:#f3f6f8}.jp-dash-item__is-inactive .dops-section-header__label{padding-right:.5rem}.jp-dash-item__is-inactive .dops-section-header__label-text:before{content:'';display:block;position:absolute;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;background:linear-gradient(to right, rgba(243,246,248,0), #f3f6f8 90%);top:0px;bottom:0px;right:0px;left:auto;width:8px;height:auto}.jp-dash-item__is-inactive .jp-dash-item__description{font-style:italic;color:#4f748e}.jp-dash-item__disabled{opacity:.5;position:relative}.jp-dash-item__disabled::before{content:"";width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:1}.jp-dash-item__recently-activated .jp-dash-item__description{font-style:italic;box-sizing:border-box}.jp-dash-section-header{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:2.5rem 0 .5rem}@media (max-width: 660px){.jp-dash-section-header{margin-bottom:1.5rem}}@media (max-width: 480px){.jp-dash-section-header{display:block}}.jp-dash-section-header__label{-ms-flex:1;flex:1;white-space:nowrap}.jp-dash-section-header__name{display:inline-block;margin-top:0;margin-bottom:0;font-size:1.25rem;font-weight:400;white-space:nowrap}@media (min-width: 481px){.jp-dash-section-header__name{display:inline-block}}@media (max-width: 480px){.jp-dash-section-header__name .jp-dash-section-header__label{display:inline-block}}.jp-dash-section-header__settings{display:inline-block;min-width:2.5rem;text-align:center;color:#668eaa}.jp-dash-section-header__settings:focus{outline:0;box-shadow:none}.jp-dash-section-header__settings:focus .gridicon{color:#0087be}.jp-dash-section-header__settings .gridicon{position:relative;top:1px}.jp-dash-section-header__external-link{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center;font-style:italic}@media (max-width: 660px){.jp-dash-section-header__external-link{margin-top:.25rem}}@media (max-width: 480px){.jp-dash-section-header__external-link{display:block;width:100%}}.jp-dash-section-header__children{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}@media (max-width: 480px){.jp-dash-section-header__children{width:100%}}.dops-foldable-card.dops-card.devmode-disabled .dops-foldable-card__summary,.dops-foldable-card.dops-card.devmode-disabled .dops-foldable-card__summary_expanded{width:100px}.dops-foldable-card.dops-card.is-expanded .dops-foldable-card__content{position:relative;padding-right:2.9375rem;padding-left:1.5rem}@media (min-width: 661px){.dops-foldable-card__main{max-width:85%}}@media (min-width: 481px){.dops-foldable-card__main{max-width:60%}}@media (max-width: 480px){.dops-foldable-card__main{-ms-flex-preferred-size:100%;flex-basis:100%}}@media (max-width: 480px){.dops-foldable-card__header{-ms-flex-wrap:wrap;flex-wrap:wrap}}@media (max-width: 480px){.dops-foldable-card__header-text{font-size:.875rem}}.dops-foldable-card__header-text .dops-button{margin-left:.5rem}@media (max-width: 480px){.dops-foldable-card__subheader{display:none}}@media (max-width: 480px){.dops-foldable-card.has-expanded-summary .dops-foldable-card__summary,.dops-foldable-card.has-expanded-summary .dops-foldable-card__summary_expanded{text-align:left;margin-top:.5rem}}.jp-footer{text-align:center;margin:1rem 0 2rem}@media (max-width: 1040px){.jp-footer{margin:2rem 0 1.5rem}}@media (max-width: 660px){.jp-footer{margin:1.5rem 0 1rem}}.jp-footer__a8c-attr-container{margin-bottom:.5rem}.jp-footer__a8c-attr{width:11.25rem}.jp-footer__a8c-attr path{fill:#668eaa}.jp-footer__links{border-top:1px #d9e3ea solid;border-bottom:1px #d9e3ea solid;margin-top:0;margin-bottom:1rem}@media (max-width: 660px){.jp-footer__links{border-bottom:none}}.jp-footer__link-item{display:inline-block;margin-bottom:0}@media (min-width: 661px){.jp-footer__link-item{display:inline-block}}@media (max-width: 660px){.jp-footer__link-item{display:block;border-bottom:1px #d9e3ea solid}}.jp-footer__link{padding:1rem .5rem;color:#668eaa;display:inline-block;cursor:pointer}.jp-footer__link:visited{color:#668eaa}.jp-footer__link:hover,.jp-footer__link:active{color:#1c2932}@media (max-width: 660px){.jp-footer__link{display:block;padding:.5rem 0;border-bottom:1px #d9e3ea solid}.jp-footer__link:last-of-type{border-bottom:none}}.jp-dev-card.jp-dev-card{position:fixed;bottom:10px;right:10px;z-index:100;padding:8px;font-size:12px;text-align:left}.jp-dev-card.jp-dev-card ul{margin-top:6px}.jp-dev-card.jp-dev-card li{margin-top:2px;margin-bottom:0}.jp-dev-card__heading{font-weight:600}.jp-dev-card__subheading{font-size:11px;color:#668eaa}.jp-dev-card__close{float:right;cursor:pointer}.jp-loading-placeholder{margin-top:30vh;margin-bottom:25vh;color:#c8d7e1;font-size:12vw;text-align:center}@media (min-width: 961px){.jp-loading-placeholder{font-size:120px}}.jp-loading-placeholder .dashicons{font-size:inherit;width:auto;height:auto}.jp-jetpack-connect__container{text-align:center}.jp-jetpack-connect__container .dops-section-header__label{margin:.0625rem;padding:1rem;font-size:1rem;font-weight:400;border-bottom:1px #e9eff3 solid}.jp-jetpack-connect__container .jp-banner__tos-blurb{font-size:.6875rem;color:#2e4453;padding-top:5px;margin-bottom:30px}@media (max-width: 660px){.jp-jetpack-connect__cta{text-align:left}}.jp-jetpack-connect__cta .jp-jetpack-connect__description{padding:0 0 1rem;margin-top:20px;margin-bottom:10px}.jp-jetpack-connect__container-title,.jp-jetpack-connect__container-subtitle{font-weight:400}.jp-jetpack-connect__container-subtitle:first-of-type{margin:0;padding:1rem}@media (min-width: 661px){.jp-jetpack-connect__container-subtitle{font-size:1.25rem}}@media (max-width: 660px){.jp-jetpack-connect__container-subtitle{text-align:left}}.jp-jetpack-connect__description{padding:1rem;font-size:1rem}@media (min-width: 961px){.jp-jetpack-connect__description{padding:0 10%;margin-bottom:2rem}}@media (max-width: 660px){.jp-jetpack-connect__description{font-size:.875rem;text-align:left;margin-top:0;padding:1rem 0}}.jp-jetpack-connect__link{font-style:italic}.jp-jetpack-connect__button{margin:0 0 .75rem}.jp-jetpack-connect__feature{padding:0}.jp-jetpack-connect__header{position:relative}@media (min-width: 961px){.jp-jetpack-connect__header:first-of-type{background:transparent url("../../images/long-clouds.svg") 50% 110% no-repeat;background-size:100% 63px;padding-bottom:3.125rem}}@media (max-width: 960px){.jp-jetpack-connect__header:first-of-type{border-bottom:1px #e9eff3 solid;background-image:none}}@media (min-width: 961px){.jp-jetpack-connect__header{padding-top:1rem}}@media (max-width: 660px){.jp-jetpack-connect__header .jp-jetpack-connect__description{padding:0 1rem 1rem}}.jp-jetpack-connect__header-img-container{position:absolute;left:0;right:0;bottom:0}@media (max-width: 960px){.jp-jetpack-connect__header-img-container{display:none}}.jp-jetpack-connect__header-img{margin:0 auto;max-width:100%;z-index:1001;position:absolute;left:0;right:0;bottom:0}@media (min-width: 961px){.jp-jetpack-connect__header-img:first-of-type{bottom:-15px}}.jp-jetpack-connect__header-img:last-of-type{z-index:999}@media (min-width: 961px){.jp-jetpack-connect__traffic .jp-jetpack-connect__header:first-of-type{padding-bottom:12.5rem;background:url("../../images/stars-right.svg") no-repeat,url("../../images/stars-left.svg") no-repeat,#fff;background-position:95% 50%, 5% 50%;background-size:100px, 125px}}.jp-jetpack-connect__interior-container{padding:1rem;background:#f3f6f8}@media (min-width: 961px){.jp-jetpack-connect__interior-container{padding:1.5rem 1rem 1rem}}@media (max-width: 960px){.jp-jetpack-connect__interior-container .jp-jetpack-connect__container-subtitle{padding:1rem 0 0}}@media (min-width: 661px){.jp-jetpack-connect__interior-container .jp-jetpack-connect__container-subtitle{margin-top:1.5rem}}.jp-jetpack-connect__feature-list{margin:0;padding:0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}@media (min-width: 961px){.jp-jetpack-connect__feature-list{margin-top:1rem}}@media (min-width: 661px){.jp-jetpack-connect__feature-list{-ms-flex-wrap:nowrap;flex-wrap:nowrap}}@media (max-width: 660px){.jp-jetpack-connect__feature-list{margin:-.5rem -1rem 0}}.jp-jetpack-connect__feature-list-column{box-shadow:0 0 0 1px rgba(200,215,225,0.5),0 1px 2px #e9eff3;text-align:left;background:#fff}@media (min-width: 661px){.jp-jetpack-connect__feature-list-column{-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;-ms-flex-preferred-size:33%;flex-basis:33%}}@media (max-width: 660px){.jp-jetpack-connect__feature-list-column{-ms-flex-preferred-size:100%;flex-basis:100%;margin-bottom:.5rem}}.jp-jetpack-connect__feature-content{padding:1rem}.jp-jetpack-connect__feature-content-title{margin:0}.jp-jetpack-connect__feature-image{max-width:100%;margin:0 auto}@media (max-width: 480px){.dops-notice ul{font-size:.75rem}}.jp-jumpstart{text-align:center;max-width:37.5rem;margin:0 auto 2rem}@media (max-width: 660px){.jp-jumpstart{text-align:left}}.jp-jumpstart__cta-container{position:relative;padding:0}.jp-jumpstart__cta-container .dops-spinner{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(255,255,255,0.85);z-index:1001}.jp-jumpstart__cta-container .dops-spinner__image{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}.jp-jumpstart__title{font-weight:300;text-align:center;font-size:1.5rem;margin-bottom:2rem}.jp-jumpstart__description{margin-bottom:0}.jp-jumpstart__description p{margin:0;font-size:.875rem;color:#537994}.jp-jumpstart__feature-heading{margin-top:0;margin-bottom:1.5rem;font-size:1rem;font-weight:400}.jp-jumpstart__features{margin:0;padding:1rem}.jp-jumpstart__features.dops-foldable-card{box-shadow:none}.jp-jumpstart__features.dops-foldable-card.is-expanded{margin-bottom:0}.jp-jumpstart__features .dops-foldable-card__header,.jp-jumpstart__features.dops-foldable-card.is-expanded .dops-foldable-card__header{min-height:auto}.jp-jumpstart__features .dops-foldable-card__main{max-width:100%;margin-right:0}.jp-jumpstart__features .dops-foldable-card__secondary{display:none}.jp-jumpstart__features .dops-foldable-card__subheader{color:#0087be;font-style:italic}.jp-jumpstart__features .dops-foldable-card__content{background-color:#fafbfc}.jp-jumpstart__feature-list{margin:0 0 1.5rem;padding:0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}@media (max-width: 660px){.jp-jumpstart__feature-list{margin:0 -1rem 1.5rem}}.jp-jumpstart__feature-list-column{box-shadow:0 0 0 1px rgba(200,215,225,0.5),0 1px 2px #e9eff3;text-align:left;background:#fff}@media (min-width: 661px){.jp-jumpstart__feature-list-column{-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;-ms-flex-preferred-size:50%;flex-basis:50%}}@media (max-width: 660px){.jp-jumpstart__feature-list-column{-ms-flex-preferred-size:100%;flex-basis:100%}}.jp-jumpstart__feature-content{padding:1rem}.jp-jumpstart__feature-content p{margin-top:.5rem;margin-bottom:0}.jp-jumpstart__feature-content-title{margin:0}.jp-jumpstart__note{margin:0;padding:1rem 0 0;font-size:.875rem;clear:both;font-style:italic}.jp-masthead{background-color:#fff;text-align:center;box-shadow:0 1px 0 rgba(200,215,225,0.5),0 1px 2px #e9eff3}@media (max-width: 48.875rem){.jp-masthead{padding:0 1.5rem}.jetpack-masterbar .jp-masthead{padding-left:4rem}}.jp-masthead__inside-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:0 auto;width:100%;max-width:45rem;padding-bottom:.375rem}.jp-masthead__logo-container{-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;padding:.6875rem 0 0}@media (max-width: 480px){.jp-masthead__logo-container{margin-right:1rem}}.jp-masthead__logo-link{display:inline-block;outline:none;vertical-align:middle}.jp-masthead__logo-link:focus{line-height:0;box-shadow:0 0 0 2px #78dcfa}.jp-masthead__logo-link+code{margin:0 10px;padding:5px 9px;border-radius:2px;background:#e6ecf1;color:#647a88}.jp-masthead__nav{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;text-align:right;margin-top:.375rem;padding:.25rem 0}.jp-masthead__nav .dops-button-group{-ms-flex-positive:1;flex-grow:1;-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}@media (max-width: 480px){.jp-masthead__nav{text-align:left}}.jp-module-settings__external-link{font-size:.875rem}.jp-module-settings__read-more{clear:both;margin-top:1rem}@media (min-width: 481px){.jp-module-settings__read-more{margin-top:2rem}}.jp-module-settings__read-more .dops-button.is-compact.is-borderless,.jp-module-settings__read-more .jp-module-settings__more-text{vertical-align:middle}.jp-related-posts-preview{position:relative;margin-top:.5rem;padding:1rem .5rem;width:100%;background:#f3f6f8;box-sizing:border-box;box-shadow:none}.jp-related-posts-settings__preview-label{margin-bottom:.5rem;margin-top:1.5rem;font-size:.875rem;font-weight:600}.jp-related-posts-preview__title{margin:0 0 .6875rem .5rem;font-size:.6875rem;font-weight:600}.jp-related-posts-preview__post-title{font-size:.9375rem;font-weight:400;margin:0}.jp-related-posts-preview__post-context{font-size:.9375rem;opacity:.6;margin:0}.jp-related-posts-preview__item{box-sizing:border-box;display:inline-block;width:33.33%;padding:.5rem;vertical-align:top}@media (max-width: 480px){.jp-related-posts-preview__item{width:100%}}.jp-related-posts-preview__item img{max-width:100%;margin-bottom:.5rem}.jp-support-card{margin-top:1rem;margin-bottom:0}.jp-support-card__description{font-size:.875rem;line-height:1.65;color:#537994}.jp-support-card__description:first-of-type{margin-top:4px}.jp-support-card__description:last-of-type{margin-bottom:0}.jp-support-card__description .dops-button{margin:0 16px 0 0}@media (max-width: 960px){.jp-support-card__description .dops-button{margin:0 16px 8px 0}}.jp-support-card__link{font-style:italic}@media (max-width: 660px){.jp-support-card__link{display:block;width:100%;padding:.625rem 0;border-top:1px rgba(200,215,225,0.5) solid}.jp-support-card__link:first-letter{text-transform:capitalize}.jp-support-card__link:first-of-type{border-top:0}}.jp-support-card__happiness{margin-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap}@media (max-width: 660px){.jp-support-card__happiness .jp-support-card__description:first-of-type{margin-bottom:1rem}}.jp-support-card__social{background-color:#fafbfc;padding:1rem}@media (max-width: 660px){.jp-support-card__social{background:#fff;margin-top:1rem;padding:0 1rem}}.jp-support-card__header{color:#668eaa;font-weight:400;font-size:1.3125rem;margin:0}.jp-support-card__happiness-contact{-ms-flex-negative:1;flex-shrink:1;-ms-flex-positive:1;flex-grow:1}.jp-form-legend,.jp-form-label-wide{padding:1rem 0 .3125rem;font-size:.875rem;font-weight:600}.jp-form-label{display:block;font-size:.875rem;line-height:1.5;margin-bottom:.3125rem}.jp-form-label-wide{padding:.5rem 0;display:block}.jp-form-label input[type="radio"]+span{font-weight:normal;margin-left:8px}.jp-form-button{margin-top:1rem}@media (min-width: 481px){.jp-form-button{position:absolute;right:1rem;bottom:1rem}}.jp-form-toggle-explanation{font-size:.875rem;word-break:break-word;vertical-align:baseline}.jp-form-toggle-explanation .jp-form-toggle-privacy-info{margin-left:.3125rem;padding-left:.3125rem;border-left:1px solid rgba(135,166,188,0.5)}.jp-form-fieldset{clear:both;position:relative}.jp-form-fieldset .jp-form-legend+.jp-form-setting-explanation{margin-top:0;margin-bottom:.5rem}.jp-form-input-with-prefix{display:-ms-inline-flexbox;display:inline-flex;width:100%;margin-top:1.5rem}.jp-form-input-with-prefix:first-of-type{margin-top:0}.jp-form-input-with-prefix span:first-child{min-width:3.75rem;text-align:center;background:#f3f6f8;border:1px solid #c8d7e1;color:#4f748e;padding:.5rem .875rem;white-space:nowrap}.jp-form-input-with-prefix input[type="text"]{width:100%;border-left:0}.jp-form-has-child{margin-bottom:1.5rem}.jp-form-has-child:last-child{margin-bottom:0}.jp-form-has-child>.jp-form-fieldset,.jp-form-has-child>.jp-form-setting-explanation{margin-left:2.25rem}.jp-form-has-child>.jp-form-fieldset{margin-bottom:1rem}.jp-form-block-fade{position:absolute;top:0;left:0;z-index:1;background:rgba(255,255,255,0.8);width:100%;height:100%}.jp-form-devmode-message.is-compact{width:100%;padding:0 1rem;position:absolute;top:-24px;z-index:1}.react-tagsinput{border:1px solid #e9eff3;padding:.15625rem}.react-tagsinput--focused{border-color:#00aadc}.react-tagsinput-tag{background-color:#00aadc;border-radius:2px;border:1px solid #0087be;color:#fff;display:inline-block;font-size:13px;padding:.125rem .375rem .1875rem .5rem;margin:.15625rem;transition:background-color .2s ease-out}.react-tagsinput-tag:hover{background-color:#26b7e2}.react-tagsinput-remove{cursor:pointer;font-weight:bold;transition:color .2s ease-out}.react-tagsinput-remove:hover{color:#caf3ff}.react-tagsinput-tag a::before{content:" \00d7"}input[type=text].react-tagsinput-input{width:9.375rem;height:1.875rem;margin:0;padding:.3125rem;font-size:13px;vertical-align:middle;border:none;box-shadow:none}input[type=text].react-tagsinput-input::-ms-clear{display:none}.jetpack-pagestyles .vp-notice,.jetpack-pagestyles .woocommerce-message,.jetpack-pagestyles .wc-connect{display:none}.jetpack-pagestyles .vp-notice-jp a{text-decoration:underline}.jetpack-pagestyles .woocommerce-message.dops-notice{display:block;padding:0}.jetpack-pagestyles .woocommerce-message.dops-notice::before{content:''}.jetpack-pagestyles .woocommerce-message.dops-notice .submit{padding:0}.jetpack-pagestyles .woocommerce-message.dops-notice .notice-dismiss::before{display:none}.jetpack-pagestyles .woocommerce-message.dops-notice .dops-notice__text>div{max-width:620px}.jetpack-pagestyles .woocommerce-message.dops-notice .dops-notice__text>a{margin-right:15px}.jetpack-pagestyles .woocommerce-message.dops-notice .dops-notice__moved_text{margin-bottom:5px}.jetpack-pagestyles .dops-notice__action.notice-dismiss{height:100%}.jp-inline-expand.dops-card{box-shadow:none;padding:0}.jp-inline-expand .jp-inline-expand-action{font-size:.875rem;cursor:pointer}.jp-inline-expand .jp-inline-expand-action .gridicon{transition:transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275),color 0.5s ease-in;vertical-align:text-bottom;display:inline-block;margin:0 5px}.jp-inline-expand.is-expanded .jp-inline-expand-action .gridicon{-ms-transform:rotate(180deg);transform:rotate(180deg)}.jp-inline-expand.is-expanded .jp-inline-expand-content{padding:16px 0 0}.form-toggle.is-compact.is-toggling+.form-toggle__label .form-toggle__switch:before,.form-toggle.is-compact.is-toggling+.form-toggle__label .form-toggle__switch:after{left:8px}.form-toggle.is-compact.is-toggling:checked+.form-toggle__label .form-toggle__switch:before,.form-toggle.is-compact.is-toggling:checked+.form-toggle__label .form-toggle__switch:after{left:0}.dops-section-nav-tab__text .gridicon{vertical-align:middle;margin:0 0 2px 5px}.jp-settings-card__configure-link{display:-ms-flexbox;display:flex;margin-bottom:0}.jp-form-settings-card{margin-bottom:1.5rem;font-size:.875rem}.jp-form-settings-card+.jp-at-a-glance__stats-card{margin-bottom:1.5rem}.jp-form-settings-card .dops-foldable-card .dops-foldable-card__header{color:#444}@media (min-width: 481px){.jp-form-settings-card .dops-foldable-card .dops-foldable-card__header{padding-left:1.5rem}}.jp-form-settings-card .dops-foldable-card .form-toggle__switch{float:left;margin-top:.125rem}.jp-form-settings-card .dops-foldable-card .dops-foldable-card__header-text{font-size:.875rem}.jp-form-settings-card .dops-foldable-card.jp-foldable-settings-disable .dops-foldable-card__header{color:#dadada}@media (min-width: 481px){.jp-form-settings-card .dops-foldable-card .dops-foldable-card__main{max-width:85%}}.jp-form-settings-card .dops-foldable-card .dops-foldable-card__action{right:.625rem}@media (max-width: 480px){.jp-form-settings-card .dops-foldable-card .dops-foldable-card__action{right:.0625rem}}.jp-form-settings-card .dops-foldable-card .jp-support-info{right:-1.3125rem;top:.4375rem}@media (max-width: 480px){.jp-form-settings-card .dops-foldable-card .jp-support-info{right:-1.875rem}}.jp-form-settings-card .dops-foldable-card .jp-form-legend:first-child,.jp-form-settings-card .dops-foldable-card .jp-form-label-wide:first-child{padding-top:.4375rem}@media (min-width: 481px){.jp-form-settings-card .dops-foldable-card__header{padding-top:1.75rem;padding-bottom:1.75rem}}.jp-foldable-settings-standalone .dops-foldable-card__header-text{font-size:.875rem}@media (min-width: 481px){.jp-foldable-settings-standalone .dops-foldable-card__header,.jp-foldable-settings-standalone.dops-card.is-expanded .dops-foldable-card__content{padding-left:1.5rem;padding-right:1.5rem}.jp-foldable-settings-standalone .dops-foldable-card__action{right:.625rem}.jp-foldable-settings-standalone .jp-form-settings-group .jp-support-info{right:.125rem;top:0}}@media (max-width: 480px){.jp-foldable-settings-standalone .jp-form-settings-group .jp-support-info{right:-1.9375rem;top:.375rem}}.jp-banner__no-border{border-left:none !important}.jp-banner__no-border .dops-banner__icon-circle{background:none !important;padding:0 0 0 3px}.jp-banner__no-border svg.gridicon.gridicons-checkmark-circle{width:28px;height:28px;color:#4ab866}.jp-banner__no-border .dops-banner__description{font-size:.875rem;line-height:1.65;color:#537994;margin-top:0}.jp-form-settings-group{position:relative;margin-bottom:0}.jp-form-settings-group p{font-size:.875rem;margin-top:0;margin-bottom:1.5rem}.jp-form-settings-group fieldset p:last-child{margin-bottom:8px}.jp-form-settings-group .form-toggle__label{margin-top:.25rem;margin-bottom:.25rem}.jp-form-settings-group .form-toggle__switch{float:left;margin-top:2px}.jp-form-settings-group .jp-form-setting-explanation{color:#537994;display:block;margin:.3125rem .875rem .3125rem 0;font-size:.8125rem;font-style:italic;font-weight:400;word-break:break-word}.jp-form-settings-group .jp-form-setting-explanation+.dops-card{margin-top:1rem}.jp-form-settings-group .jp-form-setting-explanation a{text-decoration:underline}.dops-foldable-card .jp-form-settings-group{padding-bottom:16px}.jp-form-settings-group .dops-card{padding-right:3rem}@media (max-width: 480px){.jp-form-settings-group .jp-support-info{right:1rem;top:1.25rem}}.jp-form-settings-group .jp-support-info+p{margin-top:2px}.jp-form-settings-group .jp-support-info+span{padding-top:2px;display:block}.jp-form-settings-group .form-toggle__switch{float:left;margin-top:2px}.jp-form-settings-group>.dops-card:first-child{margin-bottom:0}.dops-foldable-card .jp-form-settings-group .dops-card{padding:0;box-shadow:none}.jp-apps-card{margin-top:4rem;margin-bottom:0}.jp-apps-card__content{margin-bottom:0}.jp-apps-card__content.dops-card{padding:0}.jp-apps-card__content a:not(.dops-button){font-style:italic}.jp-apps-card__top{padding:2.5rem 0 0;background:#ffffff;text-align:center}.jp-apps-card__top img{max-width:40%;padding-top:10px}.jp-apps-card__top svg{position:relative;display:block;max-width:40%;margin:0 auto -2.625rem;z-index:3}.jp-apps-card__clouds{position:relative;overflow:hidden;padding-top:2.75rem;z-index:2}.jp-apps-card__clouds img{position:absolute;bottom:-1px;left:-2%;right:-2%;width:104%;height:auto}.jp-apps-card__description{max-width:80%;margin:0 auto;padding:1.5rem;font-size:.875rem;line-height:1.65;color:#537994;text-align:center}.jp-apps-card__description .dops-button{margin:8px 0}.jp-apps-card__header{margin-top:0;font-weight:500}.jp-apps-card__promo_subhead{font-style:italic}.jp-themes-card{margin-bottom:1.25rem}.jp-themes-card .jp-apps-card__top{padding:3.75rem 0 0}.jp-themes-card .jp-apps-card__description{max-width:81%;padding-top:.625rem}.jp-themes-card .jp-apps-card__header{margin-bottom:.3125rem}.jp-themes-card .jp-apps-card__promo_subhead{margin-top:0}.jp-dialogue-full__container{box-sizing:border-box;position:absolute;top:0;right:0;bottom:0;left:0;z-index:100;background:rgba(243,246,248,0.95);text-align:center;padding:2rem}.jp-dialogue{text-align:center;max-width:37.5rem;margin:0 auto 2rem;overflow:hidden}@media (max-width: 660px){.jp-dialogue{text-align:left}}.jp-dialogue p{font-size:.875rem;color:#537994}.jp-dialogue img{max-width:100%}.jp-dialogue p+img{margin:2rem 0 1rem}.jp-dialogue .dops-card{margin-bottom:0}.jp-dialogue .jp-dialogue-card__below{text-align:left}.jp-dialogue-full__dismiss{cursor:pointer;position:absolute;right:-10px;top:-10px;fill:#87a6bc;padding:1rem;height:1.5rem;width:1.5rem}.jp-dialogue__title{font-weight:300;text-align:center;font-size:1.5rem;margin-bottom:2rem}.jp-dialogue__note,a.jp-dialogue__note{margin:0;padding:1rem 0 0;font-size:.875rem;clear:both;font-style:italic}.jp-dialogue-full__svg-jupiter{position:absolute;right:0;top:5rem;opacity:.90}.jp-dialogue-full__svg-stars{position:absolute;left:6.25rem;top:6.25rem;opacity:.90}.jp-dialogue__cta-container{padding:.5rem 0 0}.jp-upgrade-notice__enable-module{margin-bottom:calc(1em + 8px)}.jp-upgrade-notice__enable-module .jp-form-settings-group{margin:0px auto;max-width:400px;text-align:left}.jp-upgrade-notice__enable-module .jp-form-has-child{padding:10px;padding-right:30px}.jp-upgrade-notice__enable-module .jp-support-info{top:.9375rem;right:.9375rem}.jp-welcome-new-plan{overflow:initial}.jp-welcome-new-plan__button{margin-top:1.5rem}img.jp-welcome__svg{margin:2.5rem auto 0;max-width:15rem}.jp-at-a-glance{margin-bottom:3rem}.jp-at-a-glance__stats-card{padding:0}.jp-at-a-glance__stats-empty{text-align:center;margin-bottom:0}.jp-at-a-glance__stats-empty p{font-size:.875rem;color:#537994}.jp-at-a-glance__stats-inactive{padding:1rem}@media (min-width: 661px){.jp-at-a-glance__stats-inactive{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}}@media (max-width: 660px){.jp-at-a-glance__stats-inactive-icon{display:none}}@media (min-width: 661px){.jp-at-a-glance__stats-inactive-icon{-ms-flex-preferred-size:10%;flex-basis:10%}}.jp-at-a-glance__stats-inactive-text{font-size:.875rem;line-height:1.5}@media (max-width: 660px){.jp-at-a-glance__stats-inactive-text{padding:0 0 1rem}}@media (min-width: 661px){.jp-at-a-glance__stats-inactive-text{-ms-flex-preferred-size:50%;flex-basis:50%;padding:0 1rem}}.jp-at-a-glance__stats-inactive-button{text-align:left}@media (min-width: 661px){.jp-at-a-glance__stats-inactive-button{-ms-flex-preferred-size:40%;flex-basis:40%;text-align:right}}.jp-at-a-glance__stats-chart{padding:1rem;position:relative}.jp-at-a-glance__stats-chart .dops-spinner{position:absolute;top:50%;left:50%}.jp-at-a-glance__stats-bottom{margin:2rem 0 0}@media (max-width: 480px){.jp-at-a-glance__stats-bottom{box-shadow:0 0 0 1px rgba(200,215,225,0.5),0 1px 2px #e9eff3}}.jp-at-a-glance__stats-summary{text-align:center;border-top:1px #f3f6f8 solid}@media (min-width: 661px){.jp-at-a-glance__stats-summary{-ms-flex-wrap:nowrap;flex-wrap:nowrap;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}}@media (max-width: 660px){.jp-at-a-glance__stats-summary{display:block}}.jp-at-a-glance__stats-summary-today,.jp-at-a-glance__stats-summary-bestday{-ms-flex-preferred-size:25%;flex-basis:25%;padding:1rem;box-shadow:0 0 0 1px rgba(200,215,225,0.5),0 1px 2px #e9eff3}@media (max-width: 660px){.jp-at-a-glance__stats-summary-today{margin-top:-.0625rem}}@media (min-width: 661px){.jp-at-a-glance__stats-summary-bestday{margin:0 .0625rem}}@media (max-width: 660px){.jp-at-a-glance__stats-summary-bestday,.jp-at-a-glance__stats-summary-alltime{margin-top:.0625rem}}.jp-at-a-glance__stats-summary-alltime{-ms-flex-preferred-size:50%;flex-basis:50%;padding:1rem;box-shadow:0 0 0 1px rgba(200,215,225,0.5),0 1px 2px #e9eff3}@media (min-width: 661px){.jp-at-a-glance__stats-summary-alltime{max-width:40%;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}}.jp-at-a-glance__stats-alltime-views,.jp-at-a-glance__stats-alltime-comments{-ms-flex-preferred-size:50%;flex-basis:50%}.jp-at-a-glance__stats-cta{padding:1rem;background-color:#fafbfc}@media (min-width: 661px){.jp-at-a-glance__stats-cta{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:center;align-items:center}}@media (max-width: 660px){.jp-at-a-glance__stats-cta{display:block}}@media (min-width: 661px){.jp-at-a-glance__stats-cta-description{-ms-flex-preferred-size:30%;flex-basis:30%}}.jp-at-a-glance__stat-details{margin:0}.jp-at-a-glance__stat-number{font-size:1.375rem;font-weight:400;margin:.5rem 0}@media (min-width: 661px){.jp-at-a-glance__stats-cta-buttons{text-align:right;-ms-flex-preferred-size:70%;flex-basis:70%}}@media (max-width: 660px){.jp-at-a-glance__stats-cta-buttons{text-align:center}.jp-at-a-glance__stats-cta-buttons .dops-button{width:100%;margin-bottom:.25rem}}.jp-at-a-glance__stats-cta-buttons .dops-button{text-align:center;margin:.25rem}.jp-at-a-glance__stats-views{margin-top:0;margin-bottom:0}.jp-at-a-glance__stats-view{display:inline-block;margin-top:0;margin-bottom:0;margin-left:1rem}.jp-at-a-glance__stats-view:focus{outline:0}@media (max-width: 480px){.jp-at-a-glance__stats-view{margin-left:0;margin-right:1rem}}.jp-at-a-glance__stats-view-link,.jp-at-a-glance__stats-view-link:visited{color:#87a6bc;text-decoration:underline}.jp-at-a-glance__stats-view-link.is-current,.jp-at-a-glance__stats-view-link:visited.is-current,.jp-at-a-glance__stats-view-link:focus.is-current,.jp-at-a-glance__stats-view-link:visited.is-current,.jp-at-a-glance__stats-view-link:visited:visited.is-current,.jp-at-a-glance__stats-view-link:visited:focus.is-current{color:#23282d;text-decoration:none}.jp-at-a-glance__stats-view-link:focus{outline:0;box-shadow:none}.jp-at-a-glance__item-grid{display:-ms-flexbox;display:flex}@media (max-width: 660px){.jp-at-a-glance__item-grid{display:block}}.jp-at-a-glance__left,.jp-at-a-glance__right{display:-ms-flexbox;display:flex;min-width:0}@media (min-width: 661px){.jp-at-a-glance__left,.jp-at-a-glance__right{-ms-flex-preferred-size:50%;flex-basis:50%;margin-bottom:1rem}}@media (max-width: 660px){.jp-at-a-glance__left,.jp-at-a-glance__right{margin-bottom:.75rem}}.jp-at-a-glance__left>div,.jp-at-a-glance__left .jp-dash-item,.jp-at-a-glance__right>div,.jp-at-a-glance__right .jp-dash-item{min-width:0;-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.jp-at-a-glance__left>div,.jp-at-a-glance__right>div{-ms-flex-preferred-size:100%;flex-basis:100%}.jp-at-a-glance__left .jp-dash-item .dops-card,.jp-at-a-glance__right .jp-dash-item .dops-card{-ms-flex-positive:1;flex-grow:1}.jp-at-a-glance__left .jp-dash-item .dops-card.is-compact,.jp-at-a-glance__right .jp-dash-item .dops-card.is-compact{-ms-flex-positive:0;flex-grow:0}.jp-at-a-glance__left .jp-dash-item .dops-card.is-compact a.dops-notice__action,.jp-at-a-glance__right .jp-dash-item .dops-card.is-compact a.dops-notice__action{margin-left:0;padding-left:0}@media (max-width: 480px){.jp-at-a-glance__left .jp-dash-item .dops-card.is-compact a.dops-notice__action,.jp-at-a-glance__right .jp-dash-item .dops-card.is-compact a.dops-notice__action{text-transform:none}}.jp-at-a-glance__left .jp-dash-item__card,.jp-at-a-glance__right .jp-dash-item__card{display:-ms-flexbox;display:flex}.jp-search-config-aag{width:100%}.jp-at-a-glance__left{display:-ms-flexbox;display:flex}@media (min-width: 661px){.jp-at-a-glance__left{margin-right:1rem}.jp-at-a-glance__left:last-child{-ms-flex-preferred-size:calc( 50% - .5rem);flex-basis:calc( 50% - .5rem)}}.dops-chart__tooltip .tip-arrow{display:none}.jp-connection-type .jp-dash-item__card{-ms-flex-align:start;align-items:flex-start}.jp-connection-settings__info{display:-ms-flexbox;display:flex}.jp-connection-settings__actions{margin:1em 0 0}.jp-connection-settings__actions a{cursor:pointer}.jp-connection-settings__text{width:70%;margin-left:1rem;word-break:break-word}.jp-connection-settings__info .gridicon{opacity:.6}.jp-connection-settings__info .gridicon,.jp-connection-settings__info .jp-connection-settings__site-icon{background:#c8d7e1;color:#fff;min-width:4rem}.jp-connection-settings__info .jp-connection-settings__gravatar{display:inline-block;min-width:4rem;background:#87a6bc;border-radius:50%;margin-bottom:0}.jp-connection-settings__username{font-weight:600}.jp-connection-settings__email{color:#87a6bc;font-size:.8125rem;font-style:italic;font-weight:400}.jp-connection-settings__modal.dops-modal{max-width:450px}.jp-connection-settings__modal-body{margin:0;padding:1.5rem 2rem;font-size:.875rem;color:#2e4453;text-align:center}.jp-connection-settings__modal-body h2{margin:2rem 0 1.5rem;font-size:2rem;font-weight:300;color:#2e4453}.jp-connection-settings__modal-body h4{margin:1rem 1.5rem 0;font-size:1rem;font-weight:400;line-height:1.5em;color:#668eaa}.jp-connection-settings__modal-body p{font-size:.875rem}.jp-connection-settings__modal-body ul{margin:1.5rem 0 2.25rem;color:#537994}.jp-connection-settings__modal-body li{position:relative;display:block;margin:0;padding:1rem .5rem 1rem 2.75rem;border-bottom:1px solid #d9e3ea;text-align:left}.jp-connection-settings__modal-body li:first-of-type{border-top:1px solid #d9e3ea}.jp-connection-settings__modal-body .gridicon{position:absolute;left:1rem;top:1rem;vertical-align:text-bottom;color:#537994}.jp-connection-settings__modal-cancel{margin-right:1em}.jp-connection-settings__modal-more a{color:#0087be;text-decoration:underline}.jp-dash-item__manage-in-wpcom{margin-top:1px;width:100%}.jp-landing__plans.dops-card{padding:0}.jp-landing__plans .dops-button{margin-right:10px}@media (min-width: 661px){.plans-mobile-notice{display:none}}.plans-mobile-notice .dops-button:first-of-type{margin-right:6px;margin-bottom:6px}.plans-mobile-notice.dops-card h2{margin-top:0}.jp-landing-plans__header{background:#2e4453}@media (min-width: 661px){.jp-landing-plans__header{padding:2rem 0 0}}@media (max-width: 660px){.jp-landing-plans__header{padding:2rem}}.jp-landing-plans__header-img-container{margin:2rem 0 0;overflow:hidden}@media (min-width: 661px){.jp-landing-plans__header-img-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}}@media (max-width: 660px){.jp-landing-plans__header-img-container{margin-bottom:0}}.jp-landing-plans__header-img{max-width:100%}.jp-landing-plans__header-col-left{-ms-flex-preferred-size:45%;flex-basis:45%}@media (min-width: 661px){.jp-landing-plans__header-col-left{padding-left:2rem}}.jp-landing-plans__header-col-right{-ms-flex-preferred-size:55%;flex-basis:55%}@media (min-width: 661px){.jp-landing-plans__header-col-right{padding:0 2rem}}@media (max-width: 660px){.jp-landing-plans__header-col-right{text-align:center;padding-top:2rem}}.jp-landing-plans__clouds{position:relative;overflow:hidden;padding-top:5rem}.jp-landing-plans__clouds img{position:absolute;bottom:-2px;left:-5%;right:-5%;height:auto;width:110%}@media (max-width: 660px){.jp-landing-plans__clouds{display:none}}.jp-landing-plans__header-img{max-width:100%}.jp-landing-plans__header-col-left{-ms-flex-preferred-size:45%;flex-basis:45%}@media (min-width: 661px){.jp-landing-plans__header-col-left{padding-left:2rem}}.jp-landing-plans__header-col-right{-ms-flex-preferred-size:55%;flex-basis:55%}@media (min-width: 661px){.jp-landing-plans__header-col-right{padding:0 2rem}}@media (max-width: 660px){.jp-landing-plans__header-col-right{text-align:center}}.jp-landing-plans__header-title,.jp-landing-plans__header-description{line-height:1.5}@media (min-width: 661px){.jp-landing-plans__header-title,.jp-landing-plans__header-description{text-align:center}}.jp-landing-plans__header-title,.jp-landing-plans__header-subtitle{color:#fff;font-weight:400;margin:0}.jp-landing-plans__header-title{font-size:1.25rem}.jp-landing-plans__header-description{font-size:.875rem;margin:0;padding-bottom:1rem}.jp-landing-plans__header-subtitle{font-size:1rem;line-height:1.25}.jp-landing-plans__header-description,.jp-landing-plans__header-text{color:#a8bece}.jp-landing-plans__header-text{font-size:.875rem;padding:1.5rem 0;margin:0}.jp-landing-plans__header-btn-container{margin:0}.jp-landing__plan-features-card{box-shadow:0 0 0 1px rgba(200,215,225,0.5),0 1px 2px #e9eff3;border-radius:3px}@media (min-width: 661px){.jp-landing__plan-features-card{margin-bottom:2rem}}@media (max-width: 660px){.jp-landing__plan-features-card{margin-bottom:1rem}}@media (min-width: 481px){.jp-landing__plan-features-card{padding:2rem}}@media (max-width: 480px){.jp-landing__plan-features-card{padding:1rem}}.jp-landing__plan-features-card:last-of-type{margin-bottom:0}.jp-landing__plan-features-title{margin:0}@media (min-width: 661px){.jp-landing__plan-features{padding:0 2rem 2rem}}@media (max-width: 660px){.jp-landing__plan-features{padding:1rem}}@media (min-width: 661px){.jp-landing__plan-card{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap}}@media (min-width: 661px){.jp-landing__plan-card{padding:2rem}}@media (max-width: 660px){.jp-landing__plan-card{padding:2rem 2rem 1rem}}.jp-landing__plan-card .jp-landing__plan-features-title,.jp-landing__plan-card .jp-landing__plan-features-text{padding:0}@media (min-width: 661px){.jp-landing__plan-card .jp-landing__plan-features-title,.jp-landing__plan-card .jp-landing__plan-features-text{margin-left:2rem}}.jp-landing__plan-card .jp-landing__plan-features-title{margin-bottom:1rem}@media (max-width: 660px){.jp-landing__plan-card-img{margin:0 0 2rem 0}}@media (max-width: 480px){.jp-landing__plan-card-img{width:100%;max-width:100%;text-align:center}}.jp-landing__plan-icon{width:12.5rem}.jp-landing__plan-card-img.is-placeholder{width:7.5rem;height:5.3125rem}.jp-landing__plan-card-img.is-placeholder+.jp-landing__plan-card-current{width:80%}.jp-landing__plan-features-title.is-placeholder{height:1.5rem;max-width:50%}.jp-landing__plan-features-text.is-placeholder{height:2.75rem;max-width:75%}.plan-features__content{margin:0 -16px 16px;padding-top:20px}.is-section-plans .plan-features__mobile{display:block}@media (min-width: 752px){.is-section-plans .plan-features__mobile{display:none}}.plan-features__notice{margin-bottom:16px}@media (min-width: 1041px){.plan-features__notice{margin-bottom:32px;margin-top:-19px}}.is-section-plans .plan-features__table{display:table}.plan-features__table{font-size:14px;color:#537994;border-spacing:16px 0;margin-top:-16px;display:table;table-layout:fixed;width:100%;text-align:center}@media (min-width: 661px){.plan-features__table{display:table}}@media (max-width: 660px){.plan-features__table{display:none}}@media (max-width: 1040px){.plan-features__table{border-spacing:0;margin:0 15px;width:calc( 100% - 30px)}}.plan-features__row{background:#fff}.plan-features__table-item{border-right:solid 1px #dfe8ed;border-left:solid 1px #dfe8ed;background-color:#fff;position:relative}.plan-features__table-item.is-header{vertical-align:top}.plan-features__table-item.is-personal-plan{border-bottom:solid 2px #f0b849}.plan-features__table-item.is-premium-plan{border-bottom:solid 2px #4ab866}.plan-features__table-item.is-business-plan{border-bottom:solid 2px #855DA6}.plan-features__table-item.is-highlighted{border:1px solid #0087be;background-color:rgba(0,135,190,0.1);position:relative;top:-1px}.plan-features__table-item.is-highlighted.has-partial-border::after{display:none}.plan-features__table-item.is-selected{display:table-cell}.plan-features__table-item.has-partial-border::after{content:'';display:block;height:1px;width:calc( 100% - 24px);border-bottom:1px solid #dfe8ed;position:absolute;bottom:0;margin:0 12px}.plan-features__table-item.has-border-bottom{border-bottom:solid 1px #dfe8ed}.plan-features__table-item.has-border-top{border-top:solid 1px #dfe8ed}.plan-features__table-item.is-placeholder .spinner-line{margin:0;position:absolute;top:-3px;width:100%}.plan-features__table-item.is-bottom-buttons{padding-top:33px;padding-bottom:15px}.plan-features__table-item.is-top-buttons{padding-top:8px;padding-bottom:16px}.plan-features__header{position:relative;padding:15px 15px 0 15px;background-color:#fff}@media (max-width: 960px){.plan-features__header{padding:12px 12px 0 12px}}.plan-features__header-title{font-size:22px;line-height:0.7;font-weight:normal;margin:0}@media (max-width: 960px){.plan-features__header-title{font-size:20px}}.info-popover.plan-features__header-tip-info{position:relative;top:4px;left:3px;margin-top:-10px;margin-bottom:-10px;display:inline-block}.plan-features__description{margin:0;padding:12px 0}.plan-features__item{margin:0 12px;padding:12px 0;font-size:13px;color:#2e4453;text-align:center}@media (max-width: 960px){.plan-features__item{font-size:12px}}@media (max-width: 1040px){.plan-features__item{margin:0 12px}}.plan-features__item-description{display:inline-block;margin-left:10px;color:#87a6bc}.plan-price{padding-top:15px;padding-bottom:15px}.plan-price__yearly{color:#2e4453}.dops-search__input[type="search"]{width:100%}.jp-settings-container .jp-no-results{display:none;font-size:.875rem;line-height:1.5}.jp-settings-container .jp-no-results:last-of-type{display:inherit}@media (max-width: 480px){.dops-search.is-expanded-to-container{height:46px}}
1
  /* Do not modify this file directly. It is compiled SASS code. */
2
+ @media (max-width: 660px){.jp-hidden-on-mobile{display:none}}.jetpack-pagestyles #wpcontent{padding-left:0}.wp-admin.toplevel_page_jetpack{background-color:#f3f6f8;line-height:1.4;height:auto}.jetpack-pagestyles a{text-decoration:none}.dops-notice__text a{text-decoration:underline}.jetpack-pagestyles #dolly{float:none;position:relative;right:0;left:0;top:0;padding:.625rem;text-align:right;background:#fff;font-size:.75rem;font-style:italic;color:#87a6bc;border-bottom:1px #e9eff3 solid}@media (max-width: 660px){.jetpack-pagestyles #dolly{display:none}}.toplevel_page_jetpack ul#adminmenu a.wp-has-current-submenu:after{border-right-color:#f3f6f8}.jp-lower{margin:0 auto;text-align:left;max-width:45rem;padding:1.5rem}#contextual-help-link-wrap{display:none}.is-placeholder{animation:pulse-light 0.8s ease-in-out infinite;background:#c8d7e1}@keyframes pulse-light{50%{background-color:#e9eff3}}.jp-dash-item .jp-dash-item__content a{font-style:italic}.jp-dash-item .dops-section-header__card-badge .dops-button{background:none;border-bottom-width:1px}.jp-dash-item .dops-section-header__card-badge .dops-button:hover{background:#fff}.jp-dash-item .dops-section-header__actions .form-toggle__label{position:relative;top:6px;right:0}.jp-dash-item .dops-section-header__actions .form-toggle__label-content{margin:0}.jp-dash-item__content{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:start;align-items:flex-start}.jp-dash-item__card{margin:0}.jp-dash-item__count{margin-top:0;margin-bottom:6px;margin-right:8px;color:#00aadc;font-weight:500;font-size:2rem;display:inline-block;border:1px solid #CBD7E1;border-radius:4px;padding:0px 4px;min-width:36px;text-align:center}@media (max-width: 660px){.jp-dash-item__count{font-size:1.4375rem}}.jp-dash-item__count+.jp-dash-item__description{max-width:61%}.jp-dash-item__description{margin:0;font-size:.875rem;max-width:calc( 100% - 18px)}.jp-dash-item .dops-section-header{width:100%}.jp-dash-item .dops-section-header .dops-button{font-style:normal}.jp-dash-item .dops-section-header.is-working .dops-section-header__actions,.jp-dash-item .dops-section-header.is-premium-inactive .dops-section-header__actions{color:#537994}.jp-dash-item .dops-section-header__actions .dops-notice{margin-top:.125rem}.jp-dash-item__active-label{display:inline-block;padding:.375rem 0;color:#668eaa;color:#87a6bc;font-size:.75rem;font-weight:400;text-transform:uppercase}.jp-dash-item__is-inactive .dops-card{background-color:#f3f6f8}.jp-dash-item__is-inactive .dops-section-header__label{padding-right:.5rem}.jp-dash-item__is-inactive .dops-section-header__label-text:before{content:'';display:block;position:absolute;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;background:linear-gradient(to right, rgba(243,246,248,0), #f3f6f8 90%);top:0px;bottom:0px;right:0px;left:auto;width:8px;height:auto}.jp-dash-item__is-inactive .jp-dash-item__description{font-style:italic;color:#4f748e}.jp-dash-item__disabled{opacity:.5;position:relative}.jp-dash-item__disabled::before{content:"";width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:1}.jp-dash-item__recently-activated .jp-dash-item__description{font-style:italic;box-sizing:border-box}.jp-dash-section-header{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:2.5rem 0 .5rem}@media (max-width: 660px){.jp-dash-section-header{margin-bottom:1.5rem}}@media (max-width: 480px){.jp-dash-section-header{display:block}}.jp-dash-section-header__label{-ms-flex:1;flex:1;white-space:nowrap}.jp-dash-section-header__name{display:inline-block;margin-top:0;margin-bottom:0;font-size:1.25rem;font-weight:400;white-space:nowrap}@media (min-width: 481px){.jp-dash-section-header__name{display:inline-block}}@media (max-width: 480px){.jp-dash-section-header__name .jp-dash-section-header__label{display:inline-block}}.jp-dash-section-header__settings{display:inline-block;min-width:2.5rem;text-align:center;color:#668eaa}.jp-dash-section-header__settings:focus{outline:0;box-shadow:none}.jp-dash-section-header__settings:focus .gridicon{color:#0087be}.jp-dash-section-header__settings .gridicon{position:relative;top:1px}.jp-dash-section-header__external-link{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center;font-style:italic}@media (max-width: 660px){.jp-dash-section-header__external-link{margin-top:.25rem}}@media (max-width: 480px){.jp-dash-section-header__external-link{display:block;width:100%}}.jp-dash-section-header__children{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}@media (max-width: 480px){.jp-dash-section-header__children{width:100%}}.dops-foldable-card.dops-card.devmode-disabled .dops-foldable-card__summary,.dops-foldable-card.dops-card.devmode-disabled .dops-foldable-card__summary_expanded{width:100px}.dops-foldable-card.dops-card.is-expanded .dops-foldable-card__content{position:relative;padding-right:2.9375rem;padding-left:1.5rem}@media (min-width: 661px){.dops-foldable-card__main{max-width:85%}}@media (min-width: 481px){.dops-foldable-card__main{max-width:60%}}@media (max-width: 480px){.dops-foldable-card__main{-ms-flex-preferred-size:100%;flex-basis:100%}}@media (max-width: 480px){.dops-foldable-card__header{-ms-flex-wrap:wrap;flex-wrap:wrap}}@media (max-width: 480px){.dops-foldable-card__header-text{font-size:.875rem}}.dops-foldable-card__header-text .dops-button{margin-left:.5rem}@media (max-width: 480px){.dops-foldable-card__subheader{display:none}}@media (max-width: 480px){.dops-foldable-card.has-expanded-summary .dops-foldable-card__summary,.dops-foldable-card.has-expanded-summary .dops-foldable-card__summary_expanded{text-align:left;margin-top:.5rem}}.jp-footer{text-align:center;margin:1rem 0 2rem}@media (max-width: 1040px){.jp-footer{margin:2rem 0 1.5rem}}@media (max-width: 660px){.jp-footer{margin:1.5rem 0 1rem}}.jp-footer__a8c-attr-container{margin-bottom:.5rem}.jp-footer__a8c-attr{width:11.25rem}.jp-footer__a8c-attr path{fill:#668eaa}.jp-footer__links{border-top:1px #d9e3ea solid;border-bottom:1px #d9e3ea solid;margin-top:0;margin-bottom:1rem}@media (max-width: 660px){.jp-footer__links{border-bottom:none}}.jp-footer__link-item{display:inline-block;margin-bottom:0}@media (min-width: 661px){.jp-footer__link-item{display:inline-block}}@media (max-width: 660px){.jp-footer__link-item{display:block;border-bottom:1px #d9e3ea solid}}.jp-footer__link{padding:1rem .5rem;color:#668eaa;display:inline-block;cursor:pointer}.jp-footer__link:visited{color:#668eaa}.jp-footer__link:hover,.jp-footer__link:active{color:#1c2932}@media (max-width: 660px){.jp-footer__link{display:block;padding:.5rem 0;border-bottom:1px #d9e3ea solid}.jp-footer__link:last-of-type{border-bottom:none}}.jp-dev-card.jp-dev-card{position:fixed;bottom:10px;right:10px;z-index:100;padding:8px;font-size:12px;text-align:left}.jp-dev-card.jp-dev-card ul{margin-top:6px}.jp-dev-card.jp-dev-card li{margin-top:2px;margin-bottom:0}.jp-dev-card__heading{font-weight:600}.jp-dev-card__subheading{font-size:11px;color:#668eaa}.jp-dev-card__close{float:right;cursor:pointer}.jp-loading-placeholder{margin-top:30vh;margin-bottom:25vh;color:#c8d7e1;font-size:12vw;text-align:center}@media (min-width: 961px){.jp-loading-placeholder{font-size:120px}}.jp-loading-placeholder .dashicons{font-size:inherit;width:auto;height:auto}.jp-jetpack-connect__container{text-align:center}.jp-jetpack-connect__container .dops-section-header__label{margin:.0625rem;padding:1rem;font-size:1rem;font-weight:400;border-bottom:1px #e9eff3 solid}.jp-jetpack-connect__container .jp-banner__tos-blurb{font-size:.6875rem;color:#2e4453;padding-top:5px;margin-bottom:30px}@media (max-width: 660px){.jp-jetpack-connect__cta{text-align:left}}.jp-jetpack-connect__cta .jp-jetpack-connect__description{padding:0 0 1rem;margin-top:20px;margin-bottom:10px}.jp-jetpack-connect__container-title,.jp-jetpack-connect__container-subtitle{font-weight:400}.jp-jetpack-connect__container-subtitle:first-of-type{margin:0;padding:1rem}@media (min-width: 661px){.jp-jetpack-connect__container-subtitle{font-size:1.25rem}}@media (max-width: 660px){.jp-jetpack-connect__container-subtitle{text-align:left}}.jp-jetpack-connect__description{padding:1rem;font-size:1rem}@media (min-width: 961px){.jp-jetpack-connect__description{padding:0 10%;margin-bottom:2rem}}@media (max-width: 660px){.jp-jetpack-connect__description{font-size:.875rem;text-align:left;margin-top:0;padding:1rem 0}}.jp-jetpack-connect__link{font-style:italic}.jp-jetpack-connect__button{margin:0 0 .75rem}.jp-jetpack-connect__feature{padding:0}.jp-jetpack-connect__header{position:relative}@media (min-width: 961px){.jp-jetpack-connect__header:first-of-type{background:transparent url("../../images/long-clouds.svg") 50% 110% no-repeat;background-size:100% 63px;padding-bottom:3.125rem}}@media (max-width: 960px){.jp-jetpack-connect__header:first-of-type{border-bottom:1px #e9eff3 solid;background-image:none}}@media (min-width: 961px){.jp-jetpack-connect__header{padding-top:1rem}}@media (max-width: 660px){.jp-jetpack-connect__header .jp-jetpack-connect__description{padding:0 1rem 1rem}}.jp-jetpack-connect__header-img-container{position:absolute;left:0;right:0;bottom:0}@media (max-width: 960px){.jp-jetpack-connect__header-img-container{display:none}}.jp-jetpack-connect__header-img{margin:0 auto;max-width:100%;z-index:1001;position:absolute;left:0;right:0;bottom:0}@media (min-width: 961px){.jp-jetpack-connect__header-img:first-of-type{bottom:-15px}}.jp-jetpack-connect__header-img:last-of-type{z-index:999}@media (min-width: 961px){.jp-jetpack-connect__traffic .jp-jetpack-connect__header:first-of-type{padding-bottom:12.5rem;background:url("../../images/stars-right.svg") no-repeat,url("../../images/stars-left.svg") no-repeat,#fff;background-position:95% 50%, 5% 50%;background-size:100px, 125px}}.jp-jetpack-connect__interior-container{padding:1rem;background:#f3f6f8}@media (min-width: 961px){.jp-jetpack-connect__interior-container{padding:1.5rem 1rem 1rem}}@media (max-width: 960px){.jp-jetpack-connect__interior-container .jp-jetpack-connect__container-subtitle{padding:1rem 0 0}}@media (min-width: 661px){.jp-jetpack-connect__interior-container .jp-jetpack-connect__container-subtitle{margin-top:1.5rem}}.jp-jetpack-connect__feature-list{margin:0;padding:0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}@media (min-width: 961px){.jp-jetpack-connect__feature-list{margin-top:1rem}}@media (min-width: 661px){.jp-jetpack-connect__feature-list{-ms-flex-wrap:nowrap;flex-wrap:nowrap}}@media (max-width: 660px){.jp-jetpack-connect__feature-list{margin:-.5rem -1rem 0}}.jp-jetpack-connect__feature-list-column{box-shadow:0 0 0 1px rgba(200,215,225,0.5),0 1px 2px #e9eff3;text-align:left;background:#fff}@media (min-width: 661px){.jp-jetpack-connect__feature-list-column{-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;-ms-flex-preferred-size:33%;flex-basis:33%}}@media (max-width: 660px){.jp-jetpack-connect__feature-list-column{-ms-flex-preferred-size:100%;flex-basis:100%;margin-bottom:.5rem}}.jp-jetpack-connect__feature-content{padding:1rem}.jp-jetpack-connect__feature-content-title{margin:0}.jp-jetpack-connect__feature-image{max-width:100%;margin:0 auto}@media (max-width: 480px){.dops-notice ul{font-size:.75rem}}.jp-jumpstart{text-align:center;max-width:37.5rem;margin:0 auto 2rem}@media (max-width: 660px){.jp-jumpstart{text-align:left}}.jp-jumpstart__cta-container{position:relative;padding:0}.jp-jumpstart__cta-container .dops-spinner{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(255,255,255,0.85);z-index:1001}.jp-jumpstart__cta-container .dops-spinner__image{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}.jp-jumpstart__title{font-weight:300;text-align:center;font-size:1.5rem;margin-bottom:2rem}.jp-jumpstart__description{margin-bottom:0}.jp-jumpstart__description p{margin:0;font-size:.875rem;color:#537994}.jp-jumpstart__feature-heading{margin-top:0;margin-bottom:1.5rem;font-size:1rem;font-weight:400}.jp-jumpstart__features{margin:0;padding:1rem}.jp-jumpstart__features.dops-foldable-card{box-shadow:none}.jp-jumpstart__features.dops-foldable-card.is-expanded{margin-bottom:0}.jp-jumpstart__features .dops-foldable-card__header,.jp-jumpstart__features.dops-foldable-card.is-expanded .dops-foldable-card__header{min-height:auto}.jp-jumpstart__features .dops-foldable-card__main{max-width:100%;margin-right:0}.jp-jumpstart__features .dops-foldable-card__secondary{display:none}.jp-jumpstart__features .dops-foldable-card__subheader{color:#0087be;font-style:italic}.jp-jumpstart__features .dops-foldable-card__content{background-color:#fafbfc}.jp-jumpstart__feature-list{margin:0 0 1.5rem;padding:0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}@media (max-width: 660px){.jp-jumpstart__feature-list{margin:0 -1rem 1.5rem}}.jp-jumpstart__feature-list-column{box-shadow:0 0 0 1px rgba(200,215,225,0.5),0 1px 2px #e9eff3;text-align:left;background:#fff}@media (min-width: 661px){.jp-jumpstart__feature-list-column{-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;-ms-flex-preferred-size:50%;flex-basis:50%}}@media (max-width: 660px){.jp-jumpstart__feature-list-column{-ms-flex-preferred-size:100%;flex-basis:100%}}.jp-jumpstart__feature-content{padding:1rem}.jp-jumpstart__feature-content p{margin-top:.5rem;margin-bottom:0}.jp-jumpstart__feature-content-title{margin:0}.jp-jumpstart__note{margin:0;padding:1rem 0 0;font-size:.875rem;clear:both;font-style:italic}.jp-masthead{background-color:#fff;text-align:center;box-shadow:0 1px 0 rgba(200,215,225,0.5),0 1px 2px #e9eff3}@media (max-width: 48.875rem){.jp-masthead{padding:0 1.5rem}.jetpack-masterbar .jp-masthead{padding-left:4rem}}.jp-masthead__inside-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:0 auto;width:100%;max-width:45rem;padding-bottom:.375rem}.jp-masthead__logo-container{-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;padding:.6875rem 0 0}@media (max-width: 480px){.jp-masthead__logo-container{margin-right:1rem}}.jp-masthead__logo-link{display:inline-block;outline:none;vertical-align:middle}.jp-masthead__logo-link:focus{line-height:0;box-shadow:0 0 0 2px #78dcfa}.jp-masthead__logo-link+code{margin:0 10px;padding:5px 9px;border-radius:2px;background:#e6ecf1;color:#647a88}.jp-masthead__nav{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;text-align:right;margin-top:.375rem;padding:.25rem 0}.jp-masthead__nav .dops-button-group{-ms-flex-positive:1;flex-grow:1;-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}@media (max-width: 480px){.jp-masthead__nav{text-align:left}}.jp-module-settings__external-link{font-size:.875rem}.jp-module-settings__read-more{clear:both;margin-top:1rem}@media (min-width: 481px){.jp-module-settings__read-more{margin-top:2rem}}.jp-module-settings__read-more .dops-button.is-compact.is-borderless,.jp-module-settings__read-more .jp-module-settings__more-text{vertical-align:middle}.jp-related-posts-preview{position:relative;margin-top:.5rem;padding:1rem .5rem;width:100%;background:#f3f6f8;box-sizing:border-box;box-shadow:none}.jp-related-posts-settings__preview-label{margin-bottom:.5rem;margin-top:1.5rem;font-size:.875rem;font-weight:600}.jp-related-posts-preview__title{margin:0 0 .6875rem .5rem;font-size:.6875rem;font-weight:600}.jp-related-posts-preview__post-title{font-size:.9375rem;font-weight:400;margin:0}.jp-related-posts-preview__post-context{font-size:.9375rem;opacity:.6;margin:0}.jp-related-posts-preview__item{box-sizing:border-box;display:inline-block;width:33.33%;padding:.5rem;vertical-align:top}@media (max-width: 480px){.jp-related-posts-preview__item{width:100%}}.jp-related-posts-preview__item img{max-width:100%;margin-bottom:.5rem}.jp-support-card{margin-top:1rem;margin-bottom:0}.jp-support-card__description{font-size:.875rem;line-height:1.65;color:#537994}.jp-support-card__description:first-of-type{margin-top:4px}.jp-support-card__description:last-of-type{margin-bottom:0}.jp-support-card__description .dops-button{margin:0 16px 0 0}@media (max-width: 960px){.jp-support-card__description .dops-button{margin:0 16px 8px 0}}.jp-support-card__link{font-style:italic}@media (max-width: 660px){.jp-support-card__link{display:block;width:100%;padding:.625rem 0;border-top:1px rgba(200,215,225,0.5) solid}.jp-support-card__link:first-letter{text-transform:capitalize}.jp-support-card__link:first-of-type{border-top:0}}.jp-support-card__happiness{margin-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap}@media (max-width: 660px){.jp-support-card__happiness .jp-support-card__description:first-of-type{margin-bottom:1rem}}.jp-support-card__social{background-color:#fafbfc;padding:1rem}@media (max-width: 660px){.jp-support-card__social{background:#fff;margin-top:1rem;padding:0 1rem}}.jp-support-card__header{color:#668eaa;font-weight:400;font-size:1.3125rem;margin:0}.jp-support-card__happiness-contact{-ms-flex-negative:1;flex-shrink:1;-ms-flex-positive:1;flex-grow:1}.jp-form-legend,.jp-form-label-wide{padding:1rem 0 .3125rem;font-size:.875rem;font-weight:600}.jp-form-label{display:block;font-size:.875rem;line-height:1.5;margin-bottom:.3125rem}.jp-form-label-wide{padding:.5rem 0;display:block}.jp-form-label input[type="radio"]+span{font-weight:normal;margin-left:8px}.jp-form-button{margin-top:1rem}@media (min-width: 481px){.jp-form-button{position:absolute;right:1rem;bottom:1rem}}.jp-form-toggle-explanation{font-size:.875rem;word-break:break-word;vertical-align:baseline}.jp-form-toggle-explanation .jp-form-toggle-privacy-info{margin-left:.3125rem;padding-left:.3125rem;border-left:1px solid rgba(135,166,188,0.5)}.jp-form-fieldset{clear:both;position:relative}.jp-form-fieldset .jp-form-legend+.jp-form-setting-explanation{margin-top:0;margin-bottom:.5rem}.jp-form-input-with-prefix{display:-ms-inline-flexbox;display:inline-flex;width:100%;margin-top:1.5rem}.jp-form-input-with-prefix:first-of-type{margin-top:0}.jp-form-input-with-prefix span:first-child{min-width:3.75rem;text-align:center;background:#f3f6f8;border:1px solid #c8d7e1;color:#4f748e;padding:.5rem .875rem;white-space:nowrap}.jp-form-input-with-prefix input[type="text"]{width:100%;border-left:0}.jp-form-has-child{margin-bottom:1.5rem}.jp-form-has-child:last-child{margin-bottom:0}.jp-form-has-child>.jp-form-fieldset,.jp-form-has-child>.jp-form-setting-explanation{margin-left:2.25rem}.jp-form-has-child>.jp-form-fieldset{margin-bottom:1rem}.jp-form-block-fade{position:absolute;top:0;left:0;z-index:1;background:rgba(255,255,255,0.8);width:100%;height:100%}.jp-form-devmode-message.is-compact{width:100%;padding:0 1rem;position:absolute;top:-24px;z-index:1}.react-tagsinput{border:1px solid #e9eff3;padding:.15625rem}.react-tagsinput--focused{border-color:#00aadc}.react-tagsinput-tag{background-color:#00aadc;border-radius:2px;border:1px solid #0087be;color:#fff;display:inline-block;font-size:13px;padding:.125rem .375rem .1875rem .5rem;margin:.15625rem;transition:background-color .2s ease-out}.react-tagsinput-tag:hover{background-color:#26b7e2}.react-tagsinput-remove{cursor:pointer;font-weight:bold;transition:color .2s ease-out}.react-tagsinput-remove:hover{color:#caf3ff}.react-tagsinput-tag a::before{content:" \00d7"}input[type=text].react-tagsinput-input{width:9.375rem;height:1.875rem;margin:0;padding:.3125rem;font-size:13px;vertical-align:middle;border:none;box-shadow:none}input[type=text].react-tagsinput-input::-ms-clear{display:none}.jetpack-pagestyles .vp-notice,.jetpack-pagestyles .woocommerce-message,.jetpack-pagestyles .wc-connect{display:none}.jetpack-pagestyles .vp-notice-jp a{text-decoration:underline}.jetpack-pagestyles .woocommerce-message.dops-notice{display:block;padding:0}.jetpack-pagestyles .woocommerce-message.dops-notice::before{content:''}.jetpack-pagestyles .woocommerce-message.dops-notice .submit{padding:0}.jetpack-pagestyles .woocommerce-message.dops-notice .notice-dismiss::before{display:none}.jetpack-pagestyles .woocommerce-message.dops-notice .dops-notice__text>div{max-width:620px}.jetpack-pagestyles .woocommerce-message.dops-notice .dops-notice__text>a{margin-right:15px}.jetpack-pagestyles .woocommerce-message.dops-notice .dops-notice__moved_text{margin-bottom:5px}.jetpack-pagestyles .dops-notice__action.notice-dismiss{height:100%}.jp-inline-expand.dops-card{box-shadow:none;padding:0}.jp-inline-expand .jp-inline-expand-action{font-size:.875rem;cursor:pointer}.jp-inline-expand .jp-inline-expand-action .gridicon{transition:transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275),color 0.5s ease-in;vertical-align:text-bottom;display:inline-block;margin:0 5px}.jp-inline-expand.is-expanded .jp-inline-expand-action .gridicon{-ms-transform:rotate(180deg);transform:rotate(180deg)}.jp-inline-expand.is-expanded .jp-inline-expand-content{padding:16px 0 0}.form-toggle.is-compact.is-toggling+.form-toggle__label .form-toggle__switch:before,.form-toggle.is-compact.is-toggling+.form-toggle__label .form-toggle__switch:after{left:8px}.form-toggle.is-compact.is-toggling:checked+.form-toggle__label .form-toggle__switch:before,.form-toggle.is-compact.is-toggling:checked+.form-toggle__label .form-toggle__switch:after{left:0}.dops-section-nav-tab__text .gridicon{vertical-align:middle;margin:0 0 2px 5px}.jp-settings-card__configure-link{display:-ms-flexbox;display:flex;margin-bottom:0}.jp-form-settings-card{margin-bottom:1.5rem;font-size:.875rem}.jp-form-settings-card+.jp-at-a-glance__stats-card{margin-bottom:1.5rem}.jp-form-settings-card .dops-foldable-card .dops-foldable-card__header{color:#444}@media (min-width: 481px){.jp-form-settings-card .dops-foldable-card .dops-foldable-card__header{padding-left:1.5rem}}.jp-form-settings-card .dops-foldable-card .form-toggle__switch{float:left;margin-top:.125rem}.jp-form-settings-card .dops-foldable-card .dops-foldable-card__header-text{font-size:.875rem}.jp-form-settings-card .dops-foldable-card.jp-foldable-settings-disable .dops-foldable-card__header{color:#dadada}@media (min-width: 481px){.jp-form-settings-card .dops-foldable-card .dops-foldable-card__main{max-width:85%}}.jp-form-settings-card .dops-foldable-card .dops-foldable-card__action{right:.625rem}@media (max-width: 480px){.jp-form-settings-card .dops-foldable-card .dops-foldable-card__action{right:.0625rem}}.jp-form-settings-card .dops-foldable-card .jp-support-info{right:-1.3125rem;top:.4375rem}@media (max-width: 480px){.jp-form-settings-card .dops-foldable-card .jp-support-info{right:-1.875rem}}.jp-form-settings-card .dops-foldable-card .jp-form-legend:first-child,.jp-form-settings-card .dops-foldable-card .jp-form-label-wide:first-child{padding-top:.4375rem}@media (min-width: 481px){.jp-form-settings-card .dops-foldable-card__header{padding-top:1.75rem;padding-bottom:1.75rem}}.jp-foldable-settings-standalone .dops-foldable-card__header-text{font-size:.875rem}@media (min-width: 481px){.jp-foldable-settings-standalone .dops-foldable-card__header,.jp-foldable-settings-standalone.dops-card.is-expanded .dops-foldable-card__content{padding-left:1.5rem;padding-right:1.5rem}.jp-foldable-settings-standalone .dops-foldable-card__action{right:.625rem}.jp-foldable-settings-standalone .jp-form-settings-group .jp-support-info{right:.125rem;top:0}}@media (max-width: 480px){.jp-foldable-settings-standalone .jp-form-settings-group .jp-support-info{right:-1.9375rem;top:.375rem}}.jp-banner__no-border{border-left:none !important}.jp-banner__no-border .dops-banner__icon-circle{background:none !important;padding:0 0 0 3px}.jp-banner__no-border svg.gridicon.gridicons-checkmark-circle{width:28px;height:28px;color:#4ab866}.jp-banner__no-border .dops-banner__description{font-size:.875rem;line-height:1.65;color:#537994;margin-top:0}.jp-form-settings-group{position:relative;margin-bottom:0}.jp-form-settings-group p{font-size:.875rem;margin-top:0;margin-bottom:1.5rem}.jp-form-settings-group fieldset p:last-child{margin-bottom:8px}.jp-form-settings-group .form-toggle__label{margin-top:.25rem;margin-bottom:.25rem}.jp-form-settings-group .form-toggle__switch{float:left;margin-top:2px}.jp-form-settings-group .jp-form-setting-explanation{color:#537994;display:block;margin:.3125rem .875rem .3125rem 0;font-size:.8125rem;font-style:italic;font-weight:400;word-break:break-word}.jp-form-settings-group .jp-form-setting-explanation+.dops-card{margin-top:1rem}.jp-form-settings-group .jp-form-setting-explanation a{text-decoration:underline}.dops-foldable-card .jp-form-settings-group{padding-bottom:16px}.jp-form-settings-group .dops-card{padding-right:3rem}@media (max-width: 480px){.jp-form-settings-group .jp-support-info{right:1rem;top:1.25rem}}.jp-form-settings-group .jp-support-info+p{margin-top:2px}.jp-form-settings-group .jp-support-info+span{padding-top:2px;display:block}.jp-form-settings-group .form-toggle__switch{float:left;margin-top:2px}.jp-form-settings-group>.dops-card:first-child{margin-bottom:0}.dops-foldable-card .jp-form-settings-group .dops-card{padding:0;box-shadow:none}.jp-apps-card{margin-top:4rem;margin-bottom:0}.jp-apps-card__content{margin-bottom:0}.jp-apps-card__content.dops-card{padding:0}.jp-apps-card__content a:not(.dops-button){font-style:italic}.jp-apps-card__top{padding:2.5rem 0 0;background:#ffffff;text-align:center}.jp-apps-card__top img{max-width:40%;padding-top:10px}.jp-apps-card__top svg{position:relative;display:block;max-width:40%;margin:0 auto -2.625rem;z-index:3}.jp-apps-card__clouds{position:relative;overflow:hidden;padding-top:2.75rem;z-index:2}.jp-apps-card__clouds img{position:absolute;bottom:-1px;left:-2%;right:-2%;width:104%;height:auto}.jp-apps-card__description{max-width:80%;margin:0 auto;padding:1.5rem;font-size:.875rem;line-height:1.65;color:#537994;text-align:center}.jp-apps-card__description .dops-button{margin:8px 0}.jp-apps-card__header{margin-top:0;font-weight:500}.jp-apps-card__promo_subhead{font-style:italic}.jp-themes-card{margin-bottom:1.25rem}.jp-themes-card .jp-apps-card__top{padding:3.75rem 0 0}.jp-themes-card .jp-apps-card__description{max-width:81%;padding-top:.625rem}.jp-themes-card .jp-apps-card__header{margin-bottom:.3125rem}.jp-themes-card .jp-apps-card__promo_subhead{margin-top:0}.jp-dialogue-full__container{box-sizing:border-box;position:absolute;top:0;right:0;bottom:0;left:0;z-index:100;background:rgba(243,246,248,0.95);text-align:center;padding:2rem;height:100%}.jp-dialogue{text-align:center;max-width:37.5rem;margin:0 auto 2rem;overflow:hidden}@media (max-width: 660px){.jp-dialogue{text-align:left}}.jp-dialogue p{font-size:.875rem;color:#537994}.jp-dialogue img{max-width:100%}.jp-dialogue p+img{margin:2rem 0 1rem}.jp-dialogue .dops-card{margin-bottom:0}.jp-dialogue .jp-dialogue-card__below{text-align:left}.jp-dialogue-full__dismiss{cursor:pointer;position:absolute;right:-10px;top:-10px;fill:#87a6bc;padding:1rem;height:1.5rem;width:1.5rem}.jp-dialogue__title{font-weight:300;text-align:center;font-size:1.5rem;margin-bottom:2rem}.jp-dialogue__note,a.jp-dialogue__note{margin:0;padding:1rem 0 0;font-size:.875rem;clear:both;font-style:italic}.jp-dialogue-full__svg-jupiter{position:absolute;right:0;top:5rem;opacity:.90}.jp-dialogue-full__svg-stars{position:absolute;left:6.25rem;top:6.25rem;opacity:.90}.jp-dialogue__cta-container{padding:.5rem 0 0}.jp-upgrade-notice__enable-module{margin-bottom:calc(1em + 8px)}.jp-upgrade-notice__enable-module .jp-form-settings-group{margin:0px auto;max-width:400px;text-align:left}.jp-upgrade-notice__enable-module .jp-form-has-child{padding:10px;padding-right:30px}.jp-upgrade-notice__enable-module .jp-support-info{top:.9375rem;right:.9375rem}.jp-welcome-new-plan{overflow:initial}.jp-welcome-new-plan__button{margin-top:1.5rem}img.jp-welcome__svg{margin:2.5rem auto 0;max-width:15rem}.jp-at-a-glance{margin-bottom:3rem}.jp-at-a-glance__stats-card{padding:0}.jp-at-a-glance__stats-empty{text-align:center;margin-bottom:0}.jp-at-a-glance__stats-empty p{font-size:.875rem;color:#537994}.jp-at-a-glance__stats-inactive{padding:1rem}@media (min-width: 661px){.jp-at-a-glance__stats-inactive{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}}@media (max-width: 660px){.jp-at-a-glance__stats-inactive-icon{display:none}}@media (min-width: 661px){.jp-at-a-glance__stats-inactive-icon{-ms-flex-preferred-size:10%;flex-basis:10%}}.jp-at-a-glance__stats-inactive-text{font-size:.875rem;line-height:1.5}@media (max-width: 660px){.jp-at-a-glance__stats-inactive-text{padding:0 0 1rem}}@media (min-width: 661px){.jp-at-a-glance__stats-inactive-text{-ms-flex-preferred-size:50%;flex-basis:50%;padding:0 1rem}}.jp-at-a-glance__stats-inactive-button{text-align:left}@media (min-width: 661px){.jp-at-a-glance__stats-inactive-button{-ms-flex-preferred-size:40%;flex-basis:40%;text-align:right}}.jp-at-a-glance__stats-chart{padding:1rem;position:relative}.jp-at-a-glance__stats-chart .dops-spinner{position:absolute;top:50%;left:50%}.jp-at-a-glance__stats-bottom{margin:2rem 0 0}@media (max-width: 480px){.jp-at-a-glance__stats-bottom{box-shadow:0 0 0 1px rgba(200,215,225,0.5),0 1px 2px #e9eff3}}.jp-at-a-glance__stats-summary{text-align:center;border-top:1px #f3f6f8 solid}@media (min-width: 661px){.jp-at-a-glance__stats-summary{-ms-flex-wrap:nowrap;flex-wrap:nowrap;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}}@media (max-width: 660px){.jp-at-a-glance__stats-summary{display:block}}.jp-at-a-glance__stats-summary-today,.jp-at-a-glance__stats-summary-bestday{-ms-flex-preferred-size:25%;flex-basis:25%;padding:1rem;box-shadow:0 0 0 1px rgba(200,215,225,0.5),0 1px 2px #e9eff3}@media (max-width: 660px){.jp-at-a-glance__stats-summary-today{margin-top:-.0625rem}}@media (min-width: 661px){.jp-at-a-glance__stats-summary-bestday{margin:0 .0625rem}}@media (max-width: 660px){.jp-at-a-glance__stats-summary-bestday,.jp-at-a-glance__stats-summary-alltime{margin-top:.0625rem}}.jp-at-a-glance__stats-summary-alltime{-ms-flex-preferred-size:50%;flex-basis:50%;padding:1rem;box-shadow:0 0 0 1px rgba(200,215,225,0.5),0 1px 2px #e9eff3}@media (min-width: 661px){.jp-at-a-glance__stats-summary-alltime{max-width:40%;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}}.jp-at-a-glance__stats-alltime-views,.jp-at-a-glance__stats-alltime-comments{-ms-flex-preferred-size:50%;flex-basis:50%}.jp-at-a-glance__stats-cta{padding:1rem;background-color:#fafbfc}@media (min-width: 661px){.jp-at-a-glance__stats-cta{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:center;align-items:center}}@media (max-width: 660px){.jp-at-a-glance__stats-cta{display:block}}@media (min-width: 661px){.jp-at-a-glance__stats-cta-description{-ms-flex-preferred-size:30%;flex-basis:30%}}.jp-at-a-glance__stat-details{margin:0}.jp-at-a-glance__stat-number{font-size:1.375rem;font-weight:400;margin:.5rem 0}@media (min-width: 661px){.jp-at-a-glance__stats-cta-buttons{text-align:right;-ms-flex-preferred-size:70%;flex-basis:70%}}@media (max-width: 660px){.jp-at-a-glance__stats-cta-buttons{text-align:center}.jp-at-a-glance__stats-cta-buttons .dops-button{width:100%;margin-bottom:.25rem}}.jp-at-a-glance__stats-cta-buttons .dops-button{text-align:center;margin:.25rem}.jp-at-a-glance__stats-views{margin-top:0;margin-bottom:0}.jp-at-a-glance__stats-view{display:inline-block;margin-top:0;margin-bottom:0;margin-left:1rem}.jp-at-a-glance__stats-view:focus{outline:0}@media (max-width: 480px){.jp-at-a-glance__stats-view{margin-left:0;margin-right:1rem}}.jp-at-a-glance__stats-view-link,.jp-at-a-glance__stats-view-link:visited{color:#87a6bc;text-decoration:underline}.jp-at-a-glance__stats-view-link.is-current,.jp-at-a-glance__stats-view-link:visited.is-current,.jp-at-a-glance__stats-view-link:focus.is-current,.jp-at-a-glance__stats-view-link:visited.is-current,.jp-at-a-glance__stats-view-link:visited:visited.is-current,.jp-at-a-glance__stats-view-link:visited:focus.is-current{color:#23282d;text-decoration:none}.jp-at-a-glance__stats-view-link:focus{outline:0;box-shadow:none}.jp-at-a-glance__item-grid{display:-ms-flexbox;display:flex}@media (max-width: 660px){.jp-at-a-glance__item-grid{display:block}}.jp-at-a-glance__left,.jp-at-a-glance__right{display:-ms-flexbox;display:flex;min-width:0}@media (min-width: 661px){.jp-at-a-glance__left,.jp-at-a-glance__right{-ms-flex-preferred-size:50%;flex-basis:50%;margin-bottom:1rem}}@media (max-width: 660px){.jp-at-a-glance__left,.jp-at-a-glance__right{margin-bottom:.75rem}}.jp-at-a-glance__left>div,.jp-at-a-glance__left .jp-dash-item,.jp-at-a-glance__right>div,.jp-at-a-glance__right .jp-dash-item{min-width:0;-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.jp-at-a-glance__left>div,.jp-at-a-glance__right>div{-ms-flex-preferred-size:100%;flex-basis:100%}.jp-at-a-glance__left .jp-dash-item .dops-card,.jp-at-a-glance__right .jp-dash-item .dops-card{-ms-flex-positive:1;flex-grow:1}.jp-at-a-glance__left .jp-dash-item .dops-card.is-compact,.jp-at-a-glance__right .jp-dash-item .dops-card.is-compact{-ms-flex-positive:0;flex-grow:0}.jp-at-a-glance__left .jp-dash-item .dops-card.is-compact a.dops-notice__action,.jp-at-a-glance__right .jp-dash-item .dops-card.is-compact a.dops-notice__action{margin-left:0;padding-left:0}@media (max-width: 480px){.jp-at-a-glance__left .jp-dash-item .dops-card.is-compact a.dops-notice__action,.jp-at-a-glance__right .jp-dash-item .dops-card.is-compact a.dops-notice__action{text-transform:none}}.jp-at-a-glance__left .jp-dash-item__card,.jp-at-a-glance__right .jp-dash-item__card{display:-ms-flexbox;display:flex}.jp-search-config-aag{width:100%}.jp-at-a-glance__left{display:-ms-flexbox;display:flex}@media (min-width: 661px){.jp-at-a-glance__left{margin-right:1rem}.jp-at-a-glance__left:last-child{-ms-flex-preferred-size:calc( 50% - .5rem);flex-basis:calc( 50% - .5rem)}}.dops-chart__tooltip .tip-arrow{display:none}.jp-connection-type .jp-dash-item__card{-ms-flex-align:start;align-items:flex-start}.jp-connection-settings__info{display:-ms-flexbox;display:flex}.jp-connection-settings__actions{margin:1em 0 0}.jp-connection-settings__actions a{cursor:pointer}.jp-connection-settings__text{width:70%;margin-left:1rem;word-break:break-word}.jp-connection-settings__info .gridicon{opacity:.6}.jp-connection-settings__info .gridicon,.jp-connection-settings__info .jp-connection-settings__site-icon{background:#c8d7e1;color:#fff;min-width:4rem}.jp-connection-settings__info .jp-connection-settings__gravatar{display:inline-block;min-width:4rem;background:#87a6bc;border-radius:50%;margin-bottom:0}.jp-connection-settings__username{font-weight:600}.jp-connection-settings__email{color:#87a6bc;font-size:.8125rem;font-style:italic;font-weight:400}.jp-connection-settings__modal.dops-modal{max-width:450px}.jp-connection-settings__modal-body{margin:0;padding:1.5rem 2rem;font-size:.875rem;color:#2e4453;text-align:center}.jp-connection-settings__modal-body h2{margin:2rem 0 1.5rem;font-size:2rem;font-weight:300;color:#2e4453}.jp-connection-settings__modal-body h4{margin:1rem 1.5rem 0;font-size:1rem;font-weight:400;line-height:1.5em;color:#668eaa}.jp-connection-settings__modal-body p{font-size:.875rem}.jp-connection-settings__modal-body ul{margin:1.5rem 0 2.25rem;color:#537994}.jp-connection-settings__modal-body li{position:relative;display:block;margin:0;padding:1rem .5rem 1rem 2.75rem;border-bottom:1px solid #d9e3ea;text-align:left}.jp-connection-settings__modal-body li:first-of-type{border-top:1px solid #d9e3ea}.jp-connection-settings__modal-body .gridicon{position:absolute;left:1rem;top:1rem;vertical-align:text-bottom;color:#537994}.jp-connection-settings__modal-cancel{margin-right:1em}.jp-connection-settings__modal-more a{color:#0087be;text-decoration:underline}.jp-dash-item__manage-in-wpcom{margin-top:1px;width:100%}.jp-landing__plans.dops-card{padding:0}.jp-landing__plans .dops-button{margin-right:10px}@media (min-width: 661px){.plans-mobile-notice{display:none}}.plans-mobile-notice .dops-button:first-of-type{margin-right:6px;margin-bottom:6px}.plans-mobile-notice.dops-card h2{margin-top:0}.jp-landing-plans__header{background:#2e4453}@media (min-width: 661px){.jp-landing-plans__header{padding:2rem 0 0}}@media (max-width: 660px){.jp-landing-plans__header{padding:2rem}}.jp-landing-plans__header-img-container{margin:2rem 0 0;overflow:hidden}@media (min-width: 661px){.jp-landing-plans__header-img-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}}@media (max-width: 660px){.jp-landing-plans__header-img-container{margin-bottom:0}}.jp-landing-plans__header-img{max-width:100%}.jp-landing-plans__header-col-left{-ms-flex-preferred-size:45%;flex-basis:45%}@media (min-width: 661px){.jp-landing-plans__header-col-left{padding-left:2rem}}.jp-landing-plans__header-col-right{-ms-flex-preferred-size:55%;flex-basis:55%}@media (min-width: 661px){.jp-landing-plans__header-col-right{padding:0 2rem}}@media (max-width: 660px){.jp-landing-plans__header-col-right{text-align:center;padding-top:2rem}}.jp-landing-plans__clouds{position:relative;overflow:hidden;padding-top:5rem}.jp-landing-plans__clouds img{position:absolute;bottom:-2px;left:-5%;right:-5%;height:auto;width:110%}@media (max-width: 660px){.jp-landing-plans__clouds{display:none}}.jp-landing-plans__header-img{max-width:100%}.jp-landing-plans__header-col-left{-ms-flex-preferred-size:45%;flex-basis:45%}@media (min-width: 661px){.jp-landing-plans__header-col-left{padding-left:2rem}}.jp-landing-plans__header-col-right{-ms-flex-preferred-size:55%;flex-basis:55%}@media (min-width: 661px){.jp-landing-plans__header-col-right{padding:0 2rem}}@media (max-width: 660px){.jp-landing-plans__header-col-right{text-align:center}}.jp-landing-plans__header-title,.jp-landing-plans__header-description{line-height:1.5}@media (min-width: 661px){.jp-landing-plans__header-title,.jp-landing-plans__header-description{text-align:center}}.jp-landing-plans__header-title,.jp-landing-plans__header-subtitle{color:#fff;font-weight:400;margin:0}.jp-landing-plans__header-title{font-size:1.25rem}.jp-landing-plans__header-description{font-size:.875rem;margin:0;padding-bottom:1rem}.jp-landing-plans__header-subtitle{font-size:1rem;line-height:1.25}.jp-landing-plans__header-description,.jp-landing-plans__header-text{color:#a8bece}.jp-landing-plans__header-text{font-size:.875rem;padding:1.5rem 0;margin:0}.jp-landing-plans__header-btn-container{margin:0}.jp-landing__plan-features-card{box-shadow:0 0 0 1px rgba(200,215,225,0.5),0 1px 2px #e9eff3;border-radius:3px}@media (min-width: 661px){.jp-landing__plan-features-card{margin-bottom:2rem}}@media (max-width: 660px){.jp-landing__plan-features-card{margin-bottom:1rem}}@media (min-width: 481px){.jp-landing__plan-features-card{padding:2rem}}@media (max-width: 480px){.jp-landing__plan-features-card{padding:1rem}}.jp-landing__plan-features-card:last-of-type{margin-bottom:0}.jp-landing__plan-features-title{margin:0}@media (min-width: 661px){.jp-landing__plan-features{padding:0 2rem 2rem}}@media (max-width: 660px){.jp-landing__plan-features{padding:1rem}}@media (min-width: 661px){.jp-landing__plan-card{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap}}@media (min-width: 661px){.jp-landing__plan-card{padding:2rem}}@media (max-width: 660px){.jp-landing__plan-card{padding:2rem 2rem 1rem}}.jp-landing__plan-card .jp-landing__plan-features-title,.jp-landing__plan-card .jp-landing__plan-features-text{padding:0}@media (min-width: 661px){.jp-landing__plan-card .jp-landing__plan-features-title,.jp-landing__plan-card .jp-landing__plan-features-text{margin-left:2rem}}.jp-landing__plan-card .jp-landing__plan-features-title{margin-bottom:1rem}@media (max-width: 660px){.jp-landing__plan-card-img{margin:0 0 2rem 0}}@media (max-width: 480px){.jp-landing__plan-card-img{width:100%;max-width:100%;text-align:center}}.jp-landing__plan-icon{width:12.5rem}.jp-landing__plan-card-img.is-placeholder{width:7.5rem;height:5.3125rem}.jp-landing__plan-card-img.is-placeholder+.jp-landing__plan-card-current{width:80%}.jp-landing__plan-features-title.is-placeholder{height:1.5rem;max-width:50%}.jp-landing__plan-features-text.is-placeholder{height:2.75rem;max-width:75%}.plan-features__content{margin:0 -16px 16px;padding-top:20px}.is-section-plans .plan-features__mobile{display:block}@media (min-width: 752px){.is-section-plans .plan-features__mobile{display:none}}.plan-features__notice{margin-bottom:16px}@media (min-width: 1041px){.plan-features__notice{margin-bottom:32px;margin-top:-19px}}.is-section-plans .plan-features__table{display:table}.plan-features__table{font-size:14px;color:#537994;border-spacing:16px 0;margin-top:-16px;display:table;table-layout:fixed;width:100%;text-align:center}@media (min-width: 661px){.plan-features__table{display:table}}@media (max-width: 660px){.plan-features__table{display:none}}@media (max-width: 1040px){.plan-features__table{border-spacing:0;margin:0 15px;width:calc( 100% - 30px)}}.plan-features__row{background:#fff}.plan-features__table-item{border-right:solid 1px #dfe8ed;border-left:solid 1px #dfe8ed;background-color:#fff;position:relative}.plan-features__table-item.is-header{vertical-align:top}.plan-features__table-item.is-personal-plan{border-bottom:solid 2px #f0b849}.plan-features__table-item.is-premium-plan{border-bottom:solid 2px #4ab866}.plan-features__table-item.is-business-plan{border-bottom:solid 2px #855DA6}.plan-features__table-item.is-highlighted{border:1px solid #0087be;background-color:rgba(0,135,190,0.1);position:relative;top:-1px}.plan-features__table-item.is-highlighted.has-partial-border::after{display:none}.plan-features__table-item.is-selected{display:table-cell}.plan-features__table-item.has-partial-border::after{content:'';display:block;height:1px;width:calc( 100% - 24px);border-bottom:1px solid #dfe8ed;position:absolute;bottom:0;margin:0 12px}.plan-features__table-item.has-border-bottom{border-bottom:solid 1px #dfe8ed}.plan-features__table-item.has-border-top{border-top:solid 1px #dfe8ed}.plan-features__table-item.is-placeholder .spinner-line{margin:0;position:absolute;top:-3px;width:100%}.plan-features__table-item.is-bottom-buttons{padding-top:33px;padding-bottom:15px}.plan-features__table-item.is-top-buttons{padding-top:8px;padding-bottom:16px}.plan-features__header{position:relative;padding:15px 15px 0 15px;background-color:#fff}@media (max-width: 960px){.plan-features__header{padding:12px 12px 0 12px}}.plan-features__header-title{font-size:22px;line-height:0.7;font-weight:normal;margin:0}@media (max-width: 960px){.plan-features__header-title{font-size:20px}}.info-popover.plan-features__header-tip-info{position:relative;top:4px;left:3px;margin-top:-10px;margin-bottom:-10px;display:inline-block}.plan-features__description{margin:0;padding:12px 0}.plan-features__item{margin:0 12px;padding:12px 0;font-size:13px;color:#2e4453;text-align:center}@media (max-width: 960px){.plan-features__item{font-size:12px}}@media (max-width: 1040px){.plan-features__item{margin:0 12px}}.plan-features__item-description{display:inline-block;margin-left:10px;color:#87a6bc}.plan-price{padding-top:15px;padding-bottom:15px}.plan-price__yearly{color:#2e4453}.dops-search__input[type="search"]{width:100%}.jp-settings-container .jp-no-results{display:none;font-size:.875rem;line-height:1.5}.jp-settings-container .jp-no-results:last-of-type{display:inherit}@media (max-width: 480px){.dops-search.is-expanded-to-container{height:46px}}
_inc/build/style.min.rtl.css CHANGED
@@ -1,4 +1,4 @@
1
  /* Do not modify this file directly. It is compiled SASS code. */
2
- @media (max-width: 660px){.jp-hidden-on-mobile{display:none}}.jetpack-pagestyles #wpcontent{padding-right:0}.wp-admin.toplevel_page_jetpack{background-color:#f3f6f8;line-height:1.4;height:auto}.jetpack-pagestyles a{text-decoration:none}.dops-notice__text a{text-decoration:underline}.jetpack-pagestyles #dolly{float:none;position:relative;left:0;right:0;top:0;padding:.625rem;text-align:left;background:#fff;font-size:.75rem;font-style:italic;color:#87a6bc;border-bottom:1px #e9eff3 solid}@media (max-width: 660px){.jetpack-pagestyles #dolly{display:none}}.toplevel_page_jetpack ul#adminmenu a.wp-has-current-submenu:after{border-left-color:#f3f6f8}.jp-lower{margin:0 auto;text-align:right;max-width:45rem;padding:1.5rem}#contextual-help-link-wrap{display:none}.is-placeholder{animation:pulse-light 0.8s ease-in-out infinite;background:#c8d7e1}@keyframes pulse-light{50%{background-color:#e9eff3}}.jp-dash-item .jp-dash-item__content a{font-style:italic}.jp-dash-item .dops-section-header__card-badge .dops-button{background:none;border-bottom-width:1px}.jp-dash-item .dops-section-header__card-badge .dops-button:hover{background:#fff}.jp-dash-item .dops-section-header__actions .form-toggle__label{position:relative;top:6px;left:0}.jp-dash-item .dops-section-header__actions .form-toggle__label-content{margin:0}.jp-dash-item__card{margin:0}.jp-dash-item__count{margin-top:0;margin-bottom:0;margin-left:8px;color:#00aadc;font-weight:500;font-size:2rem;display:inline;border:1px solid #CBD7E1;border-radius:4px;padding:0px 4px;float:right;min-width:36px;text-align:center}@media (max-width: 660px){.jp-dash-item__count{font-size:1.4375rem}}.jp-dash-item__description{margin:0;width:90%;font-size:.875rem}.jp-dash-item .dops-section-header{width:100%}.jp-dash-item .dops-section-header .dops-button{font-style:normal}.jp-dash-item .dops-section-header.is-working .dops-section-header__actions,.jp-dash-item .dops-section-header.is-premium-inactive .dops-section-header__actions{color:#537994}.jp-dash-item .dops-section-header__actions .dops-notice{margin-top:.125rem}.jp-dash-item__active-label{display:inline-block;padding:.375rem 0;color:#668eaa;color:#87a6bc;font-size:.75rem;font-weight:400;text-transform:uppercase}.jp-dash-item__is-inactive .dops-card{background-color:#f3f6f8}.jp-dash-item__is-inactive .dops-section-header__label{padding-left:.5rem}.jp-dash-item__is-inactive .dops-section-header__label-text:before{content:'';display:block;position:absolute;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;background:linear-gradient(to left, rgba(243,246,248,0), #f3f6f8 90%);top:0px;bottom:0px;left:0px;right:auto;width:8px;height:auto}.jp-dash-item__is-inactive .jp-dash-item__description{font-style:italic;color:#4f748e}.jp-dash-item__disabled{opacity:.5;position:relative}.jp-dash-item__disabled::before{content:"";width:100%;height:100%;display:block;position:absolute;top:0;right:0;z-index:1}.jp-dash-item__recently-activated .jp-dash-item__description{font-style:italic;box-sizing:border-box}.jp-dash-section-header{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:2.5rem 0 .5rem}@media (max-width: 660px){.jp-dash-section-header{margin-bottom:1.5rem}}@media (max-width: 480px){.jp-dash-section-header{display:block}}.jp-dash-section-header__label{-ms-flex:1;flex:1;white-space:nowrap}.jp-dash-section-header__name{display:inline-block;margin-top:0;margin-bottom:0;font-size:1.25rem;font-weight:400;white-space:nowrap}@media (min-width: 481px){.jp-dash-section-header__name{display:inline-block}}@media (max-width: 480px){.jp-dash-section-header__name .jp-dash-section-header__label{display:inline-block}}.jp-dash-section-header__settings{display:inline-block;min-width:2.5rem;text-align:center;color:#668eaa}.jp-dash-section-header__settings:focus{outline:0;box-shadow:none}.jp-dash-section-header__settings:focus .gridicon{color:#0087be}.jp-dash-section-header__settings .gridicon{position:relative;top:1px}.jp-dash-section-header__external-link{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center;font-style:italic}@media (max-width: 660px){.jp-dash-section-header__external-link{margin-top:.25rem}}@media (max-width: 480px){.jp-dash-section-header__external-link{display:block;width:100%}}.jp-dash-section-header__children{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}@media (max-width: 480px){.jp-dash-section-header__children{width:100%}}.dops-foldable-card.dops-card.devmode-disabled .dops-foldable-card__summary,.dops-foldable-card.dops-card.devmode-disabled .dops-foldable-card__summary_expanded{width:100px}.dops-foldable-card.dops-card.is-expanded .dops-foldable-card__content{position:relative;padding-left:2.9375rem;padding-right:1.5rem}@media (min-width: 661px){.dops-foldable-card__main{max-width:85%}}@media (min-width: 481px){.dops-foldable-card__main{max-width:60%}}@media (max-width: 480px){.dops-foldable-card__main{-ms-flex-preferred-size:100%;flex-basis:100%}}@media (max-width: 480px){.dops-foldable-card__header{-ms-flex-wrap:wrap;flex-wrap:wrap}}@media (max-width: 480px){.dops-foldable-card__header-text{font-size:.875rem}}.dops-foldable-card__header-text .dops-button{margin-right:.5rem}@media (max-width: 480px){.dops-foldable-card__subheader{display:none}}@media (max-width: 480px){.dops-foldable-card.has-expanded-summary .dops-foldable-card__summary,.dops-foldable-card.has-expanded-summary .dops-foldable-card__summary_expanded{text-align:right;margin-top:.5rem}}.jp-footer{text-align:center;margin:1rem 0 2rem}@media (max-width: 1040px){.jp-footer{margin:2rem 0 1.5rem}}@media (max-width: 660px){.jp-footer{margin:1.5rem 0 1rem}}.jp-footer__a8c-attr-container{margin-bottom:.5rem}.jp-footer__a8c-attr{width:11.25rem}.jp-footer__a8c-attr path{fill:#668eaa}.jp-footer__links{border-top:1px #d9e3ea solid;border-bottom:1px #d9e3ea solid;margin-top:0;margin-bottom:1rem}@media (max-width: 660px){.jp-footer__links{border-bottom:none}}.jp-footer__link-item{display:inline-block;margin-bottom:0}@media (min-width: 661px){.jp-footer__link-item{display:inline-block}}@media (max-width: 660px){.jp-footer__link-item{display:block;border-bottom:1px #d9e3ea solid}}.jp-footer__link{padding:1rem .5rem;color:#668eaa;display:inline-block;cursor:pointer}.jp-footer__link:visited{color:#668eaa}.jp-footer__link:hover,.jp-footer__link:active{color:#1c2932}@media (max-width: 660px){.jp-footer__link{display:block;padding:.5rem 0;border-bottom:1px #d9e3ea solid}.jp-footer__link:last-of-type{border-bottom:none}}.jp-dev-card.jp-dev-card{position:fixed;bottom:10px;left:10px;z-index:100;padding:8px;font-size:12px;text-align:right}.jp-dev-card.jp-dev-card ul{margin-top:6px}.jp-dev-card.jp-dev-card li{margin-top:2px;margin-bottom:0}.jp-dev-card__heading{font-weight:600}.jp-dev-card__subheading{font-size:11px;color:#668eaa}.jp-dev-card__close{float:left;cursor:pointer}.jp-loading-placeholder{margin-top:30vh;margin-bottom:25vh;color:#c8d7e1;font-size:12vw;text-align:center}@media (min-width: 961px){.jp-loading-placeholder{font-size:120px}}.jp-loading-placeholder .dashicons{font-size:inherit;width:auto;height:auto}.jp-jetpack-connect__container{text-align:center}.jp-jetpack-connect__container .dops-section-header__label{margin:.0625rem;padding:1rem;font-size:1rem;font-weight:400;border-bottom:1px #e9eff3 solid}.jp-jetpack-connect__container .jp-banner__tos-blurb{font-size:.6875rem;color:#2e4453;padding-top:5px;margin-bottom:30px}@media (max-width: 660px){.jp-jetpack-connect__cta{text-align:right}}.jp-jetpack-connect__cta .jp-jetpack-connect__description{padding:0 0 1rem;margin-top:20px;margin-bottom:10px}.jp-jetpack-connect__container-title,.jp-jetpack-connect__container-subtitle{font-weight:400}.jp-jetpack-connect__container-subtitle:first-of-type{margin:0;padding:1rem}@media (min-width: 661px){.jp-jetpack-connect__container-subtitle{font-size:1.25rem}}@media (max-width: 660px){.jp-jetpack-connect__container-subtitle{text-align:right}}.jp-jetpack-connect__description{padding:1rem;font-size:1rem}@media (min-width: 961px){.jp-jetpack-connect__description{padding:0 10%;margin-bottom:2rem}}@media (max-width: 660px){.jp-jetpack-connect__description{font-size:.875rem;text-align:right;margin-top:0;padding:1rem 0}}.jp-jetpack-connect__link{font-style:italic}.jp-jetpack-connect__button{margin:0 0 .75rem}.jp-jetpack-connect__feature{padding:0}.jp-jetpack-connect__header{position:relative}@media (min-width: 961px){.jp-jetpack-connect__header:first-of-type{background:transparent url("../../images/long-clouds.svg") 50% 110% no-repeat;background-size:100% 63px;padding-bottom:3.125rem}}@media (max-width: 960px){.jp-jetpack-connect__header:first-of-type{border-bottom:1px #e9eff3 solid;background-image:none}}@media (min-width: 961px){.jp-jetpack-connect__header{padding-top:1rem}}@media (max-width: 660px){.jp-jetpack-connect__header .jp-jetpack-connect__description{padding:0 1rem 1rem}}.jp-jetpack-connect__header-img-container{position:absolute;right:0;left:0;bottom:0}@media (max-width: 960px){.jp-jetpack-connect__header-img-container{display:none}}.jp-jetpack-connect__header-img{margin:0 auto;max-width:100%;z-index:1001;position:absolute;right:0;left:0;bottom:0}@media (min-width: 961px){.jp-jetpack-connect__header-img:first-of-type{bottom:-15px}}.jp-jetpack-connect__header-img:last-of-type{z-index:999}@media (min-width: 961px){.jp-jetpack-connect__traffic .jp-jetpack-connect__header:first-of-type{padding-bottom:12.5rem;background:url("../../images/stars-right.svg") no-repeat,url("../../images/stars-left.svg") no-repeat,#fff;background-position:5% 50%, 95% 50%;background-size:100px, 125px}}.jp-jetpack-connect__interior-container{padding:1rem;background:#f3f6f8}@media (min-width: 961px){.jp-jetpack-connect__interior-container{padding:1.5rem 1rem 1rem}}@media (max-width: 960px){.jp-jetpack-connect__interior-container .jp-jetpack-connect__container-subtitle{padding:1rem 0 0}}@media (min-width: 661px){.jp-jetpack-connect__interior-container .jp-jetpack-connect__container-subtitle{margin-top:1.5rem}}.jp-jetpack-connect__feature-list{margin:0;padding:0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}@media (min-width: 961px){.jp-jetpack-connect__feature-list{margin-top:1rem}}@media (min-width: 661px){.jp-jetpack-connect__feature-list{-ms-flex-wrap:nowrap;flex-wrap:nowrap}}@media (max-width: 660px){.jp-jetpack-connect__feature-list{margin:-.5rem -1rem 0}}.jp-jetpack-connect__feature-list-column{box-shadow:0 0 0 1px rgba(200,215,225,0.5),0 1px 2px #e9eff3;text-align:right;background:#fff}@media (min-width: 661px){.jp-jetpack-connect__feature-list-column{-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;-ms-flex-preferred-size:33%;flex-basis:33%}}@media (max-width: 660px){.jp-jetpack-connect__feature-list-column{-ms-flex-preferred-size:100%;flex-basis:100%;margin-bottom:.5rem}}.jp-jetpack-connect__feature-content{padding:1rem}.jp-jetpack-connect__feature-content-title{margin:0}.jp-jetpack-connect__feature-image{max-width:100%;margin:0 auto}@media (max-width: 480px){.dops-notice ul{font-size:.75rem}}.jp-jumpstart{text-align:center;max-width:37.5rem;margin:0 auto 2rem}@media (max-width: 660px){.jp-jumpstart{text-align:right}}.jp-jumpstart__cta-container{position:relative;padding:0}.jp-jumpstart__cta-container .dops-spinner{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;position:absolute;top:0;left:0;bottom:0;right:0;background:rgba(255,255,255,0.85);z-index:1001}.jp-jumpstart__cta-container .dops-spinner__image{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}.jp-jumpstart__title{font-weight:300;text-align:center;font-size:1.5rem;margin-bottom:2rem}.jp-jumpstart__description{margin-bottom:0}.jp-jumpstart__description p{margin:0;font-size:.875rem;color:#537994}.jp-jumpstart__feature-heading{margin-top:0;margin-bottom:1.5rem;font-size:1rem;font-weight:400}.jp-jumpstart__features{margin:0;padding:1rem}.jp-jumpstart__features.dops-foldable-card{box-shadow:none}.jp-jumpstart__features.dops-foldable-card.is-expanded{margin-bottom:0}.jp-jumpstart__features .dops-foldable-card__header,.jp-jumpstart__features.dops-foldable-card.is-expanded .dops-foldable-card__header{min-height:auto}.jp-jumpstart__features .dops-foldable-card__main{max-width:100%;margin-left:0}.jp-jumpstart__features .dops-foldable-card__secondary{display:none}.jp-jumpstart__features .dops-foldable-card__subheader{color:#0087be;font-style:italic}.jp-jumpstart__features .dops-foldable-card__content{background-color:#fafbfc}.jp-jumpstart__feature-list{margin:0 0 1.5rem;padding:0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}@media (max-width: 660px){.jp-jumpstart__feature-list{margin:0 -1rem 1.5rem}}.jp-jumpstart__feature-list-column{box-shadow:0 0 0 1px rgba(200,215,225,0.5),0 1px 2px #e9eff3;text-align:right;background:#fff}@media (min-width: 661px){.jp-jumpstart__feature-list-column{-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;-ms-flex-preferred-size:50%;flex-basis:50%}}@media (max-width: 660px){.jp-jumpstart__feature-list-column{-ms-flex-preferred-size:100%;flex-basis:100%}}.jp-jumpstart__feature-content{padding:1rem}.jp-jumpstart__feature-content p{margin-top:.5rem;margin-bottom:0}.jp-jumpstart__feature-content-title{margin:0}.jp-jumpstart__note{margin:0;padding:1rem 0 0;font-size:.875rem;clear:both;font-style:italic}.jp-masthead{background-color:#fff;text-align:center;box-shadow:0 1px 0 rgba(200,215,225,0.5),0 1px 2px #e9eff3}@media (max-width: 48.875rem){.jp-masthead{padding:0 1.5rem}.jetpack-masterbar .jp-masthead{padding-right:4rem}}.jp-masthead__inside-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:0 auto;width:100%;max-width:45rem;padding-bottom:.375rem}.jp-masthead__logo-container{-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;padding:.6875rem 0 0}@media (max-width: 480px){.jp-masthead__logo-container{margin-left:1rem}}.jp-masthead__logo-link{display:inline-block;outline:none;vertical-align:middle}.jp-masthead__logo-link:focus{line-height:0;box-shadow:0 0 0 2px #78dcfa}.jp-masthead__logo-link+code{margin:0 10px;padding:5px 9px;border-radius:2px;background:#e6ecf1;color:#647a88}.jp-masthead__nav{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;text-align:left;margin-top:.375rem;padding:.25rem 0}.jp-masthead__nav .dops-button-group{-ms-flex-positive:1;flex-grow:1;-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}@media (max-width: 480px){.jp-masthead__nav{text-align:right}}.jp-module-settings__external-link{font-size:.875rem}.jp-module-settings__read-more{clear:both;margin-top:1rem}@media (min-width: 481px){.jp-module-settings__read-more{margin-top:2rem}}.jp-module-settings__read-more .dops-button.is-compact.is-borderless,.jp-module-settings__read-more .jp-module-settings__more-text{vertical-align:middle}.jp-related-posts-preview{position:relative;margin-top:.5rem;padding:1rem .5rem;width:100%;background:#f3f6f8;box-sizing:border-box;box-shadow:none}.jp-related-posts-settings__preview-label{margin-bottom:.5rem;margin-top:1.5rem;font-size:.875rem;font-weight:600}.jp-related-posts-preview__title{margin:0 .5rem .6875rem 0;font-size:.6875rem;font-weight:600}.jp-related-posts-preview__post-title{font-size:.9375rem;font-weight:400;margin:0}.jp-related-posts-preview__post-context{font-size:.9375rem;opacity:.6;margin:0}.jp-related-posts-preview__item{box-sizing:border-box;display:inline-block;width:33.33%;padding:.5rem;vertical-align:top}@media (max-width: 480px){.jp-related-posts-preview__item{width:100%}}.jp-related-posts-preview__item img{max-width:100%;margin-bottom:.5rem}.jp-support-card{margin-top:1rem;margin-bottom:0}.jp-support-card__description{font-size:.875rem;line-height:1.65;color:#537994}.jp-support-card__description:first-of-type{margin-top:4px}.jp-support-card__description:last-of-type{margin-bottom:0}.jp-support-card__description .dops-button{margin:0 0 0 16px}@media (max-width: 960px){.jp-support-card__description .dops-button{margin:0 0 8px 16px}}.jp-support-card__link{font-style:italic}@media (max-width: 660px){.jp-support-card__link{display:block;width:100%;padding:.625rem 0;border-top:1px rgba(200,215,225,0.5) solid}.jp-support-card__link:first-letter{text-transform:capitalize}.jp-support-card__link:first-of-type{border-top:0}}.jp-support-card__happiness{margin-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap}@media (max-width: 660px){.jp-support-card__happiness .jp-support-card__description:first-of-type{margin-bottom:1rem}}.jp-support-card__social{background-color:#fafbfc;padding:1rem}@media (max-width: 660px){.jp-support-card__social{background:#fff;margin-top:1rem;padding:0 1rem}}.jp-support-card__header{color:#668eaa;font-weight:400;font-size:1.3125rem;margin:0}.jp-support-card__happiness-contact{-ms-flex-negative:1;flex-shrink:1;-ms-flex-positive:1;flex-grow:1}.jp-form-legend,.jp-form-label-wide{padding:1rem 0 .3125rem;font-size:.875rem;font-weight:600}.jp-form-label{display:block;font-size:.875rem;line-height:1.5;margin-bottom:.3125rem}.jp-form-label-wide{padding:.5rem 0;display:block}.jp-form-label input[type="radio"]+span{font-weight:normal;margin-right:8px}.jp-form-button{margin-top:1rem}@media (min-width: 481px){.jp-form-button{position:absolute;left:1rem;bottom:1rem}}.jp-form-toggle-explanation{font-size:.875rem;word-break:break-word;vertical-align:baseline}.jp-form-toggle-explanation .jp-form-toggle-privacy-info{margin-right:.3125rem;padding-right:.3125rem;border-right:1px solid rgba(135,166,188,0.5)}.jp-form-fieldset{clear:both;position:relative}.jp-form-fieldset .jp-form-legend+.jp-form-setting-explanation{margin-top:0;margin-bottom:.5rem}.jp-form-input-with-prefix{display:-ms-inline-flexbox;display:inline-flex;width:100%;margin-top:1.5rem}.jp-form-input-with-prefix:first-of-type{margin-top:0}.jp-form-input-with-prefix span:first-child{min-width:3.75rem;text-align:center;background:#f3f6f8;border:1px solid #c8d7e1;color:#4f748e;padding:.5rem .875rem;white-space:nowrap}.jp-form-input-with-prefix input[type="text"]{width:100%;border-right:0}.jp-form-has-child{margin-bottom:1.5rem}.jp-form-has-child:last-child{margin-bottom:0}.jp-form-has-child>.jp-form-fieldset,.jp-form-has-child>.jp-form-setting-explanation{margin-right:2.25rem}.jp-form-has-child>.jp-form-fieldset{margin-bottom:1rem}.jp-form-block-fade{position:absolute;top:0;right:0;z-index:1;background:rgba(255,255,255,0.8);width:100%;height:100%}.jp-form-devmode-message.is-compact{width:100%;padding:0 1rem;position:absolute;top:-24px;z-index:1}.react-tagsinput{border:1px solid #e9eff3;padding:.15625rem}.react-tagsinput--focused{border-color:#00aadc}.react-tagsinput-tag{background-color:#00aadc;border-radius:2px;border:1px solid #0087be;color:#fff;display:inline-block;font-size:13px;padding:.125rem .5rem .1875rem .375rem;margin:.15625rem;transition:background-color .2s ease-out}.react-tagsinput-tag:hover{background-color:#26b7e2}.react-tagsinput-remove{cursor:pointer;font-weight:bold;transition:color .2s ease-out}.react-tagsinput-remove:hover{color:#caf3ff}.react-tagsinput-tag a::before{content:" \00d7"}input[type=text].react-tagsinput-input{width:9.375rem;height:1.875rem;margin:0;padding:.3125rem;font-size:13px;vertical-align:middle;border:none;box-shadow:none}input[type=text].react-tagsinput-input::-ms-clear{display:none}.jetpack-pagestyles .vp-notice,.jetpack-pagestyles .woocommerce-message,.jetpack-pagestyles .wc-connect{display:none}.jetpack-pagestyles .vp-notice-jp a{text-decoration:underline}.jetpack-pagestyles .woocommerce-message.dops-notice{display:block;padding:0}.jetpack-pagestyles .woocommerce-message.dops-notice::before{content:''}.jetpack-pagestyles .woocommerce-message.dops-notice .submit{padding:0}.jetpack-pagestyles .woocommerce-message.dops-notice .notice-dismiss::before{display:none}.jetpack-pagestyles .woocommerce-message.dops-notice .dops-notice__text>div{max-width:620px}.jetpack-pagestyles .woocommerce-message.dops-notice .dops-notice__text>a{margin-left:15px}.jetpack-pagestyles .woocommerce-message.dops-notice .dops-notice__moved_text{margin-bottom:5px}.jetpack-pagestyles .dops-notice__action.notice-dismiss{height:100%}.jp-inline-expand.dops-card{box-shadow:none;padding:0}.jp-inline-expand .jp-inline-expand-action{font-size:.875rem;cursor:pointer}.jp-inline-expand .jp-inline-expand-action .gridicon{transition:transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275),color 0.5s ease-in;vertical-align:text-bottom;display:inline-block;margin:0 5px}.jp-inline-expand.is-expanded .jp-inline-expand-action .gridicon{-ms-transform:rotate(-180deg);transform:rotate(-180deg)}.jp-inline-expand.is-expanded .jp-inline-expand-content{padding:16px 0 0}.form-toggle.is-compact.is-toggling+.form-toggle__label .form-toggle__switch:before,.form-toggle.is-compact.is-toggling+.form-toggle__label .form-toggle__switch:after{right:8px}.form-toggle.is-compact.is-toggling:checked+.form-toggle__label .form-toggle__switch:before,.form-toggle.is-compact.is-toggling:checked+.form-toggle__label .form-toggle__switch:after{right:0}.dops-section-nav-tab__text .gridicon{vertical-align:middle;margin:0 5px 2px 0}.jp-settings-card__configure-link{display:-ms-flexbox;display:flex;margin-bottom:0}.jp-form-settings-card{margin-bottom:1.5rem;font-size:.875rem}.jp-form-settings-card+.jp-at-a-glance__stats-card{margin-bottom:1.5rem}.jp-form-settings-card .dops-foldable-card .dops-foldable-card__header{color:#444}@media (min-width: 481px){.jp-form-settings-card .dops-foldable-card .dops-foldable-card__header{padding-right:1.5rem}}.jp-form-settings-card .dops-foldable-card .form-toggle__switch{float:right;margin-top:.125rem}.jp-form-settings-card .dops-foldable-card .dops-foldable-card__header-text{font-size:.875rem}.jp-form-settings-card .dops-foldable-card.jp-foldable-settings-disable .dops-foldable-card__header{color:#dadada}@media (min-width: 481px){.jp-form-settings-card .dops-foldable-card .dops-foldable-card__main{max-width:85%}}.jp-form-settings-card .dops-foldable-card .dops-foldable-card__action{left:.625rem}@media (max-width: 480px){.jp-form-settings-card .dops-foldable-card .dops-foldable-card__action{left:.0625rem}}.jp-form-settings-card .dops-foldable-card .jp-support-info{left:-1.3125rem;top:.4375rem}@media (max-width: 480px){.jp-form-settings-card .dops-foldable-card .jp-support-info{left:-1.875rem}}.jp-form-settings-card .dops-foldable-card .jp-form-legend:first-child,.jp-form-settings-card .dops-foldable-card .jp-form-label-wide:first-child{padding-top:.4375rem}@media (min-width: 481px){.jp-form-settings-card .dops-foldable-card__header{padding-top:1.75rem;padding-bottom:1.75rem}}.jp-foldable-settings-standalone .dops-foldable-card__header-text{font-size:.875rem}@media (min-width: 481px){.jp-foldable-settings-standalone .dops-foldable-card__header,.jp-foldable-settings-standalone.dops-card.is-expanded .dops-foldable-card__content{padding-right:1.5rem;padding-left:1.5rem}.jp-foldable-settings-standalone .dops-foldable-card__action{left:.625rem}.jp-foldable-settings-standalone .jp-form-settings-group .jp-support-info{left:.125rem;top:0}}@media (max-width: 480px){.jp-foldable-settings-standalone .jp-form-settings-group .jp-support-info{left:-1.9375rem;top:.375rem}}.jp-banner__no-border{border-right:none !important}.jp-banner__no-border .dops-banner__icon-circle{background:none !important;padding:0 3px 0 0}.jp-banner__no-border svg.gridicon.gridicons-checkmark-circle{width:28px;height:28px;color:#4ab866}.jp-banner__no-border .dops-banner__description{font-size:.875rem;line-height:1.65;color:#537994;margin-top:0}.jp-form-settings-group{position:relative;margin-bottom:0}.jp-form-settings-group p{font-size:.875rem;margin-top:0;margin-bottom:1.5rem}.jp-form-settings-group fieldset p:last-child{margin-bottom:8px}.jp-form-settings-group .form-toggle__label{margin-top:.25rem;margin-bottom:.25rem}.jp-form-settings-group .form-toggle__switch{float:right;margin-top:2px}.jp-form-settings-group .jp-form-setting-explanation{color:#537994;display:block;margin:.3125rem 0 .3125rem .875rem;font-size:.8125rem;font-style:italic;font-weight:400;word-break:break-word}.jp-form-settings-group .jp-form-setting-explanation+.dops-card{margin-top:1rem}.jp-form-settings-group .jp-form-setting-explanation a{text-decoration:underline}.dops-foldable-card .jp-form-settings-group{padding-bottom:16px}.jp-form-settings-group .dops-card{padding-left:3rem}@media (max-width: 480px){.jp-form-settings-group .jp-support-info{left:1rem;top:1.25rem}}.jp-form-settings-group .jp-support-info+p{margin-top:2px}.jp-form-settings-group .jp-support-info+span{padding-top:2px;display:block}.jp-form-settings-group .form-toggle__switch{float:right;margin-top:2px}.jp-form-settings-group>.dops-card:first-child{margin-bottom:0}.dops-foldable-card .jp-form-settings-group .dops-card{padding:0;box-shadow:none}.jp-apps-card{margin-top:4rem;margin-bottom:0}.jp-apps-card__content{margin-bottom:0}.jp-apps-card__content.dops-card{padding:0}.jp-apps-card__content a:not(.dops-button){font-style:italic}.jp-apps-card__top{padding:2.5rem 0 0;background:#ffffff;text-align:center}.jp-apps-card__top img{max-width:40%;padding-top:10px}.jp-apps-card__top svg{position:relative;display:block;max-width:40%;margin:0 auto -2.625rem;z-index:3}.jp-apps-card__clouds{position:relative;overflow:hidden;padding-top:2.75rem;z-index:2}.jp-apps-card__clouds img{position:absolute;bottom:-1px;right:-2%;left:-2%;width:104%;height:auto}.jp-apps-card__description{max-width:80%;margin:0 auto;padding:1.5rem;font-size:.875rem;line-height:1.65;color:#537994;text-align:center}.jp-apps-card__description .dops-button{margin:8px 0}.jp-apps-card__header{margin-top:0;font-weight:500}.jp-apps-card__promo_subhead{font-style:italic}.jp-themes-card{margin-bottom:1.25rem}.jp-themes-card .jp-apps-card__top{padding:3.75rem 0 0}.jp-themes-card .jp-apps-card__description{max-width:81%;padding-top:.625rem}.jp-themes-card .jp-apps-card__header{margin-bottom:.3125rem}.jp-themes-card .jp-apps-card__promo_subhead{margin-top:0}.jp-dialogue-full__container{box-sizing:border-box;position:absolute;top:0;left:0;bottom:0;right:0;z-index:100;background:rgba(243,246,248,0.95);text-align:center;padding:2rem}.jp-dialogue{text-align:center;max-width:37.5rem;margin:0 auto 2rem;overflow:hidden}@media (max-width: 660px){.jp-dialogue{text-align:right}}.jp-dialogue p{fon